/* styles.css */
* {
  box-sizing: border-box;
}

html, body {
  color: #e6edf3;
  overflow: hidden;
  background: #06080b;
  height: 100%;
  margin: 0;
  padding: 0;
  font: 14px / 1.4 -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue, system-ui, Roboto, Noto Sans, Ubuntu, Cantarell, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

.bar {
  display: flex;
  background: #0c1116;
  border-bottom: 1px solid #1c232b;
  flex-shrink: 0;
  align-items:  center;
  gap: 16px;
  padding: 10px 16px;
}

.title {
  letter-spacing: .02em;
  color: #cdd6df;
  font-weight: 600;
}

.title .sep {
  color: #3a4a5e;
  margin: 0 8px;
}

.nav-link {
  color: #6b7585;
  text-decoration: none;
  transition: color .12s;
  font-weight: 400;
}

.nav-link:hover {
  color: #e6edf3;
}

.presets {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.preset-btn {
  color: #9aa5b1;
  cursor: pointer;
  background: #141a21;
  border: 1px solid #232c36;
  border-radius: 6px;
  padding: 5px 10px;
  transition: background .12s, color .12s, border-color .12s;
  font-size: 12px;
}

.preset-btn:hover {
  color: #d1d9e2;
  background: #1a212a;
}

.preset-btn.active {
  color: #e6edf3;
  background: #1f2a36;
  border-color: #3a4a5e;
}

.preset-btn.missing {
  opacity: .45;
  font-style: italic;
}

.actions {
  margin-left: auto;
}

#regen {
  color: #e6edf3;
  cursor: pointer;
  background: #1f2a36;
  border: 1px solid #3a4a5e;
  border-radius: 6px;
  padding: 6px 14px;
  transition: background .12s;
  font-size: 13px;
}

#regen:hover {
  background: #28384a;
}

#regen:disabled {
  opacity: .5;
  cursor: progress;
}

.stage {
  position: relative;
  display: flex;
  overflow: hidden;
  background: #000;
  flex: 1;
  justify-content: center;
  align-items:  center;
}

#player {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.status {
  position: absolute;
  color: #cdd6df;
  pointer-events: none;
  opacity: 0;
  background: #000000b3;
  border: 1px solid #1c232b;
  border-radius: 6px;
  padding: 8px 14px;
  transition: opacity .2s;
  font-size: 12px;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.status.visible {
  opacity: 1;
}

.status.error {
  color: #ffb4b4;
  border-color: #5a2530;
}
