* {
    box-sizing: border-box
}
body {
    margin: 3em;
    font-family: monospace;
    text-transform: uppercase;
}
article {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3em;
}
.player {
    background: #ccc;
    aspect-ratio: 16 / 9;
    position: relative;
}
.details {
    background: #eee;
}

iframe {
    position:absolute;top:0;left:0;width:100%;height:100%;
}

img {
    position:absolute;top:0;left:0;width:100%;height:100%;
}
#overlay {
    padding: 2em;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background: rgba(255,255,255,0.7);
    transform: translate(-50%,-50%);
    align-items: center;
    backdrop-filter: blur(8px);
    gap: .5em;
    flex-direction: column;
    display: flex;
    justify-content: center;
}
#overlay.hidden {
    display: none;
}
#overlay h3 {
    text-align: center;
}
#overlay div {
    text-align: center;
}
#overlay button,
#overlay a {
    text-decoration: none;
    color: currentColor;
    appearance: none;
    background: none;
    border-radius: 2em;
    text-transform: uppercase;
    font: inherit;
    border: 1px solid;
    padding: .2em 1em;
}

#overlay form {
    display: none;

}

#overlay.code > * {
    display: none;
}
#overlay.code form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
