:root {
    --fundo: #000;
    --texto: #f9fafb;
    --texto-suave: #7a7a7a;
    --vermelho-menu: #ca2828;
    --vermelho-titulo: #bf0000;
    --vermelho-secao: #8d0000;
    --vermelho-doacao: #cc2020;
    --fonte-sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --fonte-roboto: "Roboto", sans-serif;
    --fonte-slab: "Roboto Slab", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fundo);
    color: var(--texto);
    font-family: var(--fonte-sistema);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--vermelho-menu);
}

.pular {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 8px 16px;
    background: #fff;
    color: #000;
    z-index: 10;
}

.pular:focus {
    left: 8px;
    top: 8px;
}

/* Topo */

.topo {
    position: relative;
    text-align: center;
    padding: 16px 20px 0;
}

.idiomas {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.idiomas a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 5px;
    border-radius: 4px;
    color: #bbb;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1;
    text-decoration: none;
    opacity: .7;
    transition: opacity .2s, background .2s, color .2s;
}

.idiomas a:hover,
.idiomas a:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, .08);
}

.idiomas a.ativo {
    opacity: 1;
    color: var(--vermelho-menu);
}

.idiomas img {
    display: block;
    width: 30px;
    height: 20px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.idiomas a.ativo img {
    box-shadow: 0 0 0 2px var(--vermelho-menu);
}

.logo {
    display: inline-block;
    line-height: 0;
}

.logo img {
    width: 456px;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu a {
    display: block;
    padding: 0 18px;
    font-family: var(--fonte-roboto);
    font-size: 18px;
    line-height: 48px;
    color: #fff;
    text-decoration: none;
    transition: color .2s;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.ativo {
    color: var(--vermelho-menu);
}

.player {
    width: 850px;
    max-width: 100%;
    margin: 48px auto 0;
    aspect-ratio: 850 / 250;
}

.player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

main {
    padding: 0 20px;
    transition: opacity .15s;
}

main:focus {
    outline: none;
}

.carregando main {
    opacity: .5;
    pointer-events: none;
}

/* Home */

.selos {
    max-width: 1140px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    justify-items: center;
    gap: 20px;
}

.selos a {
    display: block;
    line-height: 0;
    transition: transform .2s, opacity .2s;
}

.selos a:hover {
    transform: scale(1.06);
    opacity: .9;
}

.selos .selo-caixa {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.selos .selo-texto {
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.doacao {
    text-align: center;
    margin-top: 80px;
}

.doacao-titulo {
    margin: 0 0 6px;
    color: var(--vermelho-doacao);
    font-family: var(--fonte-slab);
    font-size: 19px;
    font-weight: 400;
}

.doacao-texto {
    margin: 0 0 24px;
    color: #ccc;
    font-family: var(--fonte-slab);
    font-size: 15px;
}

.doacao img {
    display: block;
    width: 150px;
    margin: 0 auto;
}

/* Formulário */

.contato {
    max-width: 848px;
    margin: 60px auto 0;
    padding: 0 15px;
}

.contato-titulo {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--texto);
}

.campo-site {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.campo {
    margin-bottom: 15px;
}

.campo label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--texto);
}

.obrigatorio {
    color: #ff0000;
    font-weight: 400;
}

.campo input,
.campo textarea {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font: inherit;
}

.campo input {
    height: 38px;
}

.campo-medio input {
    width: 60%;
}

.campo textarea {
    min-height: 110px;
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    outline: 2px solid var(--vermelho-menu);
    outline-offset: 0;
    border-color: var(--vermelho-menu);
}

.contato button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #eee;
    color: #333;
    font: inherit;
    cursor: pointer;
    transition: background .2s;
}

.contato button:hover {
    background: #ddd;
}

.aviso {
    padding: 12px 16px;
    border-radius: 2px;
    margin: 0 0 20px;
}

.aviso-ok {
    background: #0f2e14;
    border: 1px solid #2f8f3f;
    color: #c9f2cf;
}

.aviso-erro {
    background: #3a0b0b;
    border: 1px solid var(--vermelho-menu);
    color: #ffd2d2;
}

/* Listas de bandas */

.lista-bandas {
    max-width: 1140px;
    margin: 60px auto 0;
    padding: 0 10px;
}

.pagina-acervo .lista-bandas {
    margin-top: 40px;
}

.pagina-acervo .lista-bandas + .lista-bandas {
    margin-top: 60px;
}

.titulo-secao {
    margin: 0 0 20px;
    text-align: center;
    color: var(--vermelho-secao);
    font-family: var(--fonte-roboto);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.titulo-esquerda {
    text-align: left;
}

.pagina-acervo .titulo-secao {
    margin-bottom: 46px;
}

.bandas {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3;
    column-gap: 0;
    text-align: center;
    color: #fff;
    font-family: var(--fonte-roboto);
    line-height: 25.6px;
    text-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

.bandas li {
    break-inside: avoid;
}

.e-mais {
    margin: 16px 0 0;
    text-align: center;
    color: #fff;
    font-family: var(--fonte-roboto);
}

/* Programação (músicas da semana) */

.playlist {
    max-width: 848px;
    margin: 40px auto 0;
}

.playlist-sub {
    margin: 0 0 24px;
    text-align: center;
    color: var(--texto-suave);
    font-family: var(--fonte-roboto);
}

.playlist-dias {
    display: flex;
    border-bottom: 1px solid #817f80;
}

.playlist-dias a {
    flex: 1;
    padding: 12px 4px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.playlist-dias a:hover {
    background: rgba(249, 240, 240, .15);
}

.playlist-dias a.ativo {
    color: #ef1515;
    box-shadow: inset 0 -3px 0 #ef1515;
}

.playlist-dias-datas a {
    padding: 8px 4px;
    line-height: 1.3;
}

.playlist-dias-datas small {
    display: block;
    font-size: 12px;
    color: #9a9a9a;
}

.playlist-dias-datas a.ativo small {
    color: #ef1515;
}

.playlist-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 20px 0;
}

.playlist-filtros label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--texto-suave);
}

.playlist-filtros .playlist-busca {
    flex: 1;
    min-width: 200px;
}

.playlist-filtros input {
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 2px;
    background: #111;
    color: #fff;
    font: inherit;
    color-scheme: dark;
}

.playlist-filtros input:focus {
    outline: 2px solid var(--vermelho-menu);
    outline-offset: 0;
}

.playlist-filtros button {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #ddd;
    background: #eee;
    color: #333;
    font: inherit;
    cursor: pointer;
}

.playlist-filtros button:hover {
    background: #ddd;
}

.playlist-resumo {
    margin: 0 0 16px;
    text-align: center;
    color: var(--texto-suave);
}

.playlist-resumo a {
    margin-left: 8px;
}

.playlist-status {
    margin: 24px 0;
    text-align: center;
    color: var(--texto-suave);
}

.playlist-cabecalho {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 8px;
    border-bottom: 1px solid #444;
    font-size: 13px;
    color: var(--texto-suave, #9a9a9a);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.playlist-cabecalho .playlist-hora {
    color: inherit;
    font-weight: 400;
    margin-right: 62px;
    white-space: nowrap;
}

.playlist-cabecalho small {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    color: #777;
}

.playlist-musicas {
    list-style: none;
    margin: 0;
    padding: 0;
}

.playlist-musicas li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 5px 8px;
    border-bottom: 1px solid #2a2a2a;
}

.playlist-musicas li.musica-nova {
    animation: musica-nova 3s ease-out;
}

@keyframes musica-nova {
    from { background: rgba(202, 40, 40, .35); }
    to { background: transparent; }
}

.playlist-musicas li:hover {
    background: #111;
}

.playlist-hora {
    width: 48px;
    flex-shrink: 0;
    font-weight: 700;
    color: #fff;
}

.playlist-hora.com-data {
    width: 92px;
}

.playlist-musicas img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 5px;
    object-fit: cover;
    background: #111;
}

.playlist-nome {
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-nome strong {
    color: #fff;
    font-weight: 600;
}

a.playlist-nome {
    text-decoration: none;
}

a.playlist-nome:hover,
a.playlist-nome:hover strong {
    color: var(--vermelho-menu);
}

/* Capa que toca a prévia de 30 s */

.capa {
    position: relative;
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.previa {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.previa::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 55% no-repeat;
    opacity: 0;
    transition: opacity .15s;
}

.previa:hover::after,
.previa:focus-visible::after,
.previa.tocando::after {
    opacity: 1;
}

.previa.tocando::after {
    background-color: rgba(202, 40, 40, .75);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6 5h4v14H6zm8 0h4v14h-4z'/%3E%3C/svg%3E");
}

.previa.carregando-previa::after {
    opacity: 1;
    background-image: none;
}

@media (hover: none) {
    .previa::after {
        opacity: .6;
        background-size: 45%;
    }
}

/* Mais tocadas */

.ranking {
    max-width: 1000px;
    margin: 40px auto 0;
}

.ranking .playlist-dias {
    margin-bottom: 20px;
}

.ranking-colunas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 10px;
}

.ranking-titulo {
    margin: 0 0 12px;
    color: var(--vermelho-titulo);
    font-family: var(--fonte-roboto);
    font-size: 19px;
    font-weight: 600;
}

.ranking-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-lista li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 8px;
    border-bottom: 1px solid #2a2a2a;
}

.ranking-lista li:hover {
    background: #111;
}

.ranking-pos {
    width: 28px;
    flex-shrink: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--vermelho-menu);
}

.ranking-lista img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
}

.ranking-nome {
    flex: 1;
    color: #ddd;
    line-height: 1.35;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.ranking-nome {
    color: #fff;
}

a.ranking-nome:hover {
    color: var(--vermelho-menu);
}

.ranking-nome strong {
    color: #fff;
    font-weight: 600;
}

.ranking-total {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--texto-suave);
}

/* Novidades */

.artigo {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 48px;
}

.artigo-titulo {
    margin: 0 0 30px;
    color: var(--vermelho-titulo);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.destaque {
    text-align: center;
    margin-bottom: 30px;
}

.destaque h3 {
    margin: 0 0 10px;
    color: var(--vermelho-titulo);
    font-family: var(--fonte-roboto);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.destaque a {
    color: inherit;
}

.novidade {
    padding: 10px;
    margin-bottom: 20px;
}

.novidade p {
    margin: 0 0 16px;
    color: var(--texto-suave);
    font-family: var(--fonte-roboto);
}

.novidade a {
    color: var(--vermelho-menu);
}

/* Rodapé */

.rodape {
    margin-top: 80px;
    padding: 24px 20px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.rodape p {
    margin: 0;
}

/* Responsivo */

@media (max-width: 1024px) {
    .selos {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;
    }
}

@media (max-width: 767px) {
    .topo {
        padding-top: 8px;
    }

    .idiomas {
        position: static;
        justify-content: flex-end;
        margin-bottom: 4px;
    }

    .logo img {
        width: 300px;
    }

    .menu a {
        font-size: 17px;
        line-height: 50px;
        padding: 0 12px;
    }

    .player {
        margin-top: 16px;
        aspect-ratio: auto;
        height: 250px;
    }

    .selos {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .doacao {
        margin-top: 50px;
    }

    .campo-medio input {
        width: 100%;
    }

    .bandas {
        columns: 2;
    }

    .artigo {
        padding: 0 10px;
    }

    .destaque h3 {
        font-size: 21px;
    }

    .playlist-dias {
        overflow-x: auto;
    }

    .playlist-dias a {
        flex: 0 0 auto;
        padding: 12px 10px;
    }

    .playlist-filtros label,
    .playlist-filtros button {
        width: 100%;
    }

    .ranking-colunas {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
