:root { --bg:#0f1115; --panel:#171a21; --line:#262b36; --text:#e8eaf0; --muted:#9aa3b5; --accent:#ff5a5f; --accent2:#ffb347; }
@media (prefers-color-scheme: light) { :root { --bg:#f6f7fb; --panel:#fff; --line:#e3e6ee; --text:#151821; --muted:#5c6577; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
.wrap { max-width:880px; margin:0 auto; padding:40px 20px 20px; }
.show { display:flex; gap:28px; align-items:flex-start; margin-bottom:40px; }
.show h1 { margin:0 0 4px; font-size:2.2rem; line-height:1.15; } .show h1 a { color:inherit; }
.author { margin:0 0 8px; color:var(--muted); font-weight:600; }
.desc p { margin:0 0 8px; color:var(--muted); }
.cover, .ep-cover { width:200px; height:200px; border-radius:14px; object-fit:cover; flex:none; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.ep-cover { width:120px; height:120px; border-radius:10px; }
.cover-fallback { display:grid; place-items:center; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; font-weight:800; font-size:3rem; }
.ep-cover.cover-fallback { font-size:1.8rem; }
.subscribe { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.btn { display:inline-block; padding:8px 16px; border-radius:999px; background:var(--accent); color:#fff; border:1px solid var(--accent); font:inherit; font-size:.9rem; font-weight:600; cursor:pointer; }
.btn.ghost { background:transparent; color:var(--text); border-color:var(--line); }
.btn:hover { text-decoration:none; filter:brightness(1.1); }
.section { font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:8px; }
.episode { display:flex; gap:20px; padding:24px 0; border-bottom:1px solid var(--line); }
.ep-body { flex:1; min-width:0; }
.ep-title { margin:0; font-size:1.3rem; line-height:1.3; } .ep-title a { color:inherit; }
h1.ep-title { font-size:2rem; }
.ep-meta { color:var(--muted); font-size:.85rem; margin:4px 0 12px; }
.badge { background:var(--line); border-radius:4px; padding:1px 6px; font-size:.75rem; }
audio { width:100%; margin:4px 0 8px; }
.notes p { margin:0 0 10px; }
.chapters summary { cursor:pointer; color:var(--muted); font-weight:600; }
.chapters ol { padding-left:20px; } .chapters li { margin:2px 0; }
.ts { font-variant-numeric:tabular-nums; }
.back { margin:0 0 10px; }
.empty { color:var(--muted); padding:30px 0; }
.foot { text-align:center; color:var(--muted); font-size:.85rem; padding:30px; } .foot a { color:var(--muted); }
@media (max-width:640px) { .show { flex-direction:column; } .cover { width:150px; height:150px; } .episode { flex-direction:column; } }

/* nav, live banner */
.topbar { border-bottom:1px solid var(--line); background:var(--panel); position:sticky; top:0; z-index:5; }
.topbar-in { max-width:880px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:16px; }
.tb-brand { color:var(--text); font-weight:800; flex:1; }
.tb-links { display:flex; gap:18px; font-weight:600; font-size:.9rem; } .tb-links a { color:var(--muted); }
.tb-live i { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--muted); margin-right:6px; vertical-align:1px; }
.tb-live.on { color:var(--accent); } .tb-live.on i { background:var(--accent); animation:blink 1.2s infinite; }
@keyframes blink { 50% { opacity:.3; } }
.live-banner { display:flex; gap:10px; align-items:center; justify-content:center; background:var(--accent); color:#fff; padding:10px 20px; font-size:.95rem; }
.live-banner:hover { text-decoration:none; filter:brightness(1.08); }
.live-banner .dot { width:10px; height:10px; border-radius:50%; background:#fff; animation:blink 1.2s infinite; }
.live-banner .go { font-weight:700; text-decoration:underline; }
.muted { color:var(--muted); } .small { font-size:.85rem; }
.btn.small { padding:5px 12px; font-size:.8rem; }

/* subscribe */
.subscribe-box { text-align:center; padding-top:10px; }
.subscribe-box h2 { margin:20px 0 4px; }
.subscribe-form { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:14px; }
.subscribe-form input, .chat-form input { background:var(--bg); border:1px solid var(--line); color:var(--text); border-radius:999px; padding:9px 16px; font:inherit; min-width:0; }
.subscribe-form input[type=email] { width:260px; } .subscribe-form input[name=name] { width:180px; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; }
.form-msg { min-height:1.4em; font-weight:600; } .form-msg.ok { color:#51cf66; } .form-msg.err { color:var(--accent); }

/* live page */
.live-page { max-width:1100px; }
.live-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr); gap:20px; align-items:stretch; }
.live-player { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:30px; display:flex; flex-direction:column; gap:10px; }
.live-player h1 { margin:0; font-size:2rem; line-height:1.15; }
.live-state span { display:none; font-weight:800; font-size:.8rem; letter-spacing:.08em; padding:4px 10px; border-radius:6px; }
.badge-live { background:var(--accent); color:#fff; animation:blink 1.6s infinite; } .badge-off { background:var(--line); color:var(--muted); }
[data-live="1"] .badge-live, [data-live="0"] .badge-off { display:inline-block; }
[data-live="0"] .live-on, [data-live="1"] .live-off { display:none; }
.btn.big { font-size:1.1rem; padding:14px 30px; align-self:flex-start; }
.live-meta { color:var(--muted); font-variant-numeric:tabular-nums; }
.eq { display:flex; gap:4px; align-items:flex-end; height:70px; margin:10px 0; }
.eq i { flex:1; height:12%; background:linear-gradient(var(--accent2), var(--accent)); border-radius:3px; opacity:.35; }
.playing .eq i { animation:eq .9s ease-in-out infinite alternate; opacity:.9; }
.eq i:nth-child(3n) { animation-delay:-.3s; } .eq i:nth-child(4n+1) { animation-delay:-.6s; animation-duration:.7s; } .eq i:nth-child(5n+2) { animation-delay:-.45s; animation-duration:1.1s; }
@keyframes eq { from { height:10%; } to { height:95%; } }
.chat { background:var(--panel); border:1px solid var(--line); border-radius:18px; display:flex; flex-direction:column; height:560px; overflow:hidden; }
.chat-head { padding:14px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; }
.chat-list { flex:1; overflow-y:auto; padding:12px 16px; display:flex; flex-direction:column; gap:10px; }
.msg { font-size:.92rem; } .msg p { margin:2px 0 0; overflow-wrap:anywhere; }
.msg .who { font-weight:700; } .msg .when { color:var(--muted); font-size:.75rem; margin-left:8px; }
.msg.host { background:#ff5a5f18; border-left:3px solid var(--accent); padding:6px 10px; border-radius:6px; }
.msg.host em { font-style:normal; font-size:.65rem; background:var(--accent); color:#fff; padding:1px 5px; border-radius:3px; vertical-align:2px; }
.msg.system { color:var(--muted); text-align:center; font-style:italic; }
.chat-form { border-top:1px solid var(--line); padding:12px; display:flex; flex-direction:column; gap:8px; }
.chat-send { display:flex; gap:8px; } .chat-send input { flex:1; }
.chat-form input:disabled { opacity:.5; }
.chat-error { color:var(--accent); margin:0; font-size:.85rem; min-height:1em; }
@media (max-width:800px) { .live-grid { grid-template-columns:1fr; } .chat { height:460px; } .tb-links { gap:12px; } }
