/* My Videos page. Built on the shared workspace shell (learning-center.css + notebook.css): this file only adds the
 * pieces that page has and the others don't (lesson rows with a tag, the video list, the player). Same tokens, same
 * text-plus-arrow buttons (.gm-run-button), no new colours. */

/* ---------- control panel ---------- */
.vl-page .vl-lesson-list { display: grid; gap: 10px; }
.vl-page .vl-lesson { align-items: flex-start; }
.vl-page .vl-lesson-text { display: grid; gap: 4px; min-width: 0; flex: 1 1 200px; }
.vl-page .vl-lesson-objective { font-size: 0.8rem; line-height: 1.45; color: var(--gm-ink-2); }
.vl-page .vl-tag {
    justify-self: start;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gm-gold-ink);
}
.vl-page .vl-tag--mine { color: var(--gm-success); }
.vl-page .vl-go { min-height: 36px; }
.vl-page .vl-go:disabled { color: var(--gm-muted); cursor: not-allowed; }
.vl-page .lc-block > .vl-go { justify-self: start; }
.vl-page .vl-question {
    width: 100%;
    box-sizing: border-box;
    min-height: 104px;
    padding: 12px 14px;
    border: 1.5px solid var(--gm-paper-ink);
    border-radius: 8px;
    background: var(--gm-surface);
    color: var(--gm-ink);
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: vertical;
}
.vl-page .lc-form { display: grid; gap: 14px; }

/* ---------- reading sheet ---------- */
.vl-page .vl-display { display: grid; align-content: start; gap: 28px; }
.vl-page .vl-display > * { width: 100%; max-width: 860px; margin-inline: auto; box-sizing: border-box; }
.vl-page .vl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; }
.vl-page .vl-head > div { min-width: 0; flex: 1 1 320px; }
.vl-page .vl-title {
    margin: 0 0 6px;
    font-family: var(--gm-display);
    font-weight: 600;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.1;
    color: var(--gm-ink);
    text-wrap: balance;
}
.vl-page .vl-lede { margin: 0; max-width: 60ch; font-size: 0.96rem; line-height: 1.55; color: var(--gm-ink-2); }
.vl-page .vl-filter { display: grid; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm-gold-ink); }
.vl-page .vl-filter .gm-select { min-width: 220px; text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 500; }

.vl-page .vl-loading p,
.vl-page .vl-error p { margin: 0; font-size: 0.96rem; color: var(--gm-ink-2); }
.vl-page .vl-error { display: grid; gap: 10px; justify-items: start; }
.vl-page .lc-empty { margin-block: clamp(24px, 8vh, 90px); }

/* The sheet's offset shadow hangs 6px below each list, so groups need clear air between them. */
.vl-page .vl-groups { display: grid; gap: 44px; }
.vl-page .vl-making,
.vl-page .vl-group { display: grid; gap: 16px; }
.vl-page .vl-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.vl-page .vl-section-title {
    margin: 0;
    font-family: var(--gm-display);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--gm-ink);
    text-wrap: balance;
}
.vl-page .vl-section-note { margin: -6px 0 0; font-size: 0.84rem; color: var(--gm-ink-2); }

.vl-page .vl-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--gm-paper-fill);
    border: 1.5px solid var(--gm-paper-ink);
    border-radius: 12px;
    box-shadow: var(--book-sheet);
}
.vl-page .vl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 14px 18px;
}
.vl-page .vl-row + .vl-row { border-top: 1px solid var(--book-rule); }
.vl-page .vl-row-text { display: grid; gap: 3px; min-width: 0; flex: 1 1 260px; }
.vl-page .vl-row-title { font-weight: 650; font-size: 0.98rem; line-height: 1.35; color: var(--gm-ink); }
.vl-page .vl-row-question { font-size: 0.88rem; line-height: 1.45; color: var(--gm-ink-2); font-style: italic; }
.vl-page .vl-row-meta { font-size: 0.8rem; color: var(--gm-muted); }
.vl-page .vl-row-note { font-size: 0.84rem; line-height: 1.45; color: var(--gm-ink-2); }
.vl-page .vl-row--failed .vl-row-note { color: var(--gm-danger); }
.vl-page .vl-row-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.vl-page .vl-spinner {
    width: 16px;
    height: 16px;
    flex: none;
    border: 2px solid var(--gm-gold-soft);
    border-top-color: var(--gm-gold-ink);
    border-radius: 50%;
    animation: vl-spin 0.9s linear infinite;
}
@keyframes vl-spin { to { transform: rotate(360deg); } }

.vl-page .vl-text-button {
    min-height: 36px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--gm-ink-2);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gm-line-strong);
    text-underline-offset: 3px;
    cursor: pointer;
}
.vl-page .vl-text-button:hover { color: var(--gm-ink); text-decoration-color: currentColor; }

/* ---------- player ---------- */
.vl-page .vl-player { max-width: 860px; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 20px; scroll-margin-top: 16px; margin-bottom: 16px; }
.vl-page .vl-player .lc-result-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin: 0; padding-bottom: 18px; }
.vl-page .vl-player .lc-result-meta { min-width: 0; flex: 1 1 300px; }
.vl-page .vl-player-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.vl-page .vl-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1.5px solid var(--gm-paper-ink);
    border-radius: 10px;
    background: var(--gm-usage-navy);
}
.vl-page .vl-video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--gm-usage-navy); }
.vl-page .vl-player-note { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--gm-ink-2); }
.vl-page .vl-transcript summary { cursor: pointer; font-weight: 650; font-size: 0.92rem; color: var(--gm-ink); }
.vl-page .vl-transcript ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 0.92rem; line-height: 1.55; color: var(--gm-ink-2); max-width: 70ch; }
.vl-page .vl-report { display: grid; gap: 10px; justify-items: start; }
.vl-page .vl-report-form { display: grid; gap: 10px; width: 100%; max-width: 520px; }
.vl-page .vl-report-form label { display: grid; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm-gold-ink); }
.vl-page .vl-report-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gm-paper-ink);
    border-radius: 8px;
    background: var(--gm-surface);
    color: var(--gm-ink);
    font: inherit;
    font-size: 0.92rem;
    text-transform: none;
    letter-spacing: 0;
    resize: vertical;
}
.vl-page .vl-report-actions { display: flex; align-items: center; gap: 18px; }

@media (max-width: 720px) {
    .vl-page .vl-row { padding: 12px 14px; }
    .vl-page .vl-filter .gm-select { min-width: 0; width: 100%; }
    .vl-page .vl-filter { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .vl-page .vl-spinner { animation: none; }
}
