:root {
  --bg: #14202b;
  --ink: #e7edf3;
  --accent: #3aa0c9;
  --accent-dark: #267a9c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0e1820;
  border-bottom: 1px solid #1f303d;
  flex-shrink: 0;
  gap: 10px;
  flex-wrap: wrap;
}

header.top-bar h1 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
header.top-bar .subtitle {
  font-size: 11px;
  color: #9fb3c2;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar-track {
  width: 140px;
  height: 7px;
  background: #233646;
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s linear;
}
.progress-label { font-size: 11px; color: #9fb3c2; white-space: nowrap; }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 0;
}

.video-frame {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

video {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.4);
  background: #000;
  width: 100%;
}

footer.bottom-bar {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  background: #0e1820;
  border-top: 1px solid #1f303d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.status-line {
  font-size: 13px;
  color: #9fb3c2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-line .done-badge {
  display: none;
  color: #6fd49a;
  font-weight: 600;
}
.status-line.completed .done-badge { display: inline; }

@media (max-width: 640px) {
  header.top-bar h1 { font-size: 14px; }
  .progress-bar-track { width: 90px; }
}
