
:root {
  --bg: #08111f;
  --bg-soft: #0d1727;
  --bg-elev: #111b2e;
  --bg-card: rgba(17, 27, 46, 0.78);
  --text: #e5eefc;
  --muted: #9ab0cf;
  --line: rgba(154, 176, 207, 0.16);
  --cyan: #19d3ff;
  --cyan-2: #5eead4;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1320px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(25, 211, 255, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.10), transparent 20%),
    radial-gradient(circle at bottom center, rgba(245, 158, 11, 0.08), transparent 24%),
    linear-gradient(180deg, #06101c 0%, #08111f 36%, #050914 100%);
  color: var(--text);
  line-height: 1.65;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(25, 211, 255, 0.32);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(24px);
  background: rgba(5, 9, 20, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #8b5cf6 55%, var(--pink));
  box-shadow: 0 10px 30px rgba(25, 211, 255, 0.22);
  flex: none;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title strong {
  font-size: 1.02rem;
}

.brand-title span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

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

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

.nav a:hover,
.nav button:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(25, 211, 255, 0.10);
  border-color: rgba(25, 211, 255, 0.18);
  transform: translateY(-1px);
}

.spacer {
  flex: 1;
}

.searchbar {
  position: relative;
  min-width: min(42vw, 380px);
  max-width: 420px;
  flex: 1;
}

.searchbar input {
  width: 100%;
  padding: 13px 18px 13px 48px;
  border-radius: 999px;
  border: 1px solid rgba(154, 176, 207, 0.16);
  background: rgba(16, 24, 40, 0.78);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.searchbar input::placeholder {
  color: rgba(154, 176, 207, 0.8);
}

.searchbar input:focus {
  border-color: rgba(25, 211, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(25, 211, 255, 0.12);
  background: rgba(17, 27, 46, 0.94);
}

.searchbar .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .72;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(154, 176, 207, 0.18);
  background: rgba(16, 24, 40, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
}

.main {
  padding: 24px 0 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(25, 211, 255, 0.10), rgba(236, 72, 153, 0.08) 40%, rgba(245, 158, 11, 0.05)),
    rgba(8, 17, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(25, 211, 255, .16), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 340px) 1fr;
  gap: 28px;
  align-items: center;
}

.poster {
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(25, 211, 255, 0.10), rgba(255,255,255,0.02));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateZ(0);
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #c8f6ff;
  background: rgba(25, 211, 255, 0.10);
  border: 1px solid rgba(25, 211, 255, 0.18);
  font-size: .88rem;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 0 5px rgba(25, 211, 255, 0.12);
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 0;
  color: #d8e6ff;
  font-size: 1.06rem;
  max-width: 68ch;
}

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

.badge,
.chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(154, 176, 207, 0.16);
  background: rgba(17, 27, 46, 0.74);
  color: var(--text);
  font-size: .86rem;
}

.badge strong,
.meta-pill strong {
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}

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

.btn.primary {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 18px 40px rgba(25, 211, 255, 0.22);
}

.btn.secondary {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.section {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(10, 17, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(17, 27, 46, 0.82);
  border: 1px solid rgba(154, 176, 207, 0.14);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  min-height: 100%;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 211, 255, 0.36);
  box-shadow: 0 24px 50px rgba(0,0,0,0.30);
}

.movie-card .thumb {
  aspect-ratio: 2 / 3;
  background: linear-gradient(180deg, rgba(25, 211, 255, 0.08), rgba(255,255,255,0.02));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

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

.movie-card .body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.movie-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.movie-card .meta .tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 211, 255, 0.10);
  border: 1px solid rgba(25, 211, 255, 0.12);
  color: #d8faff;
  font-size: .78rem;
}

.movie-card .meta .tag.pink {
  background: rgba(236, 72, 153, 0.10);
  border-color: rgba(236, 72, 153, 0.14);
}

.movie-card .meta .tag.amber {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.14);
}

.movie-card .footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.link {
  color: #b6f0ff;
}

.link:hover {
  text-decoration: underline;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 18px;
}

.info-panel,
.player-panel,
.copy-panel {
  border-radius: var(--radius-xl);
  background: rgba(15, 22, 37, 0.82);
  border: 1px solid rgba(154, 176, 207, 0.14);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.info-panel {
  padding: 20px;
}

.info-panel h2,
.copy-panel h2,
.player-panel h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 14px;
  color: #d7e2f8;
}

.prose p:last-child {
  margin-bottom: 0;
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(154, 176, 207, 0.10);
}

.mini-list span:first-child {
  color: var(--muted);
}

.player-wrap {
  padding: 18px;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

.movie-player video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-hint {
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: .9rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filters select,
.filters input {
  border: 1px solid rgba(154, 176, 207, 0.16);
  background: rgba(17, 27, 46, 0.84);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  outline: none;
}

.filters input {
  min-width: min(100%, 280px);
}

.filters select:focus,
.filters input:focus {
  border-color: rgba(25, 211, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(25, 211, 255, 0.10);
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  text-align: center;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(154, 176, 207, 0.14);
  background: rgba(17, 27, 46, 0.72);
  color: var(--text);
}

.pagination a:hover {
  border-color: rgba(25, 211, 255, 0.36);
  background: rgba(25, 211, 255, 0.10);
}

.pagination .current {
  background: linear-gradient(135deg, rgba(25, 211, 255, 0.18), rgba(236, 72, 153, 0.12));
  border-color: rgba(25, 211, 255, 0.42);
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-cloud a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 27, 46, 0.84);
  border: 1px solid rgba(154, 176, 207, 0.12);
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}

.genre-cloud a:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 211, 255, 0.34);
}

.footer {
  width: min(100% - 32px, var(--container));
  margin: 40px auto 0;
  padding: 22px 0 42px;
  color: var(--muted);
  font-size: .92rem;
}

.footer .footer-box {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-menu {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.kbd {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: .82rem;
}

.empty-state {
  padding: 34px 18px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(17, 27, 46, 0.66);
  border: 1px dashed rgba(154, 176, 207, 0.18);
}

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

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

@media (max-width: 960px) {
  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .searchbar {
    order: 3;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

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

  .nav {
    display: none;
  }

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

  .mobile-menu {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 16px;
  }

  .mobile-menu.open {
    display: grid;
    gap: 8px;
  }

  .mobile-menu a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(17, 27, 46, 0.78);
    border: 1px solid rgba(154, 176, 207, 0.12);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, var(--container));
  }

  .topbar-inner {
    width: min(100% - 20px, var(--container));
  }

  .hero,
  .section,
  .info-panel,
  .player-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .grid.cards,
  .grid.feature {
    grid-template-columns: 1fr;
  }

  .footer {
    width: min(100% - 20px, var(--container));
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

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

  .movie-player {
    aspect-ratio: 4 / 5;
  }
}
