/* === FULL STRAWBERRY SHOPPING CSS - RECOVERED HANDSOME VERSION === */

:root {
    --pf-bar-h: 52px;
    /* barhöjd – används för spektrumplacering */
    --pf-text: #4a3f35;
    /* Deep Coffee Brown for legibility */
    --pf-sub: #8d7a68;
    /* Muted Earth Tone for subtitles */

    /* Radio Pulse neon - Swapped to Strawberry Gold Palette */
    --pf-cyan: #f7f3d8;
    /* Light Cream */
    --pf-violet: #d4bc9c;
    /* Champagne Gold */
    --pf-magenta: #b2936a;
    /* Deep Amber Gold */

    /* Glas/metall - Light Glass Theme */
    --pf-glass: rgba(248, 245, 235, 0.30);
    --pf-edge1: rgba(255, 255, 255, .4);
    --pf-edge2: rgba(184, 161, 133, .3);
}

/* === SPEKTRUMBAND – fäst ovanför baren === */
#pfp-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--pf-bar-h);
    height: 42px;
    z-index: 9998;
    pointer-events: none;
}

#pfp-visual {
    width: 100%;
    height: 42px;
    display: block;
    /* Swapped blue glow for gold glow */
    filter: drop-shadow(0 0 15px rgba(212, 188, 156, 0.45));
}

/* === BAR – glas med guldram === */
#pfp-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: var(--pf-bar-h);
    padding: 7px 12px;

    background: linear-gradient(180deg, rgba(255, 255, 255, .4), transparent),
        var(--pf-glass);
    backdrop-filter: blur(12px) saturate(140%);
    border-top: 1px solid var(--pf-edge1);
    box-shadow:
        0 -5px 25px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 var(--pf-edge1),
        inset 0 6px 18px rgba(255, 255, 255, .1),
        inset 0 -2px 12px var(--pf-edge2),
        0 0 20px rgba(212, 188, 156, 0.15);
    color: var(--pf-text);
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* Toggle + label */
.pfp-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .2));
    border: 1px solid rgba(178, 147, 106, 0.3);
    color: var(--pf-text);
    font-weight: 700;
}

.pfp-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--pf-text);
}

.pfp-toggle:hover {
    box-shadow: 0 0 14px var(--pf-violet);
}

/* Info Area */
.pfp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pfp-art {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex: 0 0 36px;
    background: #e5dfd3;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 2px var(--pf-violet), 0 0 16px rgba(178, 147, 106, 0.2);
}

.pfp-meta {
    min-width: 0;
}

.pfp-now {
    font-size: 11px;
    color: var(--pf-sub);
    letter-spacing: .35px;
    line-height: 1;
}

.pfp-title {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
    color: var(--pf-text);
    line-height: 1.2;
}

/* Icons/Controls */
.pfp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.pfp-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(178, 147, 106, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1));
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.pfp-icon svg {
    width: 18px;
    height: 18px;
    fill: #5a4b3d;
    filter: drop-shadow(0 0 4px rgba(212, 188, 156, 0.3));
}

.pfp-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px var(--pf-violet);
    border-color: var(--pf-magenta);
}

.pfp-primary {
    box-shadow: 0 0 18px rgba(178, 147, 106, 0.2);
}

.pfp-playing .pfp-icon-play {
    display: none;
}

.pfp-icon-pause {
    display: none;
}

.pfp-playing .pfp-icon-pause {
    display: block;
}

/* Seek + Rate + Volume */
.pfp-seek {
    width: 260px;
    max-width: 38vw;
    height: 4px;
    appearance: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.pfp-seek::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pf-cyan), var(--pf-violet), var(--pf-magenta));
}

.pfp-seek::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1), 0 0 12px var(--pf-violet);
    margin-top: -5px;
    border: 1px solid var(--pf-violet);
}

.pfp-rate {
    background: #fff;
    color: var(--pf-text);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2px 8px;
    height: 30px;
    font-weight: 700;
}

.pfp-volwrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pfp-vol {
    width: 16px;
    height: 16px;
    fill: var(--pf-sub);
}

.pfp-volr {
    width: 110px;
    accent-color: var(--pf-magenta);
}

/* Playlist Section */
.pfp-list {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    background: rgba(199, 180, 150, 0.936);
    border-top: 1px solid #eee;
    backdrop-filter: blur(10px);
}

.pfp-list.open {
    max-height: 45vh;
    overflow: auto;
}

.pfp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.pfp-item:hover {
    background: #fdfaf4;
}

.pfp-item .t {
    font-weight: 600;
    color: var(--pf-text);
}

.pfp-item .d {
    font-size: 12px;
    color: var(--pf-sub);
}

.pfp-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e5dfd3;
    background-size: cover;
    background-position: center;
    flex: 0 0 40px;
}

@media (max-width:640px) {
    .pfp-title {
        max-width: 42vw;
    }

    .pfp-seek {
        width: 170px;
    }
}