:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #111318;
  color: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.app {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px) auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid #2a2f3a;
  background: #171a21;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 6px 0 0;
  color: #aeb8c7;
}

label {
  display: grid;
  gap: 6px;
  color: #aeb8c7;
  font-size: 13px;
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid #343b48;
  border-radius: 6px;
  padding: 0 12px;
  background: #0f1117;
  color: #f4f7fb;
  font: inherit;
}

.actions {
  display: flex;
  gap: 10px;
}

button {
  height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #3a7afe;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#stopButton {
  background: #424a58;
}

video {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #050609;
  object-fit: contain;
}

@media (max-width: 760px) {
  .toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  button {
    padding: 0 8px;
  }
}
