/* Volume Control Styling */
.dreamtonics.bar .player_volume_new {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 4px 8px;
    padding-right:33px;
    border-radius: 8px;
    pointer-events: auto;
    position: absolute;
    left: 87%;
    z-index: 100;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Hover and dragging states handled by child elements */
  
  .dreamtonics.bar .player__volume_icon_new {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    pointer-events: none;
  }
  
  .dreamtonics.bar .player__volume_icon_new img {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }
  
  .dreamtonics.bar .player_volume_new:hover .player__volume_icon_new img,
  .dreamtonics.bar .player_volume_new.is-dragging .player__volume_icon_new img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(96%) saturate(1350%) hue-rotate(35deg) brightness(105%) contrast(105%);
    opacity: 1;
  }
  
  .dreamtonics.bar .player__volume_bar_new {
    flex: 1;
    height: 4px;
    position: relative;
    cursor: pointer;
    min-width: 60px;
    overflow: visible;
    z-index: 101;
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    /* Extend clickable area to cover thumb when at edges */
    padding: 0 6px;
    margin: 0 -6px;
    box-sizing: content-box;
  }
  
  .dreamtonics.bar .player__volume_bar_new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #454545;
    border-radius: 2px;
    z-index: -1;
  }
  
  .dreamtonics.bar .player__volume_bar_fill_new {
    height: 100%;
    background-color: #b6b6b6;
    border-radius: 2px;
    width: 40%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: width, background-color;
    transition: background-color 0.3s ease;
  }
  
  /* Thumb indicator - real div element */
  .dreamtonics.bar .player__volume_bar_thumb_new {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #79D825;
    border-radius: 50%;
    z-index: 102;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    will-change: left, opacity;
    transition: opacity 0.3s ease;
  }
  
  .dreamtonics.bar .player_volume_new:hover .player__volume_bar_fill_new,
  .dreamtonics.bar .player_volume_new.is-dragging .player__volume_bar_fill_new {
    background-color: #79D825;
  }
  
  .dreamtonics.bar .player_volume_new:hover .player__volume_bar_thumb_new,
  .dreamtonics.bar .player_volume_new.is-dragging .player__volume_bar_thumb_new {
    opacity: 1;
  }

  /* Mobile styles - center volume control under play controls */
  @media (max-width: 991px) {
    .dreamtonics.bar .player__controls {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .dreamtonics.bar .player_volume_new {
      position: static;
      left: auto;
      top: auto;
      transform: none;
      padding-right: 8px;
      width: 100%;
      max-width: 109px;
      justify-content: center;
      margin-left:-20px
    }
  }