* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #0b0b12; color: #fff; font: 16px/1.45 Outfit, system-ui, sans-serif; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bg { position: fixed; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.45) saturate(1.3); transform: scale(1.08); z-index: 0; }
.bg-plain { background: radial-gradient(80% 60% at 50% 0%, var(--tc), transparent 70%), #0b0b12; filter: none; }

.player { position: relative; z-index: 1; min-height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: max(18px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); }
.p-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .12em; font-size: .72rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
body[data-state="playing"] .live i { background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0) } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0) } }
.clock { opacity: .75; font-variant-numeric: tabular-nums; }

.logo { width: min(68vw, 280px); aspect-ratio: 1; object-fit: cover; border-radius: 26%; margin-top: 4vh; box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: transform .4s; }
body[data-state="playing"] .logo { transform: scale(1.03); }
.screen { width: 100%; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; margin-top: 2vh; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.screen video { width: 100%; height: 100%; display: block; background: #000; }

.info { text-align: center; }
.info h1 { margin: 0; font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.15; }
.np { margin: 6px 0 0; opacity: .85; min-height: 1.45em; }
.status { margin: 6px 0 0; font-size: .82rem; opacity: .6; letter-spacing: .04em; }
body[data-state="error"] .status { color: #fca5a5; opacity: 1; }

.controls { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.play { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; background: #fff; color: #0b0b12; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .12s; }
.play:active { transform: scale(.94); }
.play:focus-visible { outline: 3px solid var(--tc); outline-offset: 4px; }
.play svg { width: 38px; height: 38px; fill: currentColor; }
.i-pause, .spinner { display: none; }
body[data-state="playing"] .i-play, body[data-state="loading"] .i-play { display: none; }
body[data-state="playing"] .i-pause { display: block; }
body[data-state="loading"] .spinner { display: block; width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(11,11,18,.15); border-top-color: #0b0b12; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.vol { width: min(100%, 280px); }
.vol input { width: 100%; accent-color: #fff; }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: auto; }
.social a, .social button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 10px 6px; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; border: 0; font: 500 .72rem Outfit, sans-serif; cursor: pointer; }
.social a:hover, .social button:hover { background: rgba(255,255,255,.18); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.p-foot { font-size: .75rem; opacity: .5; }

.is-tv .controls { display: none; }
.is-tv .player { gap: 18px; }
@media (min-width: 900px) { .is-tv .player { max-width: 960px; } }
@media (prefers-reduced-motion: reduce) { .live i, .spinner { animation: none !important; } }
