::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 2px;
}

.volume-slider {
  width: 64px;
  height: 2px;
  background: #2a2a2a;
  border-radius: 1px;
  appearance: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8a96e;
  cursor: pointer;
}

.progress-track {
  flex: 1;
  height: 2px;
  background: #2a2a2a;
  border-radius: 1px;
  cursor: pointer;
}
.progress-fill { 
  height: 100%; 
  width: 0%; 
  background: #c8a96e; 
  border-radius: 1px;
  pointer-events: none; /* add this */
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeup-0 {
  animation: fadeUp 0.55s ease forwards;
  opacity: 0;
  animation-delay: 0s;
}
.animate-fadeup-1 {
  animation: fadeUp 0.55s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}
.animate-fadeup-2 {
  animation: fadeUp 0.55s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}
.animate-fadeup-3 {
  animation: fadeUp 0.55s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.track-card:hover .track-play-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#transcriptPanel {
  display: none;
}
#transcriptPanel.open {
  display: flex;
}

#sidebarDrawer {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#sidebarDrawer.open {
  transform: translateX(0);
}
#drawerOverlay {
  display: none;
}
#drawerOverlay.open {
  display: block;
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 1024px) {
  .app-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-areas: "sidebar main";
  }
  .app-sidebar {
    grid-area: sidebar;
  }
  .app-main {
    grid-area: main;
  }
}

/* ── Wave animation ── */
.wave-bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 16px;
  width: 28px;
}

.wave-bars span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #c8a96e;
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 40%; animation-delay: 0s;    }
.wave-bars span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.wave-bars span:nth-child(3) { height: 60%; animation-delay: 0.3s;  }
.wave-bars span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.wave-bars span:nth-child(5) { height: 50%; animation-delay: 0.6s;  }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1);   }
}

/* paused state — bars frozen at mid height */
.wave-bars.paused span {
  animation-play-state: paused;
}

/* active track row */
.track-row.active .track-row-index { display: none; }
.track-row.active .wave-bars       { display: flex;  }

.highlight_img  {
  border: 3px solid #8ba888;
}

@font-face {
  font-family: 'Zen Serif';
  src: url('/static/fonts/ZEN-SERIF-Regular.ttf') format('truetype');
}

body {
  font-family: 'Zen Serif', Georgia, serif;
}