/* Branike LMS — Frontend */

/* ── Kurz detail ─────────────────────────────────────────────────────────── */
.blms-course-wrap { max-width: 100%; }

.blms-curriculum { margin: 2rem 0; }
.blms-curriculum__title { font-size: 1.25rem; margin-bottom: 1rem; }

.blms-section { border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 1rem; overflow: hidden; }

.blms-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: .75rem 1rem;
    font-weight: 600;
}

.blms-section__count { font-size: .85rem; color: #666; font-weight: 400; }

.blms-lesson-list { list-style: none; margin: 0; padding: 0; }

.blms-lesson-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: .95rem;
    transition: background .15s;
}
.blms-lesson-item:hover { background: #fafafa; }
.blms-lesson-item.is-done { color: #888; }
.blms-lesson-item.is-done .blms-lesson-title { text-decoration: line-through; }

.blms-lesson-link { display: flex; align-items: center; gap: .5rem; flex: 1; color: inherit; text-decoration: none; }
.blms-lesson-link:hover { color: #1d6038; }
.blms-lesson-link--locked { cursor: default; color: #999; }

.blms-lesson-icon { width: 20px; height: 20px; flex-shrink: 0; }
.blms-lesson-icon--video::before { content: '▶'; font-size: 12px; }
.blms-lesson-icon--audio::before { content: '🎵'; font-size: 12px; }
.blms-lesson-icon--text::before  { content: '📄'; font-size: 12px; }

.blms-lesson-dur  { margin-left: auto; font-size: .8rem; color: #888; }
.blms-lesson-done { color: #2e7d32; font-weight: 600; }
.blms-lesson-lock { color: #bbb; }

/* ── YouTube postMessage player ──────────────────────────────────────────── */
.blms-yt {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
    user-select: none;
}

/*
 * KĽÚČ: Rovnaký princíp ako branike-blocks/blocks/video/style.css (overený, 100% funkčný).
 *
 * YouTube pri iframe VYŠŠOM ako 16:9 automaticky pridá čierne pásy (letterbox) hore a dole.
 * Tieto pásy majú presne 55px a obsahujú YouTube UI (channel name, logo).
 * overflow:hidden na .blms-yt orezáva presne tieto pásy → YouTube UI zmizne.
 * Video obsah zostáva 100% viditeľný — šírka je 100% (žiadne horizontálne orezanie).
 */
.blms-yt__iframe {
    position: absolute;
    top: -55px;                      /* vysunie iframe 55px hore → horný čierny pás mimo */
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100% + 110px);     /* +110px → YT pridá 55px pásy hore aj dole */
    border: 0;
    pointer-events: none;
}

/* Transparentná vrstva — zachytí kliknutia (play/pause) */
.blms-yt__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* Controls — skryté, zobrazia sa pri hover alebo pohybe myši */
.blms-yt__controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
/* Zobraziť controls: hover ALEBO JS trieda ctrl-visible */
.blms-yt:hover      .blms-yt__controls,
.blms-yt.ctrl-visible .blms-yt__controls {
    opacity: 1;
    pointer-events: auto;
}

/* Tlačidlá */
.blms-yt__btn {
    background: none; border: none; padding: 4px;
    color: #fff; cursor: pointer; line-height: 0;
    flex-shrink: 0; border-radius: 4px;
    transition: color .15s, background .15s;
}
.blms-yt__btn svg        { width: 22px; height: 22px; display: block; }
.blms-yt__btn:hover      { color: #1d9958; }
.blms-yt__btn--fs svg    { width: 18px; height: 18px; }

/* Progress track */
.blms-yt__prog-wrap  { flex: 1; }
.blms-yt__prog-track {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    cursor: pointer;
    transition: height .1s;
}
.blms-yt__prog-track:hover { height: 6px; }

.blms-yt__prog-fill {
    height: 100%;
    background: #1d9958;
    border-radius: 2px;
    pointer-events: none;
    transition: width .15s linear;
    max-width: 100%;
}
.blms-yt__prog-track:hover .blms-yt__prog-fill { background: #25c46e; }

.blms-yt__seek {
    position: absolute;
    inset: -8px 0;           /* väčšia klikateľná plocha */
    width: 100%;
    height: calc(100% + 16px);
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

/* Čas */
.blms-yt__time {
    color: rgba(255,255,255,.9);
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Hlasitosť */
.blms-yt__vol {
    width: 64px;
    height: 3px;
    accent-color: #1d9958;
    cursor: pointer;
    flex-shrink: 0;
}
@media (max-width: 480px) { .blms-yt__vol { display: none; } }

/* FIX: Keď je video pozastavené — controls vždy viditeľné + klikateľné */
.blms-yt.is-paused .blms-yt__controls {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ended overlay — zakryje YouTube end screen (navrhované videá, subscribe, end cards) */
.blms-yt__ended {
    position: absolute;
    inset: 0;
    z-index: 4;       /* nad overlay(2) a controls(3), pod poster(5) */
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.blms-yt__ended-replay {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: background .2s, transform .15s;
}
.blms-yt__ended-replay:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.1);
}
.blms-yt__ended-replay svg { width: 32px; height: 32px; }

/* Rýchlosť prehrávania */
.blms-yt__speed-wrap {
    position: relative;
    flex-shrink: 0;
}

.blms-yt__btn--speed {
    font-size: 11px;
    font-weight: 700;
    min-width: 28px;
    color: rgba(255,255,255,.85);
    letter-spacing: -.02em;
}
.blms-yt__btn--speed:hover { color: #1d9958; }

.blms-yt__speed-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    background: rgba(18,18,18,.97);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,.5);
    z-index: 10;
}
.blms-yt__speed-menu.is-open { display: block; }

.blms-yt__speed-opt {
    display: block;
    width: 100%;
    padding: 6px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: background .1s, color .1s;
}
.blms-yt__speed-opt:hover    { background: rgba(255,255,255,.08); color: #fff; }
.blms-yt__speed-opt.is-active { color: #1d9958; font-weight: 700; }

/* ── Lekcia ──────────────────────────────────────────────────────────────── */
.blms-lesson-wrap { max-width: 100%; }

/* Progress bar */
.blms-progress-bar {
    position: relative;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.blms-progress-bar__fill {
    height: 100%;
    background: #1d6038;
    border-radius: 4px;
    transition: width .4s ease;
}
.blms-progress-bar__label {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: .8rem;
    color: #555;
}

/* ── Player ──────────────────────────────────────────────────────────────── */
.blms-player {
    position: relative;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* Poster overlay — skryje YouTube UI pred kliknutím na play */
.blms-player__poster {
    position: absolute;
    inset: 0;
    background: #1a1a1a center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity .2s;
}
.blms-player__poster:hover { opacity: .9; }

.blms-player__play-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    transition: transform .15s;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
}
.blms-player__play-btn:hover { transform: scale(1.1); }
.blms-player__play-btn svg   { width: 80px; height: 80px; display: block; }

/* Loading/error stavy */
.blms-player__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.blms-player__error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    text-align: center;
    padding: 2rem;
}

/* Spinner */
.blms-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: blms-spin .7s linear infinite;
}
@keyframes blms-spin { to { transform: rotate(360deg); } }

/* Embed — Vimeo / 16:9 */
.blms-embed-16x9 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.blms-embed-16x9 iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* HTML5 video */
.blms-html5-video {
    width: 100%;
    max-height: 70vh;
    display: block;
    background: #000;
    border-radius: 8px;
}

/* Audio */
.blms-audio-wrap {
    padding: 1.25rem;
    background: #1a1a1a;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.blms-audio-player { width: 100%; }

/* ── Audio: vlastný layout (žiadny čierny 16:9 box) ──────────────────────── */
.blms-player--audio {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

/* Predklik — svetlá karta s „Prehrať audio lekciu" */
.blms-audio-pre__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 22px;
    background: color-mix(in srgb, var(--blms-accent, #7c3aed) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--blms-accent, #7c3aed) 22%, #fff);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background .15s, border-color .15s;
}
.blms-audio-pre__btn:hover { background: color-mix(in srgb, var(--blms-accent, #7c3aed) 14%, #fff); }
.blms-audio-pre__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--blms-accent, #7c3aed);
    color: #fff;
}
.blms-audio-pre__label { font-weight: 600; color: #1a1a2e; font-size: 1rem; }
.blms-audio-pre__wave { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 26px; }
.blms-audio-pre__wave i {
    width: 3px; border-radius: 3px;
    background: color-mix(in srgb, var(--blms-accent, #7c3aed) 60%, #fff);
}
.blms-audio-pre__wave i:nth-child(1) { height: 30%; }
.blms-audio-pre__wave i:nth-child(2) { height: 70%; }
.blms-audio-pre__wave i:nth-child(3) { height: 100%; }
.blms-audio-pre__wave i:nth-child(4) { height: 55%; }
.blms-audio-pre__wave i:nth-child(5) { height: 35%; }

/* Vlastný audio prehrávač (po kliku) */
.blms-aud {
    --blms-aud-pct: 0%;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 12px;
}
.blms-aud__play, .blms-aud__mute, .blms-aud__rate {
    flex-shrink: 0;
    border: 0; cursor: pointer;
    background: transparent;
    color: var(--blms-accent, #7c3aed);
    display: inline-flex; align-items: center; justify-content: center;
}
.blms-aud__play {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--blms-accent, #7c3aed); color: #fff;
}
.blms-aud__play svg { width: 22px; height: 22px; }
.blms-aud__mute svg { width: 22px; height: 22px; }
.blms-aud__mute { width: 32px; height: 32px; color: #555; }
.blms-aud__rate {
    font-size: 13px; font-weight: 700; color: #555;
    min-width: 40px; height: 30px; border-radius: 6px;
    background: #f3f3f7;
}
.blms-aud__cur, .blms-aud__dur {
    font-size: 12px; color: #777; font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.blms-aud__seek {
    flex: 1; min-width: 60px; height: 6px;
    -webkit-appearance: none; appearance: none;
    border-radius: 999px;
    background: linear-gradient(to right,
        var(--blms-accent, #7c3aed) var(--blms-aud-pct),
        #e4e4ee var(--blms-aud-pct));
    cursor: pointer;
}
.blms-aud__seek::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--blms-accent, #7c3aed); border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.blms-aud__seek::-moz-range-thumb {
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--blms-accent, #7c3aed); border: 2px solid #fff;
}

/* Hlasitosť */
.blms-aud__vol { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.blms-aud__vol-slider {
    width: 72px; height: 5px;
    -webkit-appearance: none; appearance: none;
    border-radius: 999px;
    background: linear-gradient(to right,
        var(--blms-accent, #7c3aed) var(--blms-vol-pct, 100%),
        #e4e4ee var(--blms-vol-pct, 100%));
    cursor: pointer;
}
.blms-aud__vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--blms-accent, #7c3aed); border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.blms-aud__vol-slider::-moz-range-thumb {
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--blms-accent, #7c3aed); border: 2px solid #fff;
}
@media (max-width: 560px) { .blms-aud__vol-slider { display: none; } }

/* Rýchlosť — tlačidlo + rozbaľovacie menu */
.blms-aud__speed { position: relative; flex-shrink: 0; }
.blms-aud__rate-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    margin: 0; padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #e4e4ee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    z-index: 20;
    min-width: 76px;
}
.blms-aud__rate-menu[hidden] { display: none; }
.blms-aud__rate-opt {
    display: block; width: 100%;
    padding: 7px 12px;
    border: 0; background: transparent;
    text-align: center;
    font-size: 13px; font-weight: 600; color: #444;
    border-radius: 6px; cursor: pointer;
}
.blms-aud__rate-opt:hover { background: #f3f3f7; }
.blms-aud__rate-opt.is-active { background: var(--blms-accent, #7c3aed); color: #fff; }

/* ── Navigácia lekcií ────────────────────────────────────────────────────── */
.blms-lesson-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.blms-lesson-done-badge { color: #2e7d32; font-weight: 600; }

/* ── Tlačidlá ────────────────────────────────────────────────────────────── */
.blms-btn {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.25rem;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.blms-btn--primary  { background: #1d6038; color: #fff; }
.blms-btn--primary:hover { background: #155028; color: #fff; }
.blms-btn--secondary { background: transparent; border-color: #1d6038; color: #1d6038; }
.blms-btn--secondary:hover { background: #1d6038; color: #fff; }
.blms-btn--prev, .blms-btn--next { background: #f5f5f5; color: #333; border-color: #ddd; }
.blms-btn--prev:hover, .blms-btn--next:hover { background: #e8e8e8; color: #111; }
.blms-btn--complete { background: #1d6038; color: #fff; }
.blms-btn--complete:hover { background: #155028; }
.blms-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Access denied ───────────────────────────────────────────────────────── */
.blms-access-denied {
    text-align: center;
    padding: 3rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.blms-access-denied__msg { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.blms-course-cta { margin-top: 2rem; }

.blms-lesson-content { margin-top: 1.5rem; }

/* ── CSS premenné — accent farba ─────────────────────────────────────────── */
:root {
    --blms-accent: var(--paletteColor1, #1d6038);
    --blms-accent-dark: color-mix(in srgb, var(--blms-accent) 82%, #000);
}

/* ── Tlačidlá — accent farba ─────────────────────────────────────────────── */
.blms-btn--primary  { background: var(--blms-accent); color: #fff; }
.blms-btn--primary:hover { background: var(--blms-accent-dark); color: #fff; }
.blms-btn--secondary { border-color: var(--blms-accent); color: var(--blms-accent); }
.blms-btn--secondary:hover { background: var(--blms-accent); color: #fff; }
.blms-btn--complete  { background: var(--blms-accent); color: #fff; }
.blms-btn--complete:hover { background: var(--blms-accent-dark); }

/* ── Hviezdy — globálne ──────────────────────────────────────────────────── */
.blms-star--full  { color: #f5a623; }
.blms-star--empty { color: #d0d0d0; }

/* ── Hodnotenia a recenzie ───────────────────────────────────────────────── */
.blms-ratings {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid #f0f0f0;
}
.blms-ratings__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

/* Overview grid: skóre (vľavo) + bar chart (vpravo) */
.blms-ratings__overview {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 2rem;
    align-items: center;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
    .blms-ratings__overview { grid-template-columns: 1fr; gap: 1rem; }
}

/* Veľké číslo */
.blms-ratings__score { text-align: center; }
.blms-ratings__big-num {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--blms-accent);
    letter-spacing: -.03em;
}
.blms-ratings__score-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: .4rem 0 .35rem;
    font-size: 1.1rem;
}
.blms-ratings__score-count {
    font-size: .8rem;
    color: #777;
}

/* Bar chart */
.blms-ratings__bars { display: flex; flex-direction: column; gap: .45rem; }
.blms-ratings__bar-row {
    display: grid;
    grid-template-columns: 42px 1fr 28px;
    align-items: center;
    gap: .6rem;
}
.blms-ratings__bar-label {
    font-size: .8rem;
    color: #555;
    text-align: right;
    white-space: nowrap;
}
.blms-ratings__bar-track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.blms-ratings__bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
    transition: width .5s ease;
    min-width: 0;
}
.blms-ratings__bar-num {
    font-size: .78rem;
    color: #666;
    text-align: right;
}

/* Write button */
.blms-ratings__write-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: 2px solid var(--blms-accent);
    color: var(--blms-accent);
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: background .15s, color .15s;
}
.blms-ratings__write-btn:hover {
    background: var(--blms-accent);
    color: #fff;
}

/* Form */
.blms-ratings__form-wrap { margin-bottom: 2rem; }

/* Star picker — moderný, bez radio kruhov */
.blms-star-picker {
    display: flex;
    gap: .15rem;
    margin-bottom: 1rem;
}
.blms-star-picker__star {
    font-size: 2.2rem;
    color: #d0d0d0;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color .1s, transform .1s;
    padding: .1rem;
}
.blms-star-picker__star.is-hover,
.blms-star-picker__star.is-active {
    color: #f5a623;
}
.blms-star-picker__star:hover { transform: scale(1.2); }
.blms-star-picker__star:focus { outline: 2px solid var(--blms-accent); border-radius: 2px; }

/* Textarea */
.blms-ratings__textarea {
    display: block;
    width: 100%;
    max-width: 580px;
    min-height: 90px;
    padding: .65rem .9rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    resize: vertical;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color .15s;
}
.blms-ratings__textarea:focus {
    outline: none;
    border-color: var(--blms-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blms-accent) 15%, transparent);
}

.blms-ratings__form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.blms-ratings__msg {
    font-size: .9rem;
    font-weight: 500;
}
.blms-ratings__login-hint { color: #666; font-size: .9rem; margin-bottom: 1.5rem; }

/* Zoznam recenzií */
.blms-ratings__list { margin-top: 1.5rem; }

.blms-ratings__item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.blms-ratings__item:last-child { border-bottom: 0; }

/* Avatar kruh s iniciálou */
.blms-ratings__item-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blms-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.blms-ratings__item-body { flex: 1; min-width: 0; }

.blms-ratings__item-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
    flex-wrap: wrap;
}
.blms-ratings__item-author { font-weight: 700; font-size: .95rem; }
.blms-ratings__item-stars  { display: flex; gap: 1px; font-size: .85rem; }
.blms-ratings__item-date   { font-size: .78rem; color: #999; margin-left: auto; white-space: nowrap; }
.blms-ratings__item-review { margin: 0; color: #444; line-height: 1.6; font-size: .9rem; }

.blms-ratings__empty { color: #888; font-style: italic; }

/* ── Gamifikácia (body / odznaky / leaderboard) ─────────────────────────── */
.blms-leaderboard { width:100%; border-collapse:collapse; margin:1rem 0; }
.blms-leaderboard th, .blms-leaderboard td { padding:.5rem .75rem; text-align:left; border-bottom:1px solid var(--blms-border,#e5e7eb); }
.blms-leaderboard th:last-child, .blms-leaderboard td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.blms-leaderboard tbody tr:first-child td { font-weight:700; color:var(--blms-accent,#1d6038); }
.blms-my-points { margin:1rem 0; }
.blms-mp-total { font-size:1.05rem; }
.blms-badges { list-style:none; margin:.5rem 0 0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.blms-badge { display:inline-flex; align-items:center; gap:.35rem; padding:.3rem .7rem; border:1px solid var(--blms-border,#e5e7eb); border-radius:999px; background:#fff; font-size:.9rem; }
.blms-badge__icon { font-size:1.1rem; line-height:1; }

/* ── Zadania (assignment) ──────────────────────────────────────────────── */
.blms-assignment { margin:1rem 0; }
.blms-asg-status { padding:.75rem 1rem; border:1px solid var(--blms-border,#e5e7eb); border-radius:8px; margin-bottom:1rem; background:#fff; }
.blms-asg-status--graded { border-color:var(--blms-accent,#1d6038); }
.blms-asg-grade { font-weight:700; margin:0 0 .35rem; }
.blms-asg-pass { color:var(--blms-accent,#1d6038); margin-left:.5rem; }
.blms-asg-fail { color:#b02a2a; margin-left:.5rem; font-weight:600; }
.blms-asg-feedback { margin:.35rem 0 0; }
.blms-asg-form { display:flex; flex-direction:column; gap:.6rem; max-width:520px; }
.blms-asg-form textarea.blms-asg-note { width:100%; }
.blms-asg-notice { padding:.6rem .9rem; border-radius:6px; margin:0 0 1rem; }
.blms-asg-notice--notice-success { background:#e7f5ec; border:1px solid var(--blms-accent,#1d6038); }
.blms-asg-notice--notice-error { background:#fdecec; border:1px solid #b02a2a; }

/* ── Kvíz 2.0: doplň slovo (fill_gap) ──────────────────────────────────── */
.blms-quiz__fill { width:100%; max-width:360px; padding:.5rem .7rem; border:1px solid var(--blms-border,#e5e7eb); border-radius:6px; font-size:1rem; margin-top:.35rem; }
.blms-quiz__fill:focus { outline:2px solid var(--blms-accent,#1d6038); outline-offset:1px; }

/* ── Kvíz 2.0: obrázková voľba + priraďovanie ──────────────────────────── */
.blms-quiz__opts--img { display:flex; flex-wrap:wrap; gap:.75rem; }
.blms-quiz__opt--img { flex-direction:column; align-items:flex-start; border:1px solid var(--blms-border,#e5e7eb); border-radius:8px; padding:.5rem; max-width:200px; }
.blms-quiz__opt-img { display:block; width:100%; height:auto; border-radius:6px; margin-bottom:.35rem; }
.blms-quiz__match-row { display:flex; align-items:center; gap:.6rem; margin:.4rem 0; }
.blms-quiz__match-left { flex:1; font-weight:600; }
.blms-quiz__match-sel { flex:1; padding:.4rem; border:1px solid var(--blms-border,#e5e7eb); border-radius:6px; }
