:root {
  color-scheme: light;
  --color-primary: 30 58 138;
  --color-primary-hover: 30 64 175;
  --color-slate-50: 248 250 252;
  --color-slate-100: 241 245 249;
  --color-slate-200: 226 232 240;
  --color-slate-500: 100 116 139;
  --color-slate-600: 71 85 105;
  --color-slate-700: 51 65 85;
  --color-slate-900: 15 23 42;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 18px 40px rgba(15, 23, 42, 0.14);
  --radius-card: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: rgb(var(--color-slate-50));
  color: rgb(var(--color-slate-900));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: rgb(var(--color-slate-50));
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgb(var(--color-slate-200));
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  font-weight: 800;
  color: rgb(var(--color-slate-900));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgb(var(--color-primary));
  color: #fff;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.22);
}

.brand-text {
  font-size: 1.25rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1rem;
  color: rgb(var(--color-slate-700));
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: rgb(var(--color-primary));
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-search input,
.search-panel input,
.filter-toolbar input,
.home-search-card input {
  width: 100%;
  border: 1px solid rgb(203, 213, 225);
  border-radius: 0.65rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  color: rgb(var(--color-slate-900));
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.filter-toolbar input:focus,
.home-search-card input:focus {
  border-color: rgb(59, 130, 246);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.header-search button {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.6rem 0.85rem;
  background: rgb(var(--color-primary));
  color: #fff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: rgb(var(--color-slate-100));
  color: rgb(var(--color-slate-900));
}

.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgb(var(--color-slate-200));
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.75rem;
}

.mobile-channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.4rem;
}

.mobile-channel-links a {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgb(var(--color-slate-100));
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  border-radius: 0.65rem;
  padding: 0.6rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: rgb(var(--color-primary));
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
  background: rgb(var(--color-primary-hover));
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(110deg, rgb(23, 37, 84), rgb(30, 58, 138) 48%, rgb(14, 116, 144));
  color: #fff;
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 2rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero-tags,
.tag-cloud,
.filter-chips,
.hero-actions,
.hero-channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero-actions {
  margin-top: 1.7rem;
}

.hero-image-panel {
  position: relative;
  z-index: 1;
  border-radius: 1.4rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  aspect-ratio: 16 / 10;
}

.hero-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.46));
}

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

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

.hero-dots button {
  width: 2rem;
  height: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-channel-links {
  position: absolute;
  left: 50%;
  bottom: 4.7rem;
  z-index: 4;
  justify-content: center;
  width: min(960px, calc(100% - 2rem));
  transform: translateX(-50%);
}

.hero-channel-links a {
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.home-search-card {
  margin-top: -2.2rem;
  position: relative;
  z-index: 5;
}

.home-search-card form {
  border: 1px solid rgb(var(--color-slate-200));
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--shadow-card-hover);
}

.home-search-card label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 800;
  color: rgb(var(--color-slate-900));
}

.home-search-card form > div,
.search-panel {
  display: flex;
  gap: 0.75rem;
}

.page-stack {
  display: grid;
  gap: 3rem;
  padding: 3rem 0;
}

.content-section {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-title,
.category-overview-card h2,
.prose-card h2 {
  margin: 0;
  color: rgb(var(--color-slate-900));
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-more {
  color: rgb(var(--color-primary));
  font-weight: 800;
}

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

.video-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(var(--color-slate-200));
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  border-color: rgba(30, 58, 138, 0.2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(30, 58, 138), rgb(14, 116, 144));
  aspect-ratio: 16 / 9;
}

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

.video-card:hover .video-card-image {
  transform: scale(1.05);
}

.badge-rating,
.rank-flag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-rating {
  top: 0.55rem;
  right: 0.55rem;
  background: rgb(254, 243, 199);
  color: rgb(146, 64, 14);
}

.rank-flag {
  left: 0.55rem;
  top: 0.55rem;
  min-width: 2rem;
  justify-content: center;
  background: rgb(30, 58, 138);
  color: #fff;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: rgb(var(--color-primary));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.video-card-body strong {
  overflow: hidden;
  color: rgb(var(--color-slate-900));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: rgb(var(--color-slate-500));
  font-size: 0.82rem;
}

.badge-region,
.badge-year,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-region {
  background: rgb(220, 252, 231);
  color: rgb(22, 101, 52);
}

.badge-year {
  background: rgb(219, 234, 254);
  color: rgb(30, 64, 175);
}

.card-line {
  overflow: hidden;
  color: rgb(var(--color-slate-600));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
}

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

.video-card.compact .video-card-body {
  padding: 0.8rem;
}

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

.category-tile,
.category-overview-card,
.prose-card,
.search-panel,
.filter-toolbar,
.ranking-list {
  border: 1px solid rgb(var(--color-slate-200));
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-tile {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.category-covers img {
  width: 100%;
  border-radius: 0.55rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, rgb(30, 58, 138), rgb(14, 116, 144));
}

.category-tile strong {
  font-size: 1.08rem;
}

.category-tile small,
.category-overview-card p,
.compact-hero p,
.prose-card p {
  color: rgb(var(--color-slate-600));
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 1.2rem;
}

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

.ranking-list {
  display: grid;
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.88rem 1rem;
  border-bottom: 1px solid rgb(var(--color-slate-200));
}

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

.ranking-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgb(var(--color-slate-100));
  color: rgb(var(--color-primary));
  font-weight: 900;
}

.ranking-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-row em {
  color: rgb(var(--color-slate-500));
  font-style: normal;
  font-size: 0.84rem;
}

.inner-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  padding: 2rem;
  background: linear-gradient(120deg, rgb(23, 37, 84), rgb(30, 58, 138));
  color: #fff;
}

.compact-hero {
  margin-bottom: 2rem;
}

.compact-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
}

.compact-hero p {
  max-width: 760px;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgb(var(--color-slate-600));
  font-size: 0.94rem;
}

.breadcrumb a {
  color: rgb(var(--color-primary));
  font-weight: 700;
}

.category-overview-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.2rem;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-toolbar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  background: rgb(var(--color-slate-100));
  color: rgb(var(--color-slate-700));
  font-weight: 800;
}

.filter-chips button.is-active {
  background: rgb(var(--color-primary));
  color: #fff;
}

.search-panel {
  margin-bottom: 1.2rem;
  padding: 1rem;
}

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

.detail-top {
  background: linear-gradient(120deg, rgb(15, 23, 42), rgb(30, 58, 138));
  color: #fff;
  padding: 2rem 0 3rem;
}

.detail-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.detail-breadcrumb a {
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.72));
}

.player-veil.is-hidden {
  display: none;
}

.play-button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: rgb(var(--color-primary));
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.detail-info {
  display: grid;
  gap: 1rem;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  font-weight: 900;
}

.detail-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.detail-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.detail-facts strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
}

.tag-cloud {
  margin-top: 0.2rem;
}

.tag {
  background: rgb(var(--color-slate-100));
  color: rgb(var(--color-slate-700));
}

.detail-info .tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.prose-card {
  padding: 1.5rem;
}

.prose-card h2 {
  margin-bottom: 0.8rem;
}

.prose-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid rgb(var(--color-slate-200));
  background: #fff;
  color: rgb(var(--color-slate-600));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer strong {
  color: rgb(var(--color-slate-900));
  font-size: 1.1rem;
}

.site-footer p {
  max-width: 640px;
  margin: 0.5rem 0 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer nav a {
  color: rgb(var(--color-slate-700));
  font-weight: 700;
}

.is-hidden-card {
  display: none;
}

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

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

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

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-slider,
  .hero-track {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 2rem;
    padding-bottom: 8rem;
  }

  .hero-image-panel {
    order: -1;
    max-height: 260px;
  }

  .hero-channel-links {
    bottom: 4.3rem;
  }

  .video-grid,
  .compact-grid,
  .category-grid,
  .ranking-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .long-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container-custom {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-slider,
  .hero-track {
    min-height: 720px;
  }

  .hero-slide {
    width: calc(100% - 1.5rem);
  }

  .hero-actions,
  .home-search-card form > div,
  .search-panel,
  .category-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .video-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .ranking-row em {
    grid-column: 2;
  }

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

  .page-hero {
    padding: 1.35rem;
  }
}
