:root {
  color-scheme: dark;
  --slate-950: #020617;
  --slate-925: #07111f;
  --slate-900: #0f172a;
  --slate-850: #111c30;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.18);
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-100);
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 32rem), var(--slate-950);
}

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

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

img.media-missing {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.38);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name,
.footer-brand {
  color: var(--slate-100);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--slate-400);
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-link,
.mobile-link {
  color: var(--slate-300);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--amber-400);
}

.header-search {
  position: relative;
  width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--slate-100);
  background: transparent;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: var(--slate-500);
}

.header-search button {
  border: 0;
  color: var(--slate-950);
  background: var(--amber-500);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  display: none;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.72);
}

.search-item:hover {
  background: rgba(51, 65, 85, 0.85);
}

.search-item strong {
  color: var(--slate-100);
}

.search-item span {
  color: var(--slate-400);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--slate-100);
  background: rgba(30, 41, 59, 0.9);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.58);
}

.home-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 600px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(245, 158, 11, 0.2), transparent 20rem), var(--slate-900);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transform: scale(1.02);
}

.hero-backdrop::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--slate-950), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 76px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: var(--amber-400);
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  color: var(--white);
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-lead {
  max-width: 760px;
  margin: 0;
  color: var(--slate-300);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
  color: var(--slate-300);
}

.hero-meta span,
.card-meta em,
.detail-meta dd,
.rank-info em {
  font-style: normal;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.button-primary {
  color: var(--slate-950);
  background: var(--amber-500);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.26);
}

.button-primary:hover {
  background: var(--amber-400);
}

.button-ghost {
  color: var(--slate-100);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.button-ghost:hover {
  border-color: rgba(245, 158, 11, 0.55);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.3);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-500);
}

.section {
  padding: 72px 0;
  background: var(--slate-950);
}

.section-deep {
  background: var(--slate-900);
}

.section-split {
  background: linear-gradient(180deg, var(--slate-950), var(--slate-900));
}

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

.compact-heading {
  align-items: start;
}

.section-heading h2,
.panel-title h2,
.footer-grid h2,
.detail-article h2 {
  margin: 10px 0 8px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.section-heading p,
.footer-grid p,
.detail-article p {
  margin: 0;
  color: var(--slate-400);
  line-height: 1.75;
}

.section-more {
  color: var(--amber-400);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  color: var(--slate-100);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.86));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.card-badge,
.card-type {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
  color: var(--amber-400);
  background: rgba(15, 23, 42, 0.82);
}

.card-type {
  right: 12px;
  color: var(--slate-100);
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body strong {
  color: var(--white);
  font-size: 17px;
  line-height: 1.35;
}

.card-line {
  color: var(--slate-400);
  font-size: 14px;
  line-height: 1.62;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-300);
  font-size: 12px;
}

.card-meta em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
}

.movie-card-compact .card-cover {
  aspect-ratio: 4 / 3;
}

.movie-card-compact .card-body strong {
  font-size: 15px;
}

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

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

.category-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.17), rgba(30, 41, 59, 0.86));
  border: 1px solid rgba(245, 158, 11, 0.18);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.56);
}

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

.category-card strong {
  color: var(--slate-100);
  font-size: 15px;
  line-height: 1.7;
}

.category-card.wide {
  min-height: 190px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.rank-panel,
.filter-panel,
.player-shell,
.detail-article article {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.panel-title span {
  color: var(--amber-400);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.rank-number {
  color: var(--amber-400);
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(245, 158, 11, 0.12);
}

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

.rank-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-info strong {
  overflow: hidden;
  color: var(--slate-100);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-tag {
  color: var(--slate-950);
  background: var(--amber-500);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 76% 20%, rgba(245, 158, 11, 0.18), transparent 24rem), var(--slate-900);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.slim-hero {
  padding: 96px 0 72px;
}

.channel-hero {
  padding: 72px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-400);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-400);
  font-weight: 700;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--border);
  outline: 0;
  color: var(--slate-100);
  background: rgba(2, 6, 23, 0.72);
  border-radius: 13px;
  padding: 12px 14px;
}

.detail-hero {
  padding: 42px 0 66px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-meta dt {
  color: var(--slate-500);
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-meta dd {
  margin: 0;
  color: var(--slate-100);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.tag-list span {
  color: var(--amber-400);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 13px;
  font-weight: 800;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--slate-100);
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.22), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--slate-950);
  background: var(--amber-500);
  border-radius: 999px;
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.play-overlay strong {
  font-size: 20px;
}

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

.detail-article article {
  padding: clamp(22px, 4vw, 40px);
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p + h2 {
  margin-top: 34px;
}

.site-footer {
  background: var(--slate-950);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0;
}

.footer-grid h2 {
  font-size: 17px;
}

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

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

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

.footer-bottom {
  padding: 18px;
  color: var(--slate-500);
  text-align: center;
  border-top: 1px solid var(--border);
}

[data-movie-card].is-filtered {
  display: none;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .header-search {
    width: min(360px, 38vw);
  }

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

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

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

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

  .rank-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .home-hero,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: grid;
  }

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

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

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

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

  .rank-tag {
    display: none;
  }
}
