:root {
  --bg: #070b14;
  --card: rgba(15, 23, 42, 0.88);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --danger: #fb7185;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(34, 197, 94, 0.12), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.12), transparent 30%);
  pointer-events: none;
}
.shell {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}
h1, h2 { margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.1rem; margin-bottom: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.wide { margin-top: 18px; }
.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.form { display: grid; gap: 12px; }
.form.row { grid-template-columns: 1fr auto; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, button, .ghost {
  font: inherit;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}
button, .ghost {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #04101c;
  font-weight: 700;
  cursor: pointer;
}
.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.tab.active {
  color: #04101c;
  background: var(--accent);
}
.error { color: var(--danger); min-height: 1.2em; }
.hidden { display: none !important; }
.hint {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  color: var(--muted);
  font-size: 14px;
}
.hint p { margin: 4px 0; }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f8fafc;
  word-break: break-all;
}
.list { display: grid; gap: 12px; }
.item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.45);
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions a, .actions button {
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
}
.badge.live {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.user-box { color: var(--muted); }
.watch .player-card { max-width: 960px; margin: 0 auto; }
.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
}
.player-wrap {
  position: relative;
  margin: 12px 0;
}
video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  display: block;
}
.play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(240px, 70%);
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #04101c;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.play-overlay:hover { filter: brightness(1.05); }
.muted { color: var(--muted); }
.protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.protocols span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .grid, .form.row { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
}
