:root {
  --bg: #030712;
  --bg-soft: #09111f;
  --card: rgba(15, 23, 42, 0.78);
  --card-strong: rgba(17, 24, 39, 0.96);
  --line: rgba(103, 232, 249, 0.18);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --purple: #a78bfa;
  --yellow: #facc15;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(6, 182, 212, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 4%, rgba(244, 114, 182, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #030712 45%, #050816 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.1), rgba(3, 7, 18, 0.86));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(103, 232, 249, 0.16);
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(22px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

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

.nav-link {
  color: #d1d5db;
  font-weight: 650;
  transition: color 0.24s ease, transform 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  overflow: hidden;
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 10px 88px 10px 16px;
}

.top-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  padding: 0 14px;
  font-weight: 750;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(34, 211, 238, 0.34);
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 14px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.86);
  padding: 16px;
}

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

.mobile-nav nav,
.mobile-category-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-category-links {
  margin-top: 14px;
}

.mobile-category-links a,
.footer-links a {
  color: #d1d5db;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  transition: color 0.24s ease, border-color 0.24s ease;
}

.mobile-category-links a:hover,
.footer-links a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
}

.hero-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.52), rgba(88, 28, 135, 0.4)), rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 20%, rgba(244, 114, 182, 0.24), transparent 28rem),
    radial-gradient(circle at 16% 88%, rgba(34, 211, 238, 0.22), transparent 24rem),
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.34));
}

.hero-carousel {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity 0.7s ease, transform 0.7s ease;
  padding: 72px clamp(26px, 6vw, 78px) 150px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 47, 73, 0.34);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  color: var(--cyan);
  font-size: clamp(24px, 3.3vw, 42px);
  line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.detail-info-card p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags,
.movie-meta-line,
.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.movie-meta-line span,
.detail-meta-grid span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(15, 23, 42, 0.64);
  padding: 6px 12px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.primary-button {
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.25);
}

.ghost-button {
  border: 1px solid rgba(34, 211, 238, 0.34);
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(244, 114, 182, 0.24);
}

.hero-poster {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(244, 114, 182, 0.14));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
  transform: perspective(900px) rotateY(-8deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  left: clamp(26px, 6vw, 78px);
  bottom: 112px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.hero-search-panel {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  right: clamp(18px, 4vw, 48px);
  bottom: 24px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.hero-search-panel form,
.hot-entry {
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 24px;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(18px);
  padding: 16px;
}

.hero-search-panel label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.hero-search-panel form div {
  display: flex;
  gap: 10px;
}

.hero-search-panel input,
.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  outline: 0;
  color: var(--text);
  background: rgba(15, 23, 42, 0.84);
  padding: 0 16px;
}

.hero-search-panel input {
  flex: 1;
}

.hero-search-panel button {
  border: 0;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  padding: 0 18px;
  font-weight: 850;
}

.hot-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hot-entry strong {
  color: var(--yellow);
  font-size: 20px;
}

.hot-entry span {
  color: #cbd5e1;
  font-size: 14px;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 46px auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card,
.article-card,
.detail-info-card,
.player-card {
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(3, 7, 18, 0.82));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 20px;
}

.category-tile::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.23), transparent 70%);
}

.category-tile h3,
.category-overview-card h2 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 22px;
}

.category-tile p,
.category-overview-card p {
  color: var(--muted);
}

.category-count {
  color: var(--cyan);
  font-weight: 850;
}

.category-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.category-samples a,
.category-overview-card li a {
  color: #e5e7eb;
}

.category-samples a:hover,
.category-overview-card li a:hover,
.ranking-table a:hover,
.movie-card h3 a:hover {
  color: var(--cyan);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.72), rgba(88, 28, 135, 0.6));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.92), transparent);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta-line {
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta-line span {
  padding: 3px 8px;
  font-size: 12px;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.compact-card p {
  min-height: 44px;
  font-size: 13px;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.large-filter {
  grid-template-columns: minmax(280px, 1fr) 200px 200px;
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 74% 14%, rgba(244, 114, 182, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(8, 47, 73, 0.52), rgba(15, 23, 42, 0.86));
  box-shadow: var(--shadow);
  padding: clamp(30px, 6vw, 74px);
}

.compact-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.category-hero,
.ranking-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.category-overview-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 8px;
}

.category-overview-card li span {
  flex-shrink: 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 14px 16px;
  text-align: left;
}

.ranking-table th {
  color: var(--cyan);
  background: rgba(8, 47, 73, 0.38);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #cbd5e1;
}

.breadcrumbs a {
  color: var(--cyan);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #000;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.28);
  padding: 15px 24px;
  font-size: 18px;
  font-weight: 900;
}

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

.detail-info-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px;
}

.detail-info-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(244, 114, 182, 0.14));
}

.detail-info-card h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

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

.article-card {
  padding: 24px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--cyan);
}

.article-card p {
  margin: 0;
  color: #d1d5db;
}

.article-card:nth-child(3) {
  grid-column: 1 / -1;
}

.detail-tags span {
  color: var(--cyan);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(103, 232, 249, 0.16);
  background: rgba(3, 7, 18, 0.72);
}

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

.footer-logo {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.site-footer p,
.site-footer h3 {
  margin: 0 0 14px;
}

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

.is-filtered-out {
  display: none !important;
}

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

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

  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: 360px;
  }

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-slide {
    padding: 42px 20px 230px;
  }

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

  .hero-search-panel form div,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-dots {
    bottom: 202px;
  }

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

  .filter-bar,
  .large-filter {
    grid-template-columns: 1fr;
  }

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

  .detail-info-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .content-section,
  .hero-shell,
  .page-hero,
  .detail-hero,
  .footer-grid {
    width: min(100% - 20px, 1280px);
  }

  .brand {
    font-size: 19px;
  }

  .movie-grid,
  .compact-grid {
    gap: 12px;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }
}
