:root{--gold:#c9a24a;--ink:#3b2a0b;--sub:#6b5a3a;--bg:#fbf6ea;--card:#fffdf7;--line:#ecdcb4;--blue:#3274D0;--purple:#7c3aed}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"PingFang TC","Noto Sans TC",sans-serif;font-size:16px}
@media(max-width:720px){html{font-size:18px}}
@media(max-width:389px){html{font-size:17px}}
.bd-page{max-width:640px;margin:0 auto;padding:10px 12px 40px}
.bd-head{display:flex;justify-content:center;padding:8px 0}
.bd-brand{display:flex;align-items:center;gap:6px;text-decoration:none;color:#6b4a1c;font-weight:900;font-size:1.25rem;font-family:Georgia,serif}
.bd-brand i{color:var(--gold);font-style:normal}
.bd-row2{display:flex;justify-content:space-between;gap:8px;margin:4px 0 10px}
.bd-row2 a{white-space:nowrap;text-decoration:none;font-weight:800;font-size:.85rem;padding:6px 12px;border-radius:999px;background:#f4e8cc;color:#6b4a1c}
.bd-title{margin:4px 0 2px;font-size:1.45rem;font-weight:900;color:#1f3a5f;line-height:1.25;text-wrap-style:pretty}
.bd-sub{margin:0 0 12px;color:var(--sub);font-size:.85rem}
.bd-tabs{display:flex;gap:6px;margin:0 0 12px}
.bd-tab{flex:1;padding:7px 4px;border-radius:999px;border:1.5px solid #9db8e6;background:#fff;color:#245fb8;font-weight:800;font-size:.88rem;white-space:nowrap;cursor:pointer}
.bd-tab.is-on{background:#2f6fd0;border-color:#2f6fd0;color:#fff}
.bd-add{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:10px;margin-bottom:12px}
.bd-addrow{display:flex;gap:8px}
.bd-addrow input{flex:1;min-width:0;padding:11px 12px;border-radius:12px;border:1.5px solid var(--line);font:inherit;font-size:1rem;background:#fff;color:var(--ink)}
.bd-btn{flex:none;padding:0 16px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-weight:900;font-size:.95rem;white-space:nowrap;cursor:pointer}
.bd-btn:disabled{opacity:.5}
.bd-link{margin-top:8px;padding:4px 2px;border:0;background:none;color:var(--blue);font-weight:800;font-size:.85rem;white-space:nowrap;cursor:pointer}
.bd-wants{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.bd-wants:empty{display:none}
.bd-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#efe7fb;color:#4b2a8a;font-size:.82rem;font-weight:800;white-space:nowrap}
.bd-chip b{cursor:pointer;color:#8a6bc4;font-weight:900}
.bd-sugg{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.bd-sugg:empty{display:none}
.bd-sugg button{padding:5px 10px;border-radius:999px;border:1.5px solid #d9c9f3;background:#fff;color:#4b2a8a;font-weight:800;font-size:.82rem;white-space:nowrap;cursor:pointer}
.bd-list{display:flex;flex-direction:column;gap:8px}
.bd-item{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 10px 10px 12px}
.bd-rank{flex:none;width:1.6em;text-align:center;font-weight:900;color:var(--gold);font-size:1rem}
.bd-body{flex:1;min-width:0}
.bd-name{font-weight:900;font-size:1rem;line-height:1.35;overflow:hidden;white-space:normal;word-break:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;cursor:pointer}
.bd-name.is-open{display:block;-webkit-line-clamp:unset}
.bd-meta{font-size:.78rem;color:var(--sub);margin-top:2px;line-height:1.4}
.bd-meta a{color:var(--sub)}
.bd-want{color:#4b2a8a}
.bd-acts{display:flex;align-items:center;gap:4px;margin-top:6px;flex-wrap:wrap}
.bd-mini{padding:3px 9px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--sub);font-size:.75rem;font-weight:800;white-space:nowrap;cursor:pointer}
.bd-mini.done{border-color:#b9e3c3;color:#1e7a39}
.bd-plus{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:54px;padding:6px 8px;border-radius:12px;border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;line-height:1.1}
.bd-plus b{font-size:1.1rem;font-weight:900}
.bd-plus span{font-size:.68rem;font-weight:800;color:var(--sub);white-space:nowrap}
.bd-plus.on{background:#fff1e8;border-color:#ff9a6a}
.bd-plus.on span{color:#d4541c}
.bd-more3{flex:none;width:30px;height:30px;border:0;background:none;color:#a99a7a;font-size:1.2rem;cursor:pointer}
.bd-verified{display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;background:#2f9e44;color:#fff;font-size:.68rem;font-weight:800;vertical-align:2px;white-space:nowrap}
.bd-empty{text-align:center;color:var(--sub);padding:22px 10px;font-size:.9rem}
.bd-done{background:#effaf1;border:1px solid #bfe5c8;border-radius:14px;padding:9px 12px;margin-bottom:8px;font-size:.85rem;color:#1e5a2e}
.bd-done b{color:#14532d}
.bd-day{margin:14px 0 6px;font-weight:900;color:#6b4a1c;font-size:.9rem}
.bd-hist{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin-bottom:6px;font-size:.88rem;line-height:1.5}
.bd-more{display:block;margin:12px auto 0;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--sub);font-weight:800;white-space:nowrap}
.bd-rules{margin:18px 2px 0;font-size:.75rem;color:#9a8a6a;line-height:1.6;text-wrap-style:pretty}
.bd-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:rgba(30,25,15,.92);color:#fff;padding:10px 16px;border-radius:999px;font-size:.9rem;font-weight:700;z-index:50;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
.bd-modal{position:fixed;inset:0;z-index:40;background:rgba(20,16,8,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.bd-card{width:100%;max-width:340px;background:#fffaf0;border-radius:18px;padding:20px 18px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.bd-card h3{margin:0 0 8px;font-size:1.1rem;font-weight:900;text-align:center;white-space:nowrap}
.bd-card p{margin:0 0 12px;font-size:.9rem;color:var(--sub);line-height:1.6;text-align:center;text-wrap-style:pretty}
.bd-card .nw{white-space:nowrap}
.bd-card label{display:flex;align-items:center;gap:8px;padding:6px 2px;font-size:.92rem;white-space:nowrap}
.bd-card textarea{width:100%;min-height:60px;margin:6px 0 4px;padding:8px;border-radius:10px;border:1.5px solid var(--line);font:inherit;font-size:.9rem}
.bd-card small{display:block;color:#9a8a6a;font-size:.75rem;line-height:1.5;margin-bottom:10px}
.bd-card .bd-go{display:block;width:100%;padding:12px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-weight:900;font-size:1rem;white-space:nowrap;cursor:pointer}
.bd-card .bd-x{display:block;width:100%;margin-top:6px;padding:8px;border:0;background:none;color:#8a7a5a;font-size:.88rem;cursor:pointer}
/* 許願池最上方：直播／正在演奏／預告（10/27） */
.bd-now{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.bd-live{background:#1b1410;border-radius:16px;padding:10px;color:#fff}
.bd-live-h{font-weight:900;font-size:.95rem;margin-bottom:8px;white-space:nowrap}
.bd-live-tag{display:inline-block;background:#e02424;color:#fff;font-size:.72rem;font-weight:900;padding:2px 7px;border-radius:6px;margin-right:4px;letter-spacing:.04em}
.bd-live-tag i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#fff;margin-right:3px;vertical-align:1px;animation:bdBlink 1s infinite}
@keyframes bdBlink{50%{opacity:.2}}
.bd-yt{position:relative;width:100%;padding-bottom:56.25%;border-radius:10px;overflow:hidden;background:#000}
.bd-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.bd-viewers{margin-top:6px;font-size:.84rem;font-weight:800;color:#ffd76a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-viewers[hidden],.bd-live-off .bd-viewers{display:none}
.bd-live-src{font-size:.78rem;color:#d9cbb0;margin-top:6px;line-height:1.5}
.bd-live-src a{color:#ffd76a;white-space:nowrap}
.bd-live-pick{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.bd-live-pick button{padding:5px 10px;border-radius:999px;border:1.5px solid #6b5a3a;background:transparent;color:#eee;font-weight:800;font-size:.8rem;white-space:nowrap}
.bd-live-pick button.on{background:#e02424;border-color:#e02424}
.bd-playing{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;background:#fff6e0;border:1px solid #f0d9a0;border-radius:14px;padding:10px 12px;font-size:.92rem}
.bd-playing span{font-size:.78rem;color:var(--sub)}
.bd-ann{display:flex;gap:10px;background:#f3edfc;border:1px solid #dccff5;border-radius:14px;padding:10px 12px;font-size:.9rem;color:#3b1f6b;line-height:1.5}
.bd-mega{flex:none;width:30px;height:30px;border-radius:50%;background:#7c3aed;display:flex;align-items:center;justify-content:center;font-size:16px}
.bd-ann small{display:block;color:#7a6a9a;font-size:.72rem;margin-top:4px;text-wrap-style:pretty}
.bd-here{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--sub);white-space:nowrap}
.bd-here button{padding:5px 10px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-weight:800;font-size:.8rem;white-space:nowrap;cursor:pointer}
.bd-mins{display:flex;gap:8px;margin-bottom:6px}
.bd-mins button{flex:1;padding:12px 4px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-weight:900;white-space:nowrap}

/* 三區分開（10/27 Min）：直播（深色）／現場（暖黃）／許願池（淡紫） */
.bd-box{border-radius:18px;padding:12px;margin:0 0 14px}
.bd-box-h{font-weight:900;font-size:1.05rem;margin:0 0 8px;white-space:nowrap}
.bd-box-site{background:#fff1e2;border:2px solid #f59e5b}
.bd-box-site .bd-box-h{color:#b4530a}
.bd-box-wish{background:#eaf2fe;border:2px solid #7fa8e8}
.bd-box-wish .bd-box-h{color:#1f4f9e}
.bd-box-wish .bd-sub{margin:0 0 10px}
.bd-line{background:#fff;border-radius:12px;padding:9px 11px;margin:0 0 8px;font-size:.9rem;line-height:1.5}
.bd-line small{display:block;color:#8a7a5a;font-size:.74rem;margin-top:2px;text-wrap-style:pretty}
.bd-line-ann b{color:#5b21b6}
.bd-line-play{background:#fff1c9}
.bd-here p{margin:2px 0 8px;font-size:.82rem;color:#6b5a3a;line-height:1.55;text-wrap-style:pretty}
.bd-here .nw{white-space:nowrap}
.bd-here-btns{display:grid;grid-template-columns:1fr;gap:8px}
.bd-here-btns button{padding:10px 6px;border-radius:12px;border:0;background:#e8762b;color:#fff;font-weight:900;font-size:.92rem;white-space:nowrap;cursor:pointer}
.bd-here-btns button+button{background:#fff;color:#b4530a;border:2px solid #f2a46a}
.bd-box-site .bd-here{display:block;white-space:normal;color:inherit;font-size:inherit}

.bd-box-ann{background:#f1eafe;border:2px solid #7c3aed}
.bd-box-ann .bd-box-h{color:#5b21b6}
.bd-box-ann .bd-line b{color:#5b21b6}
.bd-ann-name{font-weight:800}
.bd-note{display:block;color:#7a6a9a;font-size:.74rem;margin-top:2px}
.bd-count{display:inline-block;margin:4px 0 0;padding:2px 9px;border-radius:999px;background:#e8762b;color:#fff;font-weight:900;font-size:.8rem;white-space:nowrap}
.bd-line-play{background:#fff}
.bd-mins{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* 表演者申請／預告表單（10/27） */
.bd-perf-link{display:block;width:100%;margin:0 0 10px;padding:9px 10px;border-radius:12px;border:2px dashed #b48be8;background:#faf6ff;color:#5b21b6;font-weight:900;font-size:.88rem;white-space:nowrap;cursor:pointer}
.bd-ben{margin:0 0 10px;padding:0 0 0 2px;list-style:none;font-size:.82rem;line-height:1.7;color:#4b3a2a}
.bd-ben li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-in{display:block;width:100%;margin:0 0 8px;padding:11px 12px;border-radius:12px;border:1.5px solid var(--line);font:inherit;font-size:.95rem;background:#fff}
.bd-f{display:flex!important;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px;font-size:.9rem;font-weight:800}
.bd-f input,.bd-f select{flex:0 0 58%;padding:9px 10px;border-radius:10px;border:1.5px solid var(--line);font:inherit;font-size:.92rem;background:#fff}
.bd-code{margin:4px 0 12px;text-align:center;font-family:ui-monospace,monospace;font-size:1.8rem;font-weight:900;letter-spacing:.08em;color:#5b21b6;background:#f1eafe;border-radius:12px;padding:10px}
.bd-card .bd-go2{display:block;text-align:center;text-decoration:none;margin-top:8px;background:#111}
.bd-card .bd-danger{color:#c0392b;font-weight:800}
.bd-acc{font-size:.76rem;color:#6b5a8a}

.bd-box-perf{background:#faf6ff;border:2px solid #b48be8}
.bd-box-perf .bd-box-h{color:#5b21b6}
.bd-box-perf .bd-sub{margin:0 0 10px}
.bd-box-perf .bd-perf-link{margin:0;border-style:solid;background:#7c3aed;color:#fff;border-color:#7c3aed}

.bd-here-btns button small{font-weight:700;font-size:.72rem;opacity:.85;margin-left:6px}
.bd-here-btns button[data-perf]{background:#f5efff;color:#6d28d9;border:2px solid #c4b5fd}

.bd-row2r{display:flex;gap:6px}
.nw{white-space:nowrap}
.bd-here-btns .bd-later{margin-top:12px}
.bd-hist-ev{background:#fff7e6;border-left:3px solid #e8a33a;padding-left:8px}
.bd-hist-ev b{color:#9a5b0b}
.bd-here-btns .bd-golive{background:#fde8e8;color:#b91c1c;border:2px solid #f8c4c4}
.bd-ol{margin:6px 0 10px 18px;padding:0;font-size:.85rem;line-height:1.7;color:#5b4a2a}
.bd-ol li{white-space:nowrap}
.bd-go-live{background:#9b3138!important}
.bd-warn{background:#fff4e5;border:1px solid #f6c89b;border-radius:10px;padding:8px 10px;color:#9a4a0b;font-weight:800;font-size:.88rem}

/* 直播結束自動收起＋結束按鈕（10/29） */
.bd-live .bd-offt{display:none}
.bd-live-off .bd-on{display:none}
.bd-live-off .bd-offt{display:inline;color:#d9cbb0}
.bd-live-off .bd-yt{padding-bottom:0;height:0}
.bd-yt #bdTw{position:absolute;inset:0}
.bd-yt #bdTw iframe{width:100%;height:100%;border:0}
.bd-endlive{display:block;width:100%;margin:10px 0 2px;padding:10px;border-radius:12px;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-weight:900;font-size:.95rem;white-space:nowrap;cursor:pointer}
/* 要開始表演了嗎：兩個選項分開、柔和底色（10/29） */
.bd-opts{display:flex;flex-direction:column;gap:12px;margin:2px 0 8px;padding:12px;border-radius:16px;background:#f5eee2}
.bd-opt{display:block;width:100%;padding:12px 10px;border-radius:12px;font:inherit;text-align:center;white-space:nowrap;cursor:pointer;box-shadow:0 1px 3px rgba(60,40,20,.12)}
.bd-opt b{display:block;font-size:1rem;font-weight:900}
.bd-card .bd-opt small{display:block;margin:3px 0 0;font-size:.76rem;color:inherit;opacity:.78}
.bd-opt-plain{background:#fff;border:1.5px solid #dccbab;color:#4a3826}
.bd-opt-live{background:#9b3138;border:1.5px solid #9b3138;color:#fff}
.bd-opt-live b i{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#ffb4b4;vertical-align:1px;animation:bdBlink 1.4s infinite}

.bd-row2r{align-items:center}
.bd-box-replay{background:#f7f1ff;border:2px solid #d9c6f2}
.bd-box-replay .bd-box-h{color:#5b3a8a}
.bd-rp-item{display:block;width:100%;text-align:left;border:1px solid #e3d6f5;background:#fff;border-radius:10px;padding:9px 12px;margin:6px 0 0;font:600 14px/1.3 inherit;font-family:inherit;color:#4a2f73;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-rp-video{position:relative;width:100%;padding-top:56.25%;background:#000;border-radius:10px;overflow:hidden;margin:4px 0 6px}
.bd-rp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
