body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
        url('../img/bg_concert.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    padding-bottom: 150px;
}

.station-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    position: relative;
    padding: 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.station-card:hover,
.active-station {
    transform: translateY(-5px) scale(1.03);
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.glass-player {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(30px);
    border-top: 4px solid;
    border-image: linear-gradient(to right, #0ea5e9, #ffffff) 1;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
}

.modal-overlay.active {
    display: flex;
}


.rank-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


#player-art {
    transition: all 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* Modern Player Styles */
#player-bar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 4px solid;
    border-image: linear-gradient(to right, #0ea5e9, #ffffff) 1;
}

#player-art {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Custom Volume Slider */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    outline: none;
    transition: background 0.3s;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.2);
}

/* Visualizer Canvas */
#visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    /* More visible */
    pointer-events: none;
    mix-blend-mode: screen;
}

#play-btn {
    outline: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    /* Base shadow dark and grounded */
}

/* Play Button Pulse */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Botão Flutuante Amanda (FAB) */
.amanda-fab {
    position: fixed;
    bottom: 130px;
    /* Aumentado para não interferir no brilho do player */
    right: 25px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4);
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.amanda-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(29, 78, 216, 0.6);
}

.amanda-fab.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.amanda-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #0f172a;
}

/* Amanda Chatbox - Redesign Lateral DIREITO (Premium) */
.amanda-chatbox {
    position: fixed;
    bottom: 130px;
    /* Alinhado com o FAB */
    right: 20px;
    /* Movido para a DIREITA conforme referência */
    left: auto;
    width: 350px;
    max-width: 90vw;
    background: rgba(15, 23, 42, 0.95);
    /* Slate-900 mais sólido */
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    z-index: 150;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
}

.amanda-chatbox.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.amanda-header {
    background: linear-gradient(to right, #1d4ed8, #2563eb);
    /* Azul sólido conforme referência */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
}

.amanda-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    padding: 1.5px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.amanda-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.amanda-messages-container {
    padding: 20px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amanda-message-bubble {
    background: rgba(30, 64, 175, 0.3);
    /* Azul transparente suave */
    border-radius: 12px 18px 18px 4px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    max-width: 85%;
}

.amanda-input-area {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.amanda-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    color: white;
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

.amanda-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .amanda-chatbox {
        right: 15px;
        left: 15px;
        width: auto;
        top: auto;
        bottom: 100px;
        transform: translateY(20px);
    }
}

#play-btn.playing {
    animation: pulse-glow 2.5s infinite;
    background: #38bdf8;
    /* Sky-500 */
    color: white;
    border: none;
}

/* Typography Effects */
/* Typography Effects - Enforced */
.style-song-solid {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 900;
}

.style-artist-solid {
    color: #38bdf8 !important;
    /* Sky-400 */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3), 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Listener Badge */
.listener-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.listener-badge i {
    font-size: 10px;
    color: #38bdf8;
    /* Sky-400 */
}

.listener-badge .live-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    /* Green-500 */
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}