/*
        body {
            font-family: Arial, sans-all;
            background-color: #0f0f0f;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }
*/
        .ytplaylist-container {

            font-family: Arial, sans-all;
            background-color: #0f0f0f;
            color: white;
            display: flex;
            justify-content: center;
            align-items: top;
            //min-height: 100vh;
            margin: 0;


            display: flex;
            gap: 20px;
            width: 90%;
            max-width: 1200px;
            background: #1e1e1e;
            padding: 20px;
            border-radius: 12px;
        }

        /* Главное видео (слева) */
        .main-video {
            flex: 2;
        }

        .main-video img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            border-radius: 8px;
            display: block;
        }

        /* Список превью (справа) */
        .ytplaylist-sidebar {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 396px;
            overflow-y: auto;
            padding-right: 5px;
        }

        /* Стили для элементов списка */
        .video-item {
            display: flex;
            gap: 10px;
            cursor: pointer;
            transition: background 0.3s;
            padding: 0px;
            border-radius: 4px;
        }

        .video-item:hover {
            background: #3f3f3f;
        }

        .video-item img {
            width: 120px;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            border-radius: 4px;
        }

        .video-info {
            font-size: 14px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        /* Скроллбар */
        .ytplaylist-sidebar::-webkit-scrollbar {
            width: 6px;
        }
        .ytplaylist-sidebar::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 10px;
        }

        /* Адаптивность для мобилок */
        @media (max-width: 768px) {
            .ytplaylist-container {
                flex-direction: column;
            }
            .ytplaylist-sidebar {
                max-height: none;
            }
        }
