* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.24);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --blue: #38bdf8;
  --green: #22c55e;
  --purple: #a855f7;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.23), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(168, 85, 247, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

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

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

.site-header {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #2563eb, #a855f7);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.home-btn,
.primary-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 900;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.home-btn:hover,
.primary-btn:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.58);
  background: rgba(56, 189, 248, 0.18);
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 58px;
}

.hero,
.watch-hero,
.empty-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 8, 23, 0.95));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero {
  padding: 46px 28px 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1,
.watch-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-desc {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 24px;
}

.section-head {
  margin: 30px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.video-count {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

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

.video-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.video-card {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 8, 23, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.54);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42), 0 0 26px rgba(56, 189, 248, 0.18);
}

.cover-box {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.cover-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.video-card:hover .cover-box img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.card-meta,
.watch-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.card-body strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.card-desc {
  color: rgba(226, 232, 240, 0.74);
  font-size: 14px;
  line-height: 1.7;
}

.breadcrumb {
  margin: 8px 0 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumb a {
  color: #bae6fd;
  font-weight: 900;
}

.watch-hero {
  padding: 30px 28px;
  margin-bottom: 22px;
}

.watch-hero h1 {
  font-size: clamp(30px, 6vw, 54px);
}

.watch-meta {
  margin-top: 14px;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-panel {
  margin: 22px auto 0;
  max-width: 1000px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.detail-panel p:last-child,
.empty-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.pager {
  max-width: 1000px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pager a,
.pager-disabled {
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.pager a:hover {
  border-color: rgba(125, 211, 252, 0.54);
  background: rgba(56, 189, 248, 0.12);
}

.pager span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
}

.pager strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.pager-disabled {
  opacity: 0.56;
}

.recommend-section {
  max-width: 1000px;
  margin: 10px auto 0;
}

.empty-card {
  padding: 30px;
}

.empty-card h1,
.empty-card h2 {
  margin: 0 0 12px;
}

.empty-card.small {
  padding: 20px;
}

.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
}

.site-footer a {
  color: #86efac;
  font-weight: 900;
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 20px, 1120px);
    padding: 14px 0;
    align-items: flex-start;
  }

  .brand strong {
    font-size: 17px;
  }

  .home-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .page,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .hero,
  .watch-hero,
  .empty-card,
  .detail-panel {
    border-radius: 22px;
  }

  .hero {
    padding: 32px 20px 26px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .video-grid,
  .video-grid.compact {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .watch-hero {
    padding: 24px 20px;
  }

  .video-wrap {
    border-radius: 14px;
  }

  .detail-panel {
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
