:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-elevated: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --brand: #f59e0b;
  --brand-deep: #ea580c;
  --brand-soft: rgba(245, 158, 11, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

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

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

.header-inner {
  width: min(100% - 32px, var(--max));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.12;
}

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

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.18);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero {
  padding: 28px 0 36px;
}

.hero-stage {
  position: relative;
  width: min(100% - 32px, var(--max));
  height: clamp(520px, 68vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.14) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 82px);
  bottom: clamp(34px, 9vh, 100px);
  z-index: 2;
  width: min(680px, calc(100% - 48px));
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: #fcd34d;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 630px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

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

.hero-tags span,
.card-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 750;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.32);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.ghost-button {
  border: 1px solid rgba(226, 232, 240, 0.26);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: 0.22s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.content-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 54px 0;
}

.content-band {
  margin: 24px 0;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.72));
  border-block: 1px solid var(--line);
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-weight: 900;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 32px);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: #fbbf24;
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  transition: 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.movie-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  right: 10px;
  background: rgba(245, 158, 11, 0.95);
}

.rank-badge {
  left: 10px;
  background: rgba(15, 23, 42, 0.86);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.movie-card.horizontal a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
}

.movie-card.horizontal .poster-wrap {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

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

.category-card,
.category-overview-card a {
  position: relative;
  display: flex;
  min-height: 185px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.23);
}

.category-card {
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.category-card strong,
.category-overview-body h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.category-card em,
.category-overview-body p {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: 0.35s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
  opacity: 0.36;
  transform: scale(1.06);
}

.category-glow {
  position: absolute;
  inset: auto -24px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  filter: blur(12px);
}

.tone-yellow,
.tone-amber {
  --tone: #f59e0b;
}

.tone-orange {
  --tone: #fb923c;
}

.tone-purple {
  --tone: #a855f7;
}

.tone-blue {
  --tone: #3b82f6;
}

.tone-pink {
  --tone: #ec4899;
}

.tone-green {
  --tone: #22c55e;
}

.tone-teal {
  --tone: #14b8a6;
}

.tone-indigo {
  --tone: #6366f1;
}

.tone-slate {
  --tone: #94a3b8;
}

.category-card,
.category-overview-card a,
.page-hero {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, #f59e0b) 22%, transparent), 0 24px 60px rgba(0, 0, 0, 0.25);
}

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

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

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

.compact-card a {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  transition: 0.22s ease;
}

.compact-card a:hover {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.95);
}

.compact-card img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.compact-rank {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-weight: 900;
}

.compact-info {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.compact-info strong {
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-box {
  align-self: start;
  position: sticky;
  top: 94px;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 14rem),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow);
}

.spotlight-box h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.spotlight-box p {
  margin: 0 0 24px;
  color: var(--muted-strong);
  line-height: 1.75;
}

.page-hero {
  width: min(100% - 32px, var(--max));
  margin: 28px auto 0;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tone, #f59e0b) 20%, transparent), transparent 20rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

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

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

.category-overview-card a {
  min-height: 280px;
  flex-direction: column;
}

.category-thumbs {
  display: grid;
  height: 170px;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.category-overview-body {
  padding: 4px 18px 20px;
}

.category-overview-body span {
  display: inline-block;
  margin-top: 14px;
  color: #fbbf24;
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 24px;
}

.embedded-filter {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.75);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
}

.search-field input::placeholder {
  color: #64748b;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  cursor: pointer;
  transition: 0.22s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.18);
  color: #ffffff;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  color: var(--muted-strong);
  text-align: center;
}

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

.detail-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 50px;
}

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

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

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

.player-card,
.detail-info-card,
.poster-panel,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  width: 92px;
  height: 92px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 20px 55px rgba(234, 88, 12, 0.42);
  cursor: pointer;
  transition: 0.22s ease;
}

.player-start:hover {
  transform: scale(1.08);
}

.player-start span {
  margin-left: 6px;
  font-size: 36px;
}

.detail-info-card {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.detail-info-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.detail-info-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-info-card p {
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.85;
}

.one-line {
  margin: 20px 0;
  color: #e2e8f0;
  font-size: 18px;
}

.tag-row {
  margin: 16px 0 8px;
}

.poster-panel {
  overflow: hidden;
  padding: 14px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

.side-card {
  margin-top: 18px;
  padding: 18px;
}

.side-card h2 {
  margin-top: 0;
}

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

.side-card .compact-rank {
  display: none;
}

.side-card .compact-card img {
  width: 64px;
  height: 86px;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
}

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

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

.mini-brand .brand-name {
  font-size: 18px;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .grid-5,
  .grid-4,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-3,
  .ranking-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .menu-button {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

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

  .brand-subtitle {
    font-size: 11px;
  }

  .hero-stage {
    height: 620px;
    border-radius: 22px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.58) 58%, rgba(2, 6, 23, 0.18) 100%);
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 58px;
    width: auto;
  }

  .hero-arrow {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 30px;
    transform: none;
  }

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

  .hero-dots {
    bottom: 30px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .category-overview-grid,
  .ranking-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-card.horizontal .poster-wrap {
    aspect-ratio: 2 / 3;
    min-height: 0;
  }

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

@media (max-width: 520px) {
  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .category-overview-grid,
  .ranking-page-list {
    grid-template-columns: 1fr;
  }

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

  .compact-card img {
    width: 60px;
    height: 82px;
  }

  .page-hero,
  .content-section,
  .detail-shell,
  .header-inner,
  .footer-inner,
  .footer-bottom,
  .mobile-nav,
  .hero-stage {
    width: min(100% - 22px, var(--max));
  }

  .player-start {
    width: 76px;
    height: 76px;
  }
}
