/* --- TEMA PREMIUM: REVISI ABU-ABU TUA SMOOTH --- */
:root {
    /* Background Image Stok Online */
    --custom-background: url('musik.jpg');

    /* PALET WARNA BARU (ABU-ABU TUA PREMIUM - TIDAK TERLALU GELAP) */
    --overlay-bg: rgba(30, 35, 40, 0.75); /* Overlay latar belakang, bukan hitam pekat */
    --app-frame-bg: rgba(45, 48, 53, 0.9); /* Frame HP abu tua solid */
    
    --primary-white: #E8E8E8;  /* Putih terang (sedikit off-white) untuk teks utama */
    --secondary-white: #A0A5AA; /* Abu sedang untuk teks sekunder */
    
    --element-bg-dark: #383C42; /* Warna dasar untuk input/ikon box (abu tua) */
    --widget-bg: rgba(65, 70, 75, 0.5); /* Warna widget agak terang dikit */
    --widget-hover: rgba(80, 85, 90, 0.6);

    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-float: 0 30px 60px rgba(0,0,0,0.6);

    /* Warna Area Lirik */
    --sheet-bg: #D0D3D6; /* Latar lirik abu terang agar nyaman dibaca */
    --lyrics-text-color: #151719; /* Teks lirik hampir hitam agar tajam */
    --artist-tag-bg: #2A2D30;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }

body {
    background-image: var(--custom-background);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Overlay direvisi warnanya */
body::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px); z-index: -1;
}

/* --- FRAME HP --- */
.app-container {
    width: 100%; max-width: 440px; height: 95vh;
    background: var(--app-frame-bg); /* Menggunakan warna abu tua baru */
    border: 1px solid var(--glass-border);
    border-radius: 45px;
    box-shadow: var(--shadow-float);
    display: flex; flex-direction: column; 
    overflow: hidden; position: relative;
    transition: all 0.5s ease;
}

/* --- STATUS BAR --- */
.status-bar { 
    padding: 15px 30px; display: flex; justify-content: space-between; 
    font-size: 13px; font-weight: 600; color: var(--primary-white); opacity: 0.9;
    z-index: 20;
    transition: all 0.5s ease;
}

/* --- REVISI TRANSISI SUPER SMOOTH --- */
/* Menggunakan kurva bezier khusus dan durasi yang pas agar tidak kaku */
.header-section, .widgets-scroll, .search-wrapper {
    /* Properti spesifik ditransisikan agar lebih performant dan halus */
    transition: 
        max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease-out,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden; /* Penting agar padding tidak bocor saat animasi */
}

/* --- HEADER & LOGO --- */
.header-section {
    padding: 10px 30px 20px;
    display: flex; align-items: center; gap: 15px;
}

.logo-box {
    width: 52px; height: 52px;
    background: var(--element-bg-dark); /* Warna abu tua baru */
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden; padding: 0;
    border: 1px solid var(--glass-border);
}

.my-profile-pic {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.header-text h1 { font-size: 22px; font-weight: 800; color: var(--primary-white); letter-spacing: -0.5px; }
.header-text p { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--secondary-white); opacity: 0.8; }

/* --- WIDGET AREA --- */
.widgets-scroll {
    display: flex; gap: 12px; padding: 0 30px 25px;
    overflow-x: auto; scrollbar-width: none;
}
.widgets-scroll::-webkit-scrollbar { display: none; }

.widget-card {
    min-width: 105px; height: 105px;
    background: var(--widget-bg); /* Warna widget direvisi */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 15px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.widget-card:hover { transform: translateY(-5px); background: var(--widget-hover); }

.widget-icon-box {
    width: 38px; height: 38px;
    background: var(--element-bg-dark); /* Icon box abu tua */
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.widget-icon-box svg { width: 20px; height: 20px; stroke: var(--primary-white); stroke-width: 2.5; fill: none; }

.widget-info span { display: block; }
.w-title { font-size: 11px; color: var(--secondary-white); margin-bottom: 2px; }
.w-value { font-size: 14px; font-weight: 700; color: var(--primary-white); }

/* --- SEARCH BOX --- */
.search-wrapper { padding: 0 30px 20px; position: relative; z-index: 10; }
.input-glass {
    display: flex; align-items: center;
    background: var(--element-bg-dark); /* Input abu tua */
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.input-glass:focus-within { transform: scale(1.02); border-color: rgba(255,255,255,0.3); }

input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 16px; font-weight: 600; color: var(--primary-white);
}
input::placeholder { color: var(--secondary-white); font-weight: 500; opacity: 0.7; }

button.search-btn {
    background: #2A2D30; color: var(--primary-white); /* Tombol gelap */
    border: none; width: 48px; height: 48px; border-radius: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
button.search-btn svg { width: 20px; height: 20px; fill: currentColor; }
button.search-btn:active { transform: scale(0.9); }

/* --- CONTENT AREA (LIRIK) --- */
.content-area {
    flex: 1; overflow-y: auto; 
    padding: 40px 30px 50px;
    /* Menggunakan variabel warna sheet baru */
    background: var(--sheet-bg); 
    border-radius: 45px 45px 0 0;
    position: relative;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.4);
    animation: sheetUp 0.7s cubic-bezier(0.22, 1, 0.36, 1); /* Animasi awal diperhalus */
    z-index: 15;
    transition: padding-top 0.7s cubic-bezier(0.22, 1, 0.36, 1); /* Transisi padding halus */
}
.content-area::-webkit-scrollbar { width: 0; }

.empty-visual { margin-top: 60px; text-align: center; opacity: 0.5; }
.empty-visual svg { width: 70px; height: 70px; fill: #555; margin-bottom: 15px; }
.empty-visual p { font-size: 14px; font-weight: 600; color: #555; }

.lyrics-card { display: none; animation: fadeIn 0.8s ease-out; }

.song-header {
    text-align: center; margin-bottom: 40px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    padding-bottom: 30px;
}
.song-title { 
    font-size: 28px; font-weight: 900; color: var(--lyrics-text-color);
    letter-spacing: -1px; line-height: 1.2; margin-bottom: 10px;
}
.song-artist { 
    display: inline-block;
    background: var(--artist-tag-bg);
    color: #E0E0E0;
    font-size: 12px; font-weight: 800; 
    padding: 8px 16px; border-radius: 30px;
    text-transform: uppercase; letter-spacing: 1.5px;
}

.lyrics-text {
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 2;
    font-weight: 700;
    color: var(--lyrics-text-color);
    text-align: center;
    padding-bottom: 100px;
}

.loader {
    display: none; width: 40px; height: 40px; border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #333; border-radius: 50%;
    margin: 40px auto; animation: spin 1s linear infinite;
}

/* --- STATE SAAT SCROLL (FOCUS MODE) --- */
/* Transisi halus saat elemen menghilang */
.app-container.focus-mode .header-section,
.app-container.focus-mode .widgets-scroll,
.app-container.focus-mode .search-wrapper {
    opacity: 0;
    transform: translateY(-30px); /* Gerakan ke atas sedikit lebih halus */
    max-height: 0;
    margin-top: 0; margin-bottom: 0;
    padding-top: 0; padding-bottom: 0;
    pointer-events: none;
}

.app-container.focus-mode .content-area {
    border-radius: 0;
    background: var(--sheet-bg);
    padding-top: 85px; /* Jarak aman dari status bar */
}

.app-container.focus-mode .status-bar {
    /* Status bar jadi background gelap transparan saat mode fokus */
    background: rgba(30, 35, 40, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
