:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --bg-3: #111a2e;
  --card: #10182a;
  --card-2: #141f36;
  --line: rgba(148, 184, 255, 0.14);
  --text: #eef3fb;
  --muted: #9fb0c9;
  --dim: #6d7f9c;
  --brand: #ffb43a;
  --brand-2: #ff8a3d;
  --accent: #4f8dff;
  --accent-2: #35d6c8;
  --danger: #ff5c6c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.6);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

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

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

body {
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(79, 141, 255, 0.16), transparent 60%), radial-gradient(900px 500px at 0% 10%, rgba(255, 180, 58, 0.1), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--accent));
  z-index: 1000;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(255, 180, 58, 0.6);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

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

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

.nav-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-right: 14px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-brand em {
  font-style: normal;
  margin: 0 6px;
  color: var(--dim);
  -webkit-text-fill-color: var(--dim);
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

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

.nav-link.on {
  color: var(--brand);
}

.nav-link.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  margin: 0 -20px 28px;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-lg);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.25) 0%, rgba(7, 11, 20, 0.2) 35%, rgba(7, 11, 20, 0.92) 82%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 46px 30px 42px;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--brand);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 180, 58, 0.4);
  border-radius: 999px;
  background: rgba(255, 180, 58, 0.08);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  margin-top: 14px;
  max-width: 560px;
  font-size: 16px;
  color: #cdd8ea;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbe4f3;
  backdrop-filter: blur(4px);
}

.chip.hot {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #231200;
  font-weight: 700;
  border: none;
}

.chip.gold {
  background: linear-gradient(90deg, #ffe6a3, #ffc24b);
  color: #3a2600;
  font-weight: 700;
  border: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-play {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #241400;
  box-shadow: 0 10px 28px rgba(255, 138, 61, 0.4);
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 138, 61, 0.55);
  filter: brightness(1.05);
}

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

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

.ico {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
  padding: 4px 0 26px;
}

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

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

.breadcrumb .sep {
  color: var(--dim);
}

section {
  padding: 34px 0 26px;
  scroll-margin-top: 80px;
}

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

.sec-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

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

.sec-intro {
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
  margin-bottom: 24px;
}

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

.poster {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

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

.poster .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.fact .k {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.fact .v {
  font-size: 15px;
  font-weight: 600;
}

.prose {
  color: #c4d1e4;
  font-size: 15.5px;
}

.prose p {
  margin-bottom: 14px;
}

.prose strong {
  color: var(--brand);
}

.prose em {
  font-style: normal;
  color: var(--accent-2);
}

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

.player-media,
.player-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.25s;
}

.play-center:hover {
  background: rgba(0, 0, 0, 0.42);
}

.play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 40px rgba(255, 138, 61, 0.55);
  transition: transform 0.2s;
}

.play-center:hover .play-circle {
  transform: scale(1.1);
}

.tri {
  width: 0;
  height: 0;
  border-left: 22px solid #241400;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 5px;
}

.play-center .now {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

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

.player-bar .time {
  font-size: 12px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

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

.player-bar .track i {
  display: block;
  width: 12%;
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
}

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

.ep-tab {
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.ep-tab:hover {
  color: var(--text);
  border-color: rgba(255, 180, 58, 0.4);
}

.ep-tab.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #241400;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 138, 61, 0.35);
}

.grid-episodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.ep-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 180, 58, 0.4);
  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.4s;
}

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

.ep-thumb .num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 7px;
}

.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.25s;
  cursor: pointer;
}

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

.mini-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.5);
}

.mini-play .tri {
  border-left: 15px solid #241400;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

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

.ep-body .t {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ep-body .m {
  font-size: 14px;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.story-card .media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.story-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.story-card:hover .media img {
  transform: scale(1.06);
}

.story-card .body {
  padding: 18px;
}

.story-card .idx {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}

.story-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.story-card .prose {
  font-size: 14px;
}

.stills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.still {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.still img {
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
}

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

.role {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
}

.role:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.role .avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #241400;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.role:nth-child(2) .avatar {
  background: linear-gradient(135deg, #ff8fb3, #ff5c8a);
  color: #fff;
}

.role:nth-child(3) .avatar {
  background: linear-gradient(135deg, #dfe8f5, #9fb0c9);
  color: #22304a;
}

.role:nth-child(4) .avatar {
  background: linear-gradient(135deg, #3a4a63, #131c2e);
  color: #cdd8ea;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.role .name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.role .who {
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.role .desc {
  font-size: 13.5px;
  color: var(--muted);
  text-align: left;
}

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

.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

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

.review .head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.review .who {
  font-weight: 700;
  font-size: 15px;
}

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

.review .stars {
  margin-left: auto;
  color: var(--brand);
  font-size: 15px;
  letter-spacing: 1px;
}

.review .body {
  font-size: 15px;
  color: #c4d1e4;
}

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

.share-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.18s, border-color 0.18s, color 0.18s;
}

.share-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 58, 0.4);
  color: var(--text);
}

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

.si.wechat { background: linear-gradient(135deg, #2fbe4e, #0f9d3a); }
.si.weibo { background: linear-gradient(135deg, #ff7f4f, #e8492c); }
.si.qq { background: linear-gradient(135deg, #35a8ff, #1b6ee6); }
.si.link { background: linear-gradient(135deg, #8b7cff, #5f4be6); }
.si.douyin { background: linear-gradient(135deg, #26222a, #0f0e12); }
.si.more { background: linear-gradient(135deg, #3a4a63, #1b2536); }

.cta-banner {
  background: linear-gradient(135deg, rgba(255, 180, 58, 0.12), rgba(255, 138, 61, 0.05)), var(--card-2);
  border: 1px solid rgba(255, 180, 58, 0.25);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.cta-banner h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 20px;
}

footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.7);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 40px;
  text-align: center;
}

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

.footer-tag span {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.footer-seo {
  color: var(--dim);
  font-size: 13.5px;
  max-width: 860px;
  margin: 0 auto 18px;
}

.copy {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.9;
}

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

.copy a:hover {
  color: var(--brand);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(17, 26, 46, 0.96);
  border: 1px solid rgba(255, 180, 58, 0.4);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1100;
  max-width: 86vw;
  text-align: center;
}

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

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #241400;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(255, 138, 61, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 950;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

  .poster {
    max-width: 320px;
  }

  .grid-episodes,
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 600px) {
  .grid-episodes,
  .story-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: 460px;
  }

  .hero-inner {
    padding: 36px 20px 32px;
  }

  .sec-head .en {
    display: none;
  }

  .share-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
