:root {
  --bg: #0c0c12;
  --bg-soft: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1b1b26;
  --bg-elevated: #1e1e2a;
  --accent: #ff2d55;
  --accent-bright: #ff5470;
  --accent-dim: #a31f3a;
  --accent-faint: rgba(255, 45, 85, 0.1);
  --amber: #ffb020;
  --amber-bright: #ffc34d;
  --amber-faint: rgba(255, 176, 32, 0.12);
  --text: #ececf1;
  --text-bright: #ffffff;
  --text-dim: #9b9ba6;
  --text-faint: #5e5e6a;
  --border: #23232e;
  --border-accent: rgba(255, 45, 85, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --readw: 760px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  z-index: 300;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.5);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 50% -5%, rgba(255, 45, 85, 0.08), transparent 70%),
    radial-gradient(ellipse 45% 40% at 90% 100%, rgba(255, 176, 32, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(12, 12, 18, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-right: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand em {
  font-style: normal;
  color: var(--accent-bright);
}

nav a {
  color: var(--text-dim);
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
  flex-shrink: 0;
}

nav a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

nav a.on {
  color: var(--accent-bright);
  background: var(--accent-faint);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 110px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 70px 0 56px;
  margin-bottom: 30px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.35) 0%, rgba(12, 12, 18, 0.55) 45%, rgba(12, 12, 18, 0.97) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--amber-bright);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 2px;
  line-height: 1.08;
  margin-bottom: 14px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 22px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}

.chip.hot {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.25s;
  letter-spacing: 1px;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-play {
  color: #101016;
  background: linear-gradient(135deg, var(--amber), var(--amber-bright));
  box-shadow: 0 10px 30px rgba(255, 176, 32, 0.35);
}

.btn-play:hover {
  box-shadow: 0 14px 40px rgba(255, 176, 32, 0.5);
  transform: translateY(-2px);
}

.btn-play .ico {
  width: 0;
  height: 0;
  border-left: 10px solid #101016;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.btn-ghost {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

section {
  padding: 76px 0 8px;
  scroll-margin-top: 72px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.sec-head h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 1px;
  white-space: nowrap;
}

.sec-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.sec-head .en {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sec-intro {
  max-width: var(--readw);
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 34px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  line-height: 1.9;
}

.prose {
  max-width: var(--readw);
}

.prose p {
  font-size: 15.5px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 2.05;
  letter-spacing: 0.3px;
}

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

.prose strong {
  color: var(--amber-bright);
  font-weight: 700;
}

.prose em {
  color: var(--text-bright);
  font-style: normal;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: start;
}

.poster {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.poster .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.3s, transform 0.3s;
}

.fact:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.fact .k {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.fact .v {
  font-size: 14.5px;
  color: var(--text-bright);
  font-weight: 600;
  line-height: 1.5;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 18px;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.player .thumb {
  position: absolute;
  inset: 0;
}

.player .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.player .play-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(255, 45, 85, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}

.play-circle .tri {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.play-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 54px rgba(255, 45, 85, 0.6);
}

.player .now {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  font-weight: 600;
}

.player .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}

.player .bar .time {
  font-size: 12.5px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player .bar .track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.player .bar .track i {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 2px;
}

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

.ep-tab {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.ep-tab:hover {
  color: var(--text-bright);
  border-color: var(--accent);
}

.ep-tab.on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.grid-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.ep-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ep-card:hover .ep-thumb img {
  transform: scale(1.07);
}

.ep-thumb .num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.ep-thumb .hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}

.ep-card:hover .hover-play {
  opacity: 1;
}

.ep-thumb .hover-play .mini-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-thumb .hover-play .mini-play .tri {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

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

.ep-body .t {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-body .m {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.role {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s;
}

.role::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.role:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.role:hover::before {
  opacity: 1;
}

.role .avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.role .name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.role .who {
  font-size: 13px;
  color: var(--accent-bright);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.role .desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.95;
}

.role .desc strong {
  color: var(--text);
  font-weight: 600;
}

.review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.review:hover {
  border-color: var(--border-accent);
}

.review .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--amber-bright);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review .who {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
}

.review .when {
  font-size: 12px;
  color: var(--text-faint);
}

.review .stars {
  margin-left: auto;
  color: var(--amber-bright);
  letter-spacing: 2px;
  font-size: 14px;
}

.review .body {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.95;
}

.review .body strong {
  color: var(--text);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 13px;
  color: var(--text-dim);
}

.share-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  color: var(--text-bright);
}

.share-btn .si {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.share-btn .si.wechat { background: #07c160; }
.share-btn .si.weibo { background: #e6162d; }
.share-btn .si.qq { background: #12b7f5; }
.share-btn .si.link { background: linear-gradient(135deg, #6a6af0, #9a4df0); }
.share-btn .si.douyin { background: #161823; border: 1px solid #3a3a4a; }
.share-btn .si.more { background: var(--bg-elevated); }

.cta-banner {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.16), rgba(255, 176, 32, 0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 36px 34px;
  text-align: center;
  margin-top: 16px;
}

.cta-banner h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cta-banner p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.25s;
}

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

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--text-faint);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-bright);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 400;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 250;
  box-shadow: 0 10px 26px rgba(255, 45, 85, 0.4);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 70px;
  padding: 52px 24px 40px;
  text-align: center;
}

.footer-tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.footer-tag span {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 16px;
}

.footer-seo {
  max-width: var(--readw);
  margin: 0 auto 22px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.9;
}

footer .copy {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 1px;
  line-height: 2;
}

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

@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .poster {
    max-width: 300px;
  }
  .hero {
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .wrap {
    padding: 0 16px 72px;
  }
  .hero {
    padding: 46px 0 40px;
    min-height: 440px;
  }
  .hero h1 {
    letter-spacing: 1px;
  }
  .hero-actions .btn {
    padding: 13px 22px;
    font-size: 14px;
  }
  .card {
    padding: 22px 18px;
  }
  .sec-head .en {
    display: none;
  }
  .grid-episodes {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .prose p {
    font-size: 15px;
  }
  .player .bar {
    padding: 12px 14px;
  }
  .nav-inner {
    padding: 0 14px;
  }
}
