#controls {
    position: absolute; left: 50%; transform: translateX(-50%); z-index: 50;
    display: flex; gap: 12px; padding: 10px 14px; border-radius: 12px; width: auto; justify-content: flex-start;
    max-width: min(96vw, 700px); overflow-x: scroll; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; touch-action: pan-x; flex-wrap: nowrap;
    scrollbar-width: none; -ms-overflow-style: none;
}
#controls::-webkit-scrollbar { width: 0; height: 0; background: transparent; }

.control-btn {
    border: 1px solid rgba(255,255,255,0.5); padding: 14px 28px; border-radius: 12px; 
    font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 10px; 
    flex-shrink: 0; white-space: nowrap;
    transition: all 0.12s ease;
    background: rgba(255,255,255,0.25); backdrop-filter: blur(25px) saturate(160%); -webkit-backdrop-filter: blur(25px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 20px rgba(0,0,0,0.06);
    color: var(--text);
}
.control-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.btn-primary { border-color: var(--primary); background: rgba(255,255,255,0.45); }
.btn-primary:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-magic { background: linear-gradient(135deg, rgba(0,122,255,0.85), rgba(0,198,255,0.85)); color: #fff; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 8px 24px rgba(0,122,255,0.35), inset 0 1px 0 rgba(255,255,255,0.5); }
.control-btn:hover { background: var(--surface); border-color: rgba(255,255,255,0.7); box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 8px 24px rgba(0,0,0,0.08); }
.btn-magic:hover { background: linear-gradient(135deg, rgba(0,122,255,0.95), rgba(0,198,255,0.95)); }
.control-btn:active { transform: scale(0.96); box-shadow: inset 0 2px 8px rgba(0,0,0,0.06); background: var(--surface-alt); }
.control-btn.hidden { display: none; }

.btn-close { background: rgba(0,0,0,0.05); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center;}
