/* root */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*>{
    transition: .3s;
    padding: 0;
    margin: 0;
}
body{
    font-family: 'Manrope', sans-serif;
}
.flex{
    display: flex;
}
.gap-16{
    gap: 16px;
}
.items-start{
    align-items: start;
}
.justify-start{
    justify-content: start;
}
.items-center{
    align-items: center;
}   
.justify-center{
    justify-content: center;
}
.justify-between{
    justify-content: space-between;
}
.gap-8{
    gap: 8px;
}
a{
    text-decoration: none;
}
ul.nav{
    display: flex;
    gap: 32px;
    list-style: none;
    justify-content: center;
    align-items: center;
}
ul.nav li a{
    color: #fff;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* header */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0px;
    background: #0D0D0D;
}
.container{
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.menu_item{
    display: flex;
    width: 100%;
    max-width: 20%;
    height: 340px;
    border-radius: 8px;
    border: 1px solid #202020;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.menu_item_text{
    position: absolute;
    z-index: 4;
    bottom: 16px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
    width: 100%;
    height: 100%;
}
.menu_item_text h2{
    color: #d6d6d6;
    font-size: 24px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 1.2;
}
.menu_item span{
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 100%;
    margin-right: -2px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.01) 0%,
        rgba(40, 40, 40, 0.1) 67%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(40px);
    z-index: 3;
    animation: move 6s linear infinite;
}
.menu_item span:last-of-type{
    margin-right: 0;
}
@keyframes move{
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.menu_item[data-name="phonk"] .figure_hover{
    position: absolute;
    opacity: 0;
    transition: .3s;
    z-index: 2;
    width: 80%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(
        180deg,
        #c00000 40%,
        #ff0000 100%
    );
    border: 10px solid #FF0000;
}
.menu_item[data-name="phonk"] .figure{
    position: absolute;
    z-index: 1;
    width: 80%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(
        180deg,
        #be0808 40%,
        #750101 100%
    );
    border: 10px solid #FF0000;
}
.menu_item[data-name="40hz"] .figure_hover{
    position: absolute;
    opacity: 0;
    transition: .3s;
    z-index: 2;
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: radial-gradient(
        at top,
        rgba(13, 13, 13, 1) 0%,
        rgba(43, 73, 112, 0.05) 21%,
        rgba(0, 149, 255, 1) 100%
    );
}
.menu_item[data-name="40hz"] .figure{
    position: absolute;
    opacity: 1;
    transition: .3s;
    z-index: 1;
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: radial-gradient(
        at top,
        rgba(13, 13, 13, 1) 0%,
        rgba(7, 13, 13, 0.05) 21%,
        rgba(0, 149, 255, 1) 100%
    );
}
.menu_item[data-name="lofi"] .figure_hover{
    position: absolute;
    opacity: 0;
    transition: .3s;
    z-index: 2;
    width: 80%;
    height: auto;
    aspect-ratio: 1;
    top: 0;
    left: 0;
    background: linear-gradient(to top, #1a3612, #2CB702);
    transform: rotate(-45deg);
}
.menu_item[data-name="lofi"] .figure{
    position: absolute;
    opacity: 1;
    transition: .3s;
    z-index: 1;
    width: 80%;
    height: auto;
    aspect-ratio: 1;
    top: 0;
    left: 0;
    background: linear-gradient(to top, #0D0D0D, #239101);
    transform: rotate(-45deg);
}
.menu_item[data-name="piano"] .figure_hover{
    position: absolute;
    opacity: 0;
    transition: .3s;
    z-index: 2;
    width: 90%;
    height: auto;
    aspect-ratio: 1;
    top: 5%;
    right: 0;
    background: linear-gradient(135deg, #7b2cff, #a855f7);
    clip-path: polygon(
        100% 0%,   /* правый верх */
        100% 100%, /* правый низ */
        0% 50%     /* левый центр */
    );
}
.menu_item[data-name="piano"] .figure{
    position: absolute;
    opacity: 1;
    transition: .3s;
    z-index: 1;
    width: 90%;
    height: auto;
    aspect-ratio: 1;
    top: 5%;
    right: 0;
    background: linear-gradient(135deg, #4c2392, #7b42b1);
    clip-path: polygon(
        100% 0%,   /* правый верх */
        100% 100%, /* правый низ */
        0% 50%     /* левый центр */
    );
}
.menu_item[data-name="hiphop"] .figure_hover{
    position: absolute;
    opacity: 0;
    transition: .3s;
    z-index: 2;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #FF8000, #7a1d00);
}
.menu_item[data-name="hiphop"] .figure{
    position: absolute;
    opacity: 1;
    transition: .3s;
    z-index: 1;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #b65b00, #420f00);
}
.menu_item:hover .figure_hover{
    opacity: 1;
}
.menu_item:hover h2{
    color: #fff;
}
.menu_item.menu_item_active .figure_hover{
    opacity: 1;
}
.menu_item.menu_item_active .menu_item_text h2{
    color: #fff;
}
.logo svg{
    fill: #fff;
    transition: fill 0.35s ease;
}
.logo h2{
    margin-left: -20px;
    color: #fff;
    font-size: 24px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}
.logo h2 span{
    color: #000;
    margin-right: 10px;
}
.radiowaves_list{
    position: absolute;
    opacity: 1;
    top: -100%;
    padding: 100px 0px 24px 0px;
    border-bottom: 1px solid #202020;
    width: 100%;
    transition: .3s;
    background: #0D0D0D;
    z-index: 90;
}
.menu_uslugi_active{
    top: 0;
}

/* main */
main{
    height: 100vh;
    width: 100%;
    background: #0D0D0D;
    position: relative;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
}
#bgLayer{
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #0D0D0D;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#bgVideo,
#bgYouTube{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    transform: scale(1.2);
}
#bgVideo{
    object-fit: cover;
}
#bgVideo.visible,
#bgYouTube.visible{
    opacity: 1;
}
.bg-preloader{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(13, 13, 13, 0.35);
}
.bg-preloader.visible{
    opacity: 1;
    visibility: visible;
}
main .container{
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

/* player_ux */
.player_ux{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 85;
    background: #0D0D0D;
    padding: 20px 0px;
    border-top: 1px solid #202020;
    pointer-events: auto;
}
.player_ux-bar{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.player_ux-slot--start{
    justify-self: start;
}
.player_ux-slot--center{
    justify-self: center;
    text-align: center;
}
.player_ux-slot--end{
    justify-self: end;
}
.player-bg-field{
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-bg-field__label{
    color: #a3a3a3;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.bg-select{
    min-width: 160px;
    max-width: min(42vw, 280px);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #e8e8e8;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.bg-select:hover{
    border-color: #3a3a3a;
}
.bg-select:focus{
    outline: none;
    border-color: #0095FF;
}
/* Зона ховера над кнопкой: padding+отриц. margin, чтобы ползунок не пропадал при движении к нему */
.sound-control{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-top: 132px;
    margin-top: -132px;
    width: 48px;
}
.volume-popover{
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2;
}
/* Только ховер по зоне или фокус на ползунке — не весь .sound-control:focus-within,
   иначе после клика по кнопке звука фокус на кнопке держит шкалу открытой */
.sound-control:hover .volume-popover,
.volume-popover:focus-within{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* Тач-устройства: ползунок всегда доступен */
@media (hover: none), (pointer: coarse){
    .volume-popover{
        display: none !important;
    }
}
.volume-slider{
    --volume-pct: 100%;
    --track: #e8e8e8;
    --fill: #0095FF;
    --thumb: #0095FF;
    width: 120px;
    height: 40px;
    margin: 0;
    padding: 0;
    transform: rotate(-90deg);
    transform-origin: center center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
.volume-slider:focus{
    outline: none;
}
.volume-slider:focus-visible{
    outline: 2px solid var(--fill);
    outline-offset: 4px;
    border-radius: 4px;
}
.volume-slider::-webkit-slider-runnable-track{
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        to right,
        var(--fill) 0%,
        var(--fill) var(--volume-pct),
        var(--track) var(--volume-pct),
        var(--track) 100%
    );
}
.volume-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--thumb);
    border: 2px solid rgba(13, 13, 13, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.volume-slider::-moz-range-track{
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        to right,
        var(--fill) 0%,
        var(--fill) var(--volume-pct),
        var(--track) var(--volume-pct),
        var(--track) 100%
    );
}
.volume-slider::-moz-range-thumb{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--thumb);
    border: 2px solid rgba(13, 13, 13, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.sound-btn{
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    color: inherit;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.sound-btn .sound-icon{
    display: block;
    height: 20px;
    width: auto;
    max-width: 32px;
    opacity: .6;
    transition: opacity 0.2s ease;
}
.sound-control:hover .sound-btn .sound-icon,
.volume-popover:focus-within ~ .sound-btn .sound-icon{
    opacity: 1;
}
.share-btn{
    height: 32px;
    width: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.share-btn img{
    height: 24px;
    width: 24px;
    filter: grayscale(1) brightness(2);
}
.share-btn:hover img{
    filter: grayscale(0) brightness(100);
}
.boosty_btn{
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.boosty_btn img{
    width: 24px;
    height: auto;
}

/* modal */
.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000000af;
    padding: 20px;
}
.modal_active{
    display: flex;
}
.modal_container{
    max-width: 500px;
    border-radius: 8px;
    border: 1px solid #222;
    background: linear-gradient(to bottom, #0D0D0D, #41180A);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 8px;
    padding: 24px;
    position: relative;
    max-height: 60vh;
    overflow-y: auto;
}

.modal_container h1{
    margin-bottom: 16px;
    font-size: 24px;
    color: #e0e0e0;
    max-width: 90%;
}
.modal_container h2{
    font-size: 20px;
    margin-top: 16px;
    color: #e0e0e0;
}
img.toggle_modal{
    filter: invert(1);
    opacity: .7;
    position: absolute;
    top: 15px;
    right: 15px;
    height: 24px;
    cursor: pointer;
}
img.toggle_modal:hover{
    opacity: 1;
}
.modal_container p{
    color: #b6b6b6;
}
.modal_container a{
    text-decoration: underline;
    color: #FF4400;
}