:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --ocean: #0284c7;
  --ocean-dark: #0369a1;
  --island: #059669;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-soft);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ocean);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #475569;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--ocean);
  background: #e0f2fe;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-gradient {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-slide.active img {
  transform: scale(1.12);
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.70) 35%, rgba(2, 6, 23, 0.15) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.20) 55%, rgba(2, 6, 23, 0.30) 100%);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 118px;
  max-width: 700px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(14, 165, 233, 0.13);
  color: #0284c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #e0f2fe;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: 0 18px 34px rgba(2, 132, 199, 0.32);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.ghost-btn.dark {
  color: #0f172a;
  background: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(1232px, calc(100vw - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
}

.hero-thumb.active,
.hero-thumb:hover {
  border-color: rgba(125, 211, 252, 0.80);
  background: rgba(2, 132, 199, 0.46);
}

.hero-thumb img {
  width: 48px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
}

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

.content-section.alt {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: #ffffff;
}

.intro-search {
  padding-top: 36px;
  padding-bottom: 20px;
}

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

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.more-link {
  flex: none;
  color: var(--ocean-dark);
  font-weight: 900;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.rail-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

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

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

.video-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link,
.poster-frame {
  display: block;
  position: relative;
}

.poster-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
}

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

.video-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent 54%);
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-meta em {
  font-style: normal;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.video-info h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--ocean-dark);
}

.video-info p {
  min-height: 44px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.search-panel h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.search-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.filter-form {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr auto;
  gap: 10px;
}

.filter-form input,
.filter-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
  outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.filter-form button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  font-weight: 900;
  cursor: pointer;
}

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

.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-row img {
  width: 66px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

.rank-copy small,
.meta-line {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 80px max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 16%, rgba(14, 165, 233, 0.45), transparent 34%),
    linear-gradient(135deg, #0f172a, #075985 52%, #065f46);
}

.page-hero.slim {
  min-height: 310px;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-covers img {
  height: 98px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-copy strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.category-copy em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  border-radius: 26px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
}

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

.ranking-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  font-weight: 900;
}

.ranking-card h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ranking-card p {
  margin-top: 10px;
  color: #334155;
  line-height: 1.85;
}

.detail-shell {
  padding: 28px max(24px, calc((100vw - 1280px) / 2 + 24px)) 0;
  background: #020617;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #7dd3fc;
}

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

.player-card,
.detail-side {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(2, 6, 23, 0.60));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: 0 18px 38px rgba(2, 132, 199, 0.35);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.video-wrap.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-side {
  padding: 14px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.detail-facts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-facts span {
  border-radius: 14px;
  padding: 10px 12px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.12);
  font-weight: 800;
  text-align: center;
}

.detail-content {
  display: block;
}

.article-main {
  max-width: 920px;
}

.article-main h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.lead {
  margin-top: 18px;
  color: #334155;
  font-size: 19px;
  line-height: 1.9;
}

.article-main h2 {
  margin-top: 34px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.article-main p {
  margin-top: 12px;
  color: #334155;
  line-height: 2;
}

.info-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  border-radius: 16px;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.info-list strong {
  color: var(--ocean-dark);
}

.empty-state {
  display: none;
  margin-top: 24px;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state.show {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-main p {
  max-width: 620px;
  margin-top: 16px;
  color: #cbd5e1;
  line-height: 1.85;
}

.footer-col h3 {
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 900;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 20px 24px;
  text-align: center;
  color: #94a3b8;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

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

  .search-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: none;
  }
}

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

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

  .mobile-menu.open {
    display: block;
  }

  .hero-copy {
    right: 24px;
    bottom: 150px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-thumb:nth-child(n+4) {
    display: none;
  }

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

  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 16px;
  }

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

  .content-section,
  .content-section.alt {
    padding: 42px 16px;
  }

  .hero-section {
    height: 76vh;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 116px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-thumbs {
    width: calc(100vw - 32px);
    bottom: 16px;
  }

  .hero-thumb img {
    width: 38px;
    height: 50px;
  }

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

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

  .ranking-poster {
    max-width: 180px;
  }

  .page-hero {
    min-height: 280px;
    padding: 52px 16px;
  }

  .search-panel {
    padding: 18px;
  }
}
