/* Reset e configurações básicas */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { 
    background: #000; 
    color: #fff; 
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 9vh;
    padding: 0px;
    overflow: auto;
}

/* Container principal responsivo */
.player {
    width: 100%;
    max-width: 800px;
    min-height: 490px;
    background: #111;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 15px;
    position: relative;
    margin: 20px 0;
}

/* Ajustes para telas menores que 768px (mobile) */
@media (max-width: 768px) {
    .player {
        min-height: auto;
        padding: 10px;
        gap: 10px;
    }
    
    .cover {
        width: 250px !important;
        height: 250px !important;
        margin: 0 auto 10px !important;
    }
    
    .artist {
        font-size: 24px !important;
    }
    
    .title {
        font-size: 18px !important;
    }
    
    .controls {
        padding: 10px !important;
    }
    
    button {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }
    
    #playBtn {
        font-size: 20px !important;
    }
    
    .genre-badge {
        font-size: 14px !important;
        padding: 3px 10px !important;
    }
    
    .progress-container span,
    .volume-control span {
        font-size: 16px !important;
    }
}

/* Ajustes para orientação retrato em mobile */
@media (max-width: 480px) and (orientation: portrait) {
    .player {
        grid-template-rows: auto auto auto;
    }
    
    .cover {
        width: 200px !important;
        height: 200px !important;
    }
    
    .info-display {
        padding: 5px !important;
    }
    
    .controls {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 5px !important;
    }
    
    .upload-container {
        button: 10px !important;
        left: 10px !important;
        gap: 10px !important;
    }
    
    #uploadBtn, #clearPlaylistsBtn {
        font-size: 30px !important;
        padding: 5px 10px !important;
    }
}

/* Ajustes para notebook 1366x768 */
@media (min-width: 769px) and (max-width: 1366px) {
    .player {
        transform: scale(0.9);
        margin: 0;
    }
    
    body {
        padding: 0px;
        height: auto;
    }
}

/* Elementos específicos (mantendo o restante do CSS original) */
.cover {
    width: 350px;
    height: 350px;
    margin: 0 auto;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    border: 0px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.info-display {
    text-align: center;
    padding: 0px;
}

.info-display span {
    display: block;
    margin: 10px 0;
}

.title {
    font-size: 34px;
    color: #ffff;
    font-weight: bold;
}

.artist {
    font-size: 34px;
    color: #8E7A76;
	font-weight: bold;
}

.genre-badge {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    background: #333;
    color: #fff;
    font-size: 18px;
    margin: 10px 0;
	
}

.controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
}

button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

button:hover {
    background: #444;
    transform: scale(1.1);
}

button:active {
    background: #555;
    transform: scale(0.95);
}

#playBtn {
    background: #e60000;
    color: #fff;
    font-size: 24px;
}

#playBtn:hover {
    background: #FF5161;
}

#muteBtn {
    background: #444;
    color: #fff;
}

#muteBtn:hover {
    background: #0077e6;
}

#progress {
    width: 100%;
    height: 15px;
    background: #333;
    border-radius: 15px;
    margin: 0px;
    position: relative;
    cursor: pointer;
}

#progress-bar {
    height: 100%;
    background: #D30302;
    border-radius: 10px;
    width: 100%;
    transition: width 0.1s linear;
}

#progress:hover #progress-bar {
    background: #FF5161;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    background: #333;
    border-radius: 15px;
    margin: 0 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #e60000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(230,0,0,0.5);
}

.hidden { 
    display: none; 
}

.upload-container {
    position: absolute;
    top: 90%;
    center: 10px;
    display: flex;
    gap: 10px;
}

#uploadBtn, #clearPlaylistsBtn {
    background: transparent;
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 40px;
    box-shadow: 0 0 10px rgba(0,102,204,0.5);
}

#uploadBtn:hover, #clearPlaylistsBtn:hover {
    background: #0077e6;
    transform: scale(1.05);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-container span {
    font-size: 20px;
    color: #aaa;
    min-width: 40px;
    text-align: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.volume-control span {
    font-size: 18px;
    color: #aaa;
}

#volume-percentage {
    min-width: 40px;
    text-align: left;
}