.zg-v3-playbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10020;
    display: none;
    padding: 8px 16px;
    background: #171a24;
    color: #f7f8fb;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -16px 36px rgba(15, 23, 42, .26);
}

.zg-v3-playbar.is-visible {
    display: block;
}

.zg-v3-playbar__inner {
    max-width: 1240px;
    min-height: 68px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 520px) minmax(220px, 1fr);
    gap: 18px;
    align-items: center;
}

.zg-v3-playbar__track {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.zg-v3-playbar__cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: radial-gradient(circle at 28% 24%, #5b82ff, transparent 34%),
        radial-gradient(circle at 74% 76%, #e7077b, transparent 36%),
        #25304a;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.zg-v3-playbar__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 48%);
    opacity: .8;
}

.zg-v3-playbar__cover.has-cover::after {
    opacity: .16;
}

.zg-v3-playbar__cover-note {
    display: none;
}

.zg-v3-playbar__meta {
    min-width: 0;
}

.zg-v3-playbar__line {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.zg-v3-playbar__line {
    font-size: 15px;
    line-height: 1.25;
    color: #fff;
}

.zg-v3-playbar__category {
    color: #9db5ff;
}

.zg-v3-playbar__category:not(:empty)::after {
    content: " / ";
    color: #7b849a;
}

.zg-v3-playbar__name {
    font-weight: 700;
}

.zg-v3-playbar__sub {
    margin-top: 5px;
    color: #b5bed2;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
}

.zg-v3-playbar__sub span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.zg-v3-playbar__sub.is-marquee span {
    max-width: none;
    min-width: 100%;
    padding-left: 100%;
    overflow: visible;
    text-overflow: clip;
    animation: zg-v3-playbar-marquee 24s linear infinite;
}

.zg-v3-playbar__sub.is-marquee:hover span {
    animation-play-state: paused;
}

@keyframes zg-v3-playbar-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 32px));
    }
}

.zg-v3-playbar__center {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.zg-v3-playbar__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.zg-v3-playbar__icon,
.zg-v3-playbar__play,
.zg-v3-playbar__action {
    border: 0;
    padding: 0;
    color: #f7f8fb;
    background: transparent;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.zg-v3-playbar__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #d5dae7;
    font-size: 24px;
    line-height: 1;
}

.zg-v3-playbar__icon:hover,
.zg-v3-playbar__icon.is-active,
.zg-v3-playbar__icon.is-pressed,
.zg-v3-playbar__icon[aria-pressed="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    transform: translateY(1px);
}

.zg-v3-playbar__repeat span {
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 2.5l4 4-4 4'/><path d='M3 11V8a1.5 1.5 0 0 1 1.5-1.5H21'/><path d='M7 21.5l-4-4 4-4'/><path d='M21 13v3a1.5 1.5 0 0 1-1.5 1.5H3'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 2.5l4 4-4 4'/><path d='M3 11V8a1.5 1.5 0 0 1 1.5-1.5H21'/><path d='M7 21.5l-4-4 4-4'/><path d='M21 13v3a1.5 1.5 0 0 1-1.5 1.5H3'/></svg>") center/contain no-repeat;
}

.zg-v3-playbar__play {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #1c2b39;
    color: #fff;
    font-size: 0;
    position: relative;
    overflow: hidden;
}

.zg-v3-playbar__play::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .12);
    border-radius: inherit;
    pointer-events: none;
    transition: background .18s ease;
}

.zg-v3-playbar__play::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    background-color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5 L8 19 L19 12 Z' fill='black' stroke='black' stroke-width='3.5' stroke-linejoin='round' stroke-linecap='round'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5 L8 19 L19 12 Z' fill='black' stroke='black' stroke-width='3.5' stroke-linejoin='round' stroke-linecap='round'/></svg>") center/contain no-repeat;
}

.zg-v3-playbar__play.Pause::before {
    width: 12px;
    height: 13px;
    margin-left: 0;
    -webkit-mask: linear-gradient(currentColor, currentColor) left/4px 100% no-repeat,
        linear-gradient(currentColor, currentColor) right/4px 100% no-repeat;
    mask: linear-gradient(currentColor, currentColor) left/4px 100% no-repeat,
        linear-gradient(currentColor, currentColor) right/4px 100% no-repeat;
}

.zg-v3-playbar__play span {
    display: none;
}

.zg-v3-playbar__play:hover {
    background: #1c2b39;
    transform: translateY(-1px);
}

.zg-v3-playbar__play:hover::after {
    background: rgba(15, 23, 42, .04);
}

.zg-v3-playbar__progress {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
}

.zg-v3-playbar__time {
    color: #f7f8fb;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.zg-v3-playbar__seek,
.zg-v3-playbar__volume input {
    width: 100%;
    accent-color: #eef3ff;
}

.zg-v3-playbar__seek {
    height: 4px;
}

.zg-v3-playbar__actions {
    min-width: 0;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.zg-v3-playbar__volume {
    width: 140px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.zg-v3-playbar__volume-icon {
    color: #d5dae7;
    font-size: 11px;
    text-transform: uppercase;
}

.zg-v3-playbar__action {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: #2f3444;
    color: #fff;
    font-size: 25px;
}

.zg-v3-playbar__action:hover,
.zg-v3-playbar__action.is-active {
    background: #42485c;
}

body.zg-v3-playbar-on {
    padding-bottom: 86px;
}

@media (max-width: 900px) {
    .zg-v3-playbar__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .zg-v3-playbar__center {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .zg-v3-playbar__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .zg-v3-playbar__volume {
        display: none;
    }
}

@media (max-width: 560px) {
    .zg-v3-playbar {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 6px 8px;
        border-radius: 6px;
    }

    .zg-v3-playbar__inner {
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) 34px 34px 34px;
        column-gap: 6px;
        row-gap: 4px;
        position: relative;
    }

    .zg-v3-playbar__center {
        display: contents;
    }

    .zg-v3-playbar__actions {
        grid-column: 2;
        grid-row: 1;
        gap: 2px;
    }

    .zg-v3-playbar__track {
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
        min-width: 0;
    }

    .zg-v3-playbar__cover {
        width: 44px;
        height: 44px;
        border-radius: 7px;
    }

    .zg-v3-playbar__line {
        font-size: 13px;
    }

    .zg-v3-playbar__sub {
        display: none;
    }

    .zg-v3-playbar__controls {
        position: static;
        grid-column: 3 / 5;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
    }

    .zg-v3-playbar__icon {
        display: none;
    }

    .zg-v3-playbar__icon[data-zg-playbar-next] {
        display: inline-grid;
        width: 34px;
        height: 34px;
        font-size: 24px;
        color: #f7f8fb;
    }

    .zg-v3-playbar__play {
        width: 34px;
        height: 34px;
        background: transparent;
        border-radius: 8px;
    }

    .zg-v3-playbar__play::after {
        display: none;
    }

    .zg-v3-playbar__play:hover {
        background: rgba(255, 255, 255, .08);
        transform: none;
    }

    .zg-v3-playbar__play::before {
        width: 16px;
        height: 16px;
    }

    .zg-v3-playbar__play.Pause::before {
        width: 12px;
        height: 13px;
    }

    .zg-v3-playbar__progress {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        align-items: center;
        padding-left: 52px;
        padding-right: 0;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .zg-v3-playbar__time {
        display: none;
    }

    .zg-v3-playbar__seek {
        height: 3px;
        margin: 0;
        appearance: none;
        -webkit-appearance: none;
        accent-color: #dce7ff;
        cursor: pointer;
        background: linear-gradient(
            to right,
            #dce7ff 0%,
            #dce7ff var(--zg-playbar-progress, 0%),
            rgba(220, 231, 255, .32) var(--zg-playbar-progress, 0%),
            rgba(220, 231, 255, .32) 100%
        );
        border-radius: 999px;
    }

    .zg-v3-playbar__seek::-webkit-slider-runnable-track {
        height: 3px;
        border-radius: 999px;
        background: transparent;
    }

    .zg-v3-playbar__seek::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 0;
        height: 0;
        border: 0;
    }

    .zg-v3-playbar__seek::-moz-range-track {
        height: 3px;
        border-radius: 999px;
        background: transparent;
    }

    .zg-v3-playbar__seek::-moz-range-thumb {
        width: 0;
        height: 0;
        border: 0;
    }

    .zg-v3-playbar__action {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: transparent;
        font-size: 24px;
    }

    .zg-v3-playbar__action:hover,
    .zg-v3-playbar__action.is-active {
        background: rgba(255, 255, 255, .08);
    }

    .zg-v3-playbar__actions [data-zg-playbar-download] {
        display: none;
    }

    body.zg-v3-playbar-on {
        padding-bottom: 82px;
    }
}

@media (max-width: 900px) {
    .zg-v3-playbar__seek {
        height: 3px;
        margin: 0;
        appearance: none;
        -webkit-appearance: none;
        background: linear-gradient(
            to right,
            #dce7ff 0%,
            #dce7ff var(--zg-playbar-progress, 0%),
            rgba(220, 231, 255, .32) var(--zg-playbar-progress, 0%),
            rgba(220, 231, 255, .32) 100%
        );
        border: 0;
        border-radius: 999px;
        cursor: pointer;
    }

    .zg-v3-playbar__seek::-webkit-slider-runnable-track {
        height: 3px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
    }

    .zg-v3-playbar__seek::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 1px;
        height: 3px;
        margin-top: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 0;
    }

    .zg-v3-playbar__seek::-moz-range-track {
        height: 3px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
    }

    .zg-v3-playbar__seek::-moz-range-progress {
        height: 3px;
        border-radius: 999px;
        background: #dce7ff;
    }

    .zg-v3-playbar__seek::-moz-range-thumb {
        width: 1px;
        height: 3px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 0;
    }
}
