/* 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); }
}
