/* 视频中心侧边栏。 */

.video-center-sidebar {
    --video-primary: #D92D0B;
    --video-background: #F3F4F5;
    --video-text: #222222;
    --video-hover: #F9E5DF;
}

/* 区块间距 */
.video-center-sidebar .wpb_text_column {
    margin-bottom: 16px !important;
}

/* 标题 */
.video-center-sidebar h3,
.video-center-sidebar h4 {
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.4;
    color: var(--video-text);
    margin-bottom: 4px;
}

/* 分类区域 */
.video-center-sidebar .video-sidebar-nav {
    margin-bottom: 4px !important;
}

.video-center-sidebar .video-sidebar-nav p {
    padding-bottom: 0;
    margin: 0;
}

.video-center-sidebar .video-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-center-sidebar .video-sidebar-nav li {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

/* 分类链接 */
.video-center-sidebar .video-sidebar-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    color: var(--video-text);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 150ms,
                color 150ms;
}

/* 悬停状态。 */
.video-center-sidebar .video-sidebar-nav a:hover {
    background-color: var(--video-hover);
    color: var(--video-primary);
}

/* 当前分类的选中状态。 */
.video-center-sidebar .video-sidebar-nav a.is-active,
.video-center-sidebar .video-sidebar-nav a[aria-current="page"] {
    background-color: var(--video-primary);
    color: #FFFFFF !important;
}

/* 全部视频页面选中状态 */
body.page-id-4560 .video-center-sidebar
.video-sidebar-nav a[href="/video-center/"] {
    background-color: var(--video-primary);
    color: #FFFFFF !important;
}

/* 视频中心搜索图标居中。 */
.video-center-sidebar button[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 44px;
    flex-shrink: 0;
}

.video-center-sidebar button[type="submit"] i,
.video-center-sidebar button[type="submit"] svg {
    margin: 0 !important;
    padding: 0 !important;
}

/* 搜索按钮与清除按钮居中 */
.video-center-sidebar .aiovg-button-submit:not([hidden]),
.video-center-sidebar .aiovg-button-reset:not([hidden]) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 44px;
    flex-shrink: 0;
}

/* 尊重插件原有的隐藏逻辑 */
.video-center-sidebar .aiovg-button-submit[hidden],
.video-center-sidebar .aiovg-button-reset[hidden] {
    display: none !important;
}

/* SVG 图标居中 */
.video-center-sidebar .aiovg-button-submit svg,
.video-center-sidebar .aiovg-button-reset svg {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    width: 16px;
    height: 16px;
}

/* 统一清除按钮颜色 */
.video-center-sidebar .aiovg-button-reset {
    background-color: #D92D0B !important;
    color: #FFFFFF !important;
}

/* 统一搜索按钮与清除按钮的交互效果 */
.video-center-sidebar .aiovg-button-submit,
.video-center-sidebar .aiovg-button-reset {
    background-color: #D92D0B !important;
    color: #FFFFFF !important;
    transform: none !important;
    transition: background-color 150ms ease !important;
}

/* 统一悬停效果。 */
.video-center-sidebar .aiovg-button-submit:hover,
.video-center-sidebar .aiovg-button-reset:hover {
    background-color: #B92409 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 禁止图标位移、旋转及缩放 */
.video-center-sidebar .aiovg-button-submit svg,
.video-center-sidebar .aiovg-button-reset svg {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

/* 固定清除按钮尺寸，禁止悬浮时缩小 */
.video-center-sidebar .aiovg-button-reset:not([hidden]),
.video-center-sidebar .aiovg-button-reset:not([hidden]):hover {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    transform: none !important;
    scale: none !important;
    translate: none !important;
    box-sizing: border-box !important;
}

/* 固定清除图标尺寸 */
.video-center-sidebar .aiovg-button-reset svg,
.video-center-sidebar .aiovg-button-reset:hover svg {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    transform: none !important;
    scale: none !important;
    transition: none !important;
}

/* 禁止 SVG 内部路径缩放 */
.video-center-sidebar .aiovg-button-reset:hover svg path {
    transform: none !important;
    scale: none !important;
    transition: none !important;
}

/* AIOVG 全站视频缩略图填充修复，保留原有全局作用范围。 */
.aiovg-responsive-container > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
