* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #fff;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#stage { position: relative; width: 100%; height: 100%; }
#video { width: 100%; height: 100%; object-fit: contain; background: #000; }

#message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; white-space: pre-line; padding: 24px; font-size: 18px; color: #ccc;
  pointer-events: none; }
#message[hidden] { display: none; }

#unmute { position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 10px 18px; border: 0; border-radius: 999px; background: #5865f2; color: #fff;
  font-size: 15px; cursor: pointer; }

#toast { position: absolute; top: 16px; right: 16px; max-width: 60%; padding: 10px 14px;
  border-radius: 8px; background: rgba(237, 66, 69, .95); }

#controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  gap: 10px; padding: 28px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85));
  transition: opacity .3s; }
#stage.idle #controls { opacity: 0; }
#stage.idle { cursor: none; }
#controls button { border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer;
  padding: 4px; line-height: 1; }
#controls button:hover { transform: scale(1.12); }
#seek { flex: 1; min-width: 60px; accent-color: #5865f2; }
#volume { width: 80px; accent-color: #aaa; }
#time, #duration { font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }
#quality { font-size: 12px; color: #aaa; white-space: nowrap; }
.disabled { opacity: .35; pointer-events: none; }

@media (max-width: 560px) {
  #volume, #quality { display: none; }
  #controls { gap: 6px; padding-inline: 8px; }
}
