:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #001f1b;
  background: linear-gradient(135deg, #2dd4bf, #99f6e4);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.35);
}

.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a,
.mobile-panel a {
  color: #f8fafc;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: #2dd4bf;
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  background: rgba(51, 65, 85, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 14px;
  color: #fff;
  background: transparent;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search button {
  border: 0;
  color: #cbd5e1;
  background: transparent;
  padding: 9px 13px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

.mobile-panel a {
  display: block;
  padding: 8px 0;
}

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

.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 30%, rgba(20, 184, 166, 0.36), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 52px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a7f3d0;
  background: rgba(15, 118, 110, 0.24);
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.badge {
  color: #ccfbf1;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(15, 118, 110, 0.25);
  padding: 8px 10px;
}

.tag {
  color: #0f766e;
  background: #ccfbf1;
  padding: 7px 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #042f2e;
  background: linear-gradient(135deg, #2dd4bf, #99f6e4);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.35);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

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

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

.hero-card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-card-body p {
  margin: 0;
  color: #cbd5e1;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #14b8a6;
}

.main {
  padding: 48px 0 64px;
}

.section {
  margin-bottom: 58px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.50);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

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

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

.poster-tall img {
  aspect-ratio: 3 / 4;
}

.poster-label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #022c22;
  background: rgba(153, 246, 228, 0.94);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  color: #475569;
  font-size: 13px;
}

.category-panel {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #ecfeff, #f8fafc 42%, #fff7ed);
  border: 1px solid rgba(20, 184, 166, 0.18);
  box-shadow: var(--soft-shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 96px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

.rank-item img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
}

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

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

.hero-lite {
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.32), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b 56%, #134e4a);
  padding: 64px 0;
}

.hero-lite h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-lite p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
}

.breadcrumb {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.player-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.80), rgba(2, 6, 23, 0.25));
  cursor: pointer;
  z-index: 2;
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #042f2e;
  background: linear-gradient(135deg, #2dd4bf, #99f6e4);
  box-shadow: 0 22px 40px rgba(20, 184, 166, 0.42);
  font-size: 34px;
  cursor: pointer;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: 22px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-card h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: #0f172a;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 38px 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: #2dd4bf;
}

.empty-state {
  display: none;
  border: 1px dashed #94a3b8;
  border-radius: 22px;
  padding: 28px;
  color: #64748b;
  background: #fff;
  text-align: center;
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-card {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 44px 80px 1fr;
  }

  .rank-item .btn {
    grid-column: 3 / 4;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    height: 60px;
  }

  .brand-name {
    font-size: 18px;
  }

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

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-item img {
    display: none;
  }

  .rank-item .btn {
    grid-column: 2 / 3;
  }
}
