/* Estilos CSS do player de rádio e das seções de conteúdo */
:root {
    --dominant-color: #121212; 
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    color: #fff;
    background-color: var(--dominant-color);
    background-image: linear-gradient(to top, var(--dominant-color), #000000 85%);
    background-attachment: fixed;
}

/* Modo escuro para PWA */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: var(--dominant-color);
    background-image: linear-gradient(to top, var(--dominant-color), #000000 85%);
    background-attachment: fixed;
  }
}

.player-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    background-color: #121212;
    overflow: hidden;
}

.player-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center !important;
    background-size: cover !important;
    -webkit-filter: blur(8px);
    -ms-filter: blur(8px);
    filter: blur(8px);
    transform: scale(1.15);
    opacity: 0.5;
    z-index: 1;
    transition: background-image 0.5s ease-in-out;
    /* Fundo inicial para evitar tela branca */
    background-image: url('https://wapka-img.zuna.id/8831f802.jpeg');
}

.player-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.player-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
    background-color: transparent;
    transition: background-color 0.5s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.player-header .dropdown-toggle::after {
    display: none;
}

.icon-button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
}

.logo {
    flex-grow: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 100px;
    height: auto;
    opacity: 0.8;
}

.dropdown-menu {
    background-color: #1e1e1e;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    display: block;
    visibility: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #333;
    color: #ffc400;
}

.dropdown-item .bi {
    margin-right: 10px;
}

.quality-item-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quality-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: none;
}

.quality-indicator.active {
    display: inline-block;
}

.quality-indicator.auto {
    background-color: #ffc107;
}

.quality-indicator.high {
    background-color: #28a745;
}

.quality-indicator.medium {
    background-color: #007bff;
}

.quality-indicator.low {
    background-color: #dc3545;
}

/* Tamanho fixo para a capa */
.album-art-container {
    /* Dimensões fixas para centralizar a capa */
    width: 300px;
    height: 300px;
    position: relative;
    text-align: center;
    margin: 20px 0;
    flex-shrink: 0;
    /* Não encolhe no desktop flexbox */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 480px) {
    .album-art-container {
        width: 250px;
        height: 250px;
        margin: 10px 0;
    }
}

.album-art {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    transition: transform 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Capa padrão */
    background-image: url('https://wapka-img.zuna.id/ad14457f.png');
}

@media (max-width: 480px) {
    .album-art {
        width: 250px;
        height: 250px;
    }
}

.album-art.spinning {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.track-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
    transition: opacity 0.5s ease-in-out;
}

.song-title-container {
    width: 100%;
    text-align: center;
}

.song-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-height: 28px;
}

.artist-name {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-height: 20px;
}

.playback-info {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 50px;
    height: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

.playback-info.visible {
    visibility: visible;
    opacity: 1;
}

/* Ajuste solicitado: Subir um pouco a área de controles */
.player-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 70px;
    /* Ajustado para 70px */
    flex-wrap: wrap;
}

.action-button {
    background: none;
    border: none;
    color: #ffc400;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.3s ease;
}

.action-button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.play-button {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin: 0 20px;
}

.action-button .bi-cart2,
.action-button .bi-share,
.action-button .bi-star,
.action-button .bi-star-fill {
    color: #ffc400;
}

/* Oculta o layout de barras por padrão (mobile) */
.volume-control-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    gap: 2px;
}

.volume-control-container .reception-bar {
    width: 5px;
    background-color: #555;
    border-radius: 2px;
    transition: height 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.volume-control-container .reception-bar.active {
    background-color: #ffc400;
}

.volume-control-container .reception-bar.active:hover {
    background-color: #ffc400;
}

/* NOVO: Estilos para o volume em Desktop/Tablet */
.desktop-volume-control {
    display: none;
    /* Oculta o novo controle por padrão (mobile) */
    position: relative;
    align-items: flex-end;
    cursor: pointer;
    gap: 2px;
}

#desktopVolumeButton i {
    color: #ffc400;
    font-size: 24px;
}

#desktopVolumeButton:hover i {
    color: #ffc400;
}

/* Estilo do Slider de Volume em Desktop */
.volume-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.volume-tooltip.show {
    visibility: visible;
    opacity: 1;
}

.volume-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
}

.volume-slider {
    width: 100%;
    height: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 5px;
}

.volume-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #ffc400 0%, #ffc400 var(--volume-percent), #555 var(--volume-percent), #555 100%);
    border-radius: 5px;
    height: 5px;
}

.volume-slider::-moz-range-progress {
    background: #ffc400;
    border-radius: 5px;
    height: 5px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: -5px;
    margin-right: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffc400;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffc400;
    cursor: pointer;
    border: none;
}

.info-hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Área de Próxima Faixa (Next Track Info) */
.next-track-info-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: 90%;
    max-width: 400px;
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease-out;
    opacity: 0;
    pointer-events: none;
}

.next-track-info-container.show-popup {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.next-track-info-container.sliding-manual {
    transition: none !important;
}

.next-track-info-container.sliding-right-out {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out !important;
    transform: translateX(100%) translateY(0) !important;
    opacity: 0 !important;
}

.next-track-header {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
    font-weight: 700;
}

.next-track-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.next-track-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-image: url('https://wapka-img.zuna.id/ad14457f.png');
    /* Capa padrão */
}

.next-track-text {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.next-track-text h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-track-text p {
    font-size: 11px;
    margin: 0;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-track-time {
    font-size: 12px;
    color: #ffc400;
    font-weight: bold;
    flex-shrink: 0;
}

/* Fim da área Next Track Info */
.footer-icons {
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* NOVOS ESTILOS PARA AS ÁREAS DE CONTEÚDO */
.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
    padding: 20px;
    box-sizing: border-box;
    display: flex; /* CRÍTICO: Ativa o flexbox para o corpo */
    flex-direction: column; /* CRÍTICO: Define a direção vertical */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    border-radius: 15px 15px 0 0;
}

.content-section.show {
    transform: translateY(0);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.content-header h5 {
    color: #ffc400;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.content-body {
    flex-grow: 1;
    overflow-y: auto; /* CRÍTICO: Habilita a rolagem vertical */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-right: 10px;
    align-items: flex-start;
    width: 100%; /* Garante a largura total para o scroll */
}

.content-body>* {
    /* Garante que o conteúdo tenha espaço na parte inferior, especialmente com barras de rolagem */
    margin-bottom: 15px;
}

.content-body>*:last-child {
    margin-bottom: 80px;
}

.history-item,
.favorites-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 10px;
}

.history-item-image,
.favorites-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.history-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.history-item-actions .action-button {
    font-size: 18px;
}

.history-item-info,
.favorites-item-info {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-info h5,
.favorites-item-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.history-item-info p,
.favorites-item-info p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilos da seção de parceiros */
.parceiros-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.parceiro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #333;
    width: 90px;
    height: 90px;
}

.parceiro-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.parceiro-item .parceiro-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background-color: transparent;
    margin-bottom: 5px;
}

.parceiro-item span {
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
}

.history-item .time-ago,
.favorites-item .time-ago {
    font-size: 10px;
    color: #777;
    margin-top: 5px;
}

/* Estilos para a seção de programação */
.programacao-dia {
    margin-bottom: 20px;
}

.programacao-dia h4 {
    color: #ffc400;
}

.programacao-item {
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.programacao-item h6 {
    margin: 0;
    color: #fff;
    font-weight: bold;
}

.programacao-item p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

.programacao-item.destaque {
    background-color: #4CAF50;
    animation: pulse 1.5s infinite;
    border-left: 5px solid #ffc400;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(255, 204, 0, 0.8);
    }

    100% {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    }
}

.header-button-wrapper {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
}

.header-button-wrapper .icon-button {
    font-size: 18px;
    color: #fff;
}

/* Estilos dos Tooltips de Compartilhamento e Carrinho */
.share-tooltip-wrapper,
.cart-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.share-tooltip,
.cart-tooltip {
    visibility: hidden;
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -50px;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.share-tooltip {
    justify-content: space-around;
    gap: 11px;
    width: 100px;
}

.cart-tooltip {
    justify-content: space-around;
    width: 100px;
}

.share-tooltip::after,
.cart-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
}

.share-tooltip.show,
.cart-tooltip.show {
    visibility: visible;
    opacity: 1;
}

.share-tooltip a,
.cart-tooltip a {
    color: #fff;
    font-size: 20px;
}

.share-tooltip a:hover,
.cart-tooltip a:hover {
    color: #ffc400;
}

/* Estilos do player de vídeo (Studio TV) */
#studioTvSection .content-body {
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: hidden; /* DESABILITADO O SCROLL AQUI. O scroll fica no container principal em caso de conteúdo adicional */
}

#videoPlayerContainer {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    margin-top: auto; /* Centraliza verticalmente o player de vídeo */
    margin-bottom: auto; /* Centraliza verticalmente o player de vídeo */
}

#videoPlayer {
    width: 100%;
    height: 100%;
    display: block;
}

#videoPlayerControls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#videoPlayerContainer:hover #videoPlayerControls,
#videoPlayerControls:hover {
    transform: translateY(0);
}

.video-progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.video-progress-fill {
    height: 100%;
    background-color: #ffc400;
    border-radius: 5px;
    width: 0%;
}

.video-progress-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #ffc400;
    border-radius: 50%;
    display: none;
}

.video-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.video-time {
    display: flex;
    gap: 5px;
}

.video-buttons-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-buttons-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-control-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.video-control-button:hover {
    color: #ffc400;
}

.video-play-pause {
    font-size: 28px;
}

.video-seek-button {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-seek-button span {
    font-size: 12px;
}

/* Estilos das letras */
#lyricsContent {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    padding-right: 10px; /* Mantém o padding para a barra de rolagem */
}

#lyricsContent p {
    white-space: pre-wrap;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.8;
    margin: 0 auto;
    padding: 0 10px;
    margin-bottom: 2.7em;
    max-width: 600px;
}

/* Media Queries para responsividade */
@media (max-width: 768px) {
    .player-container {
        border-radius: 0;
        padding: 10px;
    }

    .player-content {
        padding: 10px 0;
    }

    .player-header {
        padding: 10px;
        border: none;
    }

    .song-title {
        font-size: 18px;
    }

    .artist-name {
        font-size: 12px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin: 0 10px;
    }

    .player-controls {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 70px;
        /* Ajuste para 70px */
    }

    .action-button {
        font-size: 20px;
    }

    .desktop-volume-control {
        display: none;
    }

    .volume-control-container {
        display: flex !important;
    }

    .volume-control-container .reception-bar {
        width: 4px;
    }

    .volume-control-container .reception-bar:nth-child(1) {
        height: 8px;
    }

    .volume-control-container .reception-bar:nth-child(2) {
        height: 12px;
    }

    .volume-control-container .reception-bar:nth-child(3) {
        height: 16px;
    }

    .volume-control-container .reception-bar:nth-child(4) {
        height: 20px;
    }

    .volume-control-container .reception-bar:nth-child(5) {
        height: 24px;
    }

    .logo-image {
        width: 80px;
    }

    .header-button-wrapper {
        width: 35px;
        height: 35px;
    }

    .header-button-wrapper .icon-button {
        font-size: 16px;
    }

    .video-buttons-center {
        gap: 10px;
    }

    .video-buttons-right {
        gap: 5px;
    }

    .next-track-info-container {
        padding: 8px 15px;
        width: 95%;
    }

    .next-track-art {
        width: 40px;
        height: 40px;
    }

    .next-track-text h5 {
        font-size: 12px;
    }

    .next-track-text p {
        font-size: 10px;
    }
}

@media (min-width: 769px) {
    .player-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 50px;
        max-width: 1000px;
        margin: 0 auto;
        padding-top: 100px;
    }

    .player-header {
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 1000px;
        z-index: 10; /* Adicionado: Garante que o header fique acima do conteúdo do player */
    }

    .player-header .dropdown-menu-end {
        max-height: 250px;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        z-index: 1000; /* Adicionado: Garante que o menu flutue acima de tudo */
    }

    .info-controls-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 300px;
        flex-grow: 1;
        max-width: 400px;
    }

    .album-art-container {
        margin: 0;
    }

    .album-art {
        width: 300px;
        height: 300px;
    }

    .track-info {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 30px;
        padding: 0;
    }

    .song-title,
    .artist-name {
        text-align: left;
    }

    .playback-info {
        text-align: left;
        margin-bottom: 30px;
    }

    .player-controls {
        justify-content: flex-start;
        gap: 20px;
        margin-bottom: 0;
    }

    .volume-control-container {
        display: none !important;
    }

    .desktop-volume-control {
        display: block;
        margin-right: 10px;
    }
}

.toast-container {
    left: 50% !important;
    transform: translateX(-50%);
    bottom: 20px !important;
}

.history-item-actions .spotify-link {
    transition: opacity 0.2s ease-in-out, cursor 0.2s ease-in-out;
}

.history-item-actions .spotify-link.disabled-link {
    opacity: 0.3; 
    cursor: default; 
    pointer-events: all;
}