@charset "UTF-8";

@import url("home.css");


#faixa-radio-penedo-fm {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 10rem;
    background-color: var(--color-brand-red);
    gap: 10px;
    z-index: 99999;
}

#faixa-radio-penedo-fm div{
    text-align: center;
    width: 100%;
}

#faixa-radio-penedo-fm div audio{
    display: block;
    width: 100%;
    height: 40px;
}

#faixa-radio-penedo-fm a {
    display: block;
    padding-top: 6px;
    font-size: 14px;
    color: white;
}

#penedo-fm-live {
    display: flex;
    width: 100%;
    background-color: var(--color-gray);
    flex-direction: row;
    line-height: 0;
    align-items: center;
    justify-content: center;
    column-gap: 30px;
}

#penedo-fm-live .responsive-video {
    min-width: 740px; 
}

#penedo-fm-live div:first-child {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
    align-items: flex-start;
    color: white;
    max-width: 450px;
}

#penedo-fm-live div:first-child h2 a{
    font-size: 36px;
    color: white;
    line-height: 40px;
}

#penedo-fm-live span{
    color: var(--color-gray);
    background-color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50px;
    padding: 3px 10px;
}

#penedo-fm-live span img{
    vertical-align: middle;
}

#penedo-fm-live .proximo-programa {
    display: flex;
    width: 100%;
    flex-direction: column;
    line-height: 1.25;
    font-size: 1rem;
    max-width: 300px;
    gap: 10px;
    margin-top: 20px;
}

#programas-penedo-fm h3 {
    border-color: #aa2320;
    padding-bottom: 0;
}

#programas-penedo-fm .box {
    padding: 0 30px 20px 20px;
}

#programas-penedo-fm ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    column-gap: 30px;
}

#programas-penedo-fm ul li {
    flex: 1 0 14%; /* 5 columns: each item takes up 20% of the width */
    box-sizing: border-box;
    padding: 5px; /* Optional: Adds space between the columns */
    margin: 0;
    padding: 0;
}

#programas-penedo-fm ul li a {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: -20px;
}

#programas-penedo-fm ul li a img{
    display: block;
    width: 100%;
    height: auto; /* Ensures the image maintains its aspect ratio */
    aspect-ratio: 1 / 1; /* Forces a square ratio */
    object-fit: contain; /* Ensures the image covers the entire block */
    max-height: 130px; /* Restricts the image to the max height */
}

#programas-penedo-fm ul li h4 {
    font-size: 16px;
    padding-top: 20px;
    padding-bottom: 6px;
    font-weight: bold;
}

#programas-penedo-fm ul li p {
    font-size: 13px;
    line-height: 1.4;
}

footer {
    padding-bottom: 7rem;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
    
    #faixa-radio-penedo-fm {
        padding: 1rem;
    }

    #penedo-fm-live {
        flex-direction: column;
        text-align: left; /* texto alinhado à esquerda */
        row-gap: 20px;
    }

    /* vídeo vem primeiro */
    #penedo-fm-live .responsive-video {
        order: -1;
        min-width: 100%;
        width: 100%;
    }

    /* bloco de texto */
    #penedo-fm-live div:first-child {
        padding: 20px 30px 40px 30px;
        align-items: flex-start; /* alinha conteúdo à esquerda */
        text-align: left;
        max-width: 100%;
        gap: 10px;
    }

    #penedo-fm-live div:first-child h2 a{
        font-size: 24px;
        line-height: 28px;
    }

    #penedo-fm-live .proximo-programa {
        max-width: 100%;
        font-size: 0.95rem;
        align-items: flex-start; /* esquerda também */
    }
    
    #programas-penedo-fm {
        margin-bottom: var(--big-v-gap);

    }

   #programas-penedo-fm .box {
        overflow: hidden;
        padding: 0;
    }

   #programas-penedo-fm ul {
        overflow-x: scroll;
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
        scrollbar-width: none;  /* Firefox */
        white-space: nowrap;
        display: block;
        vertical-align: top;
        padding: 20px 0;
        padding-top: 0;
        width: 100%;
    }

    #programas-penedo-fm ul::-webkit-scrollbar { 
        display: none;  /* Safari and Chrome */
    }

    #programas-penedo-fm ul li{
        max-width: 180px;
        white-space: wrap;
        display: inline-block;
        vertical-align: top;
        margin-right: 10px;
    }


}