
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f59e0b;
  --accent-2: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111827;
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.28);
}

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

.desktop-nav,
.footer-links,
.hero-actions,
.tag-row,
.quick-filters,
.inline-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-link,
.mobile-link,
.text-link,
.footer-links a,
.inline-links a {
  color: var(--soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: white;
  background: rgba(245, 158, 11, 0.14);
}

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

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

main {
  padding-bottom: 64px;
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  display: grid;
  align-items: center;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg:after,
.ranking-hero:after,
.detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  padding: clamp(36px, 8vw, 84px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1,
.ranking-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.ranking-copy p,
.lead-text {
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 760px;
}

.tag-row span,
.quick-filters button,
.poster-badge,
.overview-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.primary-btn,
.ghost-btn,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #fde047);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.search-box button {
  color: white;
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-box button:hover,
.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.category-overview:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: clamp(36px, 8vw, 84px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fbbf24;
}

.section-wrap,
.page-hero,
.ranking-hero,
.detail-hero,
.breadcrumb,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

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

.text-link {
  color: #fbbf24;
  font-weight: 800;
}

.search-panel,
.content-card,
.rank-panel,
.category-panel,
.page-hero {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
}

.search-panel {
  padding: 22px;
}

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

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  padding: 0 18px;
}

.search-box input:focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.quick-filters {
  margin-top: 14px;
}

.quick-filters button {
  cursor: pointer;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16), rgba(15, 23, 42, 0.9));
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), transparent 48%);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  backdrop-filter: blur(12px);
}

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

.card-body strong {
  font-size: 1.03rem;
  line-height: 1.35;
}

.card-meta,
.card-desc,
.rank-copy em,
.category-card em,
.category-overview em,
.site-footer p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.card-meta,
.card-desc,
.category-card em,
.category-overview em {
  font-size: 0.88rem;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.compact .card-desc {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 24px;
}

.category-panel,
.rank-panel {
  padding: 24px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.44);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-cover {
  height: 118px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16));
}

.category-card strong,
.category-overview strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.05rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-num {
  color: #fbbf24;
  font-weight: 900;
  font-size: 1.05rem;
}

.rank-cover {
  display: block;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  min-height: 260px;
  display: grid;
  align-items: center;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.12)),
    rgba(15, 23, 42, 0.88);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

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

.category-overview {
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 210px;
  background: rgba(245, 158, 11, 0.12);
}

.overview-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.overview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.ranking-visual,
.detail-poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(239, 68, 68, 0.16));
}

.ranking-copy,
.detail-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(32px, 7vw, 70px);
}

.breadcrumb {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

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

.info-grid span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
}

.info-grid em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.player-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: black;
  box-shadow: var(--shadow);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #fde047);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.28);
}

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

.content-card {
  padding: clamp(22px, 4vw, 34px);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.content-card p {
  color: var(--soft);
  line-height: 1.95;
}

.link-card {
  grid-column: 1 / -1;
}

.inline-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

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

.wide-rank {
  grid-column: 1 / -1;
}

.sticky-search {
  position: sticky;
  top: 86px;
  z-index: 20;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.75);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  gap: 14px;
}

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

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

  .split-layout,
  .detail-content,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .two-col-rank {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-stage {
    min-height: 570px;
    border-radius: 26px;
  }

  .hero-content {
    padding: 34px 24px 74px;
  }

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

  .section-heading,
  .search-box,
  .category-card,
  .category-overview {
    display: grid;
    grid-template-columns: 1fr;
  }

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

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

  .overview-covers {
    height: 170px;
  }

  .detail-hero,
  .ranking-hero {
    min-height: auto;
  }

  .ranking-copy,
  .detail-copy {
    padding: 32px 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .dense-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .hero-shell,
  .section-wrap,
  .page-hero,
  .ranking-hero,
  .detail-hero,
  .breadcrumb,
  .player-section,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }
}
