#diary {
    padding: 0;
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

#diary video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.diary_gradient {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 112px;
    width: 100%;
    height: 1080px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(19, 16, 14, 0.00) 0%, #13100E 100%), linear-gradient(180deg, rgba(19, 16, 14, 0.00) 63.5%, #13100E 100%), linear-gradient(180deg, #13100E 0%, rgba(19, 16, 14, 0.00) 62.5%);
}

.diary_title {
    max-width: 840px;
}

.diary_aftertitle {
    max-width: 770px;
}

.radio_frame_block {
    width: 576px;
    height: 260px;
    padding: 32px;
    border: 3px solid rgba(230, 184, 67, 0.60);
    background: linear-gradient(251deg, #191613 11.34%, #29241F 96.12%), #FFF;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translate(0, 100px);
    transition: all 0.3s ease;
    opacity: 0;
}

.animate-on-scroll.radio_frame_block {
    transform: translate(0, 0);
    opacity: 0;
}

.radio_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.radio_text_1 {
    color: #FFF;
    text-align: center;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.30);
    font-family: 'OpenSans SemiBold';
    font-size: 22px;
    line-height: 26px;
    letter-spacing: -0.176px;
}

.radio_text_2 {
    color: #FFF;
    text-align: center;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.30);
    font-family: 'OpenSans SemiBold';
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.54px;
    text-transform: uppercase;
    opacity: 0.24;
}

.radio_title {
    max-width: 870px;
}

.radio_aftertitle {
    max-width: 770px;
}

.radio_controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio_time {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.radio_time span {
    color: #4E4630;
    text-align: right;
    font-family: 'OpenSans Bold';
    font-size: 12px;
    line-height: normal;
}

.radio_progress {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.radio_progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 12px;
    background: #2B2923;
    position: relative;
    cursor: pointer;
}

.radio_now {
    background: #B0944D;
    width: 0;
    height: 10px;
}

.radio_drag {
    width: 24px;
    height: 24px;
    background: #B0944D;
    position: absolute;
    border-radius: 50%;
    top: -8px;
    left: 0;
    cursor: pointer;
}

.radio_controls-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: space-between;
}

.radio-playpause {
    background: #B0944D;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    cursor: pointer;
}

.player_speed {
    background: inherit;
    color: #FFF6DC;
    text-align: right;
    font-family: 'OpenSans Medium';
    font-size: 16px;
    line-height: normal;
    cursor: pointer;
}

.radio-mute {
    background: inherit;
    cursor: pointer;
}

.radio-mute__progress {
    border-radius: 12px;
    background: #2B2923;
    height: 5px;
    width: 73px;
    position: relative;
}

.radio-mute-now {
    border-radius: 12px 0 0 12px;
    background: #B0944D;
    height: 5px;
    width: 50px;
}

.radio-mute_drag {
    width: 9px;
    height: 9px;
    background: #B0944D;
    position: absolute;
    border-radius: 50%;
    top: -2px;
    left: 42px;
    cursor: pointer;
}

.radio_volume {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.radio-speed {
    display: flex;
    justify-content: flex-end;
}

.for_player {
    width: 429px;
    height: 92px;
    position: fixed;
    right: 0px;
    bottom: 64px;
    z-index: 1000;
    transform: translateX(370px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row; 
    gap: 12px;
    align-items: center;
    opacity: 0;
}

.for_player_active {
    transform: translateX(140px);
}

.player {
    width: 276px;
    height: 52px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    position: relative;
}

.player_controls {
    width: 52px;
    height: 52px;
    border: 2px solid #AF934C;
    background: linear-gradient(251deg, #191613 11.34%, #29241F 96.12%), #F9E1E2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.for_player_active .player_content {
    opacity: 1;
}

.player_content {
    display: flex;
    padding: 16px 22px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #AF934C;
    background: linear-gradient(251deg, #191613 11.34%, #29241F 96.12%), #F9E1E2;
    height: 100%;
    width: 212px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player_controls:before {
    content: " ";
    background: #B0944D;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: 65px;
    height: 65px;
    position: absolute;
    top: -8px;
    left: -8px;
    pointer-events: none;
    z-index: 1;
}

.play_pause {
    position: relative;
    z-index: 2;
}

.player:hover .player_hide {
    opacity: 1;
}

.for_player_active .player_hide svg {
    transform: rotate(0deg);
}

.player_hide svg {
    transform: rotate(180deg);
}

.player_hide {
    width: 52px;
    height: 52px;
    border: 2px solid #38342a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: -62px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #232323;
}

.volume_volume {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
}

.player_volume {
    width: 74px;
    height: 5px;
    background: #2B2923;
}

.volume_now {
    background: #B0944D;
    width: 54px;
    height: 5px;
}

.radio-mute_drag {
    width: 9px;
    height: 9px;
    background: #B0944D;
    position: absolute;
    border-radius: 50%;
    top: -2px;
    left: 42px;
    cursor: pointer;
}

.player_play {
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 1570px) {

    .for_player {
        transform: translateX(345px);
    }

    .for_player_active {
        transform: translateX(140px);
    }
}

@media (max-width: 1430px) {

    .radio_title {
        max-width: 700px;
    }
}

@media (max-width: 790px) {

    #diary video {
        height: 80%;
    }
}

@media (max-width: 630px) {

    .diary_fon {
        background: url(../assets/pazrabi_mini.jpg) bottom / contain no-repeat;
        width: 100%;
        min-height: 70%;
        position: absolute;
        z-index: -1;
    }

    .radio_frame_block {
        width: calc(100% - 32px);
        padding: 24px;
        height: fit-content;
    }

    .radio_text_1 {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.144px;
    }

    .radio-mute__progress {
        display: none;
    }

    .for_player {
        display: none;
        pointer-events: none;
    }

    #diary video {
        height: 70%;
    }
}

@media (max-width: 460px) {

    #diary video {
        top: 260px;
        height: 50%;
    }

    .diary_gradient {
        background: radial-gradient(80% 20% at 50% 50%, #13100e00 0%, #13100E 100%), linear-gradient(180deg, #13100e00 63.5%, #13100E 100%), linear-gradient(180deg, #13100E 0%, #13100e00 62.5%);
    }
}