:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand {
  font-size: 24px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  color: currentColor;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-menu a {
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: #dbeafe;
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 210px;
  padding: 10px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}

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

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

.dropdown-panel a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.search-box {
  position: relative;
}

.header-search {
  width: 260px;
}

.site-search-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 16px 9px 42px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: border 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.site-search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.site-search-input:focus {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: 430px;
  overflow-y: auto;
  color: var(--gray-900);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
}

.search-results a {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.search-results a:hover {
  background: #eff6ff;
}

.search-results strong {
  display: block;
  font-size: 15px;
}

.search-results span {
  display: block;
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(30, 64, 175, 0.35);
  backdrop-filter: blur(10px);
}

.mobile-menu-inner {
  display: grid;
  gap: 10px;
  padding: 16px 0 18px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-slider {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.4s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
  color: var(--white);
  padding-top: 40px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-actions,
.sub-hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--blue);
  background: var(--white);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

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

.hero-dot,
.hero-arrow {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-dot {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  opacity: 0.58;
}

.hero-dot.is-active {
  opacity: 1;
  background: var(--white);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.quick-search-section {
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.quick-search-card h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 32px);
}

.quick-search-card p {
  margin: 0;
  color: var(--gray-500);
}

.quick-links a {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 750;
}

.quick-links a:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.soft-bg {
  background: var(--gray-100);
}

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

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

.section-heading p {
  margin: 0;
  color: var(--gray-500);
}

.section-action,
.ranking-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 42px;
}

.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 22px;
}

.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-size: 14px;
}

.category-tile img {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 128px;
  height: 168px;
  border-radius: 18px;
  object-fit: cover;
  opacity: 0.32;
  transform: rotate(10deg);
}

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

.gradient-blue-indigo {
  background: linear-gradient(135deg, #60a5fa, #6366f1);
}

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

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

.gradient-violet-blue {
  background: linear-gradient(135deg, #8b5cf6, #2563eb);
}

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

.gradient-cyan-blue {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}

.gradient-slate-indigo {
  background: linear-gradient(135deg, #475569, #4f46e5);
}

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

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

.large-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.72));
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-meta-line,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.ranking-page-item h2 a:hover {
  color: var(--blue);
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #2563eb;
  background: #eff6ff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(145deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow-strong);
}

.ranking-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.ranking-panel-head span {
  font-size: 34px;
}

.ranking-panel-head h2 {
  margin: 0 0 2px;
}

.ranking-panel-head p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease;
}

.rank-card:hover {
  background: rgba(255, 255, 255, 0.11);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  aspect-ratio: 3 / 4;
}

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

.rank-number {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: #facc15;
  font-weight: 900;
  font-size: 12px;
}

.rank-card h3 {
  margin: 2px 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.rank-card p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-more {
  width: 100%;
  margin-top: 18px;
  color: var(--slate-900);
  background: var(--white);
}

.sub-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #1d4ed8 58%, #14b8a6);
  padding: 82px 0 70px;
}

.sub-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #bfdbfe;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sub-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.sub-hero-actions {
  margin-top: 28px;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  overflow: hidden;
  min-height: 250px;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-copy {
  position: relative;
  z-index: 2;
}

.category-overview-copy span {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.82);
}

.category-overview-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.category-overview-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-self: center;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-bar button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: var(--blue);
  background: var(--white);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
  padding: 34px 0 70px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.54;
}

.detail-layout {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 44px rgba(239, 68, 68, 0.4);
  font-size: 32px;
}

.watch-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.watch-info p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta-grid span {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.detail-text-card,
.detail-side-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-text-card + .detail-text-card {
  margin-top: 22px;
}

.detail-text-card h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-text-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side-card {
  position: sticky;
  top: 94px;
}

.detail-side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--gray-500);
  font-size: 13px;
}

.detail-side-card dd {
  margin: -8px 0 0;
  font-weight: 800;
}

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

.ranking-page-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

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

.ranking-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: #facc15;
  font-weight: 900;
}

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

.ranking-page-item p {
  margin: 0 0 12px;
  color: var(--gray-500);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(145deg, var(--slate-950), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
  gap: 28px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
}

.footer-grid p {
  margin: 0 0 16px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: #60a5fa;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.12);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: #94a3b8;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search {
    width: 220px;
  }

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

  .split-layout,
  .watch-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-side-card {
    position: static;
  }
}

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

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

  .mobile-search {
    width: 100%;
  }

  .hero-slider {
    height: 560px;
  }

  .quick-search-card,
  .section-heading,
  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .large-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover-stack {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .brand {
    font-size: 20px;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .large-list,
  .footer-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .sub-hero {
    padding: 58px 0 52px;
  }

  .ranking-page-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

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