@charset 'utf-8';

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,300;1,800&display=swap');
@import url('bootstrap.min.css');

/* Sistema de Elevação - Sombras e Profundidade */
:root {
    /* Elevação 0 - Sem sombra */
    --elevation-0: none;
    
    /* Elevação 1 - Superfície básica (0.5dp) */
    --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.2), 
                   0 1px 1px rgba(0, 0, 0, 0.14), 
                   0 2px 1px -1px rgba(0, 0, 0, 0.12);
    
    /* Elevação 2 - Cards, botões em repouso (1dp) */
    --elevation-2: 0 2px 4px rgba(0, 0, 0, 0.2), 
                   0 1px 2px rgba(0, 0, 0, 0.14), 
                   0 3px 1px -2px rgba(0, 0, 0, 0.12);
    
    /* Elevação 3 - Elementos destacados (2dp) */
    --elevation-3: 0 3px 6px rgba(0, 0, 0, 0.25), 
                   0 2px 4px rgba(0, 0, 0, 0.16), 
                   0 3px 3px -2px rgba(0, 0, 0, 0.14);
    
    /* Elevação 4 - Hover states, elementos interativos (4dp) */
    --elevation-4: 0 4px 8px rgba(0, 0, 0, 0.3), 
                   0 2px 4px rgba(0, 0, 0, 0.18), 
                   0 5px 5px -3px rgba(0, 0, 0, 0.16);
    
    /* Elevação 5 - Elementos elevados (8dp) */
    --elevation-5: 0 8px 16px rgba(0, 0, 0, 0.35), 
                   0 4px 8px rgba(0, 0, 0, 0.2), 
                   0 8px 8px -4px rgba(0, 0, 0, 0.18);
    
    /* Elevação 6 - Elementos muito elevados (16dp) */
    --elevation-6: 0 16px 24px rgba(0, 0, 0, 0.4), 
                   0 8px 12px rgba(0, 0, 0, 0.22), 
                   0 16px 16px -8px rgba(0, 0, 0, 0.2);
    
    /* Sombras com glow dourado */
    --shadow-glow-yellow: 0 0 10px rgba(250, 204, 21, 0.3),
                          0 0 20px rgba(250, 204, 21, 0.2);
    
    --shadow-glow-yellow-strong: 0 0 15px rgba(250, 204, 21, 0.5),
                                 0 0 30px rgba(250, 204, 21, 0.3);
    
    --shadow-glow-orange: 0 0 15px rgba(251, 146, 60, 0.4),
                          0 0 25px rgba(251, 146, 60, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0f0f0f;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: #0f0f0f;
    color: #facc15;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: 'Poppins', sans-serif;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

main {
    margin: 0 !important;
    padding: 0 !important;
    background: #0f0f0f;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    box-sizing: border-box;
}

section {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.cover-site,
#bgCover,
.bg-mask {
    display: none;
}

.player-bar {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 150px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 !important;
    background: #0f0f0f;
    box-shadow: var(--elevation-5),
                var(--shadow-glow-yellow),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    animation: slideInFromTop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    will-change: transform, opacity;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.player-bar.playing::before {
    animation: waveEffect 3s ease-in-out infinite;
}

@keyframes waveEffect {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.cover-album {
    width: 55px;
    height: 55px;
    background: url('../img/cover.png') no-repeat;
    background-size: cover;
    border: 2.5px solid #facc15;
    box-shadow: var(--elevation-3),
                var(--shadow-glow-yellow),
                inset 0 0 0 2.5px rgba(251, 146, 60, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cover-album::before {
    content: '';
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    background: linear-gradient(135deg, #facc15 0%, #fb923c 50%, #facc15 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cover-album::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

.cover-album.shine::after {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cover-album:hover {
    box-shadow: var(--elevation-4),
                var(--shadow-glow-yellow-strong),
                var(--shadow-glow-orange);
    transform: scale(1.08);
}

.cover-album.playing {
    box-shadow: var(--elevation-4),
                var(--shadow-glow-yellow-strong),
                var(--shadow-glow-orange);
    animation: coverPulse 2s ease-in-out infinite, coverRotate 8s linear infinite;
    border-color: #fb923c;
}

.cover-album.playing::before {
    opacity: 1;
    background: linear-gradient(135deg, #facc15 0%, #fb923c 30%, #facc15 60%, #fb923c 100%);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

.cover-album.loading {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.1), rgba(251, 146, 60, 0.2), rgba(250, 204, 21, 0.1));
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s ease-in-out infinite;
}

@keyframes loadingShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes coverPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(0deg);
    }
}


@keyframes coverRotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

#currentCoverArt {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 14px;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    transform: translateZ(0);
    will-change: opacity, transform, filter;
}


#currentCoverArt.fade-transition {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
    filter: blur(2px);
}

#currentCoverArt.fade-in {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
    animation: coverZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes coverZoomIn {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}


.logo {
    display: none;
}

.info-current-song {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    max-width: 100%;
    overflow: hidden;
    animation: fadeInLeft 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-current-song h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.3;
    color: #facc15;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 
                 0 0 12px rgba(250, 204, 21, 0.4),
                 0 0 20px rgba(250, 204, 21, 0.2);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 100%;
    max-width: 100%;
    animation: marquee 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-sizing: border-box;
    transform: translateZ(0);
    will-change: transform, opacity;
}


.info-current-song h2.song-transition {
    opacity: 0;
    transform: translateX(-20px) translateY(-5px);
    filter: blur(3px);
    animation: none;
}

.info-current-song h2.song-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0px);
    animation: marquee 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Gradiente no final para suavizar */
.info-current-song {
    position: relative;
    overflow: hidden;
}

.info-current-song::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, 
                rgba(15, 15, 15, 0) 0%, 
                rgba(15, 15, 15, 0.3) 30%,
                rgba(15, 15, 15, 0.7) 60%,
                rgba(15, 15, 15, 0.95) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-current-song:has(h2.marquee)::before {
    opacity: 1;
}

.info-current-song::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, 
                rgba(15, 15, 15, 0.95) 0%, 
                rgba(15, 15, 15, 0.7) 40%,
                rgba(15, 15, 15, 0.3) 70%,
                rgba(15, 15, 15, 0) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-current-song:has(h2.marquee)::after {
    opacity: 1;
}

.info-current-song h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.4;
    color: rgba(250, 204, 21, 0.9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7), 
                 0 0 8px rgba(250, 204, 21, 0.3);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.info-current-song h3.artist-transition {
    opacity: 0;
    transform: translateX(-15px) translateY(-5px);
    filter: blur(3px);
}

.info-current-song h3.artist-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0px);
    animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.current-song {
    color: #facc15;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 
                 0 0 12px rgba(250, 204, 21, 0.4),
                 0 0 20px rgba(250, 204, 21, 0.2);
}

.current-artist {
    color: rgba(250, 204, 21, 0.9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7), 
                 0 0 8px rgba(250, 204, 21, 0.3);
}

.live-info-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    min-width: 180px;
}

.live-info {
    font-size: 16.5px;
    font-weight: 600;
    color: #facc15;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(250, 204, 21, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-info:hover {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(250, 204, 21, 0.5);
}

.controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    animation: fadeInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.controls > * {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    will-change: transform;
}

.controls > *:hover {
    transform: translateY(-2px);
}

.floating-notes {
    position: absolute;
    bottom: -5%;
    left: 50%;
    width: calc(100% - 40px);
    transform: translateX(-50%);
    pointer-events: none;
    overflow: visible;
}

.floating-notes span {
    position: absolute;
    bottom: -20%;
    color: #facc15;
    font-size: 18px;
    animation: floatNote 6s linear infinite, colorNote 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transform: translateZ(0);
    will-change: transform, opacity, color;
}

.floating-notes span:nth-child(1) { left: 0%;  transform: translateX(-10%); animation-duration: 6s; animation-delay: 0s; }
.floating-notes span:nth-child(2) { left: 8%;  transform: translateX(-10%); animation-duration: 6.8s; animation-delay: 0.6s; }
.floating-notes span:nth-child(3) { left: 92%; transform: translateX(-90%); animation-duration: 6.2s; animation-delay: 1s; }
.floating-notes span:nth-child(4) { left: 100%; transform: translateX(-90%); animation-duration: 7s; animation-delay: 1.4s; }

@keyframes floatNote {
    0%   { transform: translateY(40%) translateX(-6px) rotate(-6deg); opacity: 0; }
    10%  { opacity: 0.85; }
    50%  { transform: translateY(-10%) translateX(5px) rotate(6deg); opacity: 0.7; }
    100% { transform: translateY(-130%) translateX(-4px) rotate(-4deg); opacity: 0; }
}

@keyframes colorNote {
    0%   { color: #facc15; }
    33%  { color: #38bdf8; }
    66%  { color: #a855f7; }
    100% { color: #facc15; }
}

.live-cover {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.live-badge {
    color: #ef4444;
    font-weight: 700;
    animation: pulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.recent-item .music-info .song {
    font-size: 13px;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    animation: marquee 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.play-pause {
    font-size: 24px;
}

.play-pause i {
    cursor: pointer;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.volume-control:hover {
    transform: translateY(-1px);
}

.volume-control i {
    font-size: 18px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #facc15;
}

.volume-control i:hover {
    color: #fb923c;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.6);
}

.volume-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #facc15;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: var(--elevation-4),
                var(--shadow-glow-yellow);
    z-index: 1000;
}

.volume-control:hover .volume-tooltip,
#volume:hover ~ .volume-tooltip,
#volume:focus ~ .volume-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.vagalume a {
    color: #facc15;
    text-decoration: underline;
}


.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: #facc15 !important;
    border-radius: 20px;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow: auto;
}

.modal-body iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    border-radius: 10px;
}

.modal-content .btn {
    border-radius: 20px;
    background-color: #00E1E7;
}

.hidden {
    display: none; 
  }

/* Chrome */
input[type=range] {
    appearance: none;
    background: transparent;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #22c55e 0%, #facc15 50%, #ef4444 100%);
    transition: background 0.2s ease;
}

input[type=range] {
    --thumb-color: #facc15;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4), 
                0 0 0 2px rgba(15, 15, 15, 0.8),
                0 0 10px var(--thumb-color, rgba(250, 204, 21, 0.4));
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--thumb-color, #facc15);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(15, 15, 15, 0.9);
}

input[type=range]::-webkit-slider-thumb:hover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5), 
                0 0 0 2px rgba(15, 15, 15, 0.9),
                0 0 20px rgba(250, 204, 21, 0.7);
    transform: scale(1.15);
}

input[type=range]::-webkit-slider-thumb:active {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5), 
                0 0 0 2px rgba(15, 15, 15, 0.9),
                0 0 25px rgba(250, 204, 21, 0.9);
    transform: scale(1.2);
    background: linear-gradient(135deg, #facc15 0%, #fb923c 100%);
}

/* Firefox */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #22c55e 0%, #facc15 50%, #ef4444 100%);
    transition: background 0.2s ease;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4), 
                0 0 10px var(--thumb-color, rgba(250, 204, 21, 0.4));
    border: 2px solid rgba(15, 15, 15, 0.9);
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--thumb-color, #facc15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type=range]::-moz-range-thumb:hover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(250, 204, 21, 0.7);
    transform: scale(1.15);
}

input[type=range]::-moz-range-thumb:active {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5), 
                0 0 25px rgba(250, 204, 21, 0.9);
    transform: scale(1.2);
    background: linear-gradient(135deg, #facc15 0%, #fb923c 100%);
}

/* IE e Edge */
input[type=range]::-ms-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animation: 0.2s;
    background: transparent;
    border-color: transparent;
    border-width: 10px 0;
    top: -10px;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: linear-gradient(to right, #22c55e 0%, #facc15 50%, #ef4444 100%);
    border: 0px solid #000101;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

input[type=range]::-ms-fill-upper {
    background: linear-gradient(to right, #facc15 0%, #ef4444 100%);
    border: 0px solid #000101;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}

input[type=range]::-ms-thumb {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4), 
                0 0 10px var(--thumb-color, rgba(250, 204, 21, 0.4));
    border: 2px solid rgba(15, 15, 15, 0.9);
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--thumb-color, #facc15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type=range]::-ms-thumb:hover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(250, 204, 21, 0.7);
    transform: scale(1.15);
}

input[type=range]::-ms-thumb:active {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5), 
                0 0 25px rgba(250, 204, 21, 0.9);
    transform: scale(1.2);
    background: linear-gradient(135deg, #facc15 0%, #fb923c 100%);
}


.historic {
    display: none;
}

.recent-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 200px;
    max-width: 240px;
    position: relative;
    z-index: 20;
}

.recent-box h4 {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #facc15;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.recent-box h4:hover {
    opacity: 1;
    color: #fb923c;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: auto;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    will-change: transform;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recent-item:hover {
    transform: translateX(2px);
}

.recent-item:active {
    transform: translateX(1px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recent-item .cover-historic {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid rgba(250,204,21,0.2);
    box-shadow: var(--elevation-2);
    transform: translateZ(0);
}

.recent-item .music-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.recent-item .music-info .song {
    font-size: 13px;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    animation: marquee 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    width: 100%;
}

.recent-item .music-info .artist {
    font-size: 11px;
    margin: 0;
}

/* Mobile First - Telas pequenas (até 767px) */
@media (max-width: 767px) {
    .player-bar {
        flex-wrap: wrap;
        max-height: none;
        padding: 10px 8px;
        gap: 8px;
    }
    
    .cover-album {
        width: 50px;
        height: 50px;
        order: 1;
    }
    
    .info-current-song {
        flex: 1;
        min-width: 0;
        order: 2;
        gap: 2px;
    }
    
    .info-current-song h2 {
        font-size: 14px;
        letter-spacing: 0.2px;
    }
    
    .info-current-song h3 {
        font-size: 12px;
        letter-spacing: 0.15px;
    }
    
    
    .live-info-wrapper {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        margin-top: 4px;
    }
    
    .live-info {
        font-size: 14px;
        justify-content: flex-start;
    }
    
    .controls {
        order: 4;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        margin-left: 0;
        margin-top: 4px;
    }
    
    .btn-play {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 44px; /* Tamanho mínimo recomendado para touch */
        min-width: 100px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
        touch-action: manipulation;
    }
    
    .volume-control {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }
    
    .volume-control input[type="range"] {
        min-height: 44px; /* Área maior para touch */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    }
    
    .volume-control i {
        font-size: 20px;
    }
    
    
    .recent-box {
        order: 5;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }
    
    .recent-item {
        padding: 0;
    }
    
    .recent-item .cover-historic {
        width: 45px;
        height: 45px;
    }
    
    .floating-notes {
        display: none; /* Ocultar notas em mobile para melhor performance */
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .player-bar {
        gap: 12px;
        padding: 10px 12px;
    }
    
    .cover-album {
        width: 52px;
        height: 52px;
    }
    
    .info-current-song h2 {
        font-size: 15px;
        letter-spacing: 0.25px;
    }
    
    .info-current-song h3 {
        font-size: 12px;
        letter-spacing: 0.2px;
    }
    
    .btn-play {
        padding: 11px 22px;
        font-size: 15px;
        min-height: 42px;
    }
    
    .recent-box {
        max-width: 220px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .player-bar {
        gap: 16px;
        padding: 10px 16px;
    }
    
    .volume-control {
        display: flex;
    }
    
    .cover-album {
        width: 60px;
        height: 60px;
    }
    
    .info-current-song h2 {
        font-size: 17px;
        letter-spacing: 0.4px;
    }
    
    .info-current-song h3 {
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    
    .btn-play {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .btn-play:hover {
        box-shadow: var(--elevation-5),
                    var(--shadow-glow-yellow-strong),
                    var(--shadow-glow-orange);
        transform: scale(1.08) translateY(-2px);
    }
    
    .cover-album:hover {
        transform: scale(1.03);
    }
}

/* Telas muito pequenas (até 360px) */
@media (max-width: 360px) {
    .player-bar {
        padding: 8px 6px;
        gap: 6px;
    }
    
    .cover-album {
        width: 45px;
        height: 45px;
    }
    
    .info-current-song h2 {
        font-size: 13px;
        letter-spacing: 0.15px;
    }
    
    .info-current-song h3 {
        font-size: 11px;
        letter-spacing: 0.1px;
    }
    
    .btn-play {
        padding: 10px 18px;
        font-size: 14px;
        min-width: 90px;
    }
    
    .live-info {
        font-size: 12px;
    }
    
    .recent-box h4 {
        font-size: 11px;
    }
}

/* Melhorias para touch em todos os dispositivos */
@media (hover: none) and (pointer: coarse) {
    /* Dispositivos touch */
    .btn-play {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
        touch-action: manipulation;
    }
    
    .recent-toggle {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        touch-action: manipulation;
        padding: 4px 8px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }
    
    input[type="range"] {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Orientação landscape em mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .player-bar {
        flex-wrap: nowrap;
        max-height: 120px;
    }
    
    .live-info-wrapper {
        order: 2;
        width: auto;
        flex: 0 1 auto;
        margin-top: 0;
    }
    
    .controls {
        order: 3;
        width: auto;
        margin-top: 0;
    }
    
    .recent-box {
        order: 4;
        width: auto;
        max-width: 200px;
        margin-top: 0;
    }
}

#buttonPlay {
    padding-left: 10px;
}
#playerButton {
    color: black;
}
.play-pause i {
    cursor: pointer;
}
.btn-play {
    background: linear-gradient(135deg, #facc15 0%, #fb923c 50%, #facc15 100%);
    background-size: 200% 200%;
    border: none;
    color: black;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    width: auto;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--elevation-3),
                var(--shadow-glow-yellow);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.btn-play:hover::before {
    transform: translateX(100%);
}

.btn-play:focus {
    outline: 0;
}

.btn-play:hover {
    box-shadow: var(--elevation-5),
                var(--shadow-glow-yellow-strong),
                var(--shadow-glow-orange);
    transform: scale(1.08) translateY(-2px);
    background-position: 100% 0;
}

.btn-play:active {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.5);
}

.close{
    color: #facc15;
}

/* Melhorias gerais para touch */
.touch-device * {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.touch-device .btn-play {
    cursor: pointer;
}

.touch-device input[type="range"] {
    cursor: pointer;
}

/* Prevenir seleção de texto acidental em mobile */
@media (max-width: 767px) {
    .player-bar,
    .player-bar * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Permitir seleção apenas em textos informativos se necessário */
    .info-current-song h2,
    .info-current-song h3 {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Melhorar acessibilidade e feedback visual */
.btn-play:active {
    transform: scale(0.95);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recent-toggle:active {
    opacity: 0.7;
    transition: opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Garantir que modais funcionem bem em mobile */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-body {
        max-height: 60vh;
        padding: 15px;
    }
    
    .modal-body iframe {
        min-height: 400px;
    }
}

/* Garantir 100% de largura mesmo quando inserido em outros sites */
body > main,
body > main > section,
body > main > section.player-bar,
#player.player-bar,
main section.player-bar,
section#player,
.player-bar {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}
