@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap);

:root {
    --marquee-gap: 60px;
    --marquee-gradient: var(--player-background);

    --player-cover-width: 46px;
    --player-cover-height: 46px;

    --player-padding: 8px;

    --player-closed-width: 144px;
    --player-open-width: 320px;
}

.rf-player {
    width: var(--player-open-width);
}

.rf-player:not(.player-online) {
    width: auto !important;
}

.rf-player .rf-player-volume-meter::after {
    width: 16px;
    height: 16px;
    border-radius: 100%;
    content: '';
    display: block;
    position: absolute;
    background: var(--player-volume-slider-color);
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border: 1px solid var(--player-volume-slider-color);
}

.rf-player .rf-player-cover .rf-player-cover-wrapper {
    background: #4d4d4d;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    width: 92px;
    height: 46px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rf-player .rf-player-cover .rf-player-cover-content {
    display: flex;
    align-items: center;
    border-radius: inherit;
    inset: 1px;
    position: absolute;
    background: #191919;
    flex-grow: 1;
    z-index: 2;
}

.rf-player.player-online .rf-player-cover .rf-player-cover-wrapper::before {
    content: '';
    background: conic-gradient(transparent, white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 3s linear infinite;
    width: 300%;
    height: 300%;
}

.rf-player .rf-player-open-close {
    width: 22px;
    height: 100%;
    position: absolute;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rf-player:not(.player-online) .rf-player-open-close {
    display: none;
}

.rf-player:not(.player-online) .rf-player-cast,
.rf-player:not(.player-online) .rf-player-volume-wrapper {
    display: none;
}

.rf-player.player-position-right .rf-playing-now {
    text-align: right;
}

.rf-player.player-position-left .rf-player-open-close {
    right: 0;
}

.rf-player.player-position-right .rf-player-open-close {
    left: 0;
}

.rf-player.expanded.player-position-right .rf-player-open-close {
    transform: rotate(180deg);
}

.rf-player.player-position-left:not(.expanded) .rf-player-open-close {
    transform: rotate(180deg);
}

.rf-player .rf-player-open-close:hover {
    background: #2b2b2b;
}

@keyframes rotate {
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

.rf-player.player-position-right:not(.expanded) .rf-player-cover {
    gap: unset;
}

.rf-player /*:not(.expanded)*/ {
    transition: width 200ms;
}

.rf-player:not(.player-changing-volume):not(.expanded) {
    width: var(--player-closed-width);
}

.rf-player:not(.player-online) {
    width: auto;
}

.rf-player:not(.player-changing-volume):not(.expanded) .rf-player-cast,
.rf-player:not(.player-changing-volume):not(.expanded) .rf-player-volume-wrapper {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.rf-player.player-online:not(.player-position-right).expanded .rf-player-background-color .center,
.rf-player.player-online.player-position-left.expanded .rf-player-background-color .center,
.rf-player.player-online.player-position-right.expanded .rf-player-background-color .center,
.rf-player.player-online.player-changing-volume .rf-player-background-color .center {
    width: calc(var(--player-open-width) - var(--player-padding) - var(--player-padding) + 1px);
}

.rf-player.player-online:not(.player-position-right).expanded .rf-player-background-color .right {
    transform: translateX(calc(var(--player-open-width) - var(--player-padding)));
}

.rf-player.player-online.player-position-left.expanded .rf-player-background-color .right {
    transform: translateX(calc(var(--player-open-width) - var(--player-padding)));
}

.rf-player.player-online.player-position-right.expanded .rf-player-background-color .left {
    transform: translateX(calc(0px - (var(--player-open-width) - var(--player-closed-width))));
}

/* @media (hover: none) {
    .rf-player.player-position-right .rf-player-background-color .left {
        width: 9px;
    }

    .rf-player.player-position-right .rf-player-background-color .right {
        width: calc(var(--player-padding) + 2px);
        left: -2px;
    }

    .rf-player.player-position-right:not(.player-mobile-open) .rf-player-cover {
        gap: unset;
    }

    .rf-player:not(.player-mobile-open) {
        transition: width 200ms;
    }

    .rf-player:not(.player-mobile-open) {
        width: var(--player-closed-width);
    }

    .rf-player:not(.player-mobile-open) .rf-player-cover .rf-playing-now,
    .rf-player:not(.player-mobile-open) .rf-player-controls .rf-player-cast,
    .rf-player:not(.player-mobile-open) .rf-player-controls .rf-player-volume-wrapper {
        opacity: 0;
        pointer-events: none;
    }

    .rf-player:not(.player-position-right).player-mobile-open.player-online .rf-player-background-color .center,
    .rf-player.player-position-left.player-mobile-open.player-online .rf-player-background-color .center,
    .rf-player.player-position-right.player-mobile-open.player-online .rf-player-background-color .center,
    .rf-player.player-changing-volume.player-online .rf-player-background-color .center {
        width: calc(var(--player-open-width) - var(--player-padding) - var(--player-padding) + 1px);
    }

    .rf-player:not(.player-position-right).player-mobile-open.player-online .rf-player-background-color .right,
    .rf-player.player-position-left.player-mobile-open.player-online .rf-player-background-color .right,
    .rf-player:not(.player-position-right).player-changing-volume.player-online .rf-player-background-color .right,
    .rf-player.player-position-left.player-changing-volume.player-online .rf-player-background-color .right {
        transform: translateX(calc(var(--player-open-width) - var(--player-padding)));
    }

    .rf-player.player-position-right.player-mobile-open.player-online .rf-player-background-color .left,
    .rf-player.player-position-right.player-changing-volume.player-online .rf-player-background-color .left  {
        transform: translateX(calc(0px - (var(--player-open-width) - var(--player-closed-width))));
    }
} */

.rf-player .rf-player-play-pause-container {
    flex-shrink: 0;
}

.rf-player:not(.player-online) .rf-player-play-pause-container {
    opacity: 0.2;
    pointer-events: none;
}

.rf-player .rf-player-cover .rf-playing-now,
.rf-player .rf-player-controls .rf-player-cast,
.rf-player .rf-player-controls .rf-player-volume-wrapper {
    transition: opacity 200ms;
}

.rf-player {
    font-family: 'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 16px;
    letter-spacing: initial;
}

.rf-player .rf-player-background-color {
    height: 100%;
    position: absolute;
}

.rf-player.player-position-right .rf-player-background-color {
    right: var(--player-closed-width);
}

.rf-player .rf-player-background-color .left,
.rf-player .rf-player-background-color .right {
    width: var(--player-padding);
}

.rf-player .rf-player-background-color .left {
    border-radius: var(--player-padding) 0 0 var(--player-padding);
}

.rf-player .rf-player-background-color .right {
    border-radius: 0 var(--player-padding) var(--player-padding) 0;
    transition: transform ease 200ms;
    transform: translateX(calc(var(--player-closed-width) - var(--player-padding)));
}

.rf-player .rf-player-background-color .center {
    width: var(--player-cover-width);
    transition: width ease 200ms, transform ease 200ms;
}

.rf-player.player-position-right .left {
    transition: transform ease 200ms;
}

.rf-player:not(.player-position-right) .rf-player-background-color .center {
    left: var(--player-padding);
}

.rf-player.player-position-left .rf-player-background-color .center {
    left: var(--player-padding);
}

.rf-player.player-position-right .rf-player-background-color .center {
    left: calc(var(--player-closed-width) - var(--player-padding) - 1px)
}

.rf-player:not(.player-position-right) .rf-player-background-color .center {
    transform: scaleX(40);
    transform-origin: left;
}

.rf-player.player-position-left .rf-player-background-color .center {
    transform: scaleX(40);
    transform-origin: left;
}

.rf-player.player-position-right .rf-player-background-color .center {
    transform: scaleX(40);
    transform-origin: right;
}

.rf-player .rf-player-background-color .left,
.rf-player .rf-player-background-color .right,
.rf-player .rf-player-background-color .center {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(21,21,21,1);
    z-index: -1;
    max-width: unset;
}
.rf-player.player-online  .rf-player-background-color .left,
.rf-player.player-online  .rf-player-background-color .right,
.rf-player.player-online  .rf-player-background-color .center {
    background: #000;
}

.rf-player .rf-player-cover {
    display: flex;
    gap: 10px;
    position: relative;
}

.rf-player .rf-player-background {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 50%;
    height: 100%;
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
    z-index: 1;
}

.rf-player .rf-player-cover .rf-player-play-pause-wrapper {
    z-index: 1;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.rf-player.player-online .offline-container {
    display: none;
}

.rf-player .offline-container {
    padding: 4px;
    background: #cc5542;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rf-player:not(.player-online) .rf-player-background {
    background-image: none !important;
}

.rf-player:not(.player-online) .rf-player-background::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.50);
}

.rf-player.player-version-6 {
    position: fixed;
    z-index: 1000;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    bottom: 12px;
    left: 12px;
}

.rf-player.player-position-left.player-online {
    padding-right: 22px;
}

.rf-player.player-position-right.player-online {
    padding-left: 22px;
}

.rf-player.player-version-6.player-position-right {
    left: unset;
    right: 12px;
}

.rf-player.player-version-6 .rf-playing-now {
    font-size: 12px;
    overflow: hidden;
    flex: 1;
    position: relative;
}

.rf-player .rf-playing-now .rf-playing-item-value,
.rf-player .rf-playing-now .rf-playing-item-label {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
}

.rf-player .rf-playing-now marquee,
.rf-player .rf-playing-now .marquee {
    display: block;
    position: relative;
}

.rf-player .rf-playing-now .marquee {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--marquee-gap);
    font-weight: 500;
}

.rf-player .rf-playing-now marquee::before,
.rf-player .rf-playing-now .marquee::before {
    content: '';
    width: 10%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg,var(--marquee-gradient) 20.31%,hsla(0,0%,100%,0));
    left: 0;
    top: 0;
    position: absolute;
    z-index: 1;
}

.rf-player .rf-playing-now .marquee-content {
    display: inline-block;
    animation: marquee 7s linear infinite;
    white-space: nowrap;
    max-width: unset;
    min-width: 100%;
    flex-shrink: 0;
}

.rf-player.player-position-left.expanded .rf-playing-now .marquee-content {
    padding-left: 12px;
}

.rf-player.player-position-right.expanded .rf-playing-now .marquee-content {
    padding-right: 12px;
}

.rf-player.player-position-right .rf-playing-info-item {
    right: 0;
}

.rf-player .rf-playing-now marquee::after,
.rf-player .rf-playing-now .marquee::after {
    content: '';
    width: 10%;
    height: 100%;
    display: block;
    background: linear-gradient(270deg,var(--marquee-gradient) 20.31%,hsla(0,0%,100%,0));
    right: 0;
    top: 0;
    position: absolute;
}

.rf-player-controls .rf-playing-now .rf-playing-item-label {
    color: #a8a8a8;
    font-size: 11px;
}

.rf-player.player-position-left .rf-player-controls .rf-playing-now .rf-playing-item-label {
    padding-left: 12px;
}

.rf-player.player-position-right .rf-player-controls .rf-playing-now .rf-playing-item-label {
    padding: 0 12px;
}

.rf-player-controls .rf-playing-now .rf-playing-item-value {
    font-size: 14px;
    font-weight: 500;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - var(--marquee-gap)));
    }
}

.rf-player .rf-player-cover {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.rf-player.player-position-right .rf-player-cover {
    flex-direction: row-reverse;
}

.rf-player .rf-player-controls {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.rf-player:not(.player-online) .rf-player-controls {
    display: none;
}

.rf-player.player-position-right .rf-player-controls {
    flex-direction: row-reverse;
}

.rf-player .rf-player-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rf-player .rf-player-volume-area,
.rf-player .rf-player-volume-indicator {
    cursor: pointer;
    user-select: none;
    touch-action: none;
}

.rf-player:not(.player-position-right) .rf-player-volume-wrapper {
    margin-left: auto;
}

.rf-player.player-position-left .rf-player-volume-wrapper {
    margin-left: auto;
}

.rf-player.player-position-right .rf-player-volume-wrapper {
    margin-right: auto;
}


.rf-player.player-castable .rf-player-cast {
    cursor: pointer;
}

.rf-player:not(.player-position-right) .rf-player-cast {
    margin-left: 12px;
}

.rf-player.player-position-left .rf-player-cast {
    margin-left: 12px;
}

.rf-player.player-position-right .rf-player-cast {
    margin-right: 12px;
}


.rf-player .rf-player-play-pause-container .rf-player-play:not(.active),
.rf-player .rf-player-play-pause-container .rf-player-pause:not(.active) {
    display: none;
}

.rf-player .rf-player-container .rf-player-play-pause-container .rf-player-pause,
.rf-player .rf-player-container .rf-player-play-pause-container .rf-player-play {
    width: 100%;
    height: 100%;
}

.rf-player .rf-player-play-pause {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

