/*==== PAGE ====*/
.music-page{
    max-width:1200px;
    margin:auto;
}

/*==== HEADER ====*/
.library-header{
    display:flex;
    align-items:center;
    gap:18px;
    padding:22px;
    margin-bottom:20px;
    background:rgba(30,41,59,.55);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    transition:.3s;
}

.library-header:hover{
    border-color:#38bdf8;
    box-shadow:0 15px 35px rgba(56,189,248,.18);
}

.library-icon{
    width:72px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
    border-radius:18px;
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    color:#fff;
}

.library-header h2{
    font-size:28px;
    color:#fff;
    margin-bottom:6px;
}

.library-header p{
    color:#94a3b8;
}

/*==== CATEGORY ====*/
#music-categories{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
}

.music-category{
    position:relative;
    overflow:hidden;
    display:block;
    padding:24px;
    text-align:center;
    text-decoration:none;
    color:#fff;
    background:rgba(30,41,59,.55);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    transition:.35s;
}

.music-category::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,#2563eb,#38bdf8,#60a5fa);
}

.music-category:hover{
    transform:translateY(-8px);
    border-color:#38bdf8;
    box-shadow:0 18px 40px rgba(37,99,235,.28);
}

/*==== PLAYER ====*/
.player{
    margin:20px 0;
}

audio{
    width:100%;
    border-radius:16px;
    background:#111827;
}

.controls{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.controls button{
    min-width:150px;
}
/*==== TREE ====*/
#music-tree{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

/*==== FOLDER ====*/
.folder,
.song{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:16px 20px;
    background:rgba(30,41,59,.55);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    cursor:pointer;
    transition:.3s;
    color:#fff;
}

.folder{
    font-weight:bold;
}

.folder:hover,
.song:hover{
    transform:translateX(6px);
    border-color:#38bdf8;
    background:rgba(37,99,235,.18);
    box-shadow:0 10px 24px rgba(37,99,235,.18);
}

/*==== SUB FOLDER ====*/
.indent{
    margin-left:24px;
    display:none;
}

/*==== TITLE ====*/
.current-title{
    width:100%;
    margin:18px 0;
    text-align:center;
    font-size:18px;
    font-weight:bold;
    color:#fff;
    overflow:hidden;
    white-space:nowrap;
}

.current-title.marquee{
    display:block;
    text-align:left;
    animation:marquee 12s linear infinite;
}

/*==== SEARCH ====*/
.search{
    width:100%;
    padding:14px 18px;
    margin-bottom:20px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:rgba(30,41,59,.55);
    color:#fff;
    outline:none;
    transition:.25s;
}

.search::placeholder{
    color:#94a3b8;
}

.search:focus{
    border-color:#38bdf8;
    box-shadow:0 0 20px rgba(56,189,248,.15);
}

/*==== MOBILE ====*/
@media(max-width:768px){
    .library-header{
        flex-direction:column;
        text-align:center;
    }
    #music-categories{
        grid-template-columns:1fr;
    }
    .library-icon{
        width:64px;
        height:64px;
        font-size:34px;
    }
    .library-header h2{
        font-size:24px;
    }
    .controls{
        flex-direction:column;
    }
    .controls button{
        width:100%;
    }
    .indent{
        margin-left:12px;
    }
}
