:root {
  --bg: #071318;
  --bg-soft: #0e2229;
  --panel: #ffffff;
  --panel-muted: #f6fbfc;
  --text: #16212a;
  --text-soft: #60717d;
  --muted: #8da0ad;
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --cyan: #0891b2;
  --blue: #2563eb;
  --orange: #ea580c;
  --line: rgba(14, 39, 48, 0.12);
  --shadow: 0 18px 50px rgba(4, 28, 38, 0.16);
  --shadow-strong: 0 30px 80px rgba(2, 20, 30, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34rem),
    linear-gradient(180deg, #f7fcfd 0%, #ffffff 38%, #f4fafb 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 19, 24, 0.86);
  backdrop-filter: blur(18px);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.35);
}

.brand-text {
  font-size: 1.08rem;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0b1720 0%, #102f38 44%, #05090d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.42), transparent 24rem),
    radial-gradient(circle at 85% 16%, rgba(37, 99, 235, 0.32), transparent 28rem);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s 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;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 14, 0.96), rgba(5, 10, 14, 0.72) 48%, rgba(5, 10, 14, 0.38));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: 42px;
  align-items: center;
  min-height: 640px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #a7ffef;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.28);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  color: var(--teal);
  background: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

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

.hero-card-info {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(5, 14, 18, 0.74);
  backdrop-filter: blur(14px);
}

.hero-card-info strong {
  display: block;
  font-size: 1.08rem;
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.hero-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.active {
  width: 30px;
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section.dark {
  color: #fff;
  background: linear-gradient(135deg, #071318, #0e2d35 54%, #071318);
}

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

.section-kicker {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-title h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.detail-title p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-soft);
}

.dark .section-head p,
.dark .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(5, 25, 34, 0.08);
  transition: 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a1519;
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 16, 22, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-play {
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  box-shadow: 0 16px 34px rgba(10, 70, 90, 0.36);
}

.card-body {
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 26px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  font-size: 0.76rem;
  font-weight: 750;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.28;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding: 26px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.96), rgba(37, 99, 235, 0.88));
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.category-card p,
.category-card span {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  padding: 72px 0 46px;
  color: #fff;
  background: linear-gradient(135deg, #071318, #0d3139 52%, #09202a);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 36px rgba(9, 41, 52, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(15, 88, 103, 0.14);
  border-radius: 16px;
  outline: none;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  font-weight: 900;
}

.rank-cover img {
  width: 82px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.rank-item p {
  margin: 0;
  color: var(--text-soft);
}

.detail-hero {
  padding: 54px 0;
  color: #fff;
  background: radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.32), transparent 28rem), linear-gradient(135deg, #071318, #0b2630 60%, #040608);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

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

.detail-title h1 {
  color: #fff;
}

.detail-title p,
.detail-meta {
  color: rgba(255, 255, 255, 0.78);
}

.player-section {
  padding: 60px 0;
  background: #061015;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

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

.play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.content-panel {
  display: grid;
  gap: 24px;
  padding: 60px 0 72px;
}

.article-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(5, 25, 34, 0.06);
}

.article-box h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.article-box p {
  margin: 0;
  color: var(--text-soft);
}

.no-results {
  display: none;
  padding: 26px;
  border: 1px dashed rgba(13, 148, 136, 0.32);
  border-radius: 20px;
  color: var(--text-soft);
  background: rgba(20, 184, 166, 0.06);
}

.no-results.visible {
  display: block;
}

.site-footer {
  padding: 46px 0 28px;
  color: rgba(255, 255, 255, 0.76);
  background: #061015;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  color: #fff;
  font-size: 1.1rem;
}

.footer-grid p {
  max-width: 560px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 8px;
  }

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

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

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

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero h1,
  .hero h2 {
    font-size: 2.55rem;
  }

  .hero-controls {
    left: 16px;
    right: auto;
  }

  .section,
  .content-panel {
    padding: 44px 0;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 13px;
  }

  .rank-item {
    grid-template-columns: 42px 70px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-cover img {
    width: 70px;
    height: 92px;
  }

  .article-box {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
