:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #14b8a6;
  --brand-dark: #0f766e;
  --brand-soft: #ccfbf1;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-search {
  padding: 10px 18px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(20, 184, 166, 0.28), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.88);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.35);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.text-button {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 40px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.featured-wrap {
  max-width: 1280px;
  margin: -76px auto 34px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.featured-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.featured-cover {
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.featured-content h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.featured-content p {
  color: var(--muted);
  font-size: 17px;
}

.feature-meta span,
.card-meta span {
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.section-block,
.white-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.white-band {
  max-width: none;
  background: #ffffff;
}

.white-band > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.last-band {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.no-top-padding {
  padding-top: 20px;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.section-title.with-link {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-title.with-link a {
  color: var(--brand-dark);
  font-weight: 800;
}

.section-title.center {
  align-items: center;
  text-align: center;
}

.section-title.small h2 {
  font-size: 28px;
}

.grid {
  display: grid;
}

.cards-grid {
  gap: 24px;
}

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

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

.six-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

.video-card.large .card-cover {
  aspect-ratio: 16 / 10;
}

.video-card.compact .card-cover {
  aspect-ratio: 3 / 4;
}

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

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

.cover-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.32);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

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

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span,
.detail-tags a {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

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

.category-pill {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.5);
}

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

.category-pill span {
  color: var(--muted);
  font-size: 13px;
}

.rank-panel {
  padding: 24px;
  border-radius: 28px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-row span {
  color: var(--brand-soft);
  font-weight: 900;
}

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

.rank-row em {
  color: #fef3c7;
  font-style: normal;
  font-weight: 900;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.horizontal-cover {
  border-radius: 20px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.horizontal-body h3 {
  margin: 10px 0;
  font-size: 24px;
}

.horizontal-body p {
  color: var(--muted);
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 68px 24px 34px;
}

.compact-hero > div {
  padding: 40px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.22), transparent 36%),
    linear-gradient(135deg, #111827, #0f172a);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  margin: 16px 0 12px;
  max-width: 900px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.5s ease;
}

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

.category-card div {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-card span {
  color: var(--brand-soft);
  font-weight: 800;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 28px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
}

.main-filter {
  grid-template-columns: minmax(240px, 1fr) 170px 170px 170px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: #ffffff;
}

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

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

.rank-wide-row {
  display: grid;
  grid-template-columns: 54px 72px minmax(180px, 1fr) minmax(240px, 1fr) 60px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.rank-wide-row img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-number {
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 20px;
}

.rank-title {
  font-weight: 900;
}

.rank-info {
  color: var(--muted);
}

.rank-wide-row strong {
  color: #b45309;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #e5e7eb;
}

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

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

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 780px;
  color: #4b5563;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #374151;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 42px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), rgba(0, 0, 0, 0.35));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.95);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(20, 184, 166, 0.38);
}

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

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-text-card,
.detail-side {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.detail-text-card h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-text-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: -8px 0 4px;
  color: #111827;
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  background: #0f172a;
  color: #ffffff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1120px) {
  .four-cols,
  .three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-panel {
    order: -1;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-section {
    min-height: 560px;
  }

  .hero-content {
    padding: 0 22px 38px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .featured-card,
  .detail-hero,
  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .featured-wrap {
    margin-top: -42px;
  }

  .category-grid,
  .category-overview,
  .four-cols,
  .three-cols,
  .six-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-wide-row {
    grid-template-columns: 44px 64px 1fr 54px;
  }

  .rank-info {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .section-block,
  .white-band,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .compact-hero > div {
    padding: 28px;
    border-radius: 26px;
  }

  .category-grid,
  .category-overview,
  .four-cols,
  .three-cols,
  .six-cols {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .player-frame {
    border-radius: 20px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
