:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-strong: #f97316;
  --rose: #fb7185;
  --blue: #38bdf8;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(245, 158, 11, 0.16);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: rgba(148, 163, 184, 0.12);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.mobile-menu a:hover {
  color: white;
  background: rgba(148, 163, 184, 0.12);
}

.mobile-menu.is-open {
  display: block;
}

.hero {
  position: relative;
  padding: 38px 0 34px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.2), transparent 38rem);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 40px;
  padding: 76px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(12px) saturate(1.15);
  transform: scale(1.06);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 52%, rgba(2, 6, 23, 0.86) 100%),
    radial-gradient(circle at 68% 30%, rgba(245, 158, 11, 0.32), transparent 24rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 17px;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  box-shadow: 0 16px 44px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.text-btn,
.section-action {
  border: 1px solid var(--line);
  color: white;
  background: rgba(15, 23, 42, 0.62);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.section-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(350px, 100%);
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

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

.hero-controls {
  position: absolute;
  left: 76px;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-main {
  padding: 42px 0 74px;
}

.page-hero-small,
.quick-search {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(56, 189, 248, 0.08)),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.page-hero-small h1,
.quick-search h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-hero-small p,
.quick-search p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 22px;
}

.site-search,
.type-filter {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: white;
  background: rgba(2, 6, 23, 0.58);
}

.site-search:focus,
.type-filter:focus {
  border-color: rgba(245, 158, 11, 0.54);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.category-card,
.category-overview-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.category-card {
  min-height: 178px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.38);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.category-card span,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card span a,
.category-samples a {
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 42px 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.42);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  font-style: normal;
  font-weight: 950;
}

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

.card-meta {
  margin-bottom: 8px;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 8px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

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

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--soft);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 80px 56px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.ranking-poster img {
  width: 80px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-number,
.heat-score {
  font-size: 24px;
  font-weight: 950;
  color: #fcd34d;
  text-align: center;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--soft);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.18), transparent 22rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.detail-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-row-large span {
  min-height: 32px;
  font-size: 13px;
}

.player-section {
  scroll-margin-top: 90px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: black;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.78));
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  box-shadow: 0 16px 50px rgba(245, 158, 11, 0.32);
  font-size: 30px;
}

.player-overlay strong {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.5);
}

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

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

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

.detail-links a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.68);
}

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

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-grid strong {
  color: white;
  font-size: 18px;
}

.footer-grid p {
  margin: 8px 0 0;
}

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

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

[data-card].is-hidden {
  display: none;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 56px;
  }

  .hero-poster {
    display: none;
  }
}

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

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

  .hero-shell {
    min-height: 650px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 34px 24px 92px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
    bottom: 28px;
    justify-content: space-between;
  }

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

  .movie-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .detail-links {
    grid-template-columns: 1fr 1fr;
  }

  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 64px minmax(0, 1fr) 54px;
  }

  .ranking-poster {
    display: none;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .detail-links {
    grid-template-columns: 1fr;
  }

  .page-hero-small,
  .quick-search,
  .detail-hero {
    padding: 22px;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .poster-link img {
    height: 100%;
    aspect-ratio: 3 / 4;
  }

  .movie-card p {
    min-height: auto;
  }
}
