:root {
  --emerald: #10b981;
  --teal: #0d9488;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #dc2626;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

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

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0));
}

.site-header.is-solid,
body:not(.has-hero) .site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-header.is-solid .brand,
body:not(.has-hero) .brand {
  color: var(--slate-900);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.32);
}

.brand-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.65rem 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header.is-solid .nav-link,
body:not(.has-hero) .nav-link {
  color: var(--slate-700);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.header-search {
  display: flex;
  align-items: center;
  width: min(310px, 26vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.site-header.is-solid .header-search,
body:not(.has-hero) .header-search {
  border-color: var(--slate-200);
  background: var(--white);
}

.header-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.7rem 0.95rem;
  color: inherit;
  background: transparent;
}

.header-search button,
.mobile-search button {
  margin-right: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-solid .menu-toggle,
body:not(.has-hero) .menu-toggle {
  color: var(--slate-900);
  background: var(--slate-100);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 0.9rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

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

.mobile-search {
  display: flex;
  gap: 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.mobile-links a {
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.42), transparent 40%),
    linear-gradient(120deg, #020617, #0f172a);
}

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

.hero-media img.is-missing-cover {
  opacity: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(16, 185, 129, 0.35), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.08)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.0) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 86vh;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hero-copy {
  width: min(760px, 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.kicker span,
.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  font-weight: 700;
}

.kicker .primary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(16, 185, 129, 0.38);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(1rem, calc((100vw - 1180px) / 2));
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 2.4rem;
  height: 0.32rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--emerald);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section.compact {
  padding: 2.5rem 0;
}

.section.full-bleed {
  width: 100%;
  max-width: none;
  padding: 4.5rem max(1rem, calc((100vw - 1180px) / 2));
}

.gradient-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.10));
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #111827);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.section-head p,
.page-title p {
  max-width: 680px;
  margin: 0.6rem 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.dark-section .section-head p {
  color: rgba(255, 255, 255, 0.66);
}

.view-more {
  color: var(--emerald);
  font-weight: 800;
  white-space: nowrap;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
}

.page-title {
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.featured .card-cover,
.compact-card .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img,
.rank-cover img,
.detail-poster img,
.related-cover img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card:hover .card-cover img,
.rank-row:hover .rank-cover img,
.related-card:hover .related-cover img {
  transform: scale(1.08);
}

.cover-wrap {
  position: relative;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 8rem),
    linear-gradient(135deg, var(--emerald), var(--teal) 52%, var(--slate-900));
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.03em;
  z-index: 0;
}

.cover-wrap img {
  position: relative;
  z-index: 1;
}

.cover-wrap img.is-missing-cover {
  opacity: 0;
}

.card-play {
  position: absolute;
  z-index: 2;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--emerald);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 1rem;
}

.card-meta,
.card-foot,
.rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.card-meta a {
  color: var(--teal);
  font-weight: 800;
}

.card-body h3 {
  min-height: 2.85em;
  margin: 0.6rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.42;
}

.card-body h3 a:hover {
  color: var(--emerald);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0 0 1rem;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
  line-height: 1.65;
}

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.rank-cover {
  position: relative;
  min-height: 128px;
  overflow: hidden;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  left: 0.65rem;
  display: grid;
  min-width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  padding: 0 0.4rem;
  color: var(--white);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-info {
  padding: 1rem 1rem 1rem 0;
}

.rank-title {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--emerald);
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 0.75rem;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.7;
}

.rank-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--teal));
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.22), transparent 7rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.18));
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.65;
}

.category-card img.is-missing-cover {
  opacity: 0;
}

.category-content {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
}

.category-content strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.category-content span {
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.filter-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.filter-heading span {
  color: var(--slate-500);
}

.filter-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--slate-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  outline: 0;
  border-radius: 999px;
  padding: 0.75rem 0.9rem;
  color: var(--slate-900);
  background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.player-card,
.info-card,
.side-card {
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
  background: #000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.18), transparent 14rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 50%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  color: var(--emerald);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 2rem;
}

.player-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 0.92rem;
}

.info-card {
  padding: 1.35rem;
}

.detail-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.detail-meta span,
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 0.86rem;
  font-weight: 750;
}

.detail-meta span:first-child {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.detail-section {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--slate-200);
}

.detail-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.detail-section p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.side-card h2 {
  margin: 0 0 1rem;
  font-size: 1.18rem;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 1rem;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--slate-50);
}

.related-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0.8rem;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.95rem;
  line-height: 1.4;
}

.related-card span {
  color: var(--slate-500);
  font-size: 0.8rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--cyan));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 5px var(--white);
}

.timeline-card {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.timeline-card a {
  font-weight: 900;
}

.timeline-card p {
  margin: 0.4rem 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.masonry {
  columns: 3 260px;
  column-gap: 1.2rem;
}

.masonry .movie-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.2rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #020617, #0f172a);
}

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

.footer-brand {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-links div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links h3 {
  margin: 0 0 0.35rem;
  color: var(--white);
}

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

.empty-state {
  display: none;
  padding: 2rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-xl);
  color: var(--slate-500);
  text-align: center;
  background: var(--white);
}

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

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

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

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

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

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

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

  .side-card {
    position: static;
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-content {
    min-height: 82vh;
    padding: 6.5rem 0 4rem;
  }

  .hero-carousel {
    min-height: 82vh;
  }

  .hero-meta {
    gap: 0.5rem;
  }

  .hero-actions {
    display: grid;
  }

  .section,
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .section {
    padding: 3rem 0;
  }

  .section.full-bleed {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .movie-grid.featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-body p {
    display: none;
  }

  .rank-row {
    grid-template-columns: 116px 1fr;
    gap: 0.85rem;
  }

  .rank-info {
    padding: 0.85rem 0.85rem 0.85rem 0;
  }

  .rank-title {
    font-size: 1rem;
  }

  .rank-info p {
    -webkit-line-clamp: 1;
    font-size: 0.86rem;
  }

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

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

  .detail-meta span,
  .tag {
    font-size: 0.78rem;
  }

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

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

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.category-overview-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.category-overview-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.mini-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.mini-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.8rem;
}

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

.category-overview-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.category-overview-card p {
  margin: 0 0 0.8rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.category-overview-card span {
  color: var(--emerald);
  font-weight: 900;
}

@media (max-width: 900px) {
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .category-overview-main {
    grid-template-columns: 1fr;
  }
}
