/* ═══════════════════════════════════════════════════════════════
   Barre d'outils
   ═══════════════════════════════════════════════════════════════ */

.toolbar {
  background: linear-gradient(180deg, var(--toolbar-bg1) 0%, var(--toolbar-bg2) 100%);
  border-bottom: 1px solid var(--bdr);
  padding: 14px 14px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* Séparateur vertical */
.tb-sep {
  width: 1px;
  align-self: stretch;
  background: var(--tb-sep);
  flex-shrink: 0;
}

/* Zone nommée de la barre d'outils */
.tb-zone {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tb-zone.disabled {
  opacity: .35;
  pointer-events: none;
}

.tb-zone-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* Label de section */
.tb-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tx);
  font-weight: 700;
  margin-bottom: 2px;
}

/* Bouton d'action (vidéo, thème) */
.fbtn {
  height: 34px;
  padding: 0 13px;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  color: var(--tx);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.fbtn:hover {
  background: var(--bg4);
  border-color: #444;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.fbtn:active { transform: translateY(0); }
.fbtn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* Transport */
.transport {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg3);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--bdr);
}

.tbtn {
  width: 38px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--bdr);
  color: var(--tbtn-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .12s, color .12s, box-shadow .2s;
}
.tbtn:last-child { border-right: none; }
.tbtn:hover { background: var(--tbtn-hover-bg); color: var(--tbtn-hover-color); }
.tbtn:active { background: rgba(255, 255, 255, .04); }

.tbtn.play {
  background: #2a6b2c;
  color: #fff;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tbtn.play:hover { background: #358a38; }
.tbtn.play.active {
  background: var(--pause-org);
  color: #fff;
  animation: pausePulse 1.8s ease-in-out infinite;
}

@keyframes pausePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 159, 10, .18),
                0 0 10px rgba(255, 159, 10, .16),
                inset 0 1px 0 rgba(255, 255, 255, .14);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 159, 10, 0),
                0 0 18px rgba(255, 159, 10, .3),
                inset 0 1px 0 rgba(255, 255, 255, .18);
  }
}

/* Compteur de position */
.pos-display {
  font-family: 'SF Mono', Consolas, 'Fira Code', monospace;
  font-size: 24px;
  color: var(--display-color);
  letter-spacing: 1.5px;
  background: #0e0e10;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  min-width: 140px;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 8px rgba(48, 209, 88, .15);
  transition: border-color .2s;
}
.pos-display:hover { border-color: var(--play-grn); }

/* Grille de réglages */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.srow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.srow label {
  font-size: 13px;
  color: var(--tx2);
  width: 55px;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: .3px;
}

.srow input[type=range] {
  flex: 1;
  min-width: 0;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg4);
  border-radius: 3px;
  outline: none;
}
.srow input[type=range]::-webkit-slider-runnable-track {
  height: 5px;
  background: linear-gradient(to right, var(--slider-fill) var(--val, 50%), var(--bg4) var(--val, 50%));
  border-radius: 3px;
}
.srow input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slider-thumb);
  margin-top: -4.5px;
  cursor: pointer;
}

.srow .sv {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 12px;
  color: var(--tbtn-color);
  width: 42px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 500;
}

.sicon {
  font-size: 18px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  filter: var(--icon-filter);
  line-height: 1;
}

.sicon svg {
  filter: none;
  color: #fff;
}

.sicon-flip {
  transform: scaleX(-1);
}
