:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --line: rgba(45, 212, 191, 0.24);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --teal: #14b8a6;
  --teal-light: #2dd4bf;
  --teal-dark: #0f766e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(16, 185, 129, 0.08), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 23, 42, 0.96);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 70px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  color: white;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
}

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

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

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

.nav-link:hover,
.nav-link.is-active {
  color: white;
}

.top-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
}

.top-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 10px 14px;
}

.top-search button,
.primary-btn,
.hero-search button {
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button {
  padding: 10px 16px;
}

.primary-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

.primary-btn:hover,
.hero-search button:hover,
.top-search button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  padding: 12px 22px;
  background: rgba(15, 23, 42, 0.54);
  transition: border 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--teal-light);
  background: rgba(20, 184, 166, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  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-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 42%);
}

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

.hero-copy {
  max-width: 680px;
  padding-top: 38px;
}

.eyebrow {
  color: var(--teal-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

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

.hero-desc {
  max-width: 620px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
  width: 62px;
  background: var(--teal-light);
}

.home-search-panel,
.explore-box,
.page-hero {
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(6, 78, 59, 0.24));
  box-shadow: var(--shadow);
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.home-search-panel h2,
.explore-box h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.home-search-panel p,
.explore-box p,
.page-hero p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.hero-search {
  display: flex;
  border-radius: 999px;
  padding: 6px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  padding: 12px 16px;
  min-width: 0;
}

.content-section,
.category-panels {
  margin-top: 58px;
}

.section-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  color: var(--teal-light);
  font-size: 24px;
}

.section-title h2,
.panel-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.more-link,
.panel-head a {
  color: var(--teal-light);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, outline-color 0.24s ease;
  outline: 1px solid rgba(148, 163, 184, 0.12);
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  outline-color: rgba(45, 212, 191, 0.72);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wide,
.poster-row {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

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

.poster-row {
  width: 180px;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
}

.poster-wide img,
.poster-row img,
.category-thumbs img,
.rank-item img,
.side-links img,
.poster-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.year-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  padding: 5px 9px;
}

.play-hover,
.mini-play,
.play-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
}

.play-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 50px;
  height: 50px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.mini-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .mini-play {
  opacity: 1;
}

.card-body,
.row-info {
  padding: 16px;
}

.card-body h2,
.row-info h2,
.card-info h2 {
  margin: 0 0 9px;
  color: white;
  font-size: 18px;
  line-height: 1.38;
}

.card-body p,
.row-info p,
.card-info p,
.card-meta,
.tag-line {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}

.tag-line {
  margin-top: 8px;
  color: var(--muted-2);
}

.movie-card-large {
  position: relative;
  min-height: 260px;
}

.movie-card-large .poster-wide {
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
}

.card-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 72%);
}

.card-info {
  max-width: calc(100% - 78px);
}

.card-info h2 {
  font-size: 26px;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-card-horizontal .card-link {
  display: flex;
  gap: 0;
  min-height: 130px;
}

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

.panel-block {
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 22px;
}

.explore-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 34px;
  margin-bottom: 60px;
}

.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.explore-links a {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  padding: 10px 15px;
  color: white;
  transition: background 0.2s ease;
}

.explore-links a:hover {
  background: var(--teal-dark);
}

.page-main {
  min-height: 70vh;
}

.compact-hero {
  padding: 44px;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-light);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 132px;
  background: #020617;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card-body p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.category-card-body span {
  color: var(--teal-light);
  font-weight: 800;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  margin-bottom: 24px;
}

.catalog-controls input,
.catalog-controls select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  outline: 0;
  color: white;
  background: #0f172a;
  padding: 12px 14px;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
  border-color: var(--teal-light);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  border-radius: 18px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 62px 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-no {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  height: 96px;
  border-radius: 12px;
  background: #0f172a;
}

.rank-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.55;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-top: 28px;
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-content,
.detail-side,
.story-block,
.poster-panel,
.side-recommend {
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-content {
  overflow: hidden;
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--teal);
  font-size: 34px;
  box-shadow: 0 0 36px rgba(20, 184, 166, 0.42);
}

.player-overlay strong {
  font-size: 18px;
}

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

.detail-info,
.story-block {
  padding: 26px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead-text {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags span {
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-light);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.story-block {
  margin: 18px 26px 26px;
}

.story-block h2,
.detail-side h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-side {
  padding: 18px;
  position: sticky;
  top: 92px;
}

.poster-panel {
  padding: 14px;
  background: rgba(2, 6, 23, 0.42);
}

.poster-panel img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: 14px;
}

.poster-panel h2 {
  margin: 0 0 8px;
}

.poster-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.small-btn {
  padding: 10px 16px;
  font-size: 14px;
}

.side-recommend {
  margin-top: 18px;
  padding: 16px;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #e2e8f0;
}

.side-links img {
  height: 56px;
  border-radius: 10px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.96);
  margin-top: 72px;
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  color: var(--muted-2);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  padding: 24px;
  margin-top: 36px;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px 22px;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: flex-end;
  }

  .top-search {
    justify-self: end;
  }

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

  .feature-grid,
  .category-panels,
  .detail-grid,
  .explore-box,
  .home-search-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    gap: 10px;
  }

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

  .top-search {
    display: none;
  }

  .hero-slider {
    min-height: 560px;
    height: 78vh;
  }

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

  .hero-arrow {
    display: none;
  }

  .home-search-panel,
  .explore-box,
  .compact-hero {
    padding: 24px;
  }

  .hero-search,
  .section-head,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    border-radius: 18px;
  }

  .hero-search button {
    width: 100%;
  }

  .cards-grid,
  .feature-grid,
  .small-grid,
  .recent-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-link,
  .rank-item a {
    grid-template-columns: 1fr;
    display: block;
  }

  .poster-row {
    width: 100%;
  }

  .rank-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-no {
    margin-bottom: 12px;
  }

  .story-block {
    margin: 14px;
  }

  .detail-info,
  .story-block {
    padding: 20px;
  }
}
