@import url('https://fonts.googleapis.com/css2?family=Circular+Std:wght@400;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #121212;
    --nav-color: #000000;
    --green: #1db954;
    --gray: #b3b3b3;
    --card-bg: #181818;
    --card-hover: #282828;
    --text-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.page-view {
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: calc(100vh - 130px); 
    overflow-y: auto;
    padding: 20px 16px;
    display: none;
    padding-bottom: 100px;
    background-color: var(--bg-color); 
    background: linear-gradient(180deg, #202020 0%, #121212 20%);
    z-index: 10;
}

.page-view.active { 
    display: block; 
    z-index: 20; 
}

.home-heder {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-top: 10px;
}
.greeting { font-size: 12px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.username { font-size: 24px; font-weight: 800; color: white; }
.header-icons { display: flex; gap: 20px; }
.header-icons i { font-size: 20px; color: white; cursor: pointer; transition: 0.2s; }
.header-icons i:hover { color: var(--green); }

.category-chips {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 25px;
    scrollbar-width: none;
}
.cat-chip {
    background: rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 30px;
    font-size: 13px; font-weight: 500; white-space: nowrap; transition: 0.2s;
    border: 1px solid transparent;
}
.cat-chip.active { background: var(--green); color: black; font-weight: 700; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.quick-card {
    background: #2a2a2a; border-radius: 4px; display: flex; align-items: center;
    overflow: hidden; height: 56px; cursor: pointer; transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.quick-card:active { background: #404040; }
.quick-card img, .qc-img { width: 56px; height: 56px; object-fit: cover; }
.qc-img { background: linear-gradient(135deg, #450af5, #c4efd9); display: flex; justify-content: center; align-items: center; }
.quick-card span {
    font-size: 12px; font-weight: 700; padding: 0 10px; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.hero-banner {
    position: relative; width: 100%; height: 180px; border-radius: 12px;
    overflow: hidden; margin-bottom: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.4); cursor: pointer;
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-banner:active img { transform: scale(1.05); }
.hero-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 15px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-content .tag { font-size: 10px; font-weight: 800; color: var(--green); letter-spacing: 1px; margin-bottom: 4px; }
.hero-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 12px; color: #ddd; font-weight: 500; }

.section-title { font-size: 20px; font-weight: 700; margin: 0 0 15px 0; letter-spacing: -0.5px; }
.card-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; margin-bottom: 20px; }
.card { min-width: 140px; width: 140px; background: transparent; padding: 0; border-radius: 0; cursor: pointer; }
.card img { width: 100%; aspect-ratio: 1/1; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.card p { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .subtext { font-size: 12px; color: var(--gray); font-weight: 500; }

.artist-scroll .artist-circle { min-width: 100px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.artist-circle img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.artist-circle p { font-size: 13px; font-weight: 600; }

.search-header { margin-bottom: 25px; }
.search-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 15px; }
.search-box { 
    background: white; padding: 14px 16px; border-radius: 8px; 
    display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.search-box i { color: black; font-size: 20px; }
.search-box input { border: none; outline: none; flex: 1; font-size: 16px; font-weight: 600; color: black; }
.placeholder-container { text-align: center; margin-top: 50px; color: var(--gray); }
.placeholder-container i { font-size: 50px; margin-bottom: 20px; opacity: 0.5; }
.placeholder-container p { font-size: 18px; font-weight: 700; color: white; margin-bottom: 5px; }
.placeholder-container span { font-size: 13px; }

.result-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; background: transparent; transition: 0.2s; }
.result-item:active { background: rgba(255,255,255,0.1); }
.result-item img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.result-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.result-info h4 { font-size: 15px; font-weight: 600; color: white; margin-bottom: 4px; }
.result-info p { font-size: 13px; color: var(--gray); }

.loading-state { text-align: center; margin-top: 40px; color: var(--green); font-weight: 600; }
.spinner { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--green); border-radius: 50%; width: 24px; height: 24px; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.lib-header { display: flex; align-items: center; gap: 15px; }
.user-avatar { width: 35px; height: 35px; background: #e91e63; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; font-size: 14px; }
.add-lib { font-size: 20px; color: white; cursor: pointer; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-chips { display: flex; gap: 10px; margin-bottom: 20px; }
.chip { padding: 8px 18px; border-radius: 20px; background: #2a2a2a; border: 1px solid #333; font-size: 13px; color: white; transition: 0.2s; }
.chip.active { background: white; border-color: white; color: black; font-weight: 600; }

.bottom-player {
    position: fixed; bottom: 65px; left: 8px; right: 8px; height: 64px; background: #353535;
    border-radius: 8px; display: flex; flex-direction: column; z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6); overflow: hidden; backdrop-filter: blur(10px);
}
.progress-bar-bg { width: 100%; height: 2px; background: rgba(255,255,255,0.2); }
.progress-bar-fill { height: 100%; background: white; width: 0%; border-radius: 0 2px 2px 0; }
.player-content { display: flex; align-items: center; padding: 0 12px; gap: 12px; height: 100%; }
.player-content img { width: 42px; height: 42px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.mini-info { flex: 1; overflow: hidden; white-space: nowrap; }
.mini-info h4 { color: white; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.mini-info p { color: #bbb; font-size: 11px; }
.mini-controls { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; }

.navbar {
    position: fixed; bottom: 0; width: 100%; height: 60px;
    background: linear-gradient(0deg, rgba(0,0,0,1) 10%, rgba(18,18,18,0.95) 100%);
    display: flex; justify-content: space-around; align-items: center; z-index: 100; padding-bottom: 5px;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #777; font-size: 10px; font-weight: 500; transition: 0.2s; }
.nav-item i { font-size: 22px; margin-bottom: 2px; }
.nav-item.active { color: white; transform: scale(1.05); }

.full-player {
    position: fixed; top: 100vh; left: 0; width: 100%; height: 100%;
    background: linear-gradient(170deg, #444 0%, #121212 50%, #000 100%);
    z-index: 200; transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 50px 30px; display: flex; flex-direction: column;
}
.full-player.show { top: 0; }
.full-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.full-header span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.full-player img { width: 100%; aspect-ratio: 1/1; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); margin-bottom: 40px; }
.full-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.full-info h2 { font-size: 22px; margin-bottom: 5px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.full-info p { color: var(--gray); font-size: 16px; font-weight: 500; }
.full-info i { font-size: 26px; cursor: pointer; }
.full-progress input { 
    width: 100%; -webkit-appearance: none; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; margin-bottom: 10px; 
}
.full-progress input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; background: white; border-radius: 50%; cursor: pointer;
}
.time { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); font-weight: 500; }
.full-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: 32px; color: white; }
.play-circle { 
    width: 70px; height: 70px; background: white; border-radius: 50%; color: black; 
    display: flex; align-items: center; justify-content: center; font-size: 32px; 
    box-shadow: 0 8px 15px rgba(0,0,0,0.3); transition: transform 0.1s;
}
.play-circle:active { transform: scale(0.95); }
.dev-credit { margin-top: auto; text-align: center; font-size: 11px; color: #555; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }

.playlist-header-view {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin-bottom: 30px; padding-top: 10px;
}
.playlist-header-view i.fa-arrow-left { align-self: flex-start; font-size: 24px; margin-bottom: 20px; cursor: pointer; }
.playlist-header-view img {
    width: 180px; height: 180px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); margin-bottom: 20px; object-fit: cover;
}
.playlist-header-view h1 { font-size: 24px; font-weight: 800; margin-bottom: 5px; }
.playlist-header-view .tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gray); margin-bottom: 10px; }
.play-all-btn {
    margin-top: 15px; background: var(--green); color: black; border: none;
    padding: 12px 30px; border-radius: 30px; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: transform 0.2s; display: flex; align-items: center; gap: 8px;
}
.play-all-btn:active { transform: scale(0.95); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 300; display: none;
    justify-content: center; align-items: center; padding: 20px;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #282828; width: 100%; max-width: 350px; padding: 25px;
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 15px;
}
.modal-box h3 { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.modal-box input[type="text"] {
    background: #3e3e3e; border: 1px solid #555; padding: 12px; border-radius: 6px;
    color: white; outline: none; font-size: 14px; width: 100%;
}

.file-upload-wrapper {
    display: flex; align-items: center; gap: 10px;
}
.file-label {
    background: #3e3e3e; border: 1px solid #555; padding: 10px 15px; border-radius: 6px;
    cursor: pointer; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.file-label:hover { background: #555; }

.modal-btns { display: flex; gap: 10px; margin-top: 10px; }
.modal-btns button { flex: 1; padding: 12px; border-radius: 30px; border: none; font-weight: 600; cursor: pointer; }
.btn-cancel { background: transparent; color: white; border: 1px solid #555 !important; }
.btn-save { background: var(--green); color: black; }
.full-width { width: 100%; margin-top: 10px; }

.pl-select-list { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.pl-select-item {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    background: #333; border-radius: 6px; cursor: pointer;
}
.pl-select-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.pl-select-item:hover { background: #444; }
.del-pl-btn { margin-left: auto; color: #ff5555; padding: 5px; cursor: pointer; }

:root {
    --radius: 12px;
    --green-soft: #1ed760;
}

body {
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.page-view {
    background: linear-gradient(180deg, #202020 0%, #121212 25%);
}

.username {
    font-size: 26px;
    letter-spacing: -0.5px;
}

.quick-card {
    border-radius: var(--radius);
    background: linear-gradient(135deg, #2a2a2a, #202020);
    transition: all 0.25s ease;
}

.quick-card:hover {
    background: #2f2f2f;
    transform: scale(1.03);
}

.quick-card:active {
    transform: scale(0.97);
}

.hero-banner {
    border-radius: 16px;
}

.hero-banner img {
    transition: transform 0.6s ease;
}

.hero-banner:hover img {
    transform: scale(1.08);
}

.card img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.artist-circle img {
    transition: transform 0.3s ease;
}

.artist-circle:hover img {
    transform: scale(1.1);
}

.search-box {
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 0 2px var(--green);
}

.bottom-player {
    border-radius: 12px;
    background: rgba(40,40,40,0.9);
    backdrop-filter: blur(12px);
}

.progress-bar-fill {
    background: var(--green-soft);
}

.navbar {
    backdrop-filter: blur(10px);
}

.nav-item.active {
    color: var(--green);
}

.full-player {
    background: linear-gradient(180deg, #2a2a2a 0%, #121212 60%, #000 100%);
}

.play-circle {
    background: var(--green);
    color: black;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-circle:hover {
    transform: scale(1.08);
    background: var(--green-soft);
}

.play-all-btn {
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-all-btn:hover {
    transform: scale(1.05);
    background: var(--green-soft);
}

.modal-box {
    border-radius: 16px;
    animation: fadeInSmooth 0.2s ease;
}

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