/**
 * SAM Podcast Player — PC 底部播放器
 * Figma: 1174:24822 / 1174:25063 / 1174:25119 / 1174:25165 / 1174:25283
 * 基准：1920 设计稿，1rem = 100px
 * 字体：NunitoSans（与站内 @font-face 一致）
 */
.sam-pp {
    --sam-pp-bg: var(--Color, #2f67b3);
    --sam-pp-collapse-bg: #234d8a;
    --sam-pp-track: rgba(255, 255, 255, 0.3);
    --sam-pp-track-progress: rgba(255, 255, 255, 0.2);
    --sam-pp-fill: #fff;
    --sam-pp-text: #fff;
    --sam-pp-text-muted: rgba(255, 255, 255, 0.6);
    --sam-pp-tip-bg: var(--Color, #2f67b3);
    --sam-pp-list-active: #e3effc;
    --sam-pp-list-hover: #f5f7fa;
    --sam-pp-border: #e5e7eb;
    --sam-pp-text-primary: #1d2633;
    --sam-pp-badge-bg: #f5f7fa;
    --sam-pp-font: NunitoSans, "Nunito Sans", sans-serif;
    font-family: var(--sam-pp-font);
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.sam-pp *,
.sam-pp *::before,
.sam-pp *::after {
    font-family: inherit;
}

/* 收起态也要能点到右下角展开按钮 */
.sam-pp .sam-pp__dock--expand {
    pointer-events: auto;
}

.sam-pp.show-audio {
    transform: translateY(0);
    pointer-events: auto;
}

.sam-pp.show-audio .sam-pp__launch {
    display: none;
}

.sam-pp[v-cloak] {
    display: none;
}

/* 移动端专用节点：PC 隐藏 */
.sam-pp__backdrop,
.sam-pp__sheet-head,
.sam-pp__date,
.sam-pp__episode-collapse {
    display: none;
}

/* —— Episode List（Figma 1174:25119 Dropdown-Menu，页内宽 766） —— */
.sam-pp__playlist-wrap {
    position: relative;
    flex-shrink: 0;
}

.sam-pp__episode-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.16rem);
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    width: 7.66rem;
    max-width: min(7.66rem, calc(100vw - 1.28rem));
    height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 0.04rem 0.04rem 0 0;
    box-shadow:
        0 0.03rem 0.06rem -0.04rem rgba(70, 74, 75, 0.2),
        0 0.06rem 0.16rem 0 rgba(70, 74, 75, 0.08),
        0 0.09rem 0.28rem 0.08rem rgba(70, 74, 75, 0.02);
    opacity: 0;
    transform: translateY(0.12rem);
    transition: height 0.28s ease, opacity 0.28s ease, transform 0.28s ease, padding 0.28s ease;
    pointer-events: none;
    z-index: 5;
    box-sizing: border-box;
}

.sam-pp__episode-panel.is-open {
    height: 4.1rem;
    padding: 0.04rem 0.02rem 0.04rem 0;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sam-pp__episode-head {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex-shrink: 0;
    height: 0.52rem;
    padding: 0.16rem;
    background: #fff;
    border-bottom: 1px dashed var(--sam-pp-border);
    border-radius: 0.08rem 0.08rem 0 0;
    box-sizing: border-box;
}

.sam-pp__episode-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--sam-pp-text-primary);
    font-family: var(--sam-pp-font);
    font-size: 0.16rem;
    font-weight: 700;
    line-height: 0.16rem;
}

.sam-pp__episode-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.16rem;
    height: 0.16rem;
    min-width: 0.16rem;
    min-height: 0.16rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.sam-pp__episode-close:hover {
    opacity: 0.75;
}

.sam-pp__episode-close:focus-visible {
    outline: 2px solid var(--Color, #2f67b3);
    outline-offset: 2px;
}

.sam-pp__episode-close img,
.sam-pp__episode-close svg {
    display: block;
    width: 0.16rem;
    height: 0.16rem;
}

.sam-pp__episode-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb #f5f7fa;
}

.sam-pp__episode-body::-webkit-scrollbar {
    width: 0.07rem;
}

.sam-pp__episode-body::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 0.04rem;
}

.sam-pp__episode-body::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 0.04rem;
}

.sam-pp__episode-item {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    width: 100%;
    min-height: 0.464rem;
    padding: 0.12rem 0.16rem;
    margin: 0;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.sam-pp__episode-item:hover {
    background: var(--sam-pp-list-hover);
}

/* 选中：#e3effc，文字 Regular 不加粗 */
.sam-pp__episode-item.is-active {
    background: var(--sam-pp-list-active);
}

.sam-pp__episode-item:focus-visible {
    outline: 2px solid var(--Color, #2f67b3);
    outline-offset: -2px;
}

/* EP 徽标：灰底圆角，12px Regular #1d2633 */
.sam-pp__episode-ep {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.02rem 0.04rem;
    border-radius: 0.04rem;
    background: var(--sam-pp-badge-bg);
    color: var(--sam-pp-text-primary);
    font-family: var(--sam-pp-font);
    font-size: 0.12rem;
    line-height: normal;
    font-weight: 400;
    white-space: nowrap;
    box-sizing: border-box;
}

.sam-pp__episode-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--sam-pp-text-primary);
    font-family: var(--sam-pp-font);
    font-size: 0.16rem;
    line-height: 0.224rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sam-pp__episode-loading {
    display: flex;
    justify-content: center;
    padding: 0.16rem;
}

/* —— Bar（Figma 1174:25165） —— */
.sam-pp__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.16rem 0.64rem 0.16rem 0.32rem;
    background: var(--sam-pp-bg);
    box-sizing: border-box;
    pointer-events: auto;
    overflow: visible;
}

.sam-pp__meta {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.08rem;
    align-self: stretch;
}

.sam-pp__cover {
    flex-shrink: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 580 / 386;
    max-height: 0.48rem;
    border-radius: 0.04rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.sam-pp__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sam-pp__meta-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    justify-content: center;
    align-items: flex-start;
}

.sam-pp__ep {
    color: var(--sam-pp-text-muted);
    font-family: var(--sam-pp-font);
    font-size: 0.14rem;
    line-height: 0.182rem;
    font-weight: 400;
    white-space: nowrap;
}

.sam-pp__name {
    max-width: 4.2rem;
    color: var(--sam-pp-text);
    font-family: var(--sam-pp-font);
    font-size: 0.16rem;
    font-weight: 700;
    line-height: 0.16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sam-pp__center {
    flex-shrink: 0;
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.04rem;
}

.sam-pp__controls {
    display: flex;
    align-items: center;
    gap: 0.24rem;
}

.sam-pp__controls.is-loading .sam-pp__btn {
    cursor: not-allowed;
    opacity: 0.6;
}

.sam-pp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.32rem;
    height: 0.32rem;
    min-width: 0.32rem;
    min-height: 0.32rem;
    padding: 0.06rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 0.04rem;
    box-sizing: border-box;
    transition: opacity 0.15s ease;
}

.sam-pp__btn img {
    display: block;
    width: 0.2rem;
    height: 0.2rem;
    pointer-events: none;
}

.sam-pp__btn:hover:not(:disabled) {
    opacity: 0.8;
}

.sam-pp__btn:active:not(:disabled) {
    opacity: 0.65;
}

.sam-pp__btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.sam-pp__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sam-pp__btn.is-active {
    opacity: 1;
}

.sam-pp__play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.32rem;
    height: 0.32rem;
    min-width: 0.32rem;
    min-height: 0.32rem;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.sam-pp__play img {
    display: block;
    width: 0.32rem;
    height: 0.32rem;
    pointer-events: none;
}

.sam-pp__play:hover:not(:disabled) {
    opacity: 0.85;
}

.sam-pp__play:active:not(:disabled) {
    opacity: 0.7;
}

.sam-pp__play:disabled {
    cursor: not-allowed;
}

.sam-pp__play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sam-pp__play-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: #fff;
    color: var(--sam-pp-bg);
}

.sam-pp__play-loading .icon-loading {
    width: 0.2rem;
    height: 0.2rem;
    margin: 0;
}

.sam-pp__progress {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    width: 100%;
    min-height: 0.16rem;
}

.sam-pp__time {
    flex-shrink: 0;
    color: var(--sam-pp-text-muted);
    font-family: var(--sam-pp-font);
    font-size: 0.12rem;
    line-height: normal;
    font-weight: 400;
    min-width: 0.36rem;
    white-space: nowrap;
}

.sam-pp__actions {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.12rem;
}

.sam-pp__volume {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.sam-pp__volume .sam-pp__btn {
    flex-shrink: 0;
}

/* —— Range：用 CSS 变量填充，避免 border-image 横向溢出 —— */
.sam-pp__range {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    outline: 0;
    cursor: pointer;
    vertical-align: middle;
    border-radius: 0.025rem;
    background: linear-gradient(
        to right,
        var(--sam-pp-fill) 0%,
        var(--sam-pp-fill) var(--sam-pp-val, 0%),
        var(--sam-pp-track) var(--sam-pp-val, 0%),
        var(--sam-pp-track) 100%
    );
    background-repeat: no-repeat;
}

.sam-pp__range--time {
    flex: 1 1 auto;
    min-width: 0;
    height: 0.02rem;
    background: linear-gradient(
        to right,
        var(--sam-pp-fill) 0%,
        var(--sam-pp-fill) var(--sam-pp-val, 0%),
        var(--sam-pp-track-progress) var(--sam-pp-val, 0%),
        var(--sam-pp-track-progress) 100%
    );
    background-repeat: no-repeat;
}

.sam-pp__range--volume {
    width: 0.8rem;
    height: 0.02rem;
    flex-shrink: 0;
}

.sam-pp__progress:hover .sam-pp__range--time,
.sam-pp__volume:hover .sam-pp__range--volume,
.sam-pp__range:active {
    height: 0.04rem;
}

.sam-pp__range::-webkit-slider-runnable-track {
    height: 100%;
    border-radius: 0.025rem;
    background: transparent;
}

.sam-pp__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0.1rem;
    height: 0.1rem;
    margin-top: calc(-0.05rem + 0.01rem);
    border-radius: 50%;
    background: var(--sam-pp-fill);
    border: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
    position: relative;
    z-index: 1;
}

.sam-pp__progress:hover .sam-pp__range--time::-webkit-slider-thumb,
.sam-pp__volume:hover .sam-pp__range--volume::-webkit-slider-thumb,
.sam-pp__range:active::-webkit-slider-thumb,
.sam-pp__range:focus-visible::-webkit-slider-thumb {
    opacity: 1;
}

.sam-pp__range::-moz-range-track {
    height: 100%;
    border-radius: 0.025rem;
    background: transparent;
}

.sam-pp__range::-moz-range-progress {
    height: 100%;
    border-radius: 0.025rem;
    background: var(--sam-pp-fill);
}

.sam-pp__range::-moz-range-thumb {
    width: 0.1rem;
    height: 0.1rem;
    border: 0;
    border-radius: 50%;
    background: var(--sam-pp-fill);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sam-pp__progress:hover .sam-pp__range--time::-moz-range-thumb,
.sam-pp__volume:hover .sam-pp__range--volume::-moz-range-thumb,
.sam-pp__range:active::-moz-range-thumb,
.sam-pp__range:focus-visible::-moz-range-thumb {
    opacity: 1;
}

/* —— Tooltip —— */
.sam-pp__tip {
    position: relative;
}

.sam-pp__tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.1rem);
    transform: translateX(-50%);
    padding: 0.06rem 0.12rem;
    background: var(--sam-pp-tip-bg);
    color: #fff;
    font-family: var(--sam-pp-font);
    font-size: 0.12rem;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 0.04rem;
    box-shadow: 0 0 0.06rem rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 10;
}

.sam-pp__tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.04rem);
    transform: translateX(-50%);
    border: 0.06rem solid transparent;
    border-top-color: var(--sam-pp-tip-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 10;
}

.sam-pp__tip:hover::after,
.sam-pp__tip:hover::before,
.sam-pp__tip:focus-visible::after,
.sam-pp__tip:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.sam-pp__name.sam-pp__tip::after {
    left: 0;
    transform: none;
    max-width: 4.2rem;
    white-space: normal;
}

.sam-pp__name.sam-pp__tip::before {
    left: 0.16rem;
    transform: none;
}

/* —— Collapse / Expand dock（Figma 1174:24927 / 1174:25158） —— */
.sam-pp__dock {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
}

.sam-pp__dock--collapse {
    right: 0;
    top: 0;
    transform: translateY(-100%);
}

.sam-pp__dock--expand {
    right: 0;
    bottom: 100%;
}

.sam-pp__dock-notch {
    display: block;
    width: 0.04rem;
    height: 0.04rem;
    flex-shrink: 0;
    align-self: flex-end;
}

.sam-pp__dock-notch--flip {
    transform: scaleY(-1);
    align-self: flex-start;
}

.sam-pp__dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.48rem;
    height: 0.48rem;
    min-width: 0.48rem;
    min-height: 0.48rem;
    padding: 0.16rem;
    border: 0;
    background: var(--sam-pp-collapse-bg);
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity 0.15s ease;
}

.sam-pp__dock--collapse .sam-pp__dock-btn {
    border-radius: 0.04rem 0 0 0;
}

.sam-pp__dock--expand .sam-pp__dock-btn {
    border-radius: 0.04rem 0 0 0;
}

.sam-pp__dock-btn img {
    display: block;
    width: 0.16rem;
    height: 0.16rem;
}

.sam-pp__dock-chevron--up {
    transform: rotate(180deg);
}

.sam-pp__dock-anim {
    width: 0.2rem !important;
    height: 0.2rem !important;
}

.sam-pp__dock-btn:hover {
    opacity: 0.9;
}

.sam-pp__dock-btn:active {
    opacity: 0.8;
}

.sam-pp__dock-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/*
 * 小屏 PC（1026–1400）B2B §5：
 * - 其余尺寸：PC rem × (1920/1400)
 * - 本块不得影响 ≥1401；移动端另见下方 ≤1025
 */
@media screen and (min-width: 1026px) and (max-width: 1400px) {
    /* —— Episode List —— */
    .sam-pp__episode-panel {
        bottom: calc(100% + 0.219rem); /* 0.16 */
        gap: 0.027rem; /* 0.02 */
        width: 10.502rem; /* 7.66 */
        max-width: min(10.502rem, calc(100vw - 1.757rem)); /* 1.28 */
        border-radius: 0.055rem 0.055rem 0 0; /* 0.04 */
        box-shadow:
            0 0.041rem 0.082rem -0.055rem rgba(70, 74, 75, 0.2),
            0 0.082rem 0.219rem 0 rgba(70, 74, 75, 0.08),
            0 0.123rem 0.384rem 0.11rem rgba(70, 74, 75, 0.02);
        transform: translateY(0.165rem); /* 0.12 */
    }

    .sam-pp__episode-panel.is-open {
        height: 5.623rem; /* 4.1 */
        padding: 0.055rem 0.027rem 0.055rem 0; /* 0.04 / 0.02 */
        transform: translateY(0);
    }

    .sam-pp__episode-head {
        gap: 0.165rem; /* 0.12 */
        height: 0.713rem; /* 0.52 */
        padding: 0.219rem; /* 0.16 */
        border-radius: 0.11rem 0.11rem 0 0; /* 0.08 */
    }

    .sam-pp__episode-title {
        font-size: 0.219rem; /* 0.16 */
        line-height: 0.219rem;
    }

    .sam-pp__episode-close {
        width: 0.219rem; /* 0.16 */
        height: 0.219rem;
        min-width: 0.219rem;
        min-height: 0.219rem;
    }

    .sam-pp__episode-close img,
    .sam-pp__episode-close svg {
        width: 0.219rem;
        height: 0.219rem;
    }

    .sam-pp__episode-body::-webkit-scrollbar {
        width: 0.096rem; /* 0.07 */
    }

    .sam-pp__episode-body::-webkit-scrollbar-track,
    .sam-pp__episode-body::-webkit-scrollbar-thumb {
        border-radius: 0.055rem; /* 0.04 */
    }

    .sam-pp__episode-item {
        gap: 0.11rem; /* 0.08 */
        min-height: 0.636rem; /* 0.464 */
        padding: 0.165rem 0.219rem; /* 0.12 / 0.16 */
    }

    .sam-pp__episode-ep {
        padding: 0.027rem 0.055rem; /* 0.02 / 0.04 */
        border-radius: 0.055rem; /* 0.04 */
        font-size: 0.165rem; /* 0.12 */
    }

    .sam-pp__episode-name {
        font-size: 0.219rem; /* 0.16 */
        line-height: 0.307rem; /* 0.224 */
    }

    .sam-pp__episode-loading {
        padding: 0.219rem; /* 0.16 */
    }

    /* —— Bar —— */
    .sam-pp__bar {
        gap: 0.96rem; /* 0.7 */
        padding: 0.219rem 0.878rem 0.219rem 0.439rem; /* 0.16 / 0.64 / 0.16 / 0.32 */
    }

    .sam-pp__meta {
        gap: 0.11rem; /* 0.08 */
    }

    .sam-pp__cover {
        max-height: 0.658rem; /* 0.48 */
        border-radius: 0.055rem; /* 0.04 */
    }

    .sam-pp__meta-text {
        gap: 0.055rem; /* 0.04 */
    }

    .sam-pp__ep {
        font-size: 0.192rem; /* 0.14 */
        line-height: 0.25rem; /* 0.182 */
    }

    .sam-pp__name {
        max-width: 5.76rem; /* 4.2 */
        font-size: 0.219rem; /* 0.16 */
        line-height: 0.219rem;
    }

    .sam-pp__center {
        width: 5.486rem; /* 4 */
        gap: 0.055rem; /* 0.04 */
    }

    .sam-pp__controls {
        gap: 0.329rem; /* 0.24 */
    }

    .sam-pp__btn {
        width: 0.439rem; /* 0.32 */
        height: 0.439rem;
        min-width: 0.439rem;
        min-height: 0.439rem;
        padding: 0.082rem; /* 0.06 */
        border-radius: 0.055rem; /* 0.04 */
    }

    .sam-pp__btn img {
        width: 0.274rem; /* 0.2 */
        height: 0.274rem;
    }

    .sam-pp__play {
        width: 0.439rem; /* 0.32 */
        height: 0.439rem;
        min-width: 0.439rem;
        min-height: 0.439rem;
    }

    .sam-pp__play img {
        width: 0.439rem;
        height: 0.439rem;
    }

    .sam-pp__play-loading {
        width: 0.439rem;
        height: 0.439rem;
    }

    .sam-pp__play-loading .icon-loading {
        width: 0.274rem; /* 0.2 */
        height: 0.274rem;
    }

    .sam-pp__progress {
        gap: 0.11rem; /* 0.08 */
        min-height: 0.219rem; /* 0.16 */
    }

    .sam-pp__time {
        font-size: 0.165rem; /* 0.12 */
        min-width: 0.494rem; /* 0.36 */
    }

    .sam-pp__actions {
        gap: 0.165rem; /* 0.12 */
    }

    .sam-pp__range {
        border-radius: 0.034rem; /* 0.025 */
    }

    .sam-pp__range--time {
        height: 0.027rem; /* 0.02 */
    }

    .sam-pp__range--volume {
        width: 1.097rem; /* 0.8 */
        height: 0.027rem; /* 0.02 */
    }

    .sam-pp__progress:hover .sam-pp__range--time,
    .sam-pp__volume:hover .sam-pp__range--volume,
    .sam-pp__range:active {
        height: 0.055rem; /* 0.04 */
    }

    .sam-pp__range::-webkit-slider-thumb {
        width: 0.137rem; /* 0.1 */
        height: 0.137rem;
        margin-top: calc(-0.069rem + 0.014rem);
    }

    .sam-pp__range::-moz-range-thumb {
        width: 0.137rem;
        height: 0.137rem;
    }

    /* —— Tooltip —— */
    .sam-pp__tip::after {
        bottom: calc(100% + 0.137rem); /* 0.1 */
        padding: 0.082rem 0.165rem; /* 0.06 / 0.12 */
        font-size: 0.165rem; /* 0.12 */
        border-radius: 0.055rem; /* 0.04 */
        box-shadow: 0 0 0.082rem rgba(0, 0, 0, 0.12); /* 0.06 */
    }

    .sam-pp__tip::before {
        bottom: calc(100% + 0.055rem); /* 0.04 */
        border-width: 0.082rem; /* 0.06 */
    }

    .sam-pp__name.sam-pp__tip::after {
        max-width: 5.76rem; /* 4.2 */
    }

    .sam-pp__name.sam-pp__tip::before {
        left: 0.219rem; /* 0.16 */
    }

    /* —— Dock —— */
    .sam-pp__dock-notch {
        width: 0.055rem; /* 0.04 */
        height: 0.055rem;
    }

    .sam-pp__dock-btn {
        width: 0.658rem; /* 0.48 */
        height: 0.658rem;
        min-width: 0.658rem;
        min-height: 0.658rem;
        padding: 0.219rem; /* 0.16 */
    }

    .sam-pp__dock--collapse .sam-pp__dock-btn,
    .sam-pp__dock--expand .sam-pp__dock-btn {
        border-radius: 0.055rem 0 0 0; /* 0.04 */
    }

    .sam-pp__dock-btn img {
        width: 0.219rem; /* 0.16 */
        height: 0.219rem;
    }

    .sam-pp__dock-anim {
        width: 0.274rem !important; /* 0.2 */
        height: 0.274rem !important;
    }
}

/*
 * 移动端 ≤1025（Figma 1174:27549 / 27785 / 27683 / 27181）
 * 高度随内容，最大 80vh；尺寸取 375 稿，一律 max(rem, px)
 */
@media screen and (max-width: 1025px) {
    body.sam-pp-lock {
        overflow: hidden;
    }

    .sam-pp {
        --sam-pp-track-progress: rgba(255, 255, 255, 0.1);
        transform: none;
        pointer-events: none;
    }

    .sam-pp.show-audio {
        transform: none;
        pointer-events: none;
    }

    .sam-pp__backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.6);
        pointer-events: auto;
    }

    .sam-pp.show-audio .sam-pp__backdrop {
        display: block;
    }

    .sam-pp__sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .sam-pp.show-audio .sam-pp__sheet {
        transform: translateY(0);
        pointer-events: auto;
    }

    .sam-pp__sheet-head {
        display: flex;
        align-items: center;
        gap: max(0.12rem, 12px);
        flex-shrink: 0;
        height: max(0.52rem, 52px);
        padding: max(0.16rem, 16px);
        background: var(--sam-pp-bg);
        border-bottom: 1px dashed rgba(229, 231, 235, 0.1);
        border-radius: max(0.04rem, 4px) max(0.04rem, 4px) 0 0;
        box-sizing: border-box;
        position: relative;
        z-index: 4;
    }

    .sam-pp__sheet-collapse,
    .sam-pp__share-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: max(0.16rem, 16px);
        height: max(0.16rem, 16px);
        min-width: max(0.16rem, 16px);
        min-height: max(0.16rem, 16px);
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .sam-pp__sheet-collapse:focus-visible,
    .sam-pp__share-btn:focus-visible,
    .sam-pp__episode-collapse:focus-visible,
    .sam-pp__share-item:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    .sam-pp__episode-collapse:focus-visible,
    .sam-pp__share-item:focus-visible {
        outline-color: var(--Color, #2f67b3);
    }

    .sam-pp__sheet-collapse img,
    .sam-pp__episode-collapse img {
        display: block;
        width: max(0.16rem, 16px);
        height: max(0.16rem, 16px);
        transform: rotate(-90deg);
    }

    .sam-pp__share-btn img {
        display: block;
        width: max(0.16rem, 16px);
        height: max(0.16rem, 16px);
    }

    .sam-pp__sheet-ep {
        flex: 1 1 auto;
        min-width: 0;
        color: var(--sam-pp-text);
        font-family: var(--sam-pp-font);
        font-size: max(0.16rem, 16px);
        font-weight: 700;
        line-height: max(0.16rem, 16px);
    }

    .sam-pp__share-wrap {
        position: relative;
        flex-shrink: 0;
        padding-left: max(0.32rem, 32px);
    }

    .sam-pp__share-menu {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 10;
        display: none;
        flex-direction: column;
        gap: max(0.02rem, 2px);
        width: max(1.45rem, 145px);
        padding: max(0.06rem, 6px) 0;
        background: #fff;
        border-radius: max(0.04rem, 4px);
        box-shadow:
            0 max(0.03rem, 3px) max(0.06rem, 6px) calc(-1 * max(0.04rem, 4px)) rgba(70, 74, 75, 0.2),
            0 max(0.06rem, 6px) max(0.16rem, 16px) 0 rgba(70, 74, 75, 0.08),
            0 max(0.09rem, 9px) max(0.28rem, 28px) max(0.08rem, 8px) rgba(70, 74, 75, 0.02);
        box-sizing: border-box;
    }

    .sam-pp__share-menu.is-open {
        display: flex;
    }

    .sam-pp__share-item {
        display: flex;
        align-items: center;
        gap: max(0.08rem, 8px);
        width: 100%;
        margin: 0;
        padding: max(0.12rem, 12px) max(0.2rem, 20px);
        border: 0;
        background: #fff;
        color: var(--sam-pp-text-primary);
        font-family: var(--sam-pp-font);
        font-size: max(0.16rem, 16px);
        font-weight: 400;
        line-height: max(0.24rem, 24px);
        text-align: left;
        cursor: pointer;
        box-sizing: border-box;
    }

    .sam-pp__share-item:hover,
    .sam-pp__share-item:active {
        background: var(--sam-pp-list-active);
    }

    .sam-pp__share-item img {
        display: block;
        width: max(0.22rem, 22px);
        height: max(0.22rem, 22px);
        flex-shrink: 0;
        object-fit: contain;
    }

    .sam-pp__bar {
        display: grid;
        grid-template-columns: max-content 1fr max-content;
        grid-template-areas:
            "cover cover cover"
            "info info info"
            "prog prog prog"
            "dl ctrls list";
        align-items: stretch;
        justify-items: stretch;
        column-gap: 0;
        row-gap: max(0.2rem, 20px);
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: max(0.16rem, 16px) max(0.16rem, 16px) max(0.32rem, 32px);
        background: linear-gradient(to bottom, #2f67b3, #234d8a);
        position: static;
    }

    .sam-pp__meta {
        display: contents;
    }

    .sam-pp__cover {
        grid-area: cover;
        position: relative;
        width: auto;
        min-width: 0;
        height: auto;
        max-height: none;
        aspect-ratio: 580 / 386;
        margin-bottom: max(0.12rem, 12px);
        border-radius: max(0.04rem, 4px);
        overflow: hidden;
    }

    .sam-pp__cover img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sam-pp__meta-text {
        grid-area: info;
        min-width: 0;
        gap: max(0.08rem, 8px);
        margin-bottom: max(0.04rem, 4px);
    }

    .sam-pp__date {
        display: flex;
        align-items: center;
        gap: max(0.04rem, 4px);
        color: var(--sam-pp-text-muted);
        font-family: var(--sam-pp-font);
        font-size: max(0.14rem, 14px);
        font-weight: 400;
        line-height: max(0.182rem, 18.2px);
    }

    .sam-pp__date-icon {
        display: block;
        width: max(0.2rem, 20px);
        height: max(0.2rem, 20px);
        flex-shrink: 0;
    }

    .sam-pp__ep {
        display: none;
    }

    .sam-pp__name {
        max-width: none;
        font-size: max(0.2rem, 20px);
        font-weight: 700;
        line-height: max(0.28rem, 28px);
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .sam-pp__center {
        display: contents;
        width: auto;
    }

    .sam-pp__progress {
        grid-area: prog;
        gap: max(0.08rem, 8px);
        min-height: 0;
    }

    .sam-pp__time {
        font-size: max(0.12rem, 12px);
        min-width: max(0.36rem, 36px);
    }

    .sam-pp__controls {
        grid-area: ctrls;
        justify-self: center;
        align-self: center;
        gap: max(0.32rem, 32px);
    }

    .sam-pp__actions {
        display: contents;
    }

    .sam-pp__volume {
        display: none;
    }

    .sam-pp__playlist-wrap {
        display: contents;
    }

    .sam-pp__btn--download {
        grid-area: dl;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        padding: max(0.12rem, 12px) max(0.24rem, 24px) max(0.12rem, 12px) 0;
        justify-self: start;
        align-self: center;
    }

    .sam-pp__playlist-btn {
        grid-area: list;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        padding: max(0.12rem, 12px) 0 max(0.12rem, 12px) max(0.24rem, 24px);
        justify-self: end;
        align-self: center;
    }

    .sam-pp__btn--download img,
    .sam-pp__playlist-btn img {
        width: max(0.2rem, 20px);
        height: max(0.2rem, 20px);
    }

    .sam-pp__btn--skip-back,
    .sam-pp__btn--skip-fwd {
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        padding: max(0.08rem, 8px);
    }

    .sam-pp__btn--skip-back img,
    .sam-pp__btn--skip-fwd img {
        width: max(0.24rem, 24px);
        height: max(0.24rem, 24px);
    }

    .sam-pp__play {
        width: max(0.48rem, 48px);
        height: max(0.48rem, 48px);
        min-width: max(0.48rem, 48px);
        min-height: max(0.48rem, 48px);
    }

    .sam-pp__play img {
        width: max(0.48rem, 48px);
        height: max(0.48rem, 48px);
    }

    .sam-pp__play-loading {
        width: max(0.48rem, 48px);
        height: max(0.48rem, 48px);
    }

    .sam-pp__play-loading .icon-loading {
        width: max(0.24rem, 24px);
        height: max(0.24rem, 24px);
    }

    .sam-pp__range {
        border-radius: max(0.025rem, 2.5px);
    }

    .sam-pp__range--time {
        height: max(0.02rem, 2px);
    }

    .sam-pp__progress:hover .sam-pp__range--time,
    .sam-pp__range:active {
        height: max(0.02rem, 2px);
    }

    .sam-pp__range::-webkit-slider-thumb {
        width: max(0.1rem, 10px);
        height: max(0.1rem, 10px);
        margin-top: calc(-1 * max(0.04rem, 4px));
    }

    .sam-pp__range::-moz-range-thumb {
        width: max(0.1rem, 10px);
        height: max(0.1rem, 10px);
    }

    .sam-pp__tip::after,
    .sam-pp__tip::before {
        display: none;
    }

    /* 列表打开时盖住播放器顶栏：bar 的 overflow 会裁切列表头，且层叠低于 sheet-head */
    .sam-pp.is-list-open .sam-pp__bar {
        overflow: visible;
        z-index: 5;
    }

    /* 剧集列表：与播放器同高，自下向上滑出 */
    .sam-pp__episode-panel {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 8;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        overflow: hidden;
        border-radius: max(0.04rem, 4px) max(0.04rem, 4px) 0 0;
        box-shadow:
            0 max(0.03rem, 3px) max(0.06rem, 6px) calc(-1 * max(0.04rem, 4px)) rgba(70, 74, 75, 0.2),
            0 max(0.06rem, 6px) max(0.16rem, 16px) 0 rgba(70, 74, 75, 0.08),
            0 max(0.09rem, 9px) max(0.28rem, 28px) max(0.08rem, 8px) rgba(70, 74, 75, 0.02);
        opacity: 1;
        transform: translateY(100%);
        transition: transform 0.28s ease, visibility 0.28s ease;
        pointer-events: none;
        visibility: hidden;
    }

    .sam-pp__episode-panel.is-open {
        height: auto;
        padding: 0;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .sam-pp__episode-head {
        gap: max(0.12rem, 12px);
        height: max(0.52rem, 52px);
        padding: max(0.16rem, 16px);
        border-radius: max(0.04rem, 4px) max(0.04rem, 4px) 0 0;
    }

    .sam-pp__episode-collapse {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: max(0.16rem, 16px);
        height: max(0.16rem, 16px);
        min-width: max(0.16rem, 16px);
        min-height: max(0.16rem, 16px);
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .sam-pp__episode-close {
        display: none;
    }

    .sam-pp__episode-title {
        font-size: max(0.16rem, 16px);
        line-height: max(0.16rem, 16px);
    }

    .sam-pp__episode-body {
        padding: max(0.04rem, 4px) max(0.02rem, 2px) max(0.04rem, 4px) 0;
    }

    .sam-pp__episode-body::-webkit-scrollbar {
        width: max(0.07rem, 7px);
    }

    .sam-pp__episode-body::-webkit-scrollbar-track,
    .sam-pp__episode-body::-webkit-scrollbar-thumb {
        border-radius: max(0.04rem, 4px);
    }

    .sam-pp__episode-item {
        gap: max(0.08rem, 8px);
        min-height: 0;
        padding: max(0.12rem, 12px) max(0.16rem, 16px);
    }

    .sam-pp__episode-ep {
        padding: max(0.02rem, 2px) max(0.04rem, 4px);
        border-radius: max(0.04rem, 4px);
        font-size: max(0.12rem, 12px);
    }

    .sam-pp__episode-name {
        font-size: max(0.16rem, 16px);
        line-height: max(0.24rem, 24px);
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .sam-pp__episode-loading {
        padding: max(0.16rem, 16px);
    }

    .sam-pp__dock--collapse {
        display: none;
    }

    .sam-pp__dock--expand {
        position: fixed;
        right: 0;
        bottom: 0;
        z-index: 3;
        pointer-events: auto;
    }

    .sam-pp__dock-notch {
        width: max(0.04rem, 4px);
        height: max(0.04rem, 4px);
    }

    .sam-pp__dock-btn {
        width: max(0.48rem, 48px);
        height: max(0.48rem, 48px);
        min-width: max(0.48rem, 48px);
        min-height: max(0.48rem, 48px);
        padding: max(0.16rem, 16px);
        border-radius: max(0.04rem, 4px) 0 0 0;
    }

    .sam-pp__dock-btn img {
        width: max(0.16rem, 16px);
        height: max(0.16rem, 16px);
    }

    .sam-pp__dock-anim {
        width: max(0.16rem, 16px) !important;
        height: max(0.16rem, 16px) !important;
    }
}
