/* v420 · 🎬 Watch & Learn (src/js/396-watch-learn.js) — admin only for now */
#watchRoot .wl{ --wl-ink:#0f172a; --wl-mute:#475569; --wl-line:#e2e8f0; --wl-card:#fff; --wl-acc:#0F766E; --wl-acc-bg:#ecfdf5; max-width:1280px; margin:0 auto; }
body.dark-mode #watchRoot .wl{ --wl-ink:#e5f2ee; --wl-mute:#9fb5ae; --wl-line:#2b3d38; --wl-card:#14211e; --wl-acc:#3ddc9a; --wl-acc-bg:#11302a; }
#watchRoot .wl-hint{ color:var(--wl-mute); font-size:13px; }
#watchRoot .wl-h{ font-size:16px; margin:18px 0 8px; color:var(--wl-ink); }
#watchRoot .wl-h small{ color:var(--wl-mute); font-weight:600; }
#watchRoot .wl-btn{ display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:8px 12px; border-radius:12px; border:1px solid var(--wl-line); background:var(--wl-card); color:var(--wl-ink); font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
#watchRoot .wl-btn.sm{ min-height:34px; padding:5px 10px; font-size:13px; }
#watchRoot .wl-btn.primary{ background:var(--wl-acc); border-color:var(--wl-acc); color:#fff; }
body.dark-mode #watchRoot .wl-btn.primary{ color:#062b22; }
#watchRoot .wl-btn.ghost{ border-color:transparent; background:transparent; }
#watchRoot .wl-btn.on{ background:var(--wl-acc-bg); border-color:var(--wl-acc); color:var(--wl-acc); }
#watchRoot .wl-btn:disabled{ opacity:.5; cursor:default; }
#watchRoot .wl-btn.rec{ background:#be123c; border-color:#be123c; color:#fff; }
#watchRoot .wl-add{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:8px 0; }
#watchRoot .wl-grid{ display:grid; gap:10px; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); }
#watchRoot .wl-card{ display:flex; align-items:stretch; border:1px solid var(--wl-line); border-radius:14px; background:var(--wl-card); overflow:hidden; }
#watchRoot .wl-card-main{ flex:1; min-width:0; text-align:left; padding:12px 14px; background:none; border:0; color:var(--wl-ink); font:inherit; cursor:pointer; display:flex; flex-direction:column; gap:4px; }
#watchRoot .wl-card-main b{ font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#watchRoot .wl-card-meta{ font-size:12.5px; color:var(--wl-mute); }
#watchRoot .wl-bar{ display:block; height:5px; border-radius:3px; background:var(--wl-line); overflow:hidden; margin-top:4px; }
#watchRoot .wl-bar i{ display:block; height:100%; background:var(--wl-acc); }
#watchRoot .wl-x{ border:0; border-left:1px solid var(--wl-line); background:none; padding:0 14px; cursor:pointer; font-size:16px; }
#watchRoot .wl-empty{ padding:24px; text-align:center; color:var(--wl-mute); border:1px dashed var(--wl-line); border-radius:14px; }
#watchRoot .wl-howto{ margin-top:18px; border:1px solid var(--wl-line); border-radius:14px; padding:10px 14px; background:var(--wl-card); color:var(--wl-ink); }
#watchRoot .wl-howto summary{ cursor:pointer; font-weight:700; }
#watchRoot .wl-howto ol{ padding-left:20px; line-height:1.55; font-size:14px; }

/* player */
#watchRoot .wl-top{ display:flex; align-items:center; gap:6px; margin-bottom:8px; }
#watchRoot .wl-title{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; color:var(--wl-ink); }
#watchRoot .wl-cols{ display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:1024px){ #watchRoot .wl-cols{ grid-template-columns:minmax(0, 1fr) 360px; align-items:start; } #watchRoot .wl-side{ position:sticky; top:12px; } }
#watchRoot .wl-stage{ position:relative; background:#000; border-radius:14px; overflow:hidden; }
#watchRoot .wl-video{ display:block; width:100%; max-height:62vh; background:#000; }
#watchRoot .wl-cap, #watchRoot .wl-fs-x{ display:none; }
#watchRoot .wl-stage:fullscreen{ display:flex; align-items:center; justify-content:center; border-radius:0; }
#watchRoot .wl-stage:fullscreen .wl-video{ max-height:100vh; height:100vh; }
#watchRoot .wl-stage:fullscreen .wl-cap{ display:block; position:absolute; left:5%; right:5%; bottom:9%; text-align:center; color:#fff; font-size:clamp(20px, 3.2vw, 40px); font-weight:700; text-shadow:0 2px 6px #000, 0 0 2px #000; pointer-events:none; }
#watchRoot .wl-stage:fullscreen .wl-cap .en{ font-size:.66em; font-weight:500; color:#fde68a; margin-top:4px; }
#watchRoot .wl-stage:fullscreen .wl-cap.gap{ opacity:0; }
#watchRoot .wl-stage:fullscreen .wl-fs-x{ display:block; position:absolute; top:12px; right:12px; z-index:2; background:rgba(0,0,0,.55); color:#fff; border:0; border-radius:20px; width:40px; height:40px; font-size:18px; cursor:pointer; }
#watchRoot .wl-err{ margin-top:8px; padding:10px 12px; border-radius:12px; background:#fff1f2; color:#9f1239; font-size:14px; }
#watchRoot .wl-ctl{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; align-items:center; }
#watchRoot .wl-sel{ display:inline-flex; align-items:center; gap:4px; font-size:14px; color:var(--wl-ink); }
#watchRoot .wl-sel select{ min-height:40px; border-radius:12px; border:1px solid var(--wl-line); background:var(--wl-card); color:var(--wl-ink); padding:0 8px; font:inherit; font-size:14px; }
#watchRoot .wl-line{ background:var(--wl-card); border:1px solid var(--wl-line); border-radius:16px; padding:14px 16px; min-height:64px; }
#watchRoot .wl-line.gap{ opacity:.6; }
#watchRoot .wl-vi{ font-size:clamp(20px, 2.4vw, 27px); line-height:1.5; color:var(--wl-ink); font-weight:600; }
#watchRoot .wl-w{ font:inherit; color:inherit; background:none; border:0; padding:0 1px; border-bottom:2px dotted rgba(15,118,110,.35); cursor:pointer; border-radius:4px; }
#watchRoot .wl-w:hover, #watchRoot .wl-w:focus-visible{ background:var(--wl-acc-bg); }
#watchRoot .wl-w.on{ background:var(--wl-acc); color:#fff; border-bottom-color:transparent; }
#watchRoot .wl-en{ margin-top:6px; font-size:16px; color:var(--wl-mute); }
#watchRoot .wl-reveal{ font:inherit; font-size:15px; background:var(--wl-acc-bg); color:var(--wl-acc); border:1px dashed var(--wl-acc); border-radius:10px; padding:6px 12px; cursor:pointer; }
#watchRoot .wl-acts{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; align-items:center; }
#watchRoot .wl-ts{ font-size:12px; color:var(--wl-mute); font-variant-numeric:tabular-nums; }
#watchRoot .wl-wordbox, #watchRoot .wl-shadow, #watchRoot .wl-quiz{ margin-top:10px; background:var(--wl-card); border:1px solid var(--wl-acc); border-radius:16px; padding:12px 14px; color:var(--wl-ink); }
#watchRoot [hidden]{ display:none !important; }
#watchRoot .wl-wb-h, #watchRoot .wl-sh-h{ display:flex; align-items:center; gap:8px; font-weight:700; }
#watchRoot .wl-wb-h b{ font-size:22px; }
#watchRoot .wl-wb-x{ margin-left:auto; border:0; background:none; font-size:18px; cursor:pointer; color:var(--wl-mute); min-width:36px; min-height:36px; }
#watchRoot .wl-wb-m{ font-size:16px; margin:6px 0; }
#watchRoot .wl-wb-n{ font-size:13.5px; color:var(--wl-mute); margin-bottom:6px; }
#watchRoot .wl-wb-in{ font-size:14px; color:var(--wl-mute); padding:8px 10px; background:var(--wl-acc-bg); border-radius:10px; }
#watchRoot .wl-wb-in span[lang]{ color:var(--wl-ink); }
#watchRoot .wl-wb-a, #watchRoot .wl-sh-a{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
#watchRoot .wl-sh-line{ font-size:20px; font-weight:600; margin:6px 0; }
#watchRoot .wl-q-ask{ font-size:20px; font-weight:600; margin:8px 0 4px; }
#watchRoot .wl-q-opts{ display:grid; gap:6px; margin:10px 0; }
#watchRoot .wl-q-o{ text-align:left; padding:10px 12px; border-radius:12px; border:1px solid var(--wl-line); background:var(--wl-card); color:var(--wl-ink); font:inherit; font-size:16px; cursor:pointer; min-height:44px; }
#watchRoot .wl-q-o.ok{ border-color:var(--ok, #10b981); background:var(--ok-bg, #ecfdf5); color:var(--ok-ink, #0b6b62); font-weight:700; }
#watchRoot .wl-q-o.bad{ border-color:#e11d48; background:#fff1f2; color:var(--bad-ink, #9f1239); }
#watchRoot .wl-q-fb{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
#watchRoot .wl-q-score{ font-size:30px; font-weight:800; margin:8px 0; }
#watchRoot .wl-side{ display:flex; flex-direction:column; gap:10px; }
#watchRoot .wl-subs, #watchRoot .wl-sync, #watchRoot .wl-side-acts, #watchRoot .wl-tr{ background:var(--wl-card); border:1px solid var(--wl-line); border-radius:14px; padding:10px 12px; color:var(--wl-ink); display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:14px; }
#watchRoot .wl-sync-btns{ display:flex; flex-wrap:wrap; gap:4px; }
#watchRoot .wl-tr{ display:block; }
#watchRoot .wl-tr summary{ cursor:pointer; font-weight:700; }
#watchRoot .wl-tr small, #watchRoot .wl-side-acts small{ color:var(--wl-mute); }
#watchRoot .wl-find{ width:100%; margin:8px 0; min-height:38px; border-radius:10px; border:1px solid var(--wl-line); padding:0 10px; font:inherit; background:var(--wl-card); color:var(--wl-ink); box-sizing:border-box; }
#watchRoot .wl-list{ list-style:none; margin:0; padding:0; max-height:46vh; overflow:auto; position:relative; }
#watchRoot .wl-li{ display:flex; gap:8px; width:100%; text-align:left; border:0; background:none; padding:7px 6px; border-radius:10px; font:inherit; font-size:14.5px; color:var(--wl-ink); cursor:pointer; }
#watchRoot .wl-li small{ display:block; color:var(--wl-mute); font-size:12.5px; }
#watchRoot .wl-li:hover{ background:var(--wl-acc-bg); }
#watchRoot .wl-li.cur{ background:var(--wl-acc-bg); box-shadow:inset 3px 0 0 var(--wl-acc); }
#watchRoot .wl-li .wl-ts{ flex:0 0 auto; padding-top:2px; }
#watchRoot .wl-keys{ font-size:12px; color:var(--wl-mute); margin-top:10px; }
@media (hover:none), (pointer:coarse){ #watchRoot .wl-keys{ display:none; } }
@media (max-width:1023px){ #watchRoot .wl-list{ max-height:40vh; } #watchRoot .wl-video{ max-height:42vh; } }
