:root {
  --color-fog-950: #07111f;
  --color-fog-900: #111827;
  --color-fog-800: #1f2937;
  --color-fog-700: #374151;
  --color-fog-600: #4b5563;
  --color-fog-300: #d1d5db;
  --color-fog-100: #f3f4f6;
  --color-cyan-500: #06b6d4;
  --color-cyan-400: #22d3ee;
  --color-amber-500: #f59e0b;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 90px rgba(15, 23, 42, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 42%, #f8fafc 100%);
  color: var(--color-fog-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.site-nav {
  max-width: var(--page-width);
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-fog-800);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-fog-800));
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.28);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--color-fog-600);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0891b2;
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-1px);
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  background: var(--color-fog-100);
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--color-fog-800);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 0 20px 14px;
}

.quick-category-strip {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-category-strip a,
.category-chip-row a,
.filter-row button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(236, 254, 255, 0.92);
  border: 1px solid rgba(6, 182, 212, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.hero-section {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-fog-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.76) 42%, rgba(7, 17, 31, 0.36) 100%), linear-gradient(0deg, rgba(7, 17, 31, 0.86), rgba(7, 17, 31, 0.08)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease, transform 5.2s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-content {
  max-width: var(--page-width);
  height: 100%;
  margin: 0 auto;
  padding: 92px 20px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker,
.eyebrow {
  color: var(--color-cyan-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

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

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.tag-row span {
  color: #0e7490;
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan-500), #2563eb);
  box-shadow: 0 16px 42px rgba(6, 182, 212, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.page-section,
.page-main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 56px 20px;
}

.page-main {
  padding-top: 24px;
}

.home-search-panel,
.filter-panel {
  margin-top: -42px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

.home-search-panel h2,
.section-heading h2,
.panel-title h2,
.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 8px;
  color: var(--color-fog-800);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.home-search-panel p,
.section-heading p,
.page-hero p,
.category-card-large p,
.category-block-head p,
.detail-one-line {
  margin: 0;
  color: var(--color-fog-600);
  line-height: 1.75;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  outline: none;
  border: 1px solid rgba(6, 182, 212, 0.24);
  background: #ffffff;
  color: var(--color-fog-800);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.search-box a,
.search-box button {
  min-height: 48px;
  padding: 0 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-fog-800);
  cursor: pointer;
  font-weight: 800;
}

.full-search {
  width: 100%;
}

.category-chip-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row button {
  cursor: pointer;
}

.filter-row button.is-active {
  color: #ffffff;
  background: var(--color-cyan-500);
}

.section-heading,
.panel-title,
.category-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading a,
.panel-title a,
.category-block-head a {
  color: #0891b2;
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.movie-poster,
.ranking-thumb,
.detail-poster {
  background-image: linear-gradient(135deg, rgba(8, 145, 178, 0.8), rgba(15, 23, 42, 0.88)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 17, 31, 0.64), rgba(7, 17, 31, 0.02));
  opacity: 0.82;
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.poster-year {
  right: 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
}

.rank-badge {
  left: 12px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.82);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card.is-compact .movie-info {
  min-height: 154px;
}

.movie-meta {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.movie-info strong {
  color: var(--color-fog-800);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-line {
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  margin-top: auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.category-block,
.category-card-large,
.detail-side-card,
.detail-article {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
}

.ranking-panel,
.category-block,
.detail-side-card,
.detail-article {
  padding: 24px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.84);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(236, 254, 255, 0.96);
}

.ranking-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-500), #ef4444);
  font-weight: 900;
}

.ranking-thumb {
  width: 58px;
  height: 74px;
  border-radius: 12px;
}

.ranking-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ranking-main strong {
  color: var(--color-fog-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-main em,
.ranking-meta {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.category-showcase,
.category-large-grid {
  display: grid;
  gap: 20px;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
}

.category-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-fog-800));
  font-weight: 900;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.sample-links a {
  color: #0891b2;
  font-weight: 700;
  font-size: 13px;
}

.page-hero {
  min-height: 320px;
  margin: 24px 20px 0;
  padding: 56px;
  display: flex;
  align-items: center;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.36), transparent 36%), linear-gradient(135deg, #07111f, #1f2937 55%, #164e63);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 10px 0 12px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.channel-hero {
  min-height: 360px;
}

.sticky-filter {
  position: sticky;
  top: 94px;
  z-index: 12;
}

.breadcrumb {
  max-width: var(--page-width);
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-main {
  padding-top: 0;
}

.detail-hero {
  max-width: var(--page-width);
  margin: 24px auto 0;
  padding: 26px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.32), transparent 36%), linear-gradient(135deg, #07111f, #111827 52%, #0e7490);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  min-height: 410px;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  margin: 12px 0;
}

.detail-copy .detail-one-line {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.player-section {
  max-width: var(--page-width);
  margin: 30px auto 0;
  padding: 0 20px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.5));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan-500), #2563eb);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
  cursor: pointer;
  font-size: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-article p {
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.detail-side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-side-card li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-side-card span {
  color: #64748b;
}

.detail-side-card strong {
  color: var(--color-fog-800);
  text-align: right;
}

.site-footer {
  margin-top: 56px;
  color: var(--color-fog-300);
  background: linear-gradient(135deg, #07111f, #111827);
}

.footer-grid {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--color-fog-300);
}

.footer-links a:hover {
  color: var(--color-cyan-400);
}

.footer-bottom {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

[data-search-card].is-hidden {
  display: none;
}

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

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

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

  .mobile-menu-button {
    display: flex;
  }

  .mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-section {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .mini-grid,
  .all-grid,
  .category-showcase,
  .category-large-grid,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr 1fr;
  }

  .detail-poster {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    height: 60px;
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-content,
  .page-section,
  .page-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-search-panel,
  .filter-panel {
    margin-top: -24px;
  }

  .search-box,
  .section-heading,
  .panel-title,
  .category-block-head,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .small-grid,
  .mini-grid,
  .all-grid,
  .category-showcase,
  .category-large-grid,
  .footer-grid,
  .detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    margin-left: 14px;
    margin-right: 14px;
    padding: 28px;
    border-radius: 24px;
  }

  .ranking-row {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 3;
  }

  .detail-poster {
    min-height: 420px;
  }
}
