/* ========================================
   Mais FM 96.7 - Hotpage Streaming
   ======================================== */

/* CSS Variables */
:root {
    --azul-escuro: #0063B1;
    --azul-medio: #2a85c9;
    --azul-claro: #e6f2fa;
    --vermelho: #a01e1e;
    --vermelho-hover: #c92a2a;
    --amarelo: #d4a012;
    --cinza: #6b7280;
    --branco: #ffffff;
    --sombra: rgba(0, 99, 177, 0.3);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 50%, var(--azul-escuro) 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Efeito de brilho */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
                radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(2%, 2%) rotate(1deg);
        opacity: 1;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
}

/* Header / Logo */
.header {
    margin-bottom: 40px;
}

.logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Player Wrapper */
.player-wrapper {
    background: linear-gradient(145deg, var(--azul-escuro), var(--azul-medio));
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Player Card */
.player-card {
    background: var(--branco);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    min-width: 280px;
}

/* Mic Icon */
.mic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--azul-claro), var(--branco));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--azul-escuro);
}

.mic-icon i {
    font-size: 36px;
    color: var(--amarelo);
}

/* Radio Name */
.radio-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-escuro);
    margin-bottom: 15px;
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vermelho);
    color: var(--branco);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--branco);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.play-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--vermelho);
    color: var(--branco);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(160, 30, 30, 0.4);
}

.play-btn:hover {
    background: var(--vermelho-hover);
    transform: scale(1.1);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn.playing {
    background: var(--azul-escuro);
    box-shadow: 0 4px 15px var(--sombra);
}

.play-btn.loading {
    pointer-events: none;
}

.play-btn.loading i {
    animation: spin 1s linear infinite;
}

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

.volume-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--azul-claro);
    color: var(--azul-escuro);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn:hover {
    background: var(--azul-escuro);
    color: var(--branco);
}

.volume-btn.muted {
    color: var(--vermelho);
}

/* Volume Slider */
.volume-slider-container {
    margin-top: 20px;
    display: none;
    justify-content: center;
}

.volume-slider-container.show {
    display: flex;
}

.volume-slider {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: var(--azul-claro);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vermelho);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vermelho);
    cursor: pointer;
    border: none;
}

/* Slogan */
.slogan {
    margin-top: 30px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--branco);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--azul-escuro);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    background: var(--vermelho);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Instagram gradient hover */
.social-btn[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* YouTube red hover */
.social-btn[aria-label="YouTube"]:hover {
    background: #FF0000;
}

/* Facebook blue hover */
.social-btn[aria-label="Facebook"]:hover {
    background: #1877F2;
}

/* WhatsApp green hover */
.social-btn[aria-label="WhatsApp"]:hover {
    background: #25D366;
}

/* Google Play colors hover */
.social-btn[aria-label="Google Play"]:hover {
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC04, #EA4335);
}

/* Apple black hover */
.social-btn[aria-label="App Store"]:hover {
    background: #000000;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    .logo {
        max-width: 250px;
    }

    .player-card {
        padding: 25px 20px;
        min-width: 260px;
    }

    .mic-icon {
        width: 70px;
        height: 70px;
    }

    .mic-icon i {
        font-size: 30px;
    }

    .radio-name {
        font-size: 1.3rem;
    }

    .play-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .volume-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slogan {
        font-size: 1.1rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Loading state indicator */
.player-card.connecting .mic-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* Error state */
.player-card.error .mic-icon {
    border-color: var(--vermelho);
}

.player-card.error .mic-icon i {
    color: var(--vermelho);
}
