:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --gold: #facc15;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 1.28rem;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-bar input {
  min-width: 230px;
  color: #fff;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-panel button {
  color: #04111d;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.95);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: #cbd5e1;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.page-main {
  padding-top: 92px;
}

.hero-section {
  min-height: 100vh;
  padding: 88px 16px 52px;
  display: flex;
  align-items: center;
}

.hero-stage {
  position: relative;
  width: min(1280px, 100%);
  min-height: 640px;
  margin: 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.88));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.68fr);
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(6px) saturate(1.15);
}

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

.hero-bg::after,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18)),
    radial-gradient(circle at 24% 24%, rgba(34, 211, 238, 0.32), transparent 22rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 680px;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.9;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.22);
}

.ghost-button,
.section-more {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.hero-tags,
.detail-tags,
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.rank-tags span,
.movie-card-meta span,
.movie-card-meta a,
.rank-meta span,
.rank-meta a {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.hero-poster {
  justify-self: center;
  width: min(100%, 380px);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 72px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.glass-section {
  padding-top: 24px;
}

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

.section-heading h2,
.category-overview-head h2,
.feature-panel h2,
.page-hero h1,
.detail-article h1 {
  margin: 10px 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading span,
.section-heading p,
.category-overview-head p,
.feature-panel p,
.page-hero p,
.detail-article p,
.site-footer p {
  color: var(--muted);
  line-height: 1.9;
}

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

.category-tile,
.category-overview-card,
.feature-panel,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.category-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.4;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.95));
}

.category-tile strong,
.category-tile span {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.category-tile span {
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.feature-panel {
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 18rem),
    rgba(15, 23, 42, 0.82);
}

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

.movie-card,
.compact-card,
.rank-item {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.66);
  overflow: hidden;
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.movie-card {
  border-radius: var(--radius-lg);
}

.movie-card:hover,
.compact-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.92);
}

.movie-poster-link,
.rank-poster,
.poster-frame {
  position: relative;
  display: block;
}

.poster-frame {
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.24), transparent 12rem),
    linear-gradient(145deg, #0f172a, #020617);
}

.poster-card .poster-frame {
  border-radius: 24px;
}

.poster-card {
  padding: 12px;
}

.poster-card .poster-frame img,
.poster-detail img {
  border-radius: 18px;
}

.poster-card .poster-frame,
.poster-detail {
  min-height: 420px;
}

.poster-card .poster-frame img,
.poster-detail img,
.poster-card .poster-frame .poster-fallback {
  min-height: 420px;
}

.poster-card .poster-frame img,
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.poster-card .poster-frame img {
  aspect-ratio: 2 / 3;
}

.poster-card .poster-frame:hover img,
.movie-card:hover .poster-frame img,
.compact-card:hover .poster-frame img,
.rank-item:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-card .poster-frame.image-missing img,
.poster-frame.image-missing img {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #e2e8f0;
  text-align: center;
  font-weight: 900;
  line-height: 1.4;
  opacity: 0;
}

.poster-frame.image-missing .poster-fallback {
  opacity: 1;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback,
.poster-frame:not(.image-missing) .poster-fallback {
  pointer-events: none;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  display: none;
}

.poster-card .poster-frame img,
.poster-hero img {
  aspect-ratio: 2 / 3;
}

.poster-card .poster-frame,
.poster-hero {
  aspect-ratio: 2 / 3;
}

.poster-card .poster-frame,
.poster-card .poster-frame img {
  min-height: 0;
}

.poster-card .poster-frame .poster-fallback {
  min-height: 0;
}

.poster-card .poster-frame {
  height: auto;
}

.poster-card .poster-frame img {
  height: auto;
}

.poster-card .poster-frame .poster-fallback {
  min-height: 100%;
}

.poster-card .poster-frame {
  display: grid;
}

.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  grid-area: 1 / 1;
}

.poster-card .poster-frame img {
  height: 100%;
}

.poster-card .poster-frame {
  aspect-ratio: 2 / 3;
}

.poster-card .poster-frame.image-missing {
  min-height: 360px;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  min-height: 360px;
}

.poster-card .poster-frame.image-missing img {
  height: 100%;
}

.poster-card .poster-frame:not(.image-missing) {
  min-height: 0;
}

.poster-card .poster-frame:not(.image-missing) img {
  min-height: 0;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  min-height: 0;
}

.poster-card .poster-frame {
  border: 1px solid rgba(34, 211, 238, 0.16);
}

.poster-card .poster-frame img {
  border-radius: 18px;
}

.poster-card .poster-frame .poster-fallback {
  border-radius: 18px;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  display: grid;
}

.poster-card .poster-frame.image-missing img {
  position: absolute;
}

.poster-card .poster-frame:not(.image-missing) img {
  position: relative;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  position: absolute;
}

.poster-card .poster-frame {
  overflow: hidden;
}

.poster-card .poster-frame.image-missing {
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.25), transparent 11rem),
    linear-gradient(145deg, #172554, #020617);
}

.poster-card .poster-frame.image-missing .poster-fallback {
  color: #f8fafc;
}

.poster-card .poster-frame.image-missing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.42));
}

.poster-card .poster-frame.image-missing .poster-fallback {
  z-index: 2;
}

.poster-card .poster-frame:not(.image-missing)::after {
  display: none;
}

.poster-card .poster-frame,
.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  width: 100%;
}

.poster-card .poster-frame,
.poster-card .poster-frame img {
  max-height: 560px;
}

.poster-card .poster-frame.image-missing {
  max-height: none;
}

.poster-card .poster-frame.image-missing img {
  max-height: none;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  max-height: none;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  opacity: 0;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  opacity: 1;
}

.poster-card .poster-frame:not(.image-missing) img {
  opacity: 1;
}

.poster-card .poster-frame.image-missing img {
  opacity: 0;
}

.poster-card .poster-frame {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.poster-card .poster-frame img {
  object-fit: cover;
}

.poster-card .poster-frame:not(.image-missing) img {
  background: transparent;
}

.poster-card .poster-frame.image-missing img {
  background: transparent;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  background: transparent;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  background: transparent;
}

.poster-card .poster-frame {
  isolation: isolate;
}

.poster-card .poster-frame.image-missing::after {
  z-index: 1;
}

.poster-card .poster-frame:not(.image-missing)::after {
  content: none;
}

.poster-card .poster-frame .poster-fallback {
  z-index: 2;
}

.poster-card .poster-frame img {
  z-index: 0;
}

.poster-card .poster-frame.image-missing img {
  z-index: 0;
}

.poster-card .poster-frame:not(.image-missing) img {
  z-index: 1;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  z-index: 0;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  z-index: 2;
}

.poster-card .poster-frame.image-missing::after {
  pointer-events: none;
}

.poster-card .poster-frame:not(.image-missing) {
  background: #020617;
}

.poster-card .poster-frame img {
  display: block;
}

.poster-card .poster-frame .poster-fallback {
  display: grid;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  display: none;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  display: grid;
}

.poster-card .poster-frame:not(.image-missing) img {
  display: block;
}

.poster-card .poster-frame.image-missing img {
  display: block;
}

.poster-card .poster-frame {
  border-radius: 20px;
}

.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  border-radius: 18px;
}

.poster-card .poster-frame {
  padding: 0;
}

.poster-card .poster-frame img {
  margin: 0;
}

.poster-card .poster-frame .poster-fallback {
  margin: 0;
}

.poster-card .poster-frame {
  align-items: stretch;
}

.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  align-self: stretch;
}

.poster-card .poster-frame img {
  justify-self: stretch;
}

.poster-card .poster-frame .poster-fallback {
  justify-self: stretch;
}

.poster-card .poster-frame.image-missing {
  aspect-ratio: 2 / 3;
}

.poster-card .poster-frame:not(.image-missing) {
  aspect-ratio: 2 / 3;
}

.poster-card .poster-frame,
.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  min-width: 0;
}

.poster-card .poster-frame {
  place-items: stretch;
}

.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  place-self: stretch;
}

.poster-card .poster-frame.image-missing .poster-fallback {
  align-items: center;
  justify-items: center;
}

.poster-card .poster-frame:not(.image-missing) .poster-fallback {
  align-items: center;
  justify-items: center;
}

.poster-card .poster-frame {
  contain: paint;
}

.poster-card .poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.55));
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.poster-card .poster-frame:hover::before {
  opacity: 1;
}

.poster-card .poster-frame.image-missing::before {
  opacity: 0;
}

.poster-card .poster-frame.image-missing:hover::before {
  opacity: 0;
}

.poster-card .poster-frame:not(.image-missing)::before {
  display: block;
}

.poster-card .poster-frame.image-missing::before {
  display: none;
}

.poster-card .poster-frame {
  position: relative;
}

.poster-card .poster-frame img,
.poster-card .poster-frame .poster-fallback {
  position: relative;
}

.movie-card .poster-frame,
.poster-card .poster-frame,
.poster-compact,
.poster-rank {
  aspect-ratio: 2 / 3;
}

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

.movie-card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-card h3 {
  min-height: 3em;
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.compact-title:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 5.4em;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.rating {
  color: var(--gold);
  font-weight: 900;
}

.quality-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
}

.rank-number {
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.rank-content h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
}

.rank-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.compact-card {
  display: block;
  border-radius: 18px;
  padding: 10px;
}

.compact-title {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  line-height: 1.45;
}

.compact-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 300px;
}

.category-overview-card {
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 24px;
}

.filter-bar input {
  flex: 1 1 360px;
  min-width: min(100%, 260px);
}

.search-result-text {
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 800;
}

.detail-main {
  padding-bottom: 48px;
}

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 18px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.site-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.site-video {
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.48;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.26), transparent 16rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.86));
}

.player-icon,
.player-cover strong {
  position: relative;
  z-index: 2;
}

.player-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.3);
}

.player-cover strong {
  margin-top: 104px;
  font-size: 1.1rem;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.detail-article {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
}

.detail-article .lead-text {
  color: #e2e8f0;
  font-size: 1.08rem;
}

.detail-article h2 {
  margin: 28px 0 10px;
  font-size: 1.5rem;
}

.detail-article p {
  font-size: 1rem;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.detail-meta-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-meta-list div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  color: #cbd5e1;
}

.detail-meta-list dt {
  color: var(--muted);
}

.detail-meta-list dd {
  margin: 0;
}

.detail-meta-list a:hover {
  color: var(--cyan);
}

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

.related-section {
  padding-top: 32px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a:not(.footer-brand) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

[data-card].hidden {
  display: none;
}

@media (max-width: 1180px) {
  .header-search {
    display: none;
  }

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

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

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    align-content: center;
  }

  .hero-poster {
    width: min(68vw, 300px);
  }

  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .poster-card {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 1.04rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 82px;
  }

  .hero-stage {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .section-heading,
  .category-overview-head,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

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

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

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

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

  .rank-content p,
  .rank-tags span:nth-child(2),
  .rank-tags span:nth-child(3) {
    display: none;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

  .player-shell {
    border-radius: 20px;
  }
}
