:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --panel-glow: rgba(14, 165, 233, 0.25);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --orange: #f97316;
  --radius: 1.25rem;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.28);
}

.nav-bar {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  font-size: 0.8rem;
  box-shadow: 0 0 28px var(--panel-glow);
}

.logo-text {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--soft);
  font-weight: 700;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #38bdf8;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.6rem;
  height: 2px;
  border-radius: 999px;
  background: #38bdf8;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.25rem auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  padding: 0.45rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  color: var(--soft);
  font-weight: 700;
}

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

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow,
.hero-tags span,
.meta-chip,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.eyebrow {
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.eyebrow span:first-child {
  padding: 0.35rem 0.8rem;
  background: var(--accent-strong);
  color: white;
}

.eyebrow span:last-child {
  color: var(--soft);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.45rem, 6vw, 5.35rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 39rem;
  margin: 0 0 1.7rem;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions,
.section-head,
.panel-head,
.detail-meta,
.breadcrumb,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.82rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: white;
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #0369a1;
}

.btn-ghost {
  border-color: rgba(226, 232, 240, 0.22);
  color: var(--soft);
  background: rgba(15, 23, 42, 0.42);
}

.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: white;
  background: rgba(14, 165, 233, 0.14);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(14, 165, 233, 0.86);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 1rem;
  transform: translateY(-50%);
}

.hero-next {
  right: 1rem;
  transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
  width: 2.2rem;
  background: var(--accent);
}

.page-shell {
  padding-top: 6rem;
}

.section {
  padding: 4.2rem 0 0;
}

.section:last-child {
  padding-bottom: 4rem;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
}

.section-title span {
  color: #38bdf8;
}

.section-desc {
  max-width: 54rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  transform: translateY(-0.45rem);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38), 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.32), transparent 58%),
    linear-gradient(135deg, #0f172a, #1e293b 48%, #020617);
}

.card-media {
  aspect-ratio: 16 / 9;
}

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

.video-card:hover img,
.related-item:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(2, 6, 23, 0.72) 100%);
}

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.28);
}

.video-card:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.badge {
  position: absolute;
  z-index: 3;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  color: white;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
}

.badge-left {
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(2, 132, 199, 0.9);
}

.badge-right {
  right: 0.65rem;
  top: 0.65rem;
}

.card-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.card-body strong {
  overflow: hidden;
  color: white;
  font-size: 1.04rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.video-card:hover .card-body strong {
  color: #38bdf8;
}

.card-body em {
  display: -webkit-box;
  min-height: 2.8rem;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.horizontal-scroll .video-card {
  width: 20rem;
  flex: 0 0 auto;
}

.search-panel,
.feature-panel,
.rank-panel,
.category-card,
.detail-panel,
.related-panel,
.player-card,
.category-hero {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.search-controls {
  display: grid;
  grid-template-columns: 1fr 13rem;
  gap: 0.9rem;
}

.search-controls input,
.search-controls select,
.filter-input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: none;
  padding: 0 1rem;
  background: rgba(2, 6, 23, 0.54);
  color: white;
}

.search-controls input:focus,
.search-controls select:focus,
.filter-input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.search-results {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.search-results.is-open {
  display: grid;
}

.search-result {
  display: grid;
  grid-template-columns: 6.8rem 1fr;
  gap: 0.8rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.36);
}

.search-result .media-frame {
  aspect-ratio: 16 / 10;
  border-radius: 0.8rem;
}

.search-result strong {
  display: block;
  margin-bottom: 0.35rem;
  color: white;
}

.search-result em,
.search-result span {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.55;
}

.feature-panel {
  overflow: hidden;
}

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

.feature-media {
  min-height: 23rem;
}

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

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.feature-copy h2,
.category-hero h1,
.detail-panel h1,
.ranking-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.feature-copy p,
.category-hero p,
.detail-panel p {
  color: var(--soft);
  line-height: 1.82;
}

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

.category-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-0.35rem) scale(1.01);
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(37, 99, 235, 0.16));
}

.category-card strong {
  font-size: 1.18rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.rank-panel {
  padding: 1.25rem;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 3rem 9rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
  transform: translateX(0.25rem);
  background: rgba(14, 165, 233, 0.12);
}

.rank-num {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
}

.rank-copy strong {
  display: block;
  margin-bottom: 0.3rem;
  color: white;
  font-size: 1.02rem;
}

.rank-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 0.45rem;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  color: #64748b;
  font-size: 0.82rem;
}

.category-hero {
  padding: clamp(1.4rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.category-hero .btn {
  margin-top: 1rem;
}

.filter-line {
  margin: 1.4rem 0 2rem;
}

.hidden-card {
  display: none;
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: #38bdf8;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(18rem, 0.95fr);
  gap: 1.5rem;
}

.player-card {
  overflow: hidden;
  margin-bottom: 1.3rem;
  background: black;
}

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

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
  color: white;
  cursor: pointer;
  z-index: 3;
}

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

.play-pulse {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1rem rgba(14, 165, 233, 0.1), 0 0 4rem rgba(14, 165, 233, 0.45);
  font-size: 1.45rem;
}

.player-overlay strong {
  font-size: 1.25rem;
}

.detail-panel,
.related-panel {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.detail-panel h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-meta {
  margin: 0 0 1rem;
  color: var(--muted);
}

.meta-chip {
  padding: 0.35rem 0.7rem;
  color: white;
  background: var(--accent-strong);
  font-size: 0.82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 1.4rem;
}

.tag {
  padding: 0.35rem 0.68rem;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.84);
  font-size: 0.82rem;
}

.detail-section {
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.related-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.related-panel {
  position: sticky;
  top: 5.4rem;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.8rem;
  align-items: center;
}

.related-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
}

.related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0.4rem;
  color: white;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.poster-box {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, #020617, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.site-footer p {
  max-width: 30rem;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: 1.2rem;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .video-grid,
  .video-grid.three,
  .category-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .related-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-controls,
  .video-grid,
  .video-grid.three,
  .category-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 2.6rem 6.5rem 1fr;
    gap: 0.75rem;
  }

  .related-item {
    grid-template-columns: 7rem 1fr;
  }

  .horizontal-scroll .video-card {
    width: 17rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1rem, 1180px);
  }

  .hero-copy {
    padding-right: 1.5rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: 2.4rem 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
