/* Base */
:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.1);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --red: #ef4444;
  --gold: #f59e0b;
  --green: #22c55e;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --radius: 24px;
  --radius-small: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 28%),
    var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--orange-dark);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.btn.light {
  color: var(--orange-dark);
  background: #fff;
}

.btn.ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--orange-dark);
  background: rgba(249, 115, 22, 0.1);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: none;
  padding: 12px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
}

/* Hero */
.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-bg.poster-fallback,
.detail-bg.poster-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.52), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.46), transparent 28%),
    linear-gradient(135deg, #111827, #7c2d12 55%, #831843);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.25)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 92px 0 72px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: var(--orange-dark);
  background: rgba(249, 115, 22, 0.1);
}

.tag-row.large span {
  min-height: 36px;
  padding: 0 16px;
}

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

.hero-actions.inline {
  margin-top: 22px;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.36), rgba(236, 72, 153, 0.36)),
    #1f2937;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster.poster-fallback::after,
.poster-wrap.poster-fallback::after {
  content: "热播电影";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(135deg, var(--orange), var(--pink));
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 38px;
  background: #fff;
}

/* Strips and category cards */
.stats-strip {
  width: min(1040px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(249, 115, 22, 0.13);
  box-shadow: var(--shadow);
}

.stats-strip div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: var(--orange-dark);
  font-size: 32px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.category-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  bottom: -50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.category-icon {
  font-size: 34px;
}

.category-card strong,
.category-card em,
.category-card p,
.category-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card strong {
  margin-top: 18px;
  font-size: 22px;
}

.category-card em {
  margin-top: 4px;
  font-style: normal;
  font-weight: 800;
  opacity: 0.9;
}

.category-card p {
  min-height: 50px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.category-card small {
  color: rgba(255, 255, 255, 0.84);
}

/* Gradients */
.grad-orange {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.grad-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.grad-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.grad-red {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.grad-rose {
  background: linear-gradient(135deg, #fb7185, #ec4899);
}

.grad-blue {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.grad-green {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.grad-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.grad-gold {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.grad-teal {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

/* Movie cards */
.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--orange), var(--pink));
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  right: 12px;
}

.rank-badge {
  left: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 10px 0 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .tag-row {
  min-height: 30px;
  margin-top: auto;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rating {
  color: #f59e0b;
}

.heat {
  color: var(--orange-dark);
}

.movie-card.wide .movie-card-link {
  flex-direction: row;
}

.movie-card.wide .poster-wrap {
  width: 36%;
  min-width: 180px;
  aspect-ratio: 3 / 4;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.large h3 {
  font-size: 20px;
}

/* Rank */
.soft-section {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.8), rgba(252, 231, 243, 0.8));
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 36px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 13px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--orange-dark);
  font-weight: 900;
}

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

.sticky-rank,
.channel-aside {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sticky-rank h3,
.channel-aside h2 {
  margin: 0 0 16px;
}

/* Page hero and tables */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12, #831843);
}

.compact-hero {
  padding: 84px 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.table-card {
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--orange-dark);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td a {
  color: var(--orange-dark);
  font-weight: 900;
}

/* Filters */
.filter-panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-title h2 {
  margin: 0;
  font-size: 24px;
}

.filter-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.movie-card.is-hidden {
  display: none;
}

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

/* Detail */
.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 88px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.detail-stats span {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.3));
  color: #fff;
}

.player-layer.is-hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.36);
}

.play-button span {
  margin-left: 6px;
  font-size: 42px;
}

.player-layer p {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.player-loading,
.player-error {
  position: absolute;
  left: 18px;
  bottom: 74px;
  z-index: 4;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.86);
  font-weight: 800;
}

.player-error {
  color: #fecaca;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: #0f172a;
}

.player-controls button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.content-card:last-child {
  grid-column: 1 / -1;
}

.content-card h2 {
  margin: 0 0 16px;
}

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

/* CTA / footer */
.cta-section {
  padding: 80px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.cta-section h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.05em;
}

.cta-section p {
  max-width: 720px;
  margin: 18px auto 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-inner p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(249, 115, 22, 0.08);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-panel {
    display: none;
    padding: 0 16px 16px;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .mobile-panel nav {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-search {
    margin-top: 12px;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .two-column,
  .rank-layout,
  .channel-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .sticky-rank,
  .channel-aside {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .detail-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .content-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 48px 0;
  }

  .header-inner {
    height: 66px;
  }

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

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 72px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip div {
    padding: 18px 12px;
  }

  .category-grid,
  .featured-grid,
  .library-grid,
  .small-grid,
  .wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card.wide .movie-card-link {
    flex-direction: column;
  }

  .movie-card.wide .poster-wrap {
    width: 100%;
    min-width: 0;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .filter-title {
    display: block;
  }

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

  .detail-poster {
    max-width: 240px;
  }

  .detail-line {
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .category-grid,
  .featured-grid,
  .library-grid,
  .small-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 40px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }
}
