:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #ea580c;
  --blue: #3b82f6;
  --green: #22c55e;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, var(--bg) 36%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.62), transparent 70%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fbbf24, #f97316 48%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark,
.logo-star {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
  font-size: 12px;
}

.logo-star {
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  font-size: 14px;
}

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

.nav-link {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-search {
  position: relative;
  margin-left: auto;
  width: min(320px, 32vw);
}

.nav-search input,
.filter-bar input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
  color: var(--text);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.filter-bar input:focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

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

.search-item:hover {
  background: rgba(245, 158, 11, 0.12);
}

.search-item img {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(59, 130, 246, 0.22));
}

.search-item strong,
.search-item em {
  display: block;
}

.search-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.search-item em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #e2e8f0;
}

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

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

.mobile-link,
.mobile-category-links a {
  display: block;
  padding: 12px 24px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover,
.mobile-category-links a:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 12px;
}

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

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-backdrop {
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  transition: transform 5.8s ease;
}

.hero-slide.is-active .hero-backdrop {
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.64) 42%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 44%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
  padding-top: 68px;
}

.hero-content > * {
  max-width: 720px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: #fbbf24;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p,
.page-hero p {
  margin: 0;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.hero-meta {
  margin: 24px 0 32px;
}

.hero-meta span:first-child,
.detail-meta span:first-child,
.card-meta span:first-child {
  color: #fbbf24;
  font-weight: 900;
}

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

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.section-more {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.56);
}

.ghost-btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  box-shadow: 0 22px 54px rgba(245, 158, 11, 0.45);
}

.ghost-btn:hover,
.section-more:hover {
  border-color: rgba(245, 158, 11, 0.52);
}

.hero-arrow {
  position: absolute;
  top: 52%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: max(24px, calc((100vw - 1240px) / 2));
}

.hero-next {
  right: max(24px, calc((100vw - 1240px) / 2));
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 40px;
  background: var(--amber);
}

.category-ribbon {
  position: relative;
  z-index: 3;
  margin-top: -64px;
  padding: 0 16px 28px;
}

.category-ribbon-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-ribbon a {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-ribbon a:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-ribbon strong {
  font-size: 18px;
}

.category-ribbon span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

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

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

.section-head h2,
.rank-panel h2,
.detail-card h2,
.side-panel h2,
.footer-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

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

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(59, 130, 246, 0.16));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.32);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.duration-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.movie-card h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

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

.movie-card:hover img {
  transform: scale(1.09);
  filter: saturate(1.08);
}

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

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

.movie-card:hover h3 {
  color: #fbbf24;
}

.card-meta {
  gap: 10px;
  font-size: 13px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.rank-panel,
.side-panel,
.detail-card,
.category-tile,
.filter-bar {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.rank-panel,
.side-panel,
.detail-card {
  padding: 24px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.mini-card img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(59, 130, 246, 0.18));
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  line-height: 1.4;
  transition: color 0.2s ease;
}

.mini-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.mini-card:hover strong {
  color: #fbbf24;
}

.page-shell {
  padding-top: 112px;
  padding-bottom: 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 32px;
  padding: clamp(34px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 40%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.28), transparent 25rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p {
  max-width: 780px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
}

.filter-bar input {
  flex: 1 1 auto;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.56);
}

.category-grid-page {
  display: grid;
  gap: 24px;
}

.category-tile {
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
}

.category-cover {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.category-cover span {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-size: 30px;
  font-weight: 900;
}

.category-body {
  padding: 28px;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-body p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.text-link {
  min-height: 38px;
  padding: 0 16px;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.top-rank-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 62%);
}

.top-rank-card strong,
.top-rank-card em,
.top-rank-number {
  position: relative;
  z-index: 2;
}

.top-rank-card strong {
  font-size: 24px;
  line-height: 1.3;
}

.top-rank-card em {
  margin-top: 8px;
  color: #fbbf24;
  font-style: normal;
}

.top-rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.detail-shell {
  padding-top: 88px;
  padding-bottom: 72px;
}

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

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

.player-section {
  margin-bottom: 28px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #fff;
  font-size: 38px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.35);
  padding-left: 5px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-head {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
}

.detail-poster {
  width: 230px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(59, 130, 246, 0.16));
}

.detail-card h1 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.one-line {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 800;
}

.detail-card p {
  color: #d1d5db;
  line-height: 1.9;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

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

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
}

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

.footer-brand p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-inner h2 {
  font-size: 18px;
}

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

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

.footer-links a:hover {
  color: #fbbf24;
}

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

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

  .mobile-toggle {
    display: block;
  }

  .nav-search {
    width: min(420px, 44vw);
  }

  .category-ribbon-inner {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    width: min(100% - 24px, 1240px);
    gap: 12px;
  }

  .site-logo span:nth-child(2) {
    font-size: 18px;
  }

  .nav-search {
    width: auto;
    flex: 1 1 auto;
  }

  .hero-carousel {
    min-height: 600px;
    height: 78vh;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    width: min(100% - 28px, 1240px);
  }

  .category-ribbon {
    margin-top: -38px;
  }

  .category-ribbon-inner,
  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .top-rank-grid,
  .related-grid,
  .footer-inner,
  .category-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-bar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }
}

@media (max-width: 560px) {
  .logo-mark,
  .logo-star {
    width: 24px;
    height: 24px;
  }

  .site-logo span:nth-child(2) {
    max-width: 5.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-search {
    display: none;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .category-ribbon-inner,
  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .top-rank-grid,
  .related-grid,
  .footer-inner,
  .category-preview,
  .mobile-category-links {
    grid-template-columns: 1fr;
  }

  .movie-card h3 {
    white-space: normal;
  }

  .content-section,
  .page-shell,
  .detail-shell {
    width: min(100% - 24px, 1240px);
  }

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

  .mini-card img {
    width: 96px;
    height: 60px;
  }

  .play-overlay span {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }
}
