/* Контейнер плеера */
.video_block {
    width: 100%;
    background: #000;
}

.player2 iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

/* Панель переключения серий */
.stdplayer_show_player {
    display: flex;
    align-items: center;
    background: #2d333f; /* Темный фон под цвет сайта */
    height: 40px;
    border-bottom: 1px solid #1a2535;
    position: relative;
    overflow: hidden;
}

/* Кнопки стрелок */
.prev_show_player, .next_show_player {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Полупрозрачный темный фон вместо белого */
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.prev_show_player:hover, .next_show_player:hover {
    background: #c55353; /* Красный при наведении, под цвет активной серии */
}

.prev_show_player svg, .next_show_player svg {
    width: 30px;
    height: 40px;
    fill: #fff; /* Теперь стрелки белые */
}

/* Контейнер прокрутки */
.scroll_container {
    flex-grow: 1;
    overflow-x: hidden; /* Скрываем полосу прокрутки, листаем скриптом */
    white-space: nowrap;
}

/* Флекс-сетка для серий */
.items_flex {
    display: flex;
    flex-wrap: nowrap; /* Строго в одну линию */
    width: max-content;
}

/* Стили самой серии */
.epizode {
    flex: 0 0 auto;
    min-width: 225px;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    text-align: center;
    color: #d0dff2;
    font-size: 13px;
    background: #2d333f;
    border-right: 1px solid #1a1d23;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.epizode:hover {
    background: #2f5277;
    color: #fff;
}

/* Активная серия */
.active_epz_sh {
    background: #c55353 !important;
    color: #ffffff !important;
    font-weight: bold;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}
