/* ===== 上传页与分享页专用 ===== */

/* 整页拖放提示层 */
.drag-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, .82);
    backdrop-filter: blur(3px);
}

.drag-layer.on {
    display: flex;
}

.drag-layer .box {
    border: 2px dashed var(--pri);
    border-radius: 22px;
    padding: 48px 64px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    background: rgba(59, 130, 246, .08);
}

/* 主拖放区 */
.drop {
    border: 2px dashed var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(59, 130, 246, .05), rgba(99, 102, 241, .03));
    padding: 64px 28px;
    text-align: center;
    cursor: pointer;
    transition: .18s;
    min-height: 46vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.drop:hover, .drop.hot {
    border-color: var(--pri);
    background: linear-gradient(180deg, rgba(59, 130, 246, .12), rgba(99, 102, 241, .06));
}

.drop .icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--pri), var(--pri-2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .3);
}

.drop .icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drop h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

.drop .tip {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.drop .limits {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.8;
    word-break: break-word;
    /* 先按容器宽度算再受 560px 约束，否则窄屏上会把整页顶宽 */
    width: 100%;
    max-width: 560px;
}

/* 文件信息条 */
.filebar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filebar .ficon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    overflow: hidden;
}

.filebar .fname {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 进度 */
.prog-nums {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.prog-pct {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

/* 结果 */
.linkbox {
    display: flex;
    gap: 8px;
}

.linkbox input {
    font-size: 14px;
}

.result-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.result-grid .qr {
    flex: 0 0 148px;
    text-align: center;
}

.result-grid .qr img {
    width: 148px;
    height: 148px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    display: block;
}

.result-grid .qr .cap {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* 分享页播放器 */
.player {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    line-height: 0;
}

.player video {
    width: 100%;
    max-height: 72vh;
    display: block;
    background: #000;
}

.noplay {
    background: var(--panel-2);
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
}

.noplay .big {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.meta {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    margin-top: 14px;
}

.meta b {
    color: var(--text);
    font-weight: 600;
}

/* 微信内下载引导 */
.wx-arrow {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.wx-arrow b {
    font-size: 17px;
    letter-spacing: 2px;
    line-height: 1;
}

.wx-arrow i {
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    animation: wx-point 1.1s ease-in-out infinite;
}

@keyframes wx-point {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(4px, -4px);
    }
}

.wx-steps {
    margin: 0 0 14px;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.9;
}

.wx-steps b {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 720px) {
    .drop {
        padding: 40px 18px;
        min-height: 40vh;
    }

    .drop h1 {
        font-size: 19px;
    }

    .result-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-grid .grow {
        width: 100%;
    }

    .player video {
        max-height: 46vh;
    }
}
