.waveform-container {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.night .waveform-container{
    background-color: #383838;
}

#waveform {
    width: 100%;
    height: 180px;
    background-color: #fff;
    cursor: pointer;
}

.selection-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 180px;
    pointer-events: none;
}

.selection-area {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.6), rgba(46, 204, 113, 0.6));
    border-left: 1px solid #000496;
    border-right: 1px solid #000496;
    pointer-events: none;
}

.selection-handle-left, .selection-handle-right {
    position: absolute;
    top: 25%;
    width: 4px;
    height: 50%;
    background: linear-gradient(to bottom, #9C27B0, #FF5722);
    cursor: ew-resize;
    pointer-events: all;
    z-index: 10;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.selection-handle-left {
    left: -3px;
}

.selection-handle-right {
    right: -3px;
}

.playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #FF9800, #009688);
    pointer-events: none;
    z-index: 5;
}

.timeline {
    height: 1.2rem;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.night .timeline{
    background-color: #383838;
}

.timeline>div {
    position: absolute;
    top: 0;
    font-size: 0.5rem;
    color: #7f8c8d;
}

.timeline>div::before{
    content: '';
    display: block;
    height: 0.3rem;
    width: 1px;
    background-color: #888;
    position: absolute;
    left: 0;
}

.night .timeline>div::before{
    background-color: #666;
}

.timeline>div:nth-child(5n + 1)::before{
    height: 1rem;
}

.timeline>div span{
    position: absolute;
    top: 0.5rem;
    left: 0.25rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.auresdiv{
    margin-top: 0.75rem;
    display: none;
}

.audatas{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    height: 2rem;
    line-height: 2rem;
    border: 1px solid #ecf0f8;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 0 0.5rem;
    display: none;
}

.audatas>div{
    width: calc(100%/3);
    height: 2rem;
    line-height: 2rem;
    float: left;
    text-align: center;
}

.audatas>div span{
    width: calc(100% - 3rem);
    overflow: hidden;
}

.night .audatas{
    border: 1px solid #444;
    color: #aaa;
}

.sedatas{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 2rem;
    line-height: 2rem;
    border: 1px solid #06b672;
    padding: 0 0.5rem;
    color: #fff;
    background-color: #06b672;
    border-radius: 6px;
    margin-top: 0.75rem;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.aubutdivs{
    border: 1px solid #e8e8fd;
    padding: 0.25rem;
    margin-top: 0.75rem;
    border-radius: 6px;
}

.night .aubutdivs{
    border:1px solid #444;
}

.aubutdivs div{
    display: inline-block;
    padding: 0.25rem;
}

.aubutdivs span{
    display: block;
    text-align: center;
    height: 1.6rem;
    line-height: 1.6rem;
    width: 4.5rem;
    border-radius: 3px;
    border: 1px solid #e8e8fd;
    cursor: pointer;
}

.night .aubutdivs span{
    border:1px solid #444;
    color: #aaa;
}

.aubutdivs select{
    text-align: center;
    height: 1.6rem;
    line-height: 1.6rem;
    width: 4.5rem;
    border-radius: 3px;
    border: 1px solid #e8e8fd;
    vertical-align: 0.5px;
}
.night .aubutdivs select{
    background-color: #242627;
    color: #aaa;
    border: 1px solid #444;
}

@media screen and (max-width: 767px){
    .audatas{
        display: block;
        height: unset;
        line-height: 1.5rem;
        padding: 0.5rem 0.6rem;
    }
    .audatas>div{
        width: 100%;
        text-align: left;
    }
}

@media screen and (max-width: 750px){
    .timeline{
        display: none;
    }
}

@media screen and (max-width: 454px){
    .aubutdivs div {
        width: calc(100%/4);
        padding: 0.25rem;
        float: left;
    }
    .aubutdivs div span,.aubutdivs div select{
        width: 100%;
    }

    .waveform-container {
        padding: 0px;
    }
    .selection-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
}

@media screen and (max-width: 390px){
   
    .sedatas{
        display: block;
        height: unset;
        line-height: 1.5rem;
        padding: 0.5rem 0.6rem;
    }
    .sedatas>div {
        width: 100%;
    }
}

@media screen and (max-width: 340px){
    .aubutdivs div {
        width: calc(100%/2);
    }
}