:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-solid: #0f172a;
  --muted: #94a3b8;
  --text: #f8fafc;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --danger: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.16), transparent 28%), linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
}

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

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

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

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.header-search input,
.page-tools input,
.hero-search-panel input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
}

.header-search button,
.hero-search-panel button {
  border: 0;
  padding: 12px 16px;
  color: #111827;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: 68vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 43%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(0deg, #020617 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 110px 24px 86px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.hero-tags span,
.tag-row span,
.meta-pills span {
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.11);
  color: #fde68a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.section-more,
.page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

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

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.3);
}

.ghost-button {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
}

.small-button {
  min-height: 36px;
  color: #111827;
  background: #fbbf24;
  font-size: 13px;
  white-space: nowrap;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-search-panel {
  max-width: 1180px;
  margin: -44px auto 48px;
  position: relative;
  z-index: 5;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  align-items: center;
  gap: 22px;
}

.hero-search-panel h2,
.hero-search-panel p {
  margin: 0;
}

.hero-search-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-search-panel form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.54);
}

.content-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 58px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.rank-poster:hover img {
  transform: scale(1.06);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  padding: 5px 10px;
  color: #111827;
  background: #fbbf24;
}

.rank-badge {
  left: 12px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(239, 68, 68, 0.9);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.7);
}

.tag-row {
  margin: 12px 0 0;
}

.tag-row span {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(51, 65, 85, 0.66);
}

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

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 138px 1fr;
}

.movie-card.horizontal .poster-wrap {
  height: 100%;
  min-height: 188px;
}

.category-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.7);
  transition: transform 0.3s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 70%);
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
}

.category-card span {
  bottom: 64px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 16px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.ranking-preview,
.ranking-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  background: #fbbf24;
  font-size: 18px;
  font-weight: 900;
}

.rank-poster {
  width: 92px;
  height: 122px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-info h3,
.rank-info p {
  margin: 0;
}

.rank-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.rank-info p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.18), transparent 35%), rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

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

.page-tools input {
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.5);
}

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

.breadcrumb a:hover {
  color: #fbbf24;
}

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

.overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 210px;
  overflow: hidden;
}

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

.overview-body {
  padding: 22px;
}

.overview-body h2,
.overview-body p {
  margin: 0;
}

.overview-body p {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-main {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.detail-main .breadcrumb,
.detail-main .player-section,
.detail-main .detail-text,
.detail-main .related-section {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.34);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 70%);
}

.detail-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 18px 56px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-info h1 {
  font-size: clamp(36px, 5vw, 66px);
}

.detail-one-line {
  max-width: 860px;
  margin-bottom: 14px;
}

.player-section {
  margin-bottom: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), rgba(2, 6, 23, 0.68) 52%, rgba(2, 6, 23, 0.86));
  cursor: pointer;
}

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

.play-symbol {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #fbbf24;
  font-size: 28px;
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.3);
}

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

.detail-text {
  display: grid;
  gap: 18px;
  margin-bottom: 44px;
}

.detail-text h2 {
  margin: 0;
  font-size: 28px;
}

.detail-text p {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--soft);
  line-height: 1.9;
  background: rgba(15, 23, 42, 0.72);
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 18px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 22px;
  align-items: center;
  color: var(--muted);
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

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

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

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

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

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

  .detail-content {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-inner {
    flex-wrap: wrap;
  }

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

  .nav-menu,
  .header-search {
    display: none;
    width: 100%;
  }

  .nav-menu.is-open,
  .header-search.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
  }

  .hero-slider {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    margin-left: 0;
    padding: 96px 22px 88px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-panel {
    margin: -28px 16px 38px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

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

  .horizontal-list {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-item .small-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .rank-poster {
    width: 72px;
    height: 96px;
  }

  .detail-content {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .brand {
    min-width: 0;
  }

  .brand-text em {
    display: none;
  }

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

  .movie-card.horizontal {
    grid-template-columns: 112px 1fr;
  }

  .movie-card.horizontal .poster-wrap {
    min-height: 160px;
  }

  .page-hero {
    padding: 24px;
  }

  .overview-cover {
    height: 160px;
  }
}
