:root {
    color-scheme: dark;
    --shell-bg: #07080b;
    --fatal-bg: rgba(8, 9, 13, 0.92);
    --fatal-text: #e8eaf0;
    --accent: #ff5f5f;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--shell-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.player-shell {
    position: relative;
    width: 100%;
    height: 100%;
}

.player-stage {
    width: 100%;
    height: 100%;
}

.player-fatal {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: var(--fatal-bg);
    color: var(--fatal-text);
}

.player-fatal[hidden] {
    display: none;
}

.player-fatal__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.player-fatal__button {
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.player-fatal__button:hover {
    filter: brightness(1.1);
}

.player-fatal__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Trang 404 */
.error-page {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--fatal-text);
}

.error-page__code {
    margin: 0 0 8px;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.error-page__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #9aa0ad;
}
