:root {
  --bg: #0b0a07;
  --bg2: #12100a;
  --card: #1a1710;
  --card2: #221d12;
  --line: rgba(255,255,255,.09);
  --line2: rgba(255,255,255,.16);
  --txt: #f7f2e6;
  --sub: #b3a98f;
  --dim: #7d745f;
  --brand: #f5c542;
  --brand2: #ff9f1c;
  --gold: #ffd76a;
  --amber: #e8a91c;
  --mint: #7bd6b0;
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sec { margin-top: 56px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,10,7,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { height: 34px; border-radius: 6px; }
.logo-text { font-size: 20px; font-weight: 800; background: linear-gradient(90deg, var(--gold), var(--brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-sub { font-size: 11px; color: var(--dim); margin-left: 8px; font-weight: normal; -webkit-text-fill-color: var(--dim); }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--sub); }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 16px; display: flex; align-items: center; color: var(--dim); }
.search-box input { background: transparent; border: none; color: var(--txt); outline: none; width: 120px; font-size: 13px; }
.btn-outline { border: 1px solid var(--line2); padding: 6px 16px; border-radius: 20px; transition: .2s; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: linear-gradient(90deg, var(--brand), var(--amber)); color: #1a1710; padding: 8px 20px; border-radius: 20px; font-weight: 700; border: none; cursor: pointer; transition: .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(245,197,66,.3); }

/* Breadcrumb */
.breadcrumb { margin-top: 24px; font-size: 13px; color: var(--dim); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 8px; }

/* Hero */
.hero { background: var(--bg2); border-radius: var(--r); border: 1px solid var(--line); padding: 40px; position: relative; overflow: hidden; display: grid; grid-template-columns: 268px 1fr; gap: 40px; margin-top: 16px; }
.hero::before { content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 100%; background: radial-gradient(circle, rgba(245,197,66,.15) 0%, transparent 60%); pointer-events: none; }
.hero-poster { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(180deg, #2a2215 0%, #0f0c08 100%); aspect-ratio: 2/3; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.hero-poster .badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); border: 1px solid var(--brand); color: var(--brand); font-size: 12px; padding: 2px 8px; border-radius: 4px; z-index: 2; }
.hero-info { display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.kicker { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; }
.title-h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.subtitle { font-size: 18px; color: var(--sub); font-style: italic; margin-bottom: 20px; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.score { color: var(--gold); font-size: 28px; font-weight: 800; }
.score span { font-size: 14px; color: var(--sub); font-weight: normal; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { border: 1px solid var(--line2); border-radius: 20px; padding: 4px 14px; font-size: 12px; color: var(--sub); }
.tag.hot { border-color: var(--brand); color: var(--brand); background: rgba(245,197,66,.1); }
.desc { color: var(--sub); margin-bottom: 24px; max-width: 800px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.fact-item { background: var(--card); border: 1px solid var(--line); padding: 12px; border-radius: 8px; text-align: center; font-size: 13px; }
.fact-item b { display: block; color: var(--gold); font-size: 16px; margin-bottom: 4px; }
.action-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.status-bar { display: flex; gap: 24px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 16px; }
.status-bar b { color: var(--txt); }

/* Section Heading */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sec-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; }
.sec-title::before { content: ''; display: block; width: 4px; height: 22px; background: linear-gradient(to bottom, var(--gold), var(--amber)); border-radius: 2px; }
.sec-more { color: var(--dim); font-size: 13px; }
.sec-more:hover { color: var(--brand); }

/* Plot & Characters */
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.panel p { color: var(--sub); margin-bottom: 16px; }
.quote { border-left: 3px solid var(--brand); padding-left: 16px; color: var(--gold); font-style: italic; margin: 24px 0; }
.keywords-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.kw-item { background: var(--card2); padding: 12px; border-radius: 8px; text-align: center; font-size: 13px; color: var(--brand); border: 1px solid transparent; transition: .2s; }
.kw-item:hover { border-color: var(--brand); }
.char-list { display: flex; flex-direction: column; gap: 16px; }
.char-card { display: flex; gap: 16px; background: var(--card2); padding: 16px; border-radius: 10px; }
.char-avatar { width: 60px; height: 60px; border-radius: 8px; background: linear-gradient(135deg, var(--amber), #3a2e12); flex-shrink: 0; overflow: hidden; }
.char-avatar img { width: 100%; height: 100%; }
.char-info h4 { font-size: 16px; margin-bottom: 4px; }
.char-role { font-size: 12px; color: var(--brand); margin-bottom: 8px; display: inline-block;}
.char-info p { font-size: 13px; color: var(--sub); }
.rel-hint { border: 1px dashed rgba(245,197,66,.5); border-radius: 8px; padding: 16px; margin-top: 16px; text-align: center; color: var(--gold); font-size: 13px; }

/* Clips */
.clips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clip-card { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.clip-card img { width: 100%; height: 100%; transition: .3s; }
.clip-card:hover img { transform: scale(1.05); }
.clip-card .badge, .clip-card .time { position: absolute; top: 12px; background: rgba(0,0,0,.7); padding: 2px 8px; border-radius: 4px; font-size: 12px; z-index: 2;}
.clip-card .badge { left: 12px; color: var(--brand); }
.clip-card .time { right: 12px; color: #fff; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: rgba(0,0,0,.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; z-index: 2; transition: .3s; border: 1px solid rgba(255,255,255,.3); }
.clip-card:hover .play-btn { background: var(--brand); color: #000; border-color: var(--brand); }
.clip-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.9)); z-index: 2; }
.clip-info h4 { font-size: 15px; margin-bottom: 4px; }
.clip-info p { font-size: 12px; color: var(--sub); }

/* Player */
.player-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.video-player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center;}
.video-player img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.video-player .center-play { position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: rgba(245,197,66,.9); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #000; cursor: pointer; box-shadow: 0 0 20px rgba(245,197,66,.4); }
.video-player .ep-info { position: relative; z-index: 2; margin-top: 12px; font-size: 16px; font-weight: 600; }
.progress-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,.2); z-index: 3; }
.progress-inner { width: 15%; height: 100%; background: linear-gradient(90deg, var(--brand), var(--amber)); }
.side-panel { display: flex; flex-direction: column; gap: 16px; }
.current-ep { font-size: 18px; font-weight: 700; }
.q-switch { display: flex; gap: 8px; }
.q-switch span { padding: 4px 12px; border-radius: 4px; background: var(--card2); font-size: 12px; cursor: pointer; border: 1px solid var(--line); }
.q-switch span.active { background: rgba(245,197,66,.1); border-color: var(--brand); color: var(--brand); }
.eps-panel { margin-top: 24px; }
.eps-group { margin-bottom: 24px; }
.eps-group h4 { color: var(--brand); margin-bottom: 12px; font-size: 15px; }
.eps-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.ep-btn { background: var(--card2); border: 1px solid var(--line); color: var(--sub); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 13px; cursor: pointer; transition: .2s; }
.ep-btn:hover { border-color: var(--brand); color: var(--brand); }
.ep-btn.active { background: linear-gradient(135deg, var(--brand), var(--amber)); color: #1a1710; border: none; font-weight: 700; }
.ep-btn.locked { border-style: dashed; color: var(--dim); }
.ep-btn.new::after { content: '新'; position: absolute; top: -4px; right: -4px; background: var(--brand); color: #000; font-size: 10px; padding: 0 3px; border-radius: 2px; line-height: 1.2; }
.ep-btn { position: relative; }

/* Interaction */
.interact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.action-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.action-pills button { background: var(--card2); border: 1px solid var(--line); color: var(--sub); padding: 8px 18px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.action-pills button:hover { border-color: var(--brand); color: var(--brand); }
.rating-stars { font-size: 24px; color: var(--brand); margin-bottom: 12px; }
.rating-dist .bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; color: var(--sub); }
.bar-bg { flex: 1; height: 6px; background: var(--card2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--amber)); }
.bubble-panel { display: flex; flex-direction: column; gap: 12px; }
.bubble { background: var(--card2); padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 4px; font-size: 13px; color: var(--sub); max-width: 85%; }
.bubble:nth-child(even) { align-self: flex-end; background: rgba(245,197,66,.1); border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }

/* Comments */
.comment-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.comment-item { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.c-avatar { width: 40px; height: 40px; border-radius: 50%; background: #3a2e12; flex-shrink: 0; overflow: hidden;}
.c-avatar img { width: 100%; height: 100%; }
.c-content { flex: 1; }
.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.c-name { color: var(--brand); font-weight: 600; }
.c-level { background: var(--card2); padding: 0 6px; border-radius: 4px; font-size: 10px; }
.c-time { color: var(--dim); margin-left: auto; }
.c-text { color: var(--txt); margin-bottom: 12px; }
.c-tag { font-size: 12px; color: var(--brand); background: rgba(245,197,66,.1); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.c-actions { display: flex; gap: 16px; font-size: 12px; color: var(--dim); }
.c-actions span { cursor: pointer; }
.c-actions span:hover { color: var(--brand); }
.nested-reply { margin-top: 16px; background: var(--card2); padding: 16px; border-radius: 8px; }
.vote-card h4 { font-size: 16px; margin-bottom: 16px; }
.vote-opt { margin-bottom: 16px; }
.vote-opt .label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.vote-opt .progress { height: 8px; background: var(--card2); border-radius: 4px; overflow: hidden; }
.vote-opt .progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--amber)); }

/* Recommendations */
.rec-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.rec-card { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.rec-card img { width: 100%; height: 100%; }
.rec-card .overlay { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.rec-card .title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.rec-card .meta { font-size: 11px; color: var(--sub); }
.rec-card .badge { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #000; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* Ranking */
.rank-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 24px; }
.rank-tabs { display: flex; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rank-tabs span { font-size: 16px; font-weight: 600; color: var(--sub); padding: 4px 12px; cursor: pointer; border-radius: 6px; }
.rank-tabs span.active { color: var(--brand); background: rgba(245,197,66,.1); border: 1px solid var(--brand); }
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rank-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.rank-num { font-size: 20px; font-style: italic; font-weight: 800; color: var(--dim); width: 24px; }
.rank-item:nth-child(-n+3) .rank-num { color: var(--brand); }
.rank-img { width: 52px; height: 68px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.rank-img img { width: 100%; height: 100%; }
.rank-info .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rank-info .type { font-size: 12px; color: var(--sub); }
.rank-heat { margin-left: auto; font-size: 13px; color: var(--sub); }
.rank-item:nth-child(-n+3) .rank-heat { color: var(--brand); font-weight: 600; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; transition: .2s; }
details[open] { border-color: rgba(245,197,66,.5); background: rgba(245,197,66,.05); }
summary { font-weight: 600; display: flex; align-items: center; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: 'Q'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--brand); color: #000; font-size: 12px; font-weight: bold; border-radius: 4px; margin-right: 12px; }
summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--brand); }
details[open] summary::after { content: '-'; }
details p { margin-top: 12px; color: var(--sub); font-size: 13px; padding-left: 32px; }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 24px; font-size: 12px; color: var(--dim); }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 32px; }
.foot-brand h4 { font-size: 18px; color: var(--brand); margin-bottom: 8px; }
.foot-links { display: flex; gap: 48px; }
.foot-links div { display: flex; flex-direction: column; gap: 8px; }
.foot-links h5 { color: var(--txt); margin-bottom: 8px; font-size: 13px; }
.foot-links a:hover { color: var(--brand); }
.footer-bottom { text-align: center; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bottom a { color: var(--dim); }
.footer-bottom a:hover { color: var(--brand); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 1000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-content { background: linear-gradient(180deg, var(--card2), var(--bg2)); border: 1px solid var(--brand); border-radius: 16px; padding: 32px; width: 90%; max-width: 400px; position: relative; text-align: center; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 24px; cursor: pointer; color: var(--dim); }
.modal-close:hover { color: var(--txt); }
.modal-icon { width: 64px; height: 64px; background: var(--brand); border-radius: 16px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #000; font-weight: bold; }
.modal-content h3 { font-size: 20px; margin-bottom: 8px; }
.modal-content p { color: var(--sub); font-size: 13px; margin-bottom: 24px; }
.copy-box { display: flex; gap: 8px; margin-bottom: 24px; }
.copy-box input { flex: 1; background: rgba(0,0,0,.5); border: 1px solid var(--line2); padding: 10px; border-radius: 8px; color: var(--txt); font-size: 13px; outline: none; }
.copy-box button { background: var(--card2); border: 1px solid var(--line2); color: var(--txt); padding: 0 16px; border-radius: 8px; cursor: pointer; }
.copy-box button:hover { border-color: var(--brand); color: var(--brand); }
.modal-content .btn-primary { width: 100%; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-poster { max-width: 240px; margin: 0 auto; }
  .hero-info { text-align: center; }
  .tags, .rating-row, .action-btns { justify-content: center; }
  .two-col, .player-layout, .interact-layout, .comment-layout { grid-template-columns: 1fr; }
  .clips-grid { grid-template-columns: repeat(2, 1fr); }
  .eps-grid { grid-template-columns: repeat(6, 1fr); }
  .rec-grid { grid-template-columns: repeat(3, 1fr); }
  .rank-grid { grid-template-columns: 1fr; }
  .nav-links, .search-box { display: none; }
}
@media (max-width: 640px) {
  .title-h1 { font-size: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .clips-grid { grid-template-columns: 1fr; }
  .eps-grid { grid-template-columns: repeat(4, 1fr); }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .keywords-grid { grid-template-columns: 1fr; }
  .faq-grid, .footer-top { grid-template-columns: 1fr; flex-direction: column; gap: 24px; }
  .foot-links { flex-wrap: wrap; gap: 24px; }
  .header-actions .btn-outline { display: none; }
}