* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-strong: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-deep: #ea580c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(234, 88, 12, 0.10), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.32);
}

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

.brand-text strong {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

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

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

.nav-chip {
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
}

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

.header-search input,
.mobile-search input,
.filter-grid input,
.filter-grid select {
  min-width: 0;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 240px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.header-search button,
.mobile-search button,
.filter-reset,
.primary-btn,
.secondary-btn,
.play-layer button {
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 800;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-reset:hover,
.primary-btn:hover,
.secondary-btn:hover,
.play-layer button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent-bright);
  background: rgba(15, 23, 42, 0.76);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--accent-bright);
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.70) 45%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, #020617 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 98px;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: end;
  gap: 44px;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  color: #d1d5db;
  font-size: 1.13rem;
  line-height: 1.85;
}

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

.secondary-btn {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: none;
}

.hero-side-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.20);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-side-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.82rem;
  font-style: normal;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 6vw, 80px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.main-wrap,
.page-wrap,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-block {
  margin-bottom: 68px;
}

.section-head,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.page-head h1,
.detail-copy h1,
.player-section h2,
.article-section h2 {
  margin: 7px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--accent-bright);
  font-weight: 900;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.92)),
    var(--panel);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border 0.22s ease;
}

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

.category-tile span {
  color: var(--accent-bright);
  font-weight: 900;
}

.category-tile h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
}

.category-tile p,
.page-head p,
.article-section p,
.detail-copy p,
.empty-state {
  color: var(--muted);
  line-height: 1.85;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.13);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 40px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
}

.card-meta em {
  font-style: normal;
}

.movie-card h3 {
  margin: 12px 0 8px;
  min-height: 2.8em;
  color: white;
  font-size: 1.02rem;
  line-height: 1.38;
}

.movie-card h3 a:hover {
  color: var(--accent-bright);
}

.movie-card p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.62;
}

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.compact-card .poster-link {
  aspect-ratio: auto;
  min-height: 138px;
}

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

.compact-card h3 {
  min-height: auto;
}

.compact-card p {
  min-height: auto;
}

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

.filter-panel {
  margin: 24px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) auto;
  gap: 12px;
}

.filter-grid:has(.filter-category) {
  grid-template-columns: 1.6fr repeat(4, 1fr) auto;
}

.filter-reset {
  white-space: nowrap;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.72)),
    rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4.25;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  margin-bottom: 18px;
}

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

.detail-copy h1 {
  margin-bottom: 16px;
}

.detail-copy .lead {
  color: #d1d5db;
  font-size: 1.08rem;
}

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

.player-section,
.article-section,
.related-section {
  margin-top: 46px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: black;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: black;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.45);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.play-layer button {
  position: relative;
  z-index: 2;
  min-width: 150px;
  min-height: 54px;
  font-size: 1.05rem;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
}

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

.footer-inner {
  max-width: 1280px;
  min-height: 86px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-brand {
  color: var(--accent-bright);
  font-weight: 900;
}

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

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

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

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

  .hero-content,
  .detail-hero,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    max-width: 520px;
  }

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

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

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

  .filter-grid,
  .filter-grid:has(.filter-category) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .main-wrap,
  .page-wrap,
  .detail-wrap,
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text small {
    display: none;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 92px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.2rem, 14vw, 4rem);
  }

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

  .section-head,
  .page-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-tiles,
  .movie-grid,
  .ranking-list,
  .filter-grid,
  .filter-grid:has(.filter-category) {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .filter-grid input,
  .filter-grid select,
  .filter-reset {
    grid-column: 1 / -1;
  }

  .movie-card h3 {
    font-size: 0.96rem;
  }

  .movie-card p,
  .card-tags {
    display: none;
  }

  .detail-hero {
    padding: 18px;
  }

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

  .compact-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .category-tiles,
  .movie-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }
}
