* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #0f172a 52%, #020617 100%);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #ffffff;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.28);
}

.logo-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.mobile-nav a,
.footer-links a {
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

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

.hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.82) 40%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.1) 52%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-labels,
.meta-line,
.tag-row,
.breadcrumbs,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.28);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.pill.hot {
  background: #06b6d4;
  color: #ffffff;
  border-color: transparent;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  color: #ffffff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  margin: 18px 0 18px;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-title p {
  color: #cbd5e1;
  font-size: 18px;
  max-width: 760px;
}

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

.btn-primary,
.btn-ghost,
.play-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.play-main {
  background: #06b6d4;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover,
.play-main:hover {
  background: #0891b2;
  transform: translateY(-1px);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.72);
}

.btn-ghost:hover {
  background: rgba(30, 41, 59, 0.92);
}

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

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

.hero-dot.active {
  background: #06b6d4;
}

.main-wrap,
.page-wrap,
.detail-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.main-wrap {
  padding: 48px 0 72px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-head h2,
.panel-title,
.category-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 4vw, 34px);
}

.section-head p,
.category-card p,
.site-footer p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.section-more {
  color: #67e8f9;
  font-weight: 700;
}

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

.video-card,
.category-card,
.info-panel,
.rank-item,
.search-panel {
  border: 1px solid rgba(51, 65, 85, 0.78);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.28);
}

.video-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 22px 65px rgba(6, 182, 212, 0.12);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #020617;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.02) 45%);
}

.card-rank {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(234, 179, 8, 0.94);
  color: #111827;
  font-weight: 900;
}

.play-dot {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(6, 182, 212, 0.9);
  color: #ffffff;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #67e8f9;
}

.card-body p {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 13px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  font-size: 12px;
}

.page-hero {
  padding: 72px 0 36px;
  background:
    radial-gradient(circle at 16% 12%, rgba(6, 182, 212, 0.22), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.2), transparent 25%);
}

.page-wrap {
  padding-bottom: 72px;
}

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

.category-card {
  padding: 26px;
}

.category-card .btn-ghost {
  margin-top: 18px;
}

.search-panel {
  padding: 18px;
  margin-bottom: 28px;
}

.search-box {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.88);
  background: rgba(2, 6, 23, 0.52);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  font-size: 16px;
}

.filter-row {
  margin-top: 12px;
}

.filter-chip {
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
  color: #67e8f9;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.filter-chip.active {
  background: #06b6d4;
  color: #ffffff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
}

.rank-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.95), rgba(249, 115, 22, 0.95));
  color: #111827;
  font-weight: 900;
  font-size: 20px;
}

.rank-info h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: #94a3b8;
}

.rank-link {
  color: #67e8f9;
  font-weight: 800;
  padding-right: 14px;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(0.9);
  transform: scale(1.03);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 54px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.detail-title h1 {
  margin-top: 10px;
}

.breadcrumbs {
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #67e8f9;
}

.detail-wrap {
  padding: 42px 0 72px;
}

.player-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

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

.play-main {
  pointer-events: auto;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  margin-top: 28px;
}

.info-panel {
  padding: 26px;
}

.info-panel h2 {
  margin-top: 0;
  color: #ffffff;
}

.info-panel p {
  color: #cbd5e1;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  color: #cbd5e1;
}

.meta-list dt {
  color: #94a3b8;
}

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

.related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(6, 182, 212, 0.1);
}

.related-item img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  color: #ffffff;
}

.related-item span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.78);
  background: #020617;
  padding: 42px 0;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-result {
  display: none;
  padding: 30px;
  text-align: center;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
}

.empty-result.show {
  display: block;
}

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 92px 0 84px;
  }

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

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

  .detail-hero-content {
    align-items: start;
    padding-top: 38px;
  }

  .detail-poster {
    width: min(260px, 70%);
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .main-wrap,
  .page-wrap,
  .detail-wrap,
  .hero-content,
  .detail-hero-content,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .logo-text {
    font-size: 17px;
  }

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

  .section-head,
  .rank-item {
    align-items: flex-start;
  }

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

  .rank-link {
    grid-column: 2;
    padding-right: 0;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 34px;
  }

  .card-body {
    padding: 12px;
  }

  .mobile-nav.open {
    grid-template-columns: 1fr;
  }
}
