/* Basis-Styles aus dem Original-Index */
:root {
    --bg: #0b0e11;
    --panel: #14171c;
    --panel-light: #1c2128;
    --blue: #5aa0ff;
    --blue-light: #8cc2ff;
    --text: #d8e4f0;
    --error: #ff6b6b;
    --warning: #ffd92c;
    --success: #4ecdc4;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--panel);
    border-bottom: 1px solid #222;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

header img {
    height: 36px;
    opacity: 0.95;
}

header h1 {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
}

/* Canvas */
#waveform {
    width: 100%;
    height: calc(var(--vh, 1vh) * 55);
    display: block;
    background: #000;
    touch-action: none;
}

@media (orientation: landscape) {
    #waveform { height: calc(var(--vh, 1vh) * 72); }
}

@media (orientation: portrait) {
    #waveform { height: calc(var(--vh, 1vh) * 48); }
}

/* Controls */
#controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    color: var(--bg);
    background: var(--blue);
    cursor: pointer;
    user-select: none;
}

button:active { background: var(--blue-light); }
button span { color: var(--bg) !important; }

#liveBtn { background: var(--error); }

/* Debug Panel */
#debugPanel {
    padding: 8px 12px;
    background: var(--panel-light);
    font-size: 12px;
    border-top: 1px solid #222;
}

#debugPanel div { margin-bottom: 4px; }

/* Floating Live Button */
#jumpLiveBtn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 12px 20px;
    background: var(--blue);
    border-radius: 8px;
    border: none;
    font-weight: bold;
    color: var(--bg);
    box-shadow: 0 3px 14px rgba(0,0,0,0.5);
    z-index: 999;
}

#jumpLiveBtn:active { background: var(--blue-light); }

/* Auto-hide */
.dimmed { opacity: 0.25; transition: opacity 0.25s ease; }

/* Status-Klassen */
.status-error { color: var(--error); }
.status-warning { color: var(--warning); }
.status-success { color: var(--success); }
.status-info { color: var(--blue); }

/* Idle Overlay */
.idle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    text-align: center;
    color: #fff;
    padding: 24px;
}

.idle-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 420px;
}

.idle-overlay-logo {
    width: 96px;
    opacity: 0.9;
}

.idle-overlay-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.idle-overlay-subtitle {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
    #controls { padding: 8px; }
    button { padding: 12px; flex: 1; font-size: 14px; min-height: 44px; }
    .idle-overlay { padding: 16px; }
    .idle-overlay-title { font-size: 18px; }
    .idle-overlay-subtitle { font-size: 14px; }
}
