/* --- VARIABLES & SETUP --- */
:root {
    --bg-dark: #07030A;
    --panel-bg: #12081C;
    --panel-hover: #1E0F2E;
    --neon-purple: #B026FF;
    --neon-glow: 0 0 15px rgba(176, 38, 255, 0.5);
    --text-main: #FFFFFF;
    --text-muted: #A395B5;
    --glass-bg: rgba(18, 8, 28, 0.7);
    --player-height: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Stops whole page from bouncing on mobile */
}

.neon-text {
    color: var(--neon-purple);
    text-shadow: var(--neon-glow);
}

/* --- MAIN LAYOUT (CSS GRID) --- */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - var(--player-height));
}

/* --- SIDEBAR --- */
.sidebar {
    background-color: var(--bg-dark);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-main);
    background: var(--panel-hover);
}

.nav-menu a.active i { color: var(--neon-purple); }

.library-section {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 16px;
    flex: 1;
}

.library-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* --- MAIN CONTENT --- */
.main-content {
    background: linear-gradient(180deg, #1E0F2E 0%, var(--bg-dark) 40%);
    border-radius: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 64px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 10;
}

.nav-arrows button {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    margin-right: 8px;
}

.btn-premium {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: white;
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
}

.btn-login {
    background: var(--text-main);
    color: black;
    border: none;
    padding: 8px 32px;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
}

.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.greeting-section h1 { font-size: 32px; margin-bottom: 24px; font-weight: 800; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-hover); border-radius: 4px; }

/* --- FOOTER (NEOPIX) --- */
.neopix-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 { margin-bottom: 16px; font-weight: 700; }
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-col a:hover { color: var(--neon-purple); text-shadow: var(--neon-glow); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-bottom: 40px;
}

.footer-legal a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }

/* --- BOTTOM PLAYER --- */
.bottom-player {
    height: var(--player-height);
    background: var(--panel-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.player-info { width: 30%; display: flex; align-items: center; gap: 16px; }
.cover-art { width: 56px; height: 56px; background: #222; border-radius: 6px; }
.track-details h4 { font-size: 14px; margin-bottom: 4px; }
.track-details p { font-size: 12px; color: var(--text-muted); }

.player-controls { width: 40%; display: flex; flex-direction: column; align-items: center; }
.control-buttons { display: flex; align-items: center; gap: 24px; margin-bottom: 8px; }
.control-buttons button { background: transparent; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.control-buttons button:hover { color: white; }

/* The Glowing Play Button */
.play-btn-glow {
    background: white !important;
    color: black !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: 0.3s;
}
.play-btn-glow:hover { transform: scale(1.05); box-shadow: var(--neon-glow); background: var(--neon-purple) !important; color: white !important; }

.progress-container { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
input[type=range] { flex: 1; accent-color: var(--neon-purple); height: 4px; border-radius: 2px; }

.player-actions { width: 30%; display: flex; justify-content: flex-end; align-items: center; gap: 16px; color: var(--text-muted); font-size: 20px; }
.volume-slider { width: 100px; }


/* --- RESPONSIVE MOBILE FIX (FOR YOUR ANDROID APP) --- */
@media (max-width: 768px) {
    .sidebar { display: none; /* Hide sidebar on mobile */ }
    .app-container { grid-template-columns: 1fr; }
    .main-content { border-radius: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    /* Modify player for mobile screen size */
    .bottom-player { padding: 0 12px; /* Push up above Android nav bar */ padding-bottom: env(safe-area-inset-bottom); }
    .player-actions { display: none; }
    .player-info { width: 50%; }
    .player-controls { width: 50%; }
    .progress-container { display: none; /* Hide slider on mobile to save space */ }
}

.logo { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; padding: 0 12px;}
.nav-links a, .lib-header a { display: flex; align-items: center; gap: 16px; color: var(--text-subdued); font-weight: 600; padding: 12px; transition: var(--transition); border-radius: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--text-base); }
.lib-header { display: flex; justify-content: space-between; align-items: center; color: var(--text-subdued); }
.topbar { display: flex; justify-content: space-between; padding: 16px 24px; position: sticky; top: 0; background: rgba(18, 18, 18, 0.5); backdrop-filter: blur(10px); z-index: 10; }
.nav-arrows button { background: rgba(0,0,0,0.7); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; font-size: 24px; cursor: pointer; margin-right: 8px; }
.btn-primary { background: var(--text-base); color: black; border: none; border-radius: 500px; padding: 12px 32px; font-weight: 700; cursor: pointer; transition: transform var(--transition); }
.btn-primary:hover { transform: scale(1.04); }
.btn-outline { background: transparent; color: var(--text-subdued); border: 1px solid #878787; border-radius: 500px; padding: 8px 16px; font-weight: 700; cursor: pointer; margin-right: 16px; }
.btn-outline:hover { color: white; border-color: white;}
.shelf-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.card { background: #181818; padding: 16px; border-radius: 8px; transition: background var(--transition); cursor: pointer; position: relative; opacity: 0; /* Hidden for AnimeJS */ }
.card:hover { background: #282828; }
.card-img-wrapper { position: relative; margin-bottom: 16px; }
.card img { width: 100%; aspect-ratio: 1; border-radius: 4px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,0.5);}
.card-play-btn { position: absolute; bottom: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%; background: var(--purple-main); color: white; border: none; font-size: 32px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: all 0.3s ease; box-shadow: var(--neon-glow); cursor: pointer;}
.card:hover .card-play-btn { opacity: 1; transform: translateY(0); }
.card h3 { font-size: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { font-size: 14px; color: var(--text-subdued); }
.player-left { width: 30%; display: flex; align-items: center; gap: 16px; }
.player-left img { width: 56px; height: 56px; border-radius: 4px; }
.track-title { font-size: 14px; font-weight: 600; }
.track-artist { font-size: 12px; color: var(--text-subdued); }
.player-center { width: 40%; display: flex; flex-direction: column; align-items: center; }
.player-controls { display: flex; align-items: center; gap: 24px; margin-bottom: 8px; }
.player-controls button { background: transparent; border: none; color: var(--text-subdued); font-size: 24px; cursor: pointer; }
.player-controls button:hover { color: white; }
.play-pause-btn { background: white !important; color: black !important; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(255,255,255,0.3); transition: 0.3s;}
.play-pause-btn:hover { transform: scale(1.05); box-shadow: var(--neon-glow); background: var(--purple-main) !important; color: white !important; }
.playback-bar { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-subdued); }
input[type=range] { flex: 1; accent-color: var(--text-base); height: 4px; border-radius: 2px;}
input[type=range]:hover { accent-color: var(--purple-main); }
.player-right { width: 30%; display: flex; justify-content: flex-end; align-items: center; gap: 16px; color: var(--text-subdued); }
.volume-slider { width: 90px; }
.footer { margin-top: 60px; padding-top: 40px; }
.footer-bottom { border-top: 1px solid #282828; padding-top: 24px; display: flex; justify-content: space-between; font-size: 14px; color: var(--text-subdued); padding-bottom: 40px;}