/* Layout helpers */
.audio-component .flex{display:-webkit-flex;display:flex;}
.audio-component .flex-wrap{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;}
.audio-component .flex-align{-webkit-align-items:center;align-items:center;}
.audio-component .w-full{width:100%;}

/* Player specific styles */
.audio-component #simp {
    font-size: 14px;
    text-align: initial;
    line-height: initial;
    background: #ebf0ff;
    color: #3e25e0;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dbe2ff;
}

/* Album section */
.audio-component #simp .simp-album {
    padding: 20px 25px;
    max-width: 600px;
}

.audio-component #simp .simp-album .simp-cover {
    margin: 0 20px 20px 0px;
}

.audio-component #simp .simp-album .simp-cover svg {
    width: 80px;
    height: 80px;
    color: #1c1452;
}

.audio-component #simp .simp-album .simp-info {
    display: block;
    max-width: 600px;
}

.audio-component #simp .simp-album .simp-title {
    font-size: 130%;
    font-weight: bold;
    color: #1c1452;
    padding: 5px 0;
    hyphens: auto;
}

.audio-component #simp .simp-album .simp-artist {
    font-size: 90%;
    color: #311fb4;
    hyphens: auto;
}

/* Controls section */
.audio-component #simp .simp-controls {
    padding: 15px;
    background-color: #dbe2ff;
}

.audio-component #simp .simp-controls button {
    font-size: 130%;
    width: 32px;
    height: 32px;
    background: none;
    color: #1c1452;
    padding: 4px;
    cursor: pointer;
    border: 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG icons in buttons */
.audio-component #simp .simp-controls button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.audio-component #simp .simp-controls button[disabled] {
    color: #c4d0ff;
    cursor: initial;
}

.audio-component #simp .simp-controls button:not([disabled]):hover {
    background: #3f25e0;
    color: #fff;
}

/* Control groups */
.audio-component #simp .simp-controls .simp-tracker,
.audio-component #simp .simp-controls .simp-volume {
    flex: 1;
    margin-left: 10px;
    position: relative;
    min-width: 70px;
}

.audio-component #simp .simp-controls .simp-volume {
    max-width: 110px;
}

/* Progress bar and buffer */
.audio-component #simp .simp-controls .simp-buffer {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 100px;
}

.audio-component #simp .simp-controls .simp-loading .simp-buffer {
    -webkit-animation: audio-progress 1s linear infinite;
    animation: audio-progress 1s linear infinite;
    background-image: linear-gradient(-45deg, #1c1452 25%, transparent 25%, transparent 50%, #1c1452 50%, #1c1452 75%, transparent 75%, transparent);
    background-repeat: repeat-x;
    background-size: 25px 25px;
    color: transparent;
}

/* Range inputs */
.audio-component #simp .simp-controls input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    height: 19px;
    margin: 0;
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

.audio-component #simp .simp-controls input[type=range]::-webkit-slider-runnable-track {
    background: rgba(62,37,224,.66);
    height: 5px;
    border-radius: 2.5px;
    transition: box-shadow .3s ease;
    position: relative;
}

.audio-component #simp .simp-controls input[type=range]::-moz-range-track {
    background: rgba(62,37,224,.66);
    height: 5px;
    border-radius: 2.5px;
    transition: box-shadow .3s ease;
    position: relative;
}

.audio-component #simp .simp-controls input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #fff;
    height: 13px;
    width: 13px;
    margin-top: -4px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 0 0 1px rgba(47,52,61,.2);
}

.audio-component #simp .simp-controls input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    background: #fff;
    height: 13px;
    width: 13px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 0 0 1px rgba(47,52,61,.2);
}

/* Time and other controls */
.audio-component #simp .simp-controls .simp-time,
.audio-component #simp .simp-controls .simp-others {
    margin-left: 10px;
    color: #1c1452;
    gap: 5px;
}

.audio-component #simp .simp-controls .simp-others .simp-active {
    background: #dbe2ff;
}

/* Playlist styles */
.audio-component #simp .simp-playlist {
    background: #ebf0ff;
}

.audio-component #simp ul {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    max-height: 245px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: #ebf0ff #2f3841;
}

.audio-component #simp ul li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin: 0;
    padding: 14px 25px;
    cursor: pointer;
    color: #311fb4;
}

.audio-component #simp ul li:nth-child(odd) {
    background: #dbe2ff;
}

.audio-component #simp ul li:hover {
    background: #ebf0ff;
}

.audio-component #simp ul li.simp-active {
    background: #1c1452;
    color: #fff;
}

.audio-component #simp ul li .simp-desc {
    font-size: 90%;
    opacity: .5;
    margin-left: 5px;
    font-style: italic;
}

/* Footer */
.audio-component #simp .simp-footer {
    padding: 10px 10px 12px;
    font-size: 90%;
    text-align: center;
    background: #1c1452;
    color: #ebf0ff;
}

.audio-component #simp .simp-footer a {
    color: #ebf0ff;
}

/* Display transitions */
.audio-component #simp .audio-component .simp-display {
    overflow: hidden;
    max-height: 650px;
    transition: max-height .5s ease-in-out;
    background: #ebf0ff;
}

.audio-component #simp .audio-component .simp-hide {
    max-height: 0;
}
/* Add these styles to your CSS */
.audio-component .simp-shide {
    display: flex;
    gap: 5px;
}

.audio-component .simp-shide button {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-component .simp-shide button svg {
    width: 16px;
    height: 16px;
}

/* Ensure smooth transitions */
.audio-component .simp-display {
    transition: max-height 0.3s ease-in-out;
}

.audio-component .simp-hide {
    max-height: 0 !important;
    overflow: hidden;
}

/* Auto Play button styles */
.audio-component .simp-controls button.simp-plext {
    transition: all 0.3s ease;
}

.audio-component .simp-controls button.simp-plext.simp-active {
    color: #3e25e0; /* or your preferred active color */
    background-color: rgba(62, 37, 224, 0.1); /* slight background highlight */
}

.audio-component .simp-controls button:not([disabled]):hover {
    background: rgba(62, 37, 224, 0.1);
}

.audio-component .simp-controls button.simp-active:not([disabled]):hover {
    background: rgba(62, 37, 224, 0.2);
}

/* Auto Play button styles */
.audio-component .simp-controls button.simp-plext {
    position: relative;
    transition: all 0.2s ease;
}

.audio-component .simp-controls button.simp-plext.simp-active {
    color: #3e25e0;
    background-color: rgba(62, 37, 224, 0.1);
}

.audio-component .simp-controls button.simp-plext:not([disabled]):hover {
    background: rgba(62, 37, 224, 0.15);
}

.audio-component .simp-controls button.simp-active:not([disabled]):hover {
    background: rgba(62, 37, 224, 0.2);
}
/* Auto Play button styles */
.audio-component .simp-controls button.simp-plext {
    position: relative;
    transition: all 0.2s ease;
}

.audio-component .simp-controls button.simp-plext.simp-active {
    color: #3e25e0;
    background-color: rgba(62, 37, 224, 0.1);
}

.audio-component .simp-controls button.simp-plext:not([disabled]):hover {
    background: rgba(62, 37, 224, 0.15);
}

.audio-component .simp-controls button.simp-active:not([disabled]):hover {
    background: rgba(62, 37, 224, 0.2);
}

/* Animation keyframes */
@keyframes audio-progress {
    to {
        background-position: 25px 0;
    }
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .audio-component #simp .simp-controls .simp-volume,
    .audio-component #simp .simp-controls .simp-others {
        display: none;
    }

    .audio-component #simp .simp-controls .simp-time {
        margin-right: 10px;
    }
}

@media screen and (max-width: 370px) {
    .audio-component #simp .simp-time .simp-slash,
    .audio-component #simp .simp-time .end-time {
        display: none;
    }
}
