  
  .track {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    padding: 0px;
    border-radius: 3px;
    margin-bottom: 20px;
  }

  
  .controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
  }
  .hide{
    display: none;
  }
  #cropsfdinpp{
    display: flex;
    gap: 7px;
    position: relative;
    top: 1px;
  }
  .mrgbtns {
    background: #4858a2;
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    min-width: 90px;
    cursor: pointer;
    text-align: center;
  }
  #mergercontr{
    padding: 5px 26px;
    user-select: none;
  }
  
  #playAll,#addtrkBtn{
    background: white;
    border: 1px solid #3F51B5;
    color: #3F51B5;
    padding: 7px 18px;
  }
  .crossfadelbl{
    display: flex;
    user-select: none;
    align-items: center;
    gap: 6px;
    font-size: 14px;
  }
  .crossfadelbl input{
    margin: 0;
  }
.topxbtnsm{
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
  
  .wave-wrapper {
    position: relative;
    height: 80px;
  }
  
  .wave-bg{
    height: 80px;
  }
  
  .wave-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
    pointer-events: none;
  
    /* IMPORTANT */
    clip-path: inset(0 100% 0 0);
  }
  

  


  .wave-wrapper {
    position: relative;
  }
  
  /* full overlay */
  .fade-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
  }
  
  /* fade masks */
  .fade-mask {
    position: absolute;
    top: 0;
    
    pointer-events: none;
  }
  .fade-mask {
    filter: blur(1px);
    top: -1px;
    height: calc(100% + 2px);
  }
  
  
  .fade-in-mask {
    background: linear-gradient(
      to right,
      rgba(255,255,255,1),
      rgba(255,255,255,0)
    );
    transform: translateX(5px);
  }
  
  .fade-out-mask {
    background: linear-gradient(
      to left,
      rgba(255,255,255,1),
      rgba(255,255,255,0)
    );
    transform: translateX(-5px);
  }
  ::part(region-handle-right){
    background:  #6366f1 !important;
    border-right:none!important;
    width: 5px!important;
  }
  ::part(region-handle-left){
    background:  #6366f1 !important;
    border-left:none!important;
    width: 5px!important;

  }
  .wave-fg ::part(cursor){
    background-color: #ff5722!important;
  }
  .wave-bg ::part(cursor){
    display: none;
  }


  #tracks > .track:nth-child(1) .wave-bg .fade-layer .fade-in-mask{
    display: none;
  }
 #tracks > .track:last-of-type .wave-bg .fade-layer .fade-out-mask{
  display: none;
 }

::part(region-handle-left)::after,
::part(region-handle-right)::after {
    content: ".\A.\A.";
    white-space: pre;
    width: 6px;
    height: 28px;
    background: #fff8f8;
    position: absolute;
    top: calc(50% - 14px);
    transform: translateX(0);
    border-radius: 2px;
    color: #16a7e6;
    line-height: 6px;
    text-align: center;
}

::part(region-handle-right)::after {
    transform: translateX(-1px);
}
::part(region) {
  min-width: 17px;
}

/* ============================= */
/* Region content (time label)   */
/* ============================= */

::part(region-content) {
  position: absolute;
  left: 50%;
  top: 84%;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.2;
  color: #111827;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  user-select: none;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;        
  max-width: 100%;
  overflow: hidden;
}



.track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
  gap: 10px;
}
.remtrackx{
  cursor: pointer;
}
.track-title {
  font-size: 12px;
  user-select: none;
  color: #1f2937a8;
  padding: 1px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-actions {
  display: flex;
  gap: 4px;
}

.track-btn {
  height: 22px;
  border: none;
  border-radius: 3px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  cursor: pointer;
  line-height: 3px;
  transition: all 0.15s ease;
}

.track-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.track-btn:active {
  transform: scale(0.95);
}

.track-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.result-actions {
  margin-top: 30px;
  padding: 4px;
  display: flex;
  border-radius: 3px;
  background: #f8fafc;
  border: 1px solid #e9e9e9;
  align-items: center;
  justify-content: space-between;

}

.result-actions audio {
 height: 30px;
 width: calc(100% - 170px);
}


.downbtnmrg {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  color: #3f51b5;
  text-decoration: underline;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

@media only screen and (max-width: 900px) {
  .topxbtnsm{
    flex-wrap: wrap;
    justify-content: end;
    gap: 17px;
}
#mergercontr{
  padding: 5px 16px;
}
.crossfadelbl{
  width: 100%;
}

}
