:root {
  --bg: #070b16;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --orange: #ea580c;
  --red: #ef4444;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(239, 68, 68, 0.16), transparent 30rem),
    linear-gradient(180deg, #080b13 0%, #0f172a 48%, #070b16 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 22, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(90deg, #fde68a, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 14px 38px rgba(245, 158, 11, 0.35);
  font-size: 15px;
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.18);
}

.nav-search {
  width: min(320px, 28vw);
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
}

.nav-search input,
.mobile-panel input,
.hero-search-card input,
.filter-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder,
.hero-search-card input::placeholder,
.filter-search input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.nav-search button,
.mobile-panel button,
.hero-search-card button {
  border: 0;
  color: #111827;
  font-weight: 900;
  border-radius: 999px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.9);
}

.max-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-carousel {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 24px 0;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 22, 0.94) 0%, rgba(7, 11, 22, 0.68) 42%, rgba(7, 11, 22, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 11, 22, 0.85) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content h2 {
  margin: 18px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
}

.hero-content p,
.page-hero p,
.lead-text {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #111827;
  padding: 14px 24px;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
  color: #fff;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: 0.25s ease;
}

.hero-dots button.is-active {
  width: 58px;
  background: linear-gradient(90deg, #facc15, #f97316);
}

.hero-search-card {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: -52px auto 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-search-card form {
  display: flex;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
}

.hero-search-card input {
  padding: 0 16px;
  font-size: 16px;
}

.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-category-pills a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.content-section {
  margin-top: 72px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--soft);
}

.section-action,
.text-link {
  color: #fef3c7;
  padding: 10px 16px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
}

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

.category-tile,
.category-card,
.movie-card,
.detail-article,
.detail-side,
.hero-mini-list,
.filter-panel,
.video-shell {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.category-tile {
  min-height: 168px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: 0.22s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -40px;
  top: -40px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 68%);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.category-tile span {
  color: var(--soft);
  line-height: 1.7;
  font-size: 14px;
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 22px 70px rgba(245, 158, 11, 0.14);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 54%);
}

.play-mark,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-mark {
  width: 48px;
  height: 48px;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  color: #111827;
  background: rgba(250, 204, 21, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.24s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-size: 14px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 9px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 58px;
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 8px;
  font-size: 12px;
  color: #fde68a;
}

.compact-card .card-body p {
  min-height: 44px;
  -webkit-line-clamp: 2;
}

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

.filter-search {
  display: flex;
  min-height: 52px;
  padding: 0 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.52);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-buttons button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
  color: #111827;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 24px;
}

.empty-state.is-visible {
  display: block;
}

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

.page-hero,
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  min-height: 380px;
  padding: 38px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.23), transparent 24rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(7, 11, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.small-hero,
.search-hero {
  display: block;
}

.hero-mini-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  color: var(--muted);
  transition: 0.2s ease;
}

.mini-card:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mini-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: #fff;
  line-height: 1.35;
}

.mini-card em {
  margin-top: 5px;
  color: var(--soft);
  font-style: normal;
  font-size: 13px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
  transition: 0.24s ease;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: #020617;
}

.category-cover-row img {
  height: 210px;
  object-fit: cover;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0;
  font-size: 26px;
}

.category-card-body p {
  margin: 10px 0 18px;
  color: var(--soft);
  line-height: 1.75;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumbs a {
  color: #fde68a;
}

.detail-hero {
  grid-template-columns: 340px 1fr;
  align-items: stretch;
}

.detail-poster img {
  height: 100%;
  min-height: 460px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.large-tags span {
  font-size: 13px;
  padding: 7px 10px;
}

.player-section {
  margin-top: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease;
}

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

.big-play {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.36);
  font-size: 30px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: 24px;
  line-height: 1.35;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 34px;
}

.detail-article,
.detail-side {
  border-radius: 26px;
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 2;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--soft);
}

.detail-side dd {
  margin: 0;
  color: #fff;
}

.detail-side a {
  color: #fde68a;
}

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

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 34px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .movie-grid,
  .rank-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

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

  .hero-content {
    padding: 54px 30px;
  }

  .hero-dots {
    left: 30px;
  }

  .hero-search-card form {
    border-radius: 22px;
    flex-direction: column;
  }

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

  .detail-hero {
    padding: 24px;
  }

  .detail-poster img {
    min-height: auto;
    max-height: 560px;
  }

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

@media (max-width: 680px) {
  .nav-shell,
  .max-shell,
  .hero-carousel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-content h2 {
    font-size: 30px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    min-height: auto;
    font-size: 13px;
  }

  .page-hero,
  .detail-article,
  .detail-side {
    padding: 22px;
    border-radius: 24px;
  }

  .category-cover-row img {
    height: 150px;
  }

  .player-overlay strong {
    font-size: 18px;
  }
}
