/* --- PLAYER FIXO --- */
.radio-player {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 0;
    gap: 1rem;
    box-sizing: border-box;
    z-index: 1000;
    font-family: 'Bebas Neue', sans-serif;
}

.radio-player>* {
    flex-shrink: 0;
}

.player {
    height: 70px;
    display: flex;
    align-items: center;
}

.player .toggle {
    font-size: 25px;
    background: #ce2028;
    color: white;
    border: 0;
    height: 100%;
    width: 200px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}

.player .toggle:hover {
    background: #a81a20;
    letter-spacing: 1px;
}

.player .toggle img.play-icon {
    height: 40px;
    width: auto;
}

.player .toggle .text {
    margin-top: 4px;
}

.studio-img {
    height: 70px;
    width: 70px;
    margin-left: -18px;
    object-fit: cover;
}

.logo-rum {
    height: 16px;
    margin-left: -5px;
    margin-right: 25px;
}

.info {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    gap: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    margin-bottom: -12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.info span {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 10px;
    text-overflow: ellipsis;
    display: inline-block;
    transition: max-width 0.3s ease;
    /* Suaviza a transiÃ§Ã£o ao reduzir o tamanho */
}

.on-air {
    color: #ce2028;
}

.current {
    color: white;
}

.next {
    color: #9f9f9f;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.volume-control input[type="range"] {
    accent-color: #d42027;
    height: 4px;
    cursor: pointer;
    width: 50px;
}

.volume-control i.fas {
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}

.volume-control i.fas:hover {
    /* color: #ce2028; */
}

.toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    padding: 0 20px;
}

.toggle-btn i {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    transform: translateY(4px);
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-btn:hover i,
.toggle-btn.active i {
    /* color: #ce2028; */
    cursor: pointer;
}

.toggle-btn.active i {
    transform: rotate(180deg) translateY(4px);
}

.player-details {
    display: none !important;
    position: fixed;
    right: 0;
    bottom: 70px;
    left: 0;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.85) linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.65));
    z-index: 1001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 30px;
    gap: 40px;
    flex-wrap: wrap;
}

.player-details.show {
    display: flex !important;
}

.player-details .close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 1.75rem;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 12px;
    z-index: 2;
}

.player-details .artwork {
    height: 280px;
    width: 280px;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.75);
    flex-shrink: 0;
}

.player-details .metadata {
    color: white;
    max-width: 600px;
}

.player-details .metadata h3 {
    font-size: 14px;
    color: #ce2028;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.player-details .metadata h1 {
    font-size: 48px;
    margin: 0;
}

.player-details .metadata p {
    font-size: 18px;
    margin: 0.5rem 0 1rem;
    color: #ccc;
}

.player-details .metadata a {
    color: #ce2028;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.player-details .metadata a:hover {
    text-decoration: underline;
}

.player-details {
    display: none !important;
}

.player-details.show {
    display: flex !important;
}

/* --- ANIMAÃ‡ÃƒO --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LOGOS --- */
.logos {
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 25px;
}

.logos img {
    height: 35px;
    filter: invert(1) opacity(0.6);
    transition: filter 0.3s ease;
}

.fa-solid:hover,
.fas:hover {
    /* color: #ce2028; */
    cursor: pointer;
}

/* --- ÃCONES PERSONALIZADOS --- */
[class^="icon-"],
[class*=" icon-"] {
    font-family: icons;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: none;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 1000px) {
    .volume-control {
        display: none;
    }

    .logos {
        display: none;
    }
}

@media (max-width: 720px) {
    #play-button {
        width: 70px;
    }

    .player .toggle {
        gap: 0px;
    }

    #play-button .text {
        visibility: hidden;
        max-width: 0;
        margin-left: 0;
    }

    #studio-img,
    .logo-rum {
        display: none;
        /* Esconde as imagens completamente */
        opacity: 0;
        /* Garantir que nÃ£o sejam visÃ­veis */
        max-width: 0;
        /* Garante que nÃ£o ocupem espaÃ§o */
        margin-left: 0;
        /* Remove a margem */
    }


}

/* ===== MODO ARQUIVO ESPECÃFICO ===== */

/* Estrutura base do modo arquivo */
.player.alt {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    background: #000;
    color: #fff;
    display: flex;
    height: 70px;
    z-index: 5;
}

/* BotÃ£o play/pause do modo arquivo */
.player.alt .toggle {
    background: #8e44ad;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
}

.player.alt .toggle:hover {
    background: #7d3c98;
}

/* Ãcones do modo arquivo */
.player .toggle [class*=icon-],
.player .toggle [class^=icon-] {
    font-size: 50px;
    font-size: 3.125rem;
    padding-right: 8px;
    transition: all 0.2s ease-in-out;
}

/* Imagem de capa */
.player.alt .cover {
    height: 70px;
    width: 70px;
    object-fit: cover;
    margin: 0 20px;
}

/* Ãrea de metadados */
.player.alt .meta {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 0 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player.alt .meta .status {
    color: #8e44ad;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.player.alt .meta .artist {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 2px;
}

.player.alt .meta .song {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Barra de progresso */
.player.alt .meta .progress {
    align-items: center;
    display: flex;
    width: 100%;
}

.player.alt .meta progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    background: #444;
    border: 0;
    display: block;
    flex: 1 0 auto;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
}

.player.alt .meta progress::-webkit-progress-bar {
    background: #444;
    border-radius: 2px;
}

.player.alt .meta progress::-webkit-progress-value {
    background: #8e44ad;
    border-radius: 2px;
}

.player.alt .meta progress::-moz-progress-bar {
    background: #8e44ad;
    border-radius: 2px;
}

.player.alt .meta .progress .time {
    font-size: 10px;
    font-size: 0.625rem;
    font-family: Lato, sans-serif;
    letter-spacing: 0;
    margin-left: 10px;
    color: #ccc;
    white-space: nowrap;
}

/* BotÃ£o "Voltar ao direto" */
.player.alt .button.stop {
    line-height: 18px;
    line-height: 1.125rem;
    letter-spacing: 0.04em;
    background: #cf232e;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    font-size: 1rem;
    margin: 0 20px;
    border-radius: 4px;
}

.player.alt .button.stop:hover {
    background: #b91e28;
}

/* Controles de volume do modo arquivo */
.player.alt .volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.player.alt .toggle-mute {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.2s ease-in-out;
}

.player.alt .toggle-mute:hover {
    color: #8e44ad;
}

.player.alt .volume-slider {
    width: 80px;
}

.player.alt .volume-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.player.alt .volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #8e44ad;
    border-radius: 50%;
    cursor: pointer;
}

.player.alt .volume-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #8e44ad;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* BotÃ£o expandir */
.player.alt .expand {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.player.alt .expand:hover {
    color: #8e44ad;
}

/* Logos do modo arquivo */
.player.alt .logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 20px;
}

.player.alt .logos a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.2s ease-in-out;
}

.player.alt .logos a:hover {
    color: #8e44ad;
}

.logos img:hover {
    filter: invert(1) opacity(1);
}

/* Ãcones especÃ­ficos */
.icon-pause::before {
    content: "â¸";
}

.icon-play::before {
    content: "â–¶";
}

.icon-volume::before {
    content: "ðŸ”Š";
}

.icon-volume-mute::before {
    content: "ðŸ”‡";
}

.icon-arrow_8::before {
    content: "âŒ„";
}

.icon-aaum::before {
    content: "ðŸŽ“";
}

.icon-aaumtv::before {
    content: "ðŸ“º";
}

/* Responsividade para modo arquivo */
@media (max-width: 1125px) {
    .player.alt .toggle {
        font-size: 0;
    }

    .player.alt .toggle .text {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1068px) {
    .player.alt .toggle {
        font-size: 0;
    }

    .player.alt .toggle .text {
        display: none;
    }
}

@media (max-width: 768px) {
    .player.alt .meta {
        padding: 0 15px;
    }

    .player.alt .meta .song {
        font-size: 14px;
    }

    .player.alt .meta .artist {
        font-size: 12px;
    }

    .player.alt .button.stop {
        padding: 8px 15px;
        font-size: 14px;
        margin: 0 10px;
    }

    .player.alt .volume {
        margin: 0 10px;
    }

    .player.alt .volume-slider {
        width: 60px;
    }

    .player.alt .logos {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .player.alt .cover {
        width: 50px;
        height: 50px;
        margin: 0 10px;
    }

    .player.alt .meta {
        padding: 0 10px;
    }

    .player.alt .meta .progress .time {
        font-size: 8px;
    }

    .player.alt .button.stop {
        padding: 6px 12px;
        font-size: 12px;
        margin: 0 5px;
    }

    .player.alt .volume {
        margin: 0 5px;
    }

    .player.alt .logos {
        margin: 0 5px;
    }
}

/* Mostra o botÃ£o no player de arquivos */
.player.alt #meu-botao-personalizado {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #8e44ad;
    border: 1px solid #8e44ad;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.player.alt #meu-botao-personalizado:hover {
    background: #8e44ad;
    color: #fff;
}