:root {
    /* PALETA DE CORES */
    --bg-dark: #00134d;      
    --bg-darker: #000a29;    
    --accent-cyan: #00ccff;  
    --accent-gold: #ffaa00;  
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --bg-page: #f4f7f9;      
    
    --header-height: 90px;
    --player-height: 80px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-page);
    padding-bottom: var(--player-height);
}

/* --- CABEÇALHO --- */
header {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 3px solid var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0,204,255,0.3));
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.btn-destaque {
    background-color: var(--accent-gold);
    color: var(--bg-darker) !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

.nav-link.btn-destaque:hover {
    background-color: #ffc107;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* --- ÁREA PRINCIPAL --- */
#app {
    max-width: 1200px;
    margin: 30px auto;
    min-height: 60vh;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-state {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-top: 50px;
}

/* --- PLAYER RODAPÉ --- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background-color: var(--bg-darker);
    border-top: 2px solid var(--accent-gold);
    color: white;
    display: flex;
    justify-content: center;
    z-index: 200;
}

.player-content {
    width: 95%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.cover-art {
    width: 50px;
    height: 50px;
    background-color: var(--accent-cyan);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 24px;
}

.texts { display: flex; flex-direction: column; }
.program-name { font-weight: bold; color: var(--accent-cyan); }
.program-status { font-size: 0.8rem; color: var(--text-gray); display: flex; align-items: center; gap: 8px;}

/* BOTÃO AO VIVO PISCANDO */
.live-badge {
    background-color: #ff0000;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    display: none; 
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 6px rgba(255, 0, 0, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.controls-area { flex-grow: 1; display: flex; justify-content: center; }
#audio-player { width: 100%; max-width: 500px; height: 40px; }

.social-links { display: flex; gap: 15px; align-items: center; }
.social-links a { color: var(--text-gray); font-size: 20px; transition: 0.3s; }
.social-links a:hover { color: var(--accent-gold); }

/* BOTÃO DO APP */
.btn-app {
    display: flex;
    align-items: center;
    gap: 8px; 
    background-color: rgba(255,255,255,0.1); 
    border: 1px solid var(--text-gray);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none !important;
    color: var(--text-white) !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
    margin-right: 15px; 
}

.btn-app:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-darker) !important; 
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .program-status, .social-links a:not(.btn-app) { display: none; }
    .player-content { padding: 0 10px; }
    
    /* No celular, esconde o texto do app e deixa só o ícone */
    .app-text { display: none; }
    .btn-app { padding: 8px; margin-right: 5px; }
}