html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilos Globais com a paleta Lilás */
:root {
    --cor-principal: #8a008c; /* Roxo mais forte para destaques */
    --cor-secundaria: #f7c2ff; /* Lilás claro para fundos */
    --cor-fundo-player: #f0f0f0;
    --cor-texto-player: #333;
    --cor-play-button: #121312;
    --cor-texto-claro: #ffffff;
    --cor-texto-escuro: #121312;
    --cor-fundo: #f8f1ff;
}

/* --- CORREÇÃO DO HEADER --- */
body {
    font-family: 'Montserrat', sans-serif;
    /* O padding superior deve ter apenas a altura do player fixo */
    padding-top: 0px;
    padding-top: 0; /* Garante que não haja preenchimento superior */
    background-color: var(--cor-fundo);
}

.navbar-custom {
    /* Usando 'sticky' para que o menu "grude" no topo ao rolar */
    /* A classe 'sticky-top' do Bootstrap já aplica isso, mas reforçamos aqui */
    position: sticky;

    /* Posição onde o menu irá "grudar", abaixo do player de 70px */
    top: 0px;

    z-index: 1040; /* Garante que o menu fique acima do conteúdo */
    background-color: var(--cor-principal);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* --- FIM DA CORREÇÃO --- */



.album-art {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ccc;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.song-info {
    background-color: #fff;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    max-width: 400px;
    overflow: hidden;
}
.song-info-label {
    font-weight: 700;
    color: var(--cor-texto-player);
    margin-right: 8px;
    white-space: nowrap;
}
.song-info-marquee {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
}
.song-info-marquee p {
    margin: 0;
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 15s linear infinite;
}
@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.play-control {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.play-control::before, .play-control::after {
    content: '';
    position: absolute;
    border: 1px solid #ccc;
    border-radius: 50%;
    transition: all 0.5s ease;
    opacity: 0;
}
.play-control.playing::before {
    width: 80px;
    height: 80px;
    opacity: 1;
    animation: pulse 2s infinite ease-out;
}
.play-control.playing::after {
    width: 100px;
    height: 100px;
    opacity: 1;
    animation: pulse 2s infinite ease-out;
    animation-delay: 0.5s;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
#play-pause-btn {
    background-color: var(--cor-play-button);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s;
}
#play-pause-btn:hover {
    transform: scale(1.1);
}

/* --- ESTILOS GERAIS DA PÁGINA --- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--cor-principal);
}
.section-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--cor-texto-claro);
    font-weight: 700;
    transition: color 0.3s;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--cor-secundaria);
}
.navbar-custom .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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.banner-carousel {
    padding: 2rem 0;
    background-color: var(--cor-secundaria);
}
.carousel-item img {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.2rem;
}
.hero-section {
    padding: 80px 0;
    text-align: center;
}
.hero-section h1 {
    font-size: 3em;
    color: var(--cor-principal);
}
.btn-pill {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    background-color: var(--cor-principal);
    border: none;
    color: white;
}
.btn-pill:hover {
    background-color: #6c2c93;
    color: white;
}
.item-box-blog {
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.item-box-blog-image figure img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.btn.bg-purple-ui {
    background-color: var(--cor-principal);
    color: white;
    border-radius: 20px;
    padding: 5px 25px;
    font-weight: 700;
}
.btn.bg-purple-ui:hover {
    background-color: #6c2c93;
}
.horarios-section .card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: center;
}
.horarios-section .card-header {
    font-weight: 700;
    font-size: 1.2rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
footer {
    background-color: #121312;
    color: white;
    padding: 30px 0;
    text-align: center;
}
.social-circle li a {
    display:inline-block;
    position:relative;
    border-radius:50%;
    text-align:center;
    width: 50px;
    height: 50px;
    font-size:20px;
    background-color: var(--cor-principal);
}
.social-circle li i {
    margin:0;
    line-height:50px;
    text-align: center;
    color: #fff;
}
.social-circle li a:hover {
    background-color: #6c2c93;
}
ul.social-network {
    list-style: none;
    padding: 0;
}
ul.social-network li {
    display: inline;
    margin: 0 5px;
}

/* --- NOVOS ESTILOS PARA O CARROSSEL DE PATROCINADORES (BOOTSTRAP) --- */
.sponsors-section {
    padding: 2rem 0;
    background-color: #fff; /* Fundo branco para destacar a seção */
}

.sponsor-logo-bs {
    padding: 15px;
}

.sponsor-logo-bs img {
    max-width: 100%; /* A imagem se ajusta à coluna */
    height: 90px;    /* Altura fixa para alinhar todas as logos */
    object-fit: contain; /* Garante que a logo não seja distorcida */
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.sponsor-logo-bs img:hover {
    opacity: 1;
}

/* Estiliza as setas do carrossel para combinar com o tema */
#sponsorsCarousel .carousel-control-prev-icon,
#sponsorsCarousel .carousel-control-next-icon {
    background-color: var(--cor-principal);
    border-radius: 50%;
    padding: 1.5rem; /* Aumenta o tamanho do fundo */
}

#home-section,
#programas-section,
#agenda-section,
#sponsors-section,
#rankings-container,
#apoie-section,
#contato-section {
  scroll-margin-top: 90px;
}

/* --- ESTILOS PARA A SEÇÃO DE PROGRAMAÇÃO DINÂMICA --- */

.schedule-container {
    max-width: 900px;
    margin: auto;
    background-color: var(--cor-secundaria);
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.schedule-days {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.day-button {
    background-color: var(--cor-principal);
    color: var(--cor-texto-claro);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-button:hover {
    opacity: 0.8;
}

.day-button.active {
    background-color: var(--cor-texto-escuro);
    color: var(--cor-texto-claro);
    transform: scale(1.05);
}

.schedule-list {
    display: flex;
    flex-direction: column;
}

.program-item {
    display: flex;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px solid rgba(138, 0, 140, 0.15);
    transition: all 0.3s ease;
}

.program-item:last-child {
    border-bottom: none;
}

.program-item.is-live {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(138, 0, 140, 0.2);
    border-radius: 10px;
    border-left: 5px solid var(--cor-principal);
    transform: scale(1.02);
}

.program-time {
    font-weight: 700;
    color: var(--cor-principal);
    width: 120px;
    flex-shrink: 0;
}

.program-details {
    flex-grow: 1;
    font-weight: 500;
    font-size: 1.1rem;
}

.program-presenter {
    display: flex;
    align-items: center;
    /* NOVO: Alinha o conteúdo (foto e nome) para a direita, dentro do bloco */
    justify-content: flex-end;
    gap: 10px;
    /* NOVO: Define uma largura fixa para a "coluna" do locutor */
    width: 240px;
    /* NOVO: Impede que a coluna encolha se o nome do programa for muito grande */
    flex-shrink: 0;
    padding-left: 15px;
}

.presenter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .program-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .program-presenter {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 10px;
        margin-top: 5px;
    }

      /* deixa o container flexível */
  .song-info{
     max-width: 100%;   /* <-- solta o limite de 400 px               */
     flex: 1 1 0;       /* pode crescer ou encolher conforme o espaço */
     min-width: 0;      /* permite encolher de verdade                */
  }

  /* o texto corre até o fim e mostra ‘…’ se ainda faltar espaço */
  .song-info-marquee{
     overflow: hidden;
     text-overflow: ellipsis;
  }
}

/* --- ESTILOS PARA OS NOVOS ÍCONES DE PLAYER EXTERNO --- */

.external-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaçamento entre os ícones */
}

.player-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.player-link-btn:hover {
    transform: scale(1.1);
    background-color: #f5f5f5;
    color: var(--cor-principal);
}

/* --- ESTILOS CORRIGIDOS PARA O BLOCO "NO AR" NO HEADER --- */

.on-air-container {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15); /* Fundo mais sutil */
    color: var(--cor-texto-claro);
    padding: 6px 10px; /* Padding ajustado */
    border-radius: 8px;

    /* REMOVIDO: margin-right: auto; */
    /* NOVO: Adiciona uma margem à direita para separar do menu */
    margin-right: 20px;

    /* NOVO: Limita a largura máxima para evitar que estique demais */
    max-width: 350px;
}

.on-air-avatar img {
    width: 45px;  /* Tamanho ajustado */
    height: 45px; /* Tamanho ajustado */
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
}

.on-air-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3; /* Espaçamento entre linhas melhorado */
    white-space: nowrap; /* Impede que o texto quebre linha */
    overflow: hidden;    /* Esconde o texto que não couber */
    text-overflow: ellipsis; /* Adiciona "..." se o texto for muito longo */
}

.on-air-info span {
    font-size: 0.75rem; /* Tamanho ajustado */
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
}

.on-air-info strong {
    font-size: 1rem; /* Tamanho ajustado */
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.on-air-info small {
    font-size: 0.75rem; /* Tamanho ajustado */
    font-weight: 500;
}


/* Card + tabela scrollável */
#playlist-section .playlist-scroll{
  max-height: 340px;      /* controla o “ambiente pequeno” */
  overflow: auto;
  border-radius: .5rem;
}

/* Cabeçalho sticky já vem com .sticky-top no thead */
#playlist-section thead th{
  position: sticky; top: 0; z-index: 2;
}

/* Aparência moderna */
#playlist-section .table tbody tr:hover{
  background: #faf7ff;     /* um lilás leve *bem* Sonora */
}
#playlist-section .table td,
#playlist-section .table th{
  vertical-align: middle;
  white-space: nowrap;
}
#playlist-section .text-truncate{
  overflow:hidden; text-overflow:ellipsis;
}

/* Scrollbar mais discreta (webkit) */
#playlist-section .playlist-scroll::-webkit-scrollbar{ height:10px; width:10px; }
#playlist-section .playlist-scroll::-webkit-scrollbar-thumb{ background:#d0c7ff; border-radius:8px; }
#playlist-section .playlist-scroll::-webkit-scrollbar-track{ background:#f5f3ff; }

/* Badge de horário com fonte monoespaçada já está no HTML (.font-monospace) */

