:root {
    color-scheme: dark;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

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

body { overscroll-behavior: none; }

.player-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100%;
    overflow: hidden;
    background: #000;
}

.tv-video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    outline: 0;
    background: #000;
    object-fit: contain;
}

.player-status {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(90vw, 460px);
    min-height: 52px;
    padding: 14px 18px;
    color: rgba(255,255,255,.92);
    font-size: clamp(14px, 1.2vw, 22px);
    line-height: 1.3;
    text-align: center;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    box-shadow: 0 12px 44px rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease;
}

.player-status.is-visible { opacity: 1; }

.player-status.is-error {
    flex-direction: column;
    gap: 10px;
}

.status-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: player-spin .8s linear infinite;
}

.is-error .status-spinner { display: none; }

.start-button,
.retry-button {
    min-width: 148px;
    min-height: 44px;
    padding: 9px 18px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: #1677e8;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    cursor: pointer;
}

.start-button:focus,
.retry-button:focus,
.start-button:hover,
.retry-button:hover {
    background: #3591ff;
    outline: 3px solid rgba(72,163,255,.8);
    outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
    .status-spinner { animation: none; }
    .player-status { transition: none; }
}

@supports (height: 100dvh) {
    .player-shell { height: 100dvh; }
}
