:root {
  --bg: #0f172a;
  --bg-soft: #111c33;
  --panel: #17223a;
  --panel-light: #ffffff;
  --text: #f8fafc;
  --muted: #94a3b8;
  --ink: #172033;
  --orange: #f97316;
  --pink: #ec4899;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a 0%, #111827 36%, #f8fafc 36%, #f8fafc 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.24);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e2e8f0;
  font-size: 15px;
}

.desktop-nav a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
  color: #fb923c;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: -16px;
  width: 220px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #172033;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #dbeafe;
}

.dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.nav-search input,
.filter-box input,
.big-search input,
.list-tools select {
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: 0;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
}

.nav-search input {
  width: 220px;
  padding: 10px 16px;
}

.nav-search button,
.big-search button,
.primary-btn,
.row-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.big-search button:hover,
.primary-btn:hover,
.row-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.26);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.46;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.32), transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(236, 72, 153, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 70px 0 82px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.1);
  color: #fed7aa;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-info .lead {
  margin: 0 0 24px;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.category-chips a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: 0.2s ease;
}

.ghost-btn:hover,
.section-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 23px;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: transparent;
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 54px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.quick-search-panel,
.content-section,
.page-shell,
.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  position: relative;
  z-index: 6;
  margin-top: -58px;
  padding: 26px;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.quick-search-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.quick-search-panel p {
  margin: 0;
  color: #cbd5e1;
}

.big-search {
  display: flex;
  gap: 10px;
}

.big-search input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.92);
}

.content-section {
  margin-top: 56px;
  color: var(--ink);
}

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

.section-title h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 0;
  color: #64748b;
}

.section-title .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
  color: #c2410c;
  background: #ffedd5;
  border-color: #fed7aa;
}

.section-link {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  overflow: hidden;
  display: block;
  background: #111827;
}

.poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.78));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 16px;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.movie-card .tag-row span {
  background: #fff7ed;
  color: #c2410c;
}

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

.compact-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border-radius: 20px;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.compact-card img {
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.25s ease;
}

.compact-card:hover img {
  transform: scale(1.05);
}

.compact-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 24px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.footer-grid p {
  margin: 12px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
}

.page-shell,
.detail-shell {
  padding-top: 38px;
  color: var(--ink);
}

.page-hero {
  overflow: hidden;
  padding: 44px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.22), transparent 32%),
    radial-gradient(circle at 80% 16%, rgba(236, 72, 153, 0.2), transparent 38%),
    linear-gradient(135deg, #111827, #172033);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  color: #cbd5e1;
}

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

.category-tile a {
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 220px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.category-tile img {
  height: 100%;
  object-fit: cover;
}

.category-tile div {
  padding: 26px;
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.category-tile p {
  margin: 0 0 18px;
  color: #64748b;
}

.category-tile span {
  color: #ea580c;
  font-weight: 900;
}

.list-tools {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.filter-box {
  flex: 1;
}

.filter-box input,
.list-tools select {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.list-tools select {
  max-width: 210px;
  border-radius: 16px;
}

.list-grid {
  margin-top: 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 92px 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #64748b;
}

.breadcrumb {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.18), transparent 36%),
    #111827;
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
}

.detail-info .tag-row span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.detail-meta span {
  color: #0f172a;
}

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

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: cover;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-layer span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.34);
}

.stream-player.is-playing .play-layer {
  display: none;
}

.story-section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.story-section h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.story-section h2:not(:first-child) {
  margin-top: 28px;
}

.story-section p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 17px;
}

.related-section {
  margin-top: 34px;
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 820px) {
  body {
    background: #f8fafc;
  }

  .desktop-nav,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 48px 0 78px;
  }

  .hero-poster {
    width: min(300px, 80vw);
    transform: none;
  }

  .quick-search-panel {
    margin-top: -36px;
  }

  .big-search,
  .list-tools,
  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .list-tools select {
    max-width: none;
  }

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

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

  .category-tile a,
  .detail-hero,
  .footer-grid,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .category-tile img {
    height: 260px;
  }

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

  .row-link {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    width: min(100% - 22px, 1240px);
  }

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

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

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

  .page-hero,
  .detail-hero,
  .story-section,
  .quick-search-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .rank-row {
    gap: 12px;
  }
}
