* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #1e293b;
  --card-hover: #263449;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #22d3ee);
  color: white;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  color: var(--soft);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
  padding: 10px 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

main {
  min-height: 70vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.22));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  max-width: 760px;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.14);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  padding: 12px 28px;
  background: var(--cyan);
  color: white;
  box-shadow: 0 12px 34px rgba(6, 182, 212, 0.32);
}

.primary-button:hover {
  background: var(--cyan-strong);
  transform: translateY(-1px);
}

.ghost-button {
  padding: 11px 24px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
}

.ghost-button:hover {
  border-color: rgba(103, 232, 249, 0.5);
  color: #67e8f9;
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--cyan);
}

.quick-entry,
.content-section,
.page-shell,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 0 8px;
}

.quick-entry a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.5));
  box-shadow: var(--shadow);
}

.quick-entry strong,
.quick-entry span {
  display: block;
}

.quick-entry strong {
  font-size: 20px;
}

.quick-entry span {
  margin-top: 4px;
  color: var(--muted);
}

.content-section {
  padding: 64px 0;
}

.content-section.flush-top {
  padding-top: 24px;
}

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

.section-head h2,
.filter-heading h2,
.sticky-side h2,
.category-panel h2,
.article-content h2 {
  margin: 0;
  color: white;
  font-size: 28px;
  line-height: 1.2;
}

.section-head p,
.category-panel p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: #67e8f9;
  font-size: 15px;
}

.text-link:hover {
  color: white;
}

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

.video-card {
  min-width: 0;
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: var(--card-hover);
  box-shadow: 0 24px 46px rgba(6, 182, 212, 0.18);
}

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

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

.video-card:hover .card-cover img {
  transform: scale(1.08);
  opacity: 0.86;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.06) 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-card:hover .card-cover::after {
  opacity: 1;
}

.duration-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.duration-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
}

.rank-no {
  top: 10px;
  left: 10px;
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-body p {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card .card-body h3 {
  font-size: 16px;
}

.dark-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: #020617;
}

.gradient-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, #020617, #0f172a);
}

.horizontal-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-color: #334155 #0f172a;
}

.rail-item {
  flex: 0 0 320px;
}

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

.category-tile,
.category-panel,
.filter-panel,
.detail-card,
.player-card,
.sticky-side,
.list-block {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.category-tile {
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.36);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-collage img,
.category-panel-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile strong,
.category-tile span {
  display: block;
}

.category-tile strong {
  font-size: 18px;
}

.category-tile span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.list-block {
  overflow: hidden;
}

.list-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row:hover {
  background: rgba(51, 65, 85, 0.62);
}

.list-row img {
  width: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

.list-row strong,
.list-row em {
  display: block;
}

.list-row strong {
  font-size: 18px;
}

.list-row em {
  color: var(--muted);
  font-style: normal;
}

.list-row b {
  color: var(--soft);
}

.masonry-grid {
  columns: 3 260px;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.page-shell {
  padding: 40px 0 64px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.22), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  box-shadow: var(--shadow);
}

.slim-hero {
  padding: 46px;
}

.page-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.filter-panel {
  margin: 22px 0;
  padding: 22px;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-heading button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.5);
  color: var(--soft);
  padding: 8px 14px;
  cursor: pointer;
}

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

.filter-grid label,
.filter-grid span {
  display: grid;
  gap: 7px;
}

.filter-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  padding: 12px 13px;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.category-panels {
  display: grid;
  gap: 22px;
}

.category-panel {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-panel-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-panel-body {
  display: grid;
  align-content: center;
  gap: 12px;
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sample a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.68);
  color: var(--soft);
  font-size: 13px;
}

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

.sticky-side {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.sticky-side h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.side-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-item:last-child {
  border-bottom: 0;
}

.side-item img {
  width: 116px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong,
.side-item em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item strong {
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.side-item em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 1;
}

.detail-shell {
  padding: 28px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.player-card {
  padding: 12px;
  margin-bottom: 22px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), rgba(0, 0, 0, 0.46));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.94);
  color: white;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.35);
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  padding: 24px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.detail-heading img {
  width: 210px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}

.detail-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-heading p {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 18px;
}

.detail-tags {
  margin: 22px 0;
}

.article-content {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.article-content h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 22px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 26px;
}

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

.footer-main p,
.footer-main a,
.footer-bottom {
  color: var(--muted);
}

.footer-main h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-main a:hover {
  color: #67e8f9;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .card-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sticky-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-content {
    bottom: 74px;
  }

  .quick-entry,
  .card-grid,
  .category-grid,
  .footer-main,
  .category-panel,
  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-heading img {
    width: min(230px, 70vw);
  }

  .list-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .list-row img {
    width: 120px;
  }

  .list-row b {
    grid-column: 2;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .quick-entry,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    left: 18px;
    right: 18px;
  }

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

  .slim-hero {
    padding: 30px 22px;
  }

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

  .rail-item {
    flex-basis: 82vw;
  }

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

  .play-cover span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
