:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #f3f5f7;
  --muted: #9aa4b2;
  --accent: #4f8cff;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}

.app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

.hidden {
  display: none !important;
}

.state {
  width: 100%;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.state h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}

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

.player-shell {
  width: 100vw;
  height:100vh;
  max-width: 100vw;
}

.player-header {
  margin-bottom: 16px;
}

.meta h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
}

.meta p {
  margin: 0;
  color: var(--muted);
}

.player-frame-wrap {
  position: relative;
  width: 100%;
  height:100vh;
  /* aspect-ratio: 16 / 9; */
  background: #000;
  border-radius: 0px;
  overflow: hidden;
}

.player-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}