*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: white;
    touch-action: pan-x pan-y;
}

.outer {
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vw;
}

/*
  Button column is 25% of frame width, video is 75% at 16:9.
  Frame height = 0.75 * W * (9/16) = 0.421875 * W
  Frame aspect ratio ≈ 16/6.75
*/
.frame {
    --frame-w: min(96vw, calc(96vh * (16 / 6.75)));
    width: var(--frame-w);
    height: calc(var(--frame-w) * (6.75 / 16));
    display: flex;
    flex-direction: row;
}

.buttons-container {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3vw;
    padding: 0 0.5vw 0 0;
    background: transparent;
}

.buttons-container button {
    width: 100%;
    flex: 1;
    background: linear-gradient(140.14deg, #00b9c6 15.05%, #00b9c6 114.99%) padding-box,
                linear-gradient(142.51deg, #00b9c6 8.65%, #00b9c6 88.82%) border-box;
    border-radius: 0.4vw 0 0 0.4vw;
    padding: 0 5%;
    border: 0.15vw solid transparent;
    cursor: pointer;
    transition: opacity 0.2s;
    color: white;
    font-size: 0.75vw;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: left;
}

.buttons-container button:hover {
    opacity: 0.8;
}

.buttons-container .back-button {
    background: transparent;
    border: 0.15vw solid #00b9c6;
    border-radius: 0.4vw 0 0 0.4vw;
    color: #00b9c6;
    text-shadow: none;
    justify-content: center;
    font-weight: 600;
}

.buttons-container .back-button:hover {
    background: #00b9c620;
    opacity: 1;
}

video {
    width: 75%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    border: 0.15vw solid #00b9c6;
    border-radius: 0 0.4vw 0.4vw 0;
}