:root {
  --bg: #0e1014;
  --bg-soft: #15181f;
  --card: #1a1e26;
  --card-hover: #20252f;
  --line: #262c37;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --dim: #6b7280;
  --brand: #ff5a3c;
  --brand-2: #ff8a00;
  --gold: #ffb340;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container { width: min(1200px, 92%); margin: 0 auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(255, 90, 60, 0.4);
}

.logo b { color: var(--brand); font-weight: 800; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }

.nav-links a { position: relative; padding: 6px 2px; transition: color 0.2s; }

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--brand); font-weight: 700; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  width: 260px;
  color: var(--dim);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.15); }

.nav-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; }

.nav-search input::placeholder { color: var(--dim); }

.detail-hero { position: relative; padding: 64px 0 70px; background-size: cover; background-position: center; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.7) 0%, rgba(14, 16, 20, 0.92) 70%, var(--bg) 100%);
}

.hero-inner { position: relative; display: flex; gap: 42px; align-items: flex-start; }

.poster {
  position: relative;
  flex: 0 0 250px;
  width: 250px;
  height: 333px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.poster:hover { transform: translateY(-6px); }

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.info { flex: 1; min-width: 0; padding-top: 6px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.crumbs a { transition: color 0.2s; }

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

.crumbs .sep { margin: 0 8px; color: var(--dim); }

.info h1 { font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: 0.5px; }

.en-title { color: var(--muted); font-size: 15px; margin-top: 6px; letter-spacing: 0.4px; }

.meta-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }

.meta-tags span {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}

.meta-tags span.live { color: var(--green); border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }

.meta-tags span.hot { color: var(--gold); border-color: rgba(255, 179, 64, 0.4); background: rgba(255, 179, 64, 0.1); }

.score-row { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin: 22px 0; }

.score { display: flex; align-items: center; gap: 12px; }

.score .val { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; }

.score .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }

.score .cnt { color: var(--muted); font-size: 13px; }

.stat { color: var(--muted); font-size: 14px; }

.stat b { color: var(--text); font-size: 18px; font-weight: 700; margin-right: 4px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-play {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 90, 60, 0.4);
}

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

.btn-ghost { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--text); }

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

.btn-share { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--text); }

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

.quick-nav {
  position: sticky;
  top: 66px;
  z-index: 50;
  background: rgba(14, 16, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.quick-nav-inner { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }

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

.quick-nav-inner a {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}

.quick-nav-inner a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.quick-nav-inner a.active { color: #fff; background: var(--brand); }

.section { padding: 68px 0; }

.section.alt { background: var(--bg-soft); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }

.sec-title { display: flex; align-items: center; gap: 14px; }

.sec-title .bar { width: 5px; height: 34px; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }

.sec-title h2 { font-size: 26px; font-weight: 800; line-height: 1.1; }

.sec-title .sub { color: var(--dim); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

.sec-more { color: var(--muted); font-size: 14px; transition: color 0.2s; }

.sec-more:hover { color: var(--brand); }

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

.synopsis { color: var(--muted); font-size: 16px; }

.synopsis p { margin-bottom: 18px; }

.synopsis .lead { color: var(--text); font-size: 17px; font-weight: 500; }

.synopsis strong { color: var(--brand); font-weight: 700; }

.info-card {
  position: sticky;
  top: 140px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.info-card dl { display: grid; grid-template-columns: 64px 1fr; row-gap: 12px; font-size: 14px; }

.info-card dt { color: var(--dim); }

.info-card dd { color: var(--text); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.tag-list span { font-size: 12px; color: var(--brand); background: rgba(255, 90, 60, 0.08); padding: 4px 10px; border-radius: 6px; }

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

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

.ep-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 60, 0.5); box-shadow: var(--shadow-soft); }

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

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

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

.ep-thumb .dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

.ep-thumb .new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.ep-thumb .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 ease;
}

.ep-thumb .play i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 90, 60, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-style: normal;
}

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

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

.ep-num { font-size: 12px; color: var(--brand); font-weight: 700; }

.ep-title { font-size: 16px; font-weight: 700; margin: 4px 0 8px; }

.ep-meta { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; }

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

.hl-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.hl-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 60, 0.5); }

.hl-card .idx {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 42px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.hl-card .icon { font-size: 30px; margin-bottom: 14px; }

.hl-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }

.hl-card p { color: var(--muted); font-size: 14px; }

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

.cast-card {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cast-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 60, 0.5); }

.avatar-img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }

.c-name { font-size: 17px; font-weight: 800; }

.c-role { font-size: 13px; color: var(--brand); margin: 4px 0 8px; }

.c-desc { font-size: 13px; color: var(--muted); }

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

.still-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.still-card:hover { transform: translateY(-6px); }

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

.still-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 13px;
}

.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }

.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }

.faq-item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brand); transition: transform 0.2s; }

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

.review-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }

.review-score { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 140px; }

.review-score .big { font-size: 46px; font-weight: 800; color: var(--gold); line-height: 1; }

.review-score .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin: 10px 0 6px; }

.review-score .cnt { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.rate-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }

.rate-row .lab { width: 28px; color: var(--muted); }

.rate-row .track { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }

.rate-row .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }

.rate-row .pct { width: 36px; text-align: right; color: var(--muted); }

.review-filter { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

.review-filter button {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.review-filter button:hover { color: var(--text); border-color: var(--brand); }

.review-filter button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

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

.review-item.hidden { display: none; }

.rv-head { display: flex; align-items: center; gap: 12px; }

.rv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.rv-user { font-size: 15px; font-weight: 700; }

.rv-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }

.rv-meta { margin-left: auto; color: var(--dim); font-size: 12px; }

.rv-tag { display: inline-block; font-size: 12px; color: var(--green); background: rgba(34, 197, 94, 0.1); padding: 2px 9px; border-radius: 6px; margin: 12px 0 6px; }

.rv-text { color: var(--muted); font-size: 14px; }

.rv-action { display: flex; gap: 18px; margin-top: 12px; color: var(--dim); font-size: 13px; }

.footer { background: #0a0c0f; border-top: 1px solid var(--line); padding: 52px 0 30px; }

.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }

.footer-top p { color: var(--muted); font-size: 14px; }

.footer-top h4 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.f-links { display: flex; flex-direction: column; gap: 10px; }

.f-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }

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

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; }

.footer-bottom p { color: var(--dim); font-size: 13px; }

.footer-bottom .tags { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-bottom .tags span { font-size: 12px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-mask.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  width: min(440px, 92%);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-mask.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover { color: #fff; border-color: var(--brand); }

.modal h3 { font-size: 20px; font-weight: 800; }

.modal-sub { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }

.share-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
}

.share-item:hover { color: var(--text); border-color: var(--brand); transform: translateY(-3px); }

.share-item .ico { font-size: 24px; }

.copy-row { display: flex; gap: 10px; margin-top: 20px; }

.copy-row input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  outline: 0;
}

.copy-row button {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.copy-row button:hover { opacity: 0.9; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 24, 31, 0.95);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.4);
  transition: all 0.3s ease;
}

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

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

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

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

@media (max-width: 1024px) {
  .episode-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .cast-grid { grid-template-columns: 1fr; }
  .review-layout { grid-template-columns: 1fr; }
  .review-score { position: static; }
  .synopsis-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-search { width: 100%; }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .poster { flex: 0 0 auto; width: 200px; height: 267px; }
  .info { width: 100%; }
  .info h1 { font-size: 28px; }
  .crumbs { justify-content: center; }
  .meta-tags, .score-row, .btn-row { justify-content: center; }
  .episode-grid, .highlight-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}
