.video-player {
    display: flex;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    flex-grow: 1;
    padding-top: 56.25%;
    /* Соотношение 16:9 */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.menu-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    transition: all 0.3s ease;
}

.menu-toggle .count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #479aff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-sidebar {
    width: 300px;
    background: #fff;
    border-left: 1px solid #eee;
    transition: width 0.3s ease;
    overflow: hidden;
}

.video-list{
    padding-left: 6px!important;
}

.video-sidebar.collapsed {
    width: 0;
}

.video-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto;
}

.video-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-list li:hover {
    background: #17a4e08c !important;
    /* position: absolute; */
}

.video-list li.active {
    background: #e6f7ff;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-player {
        flex-direction: column;
    }

    .video-container {
        padding-top: 56.25%;
    }

    .video-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        max-height: 200px;
    }

    .video-sidebar.collapsed {
        width: 100%;
        max-height: 0;
    }
}