:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: #1e293b;
  --panel-soft: rgba(30, 41, 59, 0.78);
  --panel-strong: #111827;
  --line: rgba(245, 158, 11, 0.22);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --faint: #64748b;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --rose: #fb7185;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

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

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-bright);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

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

.nav-link {
  color: #d1d5db;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-bright);
}

.header-search {
  width: min(270px, 25vw);
  position: relative;
  display: flex;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 10px 12px;
}

.header-search button {
  width: 42px;
  align-self: stretch;
  border: 0;
  background: #334155;
  color: var(--amber-bright);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #0f172a;
}

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

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: grid;
  gap: 14px;
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 8px;
}

.mobile-category-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #1e293b;
  color: #d1d5db;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
}

.mobile-search input {
  padding: 12px;
}

.mobile-search button {
  border: 0;
  padding: 0 18px;
  color: #111827;
  background: var(--amber);
  font-weight: 800;
}

.hero {
  position: relative;
  height: 620px;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease, transform 4s ease;
  pointer-events: none;
}

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

.hero-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(245, 158, 11, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.96));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 60px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-bright);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--amber-bright);
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-subtitle,
.page-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 25px);
}

.hero-focus {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-focus span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-focus strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-focus em {
  display: block;
  margin-top: 10px;
  color: #d1d5db;
  font-style: normal;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #111827;
  background: var(--amber);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.22);
}

.button-primary:hover {
  background: var(--amber-bright);
}

.button-ghost {
  color: #e5e7eb;
  background: rgba(51, 65, 85, 0.9);
}

.button-dark {
  color: #e5e7eb;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(15, 23, 42, 0.5);
}

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

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

.hero-tags span,
.detail-meta span,
.meta-row span,
.card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.82);
  color: #d1d5db;
  font-size: 13px;
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0) translateY(-8px);
}

.hero-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-poster div {
  position: absolute;
  inset: auto 0 0;
  padding: 80px 22px 22px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent);
}

.hero-poster strong,
.hero-poster span {
  display: block;
}

.hero-poster strong {
  color: #fff;
  font-size: 24px;
}

.hero-poster span {
  color: var(--amber-bright);
}

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

.hero-dot {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
  padding: 72px 0;
}

.section-block.no-top {
  padding-top: 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--amber-bright);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

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

.section-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(51, 65, 85, 0.8);
  font-size: 26px;
  font-weight: 900;
}

.section-icon.amber { color: var(--amber-bright); }
.section-icon.cyan { color: var(--cyan); }
.section-icon.emerald { color: var(--emerald); }
.section-icon.rose { color: var(--rose); }

.heading-link {
  margin-left: auto;
  color: var(--amber-bright);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(245, 158, 11, 0.17);
}

.poster-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img,
.wide-cover img,
.compact-card img,
.rank-row img,
.poster-side img,
.rank-spot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.movie-card-wide:hover img,
.compact-card:hover img,
.rank-row:hover img,
.rank-spot:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.08) 58%, transparent);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111827;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: var(--rose);
  color: #fff;
}

.poster-title {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  padding: 18px;
}

.poster-title h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-title span {
  color: var(--muted);
  font-size: 13px;
}

.card-body {
  padding: 18px;
}

.card-body p,
.wide-body p,
.rank-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 14px;
  justify-content: space-between;
}

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

.movie-card-wide a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 145px;
}

.wide-cover {
  overflow: hidden;
  background: #111827;
}

.wide-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wide-body h3 {
  margin: 0 0 8px;
  color: var(--emerald);
  font-size: 20px;
}

.ranking-band {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
}

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

.category-tile,
.category-overview-card > a {
  display: block;
  min-height: 156px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid #334155;
  background:
    radial-gradient(circle at 100% 0, rgba(245, 158, 11, 0.18), transparent 42%),
    rgba(30, 41, 59, 0.9);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card > a:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 24px 50px rgba(34, 211, 238, 0.08);
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong,
.category-overview-card p {
  display: block;
  margin: 0;
  color: #d1d5db;
  font-size: 15px;
  font-weight: 500;
}

.accent-amber span,
.accent-amber h2 { color: var(--amber-bright); }
.accent-cyan span,
.accent-cyan h2 { color: var(--cyan); }
.accent-emerald span,
.accent-emerald h2 { color: var(--emerald); }
.accent-rose span,
.accent-rose h2 { color: var(--rose); }

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.compact-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.88);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  background: #334155;
}

.compact-card img {
  grid-row: 1 / 3;
  width: 78px;
  height: 78px;
  border-radius: 12px;
}

.compact-card span {
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card small {
  color: var(--muted);
}

.cta-panel {
  padding: clamp(34px, 5vw, 58px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0, rgba(251, 191, 36, 0.2), transparent 35%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.28), rgba(30, 41, 59, 0.95));
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 12px;
  color: var(--amber-bright);
  font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: #d1d5db;
}

.hero-search {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
}

.hero-search input {
  padding: 16px 18px;
}

.hero-search button {
  border: 0;
  padding: 0 26px;
  color: #111827;
  background: var(--amber);
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.compact-hero {
  min-height: 320px;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 54px 0;
}

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

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

.filter-panel {
  margin: 40px 0 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 22px;
  align-items: center;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.84);
  border: 1px solid #334155;
}

.filter-head h2 {
  margin: 0 0 6px;
  color: var(--amber-bright);
}

.filter-head p {
  margin: 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.82);
}

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

.category-overview-card .mini-card-row {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.category-overview-card .compact-card {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 8px;
}

.category-overview-card .compact-card img {
  width: 58px;
  height: 58px;
}

.rank-spotlight {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
}

.rank-spot {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.rank-spot img {
  position: absolute;
  inset: 0;
}

.rank-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.18));
}

.rank-spot div {
  position: relative;
  z-index: 2;
  padding: 26px;
}

.rank-spot span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
  background: var(--amber);
  font-weight: 900;
}

.rank-spot h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
}

.rank-spot p {
  margin: 0;
  color: #d1d5db;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 64px 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.88);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(6px);
  background: #334155;
}

.rank-row strong {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #111827;
  background: var(--amber);
  font-size: 20px;
}

.rank-row img {
  width: 110px;
  height: 76px;
  border-radius: 14px;
}

.rank-row h3 {
  margin: 0 0 6px;
  color: #fff;
}

.rank-row span {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 13px;
}

.detail-layout {
  padding-top: 34px;
}

.detail-breadcrumb {
  margin: 0 0 22px;
}

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

.detail-main,
.side-card {
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.9);
  box-shadow: var(--shadow);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  background: #000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: var(--amber);
  font-size: 40px;
  box-shadow: 0 0 0 18px rgba(245, 158, 11, 0.15);
}

.player-controls {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player:hover .player-controls,
.player:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(51, 65, 85, 0.75);
}

.player-controls button:hover {
  color: #111827;
  background: var(--amber);
}

.player-title {
  flex: 1;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.detail-content h1 {
  margin: 0 0 18px;
  color: var(--amber-bright);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-meta {
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #334155;
}

.detail-content section {
  margin-top: 28px;
}

.detail-content h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--amber-bright);
  font-size: 22px;
}

.detail-content p,
.detail-content blockquote {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
}

.detail-content blockquote {
  padding: 22px;
  border-radius: 16px;
  background: rgba(51, 65, 85, 0.62);
  font-style: italic;
}

.tag-list,
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-list span,
.side-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #d1d5db;
  background: #334155;
  font-size: 13px;
}

.tag-list span:hover {
  color: #111827;
  background: var(--amber);
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.poster-side {
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  height: 430px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 10px;
  margin: 0;
}

.side-card dt {
  color: var(--faint);
}

.side-card dd {
  margin: 0;
  color: #d1d5db;
}

.site-footer {
  margin-top: 74px;
  background: #020617;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 52px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-bright);
  font-size: 17px;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--amber-bright);
}

.footer-bottom {
  padding: 20px;
  text-align: center;
  color: var(--faint);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

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

@media (max-width: 1180px) {
  .movie-grid,
  .featured-grid,
  .full-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 380px;
    height: 380px;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    height: auto;
    min-height: 720px;
  }

  .hero-slide {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 58px 0 86px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .full-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .detail-grid,
  .footer-grid,
  .rank-spotlight {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

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

  .hero,
  .hero-slide {
    min-height: 760px;
  }

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

  .hero-focus {
    padding: 18px;
  }

  .hero-actions,
  .filter-controls,
  .hero-search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-search button {
    min-height: 48px;
  }

  .movie-grid,
  .featured-grid,
  .full-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 340px;
  }

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

  .rank-row a {
    grid-template-columns: 44px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row strong {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .rank-row img {
    width: 82px;
    height: 70px;
  }

  .player-controls {
    gap: 8px;
    padding: 12px;
  }

  .player-controls button {
    padding: 7px 9px;
    font-size: 13px;
  }

  .poster-side img {
    height: 360px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .heading-link {
    display: none;
  }
}
