/* Aula virtual MAT — grises neutros, un acento azul, Space Grotesk + Inter. */
:root {
    --bg: #eef2f8;
    --surface: #ffffff;
    --surface-2: #f5f8fc;
    --line: #e2e8f2;
    --line-strong: #cdd6e4;
    --text: #14213d;
    --text-2: #3d4b66;
    --muted: #6b7a94;
    --accent: #2563c9;
    --accent-hover: #1d4ea6;
    --accent-soft: #e6eefb;
    --grad: linear-gradient(140deg, #1d4ea6 0%, #2f6fd6 60%, #4a8ae8 100%);
    --ok: #15803d;
    --ok-soft: #e7f5ec;
    --warn: #a16207;
    --warn-soft: #fdf4e3;
    --danger: #c0262d;
    --danger-soft: #fdecec;
    --violet: #6d4fc8;
    --violet-soft: #f0ecfb;
    --teal: #0f7f81;
    --teal-soft: #e5f4f4;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 14px rgba(29, 78, 166, .07);
    --shadow-lg: 0 14px 34px rgba(29, 78, 166, .16);
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: "Plus Jakarta Sans", -apple-system, sans-serif;
    color-scheme: light;
}
[data-theme="oscuro"] {
    --grad: linear-gradient(140deg, #1a3d80 0%, #2456ad 60%, #3368c2 100%);
    --bg: #1d2127;
    --surface: #262b32;
    --surface-2: #2c3139;
    --line: #363c45;
    --line-strong: #454c56;
    --text: #e9ecef;
    --text-2: #c2c7cd;
    --muted: #949ba4;
    --accent: #5b92ea;
    --accent-hover: #7aa7ef;
    --accent-soft: #2a3a55;
    --ok: #4cc27a;
    --ok-soft: #233b2d;
    --warn: #e0b04f;
    --warn-soft: #3d3524;
    --danger: #f07178;
    --danger-soft: #45282b;
    --violet: #a48df0;
    --violet-soft: #352f4b;
    --teal: #4fc1c3;
    --teal-soft: #233c3d;
    --shadow: none;
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; letter-spacing: -.015em; margin: 0; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-weight: 700; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
.if-dark { display: none; }
[data-theme="oscuro"] .if-dark { display: inline; }
[data-theme="oscuro"] .if-light { display: none; }

/* ---------- Logo ---------- */
.logo {
    display: inline-grid; place-items: center; font-family: var(--font-title); font-weight: 700; letter-spacing: .04em;
    color: #fff; background: var(--accent); border-radius: 6px; padding: 0 7px; height: 24px; font-size: 12.5px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--font-title); font-weight: 600; font-size: 15px; }
.brand:hover { color: var(--text); }

/* ---------- Shell de dirección (menú lateral) ---------- */
body.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; }
.side .brand { padding: 4px 8px 18px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 6px; font-weight: 600; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.on { background: var(--accent-soft); color: var(--accent); }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-foot .me { display: flex; align-items: center; gap: 9px; min-width: 0; }
.side-foot .me div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-foot .me strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .me small { color: var(--muted); font-size: 11.5px; }
.side-actions { display: flex; gap: 2px; }
.side-actions form { margin: 0; }
.content { padding: 30px 36px 70px; max-width: 1180px; width: 100%; }

/* ---------- Barra superior del alumno ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.topbar nav { flex: 1; display: flex; gap: 6px; }
.topbar nav a { display: flex; align-items: center; gap: 7px; color: var(--text-2); padding: 6px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.topbar nav a.on { color: var(--accent); background: var(--accent-soft); }
.topbar .me { display: flex; align-items: center; gap: 10px; }
.topbar .me form { margin: 0; }
.me-name { font-weight: 500; color: var(--text-2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 30px 24px 70px; }

.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }

/* ---------- Cabecera de página ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin-top: 5px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.back:hover { color: var(--text); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
    padding: 8px 14px; border-radius: var(--radius-sm); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; gap: 5px; }
.btn.big { padding: 11px 22px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico { color: var(--line-strong); }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat .stat-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.stat strong { display: block; font-family: var(--font-title); font-size: 24px; line-height: 1.1; font-weight: 600; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.tint-blue { background: var(--accent-soft); color: var(--accent); }
.tint-violet { background: var(--violet-soft); color: var(--violet); }
.tint-teal { background: var(--teal-soft); color: var(--teal); }
.tint-ok { background: var(--ok-soft); color: var(--ok); }

/* Rejilla de cursos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.course-card:hover { color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.course-card .band { height: 6px; }
.course-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h3 { font-size: 15.5px; line-height: 1.35; }
.course-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-top: auto; }
.course-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.progress { height: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }

/* Etiquetas */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.err { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.blue { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lista de clases */
.lessons { display: flex; flex-direction: column; gap: 10px; }
.lesson { display: flex; align-items: center; gap: 16px; padding: 12px; }
.thumb { width: 150px; aspect-ratio: 16 / 9; border-radius: 7px; background: #1b1f24 center / cover no-repeat; position: relative; flex: none; overflow: hidden; }
.thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; background: rgba(0, 0, 0, .25); transition: opacity .15s; }
.lesson:hover .thumb .play { opacity: 1; }
.lesson .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lesson .info strong { font-weight: 600; font-size: 15px; }
.views { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dots i.used { background: var(--line-strong); }

/* Tablas */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table th { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.table tr[data-href] { cursor: pointer; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; margin: 0; }
.cell-main { display: flex; align-items: center; gap: 12px; }
.cell-main .thumb { width: 84px; border-radius: 5px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Formularios */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
input, select { font: inherit; color: var(--text); padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.compact { padding: 5px 9px; font-size: 13px; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .grow { flex: 1; min-width: 200px; }
.search { position: relative; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 34px; width: 260px; }

/* Pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 26px 0 18px; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; margin-bottom: -1px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .count { font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; color: var(--text-2); }

/* Zona de subida */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 30px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.drop strong { color: var(--text); font-weight: 600; }
.drop .file-name { color: var(--accent); font-weight: 500; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Avisos */
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 500; transition: opacity .4s, transform .4s; background: var(--surface); border: 1px solid var(--line); }
.toast.ok .ico { color: var(--ok); }
.toast.err .ico { color: var(--danger); }
.toast.hide { opacity: 0; transform: translateY(10px); pointer-events: none; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 500; }
.alert.info { background: var(--accent-soft); color: var(--accent); }

/* ---------- Login ---------- */
body.bare { min-height: 100vh; background: linear-gradient(135deg, #1e4fa8 0%, #2b6ad3 55%, #3d82e6 100%); display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: #fff; color: #1b1f24; border-radius: 14px; box-shadow: 0 24px 60px rgba(10, 30, 70, .35); padding: 34px 32px 30px; }
.login-card .logo { height: 30px; font-size: 15px; padding: 0 9px; }
.login-card h1 { font-size: 22px; margin: 16px 0 4px; }
.login-card .sub { color: #6b7280; margin-bottom: 22px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card label.field { color: #374151; }
.login-card input { background: #fff; color: #1b1f24; border-color: #d0d4d9; }
.login-card .alert { background: #fdecec; color: #c0262d; }
.login-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .8); }

/* ---------- Reproductor ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; user-select: none; box-shadow: var(--shadow-lg); }
.player video { width: 100%; height: 100%; display: block; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.wm { position: absolute; pointer-events: none; color: rgba(255, 255, 255, .5); text-shadow: 0 0 3px rgba(0, 0, 0, .7), 0 0 1px rgba(0, 0, 0, .9); font-size: 14px; white-space: nowrap; font-weight: 500; }
.wm.moving { transition: left 1.5s ease, top 1.5s ease; font-size: 16px; }
.wm.corner { right: 14px; top: 12px; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.wm .logo { background: rgba(255, 255, 255, .25); height: 18px; font-size: 10px; padding: 0 5px; }
.fs { position: absolute; right: 12px; bottom: 56px; background: rgba(0, 0, 0, .55); color: #fff; border: 0; border-radius: 6px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; }
.fs:hover { background: rgba(0, 0, 0, .8); }
.player-error { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .75); }
.side-info { display: flex; flex-direction: column; gap: 14px; }
.side-info .card { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 600; }
.start { max-width: 560px; margin: 10px auto 0; text-align: center; padding: 34px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.start .big-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.start .thumb { width: 100%; max-width: 420px; border-radius: 9px; margin-bottom: 6px; }

@media (max-width: 900px) {
    body.shell { grid-template-columns: 1fr; }
    .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
    .side .brand { padding: 0; }
    .side nav { flex-direction: row; flex-wrap: wrap; }
    .nav-label { display: none; }
    .side-foot { border: 0; padding: 0; }
    .side-foot .me div { display: none; }
    .content { padding: 22px 16px 60px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .watch { grid-template-columns: 1fr; }
    .me-name { display: none; }
    .lesson .thumb { width: 110px; }
}


/* =================== Estilo A · Azul MAT (móvil primero) =================== */
.card { border-color: var(--line); }
.hero {
    background: var(--grad); color: #fff; border-radius: 24px; padding: 26px 26px 22px; margin-bottom: 22px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero h1 { color: #fff; font-size: 26px; }
.hero p, .hero .eyebrow { color: rgba(255,255,255,.85); }
.hero .eyebrow { font-size: 11.5px; }
.hero .back { color: rgba(255,255,255,.85); }
.hero .back:hover { color: #fff; }
.hero .progress { background: rgba(255,255,255,.22); border: 0; height: 8px; margin-top: 14px; }
.hero .progress i { background: #fff; }
.hero .hero-meta { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.9); }
.lesson { padding: 12px; border: 0; }
.course-card { border: 0; }
.course-card .band { height: 8px; }
.btn { border-radius: 10px; font-weight: 600; }
.tag { border-radius: 8px; }

/* Barra inferior (solo móvil) */
.tabbar { display: none; }

@media (max-width: 760px) {
    body { font-size: 15px; }
    h1 { font-size: 23px; }
    .wrap, .content { padding: 16px 14px 96px; }
    .topbar .me-name, .topbar nav { display: none; }
    .topbar-in { padding: 10px 14px; gap: 12px; justify-content: space-between; }
    .topbar .me form { display: none; }

    /* Shell de dirección: menú lateral -> barra superior simple + barra inferior */
    body.shell { display: block; }
    .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .side nav, .side .nav-label { display: none; }
    .side .brand { padding: 0; }
    .side-foot { border: 0; padding: 0; }
    .side-foot .me div { display: none; }

    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
        background: var(--surface); border-top: 1px solid var(--line);
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        justify-content: space-around; box-shadow: 0 -6px 20px rgba(29,78,166,.06);
    }
    .tabbar a, .tabbar button {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer;
    }
    .tabbar a.on { color: var(--accent); }
    .tabbar form { flex: 1; display: flex; margin: 0; }

    .hero { border-radius: 0 0 26px 26px; margin: -16px -14px 18px; padding: 22px 18px 20px; }
    .page-head { margin-bottom: 14px; }
    .page-head .form-row { width: 100%; }
    .page-head .form-row .btn { flex: 1; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 12px; gap: 10px; }
    .stat .stat-ico { width: 34px; height: 34px; }
    .stat strong { font-size: 20px; }

    .lesson { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
    .lesson .thumb { width: 100%; border-radius: 12px; }
    .lesson .thumb .play { opacity: 1; background: transparent; }
    .lesson .thumb .play .ico { background: rgba(255,255,255,.92); color: var(--accent); border-radius: 50%; padding: 12px; width: 48px; height: 48px; }
    .lesson .info { padding: 0 4px; }
    .lesson > .btn { width: 100%; padding: 11px; }

    .card:has(> .table) { overflow-x: auto; }
    .table { min-width: 560px; }
    .form-row { flex-direction: column; align-items: stretch; }
    .form-row .grow { min-width: 0; }
    .search input { width: 100%; }
    .search { width: 100%; }
    .tabs { overflow-x: auto; white-space: nowrap; margin: 16px 0 14px; }
    .watch { grid-template-columns: 1fr; gap: 14px; }
    .player { border-radius: 12px; margin: 0 -14px; border-radius: 0; }
    .start { padding: 24px 16px; }
    .toast { left: 14px; right: 14px; bottom: 84px; }
    .login-card { padding: 28px 22px; }
}
h1, h2, h3, .lesson .info strong { overflow-wrap: anywhere; }
