body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f0f0f;
    color: white;
}

/* ========================================
   MAIN LAYOUT
======================================== */

.container {
    max-width: 700px;
    margin: auto;
    padding: 30px;
}

h2 {
    text-align: center;
}

/* ========================================
   FORM ELEMENTS
======================================== */

select,
textarea,
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    font-size: 15px;
    border: none;
    outline: none;
    box-sizing: border-box;
}

textarea {
    height: 120px;
    resize: none;
    background: #1a1a1a;
    color: white;
}

/* ========================================
   BUTTONS
======================================== */

button {
    background: #4f46e5;
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    background: #4338ca;
}

button:disabled {
    background: #2a2a2a;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   STATUS + OUTPUT
======================================== */

#status {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.card {
    margin-top: 20px;
    background: #1c1c1c;
    padding: 15px;
    border-radius: 12px;
}

/* ========================================
   AUDIO PLAYER
======================================== */

audio {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   COUNTER
======================================== */

.counter {
    text-align: right;
    font-size: 12px;
    color: #aaa;
}

/* ========================================
   AI STUDIO ACCESS LOCK SYSTEM
======================================== */

.lock-wrapper {
    position: relative;
}

/* blur only content */
.locked {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}

/* overlay fix (IMPORTANT FIX) */
.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

/* modal box */
.lock-box {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    border-radius: 14px;
    padding: 25px;
    max-width: 500px;
    width: 100%;
}

/* text styling */
.lock-box h3 {
    margin-top: 0;
    color: #fff;
}

.lock-box p {
    color: #bbb;
    line-height: 1.6;
}

/* dropdown inside modal */
.lock-box select {
    margin-top: 15px;
    background: #1f1f1f;
    color: white;
}

/* buttons inside modal */
.lock-box button {
    margin-top: 15px;
}
/* ========================================
   SIDEBAR
======================================== */
.ai-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: #111;
    color: #fff;
    overflow-y: auto;
    border-left: 1px solid #333;
    padding: 10px;
    z-index: 999;
}

.ai-sidebar-header {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.ai-song-item {
    padding: 10px;
    border-bottom: 1px solid #222;
}

.ai-song-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.ai-song-meta {
    font-size: 11px;
    opacity: 0.7;
}

.ai-play-btn {
    margin-top: 5px;
    padding: 5px 8px;
    background: #2ecc71;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}



/* ========================================
   MOBILE FIX (IMPORTANT)
======================================== */

@media (max-width: 600px) {

    .container {
        padding: 15px;
    }

    .lock-box {
        padding: 20px;
    }
}