:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-deep: #c2410c;
  --brand-soft: #ffedd5;
  --amber: #f59e0b;
  --dark: #0f172a;
  --shadow: 0 20px 60px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fffbeb 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

button, input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.10);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7c2d12;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c 48%, #dc2626);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #c2410c;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.72);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(251, 146, 60, 0.3);
  background: rgba(255, 251, 235, 0.98);
}

.mobile-nav.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 14px 22px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link.active, .mobile-link:hover {
  color: #c2410c;
  background: #ffedd5;
}

.quick-nav {
  border-top: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(255, 255, 255, 0.54);
}

.quick-nav-inner {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 9px 0;
  scrollbar-width: none;
}

.quick-nav-inner::-webkit-scrollbar {
  display: none;
}

.quick-nav a {
  flex: 0 0 auto;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.45), transparent 28%), linear-gradient(135deg, #b45309, #ea580c 45%, #991b1b);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(124, 45, 18, 0.20)), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 30%);
}

.hero-layout {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 52px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1, .page-hero h1, .detail-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-search, .search-form {
  display: flex;
  width: min(100%, 620px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.20);
}

.hero-search input, .search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 20px;
  color: #1f2937;
  background: transparent;
}

.hero-search button, .search-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: white;
  font-weight: 850;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.25);
}

.hero-actions, .center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.primary-button, .secondary-button, .panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ea580c;
  background: white;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.20);
}

.secondary-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover, .secondary-button:hover, .panel-link:hover {
  transform: translateY(-2px);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-category-links a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
}

.hero-showcase {
  min-width: 0;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.38);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
}

.hero-slide-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.hero-slide-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 12px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.88);
}

.hero-slide-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-slide-copy p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-slide-copy a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 18px;
  color: #9a3412;
  font-weight: 850;
  background: white;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  background: rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
}

.hero-prev {
  left: 14px;
}

.hero-next {
  right: 14px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  background: white;
}

.stat-section, .content-section, .tag-section {
  padding: 74px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-card {
  border-radius: 22px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: #1f2937;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card.blue {
  background: linear-gradient(135deg, #eff6ff, #cffafe);
}

.stat-card.green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.stat-card.amber {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.stat-card.rose {
  background: linear-gradient(135deg, #fff1f2, #fce7f3);
}

.warm {
  background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.dark-section {
  color: white;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 680px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading.light h2, .section-heading.light p {
  color: white;
}

.section-heading h2, .tag-section h2, .rank-panel h2, .info-card h2, .tag-card h2, .poster-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.dark-section .section-heading h2, .rank-panel h2 {
  color: white;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 38px rgba(124, 45, 18, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(124, 45, 18, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

.compact-card .card-cover {
  height: auto;
  aspect-ratio: 3 / 4;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-pill, .rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  font-size: 12px;
  font-weight: 850;
  background: rgba(249, 115, 22, 0.94);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(15, 23, 42, 0.72);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 20px;
}

.compact-card .card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
}

.compact-card .card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 16px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-meta {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #4b5563;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card .card-desc {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.media-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  padding: 12px;
  color: #111827;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.dark-section .media-row {
  background: rgba(255, 255, 255, 0.96);
}

.media-row img {
  width: 86px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.media-row strong, .media-row em, .media-row small {
  display: block;
}

.media-row strong {
  margin-bottom: 5px;
  color: #111827;
  font-size: 18px;
}

.media-row em {
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.media-row small {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #4b5563;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-rank {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-panel {
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.rank-panel .media-row {
  margin-top: 12px;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-grid, .category-tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card, .category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  box-shadow: var(--shadow);
}

.category-card strong, .category-tile span {
  display: block;
  margin-bottom: 8px;
  color: #7c2d12;
  font-size: 24px;
  font-weight: 950;
}

.category-card span, .category-tile strong {
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
}

.category-card:hover, .category-tile:hover {
  transform: translateY(-4px);
}

.category-tile {
  min-height: 220px;
  color: white;
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile span, .category-tile strong {
  position: relative;
  z-index: 2;
  color: white;
}

.category-tile span {
  margin-top: 92px;
}

.tag-section {
  text-align: center;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.tag-cloud a, .filter-tags button, .clear-filter {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #7c2d12;
  font-weight: 800;
  background: white;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.10);
}

.tag-cloud.small {
  justify-content: flex-start;
}

.tag-cloud.small a {
  padding: 8px 12px;
  font-size: 13px;
}

.filter-tags button.active {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.page-hero {
  padding: 86px 0;
  color: white;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(254, 243, 199, 0.35), transparent 24%), linear-gradient(135deg, #d97706, #ea580c 46%, #b91c1c);
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.search-hero .search-form {
  margin: 28px auto 0;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  padding: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.filter-search {
  display: grid;
  gap: 8px;
  color: #7c2d12;
  font-weight: 900;
}

.filter-search input, .local-search {
  width: 100%;
  border: 2px solid #fed7aa;
  border-radius: 18px;
  outline: 0;
  padding: 13px 16px;
  background: #fff7ed;
}

.filter-search input:focus, .local-search:focus {
  border-color: #fb923c;
  background: white;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.clear-filter {
  justify-self: start;
  color: white;
  background: #111827;
}

.empty-state {
  display: none;
  border-radius: 24px;
  padding: 60px 20px;
  color: #7c2d12;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  background: #ffedd5;
}

.empty-state.visible {
  display: block;
}

.rank-block + .rank-block {
  margin-top: 72px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: white;
  background: #111827;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.42)), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumbs a:hover {
  color: white;
}

.detail-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: white;
  font-weight: 850;
  background: rgba(249, 115, 22, 0.90);
}

.detail-hero p {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.info-card, .poster-card, .tag-card {
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 26px;
  padding: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.info-card + .info-card, .tag-card {
  margin-top: 22px;
}

.info-card h2, .poster-card h2, .tag-card h2 {
  font-size: 26px;
}

.info-card p {
  margin: 0;
  color: #374151;
  font-size: 18px;
  white-space: pre-line;
}

.lead-card {
  border-left: 5px solid #f97316;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #f97316;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.play-layer strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.play-layer.hidden {
  display: none;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-card h2 {
  margin-top: 16px;
}

.poster-card p {
  color: #6b7280;
}

.related-section {
  padding-top: 48px;
}

@media (max-width: 1080px) {
  .hero-layout, .split-layout, .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    width: 100%;
  }

  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid, .category-tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .desktop-nav, .quick-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-section, .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding: 38px 0;
  }

  .hero-slider {
    min-height: 420px;
    border-radius: 24px;
  }

  .hero-search, .search-form {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button, .search-form button {
    width: 100%;
  }

  .stat-grid, .movie-grid, .compact-grid, .media-list, .category-grid, .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-cover {
    height: 220px;
  }

  .content-section, .stat-section, .tag-section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 58px 0;
  }

  .detail-hero, .detail-hero-content {
    min-height: 500px;
  }

  .detail-hero-content {
    padding: 34px 0;
  }

  .info-card, .poster-card, .tag-card {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .stat-grid, .compact-grid, .category-grid, .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    grid-template-columns: 1fr;
  }

  .media-row {
    align-items: flex-start;
  }

  .media-row img {
    width: 72px;
    height: 96px;
  }

  .hero-control {
    display: none;
  }
}
