body{
    margin:0;
    font-family:Arial;
    background: radial-gradient(circle at top,#1db95433,#000);
    color:#fff;
    overflow-x:hidden;
}

/* ===== GALAXY ROOT ===== */
.galaxy{
    position:fixed;
    inset:0;
    z-index:-3;
    overflow:hidden;
    background: radial-gradient(circle at 50% 20%, #1b0033, #000);
    transform:scale(calc(1 + var(--pulse)));
    transition: transform 0.1s;
}

/* ===== NEBULA ELECTRIQUE ===== */
.nebula{
    position:absolute;
    inset:-200px;

    background:
        radial-gradient(circle at 30% 40%, rgba(29,185,84,0.20), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(155,81,224,0.20), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0,200,255,0.20), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 25%);

    filter:blur(50px);

    animation:
        nebulaMove 18s ease-in-out infinite alternate,
        electricFlash 4s infinite;
}

@keyframes electricFlash{

    0%,85%,100%{
        opacity:0.8;
        filter:blur(50px) brightness(1);
    }

    87%{
        opacity:1;
        filter:blur(35px) brightness(2.5);
    }

    89%{
        opacity:0.6;
        filter:blur(60px) brightness(1);
    }

    92%{
        opacity:1;
        filter:blur(40px) brightness(3);
    }

}

/* ===== STAR LAYERS CONTAINER ===== */
.space{
    position:fixed;
    inset:0;
    z-index:-2;
    pointer-events:none;
}

/* ===== FLASH ECLAIR ===== */

.space::after{

content:"";

position:absolute;

inset:0;


background:
linear-gradient(
120deg,
transparent 40%,
rgba(255,255,255,0.8) 50%,
transparent 60%
);


opacity:0;

animation:lightning 7s infinite;

}


@keyframes lightning{


0%,70%,100%{
opacity:0;
transform:translateX(-100%);
}


72%{
opacity:0.8;
}


73%{
opacity:0;
}


75%{
opacity:0.5;
transform:translateX(100%);
}


76%{
opacity:0;
}

}

/* ===== STARS BASE (FIX UNIQUE KEYFRAME) ===== */
.starss, .starss2, .starss3{
    position:absolute;
    inset:0;
    width:200%;
    height:200%;
    background-repeat:repeat;
    pointer-events:none;
    animation: starsMove 25s linear infinite, flicker 3s ease-in-out infinite;
}

.starss::before,
.starss2::before,
.starss3::before{
    content:"";
    position:absolute;
    inset:0;
    background: inherit;
    animation: sparkle 1.8s infinite alternate;
    opacity:0.8;
    mix-blend-mode: screen;
}

@keyframes sparkle{
    0%{opacity:0.2; filter:blur(0px);}
    50%{opacity:1; filter:blur(0.6px);}
    100%{opacity:0.4; filter:blur(0px);}
}

.starss{
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 90px, #ffffff, transparent),
        radial-gradient(2px 2px at 150px 50px, #ffffff, transparent);
    opacity:1;
    background-size: 300px 300px;
}

.starss2{
    background-image:
        radial-gradient(2px 2px at 40px 60px, #ffffff, transparent),
        radial-gradient(2px 2px at 120px 140px, #ffffff, transparent);
    opacity:0.8;
    background-size: 300px 300px;
}

.starss3{
    background-image:
        radial-gradient(3px 3px at 60px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 200px 200px, #ffffff, transparent);
    opacity:0.6;
    background-size: 300px 300px;
}

/* déplacement UNIQUE */
@keyframes starsMove{
    from { transform: translateY(0); }
    to { transform: translateY(-800px); }
}

/* ===== TWINKLE FIX ===== */
.twinkle{
    position:absolute;
    inset:0;
    background: transparent;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker{
    0%,100%{opacity:0.7;}
    50%{opacity:1;}
}

/* ===== SHOOTING STARS FIX ===== */
.shooting-stars{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.shooting-stars::before,
.shooting-stars::after{
    content:"";
    position:absolute;
    top:-10%;
    left:100%;
    width:2px;
    height:120px;
    background:linear-gradient(white, transparent);
    opacity:0;
    transform:rotate(45deg);
    animation: shoot 10s linear infinite;
}

.shooting-stars::after{
    left:20%;
    animation-delay:3.5s;
}

@keyframes shoot{
    0%{opacity:0; transform:translate(0,0) rotate(45deg);}
    10%{opacity:1;}
    100%{opacity:0; transform:translate(-800px,800px) rotate(45deg);}
}

body.playing .starss,
body.playing .starss2,
body.playing .starss3{
    filter: brightness(1.8) contrast(1.2);
}

/* ===== MUSIC PULSE ===== */
body.playing .galaxy{
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse{
    0%{filter:brightness(1)}
    50%{filter:brightness(2.4)}
    100%{filter:brightness(1)}
}

/* NAVBAR */
.navbar{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:10px 0px;
    background:#000;
    position:fixed;
    width:100%;
    top:0;
    z-index:100;
    box-sizing:border-box;
}

.navbar a{
    color:#fff;
    font-size:10px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.navbar a:hover{
    color:#0FC9DA;
}

/* TOP BAR MOBILE */
.topbar{
    display:none;
    justify-content:space-between;
    align-items:center;
    padding:5px;
    background:#000;
    position:sticky;
    top:0;
    z-index:100;
}

.burger{
    font-size:30px;
    cursor:pointer;
    color:#0FC9DA;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:bold;
    color:#0FC9DA;
}

.logo-img {
    width:250px;
    max-width:100%;
    height:auto;
    display:block;
}

/* SIDEBAR */
.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:220px;
    height:100vh;
    background:#000;
    padding:10px;
    transition:0.3s;
    font-size:20px;
}

.sidebar a{
    display:block;
    color:#aaa;
    text-decoration:none;
    margin:15px 0;
}

.sidebar a:hover{
    color:#fff;
}

/* MAIN */
.main{
    margin-left:240px;
    padding:10px;
    padding-bottom:120px; /* IMPORTANT */
}

/* LOGIN BOX */
.container{
    height:70vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding-top:10px;
}

.box{
    background:#111;
    padding:20px;
    border-radius:15px;
    width:400px;
    box-shadow:0 0 20px #1db95422;
    text-align:center;
}

input{
    width:80%;
    padding:10px;
    margin-top:10px;
    border:none;
    border-radius:8px;
}

button{
    width:100%;
    padding:10px;
    margin-top:10px;
    background:
linear-gradient(
90deg,
transparent,
#FFD700,
#0FC9DA,
transparent
);
    border:none;
    color:#000;
    border-radius:50px;
    cursor:pointer;
    font-weight:bold;
}

button:hover{
    background:#0FC9DA;
}

small{
    opacity:0.6;
}

.intro{
    max-width:700px;
    margin:30px auto;
    background:#1b1b1b;
    padding:25px;
    border-radius:15px;
    color:#ddd;
    line-height:1.2;
    text-align:center;
}

.intro h2{
    color:#0FC9DA;
    margin-top:50px;
}

.intro strong{
    color:#fff;
    font-size:15px;
}

.merci{
    margin-top:5px;
    font-size:16px;
    color:#0FC9DA;
    font-weight:bold;
}

select{
    width:80%;
    padding:12px;
    margin-top:10px;
    border:none;
    border-radius:8px;
    background:#fff;
    font-size:12px;
}

.download-app{
    text-align:center;
    margin:10px 0;
}

.apk-btn{
    display:inline-block;
    padding:10px 20px;
    background:
linear-gradient(
90deg,
transparent,
#FFD700,
#0FC9DA,
transparent
);
    
    color:#000;
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
    border-radius:50px;
    box-shadow:0 8px 25px rgba(29,185,84,.35);
    transition:.25s;
}

.apk-btn:hover{
    transform:translateY(-3px) scale(1.03);
    box-shadow:0 12px 35px rgba(29,185,84,.55);
}

.apk-btn:active{
    transform:scale(.98);
}

/* ===== COMPTE A REBOURS PREMIUM ===== */

.premium-countdown{
    margin:30px auto 15px;
    padding:10px;
    background:rgba(0,0,0,.45);
    border:1px solid #0FC9DA;
    border-radius:18px;
    box-shadow:0 0 25px #1db95444;
    margin-top:90px;
}

.premium-countdown h3{
    color:#0FC9DA;
    margin-top:10px;
    margin-bottom:10px;
    font-size:22px;
}

.timer{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

.time-box{
    border-radius:12px;
    width:80px;
    padding:12px 5px;
}

.time-number{
    font-size:22px;
    font-weight:bold;
    color:#0FC9DA;
    text-shadow:0 0 10px #1db954;
}


.time-label{
    font-size:14px;
    color:#aaa;
    text-transform:uppercase;
}

.new-songs-alert{
    margin:10px auto;
    max-width:350px;
    padding:10px;
    background:
    linear-gradient(135deg,#FFD700,#0FC9DA);
    color:#000;
    font-weight:bold;
    border-radius:15px;
    text-align:center;
    box-shadow:
    0 0 15px rgba(255,215,0,0.5);
    animation:newSongPulse 2s infinite;
}

.nouveaux-titres {
    font-size:18px;
    color:#d4af37;
}


.total-titres {
    margin-top:8px;
    font-size:14px;
}

@keyframes newSongPulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.05);
    }

    100%{
        transform:scale(1);
    }

}

/* GRID RESPONSIVE */
.grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:20px;
}

/* Tablette */
@media (max-width:1200px){
    .grid{
        grid-template-columns:repeat(4, 1fr);
    }
}

@media (max-width:992px){
    .grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width:768px){
    .grid{
        grid-template-columns:repeat(2, 1fr);
        gap:5px;
    }
}

/* Petit mobile */
@media (max-width:480px){
    .grid{
        grid-template-columns:1fr;
    }
}

/* CARD */
.card{
    background:rgba(24,24,24,0.3);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(7px);
    padding:12px;
    border-radius:12px;
    transition:0.3s;
    border:2px solid rgba(255,255,255,0.08);
}

.card:hover{
    background:#282828;
}

.card img{
    width:100%;
    border-radius:10px;
}

.title{font-weight:bold;margin-top:8px;font-size:18px}
.artist{font-size:16px;color:#aaa}


.player{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:90px;
    background:rgba(18,18,18,.96);
    backdrop-filter:blur(15px);
    border-top:1px solid #333;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    z-index:9999;
    box-shadow:0 -5px 30px rgba(0,0,0,.6);
}

.player{
    backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.85);
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.player-left{
    display:flex;
    align-items:center;
    width:300px;
}

.cover-player{
    width:70px;
    height:70px;
    border-radius:10px;
    object-fit:cover;
    margin-right:15px;
    box-shadow:0 0 20px rgba(0,0,0,.5);
}

.player-info{

    overflow:hidden;

}

#song{
    font-weight:bold;
    font-size:18px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

#artist{
    color:#9d9d9d;
    font-size:14px;
    margin-top:5px;
}

.player-center{
    display:flex;
    align-items:center;
    gap:20px;
}

.control{
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#0FC9DA;
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.25s;
}

.control:hover{
    transform:scale(1.08);
    box-shadow:0 0 20px #1db954;
}

#audio{
    width:420px;
}

.vote-box{
    margin-top:10px;
}

.vote-btn{
    width:100%;
    margin-top:5px;
    background:#1db954;
    border:0;
    padding:8px;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    font-size:16px;
}

.vote-btn:hover{
    background:#17a74a;
}

.vote-msg{
    font-size:14px;
    margin-top:5px;
    color:#1db954;
}

input[type=range]{
    width:100%;
    accent-color:#1db954;
}

.range-value{
    text-align:center;
    font-size:12px;
    margin-top:5px;
    color:#1db954;
}

.stars{
    display:flex;
    justify-content:center;
    gap:4px;
    font-size:20px;
    cursor:pointer;
    margin:10px 0;
}

.star{
    color:#fff;
    transition:0.2s;
}

.star.active{
    color:#1db954;
    text-shadow:0 0 10px #1db95466;
}

.star:hover{
    transform:scale(1.2);
}

.share-btn{
    width:100%;
    margin-top:8px;
    padding:8px;
    border:0;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    font-size:16px;
    background:#0FC9DA;
    color:#fff;
    transition:.3s;
}

.share-btn:hover{
    background:#0087d4;
}

.mini-grid{
display:flex;
gap:5px;
overflow-x:auto;
padding:10px 0 20px 0;
justify-content:center;
}

.mini-card{
min-width:85px;
height:60px;
background:
linear-gradient(
135deg,
rgba(255,215,0,.15),
rgba(15,201,218,.15)
);

border:1px solid rgba(255,215,0,.4);
border-radius:15px;
display:flex;
align-items:center;
padding:5px;
cursor:pointer;
transition:.3s;
box-shadow:
0 0 15px rgba(255,215,0,.15);

}

.mini-card:hover{
transform:translateY(-5px);
box-shadow:
0 0 25px rgba(15,201,218,.5);
}

.mini-card img{
width:50px;
height:50px;
border-radius:10px;
object-fit:cover;
margin-right:5px;
}

.mini-card b{
color:#ffd700;
font-size:14px;
}


.mini-card span{
color:#ffd700;
font-size:12px;

}

#updateBox{

position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.85);
display:flex;
align-items:center;
justify-content:center;
z-index:99999;
}

.update-card{
background:#111;
border:2px solid #FFD700;
border-radius:20px;
padding:25px;
width:85%;
text-align:center;
color:white;
box-shadow:0 0 25px #FFD700;
}

.update-card h2{
color:#FFD700;
}

.update-card button{
margin:10px;
padding:12px 20px;
border-radius:30px;
border:none;
background:#0FC9DA;
color:white;
font-weight:bold;
}

#newsBox{

position:fixed;
inset:0;
background:rgba(0,0,0,0.85);
display:flex;
align-items:center;
justify-content:center;
z-index:99999;
}

.news-card{
width:85%;
background:#111;
border:2px solid #FFD700;
border-radius:25px;
padding:25px;
text-align:center;
color:white;
box-shadow:0 0 30px #FFD700;
}

.news-card img{
width:160px;
height:160px;
object-fit:cover;
border-radius:15px;
margin-bottom:15px;
}

.news-card h2{
color:#FFD700;
}

.news-card button{
padding:12px 20px;
margin:8px;
border-radius:30px;
border:none;
background:#0FC9DA;
color:white;
font-weight:bold;
}

@media(max-width:480px){
    
    .logo-img {
    width:220px;
    max-width:100%;
    height:auto;
    display:block;
}
}

@media(max-width:480px){

.premium-countdown h3{
    color:#0FC9DA;
    margin-top:10px;
    margin-bottom:10px;
    font-size:16px;
}

.time-box{
    width:40px;
}

.time-number{
    font-size:14px;
}

.time-label{
    font-size:10px;
}

}

/* ===== MOBILE ===== */
@media(max-width:480px){

    .sidebar{
        transform:translateX(-100%);
        z-index:200;
    }

    .sidebar.active{
        transform:translateX(0);
    }

    .main{
        margin-left:0;
        padding-bottom:90px;
    }

    .topbar{
        display:flex;
    }

    .player audio{
        width:50%;
    }
    
}


.card{
    position:relative;
}

/* ===============================
   BADGE 🆕 NOUVEAU MUSICVOTE
   Ajout indépendant
================================ */

.badge-new{

    position:absolute;

    top:20px;
    right:20px;

    background:linear-gradient(
        135deg,
        #FFD700,
        #0FC9DA
    );

    color:#000;

    font-size:14px;

    font-weight:bold;

    padding:6px 12px;

    border-radius:20px;

    letter-spacing:1px;

    box-shadow:
    0 0 10px rgba(255,215,0,.7),
    0 0 20px rgba(15,201,218,.5);

    z-index:20;

    animation:musicvoteNew 2s infinite;

}


@keyframes musicvoteNew{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }

}


