:root {
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #141b26 0%, var(--bg) 55%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / controls area */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 20, 0.7);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label { color: var(--muted); font-size: 12px; }

select, button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
}

button {
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

/* Video hero */
.video-hero {
  width: 100%;
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 12px 16px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* troque pra cover se quiser */
  background: #000;
}

/* Mobile behavior: video always visible */
@media (max-width: 768px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .video-hero {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .video-frame {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .video-hero {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}
