
:root {
  --bg: #0b1020;
  --bg-soft: #101830;
  --panel: rgba(16, 24, 48, 0.82);
  --panel-2: rgba(21, 31, 60, 0.92);
  --panel-3: rgba(27, 39, 73, 0.96);
  --text: #f4f7ff;
  --muted: #98a6c7;
  --muted-2: #6f7ea6;
  --line: rgba(162, 182, 255, 0.14);
  --accent: #f5b942;
  --accent-2: #7c5cff;
  --accent-3: #37c6ff;
  --success: #29d17d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1240px;
  --poster-h: 560;
  --poster-w: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(55, 198, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(245, 185, 66, 0.12), transparent 30%),
    linear-gradient(180deg, #070b16 0%, #0b1020 42%, #090d19 100%);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(245, 185, 66, 0.28);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.88), rgba(8, 12, 24, 0.58));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 22%),
    linear-gradient(135deg, #f5b942 0%, #7c5cff 100%);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

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

.brand-text .name {
  font-size: 1.02rem;
}

.brand-text .tagline {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

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

.nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-search {
  position: relative;
  min-width: 260px;
}

.nav-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 20, 40, 0.8);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px 11px 42px;
  outline: none;
  transition: 0.2s ease;
}

.nav-search input:focus {
  border-color: rgba(245, 185, 66, 0.36);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.1);
}

.nav-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

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

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.24), transparent 35%),
    radial-gradient(circle at bottom right, rgba(55, 198, 255, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(17, 24, 44, 0.92), rgba(11, 16, 32, 0.96));
  box-shadow: var(--shadow);
  padding: 30px;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(245, 185, 66, 0.09), transparent 36%),
    linear-gradient(300deg, rgba(124, 92, 255, 0.09), transparent 40%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy h1,
.hero-copy .hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 64ch;
  color: #d6def5;
  font-size: 1.05rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #e7ecff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chip--accent {
  background: rgba(245, 185, 66, 0.12);
  border-color: rgba(245, 185, 66, 0.24);
  color: #ffe7b0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: 0.2s ease;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ffd36e 100%);
  color: #0b1020;
  box-shadow: 0 16px 30px rgba(245, 185, 66, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 16px 16px 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-feature {
  display: grid;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 14px;
}

.feature-spotlight {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 18%, rgba(245, 185, 66, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(18, 26, 51, 0.96), rgba(9, 13, 25, 0.98));
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.feature-spotlight .posters {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  height: 100%;
}

.feature-spotlight .posters .poster-card {
  min-height: 0;
}

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(145deg, hsl(var(--h1) 76% 52%), hsl(var(--h2) 78% 34%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26), transparent 16%),
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
}

.poster-card .poster-top {
  position: relative;
  z-index: 1;
  padding: 16px 16px 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.poster-card .poster-main {
  position: relative;
  z-index: 1;
  padding: 0 16px 18px;
}

.poster-card .poster-title {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.poster-card .poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.86rem;
}

.poster-card .poster-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(9, 13, 25, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-card .poster-copy {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
}

.poster-card .poster-footer {
  position: relative;
  z-index: 1;
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.poster-card .poster-footer .badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding: 16px 0 24px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

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

.section-link {
  color: #ffe09e;
  white-space: nowrap;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  border-color: rgba(245, 185, 66, 0.22);
}

.movie-card .cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(145deg, hsl(var(--h1) 76% 52%), hsl(var(--h2) 72% 36%));
}

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

.movie-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.72) 100%);
}

.movie-card .cover .card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(9, 13, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.movie-card .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 15px;
}

.movie-card .title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-row .dot::before {
  content: "•";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.28);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tag-row .tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe4ff;
  font-size: 0.78rem;
}

.kicker {
  color: #ffd580;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.breadcrumb a {
  color: #d7e3ff;
}

.page-head {
  margin: 22px 0 18px;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 18px;
}

.toolbar .field {
  min-width: 170px;
  flex: 1 1 190px;
}

.toolbar input,
.toolbar select,
.search-box input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 22, 42, 0.88);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.toolbar input:focus,
.toolbar select:focus,
.search-box input:focus {
  border-color: rgba(245, 185, 66, 0.32);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.1);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.11), transparent 18%),
    linear-gradient(145deg, hsl(var(--h1) 76% 52%), hsl(var(--h2) 72% 34%));
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card .name {
  font-size: 1.25rem;
  font-weight: 800;
}

.category-card .desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  max-width: 28ch;
}

.category-card .count {
  margin-top: 14px;
  font-weight: 700;
}

.category-card .link {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 13, 25, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: fit-content;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
  align-items: start;
}

.detail-panel,
.card-panel {
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.detail-panel .inner,
.card-panel .inner {
  padding: 18px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(145deg, hsl(var(--h1) 76% 52%), hsl(var(--h2) 72% 34%));
}

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

.detail-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.detail-meta .chip {
  background: rgba(255, 255, 255, 0.06);
}

.detail-summary {
  margin-top: 16px;
  color: #dde4fb;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.spec {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.spec .label {
  color: var(--muted);
  font-size: 0.84rem;
}

.spec .value {
  margin-top: 4px;
  font-weight: 700;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(17, 25, 49, 0.96), rgba(10, 15, 29, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

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

.video-shell .video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.video-shell .play-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.26);
  color: #ffd780;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.video-shell.is-playing .video-overlay {
  opacity: 0;
  visibility: hidden;
}

.copy-block {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.copy-block h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.copy-block p {
  margin: 0;
  color: #dde4fb;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rank-num {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 16%),
    linear-gradient(145deg, hsl(var(--h1) 76% 52%), hsl(var(--h2) 72% 34%));
}

.rank-title {
  margin: 0;
  font-size: 1.02rem;
}

.rank-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

.rank-score {
  color: #ffe09a;
  font-weight: 800;
}

.search-box {
  position: relative;
  margin-top: 16px;
}

.search-box input {
  padding-left: 46px;
  font-size: 1rem;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-meta {
  margin-top: 10px;
  color: var(--muted);
}

.footer {
  margin-top: 30px;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  color: #d7e3ff;
}

.mobile-only {
  display: none;
}

.hidden {
  display: none !important;
}

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

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

  .detail-layout,
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .site-header .inner {
    min-height: 68px;
  }

  .nav {
    position: fixed;
    inset: 68px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(11, 16, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    margin: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav-search {
    width: 100%;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-frame {
    padding: 18px;
  }

  .hero-stats,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .related-grid,
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-num {
    width: 62px;
    height: 62px;
  }

  .mobile-only {
    display: inline-flex;
  }
}
