
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #10141d;
  color: #edf2fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, #202c42 0%, #10141d 60%);
}

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 40px 0;
}

header {
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 8px;
}

header p,
.hint {
  color: #aab6ca;
  line-height: 1.6;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  background: #5685ff;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: filter 0.2s;
}

button:hover {
  filter: brightness(1.12);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary {
  background: #303c51;
}

.danger {
  background: #c83e51;
  margin-top: 20px;
}

.panel,
.video-card {
  background: #1a2230;
  border: 1px solid #303c51;
  border-radius: 14px;
  padding: 18px;
}

.panel {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 650;
}

.room-row {
  display: flex;
  gap: 10px;
}

input {
  min-width: 0;
  width: 180px;
  border: 1px solid #47546b;
  border-radius: 10px;
  padding: 12px;
  background: #10141d;
  color: white;
  font: inherit;
  text-transform: uppercase;
}

#status {
  min-height: 24px;
  color: #a8c2ff;
  margin: 20px 0;
  overflow-wrap: anywhere;
}

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.video-card h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080b10;
  border-radius: 9px;
  object-fit: contain;
}

.hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .container {
    padding: 24px 0;
  }

  .videos {
    grid-template-columns: 1fr;
  }

  .room-row {
    flex-wrap: wrap;
  }

  .room-row input {
    flex: 1;
  }
}
