:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --emerald-500: #10b981;
  --yellow-500: #eab308;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: var(--slate-50);
  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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.24);
}

.header-container {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-700));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.22);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(-2deg);
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.nav-sub-link,
.mobile-link {
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(51, 65, 85, 0.82);
}

.nav-link.is-active {
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-500));
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  color: #cbd5e1;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 180px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-sub-link {
  display: block;
  padding: 9px 10px;
  color: #cbd5e1;
  font-size: 14px;
}

.nav-sub-link:hover {
  color: #fff;
  background: rgba(6, 182, 212, 0.18);
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(51, 65, 85, 0.72);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  background: var(--slate-800);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-link {
  display: block;
  padding: 11px 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-nav-title {
  padding: 14px 12px 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.64) 48%, rgba(15, 23, 42, 0.38) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-action,
.search-box button,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 52px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.25);
}

.primary-button:hover,
.search-box button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(6, 182, 212, 0.32);
}

.ghost-button {
  min-height: 52px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--cyan-400);
}

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

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: var(--shadow-strong);
}

.search-panel h2,
.search-panel p {
  margin: 0;
}

.search-panel h2 {
  font-size: 26px;
}

.search-panel p {
  color: #cbd5e1;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.search-box button,
.filter-bar button {
  min-width: 96px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.content-section {
  padding: 70px 0;
}

.white-section {
  background: #fff;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: #64748b;
}

.dark-heading h2,
.dark-heading p {
  color: #fff;
}

.dark-heading p {
  color: #cbd5e1;
}

.section-action {
  min-height: 42px;
  padding: 0 16px;
  color: var(--cyan-700, #0e7490);
  background: #ecfeff;
}

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

.wide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.wide-card,
.movie-card,
.compact-card,
.overview-card,
.category-card {
  min-width: 0;
}

.wide-card-link,
.movie-card-link {
  display: block;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.wide-card-link:hover,
.movie-card-link:hover,
.compact-card a:hover,
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.wide-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-900);
}

.wide-poster img,
.poster-frame img,
.compact-cover img,
.spotlight-card img,
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.wide-card-link:hover img,
.movie-card-link:hover img,
.compact-card a:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-overlay,
.compact-cover span,
.wide-poster .play-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(2, 6, 23, 0.38);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.wide-card-link:hover .poster-overlay,
.movie-card-link:hover .poster-overlay,
.compact-card a:hover .compact-cover span,
.wide-card-link:hover .wide-poster .play-ring {
  opacity: 1;
}

.play-ring {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.34);
}

.rank-badge,
.year-badge,
.region-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge,
.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(2, 6, 23, 0.72);
}

.region-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.wide-info,
.movie-card-body {
  padding: 18px;
}

.wide-info h3,
.movie-card-body h3,
.compact-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.wide-info p,
.movie-card-body p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  color: #64748b;
  font-size: 13px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

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

.category-card,
.overview-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card::after,
.overview-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3,
.overview-card h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 23px;
}

.category-card p,
.overview-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-card span,
.overview-card strong,
.overview-icon {
  position: relative;
  z-index: 2;
}

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

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

.from-purple {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.from-blue {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}

.from-red {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.from-pink {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.from-emerald {
  background: linear-gradient(135deg, #10b981, #047857);
}

.from-yellow {
  background: linear-gradient(135deg, #eab308, #f97316);
}

.from-indigo {
  background: linear-gradient(135deg, #6366f1, #312e81);
}

.from-slate {
  background: linear-gradient(135deg, #334155, #020617);
}

.dark-feature-section {
  padding: 80px 0;
  color: #fff;
  background: linear-gradient(100deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

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

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

.ranking-row,
.ranking-page-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row {
  grid-template-columns: 42px 70px 1fr auto;
  padding: 10px;
  background: rgba(30, 41, 59, 0.58);
  backdrop-filter: blur(10px);
}

.ranking-row:hover {
  transform: translateX(6px);
  background: rgba(30, 41, 59, 0.88);
}

.ranking-index,
.big-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.ranking-index {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ranking-row img {
  width: 70px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-title {
  font-weight: 800;
}

.ranking-meta {
  color: #cbd5e1;
  font-size: 13px;
}

.spotlight-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.spotlight-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.spotlight-card div {
  padding: 28px;
}

.spotlight-card span {
  color: var(--cyan-400);
  font-weight: 900;
}

.spotlight-card h2 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.spotlight-card p {
  color: #dbeafe;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.filter-bar select[data-filter-year] {
  display: block;
}

.filter-bar:not(.wide-filter) {
  grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
}

.filter-bar:not(.wide-filter) button {
  display: none;
}

.sticky-filter {
  position: sticky;
  top: 82px;
  z-index: 20;
}

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

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

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

.compact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.compact-card a {
  display: block;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.compact-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-900);
}

.compact-card h3 {
  margin-top: 10px;
  font-size: 14px;
}

.compact-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(100deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.overview-card {
  min-height: 230px;
  padding: 30px;
}

.overview-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.ranking-page-row {
  grid-template-columns: 56px 110px minmax(0, 1fr) auto;
  padding: 14px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.ranking-page-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.big-rank {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 18px;
}

.ranking-page-row img {
  width: 110px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-page-title {
  min-width: 0;
}

.ranking-page-title strong,
.ranking-page-title em {
  display: block;
}

.ranking-page-title strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.ranking-page-title em {
  color: #64748b;
  font-style: normal;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-page-meta {
  color: #64748b;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: #64748b;
  text-align: center;
  background: #f8fafc;
}

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

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

.detail-page {
  padding: 34px 0 70px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

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

.player-shell,
.detail-card,
.aside-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.player-shell {
  overflow: hidden;
  margin-bottom: 24px;
  background: #020617;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 0;
  border: 0;
  color: #fff;
  background: #000;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.player-cover:hover img {
  transform: scale(1.04);
  opacity: 0.64;
}

.player-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.36);
  font-size: 32px;
}

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

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  background: rgba(15, 23, 42, 0.86);
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  padding: 28px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  background: #f1f5f9;
}

.tag-chip.highlight {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.tag-chip.hot {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.detail-card h1 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-card .detail-meta {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.detail-card .detail-meta span {
  color: #475569;
  background: #f8fafc;
}

.story-section h2,
.review-section h2,
.aside-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

.story-section p,
.review-section p {
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
  text-align: justify;
}

.lead-text {
  font-size: 18px !important;
  font-weight: 800;
}

.review-section {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.detail-aside {
  position: sticky;
  top: 88px;
}

.aside-card {
  padding: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  background: #f8fafc;
}

.related-card img {
  width: 120px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.related-card strong,
.related-card em {
  display: block;
}

.related-card strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.related-card em {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.2fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

.footer-links h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: #94a3b8;
}

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

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

@media (max-width: 1100px) {
  .wide-grid,
  .movie-grid,
  .large-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .two-column-layout,
  .detail-layout,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 90px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 17px;
  }

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

  .search-box {
    flex-direction: column;
  }

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

  .filter-bar,
  .filter-bar:not(.wide-filter) {
    grid-template-columns: 1fr;
  }

  .sticky-filter {
    position: static;
  }

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

  .ranking-row,
  .ranking-page-row {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .ranking-meta,
  .ranking-page-meta {
    display: none;
  }
}

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

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

  .hero-slider {
    height: 560px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .content-section {
    padding: 48px 0;
  }

  .wide-grid,
  .movie-grid,
  .large-grid,
  .category-grid,
  .overview-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .overview-card {
    min-height: 170px;
  }

  .ranking-page-row {
    grid-template-columns: 42px 78px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-page-row img {
    width: 78px;
  }

  .detail-card,
  .aside-card {
    padding: 18px;
  }

  .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-card img {
    width: 96px;
  }

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