:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #fff7f7;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #dc2626;
  --brand-deep: #be123c;
  --brand-soft: #ffe4e6;
  --gold: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, .08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 48%, #fff1f2 100%);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(229, 231, 235, .85);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ec4899);
  box-shadow: 0 12px 24px rgba(220, 38, 38, .26);
  transition: transform .28s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  font-size: 15px;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
}

.header-search {
  width: 248px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  color: var(--text);
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 10px 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ec4899);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
}

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  background: #111827;
}

.mobile-panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav-link:hover {
  background: #f3f4f6;
  color: var(--brand);
}

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.page-top {
  padding-top: 34px;
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity .65s ease, transform 1s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .18) 48%, rgba(0, 0, 0, .48));
}

.hero-slide-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  padding: 80px 0 136px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 52px;
}

.hero-copy {
  max-width: 720px;
}

.hero-badges,
.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-badges span,
.hero-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}

.hero-badges span:first-child {
  background: linear-gradient(135deg, var(--brand), #ec4899);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.08em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

.hero-one-line {
  margin: 0 0 10px;
  color: #f9fafb;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-link,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ec4899);
  box-shadow: 0 14px 28px rgba(220, 38, 38, .26);
}

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

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--text);
  background: rgba(255, 255, 255, .72);
}

.hero-poster-card {
  position: relative;
  aspect-ratio: 4 / 5.35;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent 62%);
}

.hero-poster-card span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 16px;
  color: #111827;
  font-weight: 900;
  background: rgba(255, 255, 255, .92);
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 88px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.hero-search-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  width: min(720px, calc(100% - 40px));
  transform: translateX(-50%);
}

.hero-search-panel form,
.hero-inline-search,
.search-console {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search-panel input,
.hero-inline-search input,
.search-console input,
.filter-bar input,
.filter-bar select,
.search-console select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
}

.hero-search-panel button,
.hero-inline-search button {
  min-width: 118px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), #ec4899);
}

.hero-thumb-rail {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100vw - 1240px) / 2));
  bottom: 24px;
  display: none;
  gap: 10px;
}

.hero-thumb {
  width: 142px;
  border-radius: 18px;
  padding: 8px;
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}

.hero-thumb.is-active {
  outline: 2px solid rgba(255, 255, 255, .84);
}

.hero-thumb-image {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.content-section {
  padding: 52px 0;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link,
.panel-link {
  color: var(--brand);
  background: var(--brand-soft);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  min-width: 0;
  transition: transform .28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background-color: #e5e7eb;
  background-image: linear-gradient(135deg, #fee2e2, #e5e7eb);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.movie-card-small .movie-poster {
  aspect-ratio: 4 / 3;
}

.movie-card-medium .movie-poster {
  aspect-ratio: 16 / 9;
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .12) 65%, transparent);
  transition: opacity .28s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(220, 38, 38, .88);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(245, 158, 11, .92);
}

.poster-meta {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .28s ease;
}

.movie-card:hover .poster-meta {
  opacity: 1;
}

.movie-card-body {
  padding: 12px 4px 0;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta-line a,
.movie-meta-line span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f3f4f6;
}

.movie-meta-line a {
  color: var(--brand);
  background: var(--brand-soft);
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #374151;
  font-size: 12px;
  background: #f3f4f6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.split-main,
.ranking-panel,
.gradient-section,
.category-band,
.filter-bar,
.search-console,
.info-card,
.detail-content,
.side-card {
  border: 1px solid rgba(229, 231, 235, .86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
}

.split-main,
.gradient-section,
.category-band,
.ranking-panel,
.info-card {
  padding: 28px;
}

.ranking-panel {
  position: sticky;
  top: 92px;
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-panel-head span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--brand));
}

.ranking-panel h2 {
  margin: 0;
  font-size: 24px;
}

.ranking-panel ol,
.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel li + li {
  border-top: 1px solid var(--line);
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px 10px;
  padding: 12px 0;
}

.ranking-panel li strong {
  grid-row: span 2;
  color: var(--brand);
  font-size: 20px;
}

.ranking-panel li span {
  font-weight: 800;
}

.ranking-panel li small {
  color: var(--muted);
}

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

.category-tile {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff, #fff1f2);
  box-shadow: var(--shadow-soft);
  transition: transform .24s ease, box-shadow .24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--brand);
  font-size: 26px;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.55;
}

.gradient-section.warm {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.page-hero {
  min-height: 260px;
  margin-bottom: 36px;
  border-radius: 30px;
  padding: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff, #fff1f2);
  box-shadow: var(--shadow-soft);
}

.category-hero {
  color: #fff;
  background: linear-gradient(135deg, #111827, #7f1d1d 62%, #be123c);
}

.category-hero h1,
.category-hero p,
.rank-hero h1,
.rank-hero p,
.search-hero h1,
.search-hero p {
  color: #fff;
}

.rank-hero {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, .8), transparent 30%), linear-gradient(135deg, #111827, #7f1d1d 55%, #f97316);
}

.search-hero {
  color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, .6), transparent 28%), linear-gradient(135deg, #111827, #4c0519);
}

.soft-hero {
  background: linear-gradient(135deg, #fff, #f9fafb 55%, #ffe4e6);
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.filter-bar {
  margin-bottom: 26px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: end;
}

.filter-input label,
.filter-selects label,
.search-console label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-selects,
.search-console-filters {
  display: flex;
  gap: 12px;
}

.filter-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  border: 1px dashed #fecaca;
  border-radius: 20px;
  padding: 36px;
  color: var(--brand);
  text-align: center;
  background: #fff1f2;
}

.ranked-grid .movie-card:nth-child(-n + 3) .movie-poster {
  box-shadow: 0 20px 45px rgba(245, 158, 11, .22);
}

.ranking-list-section {
  padding-top: 18px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-list a {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
}

.ranking-list strong {
  color: var(--brand);
  font-size: 20px;
}

.ranking-list span {
  font-weight: 850;
}

.ranking-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.search-console {
  margin-bottom: 26px;
  padding: 20px;
  align-items: end;
}

.search-console-main {
  flex: 1;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.watch-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: radial-gradient(circle, rgba(0, 0, 0, .18), rgba(0, 0, 0, .72));
}

.player-play-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
}

.player-status {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, .72);
  transform: translate(-50%, -50%);
}

.player-error {
  border-radius: 18px;
  color: #fecaca;
}

.detail-content {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  background: #f3f4f6;
}

.detail-one-line {
  margin: 0 0 24px;
  color: #b91c1c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.detail-content section {
  margin-top: 22px;
}

.detail-content h2,
.side-card h2,
.info-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.detail-content p,
.info-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-poster {
  position: relative;
  aspect-ratio: 4 / 5.5;
  border-radius: 26px;
  overflow: hidden;
  display: block;
  background-color: #e5e7eb;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 56%);
}

.detail-poster span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.side-card {
  margin-top: 18px;
  padding: 22px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.side-card a {
  color: var(--brand);
}

.related-section {
  padding-bottom: 70px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #9ca3af;
  line-height: 1.75;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: #d1d5db;
}

.footer-grid a:hover {
  color: #fff;
}

@media (min-width: 1120px) {
  .hero-thumb-rail {
    display: flex;
  }
}

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

  .menu-button {
    display: grid;
  }

  .header-search {
    margin-left: auto;
  }

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

@media (max-width: 940px) {
  .hero {
    height: auto;
    min-height: 720px;
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
    padding: 84px 0 170px;
    gap: 28px;
  }

  .hero-poster-card {
    width: min(260px, 70vw);
    justify-self: start;
  }

  .hero-control {
    display: none;
  }

  .split-section,
  .watch-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .grid-4,
  .grid-6,
  .category-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar,
  .search-console,
  .page-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ranking-list a {
    grid-template-columns: 54px 1fr;
  }

  .ranking-list em {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small,
  .header-search {
    display: none;
  }

  .page-shell,
  .footer-inner,
  .hero-slide-inner {
    width: min(100% - 28px, 1240px);
  }

  .hero {
    min-height: 690px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-search-panel form {
    display: grid;
  }

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

  .content-section {
    padding: 34px 0;
  }

  .section-heading,
  .detail-title-row {
    display: grid;
    align-items: start;
  }

  .grid-4,
  .grid-6,
  .category-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-selects,
  .search-console-filters {
    display: grid;
  }

  .page-hero,
  .split-main,
  .gradient-section,
  .category-band,
  .ranking-panel,
  .detail-content {
    padding: 22px;
    border-radius: 22px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
