:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --emerald: #10b981;
  --emerald-strong: #059669;
  --cyan: #06b6d4;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.26), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  min-height: 100vh;
}

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

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

button, input {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: white;
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.28);
}

.brand-name {
  font-size: 1.12rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 0.6rem 0.75rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link-small {
  font-size: 0.92rem;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(16, 185, 129, 0.15);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  background: transparent;
  color: white;
  border: 0;
  outline: 0;
  padding: 0.62rem 0.95rem;
}

.header-search button,
.primary-button,
.secondary-button {
  border: 0;
  color: white;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.55rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  margin: 0.28rem 0;
}

.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

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

.hero-slide {
  display: none;
  min-height: 600px;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.20) 42%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 6.4rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 3rem;
  align-items: end;
}

.hero-kicker,
.section-kicker,
.eyebrow {
  color: #a7f3d0;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  color: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero-card {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card-body {
  padding: 1rem;
}

.hero-card-body strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.hero-card-body span {
  color: var(--weak);
  font-size: 0.92rem;
}

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

.hero-dot {
  width: 2.4rem;
  height: 0.32rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.section {
  margin-top: 4rem;
}

.section-head,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.section h2,
.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.15rem 0 0;
  letter-spacing: -0.035em;
}

.section-head p,
.page-head p {
  color: var(--weak);
  max-width: 680px;
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.movie-card,
.category-card,
.info-card {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.20);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.46);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
}

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

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

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

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

.poster-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: white;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 1rem;
}

.movie-meta {
  display: flex;
  gap: 0.65rem;
  color: #a7f3d0;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.movie-info h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.movie-info p {
  color: var(--weak);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0.58rem 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.movie-card-compact .poster img {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card {
  padding: 1.15rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at right top, rgba(16, 185, 129, 0.18), transparent 18rem),
    rgba(15, 23, 42, 0.72);
}

.category-card h3 {
  font-size: 1.35rem;
  margin: 0.55rem 0;
}

.category-card p {
  color: var(--weak);
  line-height: 1.7;
  margin: 0;
}

.category-card span {
  color: #a7f3d0;
  font-weight: 700;
}

.rank-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.15rem;
}

.rank-list {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

.rank-item {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background: rgba(16, 185, 129, 0.10);
}

.rank-number {
  color: #a7f3d0;
  font-size: 1.05rem;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-meta {
  color: var(--weak);
  font-size: 0.86rem;
  white-space: nowrap;
}

.filter-panel {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 1.35rem;
  padding: 1rem;
  margin-bottom: 1.35rem;
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: rgba(2, 6, 23, 0.55);
  color: white;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  border-color: rgba(16, 185, 129, 0.46);
  background: rgba(16, 185, 129, 0.16);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--weak);
  font-size: 0.92rem;
  margin: 1.35rem 0;
}

.breadcrumb a {
  color: #a7f3d0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.20), transparent 28rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
}

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

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0.65rem 0 1rem;
}

.detail-info p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0;
}

.player-section {
  margin-top: 2rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.70));
  cursor: pointer;
  z-index: 3;
}

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

.play-overlay span {
  width: 5.2rem;
  height: 5.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 22px 56px rgba(16, 185, 129, 0.36);
  font-size: 2rem;
  padding-left: 0.2rem;
}

.play-overlay b {
  display: block;
  margin-top: 6.4rem;
  position: absolute;
  font-size: 1.1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 1.35rem;
  padding: 1.35rem;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.article-panel p {
  color: var(--muted);
  line-height: 2;
  margin: 0 0 1.15rem;
}

.side-list {
  display: grid;
  gap: 0.7rem;
}

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

.empty-state {
  display: none;
  border: 1px solid var(--line);
  color: var(--weak);
  border-radius: 1.2rem;
  padding: 2rem;
  text-align: center;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  color: var(--weak);
}

.footer-inner p {
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-content: flex-start;
}

.footer-links a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
}

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

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

  .hero-card {
    max-width: 360px;
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
  }

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

  .site-menu {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-menu.is-open {
    display: flex;
  }

  .header-search {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
  }

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

  .hero-content {
    padding-top: 5.5rem;
  }

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

  .section-head,
  .page-head,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

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

@media (max-width: 560px) {
  .main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero-content {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

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

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

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

  .rank-meta {
    display: none;
  }

  .detail-hero {
    padding: 1rem;
  }
}
