:root {
  --bg: #0f1e3b; --card: #14264a; --line: #1d3158;
  --ink: #f2efe6; --soft: #a9b4cc; --gold: #d9b978; --gold-deep: #a67c27; --cream: #fff6d9;
  --display: 'Playfair Display', Georgia, serif; --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 128px 14px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__mark { font-family: var(--display); font-size: 26px; color: var(--gold); letter-spacing: 2px; }
.brand__sub { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft); }
.who { font-size: 13px; color: var(--soft); }
.view { padding: 16px 16px 90px; max-width: 760px; margin: 0 auto; }
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0 0 8px; }
h1 { font-size: 26px; } h2 { font-size: 20px; }
.muted { color: var(--soft); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; display: block; }
.card.locked { opacity: .55; }
.row { display: flex; gap: 12px; align-items: center; }
.num { font-family: var(--display); font-size: 22px; color: var(--gold); min-width: 34px; }
.grow { flex: 1; min-width: 0; }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); }
.btn { display: inline-block; border: 1px solid var(--gold); color: var(--gold); background: transparent; padding: 11px 18px; border-radius: 12px; font: 600 14px var(--body); cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--gold); color: var(--bg); }
.btn:active { background: var(--gold-deep); color: var(--ink); }
.lesson { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; cursor: pointer; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--soft); flex: none; display: grid; place-items: center; font-size: 12px; }
.dot.started { border-color: var(--gold); background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }
.dot.watched { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wm { position: absolute; z-index: 2; pointer-events: none; color: rgba(255,255,255,.22); font-size: 13px; white-space: nowrap; text-shadow: 0 0 2px rgba(0,0,0,.5); transition: all 6s linear; }
.noplayer { display: grid; place-items: center; height: 100%; color: var(--soft); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; text-align: center; padding: 14px 4px; color: var(--soft); font-size: 13px; }
.tabs a.on { color: var(--gold); }
input[type=text], select { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 15px var(--body); margin-bottom: 10px; }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; z-index: 5; }
.sheet > div { background: var(--card); width: 100%; padding: 20px 16px 28px; border-radius: 16px 16px 0 0; }
.tag { display: inline-block; background: var(--line); border-radius: 8px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 12px; }
.tag button { background: none; border: 0; color: var(--gold); cursor: pointer; }
.legal { margin-top: 18px; font-size: 12px; color: var(--soft); }
