:root {
  color-scheme: dark;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --white: #ffffff;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --yellow: #facc15;
  --orange: #f97316;
  --rose: #f43f5e;
  --green: #22c55e;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--slate-900), var(--slate-800) 48%, var(--slate-900));
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  min-height: 4.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316, #facc15);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.28);
  font-size: 0.86rem;
}

.brand-text {
  font-size: 1.25rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-link {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--slate-400);
  font-size: 0.96rem;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #ea580c, #f59e0b, #eab308);
}

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

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

.hero-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.8)),
    var(--hero-img) center / cover no-repeat;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10rem;
  background: linear-gradient(0deg, var(--slate-900), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  height: 100%;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 48rem;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.home-panel span,
.section-title span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.22);
  font-size: 0.82rem;
}

.hero-actions,
.panel-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 45px rgba(6, 182, 212, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
  transition: 0.25s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(244, 63, 94, 0.25)),
    var(--poster) center / cover no-repeat;
}

.hero-card div:last-child {
  padding: 1rem;
}

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

.hero-card span {
  margin-top: 0.35rem;
  color: var(--slate-400);
}

.hero-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: 0.22s ease;
}

.hero-dot.active {
  width: 2.1rem;
  background: var(--white);
}

.content-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

.section-title {
  margin-bottom: 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title h2,
.page-hero h1,
.home-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-title span {
  color: #93c5fd;
}

.section-more {
  color: #93c5fd;
  font-weight: 800;
}

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

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

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

.movie-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  transition: 0.24s ease;
}

.movie-link:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 22px 46px rgba(59, 130, 246, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(59, 130, 246, 0.35)),
    var(--poster) center / cover no-repeat,
    linear-gradient(135deg, #1e293b, #0f172a);
}

.poster-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0) 62%);
  opacity: 0;
  transition: 0.24s ease;
}

.movie-link:hover .poster-video::after {
  opacity: 1;
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.4rem;
  opacity: 0;
  transform: scale(0.86);
  transition: 0.24s ease;
}

.movie-link:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.quality-badge,
.rank-badge {
  position: absolute;
  z-index: 4;
  top: 0.65rem;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 0.76rem;
}

.quality-badge {
  right: 0.65rem;
  padding: 0.25rem 0.55rem;
  background: rgba(239, 68, 68, 0.92);
}

.rank-badge {
  left: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.movie-info {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.movie-info h3 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0 0 0.85rem;
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.meta-row {
  margin-top: auto;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.card-bottom {
  margin-top: 0.85rem;
}

.category-pill {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
}

.rating {
  color: var(--yellow);
  font-weight: 800;
}

.tag-row {
  margin-top: 0.75rem;
}

.tag-row span {
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.07);
}

.band {
  margin: 1rem 0;
}

.band-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.band-cyan {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.82), rgba(8, 47, 73, 0.9), rgba(30, 64, 175, 0.72));
}

.band-rose {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.82), rgba(131, 24, 67, 0.88), rgba(127, 29, 29, 0.86));
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 20rem;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  min-height: 9.5rem;
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(5, 150, 105, 0.78));
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.18);
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 50px rgba(34, 197, 94, 0.28);
}

.category-tile strong,
.category-tile span {
  display: block;
}

.category-tile strong {
  margin-bottom: 0.65rem;
  font-size: 1.45rem;
}

.category-tile span {
  color: rgba(240, 253, 244, 0.86);
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 2rem;
  align-items: stretch;
}

.compact-list {
  display: grid;
  gap: 0.8rem;
}

.compact-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.72);
  transition: 0.22s ease;
}

.compact-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.96);
}

.compact-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(244, 63, 94, 0.22)),
    var(--poster) center / cover no-repeat,
    #0f172a;
}

.compact-rank {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--rose);
  font-size: 0.75rem;
  font-weight: 900;
}

.compact-item strong,
.compact-item span {
  display: block;
}

.compact-item span {
  margin-top: 0.25rem;
  color: var(--slate-400);
  font-size: 0.85rem;
}

.home-panel {
  padding: 2rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.18)),
    rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.home-panel p {
  color: var(--slate-300);
  line-height: 1.75;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.26), transparent 26rem),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero > div {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem;
  width: 100%;
}

.page-hero p {
  max-width: 45rem;
  color: var(--slate-300);
  font-size: 1.15rem;
  line-height: 1.75;
}

.small-hero {
  min-height: 19rem;
}

.ranking-hero {
  background:
    radial-gradient(circle at 75% 0%, rgba(244, 63, 94, 0.24), transparent 24rem),
    linear-gradient(135deg, #0f172a, #3f0f27);
}

.search-hero {
  background:
    radial-gradient(circle at 70% 10%, rgba(6, 182, 212, 0.24), transparent 24rem),
    linear-gradient(135deg, #0f172a, #0c4a6e);
}

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

.category-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.4rem;
  background: rgba(30, 41, 59, 0.86);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.42);
}

.category-card-art {
  min-height: 8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
}

.category-card-art span {
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(244, 63, 94, 0.24)),
    var(--poster) center / cover no-repeat,
    #1e293b;
}

.category-card-body {
  padding: 1.25rem;
}

.category-card-body h2 {
  margin: 0 0 0.55rem;
}

.category-card-body p {
  margin: 0 0 1rem;
  color: var(--slate-400);
  line-height: 1.65;
}

.category-card-body span {
  color: #86efac;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 1.4rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.2rem;
  background: rgba(30, 41, 59, 0.78);
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--slate-400);
  transform: translateY(-50%);
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0.9rem;
  color: var(--white);
  background: rgba(15, 23, 42, 0.86);
  outline: 2px solid transparent;
  transition: 0.18s ease;
}

.search-box input {
  padding: 0 1rem 0 2.7rem;
}

.filter-panel select {
  max-width: 12rem;
  padding: 0 1rem;
}

.search-box input:focus,
.filter-panel select:focus {
  outline-color: rgba(59, 130, 246, 0.55);
}

.empty-state {
  display: none;
  margin-top: 1.2rem;
  padding: 2rem;
  border-radius: 1.2rem;
  background: rgba(30, 41, 59, 0.8);
  color: var(--slate-300);
  text-align: center;
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 2rem;
  align-items: start;
}

.ranking-sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.ranking-sidebar h2 {
  margin: 0 0 1rem;
}

.detail-hero {
  min-height: 34rem;
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.92)),
    var(--detail-img) center / cover no-repeat;
  filter: saturate(1.1);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-400);
  font-size: 0.95rem;
}

.breadcrumb a:hover {
  color: #93c5fd;
}

.detail-grid {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(244, 63, 94, 0.2)),
    var(--poster) center / cover no-repeat,
    #1e293b;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 48rem;
  color: var(--slate-300);
  font-size: 1.18rem;
  line-height: 1.75;
}

.detail-meta {
  margin: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-meta span {
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
}

.detail-section {
  padding-top: 3.5rem;
}

.player-panel {
  border-radius: 1.5rem;
  background: #000;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

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

.cover-play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.72));
  transition: 0.25s ease;
}

.cover-play span {
  width: 5.5rem;
  height: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  font-size: 2.3rem;
}

.cover-play:hover span {
  transform: scale(1.06);
}

.cover-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.article-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.article-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.article-panel p {
  margin: 0 0 1.2rem;
  color: var(--slate-300);
  line-height: 1.85;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.info-table div {
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.72);
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  margin-bottom: 0.3rem;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.info-table strong {
  color: var(--slate-100);
  font-weight: 700;
}

.site-footer {
  margin-top: 2rem;
  background: rgba(2, 6, 23, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
  color: var(--slate-400);
  line-height: 1.75;
}

.footer-grid h3 {
  margin: 0 0 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

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

  .category-overview-grid,
  .ranking-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .ranking-sidebar {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 0.5rem;
  }

  .mobile-nav .nav-link {
    display: block;
    background: rgba(255, 255, 255, 0.06);
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 4rem;
  }

  .hero-card {
    max-width: 18rem;
    transform: none;
  }

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

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

  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel select {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .content-section {
    padding: 3rem 0.85rem;
  }

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

  .scroll-row {
    grid-auto-columns: 82vw;
  }

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

  .detail-poster {
    max-width: 14rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
