/* ================= TOPBAR ================= */

/* ================= TOPBAR ================= */

.topbar{
background:#1f3c88;
color:#fff;
font-size:15px; /* antes 14 */
}

.topbar .container{
padding:10px 0; /* aumenta altura */
}

.topbar span{
margin-right:25px;
opacity:.95;
font-weight:500;
}

.topbar i{
margin-right:6px;
}

/* redes sociais */

.topbar a{
color:#fff;
margin-left:14px;
font-size:16px; /* ícones maiores */
transition:.25s;
}

.topbar a:hover{
opacity:.75;
transform:scale(1.1);
}

.topbar-right a:hover{
opacity:.7;
}


/* ================= HEADER ================= */

.main-header{
background:none;
padding:56px 0;
color:#fff;
box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

.header-grid{
display:grid;
grid-template-columns: auto 1fr auto;
align-items:center;
gap:40px; /* antes 30px */
}


/* ================= LOGO ================= */

.logo-box{
display:flex;
align-items:center;
text-decoration:none;
color:#fff;
}

.logo-icon img{
height:80px;
width:auto;
margin-right:10px;
}

.logo-text strong{
display:block;
font-size:26px;
}

.logo-text span{
font-size:15px;
opacity:.85;
}


/* ================= BANNER ================= */

/* ================= BANNER ================= */

.header-banner{
display:flex;
justify-content:center;
align-items:center;
}

.header-banner img{
max-height:160px;
width:auto;
object-fit:contain;
margin:auto;
display:block;
}


/* ================= PLAYER ================= */

.header-player{

display:flex;
align-items:center;
gap:14px;

background:rgba(255,255,255,0.12);
border:1px solid rgba(255,255,255,0.25);

border-radius:12px;

padding:12px 18px;

backdrop-filter:blur(6px);

box-shadow:0 4px 15px rgba(0,0,0,0.2);

}


/* ================= PLAY BUTTON ================= */

.play-btn{

width:38px;
height:38px;

border-radius:50%;
border:none;

background:#ffffff;
color:#2a60c9;

font-size:20px;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

transition:.25s;
}

.play-btn:hover{
transform:scale(1.08);
background:#e9f0ff;
}


/* ================= PLAYER INFO ================= */

.player-info{
display:flex;
flex-direction:column;
gap:2px;
}


/* badge ao vivo */

.live-badge{

background:#ff3b3b;
color:#fff;

font-size:10px;
font-weight:700;

padding:2px 6px;

border-radius:4px;

width:max-content;

letter-spacing:.4px;

}


/* nome rádio */

.radio-name{
font-size:13px;
font-weight:600;
color:#fff;
}


/* ================= VOLUME ================= */

.volume-box{

display:flex;
align-items:center;
gap:6px;

font-size:12px;
color:#e8f0ff;

}

.volume-box i{
font-size:16px;
}

/* slider */

.volume-box input{

width:80px;
height:4px;

appearance:none;

background: none;
border-radius:4px;

outline:none;

cursor:pointer;

}

/* thumb */

.volume-box input::-webkit-slider-thumb{

appearance:none;

width:12px;
height:12px;

border-radius:50%;

background:#ffffff;

cursor:pointer;

box-shadow:0 0 4px rgba(0,0,0,0.3);

}

#volDisplay{
font-size:11px;
opacity:.9;
}


/* ================= NAVBAR ================= */

.main-navbar{
background: none;
}

.main-navbar .nav-link{
color:#fff !important;
font-weight:500;
padding:14px 16px !important;
transition:.3s;
}

.main-navbar .nav-link:hover{
background:rgba(255,255,255,0.15);
border-radius:6px;
}

.main-navbar .nav-link.active{
background:rgba(255,255,255,0.2);
border-radius:6px;
}


/* ================= RESPONSIVIDADE ================= */


/* ===== DESKTOP MÉDIO ===== */

@media (max-width:1200px){

.header-banner img{
max-height:60px;
max-width:420px;
}

.volume-box input{
width:80px;
}

}


/* ===== TABLET ===== */

@media (max-width:992px){

.header-grid{
grid-template-columns:1fr;
gap:20px;
text-align:center;
}

/* logo centralizada */

.logo-box{
justify-content:center;
}

/* banner centralizado */

.header-banner{
order:2;
display:flex;
justify-content:center;
}

.header-banner img{
max-width:80%;
max-height:65px;
}

/* player abaixo */

.header-player{
order:3;
justify-content:center;
margin:auto;
max-width:420px;
}

/* navbar */

.main-navbar .navbar-collapse{
background:#2a60c9;
padding:10px;
border-radius:8px;
margin-top:10px;
}

.main-navbar .nav-link{
padding:10px !important;
}

}


/* ===== MOBILE ===== */

@media (max-width:768px){

.topbar-inner{
flex-direction:column;
gap:6px;
text-align:center;
}

.topbar-left span{
margin-right:8px;
font-size:13px;
}

/* estrutura */

.header-grid{
grid-template-columns:1fr;
gap:18px;
}

/* logo */

.logo-box{
justify-content:center;
}

.logo-icon img{
height:42px;
}

.logo-text strong{
font-size:17px;
}

.logo-text span{
font-size:12px;
}

/* banner */

.header-banner{
order:2;
display:flex;
justify-content:center;
}

.header-banner img{
max-width:90%;
max-height:60px;
}

/* player */

.header-player{
order:3;
justify-content:center;
padding:10px 16px;
gap:12px;
max-width:95%;
margin:auto;
}

.radio-name{
font-size:13px;
}

/* volume */

.volume-box input{
width:90px;
}

}


/* ===== MOBILE PEQUENO ===== */

@media (max-width:480px){

.header-player{
flex-wrap:wrap;
justify-content:center;
gap:10px;
padding:10px 14px;
}

.player-info{
align-items:center;
text-align:center;
}

.volume-box{
justify-content:center;
}

.play-btn{
width:38px;
height:38px;
font-size:18px;
}

.volume-box input{
width:110px;
}

/* banner proporcional */

.header-banner img{
max-width:95%;
max-height:55px;
}

}
/* 1. Garanta que o slide tenha uma altura definida e esconda o excesso */
.hero-modern {
    position: relative;
    width: 100%;
    /* Defina aqui a altura desejada para o seu hero. 
       Exemplos: 500px, 80vh (80% da altura da tela), etc. */
    height: 520px;
    overflow: hidden; /* IMPORTANTE: corta qualquer imagem que tente sair */
}
.hero-slide { 
    width: 100%; height: 520px; display: flex; align-items: center; justify-content: space-between; 
    /* ESTA É A LINHA PRINCIPAL QUE RESOLVE SEU PROBLEMA: */
    background-size: cover; 
    background-position: center center; /* Mantém o rapaz centralizado */
    background-repeat: no-repeat; position: relative; 
}
.hero-overlay { position: absolute; inset: 0; /* background via CSS vars abaixo */ }
.hero-grid { display: grid; grid-template-columns:1fr 420px; gap:60px; align-items:center; position: relative; z-index:2; }
.hero-badge { background:#ef4444; color:#fff; padding:6px 14px; border-radius:20px; font-size:13px; display:inline-flex; align-items:center; gap:6px; margin-bottom:18px; }
.live-dot { width:8px; height:8px; background:white; border-radius:50%; animation:pulse 1.5s infinite; }
@keyframes pulse {0%{opacity:1}50%{opacity:.3}100%{opacity:1}}
.hero-title { font-size:52px; font-weight:800; color:white; line-height:1.1; }
.hero-subtitle { color:#cbd5f5; font-size:20px; margin-top:10px; }
.hero-desc { color:#e5e7eb; margin-top:12px; max-width:500px; }
.hero-buttons { margin-top:25px; display:flex; gap:15px; }
.btn-primary-hero { background:#3b82f6; color:#fff; border:none; padding:14px 26px; border-radius:12px; font-weight:600; cursor:pointer; }
.btn-primary-hero:hover { background:#2563eb; }
.btn-outline-hero { border:1px solid #fff; padding:13px 24px; border-radius:12px; color:#fff; text-decoration:none; }
.hero-stats { display:flex; gap:40px; margin-top:40px; }
.hero-stats strong { font-size:20px; display:block; color:#fff; }
.hero-stats span { font-size:13px; color:#cbd5f5; }
.hero-player { backdrop-filter: blur(15px); background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); border-radius:18px; padding:30px; color:white; }
.player-top { font-size:13px; margin-bottom:10px; color:#f87171; }
.player-controls { display:flex; align-items:center; gap:20px; margin-top:20px; }
.player-play { width:60px; height:60px; border-radius:50%; border:none; background:#3b82f6; color:white; font-size:22px; cursor:pointer; }
.wave { display:flex; gap:4px; align-items:flex-end; }
.wave span { width:4px; height:16px; background:white; animation:wave 1s infinite; }
.wave span:nth-child(2){animation-delay:.1s;}
.wave span:nth-child(3){animation-delay:.2s;}
.wave span:nth-child(4){animation-delay:.3s;}
.wave span:nth-child(5){animation-delay:.4s;}
@keyframes wave {0%{height:10px}50%{height:28px}100%{height:10px}}
.listeners { margin-top:15px; font-size:14px; color:#cbd5f5; }
.hero-nav { position:absolute; top:50%; transform:translateY(-50%); background: rgba(0,0,0,.4); border:none; color:white; font-size:28px; width:42px; height:42px; border-radius:50%; cursor:pointer; z-index:10; }
.hero-nav.prev { left:25px; } 
.hero-nav.next { right:25px; }
.hero-indicators { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:10; }
.hero-indicators span { width:10px; height:10px; border-radius:50%; background:#ffffff60; cursor:pointer; }
.hero-indicators span.active { background:white; }
.ticker-modern { background:#0f172a; color:white; padding:10px; overflow:hidden; white-space:nowrap; }
.ticker-track { display:inline-block; animation:ticker 20s linear infinite; }
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* Responsividade */
@media(max-width:992px){.hero-grid{grid-template-columns:1fr; text-align:center; gap:40px;}}
@media(max-width:768px){.hero-slide{min-height:440px;padding:40px 0;}/* hero-overlay no mobile usa CSS vars */}
@media(max-width:480px){.hero-title{font-size:26px;}}

/* ── HERO MELHORADO: degradê + bolinhas ── */

/* Overlay com degradê diagonal (da cor primária para mais escuro) */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        var(--hero-color-start, #0c1a3a) 0%,
        var(--hero-color-mid,   rgba(20,40,100,.92)) 55%,
        var(--hero-color-end,   rgba(10,20,60,.78)) 100%
    ) !important;
}

/* Bolinhas decorativas no fundo */
.hero-slide::before,
.hero-slide::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    animation: heroFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.hero-slide::before {
    width: 320px; height: 320px;
    top: -80px; left: -60px;
    animation-delay: 0s;
}
.hero-slide::after {
    width: 200px; height: 200px;
    bottom: -60px; right: 8%;
    animation-delay: 3s;
}

/* Bolinhas extras via JS — adicionadas pelo renderSlide */
.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
    z-index: 1;
    animation: heroFloat var(--dur, 7s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .07; }
    50%       { transform: translateY(-28px) scale(1.06); opacity: .13; }
}

/* Degradê nos indicadores (dots) */
.hero-indicators span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .35s;
}
.hero-indicators span.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* Imagem do slide com sombra */
.hero-image-wrapper {
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.35) !important;
    overflow: hidden;
}

/* Animação de entrada do conteúdo */
.hero-left {
    animation: heroSlideIn .5s ease both;
}
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* ================= NEWS SECTION ================= */

.news-section{
padding:70px 0;
background:#f8fafc;
}

.news-section .container{
max-width:1200px;
margin:auto;
padding:0 16px;
}

/* HEADER */

.news-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:40px;
}

.news-header h2{
font-size:34px;
font-weight:800;
color:#1e293b;
}

.news-divider{
width:70px;
height:4px;
background:#2563eb;
border-radius:4px;
margin-top:6px;
}

.news-more-btn{
border:1px solid #2563eb;
color:#2563eb;
padding:8px 16px;
border-radius:6px;
text-decoration:none;
font-weight:600;
transition:.3s;
}

.news-more-btn:hover{
background:#2563eb;
color:white;
}

/* GRID */

.news-grid{
display:grid;
grid-template-columns:2fr 1fr;
gap:30px;
}

/* FEATURED */

.featured-card{
background:white;
border-radius:12px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:.3s;
}

.featured-card:hover{
transform:translateY(-4px);
}

.featured-image{
position:relative;
}

.featured-image img{
width:100%;
height:260px;
object-fit:cover;
}

.category{
position:absolute;
top:14px;
left:14px;
color:white;
padding:6px 12px;
border-radius:20px;
font-size:12px;
font-weight:700;
}

.readtime{
position:absolute;
bottom:14px;
right:14px;
background:rgba(0,0,0,0.7);
color:white;
padding:4px 10px;
border-radius:20px;
font-size:12px;
}

.featured-content{
padding:24px;
}

.featured-content h3{
font-size:22px;
margin-bottom:12px;
}

.featured-content p{
color:#64748b;
margin-bottom:16px;
}

.news-meta{
display:flex;
justify-content:space-between;
font-size:14px;
color:#64748b;
}

.read-more{
color:#2563eb;
font-weight:600;
}

/* SIDE NEWS */

.side-news{
display:flex;
flex-direction:column;
gap:20px;
}

.side-card{
display:flex;
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 6px 15px rgba(0,0,0,0.06);
text-decoration:none;
color:inherit;
transition:.3s;
}

.side-card:hover{
transform:translateY(-3px);
}

.side-image{
position:relative;
width:120px;
flex-shrink:0;
}

.side-image img{
width:100%;
height:100%;
object-fit:cover;
}

.side-content{
padding:14px;
}

.side-content h4{
font-size:15px;
margin-bottom:6px;
}

.side-content p{
font-size:13px;
color:#64748b;
margin-bottom:6px;
}

.news-date{
font-size:12px;
color:#94a3b8;
}

/* CATEGORY COLORS */

.category.blue{background:#3b82f6;}
.category.green{background:#22c55e;}
.category.orange{background:#f97316;}
.category.red{background:#ef4444;}
.category.primary{background:#2563eb;}

/* RESPONSIVO */

@media(max-width:900px){

.news-grid{
grid-template-columns:1fr;
}

.side-card{
flex-direction:column;
}

.side-image{
width:100%;
height:160px;
}

}

@media(max-width:500px){

.featured-image img{
height:200px;
}

.news-header h2{
font-size:26px;
}

}
body { font-family:'Inter',sans-serif; margin:0; background:#f5f5f5; color:#333; }
.container { max-width:1200px; margin:auto; padding:20px; }

/* GRID */
.grid { display:flex; flex-wrap:wrap; gap:20px; margin-top:20px; }
.program-list { flex:2; }
.top-songs { flex:1; }

/* LIVE SHOW TOP - maior */
.live-show-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(90deg,#1e3a8a,#2563eb);
  color:#fff;
  padding:20px;
  border-radius:14px;
  margin-bottom:25px;
  flex-wrap:wrap;
  min-height:100px;
}
.live-show-card .host-avatar { width:80px; height:80px; border-radius:50%; border:3px solid rgba(255,255,255,0.3); object-fit:cover; margin-right:20px; }
.live-info { flex:1; min-width:250px; margin-right:20px; }
.live-info .badge { background:rgba(255,255,255,0.25); color:#fff; padding:4px 8px; border-radius:9999px; font-size:0.85rem; font-weight:bold; display:inline-block; margin-bottom:6px; }
.show-title { font-size:1.4rem; font-weight:600; margin:2px 0; }
.show-host { font-size:1rem; opacity:0.85; margin:2px 0; }
.show-description { font-size:0.9rem; opacity:0.75; margin:2px 0; }
.show-time { font-size:1rem; font-weight:bold; white-space:nowrap; }

/* CARD */
.card { background:#fff; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.08); overflow:hidden; margin-bottom:20px; }
.card-header { padding:14px 18px; font-weight:bold; font-size:1.1rem; border-bottom:1px solid #eee; }
.card-content { padding:14px 18px; }

/* PROGRAM ITEM */
.program-item { display:flex; justify-content:space-between; align-items:center; padding:14px; border-radius:12px; transition:0.3s; margin-bottom:8px; }
.program-item:hover { background:#f0f0f0; }
.program-item.live { border-left:4px solid #1d4ed8; background:rgba(29,78,216,0.1); }
.program-info { display:flex; align-items:center; gap:14px; }
.start-time { font-weight:bold; color:#1d4ed8; min-width:55px; font-size:0.95rem; }
.info-text h4 { margin:0; font-weight:600; font-size:1rem; }
.info-text p { margin:0; font-size:0.85rem; opacity:0.7; }

/* BADGES */
.badge { padding:4px 8px; border-radius:9999px; font-weight:bold; font-size:0.75rem; text-align:center; }
.badge-live { background:#e11d48; color:#fff; }
.badge-upcoming { background:#f3f4f6; color:#374151; }
.badge-finished { background:#f3f4f6; color:#6b7280; }

/* SONG ITEM */
.song-item { display:flex; align-items:center; gap:12px; padding:12px; border-radius:12px; transition:0.3s; }
.song-item:hover { background:#f0f0f0; }
.song-position { width:32px; height:32px; border-radius:50%; background:#1d4ed8; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:bold; font-size:0.85rem; }
.song-info { flex:1; min-width:0; }
.song-info h5 { margin:0; font-weight:600; font-size:0.95rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.song-info p { margin:0; font-size:0.85rem; opacity:0.7; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.song-trend { font-size:0.85rem; }

/* NO PROGRAM */
.no-program { text-align:center; opacity:0.6; padding:16px 0; }

/* RESPONSIVO */
@media(max-width:768px) {
  .grid { flex-direction:column; }
  .live-show-card { flex-direction:column; align-items:flex-start; min-height:auto; }
  .show-time { margin-top:8px; }
}