:root {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background: #0b0b0c;
  color: #eaeaea;
}

header {
  padding: 16px;
  border-bottom: 1px solid #222;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

main {
  padding: 16px;
}

button {
  background: #1f1f22;
  color: #eaeaea;
  border: 1px solid #2a2a2e;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: #26262a;
}

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

input {
  background: #111114;
  border: 1px solid #2a2a2e;
  color: #eaeaea;
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
  max-width: 680px;
}

.small {
  opacity: 0.8;
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tile {
  position: relative;
  background: #111114;
  border: 1px solid #242428;
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
