* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --amber: #f59e0b;
  --orange: #ea580c;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.10), transparent 34rem), var(--bg);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #d1d5db;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.95));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22);
}

.header-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  width: min(320px, 28vw);
  padding: 6px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.header-search input::placeholder,
.mobile-search input::placeholder,
.page-search input::placeholder {
  color: #9ca3af;
}

.header-search button,
.mobile-search button,
.page-search button {
  border: 0;
  cursor: pointer;
  border-radius: 11px;
  padding: 8px 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.wide-link:hover,
.row-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.88);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #111827;
  padding: 14px 20px 20px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.72);
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #0b1120;
}

.hero-track,
.hero-slide,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  min-height: 610px;
  margin: 0 auto;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-right: 380px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.26);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 720px;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.row-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 11px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.wide-link,
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  transition: 0.25s ease;
}

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

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.9);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-side-panel {
  position: absolute;
  z-index: 3;
  right: max(42px, calc((100vw - 1280px) / 2 + 24px));
  top: 50%;
  width: 300px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.66);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

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

.hero-side-panel a {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-side-panel a:hover {
  color: #fbbf24;
}

.content-wrap,
.split-wrap,
.page-main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.content-wrap {
  padding: 64px 0 0;
}

.split-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding: 64px 0 0;
}

.section-heading,
.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.mini-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #475569);
}

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

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

.score-badge,
.play-dot {
  position: absolute;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.score-badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 900;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.card-body {
  padding: 16px;
}

.card-title,
.row-title,
.overview-title {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover,
.row-title:hover,
.overview-title:hover {
  color: var(--orange);
}

.card-meta {
  margin: 7px 0;
  color: #64748b;
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-tile {
  min-height: 260px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-stack {
  display: flex;
  min-height: 122px;
  align-items: center;
  margin-bottom: 16px;
}

.category-stack img {
  width: 86px;
  height: 122px;
  object-fit: cover;
  border-radius: 16px;
  background: #1e293b;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.20);
}

.category-stack img + img {
  margin-left: -42px;
}

.category-tile h3,
.category-overview-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.row-list,
.ranking-list,
.mini-rank-list {
  display: grid;
  gap: 14px;
}

.movie-row {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.row-poster {
  display: block;
  width: 86px;
  height: 116px;
  overflow: hidden;
  border-radius: 14px;
  background: #1e293b;
}

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

.row-content p {
  display: -webkit-box;
  margin: 6px 0 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.row-meta span {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.row-action {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-index {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: #0f172a;
  font-weight: 900;
}

.ranking-box {
  align-self: start;
  position: sticky;
  top: 96px;
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mini-heading span {
  width: 6px;
  height: 34px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(var(--amber), var(--orange));
}

.ranking-box .movie-row {
  grid-template-columns: auto 64px minmax(0, 1fr);
}

.ranking-box .row-poster {
  width: 64px;
  height: 84px;
}

.ranking-box .row-action,
.ranking-box .row-meta,
.ranking-box .row-content p {
  display: none;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: #0f172a;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.30), transparent 24rem),
    linear-gradient(135deg, #0f172a, #1e293b 58%, #7c2d12);
  box-shadow: var(--shadow);
}

.compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: end;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
}

.page-search {
  align-self: center;
  padding: 8px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #475569;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.overview-cover {
  display: flex;
  align-items: center;
  min-height: 160px;
}

.overview-cover img {
  width: 96px;
  height: 142px;
  object-fit: cover;
  border-radius: 16px;
  background: #1e293b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.overview-cover img + img {
  margin-left: -54px;
}

.overview-title {
  font-size: 24px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.overview-links a {
  border-radius: 999px;
  padding: 5px 10px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
}

.detail-main {
  padding-bottom: 0;
}

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

.player-card,
.detail-info,
.side-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

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

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.70), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  font-size: 34px;
}

.player-overlay strong {
  display: block;
  text-align: center;
  font-size: clamp(22px, 3vw, 36px);
}

.player-overlay span {
  display: block;
  text-align: center;
  color: #e5e7eb;
}

.detail-info {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-score {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.30);
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.one-line {
  margin: 0 0 18px;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 28px;
}

.text-panel {
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.text-panel + .text-panel {
  margin-top: 24px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #475569;
}

.detail-side {
  display: grid;
  align-self: start;
  gap: 22px;
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 18px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #1e293b;
  margin-bottom: 14px;
}

.primary-btn.full {
  width: 100%;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.compact-card .poster-link {
  height: 128px;
  aspect-ratio: auto;
}

.compact-card .card-body {
  padding: 12px;
}

.compact-card .score-badge,
.compact-card .play-dot,
.compact-card .tag-row {
  display: none;
}

.compact-card .card-desc {
  min-height: 0;
  margin-bottom: 0;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #94a3b8;
  font-size: 14px;
  transition: 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

[data-card].hidden-card {
  display: none;
}

@media (max-width: 1160px) {
  .header-search {
    display: none;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-side-panel {
    display: none;
  }

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

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

  .ranking-box,
  .detail-side {
    position: static;
  }
}

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

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

  .header-inner {
    padding: 0 18px;
  }

  .brand-text {
    font-size: 18px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .compact-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .content-wrap,
  .split-wrap,
  .page-main {
    width: min(100% - 28px, 1280px);
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-tags span:nth-child(n + 4) {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-row {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .row-action {
    grid-column: 2 / 4;
    width: 100%;
  }

  .row-poster {
    width: 72px;
    height: 100px;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .detail-score {
    width: 62px;
    height: 62px;
  }

  .compact-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

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