@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Sem Scroll */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #111;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    backdrop-filter: blur(5px);
}

.main-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 450px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px; 
}

/* --- SUPER EFEITO 3D LOGO --- */
.logo-area {
    /* Define a profundidade da cena 3D */
    perspective: 800px; 
    margin-bottom: 30px;
    position: relative;
    width: 180px;  /* Tamanho fixo para centralizar o efeito */
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 100%;
    height: auto;
    max-width: 160px;
    max-height: 160px;
    /* Sombras projetadas no próprio objeto */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    
    /* A Mágica do 3D */
    transform-style: preserve-3d;
    animation: gyro3D 6s ease-in-out infinite; /* Animação complexa */
}

/* Sombra no chão (Perspectiva) */
.logo-area::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 80px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: rotateX(60deg); /* Inclina a sombra para parecer chão */
    z-index: -1;
    animation: shadowScale 6s ease-in-out infinite;
}

/* --- RESTANTE DO LAYOUT --- */

.player-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    transform: translateZ(0); /* Aceleração de hardware */
}

#song-title {
    font-size: 1.1rem;
    margin: 10px 0 15px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

#status {
    font-size: 0.7rem;
    background: linear-gradient(90deg, #ff004c, #ff4b2b);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 0, 76, 0.6);
    animation: blink 2s infinite;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

#play-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #111;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

#play-btn:active { transform: scale(0.90); }

.vol-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    padding: 5px 15px;
    border-radius: 30px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 70px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* REDES SOCIAIS */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255,255,255,0.08);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Efeitos de cor e pulo nos ícones */
.soc-fb:hover { background: #1877F2; transform: translateY(-5px) scale(1.1); }
.soc-ig:hover { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); transform: translateY(-5px) scale(1.1); }
.soc-x:hover { background: #000; border-color: #555; transform: translateY(-5px) scale(1.1); }
.soc-yt:hover { background: #FF0000; transform: translateY(-5px) scale(1.1); }
.soc-tk:hover { background: #000; text-shadow: 2px 2px 0px #25F4EE, -2px -2px 0px #FE2C55; transform: translateY(-5px) scale(1.1); }
.soc-kwai:hover { background: #ff7e00; transform: translateY(-5px) scale(1.1); }
.soc-wa:hover { background: #25D366; transform: translateY(-5px) scale(1.1); }

/* NEWS TICKER */
.news-ticker {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.95);
    border-top: 2px solid #ff004c;
    height: 35px;
    z-index: 10;
    display: flex;
    align-items: center;
    font-size: 13px;
}
.ticker-title {
    background: #ff004c;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 800;
    text-transform: uppercase;
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

/* Equalizer */
.equalizer { height: 20px; display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; opacity: 0; transition: opacity 0.5s; }
.bar { width: 4px; background: #fff; border-radius: 4px; animation: bounce 1s infinite ease-in-out; }
.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.1s; }
.bar:nth-child(5) { animation-delay: 0.3s; }

/* --- NOVAS ANIMAÇÕES 3D --- */

/* Movimento Giroscópico: Inclina e gira suavemente */
@keyframes gyro3D {
    0% {
        transform: rotateY(0deg) rotateX(0deg) translateY(0);
    }
    25% {
        /* Vira um pouco pra esquerda e pra cima */
        transform: rotateY(-15deg) rotateX(10deg) translateY(-10px);
    }
    50% {
        /* Vira pra direita e desce */
        transform: rotateY(15deg) rotateX(-5deg) translateY(5px);
    }
    75% {
        /* Inclina levemente e sobe */
        transform: rotateY(5deg) rotateX(5deg) translateY(-5px);
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) translateY(0);
    }
}

/* Sombra respira conforme o logo se mexe */
@keyframes shadowScale {
    0%, 100% {
        opacity: 0.7;
        transform: rotateX(60deg) scale(1);
        filter: blur(5px);
    }
    25% {
        /* Logo sobe, sombra diminui e fica mais fraca */
        opacity: 0.4;
        transform: rotateX(60deg) scale(0.8);
        filter: blur(8px);
    }
    50% {
        /* Logo desce, sombra aumenta e fica forte */
        opacity: 0.8;
        transform: rotateX(60deg) scale(1.1);
        filter: blur(4px);
    }
    75% {
        opacity: 0.5;
        transform: rotateX(60deg) scale(0.9);
        filter: blur(7px);
    }
}

@keyframes marquee { from { transform: translate(0, 0); } to { transform: translate(-100%, 0); } }
@keyframes blink { 50% { opacity: 0.6; } }
@keyframes bounce { 0%, 100% { height: 5px; } 50% { height: 20px; } }

/* Mobile Pequeno */
@media (max-width: 380px) {
    .logo-area { width: 140px; height: 140px; }
    .logo-img { max-width: 120px; }
    .player-card { padding: 15px; }
    #play-btn { width: 45px; height: 45px; }
}