[hidden]{ display:none !important }
:root{ --bg:#0f0f12; --panel:#18181d; --panel2:#22222a; --ink:#f2f2f5; --muted:#9a9aa6; --brand:#e0457b; --ok:#2ecc71; --radius:12px }
*{ box-sizing:border-box }
body{ margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif }
a{ color:inherit }
.muted{ color:var(--muted) } .center{ text-align:center; padding:60px 16px }
.bar{ position:sticky; top:0; z-index:5; display:flex; justify-content:space-between; align-items:center; padding:14px 20px; background:rgba(15,15,18,.92); backdrop-filter:blur(8px); border-bottom:1px solid #26262e }
.brand{ font-weight:800; text-decoration:none; font-size:18px }
.bar nav{ display:flex; gap:18px; align-items:center; font-size:14px }
.bar nav a{ text-decoration:none; color:var(--muted) } .bar nav a:hover{ color:var(--ink) }
.link{ background:none; border:0; color:var(--muted); cursor:pointer; font-size:14px; padding:0 }
main{ max-width:1180px; margin:0 auto; padding:24px 16px 60px }
h1{ font-size:26px; margin:8px 0 18px } h2{ font-size:19px; margin:28px 0 12px }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px }
.course{ position:relative; background:var(--panel); border-radius:var(--radius); overflow:hidden; text-decoration:none; display:block; transition:transform .15s }
.course:hover{ transform:translateY(-3px) }
.cover{ aspect-ratio:3/4; background:linear-gradient(135deg,#3a1d2b,#1d1d2b) center/cover no-repeat; display:flex; align-items:flex-end; padding:14px; font-weight:700; font-size:18px }
.course .meta{ padding:12px 14px; font-size:13px; color:var(--muted) }
.course.locked .cover{ filter:grayscale(.7) brightness(.55) }
.lock{ position:absolute; top:12px; right:12px; background:rgba(0,0,0,.65); border-radius:20px; padding:4px 10px; font-size:13px }
.pbar{ height:4px; background:#2c2c35; border-radius:4px; margin-top:8px; overflow:hidden } .pbar i{ display:block; height:100%; background:var(--brand) }
.module{ background:var(--panel); border-radius:var(--radius); margin-bottom:14px; overflow:hidden }
.module > summary{ list-style:none; cursor:pointer; padding:16px 18px; font-weight:700; display:flex; justify-content:space-between; gap:10px }
.module > summary::-webkit-details-marker{ display:none }
.lessons{ list-style:none; margin:0; padding:0 }
.lessons li a,.lessons li span{ display:flex; justify-content:space-between; gap:12px; padding:12px 18px; border-top:1px solid #26262e; text-decoration:none; font-size:15px }
.lessons li a:hover{ background:var(--panel2) }
.lessons .off{ color:var(--muted) }
.tag{ font-size:12px; color:var(--muted); white-space:nowrap } .done{ color:var(--ok) }
.player{ position:relative; padding-top:56.25%; background:#000; border-radius:var(--radius); overflow:hidden }
.player iframe{ position:absolute; inset:0; width:100%; height:100%; border:0 }
.noplayer{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--muted) }
.lesson-actions{ display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 }
.btn{ background:var(--brand); color:#fff; border:0; border-radius:10px; padding:12px 18px; font-weight:700; cursor:pointer; text-decoration:none; font-size:15px; display:inline-block }
.btn.ghost{ background:var(--panel2); color:var(--ink) } .btn.okb{ background:var(--ok); color:#06210f }
.btn:disabled{ opacity:.6 }
.materials{ background:var(--panel); border-radius:var(--radius); padding:6px 0; margin-top:18px }
.materials a{ display:flex; gap:10px; padding:12px 18px; text-decoration:none } .materials a:hover{ background:var(--panel2) }
.crumb{ font-size:13px; color:var(--muted); text-decoration:none }
.box{ max-width:420px; margin:8vh auto 0; background:var(--panel); border-radius:16px; padding:28px }
.box h1{ margin-top:0 }
label{ display:block; font-size:13px; color:var(--muted); margin:12px 0 } input{ width:100%; margin-top:4px; padding:12px; border-radius:8px; border:1px solid #33333d; background:#101014; color:var(--ink); font-size:16px }
.full{ width:100% } .msg{ padding:12px; border-radius:8px; background:var(--panel2); font-size:14px; margin-top:14px }
.msg.err{ background:#3a1515; color:#ffb3b3 }
table{ width:100%; border-collapse:collapse; font-size:14px } td,th{ text-align:left; padding:10px 8px; border-bottom:1px solid #26262e } th{ color:var(--muted); font-weight:600 }
.card{ background:var(--panel); border-radius:var(--radius); padding:18px; margin-bottom:16px; overflow-x:auto }
