:root{
    --navy:#071827;
    --navy-soft:#0d2a40;
    --cyan:#38d9e6;
    --blue:#3b82f6;
    --white:#f8fdff;
    --muted:#9db4c6;
    --line:rgba(111,226,238,.24);
    --panel:rgba(7,24,39,.88);
    --success:#5eead4;
    --danger:#fb7185;
}

*{
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
    margin:0;
}

body{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:
        max(18px,env(safe-area-inset-top))
        max(18px,env(safe-area-inset-right))
        max(18px,env(safe-area-inset-bottom))
        max(18px,env(safe-area-inset-left));
    color:var(--white);
    background:var(--navy);
    font-family:
        Inter,
        Arial,
        sans-serif;
}

button,
input{
    font:inherit;
}

button{
    touch-action:manipulation;
}

.player-background{
    position:fixed;
    inset:0;
    z-index:-1;
    background:
        linear-gradient(
            90deg,
            rgba(3,15,25,.94) 0%,
            rgba(3,15,25,.78) 39%,
            rgba(3,15,25,.25) 68%,
            rgba(3,15,25,.08) 100%
        ),
        url(
            "/images/BYA-store-player-background.png"
        )
        center center / cover
        no-repeat;
}

#store-player{
    width:min(100%,780px);
}

.player-brand{
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:16px;
    padding:0 4px;
}

.brand-mark{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border:1px solid rgba(79,231,239,.66);
    border-radius:14px;
    color:#071827;
    background:
        linear-gradient(
            135deg,
            #6ef2ed,
            #4da7ff
        );
    font-weight:950;
    box-shadow:
        0 0 24px rgba(56,217,230,.25);
}

.player-brand strong,
.player-brand span{
    display:block;
}

.player-brand strong{
    font-size:17px;
}

.player-brand span{
    margin-top:3px;
    color:var(--muted);
    font-size:12px;
}

.connection-indicator{
    margin-left:auto;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--muted);
    background:rgba(255,255,255,.04);
    font-size:12px;
    font-weight:800;
}

.connection-indicator.online{
    color:var(--success);
    border-color:rgba(94,234,212,.38);
}

.connection-indicator.blocked{
    color:var(--danger);
    border-color:rgba(251,113,133,.42);
}

.player-card{
    padding:clamp(24px,5vw,44px);
    border:1px solid var(--line);
    border-radius:28px;
    background:
        linear-gradient(
            145deg,
            rgba(12,42,62,.9),
            var(--panel)
        );
    box-shadow:
        0 28px 80px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.05),
        0 0 35px rgba(56,217,230,.08);
    backdrop-filter:blur(20px);
}

.centered{
    text-align:center;
}

.hidden{
    display:none !important;
}

h1,
h2,
p{
    margin-top:0;
}

h1{
    margin-bottom:13px;
    font-size:clamp(27px,6vw,40px);
    line-height:1.1;
}

.centered p{
    max-width:570px;
    margin-right:auto;
    margin-left:auto;
    color:var(--muted);
    line-height:1.65;
}

.eyebrow{
    margin-bottom:14px;
    color:var(--cyan);
    font-size:12px;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.loading-ring{
    width:62px;
    height:62px;
    margin:0 auto 24px;
    border:4px solid rgba(255,255,255,.08);
    border-top-color:var(--cyan);
    border-radius:50%;
    animation:spin .9s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.pairing-code{
    margin:27px auto 16px;
    color:#dfffff;
    font-size:clamp(44px,12vw,78px);
    font-weight:950;
    letter-spacing:.16em;
    line-height:1;
    text-shadow:
        0 0 18px rgba(56,217,230,.55);
}

.muted{
    color:var(--muted);
    font-size:13px;
}

.network-lock-note{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin:25px 0;
    padding:16px;
    border:1px solid rgba(94,234,212,.22);
    border-radius:14px;
    color:#c9fffa;
    background:rgba(94,234,212,.06);
    font-size:13px;
    line-height:1.5;
}

.network-lock-note span{
    color:var(--muted);
}

.primary-button,
.secondary-button{
    min-height:50px;
    padding:13px 20px;
    border:0;
    border-radius:12px;
    font-weight:850;
    cursor:pointer;
}

.primary-button{
    color:#061827;
    background:
        linear-gradient(
            135deg,
            #65ede7,
            #5ca7ff
        );
}

.secondary-button{
    color:#c9faff;
    border:1px solid rgba(56,217,230,.34);
    background:rgba(56,217,230,.08);
}

.blocked-icon{
    width:70px;
    height:70px;
    display:grid;
    place-items:center;
    margin:0 auto 22px;
    border:2px solid var(--danger);
    border-radius:50%;
    color:var(--danger);
    font-size:36px;
    font-weight:900;
}

.player-location{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:30px;
}

.player-location span{
    display:block;
    margin-bottom:7px;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.player-location h1{
    margin:0;
}

.secure-badge{
    padding:9px 12px;
    border:1px solid rgba(94,234,212,.3);
    border-radius:999px;
    color:var(--success);
    background:rgba(94,234,212,.07);
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
}

.now-playing{
    display:grid;
    grid-template-columns:160px 1fr;
    gap:28px;
    align-items:center;
    padding:20px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:22px;
    background:rgba(255,255,255,.035);
}

.category-art{
    aspect-ratio:1;
    display:grid;
    place-items:center;
    border:1px solid rgba(56,217,230,.25);
    border-radius:22px;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(92,231,235,.34),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #123d55,
            #0a2032
        );
    box-shadow:
        inset 0 0 35px rgba(56,217,230,.08);
}

.audio-wave{
    height:55px;
    display:flex;
    align-items:center;
    gap:7px;
}

.audio-wave i{
    width:7px;
    height:20px;
    border-radius:999px;
    background:
        linear-gradient(
            #68efe8,
            #5b9dff
        );
}

.player-card.playing .audio-wave i{
    animation:wave .85s ease-in-out infinite alternate;
}

.player-card.playing .audio-wave i:nth-child(2){
    animation-delay:.15s;
}

.player-card.playing .audio-wave i:nth-child(3){
    animation-delay:.3s;
}

.player-card.playing .audio-wave i:nth-child(4){
    animation-delay:.1s;
}

.player-card.playing .audio-wave i:nth-child(5){
    animation-delay:.22s;
}

@keyframes wave{
    from{
        height:17px;
    }

    to{
        height:55px;
    }
}

.now-playing-copy span{
    display:block;
    margin-bottom:8px;
    color:var(--cyan);
    font-size:12px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.now-playing-copy h2{
    margin-bottom:9px;
    font-size:clamp(23px,5vw,36px);
}

.now-playing-copy p{
    margin:0;
    color:var(--muted);
}

.player-controls{
    display:flex;
    align-items:center;
    gap:25px;
    margin-top:28px;
}

.play-button{
    width:76px;
    height:76px;
    flex:0 0 auto;
    border:0;
    border-radius:50%;
    color:#051722;
    background:
        linear-gradient(
            135deg,
            #6cf2eb,
            #65a6ff
        );
    font-size:30px;
    cursor:pointer;
    box-shadow:
        0 12px 30px rgba(56,217,230,.22);
}

.volume-area{
    flex:1;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:12px;
    align-items:center;
}

.volume-area label,
.volume-area span{
    color:var(--muted);
    font-size:12px;
    font-weight:800;
}

.volume-area input{
    width:100%;
    accent-color:var(--cyan);
}

.player-message{
    margin-top:25px;
    padding:13px 15px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:12px;
    color:var(--muted);
    background:rgba(255,255,255,.035);
    font-size:13px;
    line-height:1.5;
}

.player-message.error{
    color:#fecdd3;
    border-color:rgba(251,113,133,.28);
    background:rgba(251,113,133,.07);
}

.player-message.success{
    color:#ccfbf1;
    border-color:rgba(94,234,212,.25);
}

.player-footer{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-top:18px;
    color:var(--muted);
    font-size:11px;
}

.text-button{
    padding:0;
    border:0;
    color:var(--cyan);
    background:transparent;
    font-weight:800;
    cursor:pointer;
}

@media(max-width:620px){
    body{
        display:block;
    }

    #store-player{
        margin:0 auto;
    }

    .player-brand{
        margin-top:4px;
    }

    .player-card{
        border-radius:22px;
    }

    .now-playing{
        grid-template-columns:1fr;
        text-align:center;
    }

    .category-art{
        width:min(100%,210px);
        margin:0 auto;
    }

    .player-location{
        flex-direction:column;
    }

    .player-controls{
        align-items:center;
        flex-direction:column;
    }

    .volume-area{
        width:100%;
    }

    .pairing-code{
        letter-spacing:.09em;
    }
}


/*
 * BYA STORE PLAYER RETAIL BACKGROUND V1
 */
@media (min-width:900px){
    #store-player{
        width:min(48vw,680px);
        justify-self:start;
        margin-left:clamp(0px,3vw,54px);
    }
}

@media (max-width:899px){
    .player-background{
        background:
            linear-gradient(
                rgba(3,15,25,.84),
                rgba(3,15,25,.91)
            ),
            url(
                "/images/BYA-store-player-background.png"
            )
            70% center / cover
            no-repeat;
    }
}


/* =========================================================
   BYA STORE PLAYER CATEGORY AND QUICK PLAY V1
   ========================================================= */

.store-control-section{
    margin-top:20px;
    padding:20px;
    border:1px solid rgba(169,191,208,.2);
    border-radius:16px;
    background:rgba(2,17,28,.52);
}

.control-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:15px;
}

.control-heading span{
    display:block;
    margin-bottom:5px;
    color:#6ef2ed;
    font-size:11px;
    font-weight:900;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.control-heading h3{
    margin:0;
    color:#f8fbff;
    font-size:20px;
}

.control-heading > strong{
    flex:none;
    padding:7px 10px;
    border:1px solid rgba(56,217,230,.27);
    border-radius:999px;
    color:#bceff4;
    background:rgba(56,217,230,.08);
    font-size:11px;
}

.store-category-list{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:10px;
}

.store-category-button{
    min-height:56px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 13px;
    border:1px solid rgba(169,191,208,.2);
    border-radius:12px;
    color:#dcebf5;
    background:rgba(255,255,255,.045);
    text-align:left;
    font-size:13px;
    font-weight:850;
    cursor:pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.store-category-button:hover,
.store-category-button:focus-visible{
    transform:translateY(-1px);
    border-color:rgba(56,217,230,.55);
    background:rgba(56,217,230,.1);
}

.store-category-button.current{
    color:#071827;
    border-color:#f5c86a;
    background:
        linear-gradient(
            135deg,
            #f5c86a,
            #ffe8a6
        );
}

.store-category-button:disabled{
    opacity:.55;
    cursor:wait;
    transform:none;
}

.category-button-icon{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    flex:none;
    border-radius:9px;
    background:rgba(255,255,255,.1);
    font-size:17px;
}

.current .category-button-icon{
    background:rgba(7,24,39,.1);
}

.quick-play-introduction{
    margin:0 0 15px;
    color:#a9bfd0;
    font-size:13px;
    line-height:1.55;
}

.quick-message-list{
    display:grid;
    gap:10px;
}

.quick-message-button{
    width:100%;
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:12px 15px;
    border:1px solid rgba(245,200,106,.25);
    border-radius:12px;
    color:#f8fbff;
    background:rgba(245,200,106,.07);
    text-align:left;
    cursor:pointer;
}

.quick-message-button:hover,
.quick-message-button:focus-visible{
    border-color:rgba(245,200,106,.58);
    background:rgba(245,200,106,.13);
}

.quick-message-button:disabled{
    opacity:.52;
    cursor:not-allowed;
}

.quick-message-name{
    display:block;
    font-weight:900;
}

.quick-message-type{
    display:block;
    margin-top:4px;
    color:#a9bfd0;
    font-size:11px;
    text-transform:capitalize;
}

.quick-message-action{
    flex:none;
    color:#f5c86a;
    font-size:12px;
    font-weight:950;
}

@media (max-width:620px){
    .store-category-list{
        grid-template-columns:1fr;
    }

    .control-heading{
        display:block;
    }

    .control-heading > strong{
        display:inline-block;
        margin-top:10px;
    }
}
