:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --gold-200: #fde68a;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(148, 163, 184, 0.25);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 52%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.38);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, #fde68a, #fdba74, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  color: #d1d5db;
  font-size: 15px;
  font-weight: 700;
  padding: 22px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: #fbbf24;
}

.header-search {
  position: relative;
  margin-left: auto;
  width: min(320px, 28vw);
}

.search-input,
.filter-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input::placeholder,
.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.search-input:focus,
.filter-input:focus {
  border-color: rgba(251, 191, 36, 0.8);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 120;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-results a,
.search-results span {
  display: block;
  color: #111827;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
}

.search-results a:hover {
  color: #b45309;
  background: #fffbeb;
}

.search-results small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
  display: block;
  border-radius: 12px;
  padding: 12px 14px;
  color: #d1d5db;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: #f59e0b;
}

.mobile-search {
  position: relative;
  margin-top: 12px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.7) 46%, rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.8) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  padding-right: 44%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span,
.hero-kicker a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
}

.hero-kicker span {
  background: #f59e0b;
  color: #fff;
}

.hero-kicker a {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
  color: #d1d5db;
  font-weight: 700;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.32);
}

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

.btn-soft {
  color: #b45309;
  background: #fffbeb;
}

.hero-control {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.hero-thumbs {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 16px));
  bottom: 74px;
  z-index: 5;
  display: grid;
  gap: 10px;
  width: min(340px, 30vw);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 8px;
  color: #fff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

.hero-thumb:hover {
  background: rgba(245, 158, 11, 0.72);
}

.hero-thumb img {
  width: 68px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.home-search-panel {
  position: relative;
  z-index: 9;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 44px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

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

.wide-search {
  position: relative;
}

.wide-search .search-input {
  height: 52px;
  color: #111827;
  border-color: #e5e7eb;
  background: #f9fafb;
}

.wide-search .search-input::placeholder {
  color: #9ca3af;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 68px;
}

.home-shell {
  padding-top: 0;
}

.compact-shell {
  padding: 0;
}

.content-section {
  margin-bottom: 72px;
}

.highlight-section,
.ranking-panel,
.latest-section {
  border-radius: 34px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 237, 213, 0.98));
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.14);
}

.latest-section,
.ranking-panel {
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

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

.section-head > div {
  min-width: 0;
}

.section-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

.section-head h2 {
  display: inline-block;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 900;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: #b45309;
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.78));
}

.movie-badge,
.rank-ribbon {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(245, 158, 11, 0.96);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.26);
}

.rank-ribbon {
  right: 12px;
  left: auto;
  background: rgba(239, 68, 68, 0.94);
}

.movie-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: #b45309;
}

.movie-info p,
.list-content p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 45px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.category-card::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.92;
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card span {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 900;
}

.category-card small {
  color: rgba(255, 255, 255, 0.86);
}

.theme-amber::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.theme-blue::before { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.theme-purple::before { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.theme-pink::before { background: linear-gradient(135deg, #db2777, #f97316); }
.theme-green::before { background: linear-gradient(135deg, #059669, #22c55e); }
.theme-red::before { background: linear-gradient(135deg, #dc2626, #f97316); }
.theme-cyan::before { background: linear-gradient(135deg, #0891b2, #2563eb); }
.theme-indigo::before { background: linear-gradient(135deg, #4f46e5, #1d4ed8); }
.theme-slate::before { background: linear-gradient(135deg, #0f172a, #334155); }
.theme-orange::before { background: linear-gradient(135deg, #ea580c, #f59e0b); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}

.side-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  border-radius: 28px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(180deg, var(--slate-900), var(--blue-900));
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.side-panel a {
  display: block;
  border-radius: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.1);
}

.side-panel a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.82);
}

.rank-list,
.latest-list {
  display: grid;
  gap: 14px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: auto 122px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.movie-card-list .list-poster {
  display: block;
  overflow: hidden;
  width: 122px;
  height: 82px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

.movie-card-list .list-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-index {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

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

.list-content .movie-title {
  margin-bottom: 5px;
}

.sub-hero,
.channel-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

.sub-hero {
  padding: 82px 0;
}

.sub-hero::before,
.ranking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.36), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.28), transparent 26%);
}

.sub-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.sub-kicker {
  display: inline-flex;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 7px 13px;
  color: #fff;
  font-weight: 900;
  background: #f59e0b;
}

.sub-hero h1,
.channel-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.sub-hero p,
.channel-hero p {
  max-width: 780px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: 18px;
}

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  border-radius: 30px;
  padding: 20px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-overview-card > * {
  position: relative;
  z-index: 2;
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
  min-height: 190px;
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

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

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 30px;
}

.category-overview-card p {
  max-width: 760px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.category-sample a {
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.channel-hero {
  min-height: 360px;
}

.channel-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.channel-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(30, 58, 138, 0.72), rgba(15, 23, 42, 0.28));
}

.channel-hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #d1d5db;
  font-size: 14px;
}

.crumbs a:hover {
  color: #fbbf24;
}

.channel-search {
  max-width: 760px;
  margin-top: 24px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-btn {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #fbbf24;
  background: #f59e0b;
}

.empty-state {
  display: none;
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  color: #6b7280;
  background: #fff;
}

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

.detail-crumb-bar {
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900));
}

.detail-crumb-bar .page-shell {
  padding: 16px 0;
}

.detail-shell {
  padding-top: 32px;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
}

.player-box.is-playing .player-start {
  display: none;
}

.player-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.42);
}

.player-title {
  width: min(680px, calc(100% - 48px));
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.detail-card,
.review-card,
.poster-panel,
.side-related {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  font-weight: 900;
}

.detail-meta {
  margin-bottom: 26px;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h2,
.review-card h2,
.side-related h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p,
.review-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.lead-text {
  font-size: 19px !important;
  color: #111827 !important;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #475569;
  background: #f1f5f9;
}

.detail-side {
  display: grid;
  align-self: start;
  gap: 22px;
  position: sticky;
  top: 96px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #1e3a8a);
  margin-bottom: 18px;
}

.poster-panel .btn {
  width: 100%;
}

.side-related-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  border-radius: 16px;
  padding: 9px;
}

.side-related-item:hover {
  background: #f8fafc;
}

.side-related-item img {
  grid-row: span 2;
  width: 92px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.side-related-item span {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-related-item small {
  color: #64748b;
}

.related-section {
  margin-top: 48px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, var(--slate-900), #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 32px;
  padding: 48px 0 34px;
}

.footer-brand p {
  max-width: 420px;
  color: #94a3b8;
}

.footer-col h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-col a:hover {
  color: #fbbf24;
}

.footer-categories {
  columns: 2;
}

.footer-categories h3 {
  break-after: avoid;
  columns: initial;
}

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

@media (max-width: 1180px) {
  .grid-6,
  .grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-thumbs {
    display: none;
  }

  .hero-content {
    padding-right: 12%;
  }
}

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

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding-right: 0;
  }

  .home-search-panel,
  .split-section,
  .detail-grid,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-carousel {
    height: 620px;
  }

  .hero-content {
    width: min(100% - 28px, 1280px);
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-control {
    top: auto;
    bottom: 24px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    transform: none;
  }

  .hero-control:hover {
    transform: scale(1.06);
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .hero-dots {
    bottom: 40px;
  }

  .home-search-panel {
    margin-top: 18px;
    border-radius: 22px;
    padding: 22px;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-title {
    font-size: 15px;
  }

  .movie-info p {
    min-height: 40px;
    font-size: 13px;
  }

  .highlight-section,
  .ranking-panel,
  .latest-section {
    padding: 20px;
    border-radius: 24px;
  }

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

  .movie-card-list {
    grid-template-columns: auto 92px 1fr;
  }

  .movie-card-list .list-poster {
    width: 92px;
    height: 68px;
  }

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

  .category-cover {
    min-height: 160px;
  }

  .channel-hero-content,
  .sub-hero-inner,
  .page-shell {
    width: min(100% - 24px, 1280px);
  }

  .detail-card,
  .review-card,
  .poster-panel,
  .side-related {
    padding: 18px;
    border-radius: 22px;
  }

  .player-box {
    border-radius: 22px;
  }

  .footer-categories {
    columns: 1;
  }
}
