
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 1.25rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  color: #fff;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.26);
  font-size: 0.8rem;
}

.brand-text {
  font-size: 1.24rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  transition: 0.2s ease;
}

.nav-link {
  padding: 0.65rem 0.95rem;
  border-radius: 0.75rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(30, 41, 59, 0.88);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.search-button,
.menu-button,
.search-close {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  border-radius: 0.8rem;
  padding: 0.62rem 0.9rem;
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 0.75rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.2rem;
}

.mobile-link {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
}

.search-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5.5rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.76);
}

.search-layer.is-open {
  display: flex;
}

.search-panel {
  width: min(720px, 100%);
  max-height: min(76vh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-head {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.search-input {
  flex: 1;
  color: #fff;
  outline: 0;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
}

.search-results {
  max-height: 60vh;
  overflow: auto;
  padding: 0.75rem;
}

.search-empty {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.search-result {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  transition: 0.2s ease;
}

.search-result:hover {
  background: rgba(51, 65, 85, 0.72);
}

.search-result .poster-bg {
  min-height: 5.6rem;
  border-radius: 0.7rem;
}

.search-result h3 {
  margin: 0;
  font-size: 1rem;
}

.search-result p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.search-result span {
  color: var(--amber);
  font-size: 0.78rem;
}

.page-main {
  padding-top: 4rem;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 1.6s ease;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08)), var(--poster-image), linear-gradient(135deg, #0f172a, #1e293b);
  background-size: cover;
  background-position: center;
}

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

.hero-shade,
.detail-hero-shade,
.overview-shade,
.poster-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shade {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.25) 38%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy,
.detail-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-copy p,
.detail-copy p,
.page-hero p {
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
  max-width: 680px;
}

.hero-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.hero-meta {
  margin: 1.5rem 0 2rem;
}

.hero-meta span,
.movie-meta span,
.tag-list span,
.ranking-tag {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
}

.hero-meta span {
  padding: 0.45rem 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 1rem;
  padding: 0 1.35rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.24);
}

.primary-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px) scale(1.02);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
}

.secondary-btn:hover {
  background: rgba(30, 41, 59, 0.86);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2rem;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

.hero-dot.is-active {
  width: 3rem;
  background: var(--amber);
}

.page-stack {
  padding: 3rem 0 0;
}

.content-section {
  margin-bottom: 4rem;
}

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

.section-head h2,
.info-panel h2,
.story-card h2,
.footer-grid h2 {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.05em;
}

.section-head a {
  color: var(--amber);
  font-weight: 700;
}

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

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

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

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

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

.after-grid {
  margin-top: 1.25rem;
}

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

.poster-bg {
  background-color: #111827;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.2)), var(--poster-image), linear-gradient(135deg, #1e293b, #0f172a 62%, #111827);
  background-size: cover;
  background-position: center;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.05rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: 0.25s ease;
}

.poster-link:hover,
.movie-card:hover .poster-link,
.category-tile:hover,
.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
}

.poster-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%);
}

.play-chip {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  opacity: 0;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.poster-link:hover .play-chip,
.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 0.85rem 0.1rem 0;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.2s ease;
}

.movie-card:hover .movie-title,
.movie-title:hover,
.ranking-info a:hover {
  color: var(--amber);
}

.card-body p,
.wide-info p,
.ranking-info p,
.story-card p,
.info-panel dd,
.footer-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.3rem;
  margin: 0.4rem 0 0.7rem;
  overflow: hidden;
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta span {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
}

.movie-card-large .card-body p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

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

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 1.2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  transition: 0.25s ease;
}

.category-tile {
  display: flex;
  min-height: 13rem;
  align-items: end;
  justify-content: center;
  padding: 1rem;
}

.category-tile::before,
.overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.32), transparent);
}

.category-tile span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.wide-list {
  display: grid;
  gap: 1rem;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.62);
}

.wide-poster {
  aspect-ratio: 16 / 10;
  border-radius: 0.9rem;
}

.wide-info p {
  margin: 0.4rem 0 0.8rem;
}

.ranking-box {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(15, 23, 42, 0.48);
}

.ranking-row {
  display: grid;
  grid-template-columns: 3rem 4.4rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 1rem;
  transition: 0.2s ease;
}

.ranking-row:hover {
  background: rgba(51, 65, 85, 0.56);
}

.rank-num {
  color: var(--amber);
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}

.ranking-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
}

.ranking-info a {
  color: #fff;
  font-weight: 800;
}

.ranking-info p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.ranking-tag {
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.inner-page {
  min-height: 80vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
  background: radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.18), transparent 26rem), linear-gradient(135deg, #0f172a, #020617);
  border-bottom: 1px solid var(--line);
}

.small-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.filter-section {
  margin-top: 2rem;
}

.filter-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.64);
}

.filter-bar input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  outline: 0;
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.64);
  color: #fff;
  padding: 0.85rem 1rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chips button {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  padding: 0.45rem 0.75rem;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.18);
  color: #fff;
}

.overview-card {
  min-height: 16rem;
  display: flex;
  align-items: end;
  padding: 1.25rem;
}

.overview-card > div {
  position: relative;
  z-index: 2;
}

.overview-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}

.overview-card p {
  margin: 0.55rem 0 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.detail-main {
  background: var(--bg);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.detail-hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.18)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 52%, rgba(2, 6, 23, 0.05) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--amber);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  margin-top: -2rem;
  position: relative;
  z-index: 4;
}

.watch-card,
.info-panel,
.story-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.watch-card {
  padding: 0.65rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.48), rgba(0, 0, 0, 0.86));
  color: #fff;
  font-weight: 900;
  transition: 0.25s ease;
}

.play-circle {
  width: 4.5rem;
  height: 4.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
  font-size: 1.4rem;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.info-panel {
  padding: 1.25rem;
}

.info-panel dl {
  margin: 1rem 0;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.85rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-panel dt {
  color: #e2e8f0;
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
}

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

.tag-list span {
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
}

.article-section {
  margin-top: 1.25rem;
}

.story-card {
  padding: 1.4rem;
}

.story-card h2 {
  margin-top: 0.6rem;
  font-size: 1.6rem;
}

.story-card h2:first-child {
  margin-top: 0;
}

.story-card p {
  margin: 0.65rem 0 1.2rem;
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-grid h2 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 0.45rem 0;
  color: var(--muted);
  transition: 0.2s ease;
}

.footer-grid a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--muted);
}

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

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

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

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

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

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

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

  .hero-arrow {
    display: none;
  }

  .poster-grid,
  .compact-grid,
  .four-grid,
  .library-grid,
  .featured-grid,
  .tile-grid,
  .overview-grid,
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-card-wide {
    grid-template-columns: 7rem 1fr;
  }

  .ranking-row {
    grid-template-columns: 2.4rem 3.5rem 1fr;
  }

  .ranking-tag {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: min(100% - 1rem, 1180px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .search-button {
    padding-inline: 0.65rem;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .hero-meta span {
    padding: 0.36rem 0.6rem;
    font-size: 0.82rem;
  }

  .content-section {
    margin-bottom: 3rem;
  }

  .poster-grid,
  .compact-grid,
  .four-grid,
  .library-grid,
  .featured-grid,
  .tile-grid,
  .overview-grid,
  .region-grid {
    gap: 0.75rem;
  }

  .card-body p {
    display: none;
  }

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

  .wide-poster {
    aspect-ratio: 16 / 9;
  }

  .detail-hero {
    min-height: 480px;
  }
}
