:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --yellow: #facc15;
  --radius: 18px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem), linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.06), transparent 35%, rgba(59, 130, 246, 0.08));
  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: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(51, 65, 85, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #020617;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 14px;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.36);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--cyan);
}

.nav-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.page-search,
.filter-panel select {
  color: var(--white);
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(100, 116, 139, 0.72);
  border-radius: 999px;
  outline: none;
  transition: border 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.nav-search input:focus,
.mobile-search input:focus,
.page-search:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}

.nav-search button:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
}

.mobile-search {
  gap: 10px;
}

.mobile-search input {
  width: 100%;
  padding: 10px 14px;
}

.mobile-search button,
.primary-button,
.ghost-button,
.section-more {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-search button,
.primary-button {
  color: #04111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 35px rgba(34, 211, 238, 0.24);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-button,
.section-more {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.primary-button:hover,
.mobile-search button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide {
  min-height: 650px;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 48px;
  padding: 96px max(32px, calc((100vw - 1180px) / 2)) 74px;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-content {
  max-width: 690px;
  animation: rise 0.6s ease both;
}

.hero-kicker {
  display: inline-flex;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content h1,
.detail-copy h1,
.page-hero h1,
.intro-band h1 {
  margin: 18px 0 16px;
  color: var(--white);
  line-height: 1.05;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -0.04em;
}

.hero-content p,
.detail-copy p,
.page-hero p,
.intro-band p {
  color: #cbd5e1;
  font-size: 18px;
  max-width: 720px;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.16);
  font-size: 12px;
  font-weight: 800;
}

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

.slim-actions {
  margin-top: 22px;
}

.hero-poster {
  width: min(380px, 28vw);
  min-width: 250px;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 70px rgba(34, 211, 238, 0.16);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.rank-thumb img,
.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.52);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-arrow:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.55);
}

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

.hero-dot {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-main {
  padding-bottom: 72px;
}

.page-hero,
.detail-hero {
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.small-hero {
  padding: 82px 0 54px;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 34rem), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.intro-band,
.panel-card,
.article-card,
.player-card,
.side-card,
.filter-panel,
.category-card,
.movie-card,
.rank-item,
.compact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 42px 0 12px;
  padding: 30px;
  border-radius: 26px;
}

.intro-band h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.content-section {
  padding: 52px 0 0;
}

.flat-section {
  padding-top: 26px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.panel-card h2,
.article-card h2,
.player-card h2,
.side-card h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
}

.section-heading p,
.panel-card p,
.article-card p,
.side-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

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

.movie-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.76));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  background: rgba(6, 182, 212, 0.88);
}

.poster-score {
  right: 12px;
  color: #fef3c7;
  background: rgba(2, 6, 23, 0.72);
}

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

.card-tags {
  margin-bottom: 10px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3,
.compact-card:hover strong,
.rank-item:hover strong {
  color: var(--cyan);
}

.movie-card p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #64748b;
  font-size: 13px;
}

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

.category-grid.large {
  margin-top: 38px;
}

.category-card {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.24s ease, border 0.24s ease, background 0.24s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -55% 20%;
  height: 110px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(30, 41, 59, 0.9);
}

.category-card strong {
  display: block;
  color: var(--white);
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card span {
  position: relative;
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  padding-top: 52px;
}

.panel-card,
.article-card,
.player-card,
.side-card {
  border-radius: 24px;
  padding: 24px;
}

.glow-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.88));
}

.glow-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.18);
  filter: blur(10px);
}

.inline-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.inline-links a {
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #04111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  font-weight: 950;
}

.rank-thumb {
  width: 82px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.rank-body strong,
.compact-info strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  line-height: 1.3;
}

.rank-body em,
.compact-info em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-body small,
.compact-info small {
  color: #64748b;
}

.rank-score {
  color: var(--yellow);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 180px;
  gap: 14px;
  margin: 28px 0 6px;
  padding: 18px;
  border-radius: 22px;
}

.filter-panel select,
.page-search {
  min-height: 46px;
  padding: 0 16px;
}

.detail-hero {
  padding: 70px 0 58px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

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

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-meta span {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 34px 0 72px;
}

.detail-content {
  display: grid;
  gap: 24px;
}

.player-card h2,
.article-card h2,
.side-card h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--white);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.48));
  border: 0;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: #04111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 46px rgba(34, 211, 238, 0.36);
  font-size: 26px;
}

.article-card p {
  color: #dbeafe;
  font-size: 16px;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
}

.info-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  color: #e2e8f0;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.compact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.compact-thumb {
  width: 72px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.site-footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #020617);
  border-top: 1px solid var(--line);
  padding: 46px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  font-size: 24px;
}

.site-footer p {
  max-width: 480px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 18px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 76px;
  }

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

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

  .split-section,
  .detail-layout,
  .detail-hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .nav-shell,
  .footer-inner,
  .page-container,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 610px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-score {
    grid-column: 3;
  }

  .detail-hero {
    padding-top: 44px;
  }

  .panel-card,
  .article-card,
  .player-card,
  .side-card,
  .intro-band {
    padding: 18px;
  }
}
