/* RADIO PLAYER STYLES - REDESIGNED */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #0d8002;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: #050505;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden;
    /* Prevenir scrollbar horizontal */
    position: relative;
}

/* Spectrum Visualizer - COBERTURA TOTAL FORZADA */
#vumeter {
    position: fixed;
    inset: 0;
    /* top:0, right:0, bottom:0, left:0 */
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    display: block;
}

/* Background Layers */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.4);
    z-index: -1;
    transform: scale(1.1);
    transition: background-image 1s ease-in-out, opacity 0.5s ease;
}

/* === THEME GRADIENTS === */
body.theme-default .bg-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

body.theme-neon .bg-wrapper {
    background: linear-gradient(135deg, #2d005e 0%, #000000 100%);
}

body.theme-cyber .bg-wrapper {
    background: linear-gradient(135deg, #1a0b2e 0%, #0d021f 100%);
}

body.theme-ocean .bg-wrapper {
    background: linear-gradient(135deg, #002d2d 0%, #000a0a 100%);
}

body.theme-sunset .bg-wrapper {
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
}

body.theme-galaxy .bg-wrapper {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

body.theme-jungle .bg-wrapper {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

body.theme-hot .bg-wrapper {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

body.theme-electric .bg-wrapper {
    background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%);
}

body.theme-candy .bg-wrapper {
    background: linear-gradient(135deg, #ae389e 0%, #fe1919 100%);
}

body.theme-royal .bg-wrapper {
    background: linear-gradient(135deg, #6441A5 0%, #2a0845 100%);
}

body.theme-rose .bg-wrapper {
    background: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
}

body.theme-forest .bg-wrapper {
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
}

body.theme-nord .bg-wrapper {
    background: linear-gradient(135deg, #2e3440 0%, #4c566a 100%);
}

body.theme-sakura .bg-wrapper {
    background: linear-gradient(135deg, #FFC0CB 0%, #800080 100%);
}

body.theme-nightcity .bg-wrapper {
    background: linear-gradient(135deg, #fcee09 0%, #00f0ff 100%);
}

body.theme-gold .bg-wrapper {
    background: linear-gradient(135deg, #2d1d00 0%, #0a0800 100%);
}

body.theme-oled .bg-wrapper {
    background: #000;
}

/* Top Elements (Corners) */
.top-elements {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.top-elements.center-not-viewers {
    justify-content: center;
}

.top-elements>* {
    pointer-events: auto;
}

/* Play Store Button */
.playstore-btn-top {
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

.playstore-btn-top:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
}

.playstore-btn-top img {
    height: 40px;
    width: auto;
}

/* Viewers Count Alt Design */
.viewers-count-alt {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.viewers-count-alt i {
    color: var(--primary-color);
    font-size: 10px;
    animation: pulse-viewers 2s infinite;
}

@keyframes pulse-viewers {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.radio-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 10;
    overflow-y: auto;
    max-height: 100vh;
}

.player-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 25px 25px 25px;
    text-align: center;
    box-shadow: 0 50px 150px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.02);
    z-index: 20;
    position: relative;
    margin: auto;
}

.station-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.cover-art {
    width: 200px;
    height: 200px;
    border-radius: 35px;
    margin: 0 auto 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 1);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cover-art.playing {
    animation: album-pulse 2s infinite ease-in-out;
}

@keyframes album-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 40px 100px rgba(0, 0, 0, 1);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 50px 120px var(--primary-color);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 40px 100px rgba(0, 0, 0, 1);
    }
}

.station-info h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -1.5px;
    color: #fff;
}

.track-info {
    margin: 0 auto 12px;
    padding: 8px 18px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#track-title {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.live-badge {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 4px;
    margin: 0 0 18px;
}

.live-badge i {
    color: #ff4444;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.play-btn {
    width: 75px;
    height: 75px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.3);
}

.play-btn i {
    margin-left: 5px;
}

.play-btn i.fa-stop {
    margin-left: 0;
}

/* Branding below play button */
.radio-branding {
    margin: 12px 0 18px;
    display: flex;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.radio-branding:hover {
    opacity: 1;
}

.radio-branding img {
    height: 20px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Volume */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.social-pill {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    text-decoration: none;
    cursor: pointer;
}

.social-pill.fb {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.3);
}

.social-pill.fb:hover {
    background: #1877F2;
    transform: translateY(-5px);
}

.social-pill.ig {
    background: rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.3);
}

.social-pill.ig:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    transform: translateY(-5px);
}

.social-pill.wa {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.social-pill.wa:hover {
    background: #25D366;
    transform: translateY(-5px);
}

.social-pill.tw {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.3);
}

.social-pill.tw:hover {
    background: #1DA1F2;
    transform: translateY(-5px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.share-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.share-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.share-btn i {
    font-size: 0.9rem;
}

/* Mobile Adaptive */
@media (max-width: 500px) {
    .player-card {
        padding: 40px 25px 30px;
        border-radius: 0;
        height: 100vh;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cover-art {
        width: 200px;
        height: 200px;
    }

    .station-info h1 {
        font-size: 1.6rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}