/* Global sticky bottom player — YouRotten */

.yr-global-player[hidden],
#yr-global-player[hidden] {
    display: none !important;
}

#yr-global-audio {
    display: none;
}

#yr-global-player.yr-global-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 88px;
    z-index: 1100;
    background: #121212;
    border-top: 1px solid #2a2a2a;
    color: #e0e0e0;
    box-sizing: border-box;
}

body.yr-gp-visible {
    padding-bottom: 88px;
}

.yr-gp-inner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.4fr) minmax(180px, 1fr);
    align-items: center;
    gap: 16px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* —— Left: cover + meta —— */
.yr-gp-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.yr-gp-cover-link {
    flex-shrink: 0;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 2px;
    overflow: hidden;
    background: #1a1a1a;
    text-decoration: none;
}

.yr-gp-cover-link:focus-visible,
.yr-gp-title-link:focus-visible,
.yr-gp-btn:focus-visible,
.yr-gp-range:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.yr-gp-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yr-gp-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yr-gp-title-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yr-gp-title-link:hover {
    text-decoration: underline;
}

.yr-gp-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yr-gp-artist {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* —— Center: transport + progress —— */
.yr-gp-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.yr-gp-transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.yr-gp-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #b3b3b3;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.15s, background-color 0.15s;
}

.yr-gp-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.yr-gp-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    pointer-events: none;
}

.yr-gp-btn-play {
    width: 36px;
    height: 36px;
    color: #fff;
    background: #fff;
    color: #0a0a0a;
    border-radius: 50%;
}

.yr-gp-btn-play:hover {
    background: #f0f0f0;
    color: #0a0a0a;
}

.yr-gp-btn-play svg {
    width: 16px;
    height: 16px;
}

.yr-gp-btn-play .yr-gp-icon-pause {
    display: none;
}

.yr-gp-btn-play.is-playing .yr-gp-icon-play {
    display: none;
}

.yr-gp-btn-play.is-playing .yr-gp-icon-pause {
    display: block;
}

.yr-gp-btn.is-active {
    color: #fff;
}

.yr-gp-btn.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.yr-gp-btn {
    position: relative;
}

.yr-gp-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 520px;
}

.yr-gp-time {
    font-size: 11px;
    color: #888;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: center;
}

.yr-gp-progress-wrap {
    position: relative;
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
}

.yr-gp-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #2a2a2a;
    border-radius: 1px;
    pointer-events: none;
}

.yr-gp-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 1px;
}

.yr-gp-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.yr-gp-range::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
}

.yr-gp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: none;
    margin-top: -3.5px;
    opacity: 0;
    transition: opacity 0.12s;
}

.yr-gp-progress-wrap:hover .yr-gp-range::-webkit-slider-thumb,
.yr-gp-range:focus-visible::-webkit-slider-thumb {
    opacity: 1;
}

.yr-gp-range::-moz-range-track {
    height: 3px;
    background: transparent;
    border: none;
}

.yr-gp-range::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: none;
    opacity: 0;
}

.yr-gp-progress-wrap:hover .yr-gp-range::-moz-range-thumb,
.yr-gp-range:focus-visible::-moz-range-thumb {
    opacity: 1;
}

/* —— Right: modes + volume —— */
.yr-gp-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.yr-gp-volume-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 110px;
    height: 24px;
    position: relative;
}

.yr-gp-volume-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    background: #2a2a2a;
    border-radius: 1px;
    pointer-events: none;
}

.yr-gp-volume-wrap .yr-gp-range {
    flex: 1;
    z-index: 1;
}

.yr-gp-volume-wrap .yr-gp-range::-webkit-slider-thumb {
    opacity: 1;
}

.yr-gp-volume-wrap .yr-gp-range::-moz-range-thumb {
    opacity: 1;
}

.yr-gp-btn.is-muted {
    color: #666;
}

/* Mobile thin progress (hidden on desktop) */
.yr-gp-progress-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2a2a2a;
    cursor: pointer;
}

.yr-gp-progress-mobile-fill {
    height: 100%;
    width: 0%;
    background: #fff;
}

.yr-gp-desktop-only {
    display: contents;
}

/* —— Mobile ~390px —— */
@media (max-width: 720px) {
    #yr-global-player.yr-global-player {
        height: 68px;
    }

    body.yr-gp-visible {
        padding-bottom: 68px;
    }

    .yr-gp-progress-mobile {
        display: block;
    }

    .yr-gp-inner {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 0 12px;
        padding-top: 4px;
    }

    .yr-gp-cover-link {
        width: 48px;
        height: 48px;
    }

    .yr-gp-center {
        flex-direction: row;
        gap: 0;
    }

    .yr-gp-progress-row,
    .yr-gp-right,
    .yr-gp-desktop-only {
        display: none !important;
    }

    .yr-gp-transport {
        gap: 2px;
    }

    .yr-gp-btn {
        width: 36px;
        height: 36px;
    }

    .yr-gp-btn-play {
        width: 40px;
        height: 40px;
    }

    .yr-gp-title-link {
        font-size: 12px;
    }

    .yr-gp-artist {
        font-size: 11px;
    }
}
