/* ===== RESET E BASE ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== 1. HEADER FIXO - ALTERADO PARA BRANCO ===== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: auto;
    min-height: 60px;
    background: #ffffff !important; /* FORÇAR FUNDO BRANCO */
    color: #333333;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid #28a745;
}

/* ÍCONES DAS REDES SOCIAIS NO HEADER - VERDE */
.fixed-header .social-links a {
    color: #28a745 !important;
}

.fixed-header .social-links a:hover {
    color: #20c997 !important;
}

/* DESCRIÇÃO DO HEADER EM VERDE */
.fixed-header .text-success {
    color: #28a745 !important;
}

.fixed-header .container {
    height: 100%;
}

.fixed-header .row {
    align-items: center;
    min-height: 50px;
}

/* ÍCONES DAS REDES SOCIAIS NO HEADER - VERDE */
.fixed-header .social-links a {
    color: #28a745 !important; /* ÍCONES VERDES */
}

.fixed-header .social-links a:hover {
    color: #20c997 !important; /* HOVER VERDE CLARO */
}

/* ===== 2. PLAYER CUSTOMIZADO ===== */
.custom-radio-player {
    position: fixed;
    top: calc(60px + 30px + 2px); /* min-height + padding + border */
    left: 0;
    right: 0;
    z-index: 1020;
    height: 70px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    /* border-bottom: 3px solid #28a745; */ /* REMOVER ESTA LINHA */
    color: white;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.player-container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Capa/Imagem */
.presenter-image {
    position: relative;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
}

.presenter-image img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #28a745;
}

/* Comentar ou remover todas estas regras: */
/*
.live-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}
*/

/* E também remover as outras definições de live-indicator que estão nas linhas 686, 700 e 765 */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Informações Alinhadas */
.track-info {
    flex: 1;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Para permitir text-overflow */
}

.radio-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #28a745;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-title {
    font-size: 0.9rem;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

/* Controles do Player */
.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn-play-pause {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.btn-play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.5);
}

/* Controle de Volume */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-icon {
    color: #cccccc;
    font-size: 0.9rem;
}

.volume-slider {
    width: 70px;
    height: 3px;
    background: #444;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
}

.volume-value {
    font-size: 0.75rem;
    color: #cccccc;
    min-width: 30px;
}

/* ===== RESPONSIVIDADE MOBILE ===== */
@media (max-width: 768px) {
    /* Player Mobile */
    .custom-radio-player {
        top: 90px; /* Valor inicial para mobile */
        height: 60px;
        padding: 6px 0;
    }
    
    .presenter-image {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    
    .presenter-image img {
        width: 35px;
        height: 35px;
    }
    
    .radio-name {
        font-size: 0.85rem;
    }
    
    .track-title {
        font-size: 0.75rem;
    }
    
    .btn-play-pause {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .volume-control {
        gap: 4px;
    }
    
    .volume-slider {
        width: 40px;
    }
    
    .volume-value {
        font-size: 0.65rem;
    }
}

/* ===== 3. MENU DE NAVEGAÇÃO - VERSÃO CORRIGIDA ===== */
.fixed-nav {
    position: fixed;
    top: 165px; /* Ajustado para colar no player (95px + 70px) */
    left: 0;
    right: 0;
    z-index: 1010;
    background: #28a745 !important;
    border-bottom: 1px solid #20c997;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fixed-nav .navbar {
    padding: 0;
    background: #28a745 !important; /* MANTER VERDE */
}

.fixed-nav .nav-link {
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #ffffff !important; /* TEXTO BRANCO */
}

.fixed-nav .nav-link:hover {
    background: #20c997 !important; /* HOVER VERDE */
    color: #ffffff !important;
}

.fixed-nav .nav-link.active {
    background: #20c997 !important;
    color: #ffffff !important;
}

/* NAVBAR TOGGLER */
.navbar-toggler {
    border: 1px solid #ffffff;
    padding: 4px 8px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== RESPONSIVIDADE MOBILE - MENU BRANCO ===== */
@media (max-width: 768px) {
    .fixed-nav {
        background: #28a745 !important; /* NAVBAR PRINCIPAL VERDE */
    }
    
    .fixed-nav .navbar {
        background: #28a745 !important; /* NAVBAR PRINCIPAL VERDE */
    }
    
    /* MENU DROPDOWN BRANCO */
    .fixed-nav .navbar-collapse {
        background: #ffffff !important; /* FUNDO BRANCO */
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-top: 1px;
        border: 1px solid #28a745;
    }
    
    .fixed-nav .navbar-nav {
        background: #ffffff !important; /* FUNDO BRANCO */
        padding: 5px 0;
    }
    
    .fixed-nav .nav-link {
        height: 45px;
        padding: 0 15px;
        font-size: 0.9rem;
        background: transparent !important;
        color: #333333 !important; /* TEXTO ESCURO NO MOBILE */
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
    }
    
    .fixed-nav .nav-link:hover {
        background: #28a745 !important; /* HOVER VERDE */
        color: #ffffff !important; /* TEXTO BRANCO NO HOVER */
    }
    
    .fixed-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* LINKS ATIVOS NO MOBILE */
    .fixed-nav .nav-link.fw-bold.text-success {
        color: #28a745 !important;
        font-weight: bold !important;
    }
    
    .fixed-nav .nav-link.fw-bold.text-success:hover {
        background: #28a745 !important;
        color: #ffffff !important;
    }
}

/* GARANTIR QUE O BOOTSTRAP FUNCIONE */
.navbar-collapse.collapsing,
.navbar-collapse.show {
    background: #28a745;
}

/* Não interferir com as classes do Bootstrap */
.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.fixed-nav .nav-item:last-child .nav-link {
    border-bottom: none;
}

/* Conteúdo Mobile */
body {
    padding-top: 195px; /* Valor inicial para mobile */
}

/* Carousel Mobile */
/* Banner Desktop */
.banner-image {
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.navbar-toggler {
    border: 1px solid #28a745;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

@media (max-width: 576px) {
    .fixed-header {
        min-height: 65px;
        padding: 10px 0;
    }
    
    .fixed-header h1 {
        font-size: 1rem;
    }
    
    .fixed-header .social-links a {
        font-size: 1.1rem;
        margin: 0 0.2rem;
    }
    
    .custom-radio-player {
        top: 85px;
        height: 55px;
        padding: 5px 0;
    }
    
    .fixed-nav {
        top: 140px; /* Ajustado para mobile (85px + 55px) */
        height: auto;
    }
    
    body {
        padding-top: 180px;
    }
    
    .carousel-item img {
        height: 148px;
    }
}
    .presenter-image {
        width: 30px;
        height: 30px;
    }
    
    .presenter-image img {
        width: 30px;
        height: 30px;
    }
    
    .btn-play-pause {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .volume-slider {
        width: 35px;
    }

/* ===== 9. UTILITÁRIOS ===== */
.hero-section {
    background: linear-gradient(135deg, #28a745, #20c997);
    position: relative;
    overflow: hidden;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #28a745 !important;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ocultar elemento de áudio padrão */
#radioStream {
    display: none;
}

/* Layout para navegação AJAX */
.main-content {
    margin-top: calc(var(--header-height) + var(--player-height) + var(--nav-height));
    min-height: calc(100vh - var(--header-height) - var(--player-height) - var(--nav-height));
    padding: 20px 0;
}

.fixed-nav {
    position: fixed;
    top: 165px; /* Manter consistente com a definição principal */
    left: 0;
    right: 0;
    z-index: 1020;
}

/* Loading spinner */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Transições suaves */
.main-content {
    transition: opacity 0.3s ease-in-out;
}

.main-content.loading {
    opacity: 0.7;
}

/* Responsivo */
@media (max-width: 768px) {
    .main-content {
        margin-top: calc(var(--header-height-mobile) + var(--player-height-mobile) + var(--nav-height-mobile));
    }
    
    .fixed-nav {
        top: calc(var(--header-height-mobile) + var(--player-height-mobile));
    }
}

/* ===== ÍCONES DAS SEÇÕES - TODOS VERDES ===== */
.text-primary {
    color: #28a745 !important; /* ÍCONE NOTÍCIAS VERDE */
}

.text-success {
    color: #28a745 !important; /* ÍCONE PROMOÇÕES VERDE */
}

.text-info {
    color: #28a745 !important; /* ÍCONE PROGRAMAÇÃO VERDE */
}

.text-warning {
    color: #28a745 !important; /* ÍCONE LOCUTORES VERDE */
}

/* ===== BOTÕES - TODOS VERDES ===== */
.btn-outline-primary {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-primary:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-outline-success {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-success:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-outline-info {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-info:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-outline-warning {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-warning:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-primary:hover {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
}

/* Badge personalizado verde para programação */
.badge-programming {
    background-color: #28a745 !important;
    color: white !important;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.badge-programming:hover {
    background-color: #20c997 !important;
}

/* Tabs personalizadas verdes para programação */
#programmingTabs .nav-link {
    color: #28a745 !important;
    border-color: transparent !important;
    background-color: transparent !important;
}

#programmingTabs .nav-link:hover {
    color: #20c997 !important;
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
}

#programmingTabs .nav-link.active {
    color: white !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

#programmingTabs .nav-link.active:hover {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
}

/* ===== PLAYER DE VÍDEO - CÂMERA AO VIVO ===== */
.live-stream-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 0;
    display: flex;
    align-items: center;
}

.stream-player {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.stream-video {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
}

/* Remover ou comentar estas regras CSS: */
/*
.live-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.live-indicator i {
    animation: pulse 2s infinite;
    margin-right: 5px;
}
*/

.loading-message, .offline-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.loading-message h4, .offline-message h3 {
    margin-bottom: 15px;
    color: white;
}

.offline-message i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.stream-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-info h4 {
    color: white;
    margin-bottom: 15px;
}

.stream-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .live-stream-container {
        padding: 20px 0;
    }
    
    .stream-video {
        max-height: 50vh;
        border-radius: 8px;
    }
    
    .stream-player {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .live-indicator {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .loading-message, .offline-message {
        padding: 30px 20px;
        border-radius: 8px;
    }
    
    .stream-info {
        padding: 20px;
        border-radius: 8px;
    }
    
    .offline-message i {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .stream-video {
        max-height: 40vh;
    }
    
    .loading-message, .offline-message {
        padding: 25px 15px;
    }
    
}
/* Media Query para Desktop - Player maior */
@media (min-width: 992px) {
    .custom-radio-player {
        height: 80px;
        padding: 5px 0;
    }
    
    .btn-play-pause {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .presenter-image {
        width: 70px;
        height: 70px;
        margin-right: 20px;
    }
    
    .presenter-image img {
        width: 70px;
        height: 70px;
    }
    
    .player-container {
        align-items: center;
        justify-content: flex-start;
    }
}

/* Botão fixo do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}