:root {
  --slate-950: #020617;
  --slate-925: #07111f;
  --slate-900: #0f172a;
  --slate-850: #142033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --purple-900: #581c87;
  --text-main: #fff7df;
  --text-soft: rgba(254, 243, 199, 0.72);
  --text-muted: rgba(254, 243, 199, 0.55);
  --border-soft: rgba(245, 158, 11, 0.18);
  --border-strong: rgba(245, 158, 11, 0.35);
  --glass: rgba(15, 23, 42, 0.72);
  --glass-light: rgba(30, 41, 59, 0.58);
  --shadow-amber: 0 20px 60px rgba(245, 158, 11, 0.2);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(88, 28, 135, 0.32), transparent 36rem),
    linear-gradient(180deg, var(--slate-950), var(--slate-900) 48%, var(--slate-950));
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

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

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.88), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--amber-400);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.18);
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  animation: spin 1.2s linear infinite;
}

.brand-name,
.footer-brand span:last-child {
  font-size: 1.28rem;
  background: linear-gradient(90deg, var(--amber-100), var(--amber-400), var(--amber-100));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--amber-100);
  font-size: 0.96rem;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-400);
  opacity: 1;
}

.header-search {
  width: min(280px, 28vw);
  position: relative;
}

.header-search input,
.mobile-search input,
.filter-search input {
  width: 100%;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.header-search input::placeholder,
.mobile-search input::placeholder,
.filter-search input::placeholder {
  color: rgba(252, 211, 77, 0.58);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16);
  background: rgba(255, 255, 255, 0.14);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--amber-400);
  background: transparent;
  border: 0;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid var(--border-soft);
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  padding: 10px 14px;
}

.mobile-search button,
.filter-buttons button {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), #d97706);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.mobile-links,
.mobile-category-links {
  display: grid;
  gap: 8px;
}

.mobile-category-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.mobile-links a,
.mobile-category-links a {
  color: var(--amber-100);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

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

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.25)),
    linear-gradient(0deg, var(--slate-950), rgba(15, 23, 42, 0.28) 45%, rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 360px);
  align-items: center;
  gap: 48px;
  padding-top: 54px;
  padding-bottom: 54px;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 18px;
  color: white;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(254, 243, 199, 0.86);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  line-height: 1.78;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.detail-labels span {
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.hero-stats,
.detail-stats {
  margin: 24px 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-stats span,
.detail-stats span {
  position: relative;
}

.hero-stats span:not(:last-child)::after,
.detail-stats span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 10px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--amber-500);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), #b45309);
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.34);
}

.ghost-button,
.section-more {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-amber);
}

.hero-poster {
  align-self: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.86rem;
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: rgba(15, 23, 42, 0.72);
  color: var(--amber-100);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

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

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

.section-muted {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.16), rgba(15, 23, 42, 0.32));
  border-top: 1px solid rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.08);
}

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

.section-header h2,
.compact-hero h1,
.detail-title-card h1 {
  margin: 8px 0 0;
  color: var(--amber-100);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-header p,
.compact-hero p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

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

.featured-grid,
.ranking-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--glass-light);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), var(--shadow-amber);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--slate-850);
}

.featured-grid .poster-wrap,
.ranking-grid .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.play-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: white;
  background: rgba(245, 158, 11, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

.duration-chip {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.38);
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.movie-card h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--amber-100);
  font-size: 1.06rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
  color: var(--amber-400);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 0.72rem;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.category-tile,
.category-overview-card a,
.content-card,
.side-card,
.detail-title-card,
.filter-panel {
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(30, 41, 59, 0.62);
}

.category-tile span:first-child {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--amber-400);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.16);
}

.category-tile strong,
.category-overview-body h2 {
  color: var(--amber-100);
  font-size: 1.25rem;
}

.category-tile em,
.category-overview-body p {
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.7;
}

.category-tile small,
.category-overview-body span {
  color: var(--amber-400);
  font-weight: 900;
}

.category-overview-card a {
  display: block;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: var(--slate-850);
}

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

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2,
.category-overview-body p {
  margin: 8px 0 0;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-search {
  display: grid;
  gap: 8px;
}

.filter-search label {
  color: var(--amber-100);
  font-weight: 900;
}

.filter-search input {
  padding: 13px 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 9px 14px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), #b45309);
  border-color: transparent;
}

.filter-count {
  margin: 0;
  color: var(--text-muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 54px;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.18), transparent 25rem),
    radial-gradient(circle at 80% 10%, rgba(88, 28, 135, 0.32), transparent 30rem),
    rgba(2, 6, 23, 0.48);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.breadcrumb strong {
  color: var(--amber-100);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 230px;
  padding-top: 58px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.48);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--slate-950), rgba(2, 6, 23, 0.56));
}

.detail-section {
  padding-top: 0;
}

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

.detail-main,
.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  margin-top: -76px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: white;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 16rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26));
  border: 0;
  text-align: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), #b45309);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.34);
}

.player-play-icon svg {
  width: 30px;
  height: 30px;
}

.player-overlay strong {
  font-size: 1.28rem;
}

.player-overlay em {
  max-width: 360px;
  color: rgba(255, 247, 223, 0.78);
  font-style: normal;
  line-height: 1.6;
}

.detail-title-card,
.content-card,
.side-card {
  padding: 22px;
}

.detail-title-card h1 {
  margin-top: 14px;
}

.detail-title-card p,
.content-card p {
  color: var(--text-soft);
  line-height: 1.9;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 1.28rem;
}

.detail-tags {
  gap: 8px;
}

.poster-card {
  padding: 0;
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.info-card dt {
  color: var(--text-muted);
}

.info-card dd {
  min-width: 0;
  margin: 0;
  color: var(--amber-100);
}

.info-card dd a:hover {
  color: var(--amber-400);
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.next-links a,
.next-links span {
  display: grid;
  place-items: center;
  min-height: 40px;
  color: var(--amber-100);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.next-links a:hover {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), #b45309);
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 50px 68px minmax(0, 1.1fr) minmax(0, 1fr) 120px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  color: var(--amber-100);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(30, 41, 59, 0.6);
}

.ranking-row[hidden] {
  display: none;
}

.ranking-number {
  color: var(--amber-400);
  font-weight: 950;
  font-size: 1.18rem;
}

.ranking-row img {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.ranking-info,
.ranking-heat {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-footer {
  padding-top: 54px;
  color: var(--text-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), var(--slate-950));
  border-top: 1px solid var(--border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 1.05rem;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 22px 0;
  border-top: 1px solid rgba(245, 158, 11, 0.12);
  color: rgba(254, 243, 199, 0.52);
  font-size: 0.9rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-sidebar .next-card {
    grid-column: 1 / -1;
  }

  .ranking-row {
    grid-template-columns: 42px 58px minmax(0, 1fr) 96px;
  }

  .ranking-info {
    display: none;
  }

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

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

  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding-top: 42px;
    padding-bottom: 86px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

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

  .section-header {
    display: grid;
  }

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

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

  .movie-card p {
    display: none;
  }

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

  .video-player {
    margin-top: -46px;
    border-radius: 18px;
  }

  .detail-title-card,
  .content-card,
  .side-card,
  .filter-panel {
    padding: 16px;
  }

  .ranking-row {
    grid-template-columns: 34px 54px minmax(0, 1fr);
  }

  .ranking-heat {
    display: none;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

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

@media (max-width: 420px) {
  .movie-grid,
  .featured-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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