
:root {
    --z-red: #ff3b0a;
    --z-orange: #ff9d00;
    --z-yellow: #ffe600;
    --z-green: #1f9d1f;
    --z-green-dark: #0f5f14;
    --z-black: #14110f;
    --z-paper: #fffdf6;
    --z-paper-2: #fff4d6;

    --z-sun: linear-gradient(
        135deg,
        var(--z-red),
        var(--z-orange) 55%,
        var(--z-yellow)
    );

    --z-radius: 1rem;
    --z-shadow: 0 4px 14px rgba(20, 17, 15, .08);
    --z-shadow-lg: 0 10px 30px rgba(20, 17, 15, .12);
}

/* =====================================================
   1. BASE E TIPOGRAFIA
===================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Figtree', sans-serif;
    background: var(--z-paper);
    color: var(--z-black);
    padding-bottom: 100px;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    letter-spacing: -.02em;
}

a {
    color: var(--z-green-dark);
}

a:hover {
    color: var(--z-green);
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--z-orange);
    outline-offset: 3px;
}

.min-w-0 {
    min-width: 0;
}

/* =====================================================
   2. NAVBAR
   Logo maior sem aumentar a barra.
===================================================== */

.navbar {
    background: var(--z-black);
    min-height: 58px;
}

.navbar .container {
    position: relative;
}

.navbar .nav-link {
    color: #fff;
    font-weight: 500;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--z-yellow);
}

.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    position: absolute;
    top: 50%;
    left: 0;
    height: 90px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transform: translateY(-50%);
    z-index: 2;
}

/* =====================================================
   3. BOTÃO AO VIVO
===================================================== */

.btn-live {
    background: var(--z-sun);
    border: 0;
    color: var(--z-black);
    font-weight: 700;
    border-radius: 50rem;
    transition: filter .2s ease, transform .2s ease;
}

.btn-live:hover {
    filter: brightness(1.08);
    color: var(--z-black);
    transform: translateY(-1px);
}

/* =====================================================
   4. HERO / DESTAQUE PRINCIPAL
===================================================== */

.hero {
    position: relative;
    background: var(--z-sun);
    overflow: hidden;
    padding: 3.5rem 0 7rem;
}

.hero::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -120px;
    height: 200px;
    background: var(--z-green);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1;
}

.hero .lead {
    max-width: 34ch;
    font-weight: 500;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}

.freq {
    display: inline-block;
    background: var(--z-black);
    color: var(--z-yellow);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    padding: .2rem .9rem;
    border-radius: .6rem;
    transform: rotate(-2deg);
}

/* =====================================================
   5. SEÇÕES
===================================================== */

section {
    padding: 4rem 0;
}

.sec-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.sec-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 6px;
    border-radius: 4px;
    background: var(--z-sun);
    margin-top: .6rem;
}

.bg-green {
    background: var(--z-green-dark);
    color: #fff;
}

.bg-paper2 {
    background: var(--z-paper-2);
}

/* =====================================================
   6. PROGRAMAÇÃO
===================================================== */

.day-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .4rem;
    padding-bottom: .3rem;
    scrollbar-width: thin;
}

.day-pills .nav-link {
    color: var(--z-black);
    background: #fff;
    border: 1px solid #e7dcc0;
    white-space: nowrap;
    border-radius: 50rem;
    transition: background .2s ease, color .2s ease;
}

.day-pills .nav-link.active {
    background: var(--z-black);
    color: var(--z-yellow);
    border-color: var(--z-black);
}

.slot {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: .9rem;
    padding: .8rem 1rem;
    margin-bottom: .6rem;
    border-left: 6px solid var(--z-orange);
    box-shadow: var(--z-shadow);
}

.slot-live {
    border-left-color: var(--z-red);
    background: #fff1ea;
}

.slot-time {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    min-width: 70px;
    line-height: 1;
}

.slot-time small {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: .7rem;
    color: #777;
}

/* =====================================================
   7. VÍDEOS
===================================================== */

.video-card {
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: var(--z-shadow-lg);
    height: 100%;
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
    transition: opacity .2s ease;
}

.video-thumb:hover img {
    opacity: .7;
}

.play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--z-sun);
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--z-black);
}

/* =====================================================
   8. GALERIA
===================================================== */

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--z-black);
    cursor: pointer;
    text-align: left;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s ease, opacity .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: .85;
}

.gallery-item .cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem .9rem .8rem;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}

.gallery-item .cap small {
    display: block;
    color: var(--z-yellow);
    font-weight: 500;
}

.gallery-item .count {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: 50rem;
    padding: .15rem .6rem;
    font-size: .8rem;
}

.carousel-item img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
}

/* =====================================================
   9. PUBLICIDADE
===================================================== */

.ad-img {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--z-shadow);
}

.ad-img img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-square img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ad-tag {
    position: absolute;
    top: 6px;
    left: 8px;
    z-index: 1;
    font-size: .65rem;
    background: rgba(255, 255, 255, .85);
    padding: 0 .4rem;
    border-radius: 4px;
    color: #555;
}

.sponsor {
    background: #fff;
    border-radius: .8rem;
    padding: .8rem;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--z-shadow);
}

.sponsor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =====================================================
   10. RODAPÉ
   Logo ampliada sem distorcer a proporção.
===================================================== */

footer {
    background: var(--z-black);
    color: #d8d2c6;
    padding: 3rem 0 2rem;
}

footer a {
    color: var(--z-yellow);
    text-decoration: none;
}

footer a:hover {
    color: var(--z-orange);
}

footer img {
    height: 75px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* =====================================================
   11. PLAYER FIXO
===================================================== */

.player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--z-black);
    color: #fff;
    border-top: 4px solid var(--z-orange);
    padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom));
}

.player-bar img {
    height: 65px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.btn-play {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--z-sun);
    color: var(--z-black);
    font-size: 1.5rem;
    display: grid;
    place-items: center;
}

.player-bar .form-range {
    width: 120px;
}

.eq {
    display: inline-flex;
    gap: 3px;
    align-items: flex-end;
    height: 14px;
    vertical-align: middle;
}

.eq i {
    width: 3px;
    background: currentColor;
    height: 30%;
    border-radius: 2px;
}

.playing .eq i {
    animation: eq 1s ease-in-out infinite;
}

.playing .eq i:nth-child(2) {
    animation-delay: .2s;
}

.playing .eq i:nth-child(3) {
    animation-delay: .4s;
}

.playing .eq i:nth-child(4) {
    animation-delay: .6s;
}

@keyframes eq {
    0%, 100% {
        height: 25%;
    }

    50% {
        height: 100%;
    }
}

/* =====================================================
   12. ACESSIBILIDADE
===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .playing .eq i {
        animation: none;
        height: 70%;
    }
}

/* =====================================================
   13. RESPONSIVIDADE
===================================================== */

@media (max-width: 767px) {
    .navbar-brand img {
        height: 76px;
        max-width: 200px;
    }

    .player-bar img {
        height: 58px;
        max-width: 150px;
    }

    footer img {
        height: 68px;
        max-width: 200px;
    }
}

@media (max-width: 575px) {
    body {
        padding-bottom: 90px;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 2.5rem 0 6rem;
    }

    .slot-time {
        min-width: 60px;
        font-size: 1.1rem;
    }

    .player-bar img {
        height: 52px;
        max-width: 130px;
    }

    .player-bar .form-range {
        width: 80px;
    }

    footer img {
        height: 60px;
        max-width: 180px;
    }
}
