/* Song Analyzer Widget */

.az-wrap * { box-sizing: border-box; }

.az-float-btn {
    position: fixed; bottom: 24px; left: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; background: #1e1e2e;
    font-size: 1.1rem; cursor: pointer;
    z-index: 9000; opacity: 0.5;
    transition: opacity .2s;
    box-shadow: 0 2px 12px #00000055;
}
.az-float-btn:hover { opacity: 1; }

#az-login-modal {
    position: fixed; inset: 0;
    background: #00000088;
    z-index: 9999;
    align-items: center; justify-content: center;
}

.az-modal {
    background: #16161f;
    border: 1px solid #2a2a3a;
    border-radius: 14px;
    padding: 32px; width: 320px; max-width: 90vw;
}
.az-modal h3 { color: #a78bfa; margin-bottom: 20px; font-size: 1.1rem; }

.az-card {
    background: #16161f;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 22px; margin-bottom: 20px;
}
.az-card h3 {
    color: #94a3b8; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 16px;
}

.az-admin-bar {
    background: #1a2e1a; border: 1px solid #2d5a2d;
    border-radius: 10px; padding: 10px 16px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; font-size: .85rem; color: #86efac;
}

.az-field { margin-bottom: 12px; }
.az-field label {
    display: block;
    font-size: .75rem;
    color: #64748b;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}
.az-field input, .az-field textarea {
    width: 100%; background: #0d0d14;
    border: 1px solid #2a2a3a; border-radius: 8px;
    color: #e2e8f0; padding: 10px 13px;
    font-size: .88rem; font-family: inherit;
    outline: none; transition: border-color .2s;
}
.az-field input:focus, .az-field textarea:focus { border-color: #a78bfa; }
.az-field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.az-hint { color: #64748b; font-size: .75rem; }

/* Emotions grid — 5 columns */
.az-emotions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .az-emotions-grid { grid-template-columns: repeat(3, 1fr); }
}
.az-emotions-grid .az-field { margin-bottom: 0; }
.az-emotions-grid input { padding: 8px 6px; text-align: center; }

.az-check {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem; color: #94a3b8;
    margin-bottom: 14px; cursor: pointer;
}

.az-btn {
    display: inline-block; padding: 9px 20px;
    border-radius: 8px; border: none; cursor: pointer;
    font-size: .85rem; font-family: inherit;
    transition: opacity .2s; margin-left: 6px;
}
.az-btn:hover { opacity: .85; }
.az-btn-primary { background: #a78bfa; color: #1a1a2e; font-weight: 600; }
.az-btn-ghost   { background: #1e1e2e; color: #94a3b8; border: 1px solid #2a2a3a; }
.az-btn-danger  { background: #3b1f1f; color: #f87171; border: 1px solid #7f1d1d; }
.az-btn-sm      { padding: 5px 13px; font-size: .78rem; }

.az-alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: .83rem; }
.az-alert-err { background: #2e1a1a; border: 1px solid #7f1d1d; color: #fca5a5; }

.az-admin-list { margin-bottom: 20px; }
.az-song-row {
    background: #16161f; border: 1px solid #2a2a3a;
    border-radius: 10px; padding: 12px 16px;
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 8px;
    gap: 10px; flex-wrap: wrap;
}
.az-song-info {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
    font-size: .88rem; color: #e2e8f0;
}

.az-badge { border-radius: 20px; padding: 2px 10px; font-size: .73rem; font-weight: 600; }
.az-badge-live  { background: #1a2e1a; color: #86efac; border: 1px solid #2d5a2d; }
.az-badge-draft { background: #2a2a1a; color: #fbbf24; border: 1px solid #5a4a1d; }

/* Chart — horizontal scroll on mobile */
.az-chart-wrap {
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.az-chart-label {
    color: rgba(201,147,43,0.5);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 12px;
    font-family: 'Lato', sans-serif;
}
.az-chart-wrap canvas {
    min-width: 600px; /* scrollable on mobile */
    width: 100%;
}

.az-add-form h3 {
    color: #60a5fa; font-size: .95rem;
    margin-bottom: 16px; text-transform: none; letter-spacing: 0;
}
