.main-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.main-container .text-wrapper {
    font-family: var(--primary-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    gap: 8px;
}

.text-wrapper .names {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.names .title-name {
    font-size: 32px;
}

.title-name a {
    text-decoration: none;
    color: white;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1280px;
    max-height: 728px;
    height: 100%;
    border-radius: 2px;
    margin: 0 auto;
    border: 10px solid rgb(50, 50, 50);
    background-color: rgb(50, 50, 50);
}

.video-container {
    max-width: 1280px;
    aspect-ratio: 16/9;
    max-height: 720px;
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%;
    border-radius: 2px;
    height: 100%;
    aspect-ratio: 16/9;
    display: none;
}

.plyr {
    width: 100%;
    border-radius: 2px;
    height: 100%;
    aspect-ratio: 16/9;
    font-family: var(--primary-font) !important;
}

.plyr__custom-left-button {
    position: absolute;
    left: 15px; /* сверху плеера */
    bottom: 60px; /* справа */
    z-index: 10;
    display: flex;
    gap: 10px;
}

.plyr__custom-left-button button {
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 24px !important;
    border-radius: 12px;
    min-width: 180px;
    padding: 0 30px;
    height: 60px;
    cursor: pointer;
    font-family: var(--primary-font) !important;
    display: none;
}

.plyr__custom-left-button button:hover {
    background-color: rgba(0,0,0,0.8);
}

.plyr__custom-right-button {
    position: absolute;
    right: 15px; /* сверху плеера */
    bottom: 60px; /* справа */
    z-index: 10;
    display: flex;
    gap: 10px;
}

.plyr__custom-right-button a {
    text-decoration: none;
    color: white;
}

.plyr__custom-right-button button {
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 24px !important;
    border-radius: 12px;
    min-width: 180px;
    padding: 0 30px;
    height: 60px;
    cursor: pointer;
    font-family: var(--primary-font) !important;
    display: none;
}

.plyr__custom-right-button button:hover {
    background-color: rgba(0,0,0,0.8);
}

.video-preview {
    max-width: 1280px;
    aspect-ratio: 16/9;
    max-height: 720px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: absolute;
}

.video-preview img {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: black;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    outline: none;
    pointer-events: none;
}

.video-preview:hover .play-button {
    transform: translate(-50%, -50%) scale(1.05);
    background-color: rgba(0, 0, 0, 0.8);
}

.play-button svg {
    width: 100px;
    height: 100px;
}

.buttons-wrapper {
    display: flex;
    justify-content: space-evenly;
}

.buttons-wrapper a {
    text-decoration: none;
    color: white;
}

.buttons-wrapper .episodes-list {
    width: 100% !important;
    padding: 0 30px;
}

@media (max-width: 1300px) {
    .play-button {
        width: 100px;
        height: 100px;
    }

    .play-button svg {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 900px) {
    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 450px) {
    .names .title-name {
        font-size: 18px;
    }

    .names .episode-name {
        font-size: 16px;
    }

    .episode-order span {
        font-size: 16px;
    }

    .video-wrapper {
        border: 5px solid rgb(50, 50, 50)
    }

    .default-button {
        height: 45px;
        padding: 0 20px !important;
        min-width: 100px;
    }

    .transparent-button {
        height: 45px;
        width: 100px;
    }
}