/* Barra de replay fixa abaixo do menu; as páginas empurram o conteúdo via body.has-replay. */
:root {
  --replay-top: 64px;
  --replay-height: 44px;
}

body.has-replay {
  --nav-height: calc(var(--replay-top) + var(--replay-height));
}

.replay-bar {
  position: fixed;
  top: var(--replay-top);
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--replay-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #0f1115;
  border-bottom: 1px solid #2a2f38;
  color: #e8eaed;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 13px;
}

.replay-bar[hidden] { display: none; }

.replay-inactive,
.replay-active {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.replay-inactive[hidden],
.replay-active[hidden] { display: none; }

.replay-hint { color: #9aa3ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.replay-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: #f44336;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.replay-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #2a2f38;
  background: #1b1e24;
  color: #e8eaed;
  font: inherit;
  cursor: pointer;
}

.replay-btn:hover { border-color: #4a90e2; }
.replay-btn-primary { background: #4a90e2; border-color: #4a90e2; color: #fff; }
.replay-exit { color: #f44336; border-color: #f44336; background: transparent; white-space: nowrap; }

.replay-clock,
.replay-end {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}

.replay-end { color: #9aa3ad; font-weight: 400; }

.replay-seek {
  flex: 1;
  min-width: 80px;
  accent-color: #4a90e2;
}

.replay-speeds { display: flex; gap: 4px; }

.replay-speed {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #2a2f38;
  background: transparent;
  color: #9aa3ad;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.replay-speed.is-active { border-color: #4a90e2; color: #fff; background: rgba(74, 144, 226, 0.25); }

@media (max-width: 900px) {
  :root { --replay-top: 56px; --replay-height: 84px; }
  .replay-active { flex-wrap: wrap; row-gap: 4px; }
  .replay-hint { display: none; }
  .replay-seek { order: 10; flex-basis: 100%; }
}
