:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #06b6d4;
  --accent-deep: #2563eb;
  --dark: #020617;
  --dark-soft: #0f172a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #334155;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-deep);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.menu-toggle {
  margin-left: auto;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #0f172a;
  background: #e2e8f0;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--dark);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 5.5s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 20px 70px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 710px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ecfeff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 640px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.hero-meta {
  color: #cbd5e1;
  margin-bottom: 26px;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.btn-dark,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-dark:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-dark {
  color: #fff;
  background: #0f172a;
}

.btn-soft {
  color: #0f172a;
  background: #e0f2fe;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.main-section {
  padding: 64px 20px;
}

.section-dark {
  color: #fff;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

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

.section-dark .section-subtitle {
  color: #cbd5e1;
}

.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));
}

.category-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

.tone-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.tone-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.tone-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.tone-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.tone-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.tone-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.tone-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.tone-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.tone-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-desc {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 116px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-weight: 900;
}

.rank-cover {
  width: 116px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.rank-title {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 70px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.38), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(37, 99, 235, 0.44), transparent 30%),
    linear-gradient(135deg, #020617, #111827 58%, #1e293b);
}

.page-hero .container {
  display: grid;
  gap: 14px;
}

.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: #fff;
  color: #0f172a;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #cbd5e1;
}

.detail-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78)),
    var(--dark);
}

.detail-wrap {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 46px 20px 58px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-info h1 {
  margin: 16px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-info .detail-meta {
  color: #cbd5e1;
  margin-bottom: 16px;
}

.detail-info p {
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 18px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.25);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 3;
}

.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.42);
  font-size: 28px;
}

.play-title {
  font-size: 18px;
  font-weight: 900;
}

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

.side-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.07);
}

.side-link img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.side-link span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #cbd5e1;
  background: #020617;
  padding: 48px 20px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  margin: 12px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.none-message {
  display: none;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
}

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

  .detail-wrap,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 10px 0 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-slider,
  .hero-content {
    min-height: 78vh;
  }

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

  .hero-layer {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.94));
  }

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

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

  .rank-item {
    grid-template-columns: 44px 88px minmax(0, 1fr);
  }

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

  .rank-cover {
    width: 88px;
  }

  .main-section {
    padding: 46px 16px;
  }

  .content-card {
    padding: 20px;
  }
}
