.svk-login-wrapper,
.svk-course-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

/* table išdėstymas: kairė – sąrašas, dešinė – video */
.svk-layout-table {
    width: 100%;
    border-collapse: collapse;
}

/* Naudojam flex ant <tr>, kad būtų patogu daryti responsive (video viršuje mobile) */
.svk-layout-table > tbody > tr,
.svk-layout-table > tr {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

/* Kairė pusė – sąrašas */
.svk-layout-sidebar {
    flex: 0 0 320px;
    width: 320px;
    max-width: 380px;
    vertical-align: top;
    padding-right: 18px;
    border-right: 1px solid #e5e7eb;
}

/* Dešinė pusė – video */
.svk-layout-player {
    flex: 1 1 auto;
    min-width: 0;
    vertical-align: top;
    padding-left: 18px;
}

/* Mobile – video viršuje, sąrašas apačioje */
@media (max-width: 900px) {
    .svk-course-sidebar { position: static; top: auto; }

    .svk-course-wrapper,
    .svk-login-wrapper {
        margin: 14px auto;
        padding: 16px;
        border-radius: 14px;
    }

    .svk-layout-table > tbody > tr,
    .svk-layout-table > tr {
        flex-direction: column;
        gap: 14px;
    }

    .svk-layout-player { order: 1; padding-left: 0; }
    .svk-layout-sidebar { order: 2; width: 100%; max-width: none; padding-right: 0; border-right: none; border-top: 1px solid #e5e7eb; padding-top: 14px; }
}

.svk-login-title {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 600;
}

.svk-form-row {
    margin-bottom: 18px;
}

.svk-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.svk-form-row input[type="email"],
.svk-form-row input[type="password"],
.svk-form-row input[type="text"],
.svk-form-row input[type="number"] {
    width: 100%;
    max-width: 380px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.svk-form-row input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.svk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}

.svk-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.svk-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.svk-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.svk-btn-secondary:hover {
    background: #e5e7eb;
}

.svk-btn[disabled],
.svk-btn:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.svk-error {
    padding: 10px 12px;
    margin-bottom: 15px;
    background: #fef2f2;
    border-radius: 10px;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}

.svk-course-sidebar {
    padding-right: 0;
    position: sticky;
    top: 18px;
}

.svk-sidebar-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.svk-video-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svk-video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.svk-video-item:hover {
    background: #f3f4f6;
}

.svk-video-item.active {
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.svk-video-item.active .svk-video-title,
.svk-video-item.active .svk-video-step {
    color: #ffffff;
}

.svk-video-item.completed .svk-video-step {
    border-color: #22c55e;
}

.svk-video-step {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    color: #4b5563;
    background: #f9fafb;
}

.svk-video-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.svk-video-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.svk-course-player-area {
    min-width: 0;
}

.svk-player-header {
    margin-bottom: 12px;
}

.svk-current-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.svk-player-card {
    border-radius: 16px;
    background: #f9fafb;
    padding: 14px 14px 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.svk-player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.svk-player-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.svk-player-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    /* default: leidžiam naudoti native playerį jei JS nepasileido */
    pointer-events: auto;
}

.svk-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    background: rgba(0,0,0,0);
}

/* kai JS pasileidžia – užrakina native iframe paspaudimus ir naudoja overlay (custom kontrolėms) */
.svk-course-wrapper.svk-js-ready .svk-player-iframe-wrapper iframe {
    pointer-events: none;
}

.svk-course-wrapper.svk-js-ready .svk-player-overlay {
    display: block;
    pointer-events: auto;
    cursor: pointer;
}

.svk-progress-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#svk-seek {
    flex: 1;
}

.svk-time-label {
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
}

.svk-player-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.svk-info {
    font-size: 13px;
    color: #b91c1c;
}

.svk-note {
    font-size: 13px;
    color: #4b5563;
    margin-top: 8px;
}

.svk-video-description {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    font-size: 14px;
    color: #111827;
}

.svk-credit {
    margin-top: 10px;
    font-size: 11px;
    color: #6b7280;
}

.svk-credit a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .svk-layout-table,
    .svk-layout-table tr,
    .svk-layout-table td {
        display: block;
        width: 100%;
    }

    .svk-layout-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .svk-layout-player {
        padding-left: 0;
    }
}


/* video aprašymo blokas + nuotrauka */
.svk-video-description .svk-video-img { margin: 14px 0 10px 0; }
.svk-video-description .svk-video-img img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
}
.svk-video-description .svk-video-text {
    font-size: 14px;
    line-height: 1.75;
    color: #111827;
}
.svk-video-description .svk-video-text p { margin: 0 0 10px 0; }


/* Report modal */
.svk-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.svk-modal.is-open { display: block; }
.svk-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,0.72); }
.svk-modal-card { position: relative; width: min(720px, calc(100% - 24px)); margin: 8vh auto 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; }
.svk-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 14px 16px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.svk-modal-title { font-weight: 800; font-size: 16px; }
.svk-modal-close { border:0; background: rgba(255,255,255,0.16); color:#fff; width:34px; height:34px; border-radius: 10px; cursor:pointer; font-weight: 900; }
.svk-modal-body { padding: 16px; }
.svk-modal-sub { margin: 0 0 10px 0; color:#475569; }
.svk-textarea { width:100%; border:1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font-size: 14px; resize: vertical; outline: none; }
.svk-textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.svk-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top: 12px; }
.svk-btn-ghost { background: transparent; border: 1px solid rgba(15,23,42,0.12); color: #0f172a; }
.svk-btn-ghost:hover { background: rgba(15,23,42,0.05); }
.svk-report-status { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.svk-report-status.ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.28); color: #166534; }
.svk-report-status.err { background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.25); color: #991b1b; }

/* Bigger video descriptions + image */
.svk-video-description { margin-top: 14px; }
.svk-video-img img { width: 100%; height: auto; border-radius: 14px; display:block; box-shadow: 0 10px 28px rgba(15,23,42,0.10); }
.svk-video-text { margin-top: 12px; font-size: 15px; line-height: 1.75; color: #0f172a; }
.svk-video-text p { margin: 0 0 10px 0; }
.svk-video-text ul, .svk-video-text ol { margin: 0 0 12px 18px; }


/* Feedback stars */
.svk-stars { display:flex; gap:8px; margin: 8px 0 12px 0; }
.svk-star { border: 1px solid rgba(15,23,42,0.12); background: #fff; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; font-size: 22px; line-height: 1; display:flex; align-items:center; justify-content:center; }
.svk-star:hover { box-shadow: 0 0 0 3px rgba(37,99,235,0.14); border-color: rgba(37,99,235,0.45); }

/* Session warning banner */
.svk-alert-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }



/* Alerts */
.svk-alert { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(15,23,42,0.12); background: #f8fafc; color: #0f172a; margin: 10px 0 12px 0; font-size: 14px; }
.svk-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.svk-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }


/* Scrollbar (WebKit) */
.svk-video-list::-webkit-scrollbar {
    width: 10px;
}
.svk-video-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}
.svk-video-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
}

/* Mobile – sąrašas be scroll-lock (natūralus puslapio scroll) */
@media (max-width: 900px) {
    .svk-video-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}


/* Responsive override (high specificity) */
.svk-course-wrapper .svk-layout-table > tbody > tr {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.svk-course-wrapper .svk-layout-table .svk-layout-sidebar { flex: 0 0 320px; width: 320px; max-width: 380px; }
.svk-course-wrapper .svk-layout-table .svk-layout-player { flex: 1 1 auto; min-width: 0; }

@media (max-width: 900px) {
    .svk-course-wrapper .svk-layout-table > tbody > tr { flex-direction: column; gap: 14px; }
    .svk-course-wrapper .svk-layout-table .svk-layout-player { order: 1; padding-left: 0; }
    .svk-course-wrapper .svk-layout-table .svk-layout-sidebar { order: 2; width: 100%; max-width: none; padding-right: 0; border-right: none; border-top: 1px solid #e5e7eb; padding-top: 14px; }
}

.svk-course-wrapper .svk-video-list {
    max-height: clamp(360px, 70vh, 620px);
    overflow-y: auto;
    padding-right: 6px;
}
@media (max-width: 900px) {
    .svk-course-wrapper .svk-video-list { max-height: none; overflow: visible; padding-right: 0; }
}


/* Resume bar */
.svk-resume-bar { margin: 0 0 12px 0; }
.svk-resume-inner { display:flex; gap:12px; align-items:center; justify-content:space-between; padding: 10px 12px; border:1px solid rgba(148,163,184,0.6); background:#f8fafc; border-radius: 14px; }
.svk-resume-text { color:#0f172a; font-size: 14px; }
.svk-resume-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* Watched badge in list */
.svk-video-watched { margin-top: 6px; font-size: 12px; color:#64748b; }


/* Start overlay (autoplay workaround) */
.svk-start-overlay {
    z-index: 10;
    margin: 0 0 12px 0;
    padding: 12px;
    border: 1px dashed rgba(148,163,184,0.9);
    background: rgba(248,250,252,0.95);
    border-radius: 16px;
    display:flex;
    gap: 10px;
    align-items:center;
    justify-content:space-between;
}
.svk-start-hint { color:#64748b; font-size: 13px; }
@media (max-width: 900px) {
    .svk-start-overlay { flex-direction: column; align-items: flex-start; }
}


/* Locked lessons (full-watch) */
.svk-video-item.locked { opacity: 0.55; cursor: not-allowed; }
.svk-video-item.locked:hover { transform: none; }
.svk-ctrl-hint { color:#64748b; font-size: 13px; margin-left: 10px; }
