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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');

body {
    background: #000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

#container {
    position: relative;
    width: 1920px;
    height: 1080px;
    margin: 0 auto;
    background: #0a0a12;
    overflow: hidden;
}

/* Scale to fit viewport */
@media (max-width: 1920px) {
    #container {
        transform-origin: top left;
    }
}

canvas {
    display: block;
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    mix-blend-mode: difference;
}

/* Overlay layer — ABOVE canvas so difference blend interacts with it */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 5;
}

.overlay-image {
    position: absolute;
    width: 400px;
    height: 400px;
    object-fit: cover;
    pointer-events: none;
}

.overlay-word {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: var(--word-size, 28px);
    text-shadow: none;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    letter-spacing: 0.05em;
}

/* Controls bar */
#controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
    font-family: 'Courier New', monospace;
    color: #ccc;
}

#controls button {
    background: #333;
    color: #eee;
    border: 1px solid #555;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    border-radius: 3px;
}

#controls button:hover {
    background: #444;
}

#controls button.active {
    background: #c33;
    border-color: #e55;
}

#time-display {
    font-size: 14px;
    min-width: 120px;
}

#scrubber {
    flex: 1;
    cursor: pointer;
}

#audio-file-label {
    font-size: 12px;
    color: #888;
}
