/* ElasticSlider — Vanilla JS port styling (ANI-11). */

.elastic-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.es-wrapper {
  display: flex;
  width: 100%;
  touch-action: none;
  user-select: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.es-root {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 120px;
  flex-grow: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  align-items: center;
  padding: 0.75rem 0;
}
.es-root:active { cursor: grabbing; }

.es-track-wrapper {
  display: flex;
  flex-grow: 1;
  height: 6px;
  transition: height 0.15s ease, margin 0.15s ease, transform 0.05s linear;
}

.es-track {
  position: relative;
  height: 100%;
  flex-grow: 1;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.15);
}

.es-range {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #e50914 0%, #ff4757 100%);
  border-radius: 9999px;
  transition: width 0.05s linear;
}

.es-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease;
}
.es-wrapper:hover .es-icon { color: rgba(255, 255, 255, 0.95); }
.es-icon svg { width: 16px; height: 16px; display: block; }

.es-value {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: none; /* Player'da gizli; standalone kullanım için override edilebilir */
}

.elastic-slider-container.show-value .es-value { display: block; }

@media (prefers-reduced-motion: reduce) {
  .es-wrapper, .es-icon, .es-track-wrapper, .es-range {
    transition: none !important;
  }
}
