:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-line: rgba(148, 163, 184, 0.16);
  --text: #e5edf8;
  --muted: #94a3b8;
  --faint: #64748b;
  --emerald: #10b981;
  --emerald-strong: #059669;
  --yellow: #facc15;
  --red: #ef4444;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --orange: #f97316;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --green: #22c55e;
  --amber: #f59e0b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.14), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #020617 34%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

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

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

.brand-name {
  white-space: nowrap;
  font-size: 21px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), #34d399);
  color: #04111d;
  font-size: 13px;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.nav-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.nav-search {
  flex: 1;
  max-width: 460px;
  margin-left: auto;
}

.nav-search input,
.mobile-search input,
.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  background: transparent;
  color: #ffffff;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.page-filter::placeholder {
  color: #64748b;
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  padding: 12px 20px;
  background: var(--emerald);
  color: #03120c;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  background: #34d399;
}

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

.nav-link,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current,
.nav-dropdown:hover > button {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

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

.nav-dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.nav-dropdown-panel a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  border: 0;
  margin-left: auto;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  color: #ffffff;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(0, 1.35fr);
  gap: 28px;
  width: min(1280px, calc(100% - 32px));
  min-height: 590px;
  margin: 24px auto 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.82)),
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.26), transparent 35%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  filter: blur(8px);
}

.hero-site,
.hero-kicker,
.page-hero > span,
.section-heading > span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-main h1 {
  margin: 16px 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 720px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 17px;
}

.hero-stage {
  position: relative;
  min-height: 590px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #111827, #020617);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.42) 50%, rgba(2, 6, 23, 0.82)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 56%);
}

.hero-content {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 42px;
}

.hero-content h2 {
  max-width: 780px;
  margin: 14px 0;
  color: #ffffff;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 16px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #cbd5e1;
  font-size: 12px;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-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.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  background: var(--emerald);
  color: #03120c;
}

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

.primary-btn:hover {
  background: #34d399;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.64);
  color: #ffffff;
}

.ghost-btn:hover {
  border-color: rgba(16, 185, 129, 0.55);
}

.hero-control {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-heading {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

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

.section-heading a {
  margin-left: auto;
  color: #86efac;
  font-weight: 800;
}

.section-heading.slim {
  align-items: center;
}

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

.category-tile {
  position: relative;
  min-height: 174px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.78));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile::before,
.category-preview::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: var(--tile-color, rgba(16, 185, 129, 0.28));
  filter: blur(18px);
}

.category-tile:hover {
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-4px);
}

.tile-icon {
  display: block;
  margin-bottom: 20px;
  font-size: 34px;
}

.category-tile strong {
  position: relative;
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 19px;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.accent-red {
  --tile-color: rgba(239, 68, 68, 0.32);
}

.accent-emerald {
  --tile-color: rgba(16, 185, 129, 0.34);
}

.accent-pink {
  --tile-color: rgba(236, 72, 153, 0.3);
}

.accent-violet {
  --tile-color: rgba(139, 92, 246, 0.34);
}

.accent-orange {
  --tile-color: rgba(249, 115, 22, 0.32);
}

.accent-yellow {
  --tile-color: rgba(250, 204, 21, 0.28);
}

.accent-cyan {
  --tile-color: rgba(6, 182, 212, 0.32);
}

.accent-amber {
  --tile-color: rgba(245, 158, 11, 0.32);
}

.accent-blue {
  --tile-color: rgba(59, 130, 246, 0.34);
}

.accent-green {
  --tile-color: rgba(34, 197, 94, 0.32);
}

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

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

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

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

.movie-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.74));
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
  transform: translateY(-5px);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(2, 6, 23, 0.98));
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.poster-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.1));
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.96);
  color: #03120c;
  font-size: 12px;
  font-weight: 900;
}

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

.card-badges {
  margin-bottom: 10px;
}

.rank-badge {
  color: #fde68a !important;
  border-color: rgba(250, 204, 21, 0.36) !important;
  background: rgba(120, 53, 15, 0.35) !important;
}

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

.movie-card h3 a:hover,
.rank-main h2 a:hover {
  color: #86efac;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin: 12px 0;
}

.card-meta {
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 13px;
}

.card-meta span:first-child {
  color: #fde68a;
  font-weight: 900;
}

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

.side-ranking {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.72));
  box-shadow: var(--shadow);
}

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

.mini-rank {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
}

.mini-rank:hover {
  background: rgba(16, 185, 129, 0.12);
}

.mini-rank span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.18);
  color: #86efac;
  font-weight: 900;
}

.mini-rank strong {
  overflow: hidden;
  white-space: nowrap;
  color: #ffffff;
  text-overflow: ellipsis;
}

.mini-rank em {
  color: #fde68a;
  font-style: normal;
  font-weight: 900;
}

.horizontal-section {
  padding-bottom: 34px;
}

.scroll-row {
  display: grid;
  grid-auto-columns: 310px;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
}

.movie-card-wide {
  scroll-snap-align: start;
}

.movie-card-wide .poster-frame {
  aspect-ratio: 16 / 10;
}

.page-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 56px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.82)),
    radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.18), transparent 35%);
  box-shadow: var(--shadow);
}

.compact-hero h1,
.ranking-hero h1,
.category-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.category-stack {
  display: grid;
  gap: 26px;
  padding-bottom: 38px;
}

.category-preview {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.78);
}

.category-preview-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.category-preview-head > span {
  font-size: 42px;
}

.category-preview-head h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 28px;
}

.category-preview-head p {
  margin: 0;
  color: #cbd5e1;
}

.category-preview-head .ghost-btn {
  margin-left: auto;
}

.tool-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
}

.tool-bar label {
  display: grid;
  flex: 1;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 800;
}

.page-filter {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  background: rgba(2, 6, 23, 0.54);
  color: #ffffff;
}

.sort-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-tools button {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.sort-tools button:hover {
  border-color: rgba(16, 185, 129, 0.55);
  color: #ffffff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
  font-weight: 900;
}

.rank-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(2, 6, 23, 0.98));
}

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

.rank-main h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 20px;
}

.rank-main p {
  min-height: auto;
  margin: 0;
}

.rank-side {
  display: grid;
  gap: 3px;
  color: #94a3b8;
  text-align: right;
}

.rank-side strong {
  color: #fde68a;
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
  color: #94a3b8;
}

.breadcrumb a:hover {
  color: #86efac;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.84)),
    radial-gradient(circle at 94% 6%, rgba(16, 185, 129, 0.16), transparent 34%);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 24px;
}

.detail-main {
  align-self: center;
}

.detail-main h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
}

.detail-meta {
  margin: 20px 0 10px;
}

.detail-meta span:first-child {
  color: #fde68a;
  font-weight: 900;
}

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

.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.9));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--emerald);
  color: #03120c;
  font-size: 34px;
  box-shadow: 0 0 0 14px rgba(16, 185, 129, 0.16);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 42px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.story-panel {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.story-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 26px;
}

.story-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.info-panel {
  grid-column: 1 / -1;
}

.info-panel dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-panel div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
}

.info-panel dt {
  color: #94a3b8;
  font-size: 13px;
}

.info-panel dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #94a3b8;
}

.site-footer p {
  margin: 12px 0 0;
}

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

.site-footer a:hover {
  color: #86efac;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .category-grid,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .preview-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .side-ranking {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy,
  .page-hero {
    padding: 30px;
  }

  .hero-stage {
    min-height: 520px;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .preview-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .detail-content,
  .footer-grid,
  .info-panel dl {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-side {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    gap: 12px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .mobile-panel,
  .hero,
  .content-shell,
  .page-hero,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1280px);
  }

  .brand-name {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1,
  .detail-main h1 {
    font-size: 36px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 44px;
  }

  .hero-content h2 {
    font-size: 30px;
  }

  .hero-stage {
    min-height: 480px;
  }

  .hero-control {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .preview-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-preview,
  .story-panel,
  .tool-bar {
    padding: 18px;
  }

  .category-preview-head,
  .tool-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-preview-head .ghost-btn,
  .section-heading a {
    margin-left: 0;
  }

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-poster {
    width: min(240px, 100%);
  }

  .player-wrap {
    border-radius: 18px;
  }

  .rank-row {
    grid-template-columns: 36px 60px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .rank-main h2 {
    font-size: 16px;
  }

  .rank-main p,
  .rank-main .tag-row {
    display: none;
  }

  .scroll-row {
    grid-auto-columns: 260px;
  }
}
