/* Player container fills the viewport */
#player {
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #000;
}

/* Ensure the canvas fills its parent */
.playerCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

/* UI Controls overlaid (Shadertoy style) */
#controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    color: #fff;
    font-family: sans-serif;
    z-index: 10;
    max-width: 220px;
}
#controls label {
    font-size: 0.9em;
}
#controls input,
#controls select {
    margin: 5px 0;
    width: 100%;
}
.shaderControls {
    margin-top: 10px;
}

