/* Zibll 视频信息区块 */
.aikiv-video-info-block {
    box-sizing: border-box;
    width: 100%;
    margin: .45em 0 .72em;
    color: var(--main-color, #202124);
}

.aikiv-video-info-block *,
.aikiv-video-info-block *::before,
.aikiv-video-info-block *::after {
    box-sizing: border-box;
}

.aikiv-video-info-card {
    padding: 14px 18px 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 20px;
    background: var(--aikiv-video-info-bg, var(--muted-bg-2-color, #f6f7f8));
}

.aikiv-video-info-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 11px;
}

.aikiv-video-info-notice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #ff9f0a;
    background: rgba(255, 159, 10, .13);
}

.aikiv-video-info-notice-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.aikiv-video-info-notice-content {
    min-width: 0;
    flex: 1 1 auto;
}

.aikiv-video-info-notice-text {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: var(--main-color, #202124) !important;
}

.aikiv-video-info-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 11px;
    border-top: 2px solid rgba(0, 0, 0, .12);
}

.aikiv-video-info-stat {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
}

.aikiv-video-info-stat + .aikiv-video-info-stat::before {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 2px;
    content: '';
    background: rgba(0, 0, 0, .12);
}

.aikiv-video-info-stat-inner {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.aikiv-video-info-stat-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    border-radius: 10px;
    color: var(--muted-color, #72757d);
    background: rgba(127, 127, 127, .08);
}

.aikiv-video-info-stat:nth-child(1) .aikiv-video-info-stat-icon {
    color: #ff8f3d;
    background: rgba(255, 143, 61, .14);
}

.aikiv-video-info-stat:nth-child(2) .aikiv-video-info-stat-icon {
    color: #4c8dff;
    background: rgba(76, 141, 255, .14);
}

.aikiv-video-info-stat:nth-child(3) .aikiv-video-info-stat-icon {
    color: #ff5f8f;
    background: rgba(255, 95, 143, .14);
}

.aikiv-video-info-stat-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.aikiv-video-info-stat-body {
    min-width: 0;
    flex: 0 1 auto;
    text-align: left;
}

.aikiv-video-info-stat-label,
.aikiv-video-info-stat-value {
    display: block;
    overflow-wrap: anywhere;
}

.aikiv-video-info-stat-label {
    margin-bottom: 3px !important;
    font-size: 13px !important;
    line-height: 1.32 !important;
    color: var(--muted-color, #777) !important;
}

.aikiv-video-info-stat-value {
    font-size: clamp(15px, 1.7vw, 19px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--main-color, #202124) !important;
}

.editor-styles-wrapper .aikiv-video-info-block {
    font-family: inherit;
}

.editor-styles-wrapper .aikiv-video-info-card {
    border-color: rgba(0, 0, 0, .14);
}

.editor-styles-wrapper .aikiv-video-info-card .block-editor-rich-text__editable[contenteditable="true"]:focus {
    outline: 1px dashed rgba(255, 102, 136, .45);
    outline-offset: 2px;
}

.editor-styles-wrapper .aikiv-video-info-card .block-editor-rich-text__editable[contenteditable="true"] {
    cursor: text;
}

/* 编辑器背景色快捷选择 */
.aikiv-video-info-color-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.aikiv-video-info-color-preset.components-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    height: auto;
    padding: 6px 8px;
    border: 1px solid #dcdcde;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.aikiv-video-info-color-preset.components-button:hover {
    border-color: #8c8f94;
    background: #f6f7f7;
}

.aikiv-video-info-color-preset.components-button.is-selected {
    border-color: var(--wp-admin-theme-color, #3858e9);
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #3858e9);
}

.aikiv-video-info-color-swatch {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
}

.aikiv-video-info-color-name {
    overflow: hidden;
    color: #1e1e1e;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aikiv-video-info-custom-color-label {
    margin: 16px 0 8px;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
}

body.dark-theme .aikiv-video-info-card,
.dark-theme .aikiv-video-info-card,
body.theme-dark .aikiv-video-info-card,
.theme-dark .aikiv-video-info-card,
[data-theme="dark"] .aikiv-video-info-card,
[data-night="1"] .aikiv-video-info-card {
    background: var(--muted-bg-2-color, #2a2d33) !important;
}

body.dark-theme .aikiv-video-info-stat-icon,
.dark-theme .aikiv-video-info-stat-icon,
body.theme-dark .aikiv-video-info-stat-icon,
.theme-dark .aikiv-video-info-stat-icon,
[data-theme="dark"] .aikiv-video-info-stat-icon,
[data-night="1"] .aikiv-video-info-stat-icon {
    background: rgba(255, 255, 255, .08);
}

/* 夜间模式：提高外框、横线和竖线对比度 */
body.dark-theme .aikiv-video-info-card,
.dark-theme .aikiv-video-info-card,
body.theme-dark .aikiv-video-info-card,
.theme-dark .aikiv-video-info-card,
[data-theme="dark"] .aikiv-video-info-card,
[data-night="1"] .aikiv-video-info-card {
    border-color: rgba(255, 255, 255, .18) !important;
}

body.dark-theme .aikiv-video-info-stats,
.dark-theme .aikiv-video-info-stats,
body.theme-dark .aikiv-video-info-stats,
.theme-dark .aikiv-video-info-stats,
[data-theme="dark"] .aikiv-video-info-stats,
[data-night="1"] .aikiv-video-info-stats {
    border-top-color: rgba(255, 255, 255, .20) !important;
}

body.dark-theme .aikiv-video-info-stat + .aikiv-video-info-stat::before,
.dark-theme .aikiv-video-info-stat + .aikiv-video-info-stat::before,
body.theme-dark .aikiv-video-info-stat + .aikiv-video-info-stat::before,
.theme-dark .aikiv-video-info-stat + .aikiv-video-info-stat::before,
[data-theme="dark"] .aikiv-video-info-stat + .aikiv-video-info-stat::before,
[data-night="1"] .aikiv-video-info-stat + .aikiv-video-info-stat::before {
    background: rgba(255, 255, 255, .20) !important;
}

@media (max-width: 600px) {
    .aikiv-video-info-block {
        margin: .32em 0 .65em;
    }

    .aikiv-video-info-card {
        padding: 13px 15px 11px;
        border-radius: 16px;
    }

    .aikiv-video-info-notice {
        gap: 10px;
        padding-bottom: 10px;
    }

    .aikiv-video-info-notice-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .aikiv-video-info-notice-icon svg {
        width: 16px;
        height: 16px;
    }

    .aikiv-video-info-notice-text {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .aikiv-video-info-stats {
        padding-top: 10px;
    }

    .aikiv-video-info-stat {
        padding: 0 6px;
    }

    .aikiv-video-info-stat-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .aikiv-video-info-stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .aikiv-video-info-stat-inner {
        gap: 8px;
    }

    .aikiv-video-info-stat-label {
        margin-bottom: 2px !important;
        font-size: 12px !important;
    }

    .aikiv-video-info-stat-value {
        font-size: 14px !important;
    }
}

@media (max-width: 460px) {
    /* 手机端仍保持原来的三列横向排版，只缩小图标和间距。 */
    .aikiv-video-info-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aikiv-video-info-stat {
        padding: 0 3px;
    }

    .aikiv-video-info-stat + .aikiv-video-info-stat::before {
        width: 1px;
    }

    .aikiv-video-info-stat-inner {
        gap: 5px;
    }

    .aikiv-video-info-stat-icon {
        width: 25px;
        height: 25px;
        border-radius: 8px;
    }

    .aikiv-video-info-stat-icon svg {
        width: 14px;
        height: 14px;
    }

    .aikiv-video-info-stat-label {
        font-size: 11px !important;
        white-space: nowrap;
    }

    .aikiv-video-info-stat-value {
        font-size: 13px !important;
        white-space: nowrap;
    }
}
