@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #0c1024;
  --bg-card: rgba(15, 23, 42, 0.84);
  --panel: rgba(15, 23, 42, 0.68);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --primary: #38bdf8;
  --primary-deep: #2563eb;
  --accent: #a78bfa;
  --hot: #f59e0b;
  --radius: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  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", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(167, 139, 250, 0.16), transparent 30rem),
    linear-gradient(180deg, #050816 0%, #080b1d 42%, #050816 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #03121f;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.45);
}

.brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.top-search input {
  width: 240px;
  padding: 11px 15px;
}

.top-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-button {
  color: #03121f;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.24);
}

.top-search button,
.mobile-search button {
  padding: 10px 15px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.ghost-button {
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.66);
}

.primary-button:hover,
.ghost-button:hover,
.top-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

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

.hero-light {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-light-one {
  left: 8%;
  top: 20%;
  background: rgba(56, 189, 248, 0.24);
}

.hero-light-two {
  right: 12%;
  bottom: 12%;
  background: rgba(167, 139, 250, 0.2);
}

.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;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.2), #050816 96%),
    radial-gradient(circle at 65% 42%, transparent, rgba(5, 8, 22, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  padding: 80px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
}

.hero-actions,
.center-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(2deg);
}

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

.hero-side {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(6, 82px);
  gap: 10px;
}

.hero-mini {
  position: relative;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-card);
}

.hero-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mini span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 8px;
  font-size: 11px;
  line-height: 1.2;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

.stats-strip a,
.category-tile,
.side-panel,
.page-hero,
.category-overview-card,
.filter-panel,
.article-section,
.player-section,
.detail-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.stats-strip a {
  padding: 20px;
  display: grid;
  gap: 4px;
}

.stats-strip strong {
  font-size: 34px;
  line-height: 1;
}

.stats-strip span,
.category-tile span,
.section-heading p,
.side-panel p,
.category-overview-card p,
.category-overview-card small,
.rank-row small,
.card-meta,
.movie-card p,
.article-section p,
.breadcrumb,
.empty-state {
  color: var(--muted);
}

section.container,
.category-strip {
  margin-top: 70px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading > span {
  width: 8px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.section-heading h2,
.side-panel h2,
.article-section h2,
.player-section h2,
.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 6px 0 0;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-spotlight:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.36);
}

.category-tile strong {
  font-size: 22px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

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

.poster-wrap {
  position: relative;
  display: block;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.85));
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #03121f;
  font-weight: 900;
  background: linear-gradient(135deg, var(--hot), #fde68a);
}

.card-content {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 46px;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
  font-size: 12px;
}

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 42px;
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  margin: 12px 0 0;
}

.tag-row.large span {
  font-size: 14px;
}

.side-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
}

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

.rank-list.compact {
  margin: 18px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
}

.rank-row b {
  color: var(--hot);
  font-size: 18px;
}

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

.rank-row strong,
.rank-row small {
  display: block;
}

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

.rank-row em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.full {
  width: 100%;
}

.center-actions {
  justify-content: center;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.78);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted-strong);
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.page-top {
  padding-top: 38px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 68px);
  margin-bottom: 28px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  filter: blur(18px);
}

.page-hero > div {
  position: relative;
  max-width: 780px;
}

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

.category-overview-list {
  display: grid;
  gap: 18px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 1fr 370px auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-preview a {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-preview span {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 6px 6px;
  font-size: 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 140px 150px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 15px;
}

.empty-state {
  display: none;
  padding: 26px;
  text-align: center;
}

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

.rank-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.rank-spotlight {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.rank-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.86));
}

.rank-spotlight span,
.rank-spotlight strong,
.rank-spotlight small {
  position: relative;
  z-index: 2;
}

.rank-spotlight span {
  color: var(--hot);
  font-weight: 900;
}

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

.breadcrumb a {
  color: var(--primary);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  padding: 24px;
  margin-bottom: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
}

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

.detail-info {
  align-self: center;
}

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

.player-section,
.article-section {
  padding: 24px;
  margin-bottom: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.38);
  position: relative;
}

.play-overlay span::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #03121f;
}

.article-section p {
  line-height: 1.9;
  font-size: 17px;
}

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

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

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: relative;
    top: auto;
  }

  .hero-side {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
    padding: 9px 14px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
  }

  .mobile-nav.open {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
  }

  .mobile-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-category-row a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.8);
  }

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

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

  .hero-poster {
    display: none;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .category-preview {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .rank-row em {
    display: none;
  }
}

@media (max-width: 540px) {
  .container,
  .header-inner,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 16px;
  }

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

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

  .stats-strip,
  .movie-grid,
  .category-grid,
  .rank-spotlight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .card-title {
    min-height: auto;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .article-section {
    padding: 18px;
  }
}
