/* =========================
   PLAYER CONTAINER
========================= */
.dj-player {
    width: 100%;
    max-width: 1000px;
    display: flex;
    gap: 12px;
    background: #0a0a0a;
    padding-top: 8px;
    padding-bottom: 9px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    color: #ddd;
}
/* =========================
   ARTWORK
========================= */
.dj-art img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}
/* =========================
   CONTENT
========================= */
.dj-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* title */
.dj-title {
    font-weight: 600;
    margin-bottom: 6px;
}
/* buttons under title */
.dj-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 0px;
}
.dj-buttons button,
.dj-buttons a {
    background: #1a1a1a;
    color: #ff0033;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.dj-buttons button:hover,
.dj-buttons a:hover {
    background: #ff0033;
    color: #fff;
}
/* play active */
.play.playing {
    background: #ff0033;
    color: #fff;
}

/* rewind & fastforward square buttons */
.dj-buttons .rewind,
.dj-buttons .fastforward {
    width: auto;
    height: auto;
    padding: 6px 10px;
}

/* Desktop rewind icon */
.dj-buttons .rewind {
    font-size: 0;
}

.dj-buttons .rewind::before {
    content: url('https://img.icons8.com/?size=20&id=qzh4ibkQnhlP&format=png&color=ff0000');
    display: inline-block;
    object-fit: contain;
    width: 20px;
    height: 20px;
}

/* Change icon color to white on hover */
.dj-buttons .rewind:hover::before,
.dj-buttons .rewind:active::before {
    filter: brightness(0) saturate(100%) invert(1); /* Invert to make it white */
}

/* Desktop fastforward icon */
.dj-buttons .fastforward {
    font-size: 0;
}

.dj-buttons .fastforward::before {
    content: url('https://img.icons8.com/?size=20&id=riHUJhXYvEjq&format=png&color=ff0000');
    display: inline-block;
    object-fit: contain;
    width: 20px;
    height: 20px;
}

/* Change icon color to white on hover */
.dj-buttons .fastforward:hover::before,
.dj-buttons .fastforward:active::before {
    filter: brightness(0) saturate(100%) invert(1); /* Invert to make it white */
}

/* Desktop volume icon */
.dj-buttons .volume {
    font-size: 0;
}

.dj-buttons .volume::before {
    content: url('https://img.icons8.com/?size=20&id=e84LOziCFhNn&format=png&color=ff0000');
    display: inline-block;
    object-fit: contain;
    width: 20px;
    height: 20px;
}

/* Change icon color to white on hover */
.dj-buttons .volume:hover::before,
.dj-buttons .volume:active::before {
    filter: brightness(0) saturate(100%) invert(1); /* Invert to make it white */
}

/* volume button & slider wrapper */

.volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dj-buttons .volume {
    width: auto;
    height: auto;
    padding: 10px 10px;
    flex-shrink: 0;
}

.volume-slider-container {
    position: absolute;
    width: 200px;
    bottom: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    padding: 10px 8px;
    border-radius: 4px;
    display: none;
    border: 1px solid #333;
    z-index: 1000;
    pointer-events: none;
}

.volume-slider-container.active {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.volume-slider {
    width: 200px;
    height: 30px;
    background:#1a1a1a;
    cursor: pointer;
    -webkit-appearance: slider-horizontal;
    appearance: slider-horizontal;

    transform-origin: center;
    margin: 75px 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: slider-thumb;
    appearance: slider-thumb;
    background: #ff0033;
    border: #1a1a1a;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    background: #ff0033;
    border: none;
    cursor: pointer;
}
/* =========================
   WAVEFORM
========================= */
.dj-wave-wrap {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 6px;
}
/* placeholder stays behind */
.dj-wave-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 4px;
    z-index: 1;
}
/* waveform on top */
.dj-wave {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
}
/* bars */
.dj-wave div {
    display: inline-block;
    vertical-align: bottom;
    background: #333;
}
/* =========================
   PROGRESS BAR
========================= */
.dj-progress {
    position: relative;
    height: 6px;
    background: #222;
    border-radius: 3px;
    margin-bottom: 6px;
    cursor: pointer;
}
.dj-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ff0033;
    border-radius: 3px;
}
.dj-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #ff0033;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
/* =========================
   TIME
========================= */
.dj-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}
/* =========================
   IOS FIX
========================= */
.play {
    -webkit-appearance: none;
    appearance: none;
}

/* Desktop play button */

.dj-buttons .play {
    font-size: inherit;
}

.dj-buttons .play::before {
    content: "▶";
    font-size: 14px;
}

.dj-buttons .play.playing::before {
    content: "❚❚";
    font-size: 14px;
}

/* =========================
   📱 MOBILE
========================= */
@media (max-width: 600px) {
    .dj-player {
        flex-wrap: wrap;
        max-width: calc(100% - 20px);
        gap: 0px;
        padding: 5px;
        flex-direction: column-reverse;
    }
    .dj-art img {
        display: none;
    }
    .dj-content {
        flex: 1;
    }
    .dj-title {
        font-size: 14px;
    }
    /* buttons become icons */
    .dj-buttons button,
    .dj-buttons a {
        width: 34px;
        height: 34px;
        padding: 0;
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .dj-buttons .play::before {
        content: "▶";
        font-size: 14px;
    }
    .dj-buttons .play.playing::before {
        content: "❚❚";
    }
       .dj-buttons .share::before {
        content: url('https://img.icons8.com/?size=20&id=BOk0zmFSpkY3&format=png&color=ff0000');
        display: inline-block;
        object-fit: contain;
    }
    
    /* Change icon color to white on hover */
.dj-buttons .share:hover::before,
.dj-buttons .share:active::before {
    filter: brightness(0) saturate(100%) invert(1); /* Invert to make it white */
}
    .dj-buttons .rewind::before {
        content: url('https://img.icons8.com/?size=20&id=qzh4ibkQnhlP&format=png&color=ff0000');
        display: inline-block;
        object-fit: contain;
    }
    .dj-buttons .fastforward::before {
        content: url('https://img.icons8.com/?size=20&id=riHUJhXYvEjq&format=png&color=ff0000');
        display: inline-block;
        object-fit: contain;
    }
    

    .dj-buttons a::before {
        content: url('https://img.icons8.com/?size=20&id=KS7sGJFYB8ZO&format=png&color=ff0000');
        display: inline-block;
        object-fit: contain;
    }
    
    /* Change icon color to white on hover */
.dj-buttons a:hover::before,
.dj-buttons a:active::before {
    filter: brightness(0) saturate(100%) invert(1); /* Invert to make it white */
}
    
    .volume-wrapper {
        display: none;
    }
    

    
    /* waveform full width under everything */
    .dj-wave-wrap {
        width: 100%;
        height: 60px;
    }
    .dj-wave,
    .dj-wave-placeholder {
        height: 50px;
    }
    .dj-progress {
        width: 100%;
    }
    .dj-time {
        font-size: 11px;
    }
    
    
}

/* Hide rewind & fastforward until activated */
.dj-player.hide-skip .rewind,
.dj-player.hide-skip .fastforward {
    display: none;
}

/* =========================
   📲 TABLET
========================= */
@media (max-width: 1024px) {
    .dj-player {
        max-width: calc(100% - 30px);
    }
    
        .volume-wrapper {
        display: none;
    }
    
}

@media (max-width: 1024px) {
    .dj-player .rewind,
    .dj-player .fastforward {
        display: none;
    }

    .dj-player.show-skip .rewind,
    .dj-player.show-skip .fastforward {
        display: flex;
    }
}