:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --panel-light: #1e293b;
  --line: #243247;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-dark: #d97706;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(59, 130, 246, 0.12), transparent 30rem);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark));
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-bright);
  background: rgba(245, 158, 11, 0.1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-light);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 70vh;
  height: 720px;
  max-height: 840px;
  overflow: hidden;
  background: var(--panel);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide img,
.detail-backdrop img,
.page-hero::before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(2, 6, 23, 0.82) 36%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(to right, var(--bg) 0%, rgba(2, 6, 23, 0.75) 38%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 116px 24px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-kicker {
  padding: 9px 16px;
  margin-bottom: 20px;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-info p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 28px;
}

.hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.primary-button {
  background: var(--accent);
  color: #111827;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--accent-bright);
}

.ghost-button {
  border: 1px solid rgba(203, 213, 225, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
}

.ghost-button:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--accent-bright);
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--accent-bright);
}

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

.hero-dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent-bright);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(940px, calc(100% - 48px));
  min-height: 68px;
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid rgba(203, 213, 225, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.54);
  color: var(--text);
  outline: none;
}

.hero-search input {
  min-height: 50px;
  padding: 0 18px;
  border-color: transparent;
  background: rgba(2, 6, 23, 0.28);
}

.hero-search button {
  border: 0;
  min-width: 150px;
  border-radius: 14px;
  background: var(--accent);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.content-section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-section.compact {
  padding: 60px 0;
}

.band-section {
  background: rgba(15, 23, 42, 0.52);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.glow-section {
  position: relative;
}

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

.section-heading span {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.section-more {
  color: var(--muted-strong);
  font-weight: 700;
}

.section-more:hover {
  color: var(--accent-bright);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1221;
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-collage:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), transparent 72%);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-card.large .card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.02));
}

.movie-card.large .poster-wrap {
  aspect-ratio: 16 / 10;
}

.pill {
  padding: 5px 10px;
  font-size: 12px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.34;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.movie-card.large .card-body strong {
  font-size: 23px;
}

.movie-card:hover .card-body strong {
  color: var(--accent-bright);
}

.card-body small,
.card-body em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  -webkit-box-orient: vertical;
}

.card-body small {
  -webkit-line-clamp: 1;
}

.card-body em {
  -webkit-line-clamp: 2;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.94);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.movie-card.horizontal {
  min-height: 144px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
}

.movie-card.horizontal .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.horizontal .card-body {
  justify-content: center;
}

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

.rail-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.rail-list::-webkit-scrollbar {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--panel);
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-tile span {
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(1px) saturate(1.1);
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(2, 6, 23, 0.35));
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  min-height: 420px;
  margin: 0 auto;
  padding: 90px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero.slim,
.page-hero.slim > div {
  min-height: 320px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 160px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 14px;
  top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.filter-panel input,
.filter-select {
  height: 56px;
  padding: 18px 14px 5px;
}

.filter-select {
  padding: 0 14px;
}

.filter-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel-light);
}

.category-collage img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-overview-card span {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 900;
}

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

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

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(2px) saturate(1.08);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  padding: 82px 0 64px;
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

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

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

.player-section {
  padding-top: 40px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.28));
  color: var(--text);
  cursor: pointer;
  z-index: 3;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-size: 30px;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.3);
  transition: transform 0.25s ease;
}

.player-cover:hover span {
  transform: scale(1.08);
}

.player-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
}

.article-card {
  padding: clamp(24px, 4vw, 46px);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

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

.article-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-cloud a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.74);
}

.footer-grid {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}

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

.footer-brand p {
  max-width: 520px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

@media (max-width: 1160px) {
  .desktop-nav .nav-link:nth-of-type(n + 8) {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 680px;
  }

  .hero-content {
    padding-top: 90px;
  }

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

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

  .search-box {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

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

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

@media (max-width: 640px) {
  .header-inner,
  .content-section,
  .page-hero > div,
  .detail-layout,
  .footer-grid {
    width: min(100% - 32px, 1280px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    height: 620px;
    min-height: 620px;
  }

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

  .hero-search {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  .hero-search button {
    min-height: 48px;
  }

  .hero-dots {
    bottom: 134px;
  }

  .cards-large,
  .cards-default,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .movie-card.horizontal .poster-wrap {
    aspect-ratio: 16 / 9;
  }

  .category-collage img {
    height: 96px;
  }

  .player-cover span {
    width: 66px;
    height: 66px;
  }
}
