/*==================================
  MODAL BASE
==================================*/

.modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.75);
    z-index: 99999;
}

.modal{
    width: 420px;
    max-width: 90%;
    background: #1b1b1b;
    border: 2px solid #ff8c00;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,.6);
}

.modal-header{
    padding:16px;
    background:#ff8c00;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    display:flex;
    align-items:center;
    gap:10px;
}

.modal-body{
    padding:20px;
    color:#fff;
}

.modal-footer{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding:15px;
    border-top:1px solid #444;
}

.btn-primary,
.btn-secondary{
    padding:10px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.btn-primary{
    background:#ff8c00;
    color:#fff;
}

.btn-secondary{
    background:#555;
    color:#fff;
}


/*==========================
  MODAL BIBLIOTECA
===========================*/

.library-box{

    background:rgba(15,15,15,.98);

    border:3px solid #ff8c00;

    border-radius:16px;

    width:95%;
    max-width:1100px;

    height:85vh;

    display:flex;

    flex-direction:column;

    overflow:hidden;

}

.library-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px;

    background:#111;

    border-bottom:1px solid #333;

    flex-shrink:0;

}

.library-content{

    flex:1;

    overflow-y:auto;

    padding:20px;

}

.library-close{

    background:none;

    border:none;

    color:#ff8c00;

    font-size:28px;

    cursor:pointer;

    transition:.2s;

}

.library-close:hover{

    color:#fff;

}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

        body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: url('../img/fundo.png') center/cover no-repeat;
    color: #ffcc80;
}

.player-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #ff8c00;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 20px;
            background: rgba(0,0,0,0.92);
            font-size: 1.05rem;
            height: 58px;
        }

        .date-info {
            text-align: center;
            line-height: 1.1;
        }

        .date-info .day { 
            font-size: 1.35rem; 
            font-weight: bold; 
        }

        .date-info .weekday { 
            font-size: 0.95rem; 
            color: #ffaa66; 
        }

        .main {
            display: flex;
            justify-content: center;
            align-items: center;
            height: calc(100vh - 145px);
            position: relative;
            padding: 0 15px;
        }

        .circle {
            width: 100%;
            max-width: 380px;
            aspect-ratio: 1 / 1;
            background: radial-gradient(circle, #1a1a1a 35%, #000 82%);
            border: 28px solid #2a2a2a;
            border-radius: 50%;
            box-shadow: 0 0 60px rgba(255, 140, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .logo-center {
            text-align: center;
        }

        .logo-center .renault {
            font-size: clamp(1.8rem, 5.5vw, 2.4rem);
            font-weight: bold;
            letter-spacing: 5px;
            color: #ff8c00;
            margin-bottom: 12px;
        }

        .logo-center img {
            max-width: 130px;
            filter: drop-shadow(0 0 18px #ffaa33);
        }

.left-menu, .right-menu {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10; /* Adicionado */
}

.left-menu  { left: 5%; }
.right-menu { right: 5%; }

/* Ajuste responsivo para tablets */
@media (max-width: 768px) {
    .left-menu  { left: 3%; }
    .right-menu { right: 3%; }
    
    .btn {
        width: 160px;
        padding: 14px 18px;
        font-size: 1.05rem;
    }
    
    .circle {
        max-width: 320px;
        border-width: 22px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .btn {
        width: 145px;
        padding: 12px 16px;
        font-size: 1rem;
    }
}

        .btn {
            background: rgba(35, 22, 8, 0.95);
            border: 3px solid #664422;
            color: white;
            padding: 16px 22px;
            width: 185px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 1.2rem;
            cursor: pointer;
            user-select: none;
            transition: all .25s ease;
        }

        .bottom-bar {
            position: absolute;
            bottom: 25px;
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .music-player {
            background: rgba(10,10,10,0.95);
            padding: 16px 50px;
            border-radius: 50px;
            text-align: center;
            border: 3px solid #ff8c00;
            box-shadow: 0 0 20px rgba(255,140,0,0.4);
        }

        /* Hover e Active */
        .btn:hover {
            border-color: #ff8c00;
            background: rgba(60,35,10,.98);
            box-shadow: 0 0 15px rgba(255,140,0,.45),
                        inset 0 0 10px rgba(255,180,80,.15);
        }

        .btn:active {
            border-color: #ffb347;
            background: #5b3206;
            box-shadow: 0 0 25px rgba(255,140,0,.9),
                        0 0 40px rgba(255,140,0,.45);
            transform: scale(1.05);
        }

        .left-menu .btn:active  { transform: translateX(22px) scale(1.05); }
        .right-menu .btn:active { transform: translateX(-22px) scale(1.05); }

        .btn i {
            transition: transform .25s;
        }

        .btn:active i {
            transform: scale(1.25);
        }

        /* Modal de Vídeo */
        .video-modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .video-modal.active {
            display: flex;
        }

        #closeVideo {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0,0,0,0.7);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.8rem;
            cursor: pointer;
            z-index: 1001;
        }

        #videoPlayer {
            max-width: 95%;
            max-height: 90%;
            border-radius: 8px;
        }

        /* ESTILO ESPECÍFICO PARA A TELA DE DOWNLOAD */
#circleContent .download-screen {
    padding-top: 80px; /* Levanta o conteúdo */
}

#circleContent input#youtubeUrl {
    background: rgba(0,0,0,0.6);
    border: 2px solid #664422;
    color: #ffcc80;
}

#circleContent button[onclick*="showScreen('home')"] {
    background: rgba(10,10,10,0.95);
    border: 3px solid #ff8c00;
    color: #ffcc80;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.05rem;
    box-shadow: 0 0 15px rgba(255,140,0,0.3);
    transition: all .25s ease;
}

#circleContent button[onclick*="showScreen('home')"]:hover {
    background: rgba(30,30,30,0.98);
    border-color: #ffb347;
    box-shadow: 0 0 20px rgba(255,140,0,0.5);
}



/*================ MODAL EXCLUIR =================*/

.delete-modal{

    width:420px;
    max-width:92%;

    background:#171717;

    border:3px solid #ff8c00;

    border-radius:18px;

    padding:30px;

    text-align:center;

    color:#fff;

    animation:zoomDelete .25s ease;

    box-shadow:0 20px 60px rgba(0,0,0,.6);

}

@keyframes zoomDelete{

    from{

        opacity:0;
        transform:scale(.8);

    }

    to{

        opacity:1;
        transform:scale(1);

    }

}

.delete-icon{

    width:70px;
    height:70px;

    margin:auto;

    border-radius:50%;

    background:#b71c1c;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:32px;

    color:white;

    margin-bottom:20px;

}

.delete-modal h2{

    margin-bottom:15px;

    color:#ffcc80;

}

.delete-modal p{

    color:#ddd;

    margin-bottom:30px;

}

.delete-buttons{

    display:flex;

    justify-content:center;

    gap:15px;

}

.btn-cancel-delete{

    background:#555;

    color:white;

    border:none;

    border-radius:10px;

    padding:12px 28px;

    cursor:pointer;

    font-size:16px;

    transition:.25s;

}

.btn-cancel-delete:hover{

    background:#777;

}

.btn-confirm-delete{

    background:#d32f2f;

    color:white;

    border:none;

    border-radius:10px;

    padding:12px 28px;

    cursor:pointer;

    font-size:16px;

    transition:.25s;

}

.btn-confirm-delete:hover{

    background:#f44336;

}

/* ================= PLAYER MP3 ================= */

#audioModal button{
    border:none;
    outline:none;
    cursor:pointer;
    transition:.25s;
}

#audioModal .player-controls{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    margin-top:10px;
}

#audioModal .player-controls button{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#222;
    color:#fff;
    font-size:22px;
    border:2px solid #444;
}

#audioModal .player-controls button:hover{
    background:#ff8c00;
    border-color:#ffb84d;
    transform:scale(1.08);
}

#audioModal .player-controls button:active{
    transform:scale(.95);
}


#audioModal .tempo{
    width:48px;
    text-align:center;
    font-size:15px;
    color:#fff;
}

.audio-modal{
    background:rgba(0,0,0,.95);
    z-index:4000;
}

.audio-player{
    width:500px;
    max-width:95%;
    background:#111;
    border:3px solid #ff8c00;
    border-radius:20px;
    padding:20px;
    color:#fff;
    text-align:center;
}

.audio-thumb{
    width:220px;
    height:124px;
    object-fit:cover;
    border-radius:12px;
    border:2px solid #555;
    margin-bottom:15px;
}

.audio-title{
    color:#ffcc80;
    font-size:22px;
    margin-bottom:15px;
}

.audio-progress{
    display:flex;
    align-items:center;
    gap:18px;
    margin:18px 0;
}

.tempo{
    width:60px;
    font-size:22px;
    font-weight:bold;
    color:#fff;
}

.btn-close-player{
    margin-top:20px;
    width:100%;
    padding:12px;
    background:#333;
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    transition:.25s;
}

.btn-close-player:hover{
    background:#ff8c00;
}



/* =================== BARRA DE PROGRESSO =================== */

#audioProgress{
    width:100%;
    height:6px;
    border-radius:6px;
    background:#444;
    cursor:pointer;
}

#audioProgress::-webkit-slider-thumb{
    -webkit-appearance:none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#ff8c00;
    margin-top:-4px;
}

/* Firefox */

#audioProgress::-moz-range-track{
    height:10px;
    background:#444;
    border-radius:30px;
}

#audioProgress::-moz-range-thumb{
    width:20px;
    height:20px;
    border:none;
    border-radius:50%;
    background:#ff9800;
}

/* ================= MODAL LISTA ================= */

.lista-box{

    width:650px;
    max-width:95%;

    background:#111;

    border:3px solid #ff8c00;

    border-radius:18px;

    padding:25px;

    color:#fff;

}

.lista-content{

    margin-top:25px;

    text-align:center;

}

.lista-download{

    width:100%;

    padding:16px;

    margin-top:25px;

    background:#ff8c00;

    color:#fff;

    border:none;

    border-radius:12px;

    font-size:20px;

    cursor:pointer;

    transition:.25s;

}

.lista-download:hover{

    background:#ff9800;

}

.lista-close{

    background:none;

    border:none;

    color:#ff8c00;

    font-size:28px;

    cursor:pointer;

}

.lista-status{

    margin-top:20px;

    font-size:18px;

    color:#7CFC00;

}