:root {
  --bg: #0b0e14;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #e6eaf2;
  --muted: #a9b1c3;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #c9d1ff;
  --accent2: #d6ffe3;
  --danger: #ff8e8e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(201, 209, 255, 0.09), transparent 55%),
    linear-gradient(180deg, #0b0e14, #070a10);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #e9edf7;
}

.top {
  padding: 18px 20px 10px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.nav a:hover {
  border-color: rgba(201, 209, 255, 0.55);
}

.layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.videoWrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

video {
  width: 100%;
  height: auto;
  display: block;
}

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

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

button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  border-color: rgba(201, 209, 255, 0.45);
  background: rgba(201, 209, 255, 0.12);
}
.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.status {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.row:last-child {
  border-bottom: none;
}
.k {
  color: var(--muted);
  font-size: 12px;
}
.v {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.bars {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.bar {
  display: grid;
  grid-template-columns: 92px 1fr 52px;
  align-items: center;
  gap: 10px;
}

.bar .name {
  font-size: 12px;
  color: var(--muted);
}

.track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(201, 209, 255, 0.9), rgba(214, 255, 227, 0.9));
  border-radius: 999px;
  transition: width 140ms linear;
}

.pct {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--text);
  text-align: right;
}

