:root {
  --night-950: #0a1929;
  --night-900: #102a43;
  --night-850: #142f4a;
  --night-800: #1d3d5c;
  --night-700: #2d536f;
  --night-400: #8aa4bd;
  --night-300: #b6c8d9;
  --ocean-600: #1a92e6;
  --ocean-500: #2eabff;
  --ocean-400: #53bbff;
  --moon-500: #9553ff;
  --gold-500: #ffbd4a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(46, 171, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(149, 83, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--night-950), #081522 48%, var(--night-950));
  color: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 25, 41, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean-500), var(--moon-500));
  box-shadow: 0 12px 32px rgba(46, 171, 255, 0.28);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--night-300);
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(46, 171, 255, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  box-shadow: 0 18px 40px rgba(46, 171, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #54c0ff, #208fe0);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 22px;
}

.hero-shell {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 560px;
  background: rgba(16, 42, 67, 0.62);
  box-shadow: var(--shadow);
}

.hero-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
  position: relative;
  display: grid;
  min-width: 100%;
  min-height: 560px;
  grid-template-columns: 1.05fr 0.72fr;
  gap: 32px;
  align-items: center;
  padding: 64px;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 21, 34, 0.94), rgba(8, 21, 34, 0.70) 45%, rgba(8, 21, 34, 0.26)),
    var(--hero-bg) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(83, 187, 255, 0.32);
  border-radius: 999px;
  background: rgba(46, 171, 255, 0.13);
  color: #bfe8ff;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #d7e7f6;
  font-size: 18px;
}

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

.hero-meta {
  margin-bottom: 28px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #d8e7f4;
  font-size: 13px;
}

.hero-poster img {
  width: min(340px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.50);
  margin-left: auto;
}

.hero-arrows {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.76);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(46, 171, 255, 0.82);
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

.hero-dot.active {
  width: 30px;
  background: var(--ocean-400);
}

.section {
  padding: 48px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 7px 0 0;
  color: var(--night-300);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(29, 61, 92, 0.42);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(83, 187, 255, 0.34);
  background: rgba(29, 61, 92, 0.68);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(46, 171, 255, 0.18), rgba(149, 83, 255, 0.18));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.video-card:hover .poster-link img {
  transform: scale(1.06);
  opacity: 0.9;
}

.poster-link::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: rgba(46, 171, 255, 0.86);
  color: white;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.corner-label,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.82);
  color: #f4fbff;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, #ffbd4a, #ff6b6b);
  color: #151515;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  margin: 0 0 9px;
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title a:hover {
  color: var(--ocean-400);
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  margin: 0 0 12px;
  color: var(--night-300);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--night-400);
  font-size: 12px;
}

.category-card,
.info-panel,
.search-panel,
.detail-panel,
.ranking-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  background: rgba(16, 42, 67, 0.62);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(12px);
}

.category-card {
  overflow: hidden;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 187, 255, 0.35);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--night-300);
  font-size: 14px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.info-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

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

.hot-list a,
.ranking-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.hot-index {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-500), #ff6b6b);
  color: #111827;
  font-weight: 900;
}

.page-hero {
  padding: 56px 0 30px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--night-300);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--night-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--ocean-400);
}

.search-panel {
  padding: 22px;
  margin-bottom: 26px;
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  outline: none;
  background: rgba(10, 25, 41, 0.72);
  color: white;
  font-size: 16px;
}

.search-input:focus {
  border-color: rgba(83, 187, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(46, 171, 255, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e7f4;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(46, 171, 255, 0.24);
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020814;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(46, 171, 255, 0.20), rgba(2, 8, 20, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.play-large {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ocean-500), var(--moon-500));
  color: white;
  font-size: 38px;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(46, 171, 255, 0.36);
}

.player-status {
  padding: 12px 16px;
  color: var(--night-300);
  font-size: 14px;
}

.detail-panel {
  padding: 28px;
  margin-top: 24px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 16px;
  color: #d8e7f4;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.side-cover {
  overflow: hidden;
  border-radius: 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.side-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(16, 42, 67, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.related-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.related-list img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.site-footer {
  margin-top: 72px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--night-300);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.empty-message {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--night-300);
}

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    background: rgba(10, 25, 41, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    border-radius: 14px;
  }

  .hero-shell,
  .hero-slide {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px 24px 72px;
  }

  .hero-poster img {
    width: min(230px, 68vw);
    margin: 0;
  }

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

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

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

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .logo {
    font-size: 18px;
  }

  .nav-actions .btn {
    display: none;
  }

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

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

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

  .card-body {
    padding: 12px;
  }
}
