/* -- Top Header (scrollbar) ------------------------------------ */#hsp-top-header {    position: fixed;    top: 0;    left: 0;    width: 100%;    height: 30px;    z-index: calc(var(--z-hud) + 2);    opacity: 0;    transform: translateY(-100%);    pointer-events: none;    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);}@media (min-width: 768px) {    #hsp-top-header {        left: 50%;        width: 90%;        max-width: min(100vw, calc(100vh * 9 / 16));        transform: translateX(-50%) translateY(-100%);    }}#hsp-top-header.is-visible {    opacity: 1;    transform: translateY(0);    pointer-events: auto;}@media (min-width: 768px) {    #hsp-top-header.is-visible {        transform: translateX(-50%) translateY(0);    }}@media (max-width: 767.98px) {    #hsp-top-header {        width: 100% !important;        max-width: none !important;    }}.hsp-top-logo {    display: flex;    align-items: center;    text-decoration: none;    opacity: 1;    transform: none;    pointer-events: auto;    position: relative;    top: 5px;}

.hsp-top-logo--beta {    flex-direction: column;    gap: 2px;}.hsp-top-logo .hsp-card-logo {    height: 22px;    width: auto;    filter: brightness(1.1);}
/* -- Hamburger ------------------------------------------------- */.hsp-hamburger {    background: none;    border: none;    cursor: pointer;    width: 28px;    height: 22px;    position: relative;    flex-shrink: 0;    padding: 0;    z-index: 2;}.hsp-hamburger span {    position: absolute;    left: 0;    width: 100%;    height: 2px;    background: var(--h-text-primary);    border-radius: 2px;    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);    transform-origin: center;}.hsp-hamburger span:nth-child(1) { top: 0; }.hsp-hamburger span:nth-child(2) { top: 9px; }.hsp-hamburger span:nth-child(3) { top: 18px; }.hsp-hamburger.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }.hsp-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }.hsp-hamburger.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }/* -- Session Icon (left of hamburger) --------------------------- @keyframes hspSessionIconPulse{0%,100%{box-shadow:0 0 16px rgba(255,46,130,0.12),inset 0 0 12px rgba(255,46,130,0.05)}50%{box-shadow:0 0 28px rgba(255,46,130,0.28),inset 0 0 20px rgba(255,46,130,0.1)}}/* -- Controls Panel ------------------------------------------- */@media (max-width: 767.98px) {    }/* -- Header Menu ----------------------------------------------- */.hsp-header-menu {    position: absolute;    top: calc(100% + 6px);    right: 12px;    width: auto;    max-height: 0;    overflow: hidden;    background: var(--h-bg-elevated);    border: 1px solid var(--h-border-subtle);    padding: 25px;    border-radius: 14px;    opacity: 0;    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;    pointer-events: none;    z-index: 10;}.hsp-header-menu.is-open {    min-width: 240px;    max-height: 300px;    opacity: 1;    pointer-events: auto;}/* -- Menu Overlay --------------------------------------------- */#hsp-menu-overlay {    position: fixed;    top: 0;    left: 0;    width: 100%;    height: 100svh;    z-index: calc(var(--z-hud) + 1);    background: rgba(0, 0, 0, 0.45);    backdrop-filter: blur(20px);    -webkit-backdrop-filter: blur(20px);    opacity: 0;    pointer-events: none;    transition: opacity 0.35s ease;}@media (min-width: 768px) {    #hsp-menu-overlay {        left: 50%;        transform: translateX(-50%);        max-width: min(100vw, calc(100vh * 9 / 16));    }}#hsp-menu-overlay.is-open {    opacity: 1;    pointer-events: auto;}


#hsp-hp-overlay {    position: fixed;    top: 0;    left: 0;    width: 100%;    height: 100svh;    z-index: calc(var(--z-hud) + 1);    background: rgba(0, 0, 0, 0.45);    backdrop-filter: blur(20px);    -webkit-backdrop-filter: blur(20px);    opacity: 0;    pointer-events: none;    transition: opacity 0.35s ease;}@media (min-width: 768px) {    #hsp-hp-overlay {        left: 50%;        transform: translateX(-50%);        max-width: min(100vw, calc(100vh * 9 / 16));    }}#hsp-hp-overlay.is-open {    opacity: 1;    pointer-events: auto;}


.hsp-menu-item {    display: flex;    align-items: center;    gap: 10px;    padding: 5px;    cursor: pointer;    color: var(--h-text-primary);    font-size: 13px;    font-weight: 600;    transition: background 0.2s;    white-space: nowrap;}.hsp-menu-item:first-child { border-radius: 14px 14px 0 0; }.hsp-menu-item:last-child { border-radius: 0 0 14px 14px; }.hsp-menu-item:hover { background: var(--h-bg-elevated); }.hsp-menu-item:active { opacity: 0.7; }.hsp-menu-icon { font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }.hsp-menu-icon-svg { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; color: var(--h-text-primary); }.hsp-menu-icon-svg svg { width: 18px; height: 18px; }/* -- Standalone Player --------------------------------------- */


/* -- Headphone Icon (Top Header) ------------------------------- */

.hsp-headphone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.hsp-headphone.is-audio-active .hsp-headphone-icon {
    animation: hspHeadphonePulse 3.25s ease-in-out infinite;
}
.hsp-headphone-icon svg {

    width: 20px;

    height: 20px;

    fill: none;

    stroke: var(--h-accent-main);

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.hsp-headphone-icon .material-symbols-outlined {

    font-size: 20px !important;

    color: var(--h-accent-main);

    line-height: 1;

}

.hsp-headphone-icon img {

    width: 20px;

    height: 20px;

    object-fit: contain;

}


.hsp-headphone {
    position: relative;
    width: 37px;
    height: 37px;
    border: 2px solid var(--h-accent-main);
    border-radius: 13px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, filter, transform;
    flex-shrink: 0;
    cursor: pointer;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}
.hsp-headphone.is-audio-active {
    box-shadow: 0 0 15px var(--h-accent-main), inset 0 0 15px var(--h-accent-main);
    animation: hspHeadphonePulse 3.25s ease-in-out infinite;
}

.hsp-headphone.is-pop {

    animation: hspHeadphonePop 0.25s ease-out;

}


@keyframes hspHeadphonePop {

    0%   { transform: scale(1); }

    40%  { transform: scale(0.85); }

    70%  { transform: scale(1.08); }

    100% { transform: scale(1); }

}


@keyframes hspHeadphonePulse {
    0%, 100% {
        opacity: 0.7;
        border-color: var(--h-accent-2);
        box-shadow: 0 0 8px var(--h-accent-2), inset 0 0 8px var(--h-accent-2);
    }
    50% {
        opacity: 1;
        border-color: var(--h-accent-main);
        box-shadow: 0 0 15px var(--h-accent-main), inset 0 0 15px var(--h-accent-main);
    }
}

/* -- Headphone Player Overlay ---------------------------------- */

.hsp-hp-player {

    position: fixed;

    top: 90px;

    right: 12px;

    transform: translateY(-20px);

    width: 310px;

    max-width: 90vw;

    background: var(--h-bg-elevated);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--h-border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    z-index: calc(var(--z-hud) + 5);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

}


.hsp-hp-player.is-visible {

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);

}


@media (max-width: 767.98px) {    .hsp-hp-player {        left: 50%;        right: auto;        width: 85vw;        transform: translateX(-50%) translateY(-20px);    }    .hsp-hp-player.is-visible {        transform: translateX(-50%) translateY(0);    }}


/* -- Bottom Scrollbar Marquee ---------------------------------- */

.hsp-scrollbar {

    width: 100%;

    height: 100%;

    background: var(--h-bg-surface);

    border-bottom: 1px solid var(--h-border-active);

    backdrop-filter: blur(6px);

    -webkit-backdrop-filter: blur(6px);

    display: flex;

    align-items: center;

    overflow: hidden;

    cursor: grab;

    user-select: none;

    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);

    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);

}

.hsp-scrollbar.is-dragging {

    cursor: grabbing;

}

.hsp-scrollbar-track {

    display: flex;

    white-space: nowrap;

    will-change: transform;

    flex-shrink: 0;

}

.hsp-scrollbar-text {

    

    font-size: clamp(10px, 1.4vw, 12px);

    font-weight: 600;

    color: var(--h-text-secondary);

    letter-spacing: 0.15em;

    text-transform: uppercase;

    padding: 0 4px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 2px;

}

.hsp-scrollbar-text::before {

    content: '◆';

    color: var(--h-accent-main);

    font-size: 6px;

    margin-right: 8px;

    opacity: 0.6;

}


.hsp-hp-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}


.hsp-hp-badge {

    color: var(--h-accent-main);

    border: 1px solid var(--h-accent-main);

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    

}


.hsp-hp-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.hsp-hp-close:hover { background: rgba(255,255,255,0.2); }
.hsp-hp-close svg { stroke: #fff !important; }

.hsp-hp-track { margin-bottom: 10px; text-align: center; }


.hsp-hp-title {

    color: #fff;

    font-size: 25px;

    font-weight: 700;

    

    margin-bottom: 8px;

}


.hsp-hp-artist {

    color: var(--h-accent-main);

    font-size: 14px;

    font-weight: 500;

    

}


.hsp-hp-progress { margin-bottom: 30px; }
.hsp-hp-sinus { display: none; width: 65%; height: 35px; margin: 0 auto 24px auto; border-radius: 8px; }
.hsp-hp-player.binaural-active .hsp-hp-progress { display: none; }
.hsp-hp-player.binaural-active .hsp-hp-sinus { display: block; }


.hsp-hp-time {

    display: flex;

    justify-content: space-between;

    color: #888;

    font-size: 12px;

    

    margin-bottom: 8px;

}


.hsp-hp-bar {

    height: 6px;

    background: rgba(255,255,255,0.1);

    border-radius: 3px;

    position: relative;

    cursor: pointer;

}


.hsp-hp-fill {

    position: absolute;

    top: 0;

    left: 0;

    height: 100%;

    width: 0%;

    background: #fff;

    border-radius: 3px;

}


.hsp-hp-thumb {

    position: absolute;

    top: 50%;

    left: 0%;

    transform: translate(-50%, -50%);

    width: 14px;

    height: 14px;

    background: #0d0d0f;

    border: 3px solid var(--h-accent-main);

    border-radius: 50%;

    box-shadow: 0 0 10px var(--h-accent-2);

    cursor: grab;

}


.hsp-hp-thumb:active {

    cursor: grabbing;

}


.hsp-hp-controls {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 30px;

    margin-bottom: 30px;

}


.hsp-hp-btn {

    background: none;

    border: none;

    color: var(--h-accent-main);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

}

.hsp-hp-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


.hsp-hp-play {

    width: 60px;

    height: 60px;

    background: var(--h-accent-main);

    border-radius: 50%;

    color: var(--h-bg-main);

    box-shadow: 0 0 20px var(--h-accent-2);

    transition: transform 0.1s;

}

.hsp-hp-play:active { transform: scale(0.95); }

.hsp-hp-play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.hsp-hp-icon-play { display: flex; align-items: center; justify-content: center; }

.hsp-hp-icon-pause { display: none; align-items: center; justify-content: center; }
.hsp-hp-play img { filter: invert(1); }
.hsp-hp-play:hover img { filter: invert(0) !important; }
.is-playing .hsp-hp-icon-pause { display: flex; }
.is-playing .hsp-hp-icon-play { display: none; }

.hsp-hp-settings {

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--h-accent-2);

    border-radius: 12px;

    padding: 20px;

    text-align: center;

}


.hsp-hp-card-label {

    color: #fff;

    font-size: 13px;

    font-weight: 600;

    

    margin-bottom: 15px;

}


.hsp-hp-modes {

    display: flex;

    gap: 10px;

}


.hsp-hp-mode {

    flex: 1;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.1);

    color: #888;

    padding: 10px 0;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    

    cursor: pointer;

    transition: background 0.3s, color 0.3s, border-color 0.3s;

}

.hsp-hp-mode.active {

    background: var(--h-accent-main);

    border-color: var(--h-accent-main);

    color: var(--h-bg-main);

}

.hsp-hp-mode:hover { background: rgba(255,255,255,0.08); }

.hsp-hp-mode.active:hover { background: var(--h-accent-2); }


