.body {
    font-family: "PT Sans";
    font-weight: 400;
    font-style: normal;
}
.modal {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    background: rgba(50, 42, 50, 0.9);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal__close {
    text-align: center;
    margin-bottom: 14px;
    cursor: pointer;
}
.modal__close svg {
    fill: #FFB2FF;
    transition: all 0.2s ease-in-out;
}

.modal__body {
    /* width: 800px; */
}
.modal__content {
    width: calc(800px - 86px);
    /* width: 100%; */
    padding: 30px 43px 43px;
    background: #1F212E;
    border-radius: 10px;
}

.modal__title {
    color: #EFEFF9;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
    line-height: 41px;
    text-align: center;
}

.modal__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.modal__item {
    font-family: "PT Sans";
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}

.modal__item-episode {
    text-decoration: none;
}

.modal__item-img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
    max-height: 124px;
}

.modal__item-img::after {
    content: "";
    position: absolute;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    left: 0;
    top: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    z-index: 2;
    transition: all 0.2s ease-in-out;
}






.modal__item-title {
    font-family: Arial;
    font-weight: 700;
    font-size: 15px;
    line-height: 17px;
    color: #CED2DE;
    margin-bottom: 6px;
    transition: all 0.2s ease-in-out;
}

.modal__item-number {
    font-family: Arial;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #FFB2FF;
    margin-bottom: 6px;
    transition: all 0.2s ease-in-out;
}

.modal__item-sound {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.modal__item-sound .item {
    padding: 2px 9px;
    background: #414353;
    border-radius: 5px;
    color: #FFB2FF;
    font-family: Arial;
    font-size: 11px;
    line-height: 12px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
@media (min-width: 801px) {
    .modal__close:hover svg {
        fill: #EFEFF9;
    }
    .modal__item-episode:hover .modal__item-img::after {
        border: 2px solid #FFB2FF;
    }
    .modal__item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1.55 / 1;
    }
    .modal__item-episode:hover .modal__item-title {
        color: #FFB2FF;
    }
    .modal__item-episode:hover .modal__item-number {
        color: #EFEFF9;
    }
    .modal__item-sound .item:hover {
        color: #1F212F;
        background: #FFB2FF;
    }
}

@media (max-width: 800px) {
    .modal {
        padding-top: 0;
    }
    .hide {
        display: none !important;
    }
    .modal__close {
        position: absolute;
        top: 30px;
        right: 10px;
        z-index: 100;
        margin-bottom: 0;
    }
    .modal__close svg {
        width: 14px;
        height: 14px;
    }
    .modal__title {
        font-size: 26px;
        margin-bottom: 10px;
        text-align: start;
        line-height: 30px;
    }
    .modal__content {
        width: 100%;
        height: 100%;
        padding: 20px 10px;
        border-radius: 0;
    }
    .modal__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-height: calc(100% - 40px);
        overflow-y: auto;
    }
    .modal__item-img {
        max-height: 94px;
        aspect-ratio: auto;
    }
    .modal__item-img img {
        width: 100%;
        height: 94px;
        object-fit: cover;
        aspect-ratio: auto;
    }
}