* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.74);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #38bdf8;
  --blue-deep: #2563eb;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --rose: #fb7185;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  box-shadow: 0 10px 32px rgba(56, 189, 248, 0.28);
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #e2e8f0;
  font-size: 15px;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(290px, 30vw);
  background: rgba(51, 65, 85, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  padding: 11px 10px 11px 16px;
  background: transparent;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search button {
  border: 0;
  cursor: pointer;
  color: #cbd5e1;
  background: transparent;
  padding: 9px 14px;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(30, 41, 59, 0.74);
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 0;
  color: #e2e8f0;
}

.mobile-panel .nav-search {
  width: 100%;
}

.main-content {
  padding: 28px 0 60px;
}

.hero {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.86), rgba(8, 145, 178, 0.74), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16) 0 1px, transparent 1px),
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 42%);
  background-size: 42px 42px, 100% 100%;
  opacity: 0.72;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
  z-index: 2;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: saturate(1.08) contrast(1.06);
  z-index: -2;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(15, 23, 42, 0.65) 48%, rgba(2, 6, 23, 0.8)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 50%);
  z-index: -1;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #075985;
  background: #fff;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.22);
}

.hero-poster {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.54);
}

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

.hero-poster-caption {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.20);
  backdrop-filter: blur(14px);
}

.hero-poster-caption strong {
  display: block;
  font-size: 18px;
}

.hero-poster-caption span {
  display: block;
  color: #cbd5e1;
  margin-top: 6px;
}

.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  margin-top: 58px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-title span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.16);
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more-link {
  color: var(--blue);
  font-weight: 700;
}

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

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 24px 58px rgba(14, 165, 233, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b, #020617);
  overflow: hidden;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.06);
  opacity: 0.88;
}

.poster::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  background: rgba(2, 6, 23, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.badge,
.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.badge {
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan));
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: rgba(2, 6, 23, 0.78);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .card-title {
  color: var(--blue);
}

.card-line {
  margin: 9px 0 0;
  min-height: 43px;
  color: #a8b5c7;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.rating {
  color: #facc15;
  font-weight: 900;
}

.movie-card.large .poster {
  aspect-ratio: 16 / 10;
}

.movie-card.large .card-body {
  padding: 20px;
}

.movie-card.large .card-title {
  font-size: 21px;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 138px;
}

.horizontal-card .poster {
  height: 100%;
  aspect-ratio: auto;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(34, 211, 238, 0.80));
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 26px 64px rgba(14, 165, 233, 0.26);
}

.category-card.rose {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

.category-card.amber {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.category-card.violet {
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
}

.category-card.green {
  background: linear-gradient(135deg, #059669, #34d399);
}

.category-card.cyan {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.category-card.slate {
  background: linear-gradient(135deg, #475569, #0f172a);
}

.category-icon {
  position: relative;
  z-index: 2;
  font-size: 38px;
  margin-bottom: 14px;
}

.category-card h3,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card h3 {
  margin: 0;
  font-size: 21px;
}

.category-card p {
  margin: 9px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  font-size: 14px;
}

.page-hero {
  padding: 58px clamp(22px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.8;
  font-size: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  margin: 28px 0 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.search-large {
  display: flex;
  align-items: center;
  min-width: min(480px, 100%);
  flex: 1;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.search-large input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  color: #fff;
  background: transparent;
}

.search-large button,
.filter-select {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan));
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
}

.filter-select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0f172a;
}

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

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.82);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #082f49;
  background: #e0f2fe;
}

.empty-state {
  display: none;
  padding: 46px;
  text-align: center;
  color: #cbd5e1;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 180px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.38);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0;
  font-size: 20px;
}

.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-extra {
  min-width: 120px;
  text-align: right;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 440px;
  display: grid;
  align-items: end;
  box-shadow: var(--shadow);
  background: #020617;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.34)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 62%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: end;
  padding: clamp(24px, 5vw, 48px);
}

.detail-poster {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-title p {
  margin: 16px 0 0;
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.meta-row,
.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.meta-pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.20);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 34px;
}

.panel {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.20);
}

.player-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button-core {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.36);
  font-size: 36px;
  padding-left: 5px;
}

.player-status {
  padding: 12px 18px;
  color: #cbd5e1;
  font-size: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.article {
  padding: clamp(22px, 4vw, 34px);
}

.article h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.article p {
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 16px;
}

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(51, 65, 85, 0.48);
}

.related-item img {
  width: 118px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.related-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.breadcrumb a {
  color: #bae6fd;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  color: #cbd5e1;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .nav-links,
  .site-header > .nav-wrap > .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .container,
  .nav-wrap,
  .mobile-panel-inner,
  .footer-grid,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

  .main-content {
    padding-top: 18px;
  }

  .hero {
    min-height: 560px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-controls {
    left: 28px;
    right: auto;
  }

  .grid-large,
  .grid-cards,
  .grid-wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 48px 96px 1fr;
  }

  .rank-extra {
    grid-column: 3;
    text-align: left;
  }

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

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

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