
:root {
  --bg: #070812;
  --bg-soft: #0e1020;
  --panel: rgba(15, 18, 34, 0.82);
  --panel-strong: rgba(18, 22, 43, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7ff;
  --muted: #9ba5c9;
  --muted-strong: #d4daf3;
  --accent: #ff5c7a;
  --accent-2: #7b6cff;
  --accent-3: #00d4ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 108, 255, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 92, 122, 0.12), transparent 20%),
    radial-gradient(circle at 70% 10%, rgba(0, 212, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #05060c 0%, #090b16 38%, #06070d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(255, 92, 122, 0.32);
  color: #fff;
}

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

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  opacity: 0.12;
  z-index: -1;
}

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

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 28%),
    linear-gradient(145deg, var(--accent), var(--accent-2) 64%, var(--accent-3));
  box-shadow: 0 10px 30px rgba(255, 92, 122, 0.25);
  position: relative;
  flex: none;
}

.brand-mark::after {
  content: "影";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

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

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

.nav a:hover,
.nav button:hover,
.nav a.is-active,
.nav button.is-active {
  color: #fff;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(390px, 100%);
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.searchbox input::placeholder {
  color: #98a2c6;
}

.icon-btn,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(123, 108, 255, 0.22);
}

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

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

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

.ghost-btn {
  color: var(--muted-strong);
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
}

.hero {
  padding: 24px 0 14px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 18px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(123,108,255,0.14), rgba(255, 92, 122, 0.08) 48%, rgba(0, 212, 255, 0.08));
  box-shadow: var(--shadow);
  min-height: 520px;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.48s cubic-bezier(.2,.75,.2,1);
}

.hero-slide {
  min-width: 100%;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 8px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0;
  color: rgba(245, 247, 255, 0.84);
  font-size: 16px;
  line-height: 1.8;
  max-width: 46ch;
}

.hero-meta,
.meta-row,
.chips,
.filter-row,
.player-actions,
.quick-actions,
.pager,
.related-actions,
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.chip,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 470px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(145deg, var(--g1), var(--g2) 54%, var(--g3));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 16px 40px rgba(0,0,0,0.25);
  padding: 22px;
}

.hero-art::before,
.poster::before,
.detail-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.32), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 24%, rgba(0,0,0,0.32));
  pointer-events: none;
}

.hero-art__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 426px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-art__title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-art__abbr {
  font-size: clamp(76px, 14vw, 128px);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.hero-art__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.hero-art__footer .tag {
  background: rgba(0,0,0,0.16);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 0;
}

.panel .panel-title {
  margin: 0;
  font-size: 18px;
}

.panel .panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel .panel-body {
  padding: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  transition: 0.22s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}

.mini-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(145deg, var(--g1), var(--g2) 54%, var(--g3));
  position: relative;
  overflow: hidden;
}

.mini-poster span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.mini-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
}

.mini-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.35);
  transition: 0.22s ease;
}

.hero-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section {
  padding: 18px 0 8px;
}

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

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

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

.section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.field,
.select {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 999px;
  outline: none;
  padding: 12px 16px;
}

.field {
  min-width: min(360px, 100%);
}

.select {
  min-width: 160px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 16px;
}

.card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 20px 44px rgba(0,0,0,0.36);
}

.poster {
  position: relative;
  min-height: 262px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(145deg, var(--g1), var(--g2) 54%, var(--g3));
}

.poster__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.poster__year,
.poster__type {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.poster__abbr {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.poster__bottom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.poster__score {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.poster__label {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

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

.card-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card-tags .tag {
  padding: 6px 8px;
}

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

.card-link {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.info-line {
  color: var(--muted);
  font-size: 13px;
}

.filter-row {
  margin: 8px 0 18px;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted-strong);
  padding: 9px 14px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,92,122,0.88), rgba(123,108,255,0.88));
  border-color: transparent;
}

.page-hero {
  padding: 24px 0 12px;
}

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

.breadcrumb a {
  color: var(--muted-strong);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 14px;
}

.detail-poster {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(145deg, var(--g1), var(--g2) 54%, var(--g3));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-poster__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.detail-poster__abbr {
  font-size: 110px;
  line-height: 0.88;
  letter-spacing: -0.08em;
  font-weight: 900;
  text-shadow: 0 18px 50px rgba(0,0,0,0.3);
}

.detail-poster__meta {
  display: grid;
  gap: 8px;
}

.detail-poster__meta .tag {
  background: rgba(0,0,0,0.16);
  color: rgba(255,255,255,0.92);
}

.detail-main {
  display: grid;
  gap: 18px;
}

.detail-card,
.player-card,
.related-card,
.rank-card,
.category-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 20px;
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.detail-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.detail-subtitle {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.8;
  max-width: 68ch;
}

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

.meta-item {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.meta-item strong {
  font-size: 14px;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.detail-section p {
  margin: 0;
  color: rgba(245, 247, 255, 0.84);
  line-height: 1.9;
}

.player-card {
  padding: 18px;
}

.player-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

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

.player-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.player-line {
  color: var(--muted);
  font-size: 13px;
}

.player-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted-strong);
  border-radius: 999px;
  padding: 9px 12px;
  transition: 0.22s ease;
}

.source-btn.is-active,
.source-btn:hover {
  background: linear-gradient(135deg, rgba(255,92,122,0.88), rgba(123,108,255,0.88));
  color: #fff;
  border-color: transparent;
}

.related-card {
  padding: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}

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

.rank-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.rank-num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  text-align: center;
}

.rank-main h4 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.4;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.rank-side {
  text-align: right;
  color: var(--muted-strong);
}

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

.category-card {
  padding: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.category-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-count {
  font-size: 28px;
  font-weight: 900;
}

.footer {
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.hide {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 470px;
  }

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

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

  .detail-poster {
    min-height: 420px;
  }

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

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

  .header-row {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .searchbox {
    min-width: 0;
    width: 100%;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-slide {
    padding: 18px;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-art__inner {
    min-height: 276px;
  }

  .section-head,
  .player-bar,
  .footer-inner,
  .rank-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .poster {
    min-height: 230px;
  }

  .detail-card,
  .player-card,
  .related-card,
  .rank-card,
  .category-card {
    border-radius: 22px;
  }

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