:root {
  --page: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --night: #0f172a;
  --night-soft: #1e293b;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 13px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(59, 130, 246, 0.18);
  color: #ffffff;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 10px 24px 18px;
}

.mobile-link {
  display: block;
  padding: 10px 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.5), transparent 34%), linear-gradient(135deg, #020617, #111827 55%, #1d4ed8);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.14));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 80px 24px 110px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  padding: 7px 12px;
}

.section-kicker {
  padding: 6px 10px;
}

.hero h1 {
  max-width: 850px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.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;
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.content-section,
.page-shell,
.detail-shell,
.stats-panel,
.site-footer > div {
  max-width: 1280px;
  margin: 0 auto;
}

.content-section {
  padding: 66px 24px 0;
}

.full-width {
  padding-top: 40px;
}

.soft-section {
  margin-top: 66px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.section-head,
.showcase-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head h2,
.showcase-title h3,
.page-hero h1,
.related-panel h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head a,
.showcase-title a {
  color: var(--brand);
  font-weight: 800;
}

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

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

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.horizontal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.9), transparent 40%), linear-gradient(145deg, #111827, #334155);
}

.large .poster-frame,
.horizontal .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.video-card:hover .poster-frame img {
  transform: scale(1.08);
}

.quality-badge,
.score-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.quality-badge {
  left: 10px;
  background: rgba(37, 99, 235, 0.92);
}

.score-badge {
  right: 10px;
  background: rgba(245, 158, 11, 0.95);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.horizontal .card-link {
  display: grid;
  grid-template-columns: 130px 1fr;
}

.horizontal .poster-frame {
  height: 100%;
  min-height: 170px;
}

.large {
  position: relative;
}

.large .card-body h2 {
  font-size: 24px;
}

.showcase-block {
  margin-bottom: 44px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 70px;
  margin-bottom: 70px;
  padding: 36px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1e293b, #020617);
  color: #ffffff;
}

.stats-panel div {
  text-align: center;
}

.stats-panel strong {
  display: block;
  color: #60a5fa;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.stats-panel span {
  color: #cbd5e1;
  font-weight: 700;
}

.page-shell {
  padding: 42px 24px 72px;
}

.page-hero {
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  padding: 44px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.dark-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
}

.dark-hero h1,
.dark-hero p {
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: #64748b;
  font-size: 18px;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-nav a {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 800;
  padding: 8px 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
}

.search-box input {
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-box button {
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

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

.rank-row {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.rank-link {
  display: grid;
  grid-template-columns: 72px 96px 1fr 80px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}

.rank-num {
  color: #2563eb;
  font-size: 24px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #2563eb);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0;
  font-size: 18px;
}

.rank-info p {
  display: -webkit-box;
  margin: 5px 0;
  overflow: hidden;
  color: #64748b;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.rank-link > strong {
  color: #f59e0b;
  font-size: 22px;
}

.detail-shell {
  padding: 32px 24px 72px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #475569;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.watch-card,
.related-panel {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.player-start span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.96);
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.45);
}

.player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player:hover .player-bar,
.player:focus-within .player-bar {
  opacity: 1;
}

.player-bar button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
}

.detail-content {
  padding: 28px;
}

.detail-meta,
.score-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-meta span {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.detail-content h1 {
  margin: 18px 0 12px;
  color: #0f172a;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.score-line {
  margin-bottom: 28px;
  color: #64748b;
  font-weight: 800;
}

.score-line strong {
  color: #f59e0b;
  font-size: 28px;
}

.detail-content section {
  margin: 0 0 24px;
}

.detail-content h2,
.related-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.detail-tags {
  padding-top: 8px;
}

.related-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-poster {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.related-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card span {
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 24px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

.footer-bottom {
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

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

  .menu-button {
    display: block;
  }

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

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

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

  .detail-layout,
  .footer-grid,
  .stats-panel {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-content {
    padding: 72px 18px 96px;
  }

  .hero-control {
    display: none;
  }

  .content-section,
  .page-shell,
  .detail-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .video-grid,
  .catalog-grid,
  .compact,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-strip {
    grid-template-columns: 1fr;
  }

  .horizontal .card-link {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 28px;
  }

  .search-box,
  .rank-link,
  .related-card {
    grid-template-columns: 1fr;
  }

  .rank-link > strong {
    justify-self: start;
  }
}
