:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --panel-strong: #111827;
  --border: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --accent-soft: rgba(20, 184, 166, 0.15);
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(30, 41, 59, 0.96);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: white;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.22);
}

.brand-name {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link,
.header-search,
.mobile-nav-link {
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  font-size: 22px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 16px 16px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-nav-link--sub {
  padding-left: 24px;
  color: var(--muted);
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-backdrop-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 36%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-meta,
.detail-meta,
.card-meta {
  color: var(--muted-strong);
}

.hero-text {
  max-width: 660px;
  margin: 18px 0 30px;
  color: #dbeafe;
  font-size: 18px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 30px rgba(20, 184, 166, 0.22);
}

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

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(15, 23, 42, 0.42);
  color: white;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 66px;
  background: var(--accent);
}

.main-stack,
.page-shell {
  padding: 46px 0 0;
}

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

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

.section-head h2 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.section-head--compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-head--compact h2 {
  font-size: 22px;
}

.movie-grid,
.large-card-grid,
.horizontal-grid,
.category-panel-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.movie-grid--side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

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

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

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

.category-panel,
.category-overview-card,
.content-panel,
.info-panel,
.rank-side,
.filter-panel {
  border: 1px solid rgba(30, 41, 59, 0.92);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.category-panel {
  padding: 22px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(15, 23, 42, 0.98);
}

.poster-link,
.large-card-link,
.horizontal-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0b1120;
}

.poster-link {
  aspect-ratio: 2 / 3;
}

.poster-link img,
.large-card-link img,
.horizontal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-gradient,
.large-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82));
}

.poster-play,
.play-float,
.horizontal-poster span,
.rank-play {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}

.poster-play,
.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.92);
  color: white;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-body h3,
.horizontal-copy h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.horizontal-copy h3 a:hover {
  color: var(--accent);
}

.card-meta,
.card-line,
.horizontal-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  margin-top: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #99f6e4;
  font-size: 12px;
}

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

.large-card-link {
  height: 100%;
  min-height: 260px;
  border-radius: 16px;
}

.large-card-copy {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.large-card-copy strong {
  font-size: 24px;
  line-height: 1.25;
}

.large-card-copy span:last-child {
  color: var(--muted-strong);
}

.movie-card--horizontal {
  display: flex;
  min-height: 150px;
}

.horizontal-poster {
  width: 42%;
  min-width: 168px;
}

.horizontal-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
}

.horizontal-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.rank-strip {
  padding: 28px;
  border: 1px solid rgba(30, 41, 59, 0.92);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(20, 184, 166, 0.08));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr 38px;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(30, 41, 59, 0.78);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(20, 184, 166, 0.55);
}

.rank-number {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 3px;
}

.rank-copy strong {
  color: white;
}

.rank-copy span {
  color: var(--muted);
  font-size: 13px;
}

.rank-play {
  width: 34px;
  height: 34px;
}

.page-hero {
  position: relative;
  padding: 76px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.25), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
}

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.category-overview-main h2 {
  margin: 0;
  color: white;
}

.category-overview-main p {
  margin: 0;
  color: var(--muted);
}

.category-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  color: var(--muted-strong);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--accent);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #020617;
  color: white;
  padding: 0 12px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.filter-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.filter-result {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-card.is-hidden {
  display: none;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-side {
  position: sticky;
  top: 90px;
  padding: 20px;
}

.rank-side h2 {
  margin: 0 0 18px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.02);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: 14px;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster-wrap {
  border-radius: 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.detail-copy {
  max-width: 760px;
}

.detail-copy h1 {
  margin-bottom: 18px;
}

.detail-line {
  max-width: 720px;
  margin: 18px 0;
  color: #dbeafe;
  font-size: 18px;
}

.tag-row--detail {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.95);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background:
    radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.75));
  text-align: center;
}

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

.player-button {
  min-width: 168px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(20, 184, 166, 0.24);
}

.player-overlay p,
.player-status {
  margin: 0;
  color: var(--muted-strong);
}

.player-status {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 3;
  font-size: 13px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
  margin-bottom: 72px;
}

.content-panel,
.info-panel {
  padding: 24px;
}

.content-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  color: white;
}

.content-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.info-panel dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
  color: var(--text);
}

.info-panel a {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

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

.footer-brand p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

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

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

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px;
  color: #64748b;
  text-align: center;
}

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

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

  .rank-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .rank-side {
    position: static;
  }
}

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

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

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

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-arrow {
    display: none;
  }

  .large-card-grid,
  .horizontal-grid,
  .category-panel-grid,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid--six,
  .movie-grid--compact,
  .movie-grid--side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-main {
    gap: 24px;
  }

  .detail-poster-wrap {
    max-width: 280px;
  }
}

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

  .brand-name {
    font-size: 18px;
  }

  .hero-carousel {
    height: 76vh;
    min-height: 540px;
  }

  .hero-copy {
    justify-content: end;
    padding-bottom: 92px;
  }

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

  .hero-text,
  .detail-line {
    font-size: 16px;
  }

  .movie-grid,
  .movie-grid--six,
  .movie-grid--compact,
  .movie-grid--side,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--horizontal {
    display: grid;
  }

  .horizontal-poster {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-play {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-bottom: 34px;
  }
}
