:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --panel-strong: #172033;
  --line: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  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: 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(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.12);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.filter-bar input {
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.86);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 250px;
  height: 42px;
  padding: 0 46px 0 18px;
  border-radius: 999px;
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.98);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 10px;
}

.mobile-panel {
  display: none;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 42%, rgba(2, 6, 23, 0.86) 100%);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 52px;
  padding: 82px 0 58px;
}

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

.hero-label,
.section-kicker,
.sub-hero span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.rank-card-meta,
.movie-meta,
.detail-score,
.category-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.movie-meta span,
.movie-meta a,
.rank-card-meta span,
.rank-card-meta a,
.detail-score span,
.detail-score a,
.category-card-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
  font-weight: 650;
}

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

.btn,
.text-link,
.section-more,
.mobile-search button,
.filter-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, filter 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.26);
}

.btn.ghost {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.btn:hover,
.text-link:hover,
.section-more:hover,
.filter-buttons button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.08));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(2deg);
}

.hero-poster img,
.movie-card img,
.ranking-row img,
.rank-card-poster img,
.detail-cover,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--cyan);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 8;
}

.feature-strip a {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 20px;
  margin-bottom: 7px;
}

.feature-strip span {
  color: var(--subtle);
}

.page-section {
  padding: 70px 0;
}

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

.section-heading h2,
.sub-hero h1,
.detail-content h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.section-heading p,
.sub-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--subtle);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: #a5f3fc;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.1));
}

.poster-link img {
  transition: transform 0.55s ease, opacity 0.22s ease;
}

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

.image-missing {
  opacity: 0;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 48%);
  opacity: 0.8;
}

.rating-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.rating-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fef3c7;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.play-chip {
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.4;
}

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

.movie-meta {
  gap: 7px;
  margin: 10px 0;
}

.movie-meta span,
.movie-meta a {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--subtle);
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.25)),
    var(--tile-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

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

.category-tile strong {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}

.category-tile em {
  width: max-content;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.18);
  font-style: normal;
  font-weight: 800;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.ranking-panel-head span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

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

.ranking-panel-head a {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 800;
  font-size: 14px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(34, 211, 238, 0.1);
}

.ranking-number {
  color: var(--cyan);
  font-weight: 900;
}

.ranking-row img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.ranking-info strong,
.ranking-info small {
  display: block;
}

.ranking-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

.sub-hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
}

.category-list-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  min-height: 230px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  min-height: 0;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

.category-card-content h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.category-card-content p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.filter-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
}

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

.filter-buttons button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(30, 41, 59, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-buttons button.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.9));
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--subtle);
  border: 1px dashed var(--line);
  border-radius: 22px;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border 0.22s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.44);
}

.rank-card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

.rank-card-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.rank-card-content h2 {
  margin: 8px 0 10px;
}

.rank-card-content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-shell {
  padding: 36px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--subtle);
}

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

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

.player-card,
.detail-side,
.detail-content {
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(2, 6, 23, 0.52));
  cursor: pointer;
  z-index: 4;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.35);
  font-size: 34px;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-side {
  padding: 16px;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
}

.detail-score {
  margin-top: 14px;
}

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

.detail-content h1 {
  margin-top: 0;
}

.detail-tags {
  margin: 16px 0 24px;
}

.lead-text {
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.8;
}

.detail-content h2 {
  margin: 32px 0 12px;
  font-size: 24px;
}

.detail-content p {
  color: var(--muted);
  line-height: 1.9;
}

.detail-info-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 0;
}

.detail-info-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.58);
}

.detail-info-list dt {
  color: var(--subtle);
  font-size: 13px;
}

.detail-info-list dd {
  margin: 8px 0 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  max-width: 620px;
  color: var(--subtle);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 1060px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .mobile-panel {
    position: fixed;
    inset: 68px 0 auto 0;
    padding: 18px;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .mobile-panel {
    display: grid;
    gap: 12px;
  }

  .mobile-search {
    gap: 10px;
  }

  .mobile-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .mobile-search button {
    height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
  }

  .mobile-link {
    padding: 14px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.88);
  }

  .mobile-link.active {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.16);
  }

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

  .hero-poster {
    width: min(320px, 82vw);
    margin: 0 auto;
  }

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

  .two-column-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .category-list-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 62px;
  }

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

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

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

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

  .feature-strip,
  .movie-grid,
  .category-movie-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .detail-info-list {
    grid-template-columns: 1fr 1fr;
  }

  .feature-strip {
    margin-top: 18px;
  }

  .section-heading,
  .footer-grid {
    display: block;
  }

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

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

  .detail-side {
    display: none;
  }

  .detail-content {
    padding: 22px;
  }
}

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

  .feature-strip,
  .movie-grid,
  .category-movie-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .detail-info-list {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 46px 0;
  }

  .hero-actions {
    display: grid;
  }

  .ranking-row {
    grid-template-columns: 28px 52px 1fr;
  }
}
