* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #root {
    background-color: black;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    color: #e0e0e0;
    overflow: hidden;
}

/* Floating control panel — single horizontal bar */
.overlay-top {
    position: absolute;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
    white-space: nowrap;
}

/* Bottom-right floating panels */
.overlay-bottom-right {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    pointer-events: auto;
}

.overlay-panel {
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 10px 14px;
    min-width: 180px;
}

.panel-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 4px;
}

/* Horizontal row of controls */
.overlay-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlay-row label {
    font-size: 12px;
    color: #888;
    min-width: 40px;
    white-space: nowrap;
}

.overlay-row span {
    font-size: 12px;
    color: #aaa;
    min-width: 50px;
}

/* Title text */
.title {
    font-size: 16px;
    font-weight: 600;
    color: #00FFFF;
    min-width: auto !important;
}

/* Tab strip */
.tab-strip {
    display: flex;
    gap: 0;
}

/* Divider between sections */
.overlay-divider {
    width: 1px;
    height: 20px;
    background: #444;
    flex-shrink: 0;
}

.tab {
    background: transparent;
    color: #888;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab:hover {
    color: #e0e0e0;
}

.tab-active {
    color: #00FFFF;
    border-bottom-color: #00FFFF;
}

/* Tab content area — inline */
.tab-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Select elements */
.overlay-select {
    background: #0f0f23;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
}

.overlay-select:focus {
    outline: none;
    border-color: #00FFFF;
}

/* Buttons */
button {
    background: #0f0f23;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover:not(:disabled):not(.tab) {
    background: #1a1a3e;
    border-color: #00FFFF;
}

button:disabled:not(.tab) {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Sliders */
.seek-slider {
    width: 100px;
    accent-color: #00FFFF;
}

.overlay-row input[type="range"] {
    width: 80px;
    accent-color: #00FFFF;
}

/* Step info block */
.step-info {
    font-size: 12px;
    line-height: 1.6;
    color: #ccc;
    background: #0f0f23;
    border-radius: 4px;
    padding: 8px;
}

.step-info div {
    font-family: monospace;
}

/* Speed buttons */
.speed-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    min-width: 24px;
}

.speed-label {
    font-size: 11px;
    color: #aaa;
    min-width: 24px !important;
    text-align: center;
}

/* Edit hint text */
.edit-hint {
    font-size: 11px;
    color: #888;
}

/* About button */
.about-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    min-width: 24px;
    border-radius: 50%;
    color: #888;
    border-color: #555;
}

.about-btn:hover:not(:disabled) {
    color: #00FFFF;
}

/* About overlay */
.about-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-panel {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 32px;
    color: #ccc;
}

.about-panel h2 {
    color: #00FFFF;
    font-size: 20px;
    margin-bottom: 16px;
}

.about-panel p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
}

.about-close:hover {
    color: #e0e0e0;
}

a {
    color: #00FFFF;
}
