.lv-materials{ margin: 0 0 12px; }

.lv-chapters{
    margin: 0 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--chrome);
    overflow: hidden;
}
.lv-chapters-head{
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.lv-chapters-list{ display: flex; flex-direction: column; }
.lv-chapter{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.lv-chapter:last-child{ border-bottom: none; }
.lv-chapter:hover{
    background: color-mix(in srgb, var(--accent-2, #b026ff) 12%, transparent);
}
.lv-chapter-t{
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--home-neon-purple, var(--accent-2));
    min-width: 48px;
}
.lv-chapter-title{ font-size: 13.5px; font-weight: 600; }

.lv-skel{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 20px;
}

.lv-skel-player{
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
    font-weight: 700;
    background:
        radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
        var(--chrome);
    border: 1px solid var(--line);
}

.lv-skel-spin{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
    border-top-color: var(--home-neon-purple, var(--accent-2));
    animation: lv-spin 0.7s linear infinite;
}

.lv-skel-line{
    height: 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--text) 8%, transparent);
}
.lv-skel-line.w80{ width: 80%; }
.lv-skel-line.w55{ width: 55%; }

@keyframes lv-spin{
    to{ transform: rotate(360deg); }
}

.lv-player--yt{
    position: relative;
    margin: 0 0 14px;
    padding: 0 !important;
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: transparent !important;
    box-shadow: none;
}

.lv-stage{
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #05030c;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.4),
        0 0 0 1px color-mix(in srgb, var(--accent-2) 12%, transparent);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.lv-player--yt video{
    display: block;
    width: 100%;
    height: 100%;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: contain;
    background: #000;
}

.lv-net{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    z-index: 5;
    pointer-events: none;
}
.lv-net.off{
    background: var(--red, #f43f5e);
    box-shadow: 0 0 10px var(--red, #f43f5e);
}

.lv-loader{
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}
.lv-loader[hidden]{ display: none !important; }

.lv-loader-ring{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--home-neon-purple, #b026ff);
    box-shadow: 0 0 24px var(--home-neon-glow, rgba(176, 38, 255, 0.45));
    animation: lv-spin 0.65s linear infinite;
}

.lv-bigplay{
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    background: var(--accent);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 36px var(--home-neon-glow, rgba(176, 38, 255, 0.5));
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.lv-bigplay svg{ width: 30px; height: 30px; margin-left: 3px; }
.lv-bigplay:hover{ transform: scale(1.08); filter: brightness(1.08); }
.lv-bigplay[hidden]{ display: none !important; }
.lv-player--yt.is-playing .lv-bigplay{ opacity: 0; pointer-events: none; }

.lv-chrome{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    padding: 28px 12px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.lv-player--yt:hover .lv-chrome,
.lv-player--yt.is-paused .lv-chrome,
.lv-player--yt.is-scrubbing .lv-chrome,
.lv-player--yt:focus-within .lv-chrome{
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.lv-chrome-row{
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #fff;
}

.lv-btn{
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.lv-btn:hover{ background: rgba(255, 255, 255, 0.12); }
.lv-btn svg{ width: 20px; height: 20px; }
.lv-btn.is-muted{ color: #fbbf24; }
.lv-btn-link{ text-decoration: none; }

.lv-time{
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding: 0 4px;
}
.lv-time-sep{ opacity: 0.45; margin: 0 3px; }

.lv-vol{
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: 120px;
}
.lv-vol-range{
    width: 0;
    opacity: 0;
    transition: width 0.18s ease, opacity 0.18s ease;
    accent-color: var(--home-neon-purple, #b026ff);
}
.lv-vol:hover .lv-vol-range,
.lv-vol:focus-within .lv-vol-range{
    width: 72px;
    opacity: 1;
}

.lv-meta-pill{
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
.lv-meta-pill b{ color: #fff; }

.lv-spacer{ flex: 1 1 auto; min-width: 8px; }

.lv-rate{ display: flex; gap: 3px; flex-wrap: wrap; }
.lv-rate-btn{
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 4px 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
}
.lv-rate-btn.is-on,
.lv-rate-btn:hover{
    background: color-mix(in srgb, var(--accent-2) 55%, transparent);
    border-color: color-mix(in srgb, var(--accent-2) 80%, #fff);
    color: #fff;
}

.lv-scrub{
    position: relative;
    height: 22px;
    margin: 0 2px 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.lv-scrub-rail{
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: visible;
    transition: height 0.12s ease;
}
.lv-scrub:hover .lv-scrub-rail,
.lv-player--yt.is-scrubbing .lv-scrub-rail{
    height: 6px;
}

.lv-scrub-buffered,
.lv-scrub-covered,
.lv-scrub-played{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
}

.lv-scrub-buffered{
    background: rgba(255, 255, 255, 0.28);
    width: 0;
}

.lv-scrub-covered{
    background: color-mix(in srgb, var(--home-neon-purple, #b026ff) 45%, transparent);
    width: 0;
}

.lv-scrub-played{
    background: var(--accent);
    width: 0;
    box-shadow: 0 0 12px var(--home-neon-glow, rgba(176, 38, 255, 0.45));
}

.lv-scrub-thumb{
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--home-neon-purple, #b026ff) 55%, transparent);
    transform: scale(0);
    transition: transform 0.12s ease;
    pointer-events: none;
}
.lv-scrub:hover .lv-scrub-thumb,
.lv-player--yt.is-scrubbing .lv-scrub-thumb{
    transform: scale(1);
}

.lv-scrub-tip{
    position: absolute;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(10, 6, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.lv-player--yt > .lv-hint{
    min-height: 18px;
    margin: 10px 2px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
}
.lv-player--yt > .lv-hint.is-ok{ color: var(--green, #34d399); }
.lv-player--yt > .lv-hint.is-warn{ color: #fbbf24; }

.lv-player--yt > .lv-shortcuts{
    margin: 6px 2px 0;
    font-size: 11.5px;
    color: var(--text-dim);
}
.lv-player--yt > .lv-shortcuts kbd{
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--chrome);
    font-size: 11px;
    font-weight: 700;
}

.lv-stage:fullscreen,
.lv-stage:-webkit-full-screen{
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: #000;
}
.lv-stage:fullscreen video,
.lv-stage:-webkit-full-screen video{
    width: 100%;
    height: 100%;
}

@media (max-width: 720px){
    .lv-meta-pill{ display: none; }
    .lv-vol-range{ display: none; }
    .lv-rate-btn{ padding: 4px 6px; font-size: 11px; }
    .lv-bigplay{ width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}

@media (prefers-reduced-motion: reduce){
    .lv-skel-spin,
    .lv-loader-ring{ animation: none; }
    .lv-chrome,
    .lv-bigplay,
    .lv-scrub-thumb{ transition: none; }
}
