/* ==================== 视频发布悬浮进度窗口 ==================== */
.ls-vp-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10060;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    cursor: grab;
    user-select: none;
}

.ls-vp-card {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(.25,.8,.25,1);
    position: relative;
}
.ls-vp-card.ls-vp-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 封面背景（模糊） */
.ls-vp-card-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.1);
}

/* 内容区 */
.ls-vp-card-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

/* 圆形进度环 */
.ls-vp-card-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.ls-vp-card-ring svg {
    width: 100%;
    height: 100%;
}
.ls-vp-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    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-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* 标题和状态 */
.ls-vp-card-info {
    flex: 1;
    min-width: 0;
}
.ls-vp-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ls-vp-card-status {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* 关闭按钮 */
.ls-vp-card-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.ls-vp-card-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

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

.ls-pq-card {
    width: 226px;
    min-height: 72px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    grid-template-areas:
        "ring title delete"
        "parts parts parts"
        "action action action";
    align-items: center;
    column-gap: 8px;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--ls-border-radius, 8px);
    background: rgba(18, 18, 22, 0.94);
    color: #fff;
    cursor: pointer;
}

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

.ls-pq-ring {
    grid-area: ring;
    position: relative;
    width: 48px;
    height: 48px;
    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: 12px;
    color: #fff;
}

.ls-pq-delete {
    grid-area: delete;
    justify-self: end;
    width: 26px;
    height: 26px;
    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;
    transition: background 0.2s ease, transform 0.15s ease;
}

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

.ls-pq-delete:active {
    transform: translateY(1px);
}

.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: 4px;
    margin: 8px 0 0;
    padding: 0;
    max-height: 170px;
    overflow: hidden;
    list-style: none;
    opacity: 1;
}

.ls-pq-part {
    display: grid;
    grid-template-columns: 7px minmax(54px, 1fr) 46px 32px;
    align-items: center;
    column-gap: 5px;
    min-width: 0;
    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 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-pq-part-meter {
    width: 46px;
    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: 32px;
    flex-shrink: 0;
    text-align: right;
    color: rgba(255,255,255,0.62);
}

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

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

.ls-pq-action:active {
    transform: translateY(1px);
}

.ls-pq-card-collapsed {
    width: 70px;
    min-height: 0;
    padding: 10px;
}

.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;
}
