* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    height: 100dvh;
    width: 100%;
    position: fixed;
}

/* ROOT VARIABLES SPOTIFY STYLE */
:root {
    --bg-base: #121212;
    --bg-elevated: #1E1E1E;
    --bg-highlight: #282828;
    --card-bg: #181818;
    --card-hover: #282828;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent: #1DB954;
    --accent-hover: #1ED760;
    --border-subtle: rgba(255,255,255,0.08);
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* APP CONTAINER */
.app {
    height: 100dvh;
    width: 100%;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* HEADER (Spotify-like) */
.header {
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(20px);
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29,185,84,0.2);
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: #000000;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #FFFFFF, #1DB954);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

/* SEARCH BAR */
.search-wrapper {
    margin-bottom: 16px;
}

.search-box {
    background: var(--bg-elevated);
    border-radius: 500px;
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 20px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(29,185,84,0.3);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.search-btn {
    background: var(--accent);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.search-btn:active {
    transform: scale(0.94);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

/* CHIPS (kategori) */
.chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    background: var(--bg-highlight);
    padding: 8px 18px;
    border-radius: 500px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:active {
    transform: scale(0.96);
    background: var(--accent);
    color: #000;
}

/* MAIN CONTENT (scroll area) */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 30px;
    scroll-behavior: smooth;
}

/* custom scrollbar */
.main-content::-webkit-scrollbar {
    width: 4px;
}
.main-content::-webkit-scrollbar-track {
    background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
    background: #535353;
    border-radius: 4px;
}

/* STATE PAGES */
.state-container {
    animation: fadeUp 0.3s ease-out;
}

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

/* IDLE STATE */
.idle-state {
    text-align: center;
    margin-top: 80px;
    color: var(--text-secondary);
}
.idle-state svg {
    width: 90px;
    fill: #2A2A2A;
    margin-bottom: 20px;
}
.idle-state p {
    font-weight: 500;
    font-size: 16px;
}
.idle-state small {
    font-size: 13px;
    opacity: 0.7;
}

/* LOADING */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESULTS LIST (Spotify card style) */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.song-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}
.song-card:active {
    transform: scale(0.98);
    background: var(--card-hover);
}
.song-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}
.song-artist {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
    display: inline-block;
    background: rgba(255,255,255,0.07);
    padding: 4px 12px;
    border-radius: 40px;
}
.song-album {
    font-size: 12px;
    color: #7E7E7E;
    margin-top: 8px;
}
.card-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* LYRICS VIEW */
.lyrics-header {
    margin-bottom: 24px;
}
.back-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 18px;
    border-radius: 500px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}
.back-btn:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.97);
}
.song-detail {
    text-align: center;
    margin-bottom: 28px;
}
.song-detail h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    word-break: break-word;
}
.artist-badge {
    background: var(--bg-highlight);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 10px;
    color: var(--text-secondary);
}
.lyrics-box {
    background: var(--bg-elevated);
    border-radius: 24px;
    padding: 28px 20px;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 500;
    color: #E8E8E8;
    white-space: pre-wrap;
    font-family: 'Inter', monospace;
    border: 1px solid var(--border-subtle);
}
.new-search-btn {
    background: var(--bg-highlight);
    border: none;
    padding: 12px 24px;
    border-radius: 500px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 32px;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.new-search-btn:active {
    background: var(--accent);
    color: #000;
    transform: scale(0.98);
}
.error-state {
    text-align: center;
    margin-top: 80px;
    color: #f87171;
}

/* hide utility */
.hidden {
    display: none !important;
}
