/* ==================== 视频发布悬浮进度窗口 ==================== */
.ls-vp-float {
    position: fixed;
    z-index: 10060;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(.25,.8,.25,1);
    touch-action: none;
    user-select: none;
    cursor: grab;
}
.ls-vp-float.ls-vp-show {
    opacity: 1;
    transform: scale(1);
}

/* 封面背景 */
.ls-vp-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}
.ls-vp-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* SVG 圆形进度环 */
.ls-vp-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.ls-vp-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 3;
}
.ls-vp-ring-fg {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.5s ease;
}

/* 百分比文字 */
.ls-vp-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 1;
}

/* ==================== 发布队列悬浮进度窗口 ==================== */
.ls-pq-container {
    position: fixed;
    right: 12px;
    bottom: 82px;
    z-index: 10060;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.ls-pq-card {
    width: min(212px, calc(100vw - 24px));
    min-height: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    grid-template-areas:
        "ring title delete"
        "parts parts parts"
        "action action action";
    align-items: center;
    column-gap: 6px;
    padding: 8px 9px;
    overflow: hidden;
    border-radius: var(--ls-border-radius, 8px);
    background: rgba(18, 18, 22, 0.9);
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
}

.ls-pq-card-failed {
    background: rgba(36, 18, 20, 0.96);
}

.ls-pq-ring {
    grid-area: ring;
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.ls-pq-ring svg {
    width: 100%;
    height: 100%;
}

.ls-pq-ring-bg,
.ls-pq-ring-fg {
    fill: none;
    stroke-width: 3;
}

.ls-pq-ring-bg {
    stroke: rgba(255,255,255,0.16);
}

.ls-pq-ring-fg {
    stroke: #fff;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.4s ease;
}

.ls-pq-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}

.ls-pq-delete {
    grid-area: delete;
    justify-self: end;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--ls-border-radius-btn, 6px);
    background: rgba(255,255,255,0.10);
    color: #fff;
    cursor: pointer;
}

.ls-pq-delete:active {
    background: rgba(255,255,255,0.18);
}

.ls-pq-title {
    grid-area: title;
    min-width: 0;
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #fff;
}

.ls-pq-parts {
    grid-area: parts;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 7px 0 0;
    padding: 0;
    max-height: 160px;
    overflow: hidden;
    list-style: none;
    opacity: 1;
}

.ls-pq-part {
    display: flex;
    align-items: center;
    column-gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

.ls-pq-part-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: var(--ls-radius-full, 999px);
    background: rgba(255,255,255,0.58);
}

.ls-pq-part-name {
    width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-pq-part-meter {
    flex: 1;
    height: 3px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--ls-radius-full, 999px);
    background: rgba(255,255,255,0.14);
}

.ls-pq-part-meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,0.82);
    transition: width 0.35s ease;
}

.ls-pq-part-state {
    width: 30px;
    text-align: right;
    color: rgba(255,255,255,0.62);
}

.ls-pq-action {
    grid-area: action;
    justify-self: end;
    height: 28px;
    margin-top: 6px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--ls-border-radius-btn, 6px);
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.ls-pq-action:active {
    background: rgba(255,255,255,0.18);
}

.ls-pq-card-collapsed {
    width: 55px;
}

.ls-pq-card-collapsed .ls-pq-title {
    max-width: 0;
    opacity: 0;
}

.ls-pq-card-collapsed .ls-pq-parts {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.ls-pq-card-collapsed .ls-pq-action {
    display: none;
}


.ls-pq-card-collapsed .ls-pq-delete {
    display: none;
}
