.qzone-video {
    position: relative;
    margin: 16px 0;
    overflow: hidden;
    border-radius: 8px;
    background: #0b0d10;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
    line-height: 0;
}

.qzone-video video {
    display: block;
    width: 100%;
    max-height: 68vh;
    background: #000;
}

.qzone-video-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    background: rgba(10, 13, 18, 0.96);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.5;
}

.qzone-video-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qzone-video-source {
    flex: none;
    color: rgba(150, 200, 255, 0.9);
    font-size: 11px;
}

.qzone-video-source:hover {
    color: #fff;
}

.qzone-video-fallback {
    display: block;
    padding: 12px;
    background: #111827;
    color: #cfe4ff;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.qzone-video-fallback[hidden] {
    display: none;
}

/* Cover-only / unresolved QQ Space card */
.qzone-video-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px;
    background: var(--card-2, #f7f8fa);
    color: var(--text, #333);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.qzone-video-card:hover {
    border-color: var(--accent, #4a90e2);
    background: var(--card, #fff);
    color: var(--text, #333);
    box-shadow: 0 6px 20px -12px rgba(74, 144, 226, 0.7);
}

.qzone-video-cover {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 148px;
    height: 84px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, #2b3440, #11151b);
}

.qzone-video-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qzone-video-play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 13, 18, 0.55);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.qzone-video-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.qzone-video-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.qzone-video-card-label {
    color: var(--muted, #888);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.qzone-video-card-title {
    overflow: hidden;
    color: var(--text, #333);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qzone-video-arrow {
    display: grid;
    flex: none;
    place-items: center;
    color: var(--muted, #888);
}

.qzone-video-link {
    color: var(--accent, #4a90e2);
    word-break: break-all;
}

html.dark .qzone-video-card {
    border-color: #30343b;
    background: #1d2026;
}

html.dark .qzone-video-card-title {
    color: #e5e7eb;
}

@media (max-width: 640px) {
    .qzone-video {
        margin: 12px -2px;
        border-radius: 6px;
    }

    .qzone-video-card {
        gap: 9px;
        padding: 7px;
    }

    .qzone-video-cover {
        width: 106px;
        height: 64px;
    }

    .qzone-video-play {
        width: 30px;
        height: 30px;
    }

    .qzone-video-card-title {
        white-space: normal;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

/* QZone share page iframe fallback */
.qzone-video-embed {
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px;
    background: #0b0d10;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
}

.qzone-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0d10;
}

.qzone-video-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.qzone-video-embed .qzone-video-cap {
    background: #11151b;
}

@media (max-width: 640px) {
    .qzone-video-embed {
        margin: 12px -2px;
        border-radius: 6px;
    }
}
