:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #f59e0b;
  --accent-2: #ea580c;
  --accent-3: #fbbf24;
  --radius: 22px;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 28vw);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.5);
}

.top-search input,
.hero-search input,
.live-search-input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-search input::placeholder,
.hero-search input::placeholder,
.live-search-input::placeholder {
  color: #64748b;
}

.top-search button,
.hero-search button,
.primary-btn,
.ghost-btn,
.filter-chip {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.top-search button,
.hero-search button,
.primary-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.top-search button {
  padding: 8px 14px;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  width: min(1240px, 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-panel.open {
  display: block;
}

.mobile-panel nav,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-cats {
  margin-top: 10px;
}

.mobile-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: calc(100vh - 72px);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.2) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.58)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 98%);
}

.hero-content,
.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: min(1240px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, #f8fafc, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p,
.detail-copy p,
.page-hero p,
.section-head p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.09);
  color: #fde68a;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.ghost-btn {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.52);
  color: #fde68a;
}

.text-btn {
  color: #fbbf24;
}

.hero-poster,
.detail-poster {
  position: relative;
  overflow: hidden;
  max-width: 420px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow);
}

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

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

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

.hero-dot.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

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

.section-head.centered {
  display: block;
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-head.compact {
  display: block;
}

.section-head h2,
.content-card h2,
.side-panel h2,
.category-card-body h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-more {
  color: #fbbf24;
  font-weight: 900;
}

.intro-panel {
  padding-top: 56px;
}

.hero-search,
.search-panel {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

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

.hero-search button {
  min-height: 48px;
  padding: 0 24px;
}

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

.category-pill {
  display: block;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 9rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.38);
}

.category-pill span {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.category-pill em {
  color: #94a3b8;
  font-style: normal;
  font-size: 14px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta,
.rank-meta,
.breadcrumb {
  color: #94a3b8;
  font-size: 13px;
}

.movie-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card p {
  min-height: 68px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
}

.tag-row {
  gap: 6px;
}

.tag-row span,
.detail-tags a {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
}

.split-section,
.two-column,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.45fr);
  gap: 28px;
  align-items: start;
}

.rank-panel,
.side-panel,
.content-card,
.player-card,
.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.rank-panel {
  padding: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 12px;
  border-radius: 16px;
  color: #cbd5e1;
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #ffffff;
}

.rank-no,
.rank-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.18));
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
}

.rank-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.rank-title {
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-rank {
  max-height: 980px;
  overflow: auto;
}

.wide-rank {
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.28fr);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-bottom: 1px solid var(--line);
}

.page-hero {
  display: grid;
  place-items: center;
  padding: 90px 16px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.96));
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

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

.category-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

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

.category-card-body p {
  color: #cbd5e1;
}

.side-panel,
.content-card {
  padding: 24px;
}

.side-panel + .side-panel,
.content-card + .content-card,
.player-card + .content-card {
  margin-top: 22px;
}

.side-panel h2,
.content-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.side-rank .rank-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.side-rank .rank-meta {
  display: none;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px) saturate(1.14);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.58)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), #020617 100%);
}

.detail-inner {
  min-height: 620px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #fbbf24;
}

.detail-meta {
  color: #cbd5e1;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 26px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(2, 6, 23, 0.72)),
    rgba(2, 6, 23, 0.54);
  color: #ffffff;
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 46px rgba(234, 88, 12, 0.36);
}

.play-icon::before {
  content: "";
  position: relative;
  display: block;
  top: 23px;
  left: 29px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #ffffff;
}

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

.info-list {
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: #94a3b8;
}

.info-list dd {
  margin: 0;
  color: #ffffff;
}

.compact-pill {
  min-height: auto;
}

.search-panel {
  display: grid;
  max-width: none;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
}

.live-search-input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.48);
}

.filter-chip {
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
}

.filter-chip.active,
.filter-chip:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #cbd5e1;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 32px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-logo {
  margin-bottom: 10px;
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 14px;
}

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

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

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

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

  .hero-content,
  .detail-inner,
  .split-section,
  .two-column,
  .detail-layout,
  .wide-rank,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-content {
    padding-top: 38px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .logo-text {
    font-size: 17px;
  }

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: auto;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-track {
    min-height: 780px;
  }

  .hero-content {
    display: block;
    padding: 44px 0 80px;
  }

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

  .hero-poster {
    margin-top: 30px;
  }

  .hero-actions,
  .hero-search,
  .section-head {
    display: block;
  }

  .hero-actions a,
  .hero-search button,
  .hero-search input {
    width: 100%;
  }

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

  .hero-search button {
    margin-top: 10px;
  }

  .section-wrap {
    padding: 44px 0;
  }

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

  .rank-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

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

  .detail-inner {
    padding: 42px 0;
  }
}
