:root {
  --color-cyan: #06b6d4;
  --color-blue: #2563eb;
  --color-teal: #0d9488;
  --color-slate: #0f172a;
  --color-gray: #64748b;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.1);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #e2e8f0 100%);
  color: #1e293b;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0891b2 0%, #2563eb 52%, #0d9488 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.28s ease;
}

.site-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.04);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ecfeff;
}

.site-search {
  position: relative;
  width: 260px;
  flex: 0 0 auto;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(236, 254, 255, 0.9);
  font-size: 18px;
}

.search-input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  padding: 0 18px 0 42px;
  outline: none;
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: rgba(236, 254, 255, 0.86);
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #2563eb 0%, #0d9488 100%);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 10px 0;
}

.mobile-search {
  width: 100%;
  margin-top: 8px;
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 560px;
  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-media {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(6, 182, 212, 0.45), transparent 35%), linear-gradient(135deg, #0f172a 0%, #111827 45%, #164e63 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-media img.is-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.94);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-pills,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-pills span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.section-more,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.main-wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.content-section {
  margin-bottom: 72px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  color: #64748b;
}

.section-more {
  min-height: 42px;
  padding: 0 18px;
  color: #0891b2;
  background: #ecfeff;
}

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

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

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.45), transparent 35%), linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #0f766e 100%);
}

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

.poster-img.is-missing {
  opacity: 0;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.58) 100%);
}

.poster-play {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfeff;
}

.video-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.video-card h3 a:hover {
  color: #0891b2;
}

.video-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 55%, #0d9488 100%);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
}

.category-card strong {
  font-size: 22px;
}

.category-card p {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.category-card span {
  font-weight: 900;
}

.ranking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 28px;
  align-items: start;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ranking-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
}

.ranking-list a {
  min-width: 0;
}

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

.ranking-list strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.4;
}

.ranking-list em {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-title {
  margin-bottom: 32px;
  padding: 36px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 28%), linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #0d9488 100%);
  box-shadow: var(--shadow-soft);
}

.page-title h1,
.page-title p {
  color: #ffffff;
}

.page-title p {
  max-width: 780px;
  margin: 12px 0 0;
  line-height: 1.8;
  opacity: 0.92;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px)) auto;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.filter-button {
  min-height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
}

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

.breadcrumbs a {
  color: #0891b2;
  font-weight: 800;
}

.detail-hero {
  padding: 42px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(340px, 0.38fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.35), transparent 32%), #020617;
  transition: opacity 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.player-cover img.is-missing {
  opacity: 0;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.24));
}

.play-button {
  position: relative;
  z-index: 4;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.42);
}

.player-status {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.detail-title h1 {
  margin-bottom: 16px;
}

.detail-title .meta-pills span {
  color: #0f172a;
  background: #ecfeff;
  border-color: #cffafe;
}

.detail-copy {
  color: #475569;
  line-height: 1.9;
}

.detail-copy h2 {
  margin: 28px 0 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.detail-copy p {
  margin: 0 0 14px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 25% 20%, rgba(6, 182, 212, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #1e40af 55%, #0f766e);
  box-shadow: var(--shadow-card);
}

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

.detail-poster img.is-missing {
  opacity: 0;
}

.search-page-box {
  padding: 24px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-page-box form {
  display: flex;
  gap: 12px;
}

.search-page-box input {
  flex: 1;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 0 16px;
  outline: none;
}

.search-page-box input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-result-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e40af, #0f766e);
}

.search-result-card img.is-missing {
  opacity: 0;
}

.search-result-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.search-result-card p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.75;
}

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

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

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

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

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

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

@media (max-width: 760px) {
  .header-inner,
  .main-wrap,
  .hero-inner {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

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

  .hero-section {
    height: 76vh;
    min-height: 520px;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

  .detail-hero,
  .page-title {
    padding: 24px;
    border-radius: 24px;
  }

  .search-page-box form,
  .hero-actions,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

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

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 620px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  text-align: center;
}
