/* =========================
   DEFAULT (DESKTOP)
========================= */

.album-header {
    text-align: left;
}

    .album-header .main-title {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
    }

    .album-header .sub-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .album-header .harari-title {
        font-size: 18px;
        opacity: 0.85;
    }

.numberCircle {
    font-size: 16px;
    padding: 8px 8px;
}

.u-heading-v2__title {
    font-size: 32px !important;
    font-weight: 700;
    line-height: 1.2;
}

    .u-heading-v2__title h4,
    .u-heading-v2__title div {
        font-size: 18px;
    }

.numberCircle {
    font-size: 14px;
}

/* =========================================
   MINI PLAYER
========================================= */

.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #121212;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.08);
}

    .mini-player.hidden {
        display: none;
    }

/* =========================================
   LEFT
========================================= */

.mini-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

#miniArt {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-player.playing #miniArt {
    transform: scale(1.05);
}

.mini-info {
    display: flex;
    flex-direction: column;
}

#miniTitle {
    font-size: 13px;
    font-weight: 600;
}

#miniArtist {
    font-size: 11px;
    color: #aaa;
}

/* =========================================
   CENTER
========================================= */

.mini-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

    /* FIXED BUTTON BASE (IMPORTANT FOR SAFARI) */
    .mini-center button,
    .play-btn {
        -webkit-appearance: none;
        appearance: none;
        border: none;
        background: #1db954;
        color: #000;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        line-height: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s ease, background 0.2s ease;
        transform: translateZ(0);
        will-change: transform;
    }

        /* SVG ICON FIX (CRITICAL FOR iOS) */
        .mini-center button svg,
        .play-btn svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
            display: block;
        }

        .mini-center button:hover,
        .play-btn:hover {
            transform: scale(1.08);
        }

/* disable hover glitch on touch devices */
@media (hover: none) {
    .mini-center button:hover,
    .play-btn:hover {
        transform: none;
    }
}

/* =========================================
   PROGRESS BAR
========================================= */

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 320px;
    max-width: 40vw;
}

#currentTime,
#durationTime {
    font-size: 11px;
    color: #aaa;
    min-width: 35px;
}

#progressBar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    top: -1px;
    outline: none;
}

    /* TRACK */
    #progressBar::-webkit-slider-runnable-track {
        height: 4px;
        background: #333;
        border-radius: 999px;
    }

    /* THUMB */
    #progressBar::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #1db954;
        margin-top: -3px;
    }

    /* FIREFOX */
    #progressBar::-moz-range-track {
        height: 4px;
        background: #333;
        border-radius: 999px;
    }

    #progressBar::-moz-range-thumb {
        width: 10px;
        height: 10px;
        border: none;
        border-radius: 50%;
        background: #1db954;
    }

/* =========================================
   PLAYLIST
========================================= */

.spotify-row {
    display: grid;
    grid-template-columns: 1fr 6fr 2fr 1fr;
    justify-content: start;
    padding: 10px 16px;
    border-radius: 6px;
    transition: 0.2s;
    cursor: pointer;
    line-height: 1.2;
}

    .spotify-row:hover {
        background: rgba(29,185,84,0.08);
    }

    .spotify-row.playing {
        background: rgba(29,185,84,0.12);
    }

/* NUMBER */
.track-number {
    font-size: 13px;
    color: #aaa;
    text-align: left;
    position: relative;
}

/* Hide track number text when EQ is active */
.spotify-row.active-eq .track-number {
    color: transparent;
}

/* INFO */
.track-info {
    display: flex;
    flex-direction: column;
}

/* TITLE */
.track-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* META */
.track-meta {
    font-size: 12px;
    color: #888;
}

/* DURATION */
.track-duration {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ACTION */
.track-actions {
    display: flex;
    justify-content: right;
    opacity: 0;
    transition: 0.2s;
}

.spotify-row:hover .track-actions {
    opacity: 1;
}

/* PLAY BUTTON (inherits fixed base above) */
.play-btn {
    width: 34px;
    height: 34px;
}

/* =========================================
   EQ ANIMATION
========================================= */

.eq {
    display: none;
    height: 14px;
    align-items: flex-end;
    gap: 2px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.spotify-row.active-eq .eq {
    display: inline-flex;
}

.eq span {
    width: 2px;
    height: 3px;
    background: #1db954;
    border-radius: 1px;
    transform-origin: bottom;
    animation: eq 0.9s infinite ease-in-out;
}

    .eq span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .eq span:nth-child(3) {
        animation-delay: 0.4s;
    }

    .eq span:nth-child(4) {
        animation-delay: 0.1s;
    }

    .eq span:nth-child(5) {
        animation-delay: 0.3s;
    }

@keyframes eq {
    0% {
        height: 3px;
    }

    50% {
        height: 14px;
    }

    100% {
        height: 3px;
    }
}

/* =========================================
   AUDIO
========================================= */

#audioPlayer {
    display: none;
}

/* =========================================
   MOBILE
========================================= */



@media (max-width: 768px) {

    .spotify-row {
        grid-template-columns: 1fr 8fr 1fr;
        gap: 8px;
    }

    .album-header {
        margin-top: 10px !important;
        text-align: center;
    }

        .album-header .main-title {
            font-size: 24px;
            font-weight: 700;
            line-height: 1.2;
            /*padding-bottom: 6px;*/
        }

        .album-header .sub-title {
            font-size: 15px;
            line-height: 1.3;
            padding: 4px 0;
        }

        .album-header .harari-title {
            font-size: 14px;
            line-height: 1.3;
            padding: 4px 0 8px;
            opacity: 0.9;
        }

        .album-header h4 {
            margin-top: 10px;
        }


    .mobile-hide {
        display: none !important;
    }

    .mini-player {
        height: auto;
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .mini-left {
        width: 100%;
        min-width: 0;
    }

    .mini-center {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .progress-container {
        width: 100%;
        max-width: 100%;
    }

    #miniArt {
        width: 42px;
        height: 42px;
    }

    #currentTime,
    #durationTime {
        font-size: 10px;
    }

    #playBtn,
    #prevBtn,
    #nextBtn {
        width: 40px;
        height: 40px;
    }

    #waveCanvas {
        display: none;
    }
}


/*.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #121212;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.08);
}

    .mini-player.hidden {
        display: none;
    }*/

/* =========================================
   LEFT
========================================= */

/*.mini-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

#miniArt {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-player.playing #miniArt {
    transform: scale(1.05);
}

.mini-info {
    display: flex;
    flex-direction: column;
}

#miniTitle {
    font-size: 13px;
    font-weight: 600;
}

#miniArtist {
    font-size: 11px;
    color: #aaa;
}*/

/* =========================================
   CENTER
========================================= */

/*.mini-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

    .mini-center button {
        background: #1db954;
        border: none;
        color: black;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.2s;
    }

        .mini-center button:hover {
            transform: scale(1.08);
        }*/

/* =========================================
   PROGRESS BAR
========================================= */

/*.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 320px;
    max-width: 40vw;
}

#currentTime,
#durationTime {
    font-size: 11px;
    color: #aaa;
    min-width: 35px;
}

#progressBar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    top: -1px;
}*/

    /* TRACK */

    /*#progressBar::-webkit-slider-runnable-track {
        height: 4px;
        background: #333;
        border-radius: 999px;
    }*/

    /* THUMB */

    /*#progressBar::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #1db954;
        margin-top: -3px;
    }*/

    /* Firefox */

    /*#progressBar::-moz-range-track {
        height: 4px;
        background: #333;
        border-radius: 999px;
    }

    #progressBar::-moz-range-thumb {
        width: 10px;
        height: 10px;
        border: none;
        border-radius: 50%;
        background: #1db954;
    }*/

/* =========================================
   PLAYLIST
========================================= */

/*.spotify-row {
    display: grid;
    grid-template-columns: 40px 1fr 80px 60px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    transition: 0.2s;
    cursor: pointer;
    line-height: 1.2;
}

    .spotify-row:hover {
        background: rgba(29,185,84,0.08);
    }

    .spotify-row.playing {
        background: rgba(29,185,84,0.12);
    }*/

/* NUMBER */

/*.track-number {
    font-size: 13px;
    color: #aaa;
    text-align: center;
}*/

/* MAIN */

/*.track-main,
.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}*/

/* TITLE */

/*.track-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}*/

/* SUBTEXT */

/*.track-meta {
    font-size: 12px;
    color: #888;
}*/

/* DURATION */

/*.track-duration {
    font-size: 13px;
    color: #aaa;
    text-align: right;
}*/

body {
    overflow-x: hidden;
}

.spotify-row > * {
    min-width: 0;
}

.track-title, .track-meta, .track-duration {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
