/* Custom static site styles. These extend the uploaded CSS visual system. */
:root {
  --site-bg: #0f1419;
  --site-panel: rgba(30, 41, 59, 0.46);
  --site-border: rgba(148, 163, 184, 0.18);
  --site-text: #e2e8f0;
  --site-muted: #94a3b8;
  --site-soft: rgba(255, 255, 255, 0.08);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(192, 192, 192, 0.14), transparent 30rem),
    radial-gradient(circle at 85% 5%, rgba(71, 85, 105, 0.24), transparent 28rem),
    var(--site-bg);
}

.site-header {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(148, 163, 184, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 22px rgba(192, 192, 192, 0.20);
}

.brand-icon.small {
  width: 1.75rem;
  height: 1.75rem;
}

.mobile-menu {
  padding-top: 0.75rem;
}

.hero-section {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(1.08);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 20, 25, 0.92), rgba(15, 20, 25, 0.42) 50%, rgba(15, 20, 25, 0.70)),
    linear-gradient(0deg, #0f1419 0%, transparent 34%, rgba(15, 20, 25, 0.16) 100%);
}

.hero-content {
  max-width: 760px;
  margin-left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  padding-right: 1.5rem;
  animation: slideIn 640ms ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
}

.hero-content p,
.page-hero p,
.detail-info .one-line {
  max-width: 680px;
  margin-top: 1.35rem;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-weight: 700;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.btn-primary {
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  box-shadow: 0 18px 40px rgba(203, 213, 225, 0.22);
}

.btn-secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 2rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 200ms ease, background 200ms ease;
}

.hero-dot.is-active {
  width: 3.5rem;
  background: #ffffff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.category-block h2,
.ranking-column h2,
.detail-article h2,
.detail-side h2 {
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-heading a,
.toolbar a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.movie-card {
  position: relative;
  min-width: 0;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.25rem;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.cover-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(51, 65, 85, 0.98), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at 30% 20%, rgba(226, 232, 240, 0.22), transparent 20rem);
}

.cover-frame::after {
  content: '高清剧集';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.38);
  font-weight: 800;
  letter-spacing: 0.12em;
  z-index: 0;
}

.cover-frame img {
  position: relative;
  z-index: 1;
}

.cover-frame img.is-missing {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1;
}

.badge-dark {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.badge-light {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.88);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.78rem;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  min-height: 460px;
}

.feature-main {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.feature-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.56);
}

.feature-main-text {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(15, 20, 25, 0.94), transparent);
}

.feature-main-text h2 {
  margin: 1rem 0 0.75rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
}

.feature-main-text p {
  max-width: 780px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.feature-list {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ranking-item + .ranking-item {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-link {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  color: #cbd5e1;
}

.ranking-link:hover .ranking-title {
  color: #ffffff;
}

.ranking-num {
  color: #e2e8f0;
  font-weight: 800;
  font-size: 1.1rem;
}

.ranking-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-score {
  color: #facc15;
  font-weight: 700;
}

.category-tile small {
  display: block;
  margin-top: 0.5rem;
  color: #94a3b8;
}

.tile-light {
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 50%);
}

.page-hero {
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.category-overview,
.sitemap-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.category-block {
  padding: 1.5rem;
}

.category-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.category-link-grid a,
.sitemap-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #cbd5e1;
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.category-link-grid a:hover,
.sitemap-links a:hover {
  color: #ffffff;
  border-color: rgba(226, 232, 240, 0.28);
}

.category-link-grid small,
.sitemap-links small {
  color: #64748b;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #cbd5e1;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.pagination a,
.pagination span {
  min-width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.pagination a.is-current,
.pagination a:hover {
  color: #0f172a;
  background: #e2e8f0;
}

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

.ranking-column {
  padding: 1.25rem;
}

.ranking-column h2 {
  margin-bottom: 1rem;
}

.search-layout {
  padding-bottom: 4rem;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 180px)) auto;
  gap: 0.75rem;
  padding: 1rem;
}

.search-panel input,
.search-panel select {
  width: 100%;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  outline: none;
}

.search-summary {
  margin: 1rem 0;
  color: #94a3b8;
}

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

.search-result-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-result-card .cover-frame {
  aspect-ratio: 16 / 10;
  border-radius: 0.8rem;
  overflow: hidden;
}

.search-result-card h3 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.search-result-card p {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.55;
}

.search-result-card small {
  display: block;
  margin-top: 0.5rem;
  color: #64748b;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0f1419 4%, rgba(15, 20, 25, 0.72) 45%, rgba(15, 20, 25, 0.82)),
    linear-gradient(90deg, #0f1419 0%, rgba(15, 20, 25, 0.36) 60%, #0f1419 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  padding-bottom: 3rem;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

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

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.detail-meta-row span,
.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.player-section {
  margin-top: -1rem;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hls-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 220ms ease;
}

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

.play-triangle {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: #e2e8f0;
  box-shadow: 0 0 40px rgba(226, 232, 240, 0.28);
}

.player-message {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 6;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail-article,
.detail-side {
  padding: 1.5rem;
}

.detail-article h2 + p,
.detail-article p + h2 {
  margin-top: 1rem;
}

.detail-article p {
  color: #cbd5e1;
  line-height: 2;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.85rem 1rem;
  margin-top: 1rem;
  color: #cbd5e1;
}

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

.site-footer {
  background: rgba(15, 23, 42, 0.34);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-heading {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.site-footer a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

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

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  max-height: 680px;
  overflow: auto;
  padding-right: 0.25rem;
}

@media (max-width: 1100px) {
  .ranking-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .hero-section {
    min-height: 580px;
    height: 78vh;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 1rem;
  }

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

  .feature-panel,
  .detail-hero-content,
  .detail-content-grid,
  .footer-grid,
  .ranking-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .detail-hero-content {
    padding-top: 4rem;
  }

  .detail-poster {
    width: min(64vw, 260px);
  }

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

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