:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #111827;
  --card: #111827;
  --card-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --yellow: #facc15;
  --pink: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

* {
  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;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(37, 99, 235, 0.2), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  border-bottom: 1px solid var(--line);
}

.header-shell,
.footer-shell,
.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-shell {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  background: linear-gradient(135deg, #22d3ee, #2563eb 58%, #7c3aed);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.22);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: white;
}

.nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  color: white;
  background: rgba(148, 163, 184, 0.12);
}

.header-search {
  width: 280px;
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.84);
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  padding: 0 0 0 18px;
}

.header-search button {
  width: 48px;
  height: 100%;
  border: 0;
  cursor: pointer;
  color: white;
  background: transparent;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  background: rgba(30, 41, 59, 0.75);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  color: white;
  background: rgba(30, 41, 59, 0.84);
}

.mobile-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

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

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

.mobile-cats a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding: 54px 0 120px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0 32px;
  color: #cbd5e1;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.6);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-thumbs {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 98px;
  z-index: 4;
  width: min(420px, 42vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.3);
}

.hero-thumb img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 12px black;
}

.hero-thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 58%);
}

.hero-thumb:hover img,
.hero-thumb.is-active img {
  opacity: 1;
  transform: scale(1.06);
}

.main-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 26px 58px rgba(2, 6, 23, 0.42);
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  background: var(--yellow);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.25);
}

.score-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.1));
  transition: opacity 0.25s ease;
}

.poster-glow span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(34, 211, 238, 0.92);
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.25);
}

.movie-card:hover .poster-glow {
  opacity: 1;
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 68px rgba(2, 6, 23, 0.36);
}

.category-tile:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 5%, rgba(255, 255, 255, 0.22), transparent 12rem);
}

.category-tile > * {
  position: relative;
  z-index: 1;
}

.cat-icon {
  font-size: 34px;
}

.category-tile strong {
  margin-top: 18px;
  font-size: 22px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.tone-red {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.tone-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tone-violet {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.tone-amber {
  background: linear-gradient(135deg, #d97706, #eab308);
}

.tone-orange {
  background: linear-gradient(135deg, #f97316, #fb7185);
}

.tone-cyan {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.tone-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.tone-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
}

.tone-green {
  background: linear-gradient(135deg, #16a34a, #0d9488);
}

.tone-indigo {
  background: linear-gradient(135deg, #4338ca, #0891b2);
}

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

.rank-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: rgba(148, 163, 184, 0.12);
}

.rank-num {
  color: var(--cyan);
  font-weight: 1000;
  font-size: 18px;
}

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  margin-bottom: 6px;
}

.rank-info small {
  color: var(--muted);
}

.rank-score {
  color: var(--yellow);
  font-weight: 1000;
}

.cta-band {
  margin: 72px auto 0;
  padding: 44px;
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(135deg, #0891b2, #2563eb 58%, #7c3aed);
  box-shadow: 0 32px 88px rgba(37, 99, 235, 0.28);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.cta-band p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: #dbeafe;
  line-height: 1.8;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 16px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 0%, rgba(34, 211, 238, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.page-hero-card p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: white;
  background: rgba(30, 41, 59, 0.9);
  padding: 0 14px;
}

.filter-empty {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 22px;
}

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

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

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;
}

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

.breadcrumb a {
  color: #cbd5e1;
}

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

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: black;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.48);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 900;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.2));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 24px 58px rgba(34, 211, 238, 0.28);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: white;
  background: rgba(185, 28, 28, 0.84);
}

.player-message.is-visible {
  display: block;
}

.detail-main-card,
.detail-side-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.detail-main-card {
  padding: clamp(24px, 4vw, 34px);
}

.detail-main-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.12);
}

.detail-main-card h2,
.related-section h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-main-card p {
  color: #cbd5e1;
  line-height: 1.92;
  font-size: 17px;
}

.detail-side-card {
  padding: 18px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
}

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

.side-title {
  margin: 18px 0 10px;
  font-size: 22px;
}

.side-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
}

.side-list a:hover {
  color: white;
  background: rgba(34, 211, 238, 0.15);
}

.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 58px auto 0;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 74px 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
}

.ranking-card .big-rank {
  font-size: 30px;
  font-weight: 1000;
  color: var(--cyan);
}

.ranking-card img {
  width: 118px;
  height: 154px;
  object-fit: cover;
  border-radius: 18px;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ranking-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-card .ranking-score {
  text-align: right;
  color: var(--yellow);
  font-size: 26px;
  font-weight: 1000;
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 34px;
  padding: 42px 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
}

.footer-links a:hover {
  color: white;
  background: rgba(34, 211, 238, 0.15);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-thumbs {
    display: none;
  }

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

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

  .feature-layout,
  .detail-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 590px;
  }

  .hero-copy {
    padding-bottom: 100px;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

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

  .movie-card-body h3 {
    font-size: 16px;
  }

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

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

  .ranking-card img {
    width: 86px;
    height: 118px;
  }

  .ranking-card .ranking-score {
    grid-column: 3;
    text-align: left;
    font-size: 18px;
  }
}

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

  .hero-controls {
    bottom: 24px;
  }

  .hero-arrow {
    display: none;
  }
}
