/* ========================================================
   VARIÁVEIS E RESET BÁSICO
   ======================================================== */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #8e8e93;
    --accent-color: #00d2ff; 
    
    --glass-bg: rgba(20, 20, 22, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Variáveis Globais de Sombra 3D Neumorphic */
    --shadow-3d: 5px 5px 10px rgba(0,0,0,0.8), -5px -5px 10px rgba(255,255,255,0.05), inset 1px 1px 2px rgba(255,255,255,0.1);
    --shadow-3d-hover: inset 5px 5px 10px rgba(0,0,0,0.8), inset -5px -5px 10px rgba(255,255,255,0.05);
    --shadow-3d-active: inset 5px 5px 10px rgba(0,0,0,0.9), inset -5px -5px 10px rgba(255,255,255,0.05);
}

/* ========================================================
   CUSTOMIZAÇÃO DA BARRA DE ROLAGEM (SCROLLBAR DARK MODE)
   ======================================================== */
/* Para Chrome, Edge e Safari */
::-webkit-scrollbar {
    width: 8px; /* Deixa a barra fina e elegante */
    height: 8px; /* Para scroll horizontal, se existir */
}

::-webkit-scrollbar-track {
    background: var(--bg-color); /* Fundo preto, igual ao site */
}

::-webkit-scrollbar-thumb {
    background: #2a2a2e; /* Cinza chumbo elegante */
    border-radius: 4px; /* Bordas arredondadas */
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46; /* Acende sutilmente ao passar o mouse */
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2e var(--bg-color);
}
/* ======================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Bloqueio de seleção de texto, menu de contexto e efeito de toque azul */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Exceção obrigatória para que o usuário consiga digitar nos formulários e buscar estações */
input, textarea {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

html, body {
    /* Trava o fundo da tela no mobile, impedindo o efeito elástico e o puxar para atualizar */
    overscroll-behavior: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 20px;
    overflow-x: hidden;
}

.app-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 1.5rem 20px; 
    animation: appReveal 1.6s ease forwards;
}

/* ========================================================
   BARRA SUPERIOR
   ======================================================== */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.top-actions { display: flex; gap: 15px; }

.top-btn { 
    background: rgba(0, 210, 255, 0.1); 
    border: 1px solid rgba(0, 210, 255, 0.3); 
    color: var(--accent-color); 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: all 0.3s ease; 
}
.share-btn { padding: 8px 10px; }
.top-btn:hover { 
    background: var(--accent-color) !important; 
    color: #000 !important; 
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.4) !important; 
}

/* ========================================================
   CABEÇALHO E LOGO
   ======================================================== */
header { text-align: center; margin-bottom: 2.5rem; perspective: 1000px; }

.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.brand-logo {
    position: absolute;
    right: 100%;
    margin-right: 15px;
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
}

.logo { 
    font-size: 2.8rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
    color: var(--accent-color); 
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4); 
    margin: 0;
    animation: spinTitle 8s ease-in-out infinite; 
}

@keyframes spinTitle { 0%, 50% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
.subtitle { color: #ffffff; margin-top: 0.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }

/* ========================================================
   CAIXA "TOCANDO AGORA" - MOLDURA AZUL PISCANDO
   ======================================================== */
.now-playing-box { 
    background: #000000; 
    border: 2px solid rgba(0, 210, 255, 0.3); 
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -1px;
    border-radius: 16px; 
    padding: 2rem; 
    margin-bottom: 3.5rem; 
    animation: bluePulseBox 1.5s infinite ease-in-out;
    overflow: hidden; 
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

@keyframes bluePulseBox {
    0% { box-shadow: 0 0 5px var(--accent-color), inset 0 0 5px var(--accent-color); border-color: rgba(0, 210, 255, 0.5); }
    50% { box-shadow: 0 0 15px var(--accent-color), inset 0 0 10px var(--accent-color); border-color: var(--accent-color); }
    100% { box-shadow: 0 0 5px var(--accent-color), inset 0 0 5px var(--accent-color); border-color: rgba(0, 210, 255, 0.5); }
}

.now-playing-content-wrapper { display: flex; align-items: center; gap: 2.5rem; flex-wrap: nowrap; width: 100%; min-width: 0; }

/* GLOBO 3D */
.globe-container { width: 150px; height: 150px; min-width: 150px; min-height: 150px; flex: 0 0 150px; position: relative; cursor: grab; background: transparent; border-radius: 50%; box-shadow: none; border: none; display: flex; justify-content: center; align-items: center; overflow: hidden; touch-action: none; }
.globe-container:active { cursor: grabbing; }
#earth-canvas { width: 100% !important; height: 100% !important; outline: none; }

/* INFORMAÇÕES RÁDIO E LOGO DESTAQUE */
.now-playing-info { flex: 1; min-width: 0; width: 100%; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.now-playing-header { display: flex; justify-content: flex-start; align-items: center; gap: 15px; margin-bottom: 1rem; width: 100%; }

.now-playing-share-btn { background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform 0.2s, filter 0.2s; flex-shrink: 0; }
.now-playing-share-btn:hover { transform: scale(1.1); filter: drop-shadow(0 0 5px var(--accent-color)); }

.badge { background: rgba(0, 210, 255, 0.15); color: var(--accent-color); padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

@keyframes textAlertBlink { 0%, 100% { opacity: 1; color: var(--accent-color); } 50% { opacity: 0.2; color: #ff453a; } }
.badge.blink-play { animation: textAlertBlink 2.5s infinite alternate ease-in-out !important; border: none !important; background: transparent !important; color: #ff453a !important; }

/* LOGOS DAS RÁDIOS */
.now-playing-logo { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background-color: transparent; border: 1px solid rgba(0, 210, 255, 0.4); box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); flex-shrink: 0; }
.list-station-logo { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background-color: transparent; border: 1px solid rgba(0, 210, 255, 0.2); flex-shrink: 0; }

.now-playing-title-wrapper { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 6px; min-width: 0; max-width: 100%; }

/* EQUALIZADOR MODERNO E NEON */
.equalizer { display: flex; gap: 5px; height: 26px; align-items: flex-end; }
.eq-bar { width: 6px; height: 26px; background: linear-gradient(to top, var(--accent-color), #0072ff); border-radius: 3px; box-shadow: 0 0 12px var(--accent-color); animation: eqPulse 0.5s infinite ease-in-out alternate; transform-origin: bottom; }
.eq-bar:nth-child(1) { animation-duration: 0.35s; animation-delay: 0.0s; }
.eq-bar:nth-child(2) { animation-duration: 0.50s; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-duration: 0.40s; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-duration: 0.60s; animation-delay: 0.3s; }
.eq-bar:nth-child(5) { animation-duration: 0.45s; animation-delay: 0.1s; }
.eq-bar:nth-child(6) { animation-duration: 0.55s; animation-delay: 0.4s; }
.eq-bar:nth-child(7) { animation-duration: 0.30s; animation-delay: 0.2s; }

@keyframes eqPulse { 0% { transform: scaleY(0.15); } 100% { transform: scaleY(1); } }
.equalizer.paused .eq-bar { animation: none; transform: scaleY(0.15); background: var(--text-muted); box-shadow: none; }

.station-meta { text-align: left; margin: 0.5rem 0 25px 0; width: 100%; min-width: 0; }
.current-station-name { font-size: 1.6rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; flex: 0 1 auto; min-width: 0; }
.location-wrapper { display: flex; justify-content: flex-start; align-items: center; gap: 8px; margin-top: 4px; width: 100%; overflow: hidden; min-width: 0; max-width: 100%; }
.current-station-location { color: var(--text-muted); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.now-playing-flag { width: 22px; height: auto; border-radius: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); flex-shrink: 0; }

/* CONTROLES DE MÍDIA */
.media-controls { display: flex; justify-content: flex-start; align-items: center; flex-wrap: nowrap; width: 100%; gap: 25px; }
.play-buttons { display: flex; align-items: center; gap: 15px; }

/* SISTEMA DE FAVORITOS */
.list-fav-icon { display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: transform 0.2s, color 0.2s; margin-left: -5px; flex-shrink: 0; }
.list-fav-icon:hover { transform: scale(1.2); color: var(--accent-color); }
.list-fav-icon.active { color: var(--accent-color); animation: favPulse 1.2s infinite alternate ease-in-out; }

.now-playing-fav-icon { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.3s, transform 0.3s; flex-shrink: 0; padding: 0; }
.now-playing-fav-icon:hover { color: var(--accent-color); transform: scale(1.1); }
.now-playing-fav-icon.active { color: var(--accent-color); animation: favPulse 1.2s infinite alternate ease-in-out; }

@keyframes favPulse { 0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-color)); } 100% { transform: scale(1.25); filter: drop-shadow(0 0 12px var(--accent-color)); } }

/* BOTÕES DE AVANÇAR E VOLTAR */
.control-btn { background: transparent; border: 2px solid var(--accent-color); box-shadow: 0 0 15px rgba(0, 210, 255, 0.6), inset 0 0 10px rgba(0, 210, 255, 0.3); color: var(--accent-color); border-radius: 50%; width: 45px; height: 45px; flex: 0 0 45px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.control-btn:hover { box-shadow: 0 0 25px rgba(0, 210, 255, 0.8), inset 0 0 15px rgba(0, 210, 255, 0.5); }

/* BOTÃO PLAY */
.main-play-btn { background: var(--bg-color); border: 2px solid var(--accent-color); color: var(--accent-color); border-radius: 50%; width: 60px; height: 60px; flex: 0 0 60px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
.main-play-btn svg { transition: all 0.3s ease; }
.main-play-btn:hover { box-shadow: 0 0 20px rgba(0, 210, 255, 0.6), inset 0 0 10px rgba(0, 210, 255, 0.3); }
.main-play-btn.playing { animation: neonPulse 1.5s infinite alternate ease-in-out; }

@keyframes neonPulse { 0% { box-shadow: 0 0 10px var(--accent-color), inset 0 0 5px var(--accent-color); } 100% { box-shadow: 0 0 25px var(--accent-color), inset 0 0 15px var(--accent-color); } }

/* CONTROLE DE VOLUME */
.volume-control { display: flex; align-items: center; gap: 12px; background: #000000; padding: 8px 18px; border-radius: 30px; border: 1px solid var(--accent-color); box-shadow: 0 0 12px rgba(0, 210, 255, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.5); transition: all 0.3s ease; }
.volume-control:hover { background: #080808; box-shadow: 0 0 18px rgba(0, 210, 255, 0.6), inset 0 0 8px rgba(0, 0, 0, 0.5); }
.volume-control.playing { animation: neonPulse 1.5s infinite alternate ease-in-out; }

.volume-icon { display: flex; align-items: center; justify-content: center; color: #ffffff; cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.volume-icon:hover { transform: scale(1.1); }

@keyframes waveEmit { 0% { opacity: 0.15; filter: drop-shadow(0 0 0px transparent); } 100% { opacity: 1; filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px var(--accent-color)); } }
.volume-icon.is-pulsing svg path { animation: waveEmit 0.6s infinite alternate ease-in-out; stroke-width: 2.5px !important; }
.volume-icon.is-pulsing svg path:nth-of-type(1) { animation-delay: 0s; }
.volume-icon.is-pulsing svg path:nth-of-type(2) { animation-delay: 0.3s; }

.volume-slider { -webkit-appearance: none; appearance: none; width: 90px; height: 6px; border-radius: 3px; outline: none; background: linear-gradient(to right, var(--accent-color) 100%, rgba(0, 210, 255, 0.3) 100%); transition: background 0.1s ease; cursor: pointer; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: #ffffff; border: 2px solid var(--accent-color); border-radius: 50%; cursor: pointer; box-shadow: 0 0 8px rgba(0, 210, 255, 0.8); transition: all 0.2s; }
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.volume-percentage { font-size: 0.85rem; font-weight: 700; color: var(--accent-color); min-width: 42px; text-align: right; user-select: none; letter-spacing: 0.5px; }

/* PISCAR */
@keyframes activePulse { 0% { box-shadow: 0 0 5px var(--accent-color), inset 0 0 5px var(--accent-color); } 50% { box-shadow: 0 0 15px var(--accent-color), inset 0 0 10px var(--accent-color); } 100% { box-shadow: 0 0 5px var(--accent-color), inset 0 0 5px var(--accent-color); } }
.active-pulse { background: rgba(0, 210, 255, 0.15) !important; border-color: var(--accent-color) !important; color: var(--accent-color) !important; animation: activePulse 1.5s infinite ease-in-out !important; }

/* GÊNEROS */
.genres-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; margin-bottom: 3rem; }
.genre-chip { background: linear-gradient(135deg, #2a2a2e 0%, #101012 100%); border: 1px solid rgba(0, 210, 255, 0.3); color: var(--accent-color); width: 90px; height: 90px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-align: center; padding: 5px; font-size: 1rem; line-height: 1.1; white-space: normal; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-3d); }

@keyframes randomBlink { 0%, 100% { box-shadow: var(--shadow-3d), 0 0 5px rgba(0, 210, 255, 0.2); border-color: rgba(0, 210, 255, 0.4); color: var(--accent-color); text-shadow: none; } 50% { box-shadow: var(--shadow-3d), 0 0 25px rgba(0, 210, 255, 0.8), inset 0 0 10px rgba(0, 210, 255, 0.3); border-color: var(--accent-color); color: var(--accent-color); text-shadow: 0 0 5px var(--accent-color); } }
.genre-chip { animation: randomBlink 3s infinite ease-in-out; }
.genre-chip:nth-child(odd) { animation-duration: 4s; animation-delay: 0.5s; }
.genre-chip:nth-child(3n) { animation-duration: 5s; animation-delay: 1.2s; }
.genre-chip:nth-child(4n) { animation-duration: 3.5s; animation-delay: 2.1s; }

/* Aplica o hover apenas em dispositivos que suportam cursor (PC), evitando o sticky-hover no celular */
@media (hover: hover) {
    .genre-chip:hover { background: #151518; color: var(--accent-color); font-weight: 600; border-color: var(--accent-color); box-shadow: var(--shadow-3d-hover), 0 0 15px rgba(0, 210, 255, 0.6); animation: none; }
}

@keyframes textBlinkGenre { 0%, 100% { color: var(--accent-color); text-shadow: 0 0 5px var(--accent-color);} 50% { color: transparent; text-shadow: none;} }
.genre-chip.active-pulse { background: #0a0a0c !important; border: 1px solid var(--accent-color) !important; color: var(--accent-color) !important; font-weight: 800 !important; box-shadow: var(--shadow-3d-active), 0 0 20px var(--accent-color), inset 0 0 10px var(--accent-color) !important; animation: textBlinkGenre 0.7s infinite ease-in-out !important; }

/* CONTINENTES */
#continents { margin-bottom: 4rem; }
.continent-group { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
.continent-group summary { background: linear-gradient(90deg, rgba(0, 210, 255, 0.1) 0%, transparent 100%); border-left: 4px solid var(--accent-color); padding: 20px; font-size: 1.1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; color: var(--accent-color); animation: activePulse 1.5s infinite ease-in-out; }
.continent-group summary:hover { background: rgba(0, 210, 255, 0.15); box-shadow: inset 4px 0 0 var(--accent-color), 0 0 15px rgba(0, 210, 255, 0.2); color: var(--accent-color); }
.arrow-icon { color: var(--accent-color); font-size: 1rem; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 15px 20px; border-top: 1px solid var(--glass-border); background: rgba(0, 0, 0, 0.3); }
.country-btn { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); padding: 10px 15px; border-radius: 8px; color: var(--text-color); cursor: pointer; text-align: left; transition: all 0.3s; }
.country-btn:hover { background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 100, 255, 0.4) 100%); border-color: var(--accent-color); box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3); }
.country-flag { width: 24px; border-radius: 3px; }

/* SEÇÃO DE BUSCA */
.search-section { margin-bottom: 4rem; display: flex; justify-content: center; width: 100%; }
.search-container { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 600px; gap: 20px; }
.search-btn { background: var(--accent-color); color: #000; border: none; padding: 14px 32px; border-radius: 30px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; z-index: 1; animation: searchBtnPulse 1.5s infinite alternate ease-in-out; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 350px; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); -webkit-tap-highlight-color: transparent; }
.search-btn:hover { transform: scale(1.05); animation: none; box-shadow: 0 0 30px rgba(0, 210, 255, 0.9), inset 0 0 10px rgba(0, 210, 255, 0.4); }

@keyframes searchBtnPulse { 0% { box-shadow: 0 0 5px rgba(0, 210, 255, 0.3); } 100% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.9), inset 0 0 8px rgba(255, 255, 255, 0.4); } }

.search-box { display: flex; width: 100%; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; padding: 8px 15px; align-items: center; position: relative; }
.search-box::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%); background-size: 200% 100%; animation: searchStroke 3s infinite alternate ease-in-out; -webkit-mask: linear-gradient(#ffffff, #ffffff) content-box, linear-gradient(#ffffff, #ffffff); -webkit-mask-composite: xor; mask: linear-gradient(#ffffff, #ffffff) content-box, linear-gradient(#ffffff, #ffffff); mask-composite: exclude; pointer-events: none; }

@keyframes searchStroke { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.search-box input { flex: 1; min-width: 0; background: transparent; border: none; color: var(--text-color); padding: 12px 45px; font-size: 1.05rem; outline: none; z-index: 1; text-align: center; }
.search-box input::placeholder { color: var(--text-muted); font-weight: 500; }
.clear-btn { position: absolute; right: 20px; background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; padding: 0; cursor: pointer; transition: color 0.2s; z-index: 2; display: flex; align-items: center; justify-content: center; }
.clear-btn:hover { color: #ff453a; }

/* LISTA DE RÁDIOS */
.list-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--accent-color); }
.list-title::before { content: ''; display: block; width: 4px; height: 22px; background: var(--accent-color); border-radius: 2px; box-shadow: 0 0 8px var(--accent-color); }

.stations-container { display: grid; grid-template-columns: 1fr; gap: 10px; }
.station-item { background: var(--glass-bg); padding: 1rem 1.5rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 1px solid transparent; width: 100%; overflow: hidden; transition: all 0.3s;}
.station-item:hover { background: rgba(0, 210, 255, 0.05); border-color: var(--accent-color); box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2); }
.station-info-text { flex: 1; min-width: 0; padding-right: 15px; }
.station-name-list { display: block; font-size: 1.1rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.station-location-list { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: flex; align-items: center; gap: 6px; }
.list-flag { width: 16px; height: auto; border-radius: 2px; flex-shrink: 0; }
.play-icon { color: var(--accent-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* PAGINAÇÃO */
.pagination-bar { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; -ms-overflow-style: none; scrollbar-width: none; }
.pagination-bar::-webkit-scrollbar { display: none; }
.page-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-color); width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.2s; }
.page-btn:hover { border-color: var(--accent-color); }
.page-btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #000; font-weight: bold; }
.nav-arrow { color: var(--accent-color) !important; }
.nav-arrow svg { transition: transform 0.2s; }
.nav-arrow:hover svg { transform: scale(1.2); }

/* ========================================================
   RODAPÉ CORPORATIVO E BOTÕES EM DESTAQUE (FUTURA SAFE)
   ======================================================== */
.app-footer { 
    text-align: center; 
    padding: 40px 20px 20px 20px; 
    margin-top: 2rem; 
    border-top: 1px solid var(--glass-border); 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    line-height: 1.6; 
}

.app-footer p { 
    margin-bottom: 5px; 
}

.copyright-text { 
    color: #ffffff; 
    font-weight: 800; 
    font-size: 1.1em; 
}

.futura-safe { 
    color: var(--accent-color); 
    font-size: 1.15em; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.footer-security-download { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
    margin: 0; 
    flex-wrap: wrap; 
}

.footer-download-btn { 
    background: linear-gradient(135deg, var(--accent-color) 0%, #0072ff 100%); 
    border: none; 
    color: #000; 
    padding: 14px 32px; 
    border-radius: 30px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.3s ease; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    animation: pulseDownloadBtn 2s infinite alternate ease-in-out;
}

.footer-download-btn:hover { 
    animation: none; 
    box-shadow: 0 0 35px rgba(0, 210, 255, 1); 
    transform: scale(1.05); 
}

@keyframes pulseDownloadBtn { 
    0% { box-shadow: 0 0 10px rgba(0, 210, 255, 0.4); transform: scale(1); } 
    100% { box-shadow: 0 0 25px rgba(0, 210, 255, 0.9), inset 0 0 10px rgba(255, 255, 255, 0.4); transform: scale(1.03); } 
}

.ssl-shield-badge { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    user-select: none; 
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: default;
}

.ssl-shield-badge:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
}

.ssl-shield-badge svg {
    overflow: visible;
}

.footer-links { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 12px; 
}

.footer-links a { 
    color: var(--accent-color) !important; 
    text-decoration: none; 
    font-weight: 700 !important; 
    font-size: 1rem !important; 
    transition: filter 0.2s; 
    cursor: pointer; 
}

.footer-links a:hover { 
    filter: brightness(1.2); 
    text-decoration: underline; 
}

.footer-divider { 
    border: none; 
    height: 1px; 
    background: var(--glass-border); 
    margin: 40px -20px; 
    width: auto; 
    max-width: none; 
}
/* MODAIS E AUTENTICAÇÃO */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: var(--bg-color); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem; max-width: 400px; width: 100%; text-align: center; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.close-modal { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: var(--text-color); }

.auth-card-custom { padding: 2.5rem !important; }
.auth-tabs { display: flex; margin-bottom: 25px; border-bottom: 1px solid var(--glass-border); }
.auth-tab { flex: 1; background: none; border: none; color: var(--text-muted); padding: 10px; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.auth-tab.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); font-weight: bold; }

.auth-form { display: none; text-align: left; }
.auth-form.active { display: block; animation: fadeIn 0.4s; }
.auth-title { text-align: center; margin-bottom: 20px; color: #fff; font-size: 1.3rem; font-weight: 600;}

.auth-input { width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--glass-border); padding: 12px 15px; border-radius: 8px; color: #fff; margin-bottom: 15px; outline: none; transition: 0.3s; box-sizing: border-box; }
.auth-input:focus { border-color: var(--accent-color); box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }

.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 20px; }
.remember-me { color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.forgot-password { color: var(--accent-color); text-decoration: none; transition: 0.2s;}
.forgot-password:hover { text-decoration: underline; filter: brightness(1.2);}

.privacy-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; text-align: left;}
.privacy-check a { color: var(--accent-color); text-decoration: none; font-weight: bold; }

.auth-submit-btn { width: 100%; background: var(--accent-color); color: #000; border: none; padding: 12px; font-size: 1.05rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(0, 210, 255, 0.3); margin-top: 5px;}
.auth-submit-btn:hover { background: #00b8e6; box-shadow: 0 0 25px rgba(0, 210, 255, 0.5); transform: scale(1.02); }

.auth-separator { display: flex; align-items: center; text-align: center; margin: 15px 0 20px 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.auth-separator::before, .auth-separator::after { content: ''; flex: 1; border-bottom: 1px solid var(--glass-border); }
.auth-separator span { padding: 0 10px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVIDADE E CORREÇÕES MOBILE */
@media (max-width: 850px) {
    .now-playing-content-wrapper { flex-direction: column; justify-content: center; text-align: center; gap: 1.5rem; min-width: 0; }
    .now-playing-info { align-items: center; width: 100%; min-width: 0;}
    .now-playing-header { justify-content: center; }
    .location-wrapper { justify-content: center; margin-top: 8px; }
    .station-meta { text-align: center; margin-bottom: 25px !important; }
    .media-controls { flex-direction: column; justify-content: center; align-items: center; gap: 25px; }
    .now-playing-title-wrapper { justify-content: center; }
    .play-buttons { gap: 20px; justify-content: center; align-items: center; }
    .volume-control { margin-left: 0; width: 100%; max-width: 320px; justify-content: center; padding: 12px 20px; }
    .volume-slider { width: 100%; } 
}

@media (max-width: 600px) {
    :root { --shadow-3d: 3px 3px 6px rgba(0,0,0,0.8), -3px -3px 6px rgba(255,255,255,0.05), inset 1px 1px 2px rgba(255,255,255,0.1); --shadow-3d-hover: inset 3px 3px 6px rgba(0,0,0,0.9), inset -3px -3px 6px rgba(255,255,255,0.05); --shadow-3d-active: inset 3px 3px 6px rgba(0,0,0,0.9), inset -3px -3px 6px rgba(255,255,255,0.05); }
    .app-container { padding: 0.2rem 15px; }
    .top-bar { margin-bottom: 0.5rem; }
    header { margin-bottom: 0.5rem; } 
    .logo { font-size: 2.1rem; }
    
    /* Ajuste da logo para mobile */
    .brand-logo { height: 40px; margin-right: 10px; }

    .station-meta { margin-bottom: 25px !important; display: flex; flex-direction: column; align-items: center; width: 100%; }
    .now-playing-title-wrapper { justify-content: center; }
    .current-station-name { font-size: 1.15rem !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; flex: 0 1 auto !important; min-width: 0 !important; }
    .now-playing-box { padding: 1.5rem 1rem; margin-bottom: max(8rem, calc(100svh - 550px)); width: 100%; box-sizing: border-box; } 
    @supports not (height: 100svh) { .now-playing-box { margin-bottom: max(8rem, calc(100vh - 550px)); } }
    .now-playing-header { margin-bottom: 0.5rem !important; }
    .now-playing-content-wrapper { gap: 1.2rem; }
    
    .genres-container { margin-top: 6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
    .genre-chip { width: calc(33.333% - 8px); flex-shrink: 0; height: auto; aspect-ratio: 1 / 1; font-size: 0.9rem; padding: 2px; margin: 0; display: flex; justify-content: center; align-items: center; }
    
    .globe-container { width: 150px; height: 150px; min-width: 150px; min-height: 150px; flex: 0 0 150px; margin-top: 0; touch-action: none; }
    .current-station-location { flex: 0 1 auto !important; min-width: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
    .search-container { gap: 15px; padding: 0 10px; }
    .search-btn { padding: 12px 20px; font-size: 1rem; max-width: 100%; }
    .search-box { padding: 4px; border-radius: 25px; }
    .search-box input { padding: 10px 40px; font-size: 0.95rem; }
    .play-buttons { gap: 12px; }
    .footer-links { gap: 10px; }
    .traco-mobile-hide { display: none; }
    .footer-security-download { flex-direction: column; gap: 15px; }
}

/* SISTEMA DE IDIOMAS E STEALTH MODE (FANTASMA) */
iframe.skiptranslate, body > .skiptranslate, .skiptranslate, .goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-te-spinner-pos, .goog-te-spinner, img.goog-te-spinner, .goog-tooltip, .goog-tooltip:hover, .VIpgJd-Zvi9od-aZ2wEe-wOHMyf, .VIpgJd-Zvi9od-ORHb-OEVmcd { display: none !important; visibility: hidden !important; opacity: 0 !important; position: absolute !important; z-index: -2147483648 !important; width: 0 !important; height: 0 !important; pointer-events: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

@keyframes appReveal { 0% { opacity: 0; } 60% { opacity: 0; } 100% { opacity: 1; } }