.cvvl-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
    border-radius: 12px;
}

@supports not (aspect-ratio: 16 / 9) {
    .cvvl-video {
        height: 0;
        padding-top: 56.25%;
    }
}

.cvvl-video__iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.cvvl-message {
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.45;
}

.cvvl-message--error {
    color: #8a1f11;
    background: #fff2ef;
    border: 1px solid #ffd1c8;
}

.cvvl-block-editor {
    padding: 16px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #f8fbff;
}

.cvvl-block-editor textarea {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.cvvl-block-editor__preview {
    margin-top: 14px;
}

.cvvl-admin-lessons {
    box-sizing: border-box;
}

.cvvl-admin-lessons *,
.cvvl-admin-lessons *::before,
.cvvl-admin-lessons *::after {
    box-sizing: border-box;
}

.cvvl-admin-lessons__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.cvvl-admin-lessons__hint {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.cvvl-admin-lessons__rows {
    display: grid;
    gap: 14px;
}

.cvvl-admin-course-status {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #ffffff;
}

.cvvl-admin-course-status__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #172033;
    font-weight: 700;
}

.cvvl-admin-course-status__text {
    display: block;
    margin: 0;
}

.cvvl-admin-course-status__text span {
    display: block;
    margin: 0 0 6px;
    color: #1f2937;
    font-weight: 700;
}

.cvvl-admin-course-status__text textarea {
    width: 100%;
}

.cvvl-admin-lesson {
    padding: 16px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #f8fbff;
}

.cvvl-admin-lesson__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.cvvl-admin-lesson__number {
    color: #172033;
}

.cvvl-admin-lesson__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cvvl-admin-lesson__field {
    display: block;
    margin: 0 0 12px;
}

.cvvl-admin-lesson__field:last-child {
    margin-bottom: 0;
}

.cvvl-admin-lesson__field span {
    display: block;
    margin: 0 0 6px;
    color: #1f2937;
    font-weight: 700;
}

.cvvl-admin-lesson__field input,
.cvvl-admin-lesson__field textarea {
    width: 100%;
}

.cvvl-admin-lesson__field textarea {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.cvvl-course {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #dfe5f1;
    border-radius: 18px;
    color: #172033;
    background: #f7f9fc;
    box-shadow: 0 18px 46px rgba(31, 42, 68, 0.12);
}

.cvvl-course *,
.cvvl-course *::before,
.cvvl-course *::after {
    box-sizing: border-box;
}

.cvvl-course__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
    padding: 24px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #202f5b 0%, #314a89 100%);
}

.cvvl-course__eyebrow {
    margin: 0 0 10px;
    color: #d7e5ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.cvvl-course__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.1;
}

.cvvl-course__description {
    max-width: 760px;
    margin: 12px 0 0;
    color: #edf3ff;
    font-size: 16px;
    line-height: 1.65;
}

.cvvl-course__description p {
    margin: 0 0 10px;
}

.cvvl-course__description p:last-child {
    margin-bottom: 0;
}

.cvvl-course__summary {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
}

.cvvl-course__summary-value,
.cvvl-course__summary-label {
    display: block;
}

.cvvl-course__summary-value {
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.cvvl-course__summary-label {
    margin-top: 6px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.cvvl-course__progress {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #dfe5f1;
    border-radius: 12px;
    background: #ffffff;
}

.cvvl-course__progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.cvvl-course__progress-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf3;
}

.cvvl-course__progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #238b57 0%, #2f9ed8 100%);
    transition: width 0.2s ease;
}

.cvvl-course__notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #b9dec9;
    border-radius: 12px;
    color: #164b34;
    background: #ecf8f0;
}

.cvvl-course__notice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    background: #238b57;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.cvvl-course__notice-text {
    margin: 1px 0 0;
    color: #164b34;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.cvvl-course__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.cvvl-course__main,
.cvvl-course__sidebar {
    min-width: 0;
    border: 1px solid #dfe5f1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 42, 68, 0.08);
}

.cvvl-course__main {
    overflow: hidden;
}

.cvvl-course__player {
    border-radius: 14px 14px 0 0;
}

.cvvl-course__lesson-head {
    padding: 20px 22px 0;
}

.cvvl-course__lesson-kicker {
    display: block;
    margin: 0 0 8px;
    color: #2563a8;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.cvvl-course__lesson-title {
    margin: 0;
    color: #172033;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    line-height: 1.18;
}

.cvvl-course__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 22px 22px;
}

.cvvl-course__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #172033;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.cvvl-course__control:hover,
.cvvl-course__control:focus {
    border-color: #9db3d4;
    background: #f3f7ff;
}

.cvvl-course__control:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.cvvl-course__control--primary {
    color: #ffffff;
    border-color: #2563a8;
    background: #2563a8;
}

.cvvl-course__control--primary:hover,
.cvvl-course__control--primary:focus {
    color: #ffffff;
    border-color: #1d4f86;
    background: #1d4f86;
}

.cvvl-course__control--complete {
    color: #17603f;
    border-color: #b9dec9;
    background: #ecf8f0;
}

.cvvl-course__sidebar {
    overflow: hidden;
}

.cvvl-course__lesson-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cvvl-course__lesson-item {
    margin: 0;
}

.cvvl-course__lesson-button {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #e5eaf3;
    color: #172033;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}

.cvvl-course__lesson-item:last-child .cvvl-course__lesson-button {
    border-bottom: 0;
}

.cvvl-course__lesson-button:hover,
.cvvl-course__lesson-button:focus {
    background: #f3f7ff;
}

.cvvl-course__lesson-button.is-active {
    background: #eaf2ff;
}

.cvvl-course__lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #2563a8;
    background: #e8f0ff;
    font-size: 14px;
    font-weight: 900;
}

.cvvl-course__lesson-name {
    min-width: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.cvvl-course__lesson-state {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
}

.cvvl-course__lesson-button.is-complete .cvvl-course__lesson-state {
    border-color: #238b57;
    background: #238b57;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.cvvl-video-card {
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #dfe5f1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 42, 68, 0.12);
}

.cvvl-video-card .cvvl-video {
    border-radius: 0;
}

.cvvl-video-card__body {
    padding: 22px;
}

.cvvl-video-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #1d3f78;
    background: #e8f0ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.cvvl-video-card__title {
    margin: 0 0 10px;
    color: #172033;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.25;
}

.cvvl-video-card__description {
    margin: 0 0 16px;
    color: #526071;
    font-size: 16px;
    line-height: 1.65;
}

.cvvl-video-card__description p {
    margin: 0 0 10px;
}

.cvvl-video-card__description p:last-child {
    margin-bottom: 0;
}

.cvvl-video-card__meta {
    margin: 0 0 18px;
    color: #6a7485;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.cvvl-video-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    color: #ffffff;
    background: #2563a8;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.cvvl-video-card__button:hover,
.cvvl-video-card__button:focus {
    color: #ffffff;
    background: #1d4f86;
    text-decoration: none;
    transform: translateY(-1px);
}

.cvvl-video-card__button:focus-visible {
    outline: 3px solid rgba(37, 99, 168, 0.28);
    outline-offset: 3px;
}

.cvvl-lessons {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 36px;
    color: #172033;
}

.cvvl-lessons *,
.cvvl-lessons *::before,
.cvvl-lessons *::after,
.cvvl-video-card *,
.cvvl-video-card *::before,
.cvvl-video-card *::after {
    box-sizing: border-box;
}

.cvvl-lessons__hero {
    overflow: hidden;
    margin: 0 0 22px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #202f5b 0%, #314a89 100%);
    box-shadow: 0 18px 42px rgba(32, 47, 91, 0.24);
}

.cvvl-lessons__hero-content {
    max-width: 760px;
    padding: clamp(32px, 6vw, 64px);
}

.cvvl-lessons__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 16px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.cvvl-lessons__title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.05;
}

.cvvl-lessons__intro {
    max-width: 700px;
    margin: 0;
    color: #e7ecff;
    font-size: 18px;
    line-height: 1.65;
}

.cvvl-lessons__info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.cvvl-info-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dfe5f1;
    border-radius: 14px;
    background: #f8fbff;
    box-shadow: 0 10px 26px rgba(31, 42, 68, 0.08);
}

.cvvl-info-card__label {
    margin: 0 0 12px;
    color: #2563a8;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.cvvl-info-card__title {
    margin: 0 0 8px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.28;
}

.cvvl-info-card__text {
    margin: 0;
    color: #586476;
    font-size: 15px;
    line-height: 1.55;
}

.cvvl-lessons__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 900px) {
    .cvvl-lessons__info-grid,
    .cvvl-lessons__grid,
    .cvvl-course__layout {
        grid-template-columns: 1fr;
    }

    .cvvl-course__header {
        display: block;
    }

    .cvvl-course__summary {
        display: inline-block;
        margin-top: 18px;
    }
}

@media (max-width: 600px) {
    .cvvl-lessons {
        padding: 16px 12px 28px;
    }

    .cvvl-lessons__hero {
        border-radius: 14px;
    }

    .cvvl-lessons__hero-content {
        padding: 28px 20px;
    }

    .cvvl-lessons__intro {
        font-size: 16px;
    }

    .cvvl-video-card__body,
    .cvvl-info-card {
        padding: 18px;
    }

    .cvvl-video-card__button {
        width: 100%;
    }

    .cvvl-admin-lessons__head,
    .cvvl-admin-lesson__top {
        display: block;
    }

    .cvvl-admin-lessons__head .button,
    .cvvl-admin-lesson__actions {
        margin-top: 10px;
    }

    .cvvl-course {
        padding: 14px;
        border-radius: 14px;
    }

    .cvvl-course__header {
        padding: 20px;
        border-radius: 12px;
    }

    .cvvl-course__description {
        font-size: 15px;
    }

    .cvvl-course__controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cvvl-course__control {
        width: 100%;
    }

    .cvvl-course__lesson-button {
        grid-template-columns: 32px minmax(0, 1fr) 18px;
        padding: 12px;
    }

    .cvvl-course__lesson-number {
        width: 30px;
        height: 30px;
    }
}
