:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-hover: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --blue: #2563eb;
  --yellow: #facc15;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
  --ring: 0 0 0 2px rgba(6, 182, 212, 0.75), 0 24px 80px rgba(6, 182, 212, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(8, 145, 178, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.32);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 20px 55px rgba(6, 182, 212, 0.34);
}

.brand-text strong {
  display: block;
  font-size: 1.14rem;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.75rem;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted-strong);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 66px;
  left: -18px;
  width: 210px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--muted-strong);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-panel a:hover {
  color: var(--cyan);
  background: rgba(148, 163, 184, 0.10);
}

.nav-search {
  display: flex;
  width: 280px;
  margin-left: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.nav-search input,
.mobile-search input,
.large-search input,
.search-line input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.nav-search input {
  padding: 10px 12px;
}

.nav-search button,
.mobile-search button,
.large-search button,
.search-line button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.nav-search button {
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

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

.mobile-search {
  display: flex;
  margin: 10px 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.78);
}

.mobile-search input {
  padding: 12px;
}

.mobile-search button {
  padding: 0 16px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.70);
}

.hero {
  position: relative;
  height: 74vh;
  min-height: 580px;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.2) 78%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.38) 34%, rgba(2, 6, 23, 0.12) 100%);
}

.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;
  align-items: flex-start;
  max-width: 1280px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.65rem, 6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 660px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 5px 14px;
}

.section-kicker {
  padding: 4px 12px;
  margin: 0 0 12px;
}

.hero-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.8rem;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.24);
}

.secondary-btn,
.ghost-link {
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--ring);
}

.hero-controls {
  position: absolute;
  right: max(32px, calc((100% - 1280px) / 2 + 32px));
  bottom: 42px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.scroll-buttons button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover,
.scroll-buttons button:hover {
  background: rgba(6, 182, 212, 0.72);
  transform: scale(1.05);
}

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

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

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

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

.section-block {
  padding: 72px 0;
}

.gradient-block {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
}

.dark-block {
  background: rgba(2, 6, 23, 0.98);
}

.intro-band {
  padding: 34px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.84);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 28px;
}

.split-intro h2,
.section-title h2,
.content-article h2,
.detail-copy h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.split-intro h2,
.section-title h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.split-intro p,
.page-hero p,
.category-hero-content p,
.detail-hero-content p,
.content-article p,
.detail-copy p {
  color: var(--muted-strong);
}

.large-search {
  display: flex;
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.large-search input {
  padding: 0 20px;
  font-size: 1rem;
}

.large-search button {
  min-width: 128px;
  font-weight: 800;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title a {
  color: var(--cyan);
  font-weight: 800;
}

.compact-title {
  margin-bottom: 18px;
}

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

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

.movie-card,
.scroll-card,
.category-card,
.category-overview-card,
.ranking-row,
.detail-meta-card,
.filter-panel,
.content-article {
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.72);
  box-shadow: var(--ring);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(37, 99, 235, 0.18));
}

.card-cover img,
.scroll-cover img,
.ranking-thumb img,
.poster,
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover img,
.scroll-cover img,
.ranking-thumb img,
.category-card img,
.category-overview-card img,
.poster {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img,
.scroll-card:hover .scroll-cover img,
.category-card:hover img,
.category-overview-card:hover img,
.ranking-row:hover .ranking-thumb img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 64%);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.86);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #020617;
  background: var(--yellow);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.28);
}

.card-body {
  padding: 16px;
}

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

.card-body h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-info h3 a:hover,
.scroll-body strong a:hover {
  color: var(--cyan);
}

.card-body p,
.scroll-body p,
.ranking-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.16);
  font-size: 0.76rem;
}

.horizontal-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.horizontal-scroller::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 320px;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.scroll-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.72);
}

.scroll-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

.scroll-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.88);
}

.scroll-body {
  padding: 16px;
}

.scroll-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.05rem;
}

.scroll-body em {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-style: normal;
  font-size: 0.86rem;
}

.scroll-buttons {
  display: flex;
  gap: 8px;
}

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

.category-card {
  position: relative;
  min-height: 168px;
  padding: 22px;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.58);
  box-shadow: var(--ring);
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 1.25rem;
}

.category-card em {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 8px;
  color: var(--muted-strong);
  font-style: normal;
}

.category-card img {
  position: absolute;
  right: -28px;
  bottom: -24px;
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.42;
  transform: rotate(-8deg);
}

.category-glow {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.accent-cyan .category-glow,
.accent-cyan.category-hero,
.accent-cyan.category-overview-card::before {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.accent-rose .category-glow,
.accent-rose.category-hero,
.accent-rose.category-overview-card::before {
  background: linear-gradient(135deg, #f43f5e, #db2777);
}

.accent-violet .category-glow,
.accent-violet.category-hero,
.accent-violet.category-overview-card::before {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.accent-amber .category-glow,
.accent-amber.category-hero,
.accent-amber.category-overview-card::before {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.accent-red .category-glow,
.accent-red.category-hero,
.accent-red.category-overview-card::before {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.accent-emerald .category-glow,
.accent-emerald.category-hero,
.accent-emerald.category-overview-card::before {
  background: linear-gradient(135deg, #10b981, #0f766e);
}

.accent-orange .category-glow,
.accent-orange.category-hero,
.accent-orange.category-overview-card::before {
  background: linear-gradient(135deg, #f97316, #c2410c);
}

.accent-blue .category-glow,
.accent-blue.category-hero,
.accent-blue.category-overview-card::before {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.accent-teal .category-glow,
.accent-teal.category-hero,
.accent-teal.category-overview-card::before {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.accent-indigo .category-glow,
.accent-indigo.category-hero,
.accent-indigo.category-overview-card::before {
  background: linear-gradient(135deg, #6366f1, #4338ca);
}

.accent-slate .category-glow,
.accent-slate.category-hero,
.accent-slate.category-overview-card::before {
  background: linear-gradient(135deg, #64748b, #334155);
}

.accent-sky .category-glow,
.accent-sky.category-hero,
.accent-sky.category-overview-card::before {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(6, 182, 212, 0.58);
  background: rgba(30, 41, 59, 0.74);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #020617;
  background: linear-gradient(135deg, var(--yellow), #fb923c);
  font-size: 1.2rem;
  font-weight: 900;
}

.ranking-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
}

.ranking-info h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.ranking-info .card-meta {
  margin-top: 10px;
}

.slim-ranking .ranking-row {
  grid-template-columns: 46px 86px minmax(0, 1fr);
}

.slim-ranking .ghost-link {
  display: none;
}

.sub-page {
  min-height: 60vh;
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  padding: 118px 0 72px;
  background:
    radial-gradient(circle at 80% 18%, rgba(6, 182, 212, 0.18), transparent 30rem),
    linear-gradient(135deg, #020617, #0f172a 58%, #111827);
}

.ranking-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.12), transparent 28rem),
    radial-gradient(circle at 84% 20%, rgba(6, 182, 212, 0.18), transparent 32rem),
    linear-gradient(135deg, #020617, #111827);
}

.compact-hero h1,
.ranking-hero h1,
.category-hero-content h1,
.detail-hero-content h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.compact-hero p,
.ranking-hero p,
.category-hero-content p,
.detail-hero-content p {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
}

.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 20px;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.overview-images {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.overview-images img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

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

.category-overview-card p {
  color: var(--muted-strong);
}

.category-overview-card span {
  display: inline-flex;
  margin-top: 8px;
  color: var(--cyan);
  font-weight: 800;
}

.category-hero,
.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #020617;
}

.category-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.04);
}

.category-hero-mask,
.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.34)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.28));
}

.category-hero-content,
.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 92px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 20px;
}

.search-line {
  display: flex;
  min-height: 52px;
  margin-bottom: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.42);
  overflow: hidden;
}

.search-line input {
  padding: 0 16px;
}

.search-line button {
  min-width: 90px;
  font-weight: 800;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #ffffff;
  border-color: rgba(6, 182, 212, 0.72);
  background: rgba(6, 182, 212, 0.26);
}

.empty-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  color: var(--muted-strong);
  text-align: center;
  background: rgba(15, 23, 42, 0.68);
}

.detail-section {
  padding-top: 48px;
}

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

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.48);
}

.movie-video {
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.54) 36%, rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.24));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.34);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.12rem;
}

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

.detail-copy,
.detail-meta-card,
.content-article {
  margin-top: 20px;
  border-radius: 20px;
}

.detail-copy {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.78);
}

.detail-copy h2 {
  font-size: 1.55rem;
}

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

.poster {
  aspect-ratio: 3 / 4;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-meta-card {
  padding: 20px;
}

.detail-meta-card h2 {
  margin: 0 0 16px;
}

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

.detail-meta-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

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

.detail-meta-card dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

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

.content-article {
  padding: 30px;
}

.content-article h2 {
  margin-top: 0;
  color: var(--cyan);
  font-size: 1.55rem;
}

.content-article h2 + p {
  margin-top: 10px;
}

.content-article p {
  margin-bottom: 26px;
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: #020617;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.5fr) minmax(200px, 0.6fr);
  gap: 36px;
}

.footer-brand {
  font-size: 1.12rem;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
}

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 0.9rem;
}

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

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

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

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

  .detail-aside {
    position: static;
  }

  .poster {
    max-width: 340px;
  }
}

@media (max-width: 820px) {
  .hero {
    height: 72vh;
    min-height: 540px;
  }

  .hero-content h1,
  .compact-hero h1,
  .ranking-hero h1,
  .category-hero-content h1,
  .detail-hero-content h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-controls {
    left: 16px;
    right: 16px;
    bottom: 22px;
    justify-content: center;
  }

  .section-block {
    padding: 52px 0;
  }

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

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

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

  .ranking-row .ghost-link {
    display: none;
  }

  .footer-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

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

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 580px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 100%),
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 100%);
  }

  .hero-meta,
  .hero-actions {
    gap: 8px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-link {
    width: 100%;
  }

  .large-search,
  .search-line {
    flex-direction: column;
  }

  .large-search button,
  .search-line button {
    min-height: 46px;
  }

  .movie-grid,
  .mini-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .scroll-card {
    flex-basis: 270px;
  }

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

  .ranking-index {
    width: 36px;
    height: 36px;
  }

  .category-hero,
  .detail-hero {
    min-height: 480px;
  }

  .content-article {
    padding: 22px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
  }
}
