* { box-sizing: border-box; }

:root { color-scheme: dark; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0f14;
  color: #e6edf3;
  font-family: system-ui, sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 1100px;
  padding: 20px;
}

h1 {
  text-align: center;
}

/* Cards */

.card {
  background: #0f1620;
  border: 1px solid #1f2a37;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
}

/* Layout */

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Inputs & Buttons */

input, button {
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #263244;
  background: #0b1220;
  color: #e6edf3;
}

input {
  flex: 1;
  min-width: 220px;
}

button {
  cursor: pointer;
}

button:hover {
  background: #162136;
}

button:disabled {
  opacity: .6;
}

/* Video */

video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 16px;
  border: 1px solid #1f2a37;
}

/* Helpers */

.small {
  color: #b9c6d3;
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0b1220;
  border: 1px solid #263244;
  font-size: 13px;
}

code {
  background: #0b1220;
  border: 1px solid #263244;
  padding: 2px 6px;
  border-radius: 8px;
}

.ended-banner{
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: rgba(239,68,68,.12);
  color: #fecaca;
  font-weight: 600;
}

/* Responsive */

@media (max-width:768px){
  main{padding:14px;}
  .row{flex-direction:column;}
  input,button{width:100%;}
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

