:root {
    color-scheme: dark;
    background: #000;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
}

body {
    min-height: 100dvh;
}

.player-app {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: #000;
    isolation: isolate;
}

.player-app video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.player-app.fit-contain video {
    object-fit: contain;
}

.player-app.fit-cover video {
    object-fit: cover;
}

.player-status {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: min(88vw, 480px);
    padding: 24px 28px;
    color: rgba(255, 255, 255, .88);
    text-align: center;
    background: rgba(14, 14, 16, .74);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    transition: opacity .25s ease, visibility .25s ease;
}

.player-status.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.player-status p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.player-status.is-error {
    color: #ffd8dd;
    border-color: rgba(255, 92, 116, .28);
}

.player-status.is-empty .loader,
.player-status.is-error .loader {
    display: none;
}

.loader {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
