.btc-embed-demo-root,
.btc-embed-demo {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
}

.btc-embed-demo {
    margin: 0;
    overflow: hidden;
    background: #111513;
    color: #f5f7f6;
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.btc-embed-demo__main {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-width: 0;
    min-height: 0;
    padding: clamp(8px, 1.5vw, 24px);
}

.btc-embed,
.btc-embed * {
    box-sizing: border-box;
}

.btc-embed {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #050706;
}

.btc-embed__viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100%;
    overflow: hidden;
    background: #000;
    opacity: 0;
}

.btc-embed[data-btc-fitted="true"] .btc-embed__viewport {
    opacity: 1;
}

.btc-embed__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
}

.btc-embed__fullscreen {
    position: absolute;
    z-index: 2;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 6px;
    background: rgb(8 12 10 / 82%);
    color: #fff;
    cursor: pointer;
    opacity: 0.72;
}

.btc-embed__fullscreen:hover,
.btc-embed__fullscreen:focus-visible {
    opacity: 1;
}

.btc-embed__fullscreen:focus-visible {
    outline: 3px solid #ffd45a;
    outline-offset: 3px;
}

.btc-embed__fullscreen[hidden] {
    display: none;
}

.btc-embed__fullscreen-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.btc-embed__fullscreen-icon::before,
.btc-embed__fullscreen-icon::after {
    position: absolute;
    width: 7px;
    height: 7px;
    content: "";
}

.btc-embed__fullscreen-icon::before {
    top: 0;
    left: 0;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.btc-embed__fullscreen-icon::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.btc-embed__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.btc-embed__noscript {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.btc-embed:fullscreen,
.btc-embed:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    min-height: 0;
}

@media (forced-colors: active) {
    .btc-embed__fullscreen {
        border: 2px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
        forced-color-adjust: auto;
    }
}
