/* ==========================================================================
   E-ORGANISTA - ACCOMPANIMENT ASSEMBLER MODULE STYLES
   Visual Pipeline & Interactive Fragment Chain
   ========================================================================== */

/* Top Split Grid: Catalog & Song Configurator */
.assembler-top-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 1100px) {
  .assembler-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Panel Headers */
.panel-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.panel-body {
  padding: 22px 24px;
}

/* ==========================================================================
   1. SONG CATALOG (LEFT PANEL)
   ========================================================================== */
.song-catalog-panel {
  display: flex;
  flex-direction: column;
}

.catalog-search-wrap {
  margin-bottom: 16px;
  position: relative;
}

.catalog-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 38px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-normal);
}

.catalog-search-input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 12px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Song Items List */
.song-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.song-cards-list::-webkit-scrollbar {
  width: 5px;
}
.song-cards-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.song-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.song-item-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition-normal);
}

.song-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(3px);
}

.song-item-card.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
  border-color: var(--gold-500);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 16px var(--gold-glow-subtle);
}

.song-item-card.active::before {
  background: var(--gold-400);
}

.song-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.song-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.song-item-blocks-badge {
  font-size: 0.72rem;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.song-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Custom Folder Loader in Catalog */
.catalog-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

.btn-catalog-load {
  flex: 1;
  font-size: 0.82rem;
  padding: 8px 12px;
  justify-content: center;
}

/* ==========================================================================
   2. SONG CONFIGURATOR (RIGHT PANEL)
   ========================================================================== */
.configurator-panel {
  display: flex;
  flex-direction: column;
}

.selected-song-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.3));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.banner-left h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.banner-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.total-time-badge {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-300);
  text-shadow: 0 0 12px var(--gold-glow);
}

.total-time-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Verse Repeat Controls */
.config-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.config-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.config-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-card-header label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Interactive Number Counter */
.counter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-counter {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.btn-counter:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-400);
  color: var(--gold-200);
}

.counter-value-display {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Quick Verse Preset Pills */
.preset-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-quick);
}

.preset-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.preset-pill-btn.active {
  background: var(--gold-500);
  color: var(--text-dark);
  font-weight: 700;
  border-color: var(--gold-400);
}

/* Sub-sections within Combined Tuning Card (Tonacja & Tempo) */
.tuning-sub-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tuning-sub-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tuning-sub-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.tuning-sub-hint {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.tuning-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 3px 0;
}

.btn-counter-sm {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

.counter-value-display.counter-sm {
  font-size: 1.15rem;
  padding: 6px 14px;
}

.preset-pills.mini {
  gap: 4px;
}

.preset-pills.mini .preset-pill-btn {
  padding: 3px 8px;
  font-size: 0.74rem;
}

/* Switch / Toggles */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toggle-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
}

.toggle-sublabel {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Checkbox Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-normal);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition-normal);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--gold-500);
  box-shadow: 0 0 10px var(--gold-glow);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   3. VISUAL PIPELINE SEQUENCE (LOWER PANEL)
   ========================================================================== */
.pipeline-panel {
  margin-top: 8px;
}

.pipeline-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 8px 24px 8px;
  scroll-behavior: smooth;
}

.pipeline-scroll-wrap::-webkit-scrollbar {
  height: 8px;
}
.pipeline-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.pipeline-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
.pipeline-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

/* Arrow separator between pipeline cards */
.pipeline-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Block Card in Pipeline */
.block-card {
  min-width: 170px;
  max-width: 190px;
  flex-shrink: 0;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.block-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Card Role Colors */
.block-card[data-role="wstep"] {
  border-top: 4px solid var(--color-wstep);
}
.block-card[data-role="zwrotka"] {
  border-top: 4px solid var(--color-zwrotka);
}
.block-card[data-role="refren"] {
  border-top: 4px solid var(--color-refren);
}
.block-card[data-role="zakonczenie"] {
  border-top: 4px solid var(--color-zakonczenie);
}

/* Active Playing Block State */
.block-card.playing {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--gold-400);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: scale(1.05) translateY(-4px);
  z-index: 10;
}

.block-card.completed {
  opacity: 0.55;
  filter: grayscale(0.4);
}

/* Card Elements */
.block-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.block-duration-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.block-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.block-card-status {
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.block-card.playing .block-card-status {
  color: var(--gold-300);
}

/* Mini Waveform Animation inside playing card */
.mini-wave-anim {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.block-card.playing .mini-wave-anim {
  display: flex;
}

.wave-bar {
  width: 2px;
  background: var(--gold-400);
  border-radius: 1px;
  animation: wavePulse 0.8s ease-in-out infinite alternate;
}
.wave-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Individual card progress bar */
.card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold-400);
  width: 0%;
  transition: width 0.1s linear;
}

/* ==========================================================================
   4. PLAYER CONSOLE BAR (STICKY BOTTOM)
   ========================================================================== */
.player-bar-glass {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.75);
  z-index: 100;
  padding: 12px 32px;
}

.player-bar-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Left: Now Playing Status */
.player-status-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
}

.player-status-disc {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.6));
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-400);
}

.player-status-disc.spin {
  animation: discSpin 8s linear infinite;
  box-shadow: 0 0 16px var(--gold-glow);
}

@keyframes discSpin {
  100% { transform: rotate(360deg); }
}

.player-track-texts {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-track-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.player-track-fragment {
  font-size: 0.78rem;
  color: var(--gold-300);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Center: Controls & Global Progress */
.player-center-controls {
  flex: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-buttons-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.btn-play-hero {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border: none;
  color: var(--text-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: var(--transition-normal);
}

.btn-play-hero:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.55);
}

.btn-player-action {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-quick);
}

.btn-player-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-fade-out {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #FB923C;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-normal);
}

.btn-fade-out:hover {
  background: rgba(249, 115, 22, 0.25);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

/* Global Progress Bar */
.global-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.global-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.global-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-500), var(--gold-300));
  width: 0%;
  border-radius: 3px;
  transition: width 0.15s linear;
}

/* Right: Reverb / Mode Indicator */
.player-right-extras {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  justify-content: flex-end;
}

/* ==========================================================================
   5. SONG STRUCTURE & LIVE DYNAMIC ADDITION ENHANCEMENTS
   ========================================================================== */

/* Structure Formula in Song Banner */
.banner-structure-formula {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-200);
}

.banner-structure-formula .formula-icon {
  font-size: 0.85rem;
}

.banner-structure-formula .formula-bracket {
  color: var(--gold-400);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  border: 1px dashed rgba(212, 175, 55, 0.4);
}

/* Live Add Button (for adding segment in brackets on the fly) */
.btn-live-add {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--gold-400);
  color: var(--gold-100);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

.btn-live-add:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.15));
  border-color: var(--gold-300);
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--gold-glow);
  color: #FFFFFF;
}

.btn-live-add:active {
  transform: translateY(1px);
}

.btn-live-add.full-width {
  width: 100%;
}

/* Live Remove Button (for subtracting future repeat segment) */
.btn-live-remove {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-normal);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.btn-live-remove:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #F87171;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

.btn-live-remove:active {
  transform: translateY(1px);
}

/* Live Jump to Outro Button (Finish after current block) */
.btn-jump-outro {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #E9D5FF;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.btn-jump-outro:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32), rgba(168, 85, 247, 0.12));
  border-color: #C084FC;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.btn-jump-outro:active {
  transform: translateY(1px);
}

/* Pulse animation when newly added in pipeline */
@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    box-shadow: 0 0 35px #10B981;
  }
  60% {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 0 25px var(--gold-glow);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 transparent;
  }
}

.block-card.just-added {
  animation: cardPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-color: var(--gold-300) !important;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 84px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast-msg {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-500);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for Player Bar */
@media (max-width: 1250px) {
  .player-bar-container {
    gap: 16px;
  }
  .player-status-info {
    min-width: 200px;
  }
  .btn-live-add, .btn-live-remove, .btn-jump-outro {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 1024px) {
  .player-bar-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .player-right-extras {
    display: none;
  }
}

/* Locked Tuning Controls during active audio playback to guarantee 0ms gapless transition */
.config-card.tuning-card.tuning-locked {
  position: relative;
  opacity: 0.65;
  transition: opacity var(--transition-normal);
}

.config-card.tuning-card.tuning-locked button {
  cursor: not-allowed;
}

.config-card.tuning-card.tuning-locked::after {
  content: "🔒 Zablokowane podczas gry (0 ms przerwy)";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
  animation: fadeIn 0.25s ease;
}

