:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f97316;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 20px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a {
  padding: 9px 13px;
  color: #334155;
  border-radius: 12px;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--primary);
  background: #eff6ff;
  transform: translateY(-1px);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

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

.header-search input {
  padding: 9px 4px 9px 14px;
  font-size: 14px;
}

.header-search button,
.mobile-search button,
.quick-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  cursor: pointer;
  white-space: nowrap;
}

.header-search button {
  padding: 9px 13px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

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

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.mobile-search {
  display: flex;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

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

.mobile-search button {
  padding: 10px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.45), transparent 26%),
    linear-gradient(135deg, #1d4ed8 0%, #0891b2 54%, #0f172a 100%);
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.28;
}

.hero-glow-one {
  left: -80px;
  top: 60px;
  background: #ffffff;
}

.hero-glow-two {
  right: 6%;
  bottom: -120px;
  background: #22d3ee;
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: relative;
  min-height: 560px;
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 56px;
  padding: 70px 0 86px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

.hero-bg {
  position: absolute;
  inset: -12% -8% auto auto;
  width: 70%;
  height: 124%;
  object-fit: cover;
  opacity: 0.16;
  transform: rotate(-4deg) scale(1.08);
  border-radius: 42px;
  filter: saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 700px;
  margin: 22px 0 0;
  color: #e0f2fe;
  font-size: clamp(18px, 2vw, 24px);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-tags span {
  padding: 7px 12px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

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

.btn-primary {
  color: var(--primary-deep);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  justify-self: end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 40%);
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.hero-dots .hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots .hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.quick-search-panel {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.quick-search-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.quick-search {
  display: flex;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.quick-search input {
  padding: 0 18px;
}

.quick-search button {
  padding: 0 24px;
  font-weight: 800;
}

.page-section {
  padding: 54px 0 0;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.heading-mark {
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
}

.heading-mark-red {
  background: linear-gradient(180deg, var(--red), var(--orange));
}

.heading-mark-green {
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

.heading-mark-purple {
  background: linear-gradient(180deg, var(--purple), var(--pink));
}

.heading-mark-cyan {
  background: linear-gradient(180deg, var(--cyan), var(--primary));
}

.section-more {
  color: var(--primary);
  font-weight: 800;
}

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

.archive-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe 45%, #f8fafc);
}

.poster-frame::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(16px);
}

.poster-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card-link:hover .poster-overlay {
  background: rgba(15, 23, 42, 0.38);
  opacity: 1;
}

.play-dot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px 10px 10px;
  color: #ffffff;
  font-size: 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.84));
}

.movie-card-body {
  padding: 13px 13px 15px;
}

.movie-card-body h3 {
  min-height: 44px;
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

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

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 3px 8px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
}

.category-tile-grid,
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.category-tile,
.category-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.18);
}

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -24px;
  bottom: -34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile span,
.category-card-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-tile strong,
.category-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.category-tile em {
  display: inline-block;
  margin-top: 18px;
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.gradient-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-green {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

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

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

.gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.gradient-pink {
  background: linear-gradient(135deg, #db2777, #fb7185);
}

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

.ranking-preview {
  display: grid;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-number {
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 24px;
  font-weight: 900;
}

.ranking-row img,
.ranking-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  border-radius: 12px;
}

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

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

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
}

.simple-hero {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.category-hero p,
.simple-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 0.35fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.related-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 8px;
}

.related-category-links a {
  padding: 8px 12px;
  color: var(--primary);
  background: #eff6ff;
  border-radius: 999px;
  font-weight: 800;
}

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

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

.ranking-card a {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-card-number {
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

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

.ranking-card p {
  margin: 4px 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-card span:last-child {
  color: #334155;
  font-size: 13px;
}

.detail-main {
  background: #f8fafc;
}

.watch-section {
  padding: 34px 0 54px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.22), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 58%, #1e3a8a);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #ffffff;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 18px;
}

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

.detail-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.detail-panel h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
}

.detail-panel p {
  margin: 16px 0 0;
  color: #dbeafe;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span,
.detail-tags span {
  padding: 7px 11px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding-top: 38px;
}

.content-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #334155;
}

.accent-card {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.site-footer {
  margin-top: 64px;
  padding: 36px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}

.footer-grid p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px 18px;
}

.footer-links a {
  color: #e2e8f0;
}

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

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-layout,
  .quick-search-panel,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(290px, 72vw);
  }

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

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

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

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 48px 0 90px;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .quick-search-panel {
    margin-top: -24px;
    padding: 20px;
  }

  .quick-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .quick-search input,
  .quick-search button {
    min-height: 48px;
  }

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

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

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

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

  .ranking-card img {
    display: none;
  }

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

  .footer-links {
    justify-content: start;
  }
}
