@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ====================================================
   BASE RESET & FLUID MOBILE-FIRST TYPOGRAPHY
   ==================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: #08080a;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fluid Typography Scaling */
h1 { font-size: clamp(1.35rem, 4vw, 2.25rem); line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 3.2vw, 1.85rem); line-height: 1.25; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); line-height: 1.3; }
h4 { font-size: clamp(0.92rem, 2vw, 1.12rem); line-height: 1.35; }
h5, h6 { font-size: clamp(0.82rem, 1.8vw, 0.98rem); line-height: 1.4; }
p, span, label, input, button { font-size: clamp(0.8rem, 1.5vw, 0.92rem); }
small, .text-xs { font-size: clamp(0.7rem, 1.2vw, 0.8rem) !important; }

/* ====================================================
   SCROLLBAR UTILITIES (CLEANED & NON-BLOCKING)
   ==================================================== */
.scrollbar-hide {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Custom Scrollbar for scrollable panels */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(217, 241, 84, 0.3); }

/* ====================================================
   CLICK PROTECTION (ANTI-BLOCKING SYSTEM)
   ==================================================== */
/* Elemen dekoratif ambient dan blur DILARANG MENANGKAP KLIK */
[class*="blur-"],
.neon-glow,
#mobile-ambient-blur-1,
#mobile-ambient-blur-2,
.pointer-events-none {
    pointer-events: none !important;
}

/* Semua item interaktif DIPASTIKAN BISA DIKLIK */
button,
input,
select,
textarea,
.cursor-pointer,
.liquid-glass-card,
.action-btn {
    pointer-events: auto !important;
}

/* ====================================================
   LIQUID GLASS SYSTEM
   ==================================================== */
.liquid-glass {
    background: rgba(18, 18, 23, 0.72) !important;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.liquid-glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.liquid-glass-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(217, 241, 84, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.liquid-glass-card:active {
    transform: scale(0.98);
}

/* Form Input Focus Rings */
.glass-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #d9f154;
    box-shadow: 0 0 12px rgba(217, 241, 84, 0.25);
    background: rgba(255, 255, 255, 0.07) !important;
}


/* ====================================================
   LIQUID GLASS admin
   ==================================================== */


.liquid-glass-admin {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.liquid-glass-admin:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(217, 241, 84, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}




/* ====================================================
   GLOW & ACCENTS
   ==================================================== */
.neon-glow {
    box-shadow: 0 0 35px rgba(217, 241, 84, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: #d9f154 !important;
}

.nav-btn.active i {
    filter: drop-shadow(0 0 8px rgba(217, 241, 84, 0.7));
}

/* ====================================================
   SMOOTH MODAL & VIEW ANIMATIONS
   ==================================================== */
.view-section {
    animation: smoothFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Full Player Transition */
#mobile-full-player {
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

/* Ambient Radial Pulse */
#mobile-ambient-blur-1 { animation: pulseAmbientOne 12s ease-in-out infinite alternate; }
#mobile-ambient-blur-2 { animation: pulseAmbientTwo 14s ease-in-out infinite alternate; }

@keyframes pulseAmbientOne {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.12) translate(20px, 15px); }
    100% { transform: scale(0.95) translate(-10px, 10px); }
}

@keyframes pulseAmbientTwo {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.15) translate(-15px, -20px); }
    100% { transform: scale(0.92) translate(10px, -5px); }
}

/* ====================================================
   DRAG & DROP ZONE & LRC STUDIO
   ==================================================== */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}
.dropzone.dropzone-active {
    border-color: #d9f154;
    background: rgba(217, 241, 84, 0.08);
    transform: scale(1.01);
}
.dropzone.dropzone-filled {
    border-style: solid;
    border-color: rgba(217, 241, 84, 0.35);
}

.lrc-line {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.9rem;
    transition: background 0.15s ease;
    border: 1px solid transparent;
}
.lrc-line:hover {
    background: rgba(255, 255, 255, 0.03);
}
.lrc-line.lrc-line-active {
    background: rgba(217, 241, 84, 0.1);
    border-color: rgba(217, 241, 84, 0.35);
}
.lrc-line.lrc-line-stamped .lrc-line-time {
    color: #d9f154;
}
.lrc-line-time {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #8b8b93;
    text-align: center;
    cursor: text;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 4px 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.lrc-line-text {
    font-size: 12px;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
}
.lrc-line-text::placeholder { color: #4a4a4f; }

/* Karaoke preview */
#lrc-karaoke {
    scroll-behavior: smooth;
}
.karaoke-line {
    font-size: 13px;
    color: #5a5a60;
    padding: 6px 0;
    transition: color 0.25s ease, transform 0.25s ease;
}
.karaoke-line.karaoke-active {
    color: #d9f154;
    font-weight: 800;
    transform: scale(1.03);
}

/* Toast In Animation */
#toast-container > div {
    animation: toast-in 0.25s ease;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Kontainer Kategori (Satu baris, bisa di-scroll horizontal) */
#category-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 24px;
    
    /* Sembunyikan scrollbar agar terlihat bersih */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
#category-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Style Dasar Tombol (Pill) */
.cat-pill {
    flex-shrink: 0; /* Mencegah tombol tergencet (shrink) */
    white-space: nowrap; /* Mencegah teks turun ke baris baru */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px; /* Ukuran teks diperkecil */
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all 0.25s ease;
}

/* Style untuk Tombol Aktif (Neon Lime) */
.cat-pill.active {
    background-color: #d9f154; 
    color: #0a0a0b;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(217, 241, 84, 0.3);
}

/* Style untuk Tombol Biasa (Glassmorphism) */
.cat-pill.glass {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Efek Hover untuk Tombol Glass */
.cat-pill.glass:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* ================= DYNAMIC CATEGORY PILLS ================= */
#category-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 24px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

#category-pills::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.cat-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all 0.25s ease;
  text-transform: capitalize;
}

.cat-pill.active {
  background-color: #d9f154; 
  color: #0a0a0c; 
  font-weight: 700;
  box-shadow: 0 0 15px rgba(217, 241, 84, 0.3);
}

.cat-pill.glass {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cat-pill.glass:hover {
  background-color: rgba(255, 255, 255, 0.12);
}