:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --red: #fb7185;
  --orange: #f97316;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(8, 145, 178, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.38);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 192px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 19px;
  line-height: 1.15;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.header-search input,
.big-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  outline: none;
}

.header-search input:focus,
.big-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.header-search button,
.big-search button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  padding: 34px 0 20px;
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.62fr;
  gap: 42px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.25);
  transform: scale(1.12);
  opacity: 0.34;
}

.hero-slide::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.6) 52%, rgba(2, 6, 23, 0.88)),
    radial-gradient(circle at 32% 22%, rgba(34, 211, 238, 0.24), transparent 25rem);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 999px;
  padding: 7px 13px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.lead {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.card-meta,
.detail-actions,
.hero-actions,
.quick-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.tag {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  font-size: 13px;
}

.hero-actions,
.detail-actions {
  margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 35px rgba(34, 211, 238, 0.2);
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
}

.text-link {
  color: var(--cyan);
  padding-inline: 0;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 38px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--cyan);
}

.search-panel,
.toolbar {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-links {
  margin-top: 14px;
}

.quick-links a,
.inline-links a {
  color: #cbd5e1;
  font-size: 14px;
}

.quick-links a:hover,
.inline-links a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.content-block {
  margin-top: 58px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-title span {
  width: 6px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-title.red span {
  background: linear-gradient(180deg, var(--red), var(--orange));
}

.section-title.blue span {
  background: linear-gradient(180deg, #60a5fa, var(--blue));
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.rank-row:hover,
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.08);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:not(.compact) .poster-link img {
  aspect-ratio: 3 / 4;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.8));
}

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

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

.meta-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-body {
  padding: 18px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card-body h2 a:hover,
.mini-card h3 a:hover,
.rank-row h2 a:hover,
.podium-card h2 a:hover {
  color: var(--cyan);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  color: #94a3b8;
  font-size: 13px;
}

.category-grid,
.category-overview-grid,
.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-tile,
.category-overview-card,
.story-card,
.info-card,
.podium-card,
.rank-row,
.mini-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  padding: 16px;
}

.category-covers,
.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.category-cover-strip {
  grid-template-columns: repeat(4, 1fr);
}

.category-covers img,
.category-cover-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 8px 0 8px;
  font-size: 22px;
}

.category-tile span,
.category-overview-card p {
  color: var(--muted);
  font-size: 14px;
}

.category-overview-card {
  padding: 18px;
}

.category-overview-card h2,
.category-overview-card p {
  margin-left: 0;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.20), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.78));
}

.small-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.empty-tip {
  display: none;
  margin: 28px 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 58px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.12);
  opacity: 0.28;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.player-section {
  margin-top: 28px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.26);
}

.player-wrap.playing .player-overlay {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 20px;
  margin-top: 32px;
}

.story-card,
.info-card {
  padding: 24px;
}

.story-card h2,
.info-card h2 {
  margin: 0 0 16px;
}

.story-card p {
  margin: 0;
  color: #cbd5e1;
}

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

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

.info-card dd {
  margin: 0;
}

.podium-card {
  padding: 18px;
  text-align: center;
}

.podium-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.podium-card span {
  display: inline-flex;
  margin: 16px 0 8px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.podium-card h2,
.rank-row h2 {
  margin: 0 0 8px;
}

.podium-card p,
.rank-row p,
.mini-card p {
  color: var(--muted);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 142px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: rgba(6, 182, 212, 0.18);
  font-weight: 900;
}

.rank-thumb img {
  width: 142px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 12px;
}

.mini-card img {
  width: 116px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card h3,
.mini-card p {
  margin: 0 0 6px;
}

.mini-card span {
  color: var(--cyan);
  font-size: 13px;
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0 28px;
}

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

.site-footer p,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  display: inline-flex;
  margin: 0 14px 10px 0;
  color: #cbd5e1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 22px 0;
}

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
  }

  .mobile-nav.open {
    display: grid;
    gap: 6px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
  }

  .mobile-nav .nav-link {
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.58);
  }

  .hero-shell {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .hero-poster {
    width: min(340px, 100%);
  }

  .hero-dots {
    left: 32px;
    bottom: 24px;
  }

  .movie-grid.four-cols,
  .detail-content,
  .footer-grid,
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 210px 1fr;
  }
}

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

  .brand {
    min-width: auto;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-shell {
    width: min(100% - 20px, 1240px);
    min-height: 740px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-content p,
  .page-hero p,
  .lead {
    font-size: 16px;
  }

  .big-search,
  .movie-grid.four-cols,
  .detail-layout,
  .detail-content,
  .footer-grid,
  .footer-bottom,
  .toolbar,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .rank-thumb img {
    width: 100%;
  }

  .rank-row strong {
    justify-self: start;
  }
}
