:root {
  --blue-950: #0f172a;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --teal-300: #5eead4;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --green-600: #16a34a;
  --orange-500: #f97316;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.25);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.09), transparent 32rem);
  z-index: -1;
}

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: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: var(--white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #dbeafe, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #dbeafe;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--slate-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.06);
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.42) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, transparent 35%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 90px 0 120px;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 820px;
}

.hero-copy p {
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.35);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
}

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

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

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

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span, .play-bubble {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

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

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

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

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

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

.hero-thumbs {
  position: absolute;
  z-index: 4;
  right: max(32px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 12px;
}

.hero-thumbs a {
  width: 150px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-thumbs img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumbs span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.25;
}

.search-band {
  margin-top: -38px;
  position: relative;
  z-index: 8;
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.search-shell h2, .section-head h2, .page-hero h1 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.search-shell p, .section-head p, .page-hero p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.search-form, .filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-form input, .filter-bar input, .filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  background: var(--white);
  color: var(--gray-800);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.search-form input:focus, .filter-bar input:focus, .filter-bar select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-form button, .filter-bar button {
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

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

.feature-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card strong {
  font-size: 1.25rem;
  color: var(--gray-900);
}

.feature-card span {
  color: var(--gray-600);
  line-height: 1.7;
}

.feature-blue { border-top: 4px solid var(--blue-600); }
.feature-green { border-top: 4px solid var(--green-600); }
.feature-orange { border-top: 4px solid var(--orange-500); }
.feature-cyan { border-top: 4px solid var(--cyan-500); }

.section {
  padding: 76px 0;
}

.soft-section {
  background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900) 52%, #164e63);
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head a, .text-link {
  color: var(--blue-600);
  font-weight: 800;
}

.section-head.light h2, .section-head.light p, .dark-section .section-head h2, .dark-section .section-head p {
  color: var(--white);
}

.section-head.light p {
  color: #bfdbfe;
}

.section-head.compact {
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.wide-card .card-media {
  aspect-ratio: 16 / 9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.52), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-media::after {
  opacity: 1;
}

.type-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.play-bubble {
  z-index: 2;
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-bubble {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 1.05rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.18));
}

.category-tile div {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.category-tile p {
  margin: 0 0 12px;
  color: #dbeafe;
}

.category-tile ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  color: #cffafe;
  font-size: 0.9rem;
}

.rank-panel, .side-panel, .info-card, .player-card, .category-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.rank-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--blue-600));
  font-weight: 900;
  font-size: 0.85rem;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  color: #bfdbfe;
  font-style: normal;
  font-size: 0.82rem;
}

.page-hero {
  padding: 82px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(103, 232, 249, 0.24), transparent 30rem),
    linear-gradient(135deg, var(--blue-900), var(--slate-900));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.12rem;
}

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

.category-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}

.category-cover {
  min-height: 230px;
  background: #dbeafe;
}

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

.category-card-body {
  padding: 28px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mini-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eff6ff;
  font-size: 0.9rem;
}

.layout-with-side {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 46px 0 76px;
}

.side-panel {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.side-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 1.2rem;
}

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

.side-panel nav a {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: background 0.25s ease, color 0.25s ease;
}

.side-panel nav a:hover, .side-panel nav a.active {
  color: var(--white);
  background: var(--blue-600);
}

.content-panel {
  min-width: 0;
}

.filter-bar {
  grid-template-columns: minmax(220px, 1fr) 180px 150px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.empty-state {
  margin-top: 24px;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  background: var(--white);
  color: var(--gray-600);
  box-shadow: var(--shadow-md);
}

.ranking-wrap, .search-page {
  padding: 46px 0 76px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 74px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-weight: 900;
}

.ranking-card img {
  width: 120px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-card h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
}

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

.ranking-card span:last-child {
  color: var(--blue-600);
  font-weight: 800;
}

.search-page-form {
  grid-template-columns: minmax(240px, 1fr) 180px auto;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  color: var(--white);
  overflow: hidden;
  background: var(--slate-900);
}

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

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 44px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: #dbeafe;
}

.breadcrumb a {
  color: #cffafe;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 780px;
  color: #dbeafe;
  font-size: 1.14rem;
  line-height: 1.9;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 46px 0 80px;
}

.detail-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.34));
  cursor: pointer;
}

.video-start.hidden {
  display: none;
}

.video-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  font-size: 2rem;
}

.video-start strong {
  font-size: 1.1rem;
}

.player-info {
  padding: 22px;
}

.player-info h2, .info-card h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
}

.player-info p, .info-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.9;
}

.info-card {
  padding: 26px;
}

.meta-list dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.meta-list dt {
  color: var(--gray-500);
}

.meta-list dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.related-section {
  padding: 24px 0 0;
}

.detail-sidebar .rank-item {
  background: var(--gray-50);
}

.detail-sidebar .rank-copy em {
  color: var(--gray-500);
}

.stick {
  position: sticky;
  top: 96px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-thumbs {
    display: none;
  }

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

  .wide-grid, .two-column, .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    display: none;
  }

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

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav .nav-link {
    display: block;
  }

  .hero-carousel, .hero-content {
    min-height: 650px;
  }

  .hero-content {
    padding: 64px 0 110px;
  }

  .search-shell, .category-card, .layout-with-side, .detail-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .filter-bar, .search-page-form, .search-form {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-poster {
    max-width: 250px;
  }
}

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

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

  .hero-actions, .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .poster-grid, .wide-grid, .feature-grid, .category-grid {
    grid-template-columns: 1fr;
  }

  .card-media {
    aspect-ratio: 16 / 9;
  }

  .detail-grid {
    gap: 22px;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
