/* Cinematic Dark Theme for Darkvod - 影院暗黑主题 */

:root {
    --bg-primary: #06090f;
    --bg-secondary: #0d1117;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(13, 17, 23, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-gold: #fbbf24;
    --accent-purple: #8b5cf6;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius-card: 8px;
    --radius-badge: 4px;
    --page-padding: 30px;
}

/* ========== 基础样式重置 ========== */
* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden !important;
}

/* ========== 页面容器间距 ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--page-padding) !important;
    padding-right: var(--page-padding) !important;
}

/* ========== 头部导航 ========== */
.myui-header__top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgba(6, 9, 15, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3) !important;
    height: auto !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* PC端滚动时导航增强效果 */
.myui-header__top.scrolled {
    background: rgba(6, 9, 15, 0.92) !important;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5) !important;
}

/* PC端body顶部padding为固定导航留出空间 */
body,
body.active {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* PC端(大于767px)需要顶部留白给固定导航 */
@media (min-width: 768px) {

    body,
    body.active {
        padding-top: 70px !important;
    }
}

/* Logo尺寸限制 */
.myui-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 65px;
}

.myui-header__logo a {
    display: block;
    height: 100%;
}

.myui-header__logo img {
    height: 40px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain;
}

.myui-header__menu>li>a {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

.myui-header__menu>li>a:hover,
.myui-header__menu>li.active>a {
    color: var(--text-primary) !important;
}

.myui-header__user>li>a,
.myui-header__user>li>a .fa {
    color: var(--text-primary) !important;
}

/* 搜索栏 */
.myui-header__search {
    background: transparent !important;
    border-top: 1px solid var(--border-subtle) !important;
}

.myui-header__search .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 20px !important;
    color: var(--text-primary) !important;
}

/* ========== 视频卡片网格 ========== */
.myui-vodlist {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 15px !important;
    column-gap: 15px !important;
    row-gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 修复clearfix伪元素占用Grid第一个位置的问题 */
.myui-vodlist::before,
.myui-vodlist::after {
    display: none !important;
    content: none !important;
}

.myui-vodlist>li {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
    min-width: 0 !important;
}

/* ========== 视频卡片样式 ========== */
.myui-vodlist__box {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.myui-vodlist__box:hover {
    transform: translateY(-4px);
}

.myui-vodlist__thumb {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 140% !important;
    border-radius: var(--radius-card) !important;
    background-color: var(--bg-card) !important;
    background-size: cover !important;
    background-position: center !important;
    overflow: hidden;
    /* CLS防抖动优化 */
    aspect-ratio: 2/3;
    contain: layout style;
    transform: translateZ(0);
}

/* 底部渐变遮罩 */
.myui-vodlist__thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
}

/* 评分徽章 - 左上角金色 */
.pic-tag-top {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto !important;
    background: linear-gradient(135deg, #a08c3a, #8b7a2e) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    line-height: 1;
}

.pic-tag-top::before {
    content: "★ ";
    color: #ffd700;
    font-size: 12px;
}

/* 状态徽章（集数） - 右下角蓝紫色 */
.pic-text {
    position: absolute;
    bottom: 8px;
    right: 8px;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    background: #5865F2 !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    padding: 4px 10px !important;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: none !important;
    line-height: 1;
}

/* 播放按钮悬停 */
.myui-vodlist__thumb .play {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    z-index: 5;
}

.myui-vodlist__box:hover .myui-vodlist__thumb .play {
    opacity: 1;
}

/* 卡片详情 */
.myui-vodlist__detail {
    padding: 8px 2px 0;
}

.myui-vodlist__detail .title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.myui-vodlist__detail .title a {
    color: var(--text-primary) !important;
}

.myui-vodlist__detail .title a:hover {
    color: var(--accent-blue) !important;
}

.myui-vodlist__detail .text {
    font-size: 11px;
    color: var(--text-secondary) !important;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 分区面板 ========== */
.myui-panel {
    background: transparent !important;
    margin-bottom: 20px;
    border: none !important;
}

.myui-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    border-bottom: none !important;
}

.myui-panel__head .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    border: none !important;
}

.myui-panel__head .title a {
    color: var(--text-primary) !important;
}

.myui-panel__head .more {
    font-size: 13px;
    color: var(--text-secondary) !important;
}

.myui-panel__head .more:hover {
    color: var(--text-primary) !important;
}

/* ========== 按钮样式 ========== */
.btn-default {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
}

.btn-default:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
}

.btn-warm {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)) !important;
    color: var(--text-primary) !important;
    border: none !important;
}

/* ========== 下拉菜单 ========== */
.dropdown-box .item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.dropdown-box .item a {
    color: var(--text-secondary) !important;
}

.dropdown-box .item a:hover {
    color: var(--text-primary) !important;
}

/* ========== 页脚样式 ========== */
.myui-foot {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 15px 0 20px;
}

.myui-foot a {
    color: var(--text-secondary) !important;
}

.myui-foot a:hover {
    color: var(--text-primary) !important;
}

/* ========== 返回顶部悬浮按钮 ========== */
.myui-extra {
    position: fixed !important;
    right: 20px !important;
    bottom: 80px !important;
    z-index: 99999 !important;
}

.myui-extra li {
    padding: 0 !important;
}

.myui-extra li a.backtop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    background: rgba(139, 92, 246, 0.9) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5) !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

.myui-extra li a.backtop:hover {
    background: var(--accent-purple) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6) !important;
}

/* ========== H5 底部导航栏 - 样式由foot.html内联定义 ========== */
/* 底部导航的主要样式已移至foot.html的<style>标签中，避免冲突 */

/* ========== H5移动端头部 ========== */
.h5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 9998;
    display: none;
}

.h5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 10px;
}

.h5-logo img {
    height: 28px;
    width: auto;
}

.h5-header-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.h5-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    font-size: 16px;
}

.h5-icon:hover {
    color: var(--accent-blue);
}

/* H5 搜索面板 */
.h5-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-secondary);
    z-index: 10000;
    display: none;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.h5-search-panel.active {
    display: flex;
}

.h5-search-panel form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.h5-search-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.h5-search-btn,
.h5-search-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

/* ========== 文字辅助类 ========== */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-333,
.text-666 {
    color: var(--text-secondary) !important;
}

.text-fff {
    color: var(--text-primary) !important;
}

a {
    color: var(--text-primary);
}

a:hover {
    color: var(--accent-blue);
}

/* ========== 徽章样式 ========== */
.badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
}

.badge-first {
    background: #ef4444 !important;
    color: var(--text-primary) !important;
}

.badge-second {
    background: #f97316 !important;
    color: var(--text-primary) !important;
}

.badge-third {
    background: #eab308 !important;
    color: var(--text-primary) !important;
}

/* ========== 表单元素 ========== */
.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
}

.form-control:focus {
    border-color: var(--accent-blue) !important;
}

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* ========== 搜索结果页面 ========== */
.myui-vodlist__media li {
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--border-subtle);
}

.myui-vodlist__media .thumb img {
    border-radius: var(--radius-card);
}

.myui-vodlist__media .detail .title {
    color: var(--text-primary);
}

.myui-vodlist__media .detail p {
    color: var(--text-secondary);
}

/* ========== 响应式设计 ========== */

/* 平板 */
@media (max-width: 1399px) {
    .myui-vodlist {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 1199px) {
    .myui-vodlist {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 991px) {
    .myui-vodlist {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
}

/* 手机 - 显示底部导航和移动端头部 */
@media (max-width: 767px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    body {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
    }

    /* H5主内容区域距离顶部导航间距 */
    .container {
        margin-top: 10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* H5推荐板块顶部间距 */
    .myui-panel.bg-transparent {
        margin-top: 5px !important;
        padding-top: 0 !important;
    }

    /* H5分类页顶部推荐轮播间距 - 修复与header的间距 */
    #index-hot {
        margin-top: 8px !important;
        padding-top: 15px !important;
    }

    /* 确保分类页内容与header有足够间距 */
    .myui-topbg+.h5-header+.container,
    .h5-header+.container,
    body>.container:first-of-type {
        margin-top: 15px !important;
    }

    /* 显示H5头部 */
    .h5-header {
        display: block !important;
    }

    /* 隐藏PC端头部 */
    .myui-header__top {
        display: none !important;
    }

    .myui-topbg {
        display: none !important;
    }

    /* 视频卡片网格 - 移动端3列 - CLS优化 */
    .myui-vodlist {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        contain: layout style !important;
    }

    .myui-vodlist>li {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        contain: layout style !important;
    }

    .myui-vodlist__box {
        width: 100% !important;
        contain: layout style !important;
    }

    .myui-vodlist__thumb {
        width: 100% !important;
        padding-top: 140% !important;
        border-radius: 6px !important;
        /* CLS防抖动 - 固定宽高比 */
        aspect-ratio: 2/3 !important;
        contain: layout style !important;
        transform: translateZ(0);
    }

    .myui-vodlist__detail .title {
        font-size: 12px;
    }

    .myui-vodlist__detail .text {
        display: none;
    }

    .myui-panel__head .title {
        font-size: 15px;
    }

    .pic-tag-top {
        font-size: 11px;
        padding: 3px 8px;
        top: 6px;
        left: 6px;
    }

    .pic-tag-top::before {
        font-size: 11px;
    }

    .pic-text {
        font-size: 9px;
        bottom: 6px;
        right: 6px;
        padding: 2px 6px !important;
        max-width: calc(100% - 12px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ========== H5 CLS防抖动优化 ========== */
    /* 面板容器固定布局 */
    .myui-panel {
        contain: layout style !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .myui-panel_bd {
        contain: layout style !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* 防止图片加载导致的布局偏移 */
    .myui-vodlist__box {
        min-height: 0 !important;
        contain: layout style !important;
    }

    /* 图片占位 - 固定宽高比防止重绘 */
    .myui-vodlist__thumb {
        min-height: calc(100% * 1.4) !important;
        background-color: #1a1a2e !important;
    }

    /* 标题固定高度 */
    .myui-vodlist__detail {
        min-height: 28px !important;
        contain: layout !important;
    }

    .myui-foot {
        padding: 10px 0 15px !important;
        margin-bottom: 0 !important;
    }

    /* H5返回顶部按钮位置 - 在底部导航上方 */
    .myui-extra {
        right: 15px !important;
        bottom: 75px !important;
    }

    .myui-extra li a.backtop {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .myui-vodlist {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .h5-bottom-nav li a span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
}

/* ========== Bootstrap响应式类强制执行 ========== */
/* PC端(桌面≥768px): 隐藏移动端专用元素 */
@media (min-width: 768px) {

    .visible-xs,
    .visible-sm {
        display: none !important;
    }
}

/* ========== 公告样式 ========== */
.myui-msg_text {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
}

.myui-msg_text a {
    color: var(--accent-blue) !important;
}

/* ========== 筛选列表样式 ========== */
.myui-screen__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid var(--border-subtle);
}

.myui-screen__list li {
    margin: 0 !important;
    padding: 0 !important;
}

.myui-screen__list li a.btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.myui-screen__list li a.btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.myui-screen__list li a.btn.btn-warm {
    color: var(--text-primary) !important;
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

.myui-screen__list li a.btn.text-muted {
    color: var(--text-muted) !important;
    background: transparent !important;
    font-weight: 600;
    min-width: 40px;
}

/* 筛选面板背景 */
.myui-panel-bg2 {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.slideDown-box {
    padding: 0;
}

/* ========== 图片尺寸统一 ========== */
.myui-vodlist__thumb {
    padding-top: 140% !important;
    /* 固定宽高比 */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--bg-card) !important;
}

/* lazyload占位和加载状态 - 带SVG动画 */
/* 使用 ::before 伪元素作为loading层，不受opacity影响 */
.myui-vodlist__thumb.lazyload,
.myui-vodlist__thumb.lazyloading,
.myui-vodlist__thumb:has(img.lazyload),
.myui-vodlist__thumb:has(img.lazyloading) {
    position: relative;
}

/* Loading动画层 - 使用::before伪元素 */
.myui-vodlist__thumb.lazyload::before,
.myui-vodlist__thumb.lazyloading::before,
.myui-vodlist__thumb:has(img.lazyload)::before,
.myui-vodlist__thumb:has(img.lazyloading)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: var(--bg-card);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><circle cx="50" cy="60" r="15" fill="none" stroke="%233b82f6" stroke-width="3" stroke-dasharray="70" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 50 60" to="360 50 60" dur="1s" repeatCount="indefinite"/></circle><text x="50" y="95" text-anchor="middle" fill="%236b7280" font-size="8" font-family="sans-serif">加载中...</text></svg>');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% auto;
    pointer-events: none;
}

/* 加载完成后隐藏loading层 */
.myui-vodlist__thumb.lazyloaded::before,
.myui-vodlist__thumb:has(img.lazyloaded)::before {
    display: none;
}

/* 有背景图的元素不显示loading */
.myui-vodlist__thumb[style*="url("]::before {
    display: none;
}

/* 加载失败或无图时显示占位图 */
.myui-vodlist__thumb.lazyload-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: var(--bg-card);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><path d="M35 50 L65 50 L65 80 L35 80 Z" fill="none" stroke="%234b5563" stroke-width="2"/><circle cx="45" cy="60" r="4" fill="%234b5563"/><path d="M38 75 L48 65 L55 72 L62 62 L62 75 Z" fill="%234b5563"/><text x="50" y="100" text-anchor="middle" fill="%236b7280" font-size="7" font-family="sans-serif">暂无图片</text></svg>');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% auto;
    pointer-events: none;
}

/* img标签懒加载过渡效果 - 移除opacity:0避免隐藏父容器背景 */
img.lazyload,
img.lazyloading {
    opacity: 0.01;
    /* 使用0.01而非0，避免完全隐藏 */
    transition: opacity 0.3s ease;
}

img.lazyloaded {
    opacity: 1;
}

/* 容器有img.lazyload子元素时的loading背景 (兼容不支持:has的浏览器) */
.myui-vodlist__thumb.picture.loading {
    position: relative;
}

.myui-vodlist__thumb.picture.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: var(--bg-card);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><circle cx="50" cy="60" r="15" fill="none" stroke="%233b82f6" stroke-width="3" stroke-dasharray="70" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 50 60" to="360 50 60" dur="1s" repeatCount="indefinite"/></circle><text x="50" y="95" text-anchor="middle" fill="%236b7280" font-size="8" font-family="sans-serif">加载中...</text></svg>');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 40% auto;
    pointer-events: none;
}

/* ========== Flickity轮播样式 - 栏目页顶部推荐 ========== */
/* 使其与普通视频列表卡片尺寸和间距保持一致 */
#index-hot {
    padding: 20px 0 !important;
    margin-top: 25px;
}

/* 首页/栏目页顶部推荐 - 通用推荐卡片样式 */
#index-hot .recommend-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 15px;
    padding: 8px 0 10px;
    margin: 0;
    list-style: none;
}

#index-hot .recommend-item {
    flex: 0 0 calc((100% - 90px) / 7);
    min-width: 0;
}

#index-hot .recommend-thumb {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 140%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

#index-hot .recommend-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

#index-hot .recommend-thumb .pic-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    padding: 4px 10px;
    background: linear-gradient(135deg, #a08c3a, #8b7a2e);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

#index-hot .recommend-thumb .pic-tag::before {
    content: "★ ";
    color: #ffd700;
    font-size: 12px;
}

#index-hot .recommend-thumb .pic-text {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
    background: #5865F2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    z-index: 2;
}

#index-hot .recommend-info {
    padding: 8px 0;
}

#index-hot .recommend-info .title {
    font-size: 13px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

#index-hot .recommend-info .title a {
    color: inherit;
    text-decoration: none;
}

#index-hot .myui-panel-box {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 !important;
    box-sizing: border-box;
}

#index-hot .myui-panel_bd {
    padding: 10px 0 0 0 !important;
}

#index-hot .myui-panel_bd.col-pd {
    padding: 10px 0 0 0 !important;
}

.index-hot-h5 {
    display: none;
}

/* 首页内容区域顶部间距 */
.myui-panel:first-of-type,
body>.container:first-of-type {
    margin-top: 20px;
}

/* PC端轮播 - 移除所有内部padding使其与下方内容对齐 */
#index-hot .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

#index-hot .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Flickity轮播容器 - 修复循环空白问题 */
#index-hot .flickity {
    margin-left: -8px;
    margin-right: -8px;
    overflow: hidden;
}

/* 轮播项目 - 统一使用7列布局（与首页一致） */
/* 移除直接子选择器，确保能匹配Flickity内部嵌套的元素 */
#index-hot .flickity div[class*="col-"],
#index-hot .flickity-slider>div[class*="col-"] {
    width: calc(100% / 7) !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

/* 卡片样式统一 */
.flickity .myui-vodlist__box {
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.flickity .myui-vodlist__thumb {
    padding-top: 140% !important;
    border-radius: var(--radius-card) !important;
    background-size: cover !important;
    background-position: center !important;
}

.flickity .myui-vodlist__detail {
    padding: 8px 2px 0;
}

.flickity .myui-vodlist__detail .title {
    font-size: 13px;
    font-weight: 600;
}

.flickity .myui-vodlist__detail .text {
    font-size: 11px;
}

/* 响应式：平板 */
@media (max-width: 1399px) {

    #index-hot .flickity div[class*="col-"],
    #index-hot .flickity-slider>div[class*="col-"] {
        width: calc(100% / 6) !important;
    }
}

@media (max-width: 1199px) {

    #index-hot .flickity div[class*="col-"],
    #index-hot .flickity-slider>div[class*="col-"] {
        width: calc(100% / 5) !important;
    }
}

@media (max-width: 991px) {

    #index-hot .flickity div[class*="col-"],
    #index-hot .flickity-slider>div[class*="col-"] {
        width: calc(100% / 4) !important;
    }
}

/* 响应式：移动端 */
@media (max-width: 767px) {

    /* H5分类页顶部推荐栏 - 距离固定导航栏间距 */
    #index-hot {
        padding: 15px 0 !important;
        margin-top: 5px !important;
        padding-top: 15px !important;
    }

    #index-hot .recommend-scroll {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 10px 0 10px;
    }

    #index-hot .recommend-scroll::-webkit-scrollbar {
        display: none;
    }

    #index-hot .recommend-scroll {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #index-hot .recommend-item {
        flex: 0 0 calc((100vw - 50px) / 3);
        min-width: calc((100vw - 50px) / 3);
        max-width: calc((100vw - 50px) / 3);
        scroll-snap-align: start;
    }

    #index-hot .myui-panel-box {
        padding: 0 15px;
    }

    #index-hot .myui-panel_bd {
        padding-top: 0;
    }

    .index-hot-pc {
        display: none;
    }

    .index-hot-h5 {
        display: block;
    }

    /* H5分类页容器顶部间距 */
    body.active .container {
        margin-top: 5px !important;
    }

    /* H5分类页第一个面板顶部间距 */
    body.active .myui-panel.myui-panel-bg:first-of-type {
        margin-top: 10px !important;
    }

    #index-hot .flickity div[class*="col-"],
    #index-hot .flickity-slider>div[class*="col-"] {
        width: calc(100% / 3) !important;
        padding: 0 4px !important;
    }

    #index-hot .flickity {
        margin-left: -4px;
        margin-right: -4px;
    }

    .flickity .myui-vodlist__thumb {
        border-radius: 6px !important;
    }

    .flickity .myui-vodlist__detail .title {
        font-size: 12px;
    }

    .flickity .myui-vodlist__detail .text {
        display: none;
    }
}

/* ========== 筛选页H5适配 ========== */
@media (max-width: 767px) {
    .myui-screen__list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 6px 0;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .myui-screen__list::-webkit-scrollbar {
        display: none;
    }

    .myui-screen__list li a.btn {
        padding: 3px 10px;
        font-size: 12px;
    }

    .myui-panel-bg2 {
        padding: 8px 10px;
        border-radius: 8px;
    }

    .slideDown-btn {
        display: none;
    }
}

/* ========== 搜索页面样式 ========== */
.myui-search__form .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 20px;
}

.myui-search__tbox {
    background: transparent !important;
}

.myui-search__tbox .title {
    color: var(--text-primary) !important;
}

.hot-tag a {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
    border-radius: 15px;
    padding: 4px 12px !important;
}

.hot-tag a:hover {
    background: var(--accent-blue) !important;
    color: var(--text-primary) !important;
}


/* ========== PC端搜索框优化 ========== */
.pc-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 24px;
    margin-top: 4px;
}

.pc-search-box form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0 4px 0 16px;
    transition: all 0.3s ease;
}

.pc-search-box form:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.pc-search-box .search-input {
    width: 200px;
    height: 38px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.pc-search-box .search-input::placeholder {
    color: var(--text-muted);
}

.pc-search-box .search-btn {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-search-box .search-btn svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.pc-search-box .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ========== 导航菜单优化 ========== */
.myui-header__menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Target all child elements (including broken liclass tags) */
.myui-header__menu>* {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 2px;
    float: none !important;
}

.myui-header__menu li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 2px;
    float: none !important;
}

/* Direct link styling - targets all a tags */
.myui-header__menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary) !important;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.myui-header__menu a:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Active state - multiple selectors for different HTML structures */
.myui-header__menu li.active a,
.myui-header__menu .active a,
.myui-header__menu [class*="active"] a {
    color: #fff !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    font-weight: 600;
}

/* ========== 用户功能区优化 ========== */
.myui-header__user {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.myui-header__user>li {
    margin-left: 8px;
}

.myui-header__user>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary) !important;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.myui-header__user>li>a:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08);
}

/* ========== 功能导航区 - 参考freeymxz设计 ========== */
.myui-header__actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

.myui-header__actions>li {
    position: relative;
    display: inline-block !important;
}

.myui-header__actions .action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.myui-header__actions .action-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08);
}

.myui-header__actions .action-link i {
    font-size: 15px;
}

.myui-header__actions .action-link span {
    font-size: 14px;
}

/* 下拉菜单标题 */
.myui-header__actions .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: #fff;
}

.myui-header__actions .dropdown-header a {
    font-size: 12px;
    color: #ef4444 !important;
}

/* 播放历史列表样式 */
.myui-header__actions .history-item {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.myui-header__actions .history-item:last-child {
    border-bottom: none;
}

.myui-header__actions .history-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary) !important;
}

.myui-header__actions .history-item a:hover {
    color: var(--text-primary) !important;
}

.myui-header__actions .history-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.myui-header__actions .history-part {
    color: #8b5cf6;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.myui-header__actions .history-empty {
    padding: 40px 0;
    text-align: center;
    color: #6b7280;
}

/* ========== 下拉菜单暗黑适配 ========== */
.dropdown-box .item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    padding: 12px !important;
}

.dropdown-box .item p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.dropdown-box .item a {
    color: var(--text-secondary) !important;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-box .item a:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08);
}

.history-list p {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.history-list p:last-child {
    border-bottom: none;
}

/* ========== 详情页样式优化 ========== */
.myui-content__thumb {
    float: left;
    margin-right: 20px;
}

.myui-content__detail {
    overflow: hidden;
}

.myui-content__detail .title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.myui-content__detail .data {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.myui-content__detail .data a {
    color: var(--accent-blue) !important;
    margin-right: 8px;
}

.myui-content__detail .data a:hover {
    color: var(--accent-purple) !important;
}

.myui-content__detail .desc {
    color: var(--text-secondary);
    line-height: 1.8;
}

.myui-content__detail .score {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.myui-content__detail .score .branch {
    font-size: 28px;
    font-weight: 700;
    color: #fbbf24;
    margin-left: 10px;
}

.myui-content__detail .score .rating li {
    display: inline-block;
    cursor: pointer;
}

.myui-content__detail .score .rating li .fa {
    color: #fbbf24;
    font-size: 18px;
}

/* ========== 操作按钮优化 ========== */
.myui-content__operate {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.myui-content__operate .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
}

.myui-content__operate .btn-warm {
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.myui-content__operate .btn-warm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.myui-content__operate .btn-danger {
    background: linear-gradient(135deg, var(--accent-purple), #6366f1) !important;
    border: none !important;
}

/* ========== 播放页样式优化 ========== */
.myui-player {
    background: var(--bg-primary);
    padding: 0 !important;
    margin-top: 0 !important;
}

/* 播放页去除顶部空白 */
body.player-page {
    padding-top: 0 !important;
}

body.player-page .myui-topbg {
    display: none !important;
    height: 0 !important;
}

.myui-player__box {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.myui-player__video {
    background: #000;
}

/* 播放器右侧集数列表 */
#player-sidebar {
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
}

#player-sidebar .myui-panel {
    background: transparent !important;
    margin: 0 !important;
}

#player-sidebar .myui-panel__head .title {
    font-size: 16px !important;
    color: #fff !important;
}

#player-sidebar .tab-content {
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
}

#player-sidebar .myui-content__list.playlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none !important;
    overflow: visible !important;
}

#player-sidebar .myui-content__list.playlist li {
    margin: 0 !important;
    flex: 0 0 auto;
}

#player-sidebar .myui-content__list.playlist .btn {
    min-width: 70px;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

.myui-player__operate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-secondary) !important;
    border-radius: 0 0 8px 8px;
}

.myui-player__operate>li {
    margin-right: 15px;
}

.myui-player__operate>li>a {
    color: var(--text-secondary) !important;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.myui-player__operate>li>a:hover {
    color: var(--text-primary) !important;
}

.myui-player__operate>li>a .fa {
    font-size: 14px;
}

/* ========== 面包屑导航 ========== */
.mbxdh {
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.mbxdh a {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
}

.mbxdh a:hover {
    color: var(--accent-blue) !important;
}

/* ========== 侧边栏样式 ========== */
.myui-sidebar .myui-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

/* ========== 首页榜单区域样式优化 ========== */
/* 榜单面板容器 */
.myui-panel.myui-panel-bg {
    background: transparent;
    margin-bottom: 30px;
}

/* 榜单标题样式 */
.myui-panel-bg .myui-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.myui-panel-bg .myui-panel__head .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 14px;
}

.myui-panel-bg .myui-panel__head .title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 2px;
}

.myui-panel-bg .myui-panel__head .more {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.myui-panel-bg .myui-panel__head .more:hover {
    color: var(--accent-purple);
}

/* 榜单顶部卡片（第1名） */
.myui-vodlist__media.active li {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.myui-vodlist__media.active li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
}

.myui-vodlist__media .thumb .myui-vodlist__thumb {
    border-radius: 6px;
    overflow: hidden;
}

.myui-vodlist__media .detail .title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.myui-vodlist__media .detail .font-12 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.5;
}

/* 榜单列表项（2-10名） */
.myui-vodlist__text li {
    padding: 10px 8px;
    margin-bottom: 2px;
    border-radius: 6px;
    border-bottom: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.myui-vodlist__text li:hover {
    background: rgba(255, 255, 255, 0.04);
}

.myui-vodlist__text li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.myui-vodlist__text li a {
    color: var(--text-secondary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
    font-size: 13px;
    max-width: 100%;
    overflow: hidden;
}

/* 标题文字截断控制 */
.myui-vodlist__text li a .badge+span,
.myui-vodlist__text .top-line-dot {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.myui-vodlist__text li a:hover {
    color: var(--text-primary) !important;
}

/* 排名徽章样式优化 */
.myui-vodlist__text .badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.myui-vodlist__text .badge-radius {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* 前三名特殊样式 */
.myui-vodlist__text .badge-first {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.myui-vodlist__text .badge-second {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.myui-vodlist__text .badge-third {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #fff;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
}

/* 更新状态标签 */
.myui-vodlist__text li .pull-right {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
}

/* 排行榜列表Grid布局 - PC端3列，现代化设计 */
.myui-vodlist__text.col-pd {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px 24px !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 禁用clearfix伪元素，防止占用Grid槽位 */
.myui-vodlist__text.col-pd::before,
.myui-vodlist__text.col-pd::after {
    display: none !important;
}

.myui-vodlist__text.col-pd>li {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    float: none !important;
    border-radius: 8px;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background-color;
}

/* 悬停效果 - 更明显的视觉反馈 */
.myui-vodlist__text.col-pd>li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.myui-vodlist__text.col-pd>li:hover a {
    color: var(--text-primary) !important;
}

.myui-vodlist__text.col-pd>li:hover .badge {
    transform: scale(1.1);
}

/* 响应式：平板2列 */
@media (max-width: 1199px) {
    .myui-vodlist__text.col-pd {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px 20px !important;
    }
}

/* 响应式：移动端1列 */
@media (max-width: 767px) {
    .myui-vodlist__text.col-pd {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
    }

    .myui-vodlist__text.col-pd>li {
        padding: 8px 10px !important;
    }
}


/* ========== 首页榜单区域重构样式 ========== */
/* 榜单容器 - 4列布局 */
.ranking-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 15px 0;
}

/* 每个榜单列 */
.ranking-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ranking-column:hover {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.04);
}

/* 榜单标题 */
.ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.ranking-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    padding-left: 12px;
    position: relative;
}

.ranking-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 2px;
}

.ranking-more {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.ranking-more:hover {
    color: var(--accent-purple);
}

/* 第1名卡片 */
.ranking-top-card {
    margin-bottom: 12px;
}

.ranking-top-link {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.ranking-top-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
}

/* 第1名图片容器 */
.ranking-top-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 110px;
    border-radius: 6px;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* 懒加载图片显示 */
.ranking-top-thumb.lazyloaded,
.ranking-top-thumb[style*="background-image"] {
    background-size: cover !important;
}

/* 第1名徽章 */
.ranking-badge-top {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* 第1名信息 */
.ranking-top-info {
    flex: 1;
    min-width: 0;
}

.ranking-top-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-top-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 排行列表 */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    margin-bottom: 2px;
}

.ranking-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ranking-item-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* 排名徽章 */
.ranking-badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.ranking-badge.badge-second {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.ranking-badge.badge-third {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #fff;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
}

/* 影片名称 - 左对齐 */
.ranking-item-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.ranking-item-link:hover .ranking-item-name {
    color: var(--text-primary);
}

/* 更新状态 */
.ranking-item-status {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .ranking-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 1200px) {
    .ranking-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .ranking-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    /* ========== 侧边栏榜单样式（搜索页等） ========== */
    .sidebar-ranking {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .sidebar-ranking .ranking-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        margin-bottom: 15px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .sidebar-ranking .ranking-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        padding-left: 12px;
        position: relative;
    }

    .sidebar-ranking .ranking-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 14px;
        background: linear-gradient(180deg, #8b5cf6, #6366f1);
        border-radius: 2px;
    }

    .sidebar-ranking .ranking-more {
        font-size: 12px;
        color: var(--text-muted);
    }

    .sidebar-ranking .ranking-more:hover {
        color: var(--accent-purple);
    }

    .sidebar-ranking .ranking-top-card {
        margin-bottom: 12px;
    }

    .sidebar-ranking .ranking-top-link {
        display: flex;
        gap: 10px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid var(--border-subtle);
        transition: all 0.2s ease;
    }

    .sidebar-ranking .ranking-top-link:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--accent-purple);
    }

    .sidebar-ranking .ranking-top-thumb {
        flex-shrink: 0;
        width: 70px;
        height: 95px;
        border-radius: 6px;
        background-color: var(--bg-card);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

    .sidebar-ranking .ranking-top-thumb.lazyloaded,
    .sidebar-ranking .ranking-top-thumb[style*="background-image"] {
        background-size: cover !important;
    }

    .sidebar-ranking .ranking-badge-top {
        position: absolute;
        top: 5px;
        left: 5px;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    }

    .sidebar-ranking .ranking-top-info {
        flex: 1;
        min-width: 0;
    }

    .sidebar-ranking .ranking-top-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-ranking .ranking-top-meta {
        font-size: 11px;
        color: var(--text-muted);
        margin: 0 0 3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-ranking .ranking-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-ranking .ranking-item {
        margin-bottom: 2px;
    }

    .sidebar-ranking .ranking-item-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 5px;
        border-radius: 5px;
        transition: all 0.2s ease;
    }

    .sidebar-ranking .ranking-item-link:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .sidebar-ranking .ranking-badge {
        flex-shrink: 0;
        min-width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        border-radius: 4px;
    }

    .sidebar-ranking .ranking-badge.badge-second {
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #fff;
    }

    .sidebar-ranking .ranking-badge.badge-third {
        background: linear-gradient(135deg, #eab308, #ca8a04);
        color: #fff;
    }

    .sidebar-ranking .ranking-item-name {
        flex: 1;
        font-size: 12px;
        color: var(--text-secondary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
    }

    .sidebar-ranking .ranking-item-link:hover .ranking-item-name {
        color: var(--text-primary);
    }

    .sidebar-ranking .ranking-item-status {
        flex-shrink: 0;
        font-size: 10px;
        color: var(--text-muted);
    }


    /* ========== 搜索页标题左对齐 ========== */
    .myui-panel__head.section-header-flex .title {
        text-align: left;
    }

    .myui-panel__head.search-header-only {
        display: block !important;
        padding: 0 0 12px;
    }

    .myui-panel__head.search-header-only .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
        text-align: left;
    }


    .myui-page {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        text-align: center;
        padding: 20px 0;
        list-style: none;
        margin: 0;
    }

    .myui-page li {
        display: inline-block;
        margin: 0;
    }

    .myui-page li a,
    .myui-page li .num {
        display: inline-block;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        color: var(--text-secondary);
        font-size: 13px;
        transition: all 0.2s ease;
    }

    .myui-page li a:hover {
        background: rgba(139, 92, 246, 0.15);
        border-color: var(--accent-purple);
        color: var(--text-primary);
    }

    .myui-page li.active a,
    .myui-page li.active .num {
        background: linear-gradient(135deg, var(--accent-purple), #6366f1);
        border-color: var(--accent-purple);
        color: var(--text-primary);
    }

    /* H5分页 - 一排显示，自适应大小 */
    @media (max-width: 767px) {
        .myui-page {
            display: flex !important;
            flex-wrap: nowrap !important;
            justify-content: center;
            gap: 6px;
            padding: 15px 10px;
        }

        .myui-page li {
            flex: 1;
            max-width: none;
            margin: 0 !important;
            float: none !important;
            width: auto !important;
        }

        .myui-page li a,
        .myui-page li .num {
            display: block;
            width: 100%;
            padding: 10px 5px;
            font-size: 13px;
            text-align: center;
            white-space: nowrap;
        }
    }

    /* ========== 搜索结果页优化 ========== */
    .myui-vodlist__media {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .myui-vodlist__media li {
        display: flex;
        padding: 15px 0 !important;
        border-bottom: 1px solid var(--border-subtle);
    }

    .myui-vodlist__media li:last-child {
        border-bottom: none;
    }

    /* 搜索结果图片容器 */
    .myui-vodlist__media .thumb {
        flex-shrink: 0;
        position: relative;
    }

    .myui-vodlist__media .thumb.searchThumb {
        width: 150px;
    }

    .myui-vodlist__media .thumb .myui-vodlist__thumb {
        display: block;
        width: 150px;
        height: 210px;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: var(--bg-card);
        border-radius: var(--radius-card);
        position: relative;
        overflow: hidden;
    }

    .myui-vodlist__media .thumb .myui-vodlist__thumb.lazyload {
        background-color: var(--bg-card);
    }

    .myui-vodlist__media .thumb .pic-tag-top {
        position: absolute;
        top: 8px;
        left: 8px;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        z-index: 5;
    }

    .myui-vodlist__media .thumb .pic-text {
        position: absolute;
        bottom: 8px;
        right: 8px;
        font-size: 12px;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    .myui-vodlist__media .detail {
        flex: 1;
        padding-left: 15px !important;
        cursor: pointer;
        min-width: 0;
    }

    .myui-vodlist__media .detail h4.title {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 10px;
    }

    .myui-vodlist__media .detail h4.title a {
        color: var(--text-primary) !important;
    }

    .myui-vodlist__media .detail h4.title a:hover {
        color: var(--accent-blue) !important;
    }

    .myui-vodlist__media .detail p {
        font-size: 13px;
        color: var(--text-secondary);
        margin-bottom: 6px;
        line-height: 1.6;
    }

    /* 搜索结果H5适配 - 图片左侧，信息右侧 */
    @media (max-width: 767px) {
        .myui-vodlist__media li {
            display: flex !important;
            flex-direction: row !important;
            align-items: flex-start;
            padding: 12px 0 !important;
        }

        .myui-vodlist__media .thumb.searchThumb {
            width: 100px;
            flex-shrink: 0;
        }

        .myui-vodlist__media .thumb .myui-vodlist__thumb {
            width: 100px;
            height: 140px;
        }

        .myui-vodlist__media .detail {
            flex: 1;
            min-width: 0;
            padding-left: 12px !important;
            display: flex;
            flex-direction: column;
        }

        .myui-vodlist__media .detail h4.title {
            font-size: 15px;
            font-weight: 600;
            margin: 0 0 6px;
            line-height: 1.3;
        }

        .myui-vodlist__media .detail p {
            font-size: 12px;
            margin-bottom: 4px;
            line-height: 1.5;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .myui-vodlist__media .detail p:last-of-type {
            margin-bottom: 8px;
        }

        .myui-vodlist__media .thumb .pic-tag-top {
            font-size: 10px;
            padding: 2px 6px;
            top: 5px;
            left: 5px;
        }

        .myui-vodlist__media .thumb .pic-text {
            font-size: 10px;
            bottom: 5px;
            right: 5px;
        }

        /* 隐藏H5下不需要的内容 */
        .myui-vodlist__media .detail .hidden-xs {
            display: none !important;
        }
    }

    /* ========== 友情链接样式 ========== */
    .myui-link__text {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        list-style: none;
        padding: 0;
        margin: 0;
        justify-content: flex-start !important;
    }

    .myui-link__text li {
        margin: 0 !important;
    }

    .myui-link__text li a {
        display: inline-block;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        color: var(--text-secondary) !important;
        font-size: 13px;
        transition: all 0.2s ease;
    }

    .myui-link__text li a:hover {
        background: rgba(139, 92, 246, 0.15);
        border-color: var(--accent-purple);
        color: var(--text-primary) !important;
    }

    /* 友情链接容器左对齐 */
    .myui-panel-bg .myui-panel_bd,
    .myui-panel-bg .myui-panel_hd {
        text-align: left !important;
    }

    .myui-panel-bg .myui-panel_bd .col-xs-1 {
        text-align: left !important;
        width: 100%;
    }

    /* ========== 加载动画 ========== */
    .myui-vodlist__thumb.loading {
        background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-card) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
    }

    @keyframes shimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    /* ========== 玻璃效果 ========== */
    .glass-effect {
        background: rgba(13, 17, 23, 0.85) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    /* ========== 移动端详情页适配 ========== */
    @media (max-width: 767px) {
        .myui-content__thumb {
            float: none;
            margin-right: 0;
            margin-bottom: 15px;
            text-align: center;
        }

        .myui-content__thumb .myui-vodlist__thumb {
            display: inline-block;
            width: 140px !important;
        }

        .myui-content__detail .title {
            font-size: 18px;
            text-align: center;
        }

        .myui-content__detail .score {
            justify-content: center;
        }

        .myui-content__operate {
            text-align: center;
        }

        .myui-content__operate .btn {
            margin: 5px;
        }

        .myui-player__operate {
            justify-content: center;
            gap: 10px;
        }

        .myui-player__operate>li {
            margin-right: 0;
        }
    }

    /* ========== 自动补全搜索建议 ========== */
    .autocomplete-suggestions {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
        overflow: hidden;
    }

    .autocomplete-suggestion {
        padding: 10px 15px !important;
        color: var(--text-secondary) !important;
        border-bottom: 1px solid var(--border-subtle);
        transition: all 0.2s ease;
    }

    .autocomplete-suggestion:last-child {
        border-bottom: none;
    }

    .autocomplete-suggestion:hover,
    .autocomplete-suggestion.selected {
        background: rgba(139, 92, 246, 0.15) !important;
        color: var(--text-primary) !important;
    }

    .autocomplete-suggestion strong {
        color: var(--accent-purple) !important;
    }


    /* ========== PC端头部布局 ========== */
    .myui-header__top .container {
        max-width: 1400px;
    }

    .myui-header__top .header-inner {
        display: flex;
        align-items: center;
        height: 65px;
        padding: 0 15px;
    }

    .myui-header__logo {
        flex-shrink: 0;
        margin-right: 30px;
    }

    .myui-header__logo img {
        height: 40px;
        width: auto;
    }

    .myui-header__menu {
        flex: 1;
    }

    .pc-search-box {
        flex-shrink: 0;
        margin: 0 20px;
    }

    .myui-header__user {
        flex-shrink: 0;
    }

    /* ========== 下拉菜单位置修正 ========== */
    .myui-header__user .dropdown-box.bottom {
        left: auto;
        right: 0;
        margin-left: 0;
    }

    /* ========== 头部固定效果 ========== */
    .myui-header__top {
        position: sticky !important;
        top: 0;
        z-index: 1000;
        height: auto !important;
        transition: all 0.3s ease;
    }

    .myui-header__top.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    /* ========== 移动端头部样式增强 ========== */
    .h5-header {
        background: rgba(13, 17, 23, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .h5-header-inner {
        padding: 0 12px;
    }

    .h5-logo img {
        height: 32px;
        width: auto;
    }

    .h5-header-icons {
        gap: 4px;
    }

    .h5-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .h5-icon:hover,
    .h5-icon:active {
        background: rgba(255, 255, 255, 0.08);
    }

    /* H5搜索面板增强 */
    .h5-search-panel {
        background: rgba(13, 17, 23, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 8px 12px;
    }

    .h5-search-panel form {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .h5-search-input {
        flex: 1;
        height: 40px;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        color: #fff;
        font-size: 15px;
    }

    .h5-search-input:focus {
        border-color: var(--accent-purple);
        outline: none;
    }

    .h5-search-btn {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--accent-purple), #6366f1);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 16px;
    }

    .h5-search-close {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        color: var(--text-secondary);
        font-size: 18px;
    }


    /* ========== 筛选面板暗黑适配 ========== */
    .myui-panel-bg2 {
        background: rgba(255, 255, 255, 0.02) !important;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid var(--border-subtle);
    }

    .myui-panel-bg2 .myui-panel__head {
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .myui-panel-bg2 .myui-panel__head .title {
        font-size: 20px;
    }

    .slideDown-btn {
        color: var(--text-secondary) !important;
        font-size: 13px;
    }

    .slideDown-btn:hover {
        color: var(--text-primary) !important;
    }

    /* ========== 详情页海报加载效果 ========== */
    .myui-vodlist__thumb.picture {
        position: relative;
        overflow: hidden;
    }

    .myui-vodlist__thumb.picture.loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.08) 50%, var(--bg-card) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        z-index: 1;
    }

    .myui-vodlist__thumb.picture img {
        transition: opacity 0.3s ease;
    }

    /* ========== 详情页信息区域 ========== */
    .myui-content__detail .data a {
        display: inline-block;
        padding: 2px 8px;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 4px;
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .myui-content__detail .data a:hover {
        background: rgba(59, 130, 246, 0.2);
    }

    /* ========== 剧情简介区域 ========== */
    .myui-panel-bg .content {
        color: var(--text-secondary);
        line-height: 1.8;
    }

    .myui-panel-bg .content .sketch {
        color: var(--text-secondary);
    }

    /* ========== 常见问题区域 ========== */
    .stui-pannel {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        padding: 20px;
        margin-top: 20px;
        border: 1px solid var(--border-subtle);
    }

    .stui-pannel__head .title {
        font-size: 18px;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .stui-pannel__head .title img {
        width: 24px;
        height: 24px;
    }

    .stui-content__desc {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .stui-content__desc li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-subtle);
        color: var(--text-secondary);
        line-height: 1.8;
    }

    .stui-content__desc li:last-child {
        border-bottom: none;
    }

    .stui-content__desc li b {
        color: var(--text-primary);
    }

    .stui-content__desc li a {
        color: var(--accent-blue) !important;
    }

    /* ========== 播放页线路信息 ========== */
    .st-meta-container {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        padding: 12px;
        margin: 10px 0;
    }

    .st-info-flow {
        color: var(--text-secondary);
    }

    .st-score-num {
        color: #fbbf24 !important;
    }

    .st-type-tag {
        color: #10b981 !important;
    }

    /* ========== 播放页剧集列表 ========== */
    #playlist .btn-default {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--text-secondary) !important;
        margin: 3px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    #playlist .btn-default:hover {
        background: rgba(139, 92, 246, 0.2) !important;
        border-color: var(--accent-purple) !important;
        color: var(--text-primary) !important;
    }

    #playlist .btn-warm {
        background: linear-gradient(135deg, var(--accent-purple), #6366f1) !important;
        border-color: var(--accent-purple) !important;
        color: #fff !important;
    }

    /* ========== 播放页提示信息 ========== */
    .myui-player__box .tips {
        background: rgba(0, 0, 0, 0.8) !important;
        color: var(--text-secondary);
        padding: 10px 15px;
    }

    .myui-player__box .tips li {
        padding: 5px 0;
    }

    .myui-player__box .tips .fa {
        color: var(--accent-blue);
        margin-right: 8px;
    }

    .tips-close-btn {
        color: var(--text-secondary) !important;
        font-size: 16px;
    }

    .tips-close-btn:hover {
        color: var(--text-primary) !important;
    }

    /* ========== 热门评论区域 ========== */
    .styu-message__list {
        border-bottom: 1px solid var(--border-subtle);
    }

    .styu-message__list .data .name {
        color: var(--text-primary);
    }

    .styu-message__list .data .content {
        color: var(--text-secondary);
    }


    /* ========== 移动端菜单按钮样式 ========== */
    @media (max-width: 767px) {
        .myui-panel-bg2 {
            padding: 12px;
            border-radius: 8px;
        }

        .myui-panel-bg2 .myui-panel__head .title {
            font-size: 16px;
        }

        .stui-pannel {
            padding: 15px;
            margin-top: 15px;
        }

        .stui-content__desc li {
            font-size: 13px;
            padding: 8px 0;
        }

        /* 移动端播放页剧集按钮 */
        #playlist .btn-default,
        #playlist .btn-warm {
            padding: 6px 10px;
            font-size: 12px;
            margin: 2px;
        }
    }

    /* ========== 隐藏不需要的背景图 ========== */
    .myui-topbg {
        display: none !important;
    }

    /* ========== 页面整体间距优化 ========== */
    .myui-panel {
        margin-bottom: 20px;
    }

    .myui-panel:last-child {
        margin-bottom: 0;
    }

    /* ========== 榜单区域样式 ========== */
    .myui-vodlist__media.active {
        padding: 0;
    }

    .myui-vodlist__media.active li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .myui-vodlist__media.active li:last-child {
        border-bottom: none;
    }

    .myui-vodlist__media .detail-side h6.title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .myui-vodlist__media .detail-side h6.title a {
        color: var(--text-primary) !important;
    }

    .myui-vodlist__media .detail-side p {
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 4px;
    }


    /* ========== PC详情页布局 - 左图右详情 ========== */
    .detail-header {
        display: flex;
        align-items: flex-start;
        gap: 25px;
        margin-bottom: 20px;
    }

    .detail-header .myui-content__thumb {
        flex-shrink: 0;
        float: none;
        margin: 0;
    }

    .detail-header .myui-vodlist__thumb {
        width: 200px;
        padding-top: 280px;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .detail-header .myui-content__detail {
        flex: 1;
        min-width: 0;
        overflow: visible;
    }

    .detail-header .myui-content__detail .title {
        font-size: 26px;
        font-weight: 700;
        margin: 0 0 15px;
        line-height: 1.3;
        color: var(--text-primary);
    }

    /* 评分行样式 */
    .detail-header .score-line {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
    }

    .detail-header .score-line .stars {
        color: #fbbf24;
        font-size: 16px;
    }

    .detail-header .score-line .stars .fa {
        margin-right: 2px;
    }

    .detail-header .score-line .score-num {
        font-size: 22px;
        font-weight: 700;
        color: #fbbf24;
        margin-left: 8px;
    }

    .detail-header .myui-content__detail .data {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 10px;
        line-height: 1.8;
    }

    .detail-header .myui-content__detail .data a {
        color: var(--text-secondary) !important;
        text-decoration: none;
    }

    .detail-header .myui-content__detail .data a:hover {
        color: var(--accent-blue) !important;
    }

    /* 详情页分类标签 */
    .detail-tags {
        margin-bottom: 12px;
        font-size: 14px;
        color: var(--text-secondary);
    }

    .detail-tags a {
        color: var(--accent-blue) !important;
        margin-right: 5px;
    }

    .detail-tags .tag-divider {
        color: var(--text-muted);
        margin: 0 8px;
    }

    /* 演员信息行 - PC端内联显示 */
    .detail-actors-inline {
        margin-bottom: 15px;
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.8;
    }

    .detail-actors-inline .actors-list a {
        color: var(--text-secondary) !important;
        margin-right: 8px;
    }

    .detail-actors-inline .actors-list a:hover {
        color: var(--accent-purple) !important;
    }

    /* 详情页操作按钮 - PC端 */
    .detail-buttons {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .detail-buttons .btn {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 6px;
    }

    .detail-buttons .btn-warm {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        border: none;
        color: #fff !important;
    }

    .detail-buttons .btn-danger {
        background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
        border: none;
        color: #fff !important;
    }

    .detail-buttons .btn-default {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid var(--border-subtle) !important;
        color: var(--text-secondary) !important;
    }

    /* H5隐藏PC端内联元素 */
    @media (max-width: 767px) {

        .detail-actors-inline,
        .detail-buttons {
            display: none !important;
        }
    }

    /* PC隐藏移动端额外区域 */
    .detail-mobile-extra {
        display: none;
    }

    @media (max-width: 767px) {
        .detail-mobile-extra {
            display: block;
        }
    }

    /* 播放列表标题样式 */
    .playlist-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .playlist-header .title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .playlist-header .title .fa {
        color: var(--accent-purple);
    }

    .playlist-header .sort-button {
        float: none !important;
        order: 2;
    }

    /* 操作按钮样式 */
    .myui-content__operate {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-subtle);
    }

    .myui-content__operate .btn {
        flex: 1;
        text-align: center;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 500;
        border-radius: 6px;
        border: none;
    }

    .myui-content__operate .btn i {
        margin-right: 5px;
    }

    .myui-content__operate .btn-warm {
        background: linear-gradient(135deg, #f97316, #fb923c) !important;
        color: #fff !important;
    }

    .myui-content__operate .btn-danger {
        background: linear-gradient(135deg, #ef4444, #f87171) !important;
        color: #fff !important;
    }

    /* H5移动端详情页 */
    @media (max-width: 767px) {
        .detail-header {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 12px;
            padding: 0;
            margin-bottom: 15px;
        }

        .detail-header .myui-content__thumb {
            flex-shrink: 0;
            width: 120px;
        }

        .detail-header .myui-vodlist__thumb {
            width: 120px !important;
            padding-top: 170px !important;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .detail-header .myui-content__detail {
            flex: 1;
            min-width: 0;
        }

        .detail-header .myui-content__detail .title {
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 8px;
            line-height: 1.3;
        }

        .detail-header .score-line {
            margin-bottom: 8px;
        }

        .detail-header .score-line .stars {
            font-size: 12px;
        }

        .detail-header .score-line .score-num {
            font-size: 16px;
        }

        .detail-header .myui-content__detail .data {
            font-size: 12px;
            margin-bottom: 5px;
            line-height: 1.5;
        }

        .detail-header .myui-content__detail .data .split-line {
            margin: 0 6px;
        }

        .detail-tags {
            font-size: 12px;
            margin-bottom: 0;
        }

        /* H5移动端额外区域 */
        .detail-mobile-extra {
            margin-top: 0;
        }

        .detail-mobile-extra .detail-actors {
            margin-bottom: 15px;
        }

        /* H5操作按钮 - 并排显示 */
        .myui-content__operate {
            display: flex;
            flex-wrap: nowrap;
            gap: 10px;
            margin-top: 15px;
            padding-top: 15px;
        }

        .myui-content__operate .btn {
            flex: 1;
            padding: 12px 10px;
            font-size: 14px;
            border-radius: 6px;
        }

        .myui-content__operate .btn i {
            margin-right: 3px;
        }
    }


    /* 面包屑H5适配 */
    @media (max-width: 767px) {
        .mbxdh {
            font-size: 12px;
            padding: 10px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    /* ========== 首页分区标题样式 ========== */
    .section-header-flex {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 10px;
        border-bottom: none !important;
    }

    .section-header-flex .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
        padding: 0;
        border: none !important;
        flex-shrink: 0;
    }

    /* 搜索页标题容器 - 只有标题时左对齐 */
    .section-header-flex:not(:has(.section-header-right)):not(:has(.more)):not(:has(.more-link)) {
        justify-content: flex-start !important;
    }

    .section-header-right {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
    }

    .section-header-right .update-count {
        font-size: 13px;
        color: var(--text-muted);
    }

    .section-header-right .more-link {
        font-size: 13px;
        color: var(--text-secondary) !important;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: color 0.2s ease;
    }

    .section-header-right .more-link:hover {
        color: var(--accent-blue) !important;
    }

    .section-header-right .more-link i {
        font-size: 12px;
    }

    /* H5适配 */
    @media (max-width: 767px) {
        .section-header-flex {
            padding: 0 0 10px;
        }

        .section-header-flex .title {
            font-size: 15px;
        }

        .section-header-right {
            gap: 10px;
        }

        .section-header-right .update-count {
            font-size: 11px;
        }

        .section-header-right .more-link {
            font-size: 12px;
        }
    }


    /* ========== 懒加载占位图和加载动画 ========== */
    /* 加载中的占位背景 */
    .myui-vodlist__thumb.lazyload,
    .myui-vodlist__thumb.lazyloading {
        background-color: var(--bg-card) !important;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><circle cx="50" cy="60" r="15" fill="none" stroke="%233b82f6" stroke-width="3" stroke-dasharray="70" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 50 60" to="360 50 60" dur="1s" repeatCount="indefinite"/></circle><text x="50" y="95" text-anchor="middle" fill="%236b7280" font-size="8" font-family="sans-serif">加载中...</text></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: 60% auto !important;
    }

    /* 加载完成后显示真实图片 */
    .myui-vodlist__thumb.lazyloaded {
        background-size: cover !important;
        background-position: center center !important;
    }

    /* 加载失败时显示默认图片 */
    .myui-vodlist__thumb.lazyload-error,
    .myui-vodlist__thumb[data-original=""],
    .myui-vodlist__thumb:not([style*="background"]):not(.lazyload):not(.lazyloading) {
        background-color: var(--bg-card) !important;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><path d="M35 50 L65 50 L65 80 L35 80 Z" fill="none" stroke="%234b5563" stroke-width="2"/><circle cx="45" cy="60" r="4" fill="%234b5563"/><path d="M38 75 L48 65 L55 72 L62 62 L62 75 Z" fill="%234b5563"/><text x="50" y="100" text-anchor="middle" fill="%236b7280" font-size="7" font-family="sans-serif">暂无图片</text></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: 60% auto !important;
    }

    /* 搜索结果页懒加载 */
    .myui-vodlist__media .thumb .myui-vodlist__thumb.lazyload,
    .myui-vodlist__media .thumb .myui-vodlist__thumb.lazyloading {
        background-size: 50% auto !important;
    }

    /* 详情页海报懒加载 */
    .myui-content__thumb .lazyload,
    .myui-content__thumb .lazyloading {
        background-color: var(--bg-card) !important;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><circle cx="50" cy="60" r="15" fill="none" stroke="%233b82f6" stroke-width="3" stroke-dasharray="70" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 50 60" to="360 50 60" dur="1s" repeatCount="indefinite"/></circle><text x="50" y="95" text-anchor="middle" fill="%236b7280" font-size="8" font-family="sans-serif">加载中...</text></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: 40% auto !important;
    }

    /* img标签的懒加载 */
    img.lazyload,
    img.lazyloading {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    img.lazyloaded {
        opacity: 1;
    }

    /* 图片容器加载状态 */
    .myui-vodlist__thumb:has(img.lazyload),
    .myui-vodlist__thumb:has(img.lazyloading),
    .picture:has(img.lazyload),
    .picture:has(img.lazyloading) {
        position: relative;
        background-color: var(--bg-card) !important;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><circle cx="50" cy="60" r="15" fill="none" stroke="%233b82f6" stroke-width="3" stroke-dasharray="70" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 50 60" to="360 50 60" dur="1s" repeatCount="indefinite"/></circle><text x="50" y="95" text-anchor="middle" fill="%236b7280" font-size="8" font-family="sans-serif">加载中...</text></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: 40% auto !important;
    }


    /* ========== 筛选页面修复 ========== */
    /* 确保筛选项始终显示 */
    .slideDown-box {
        display: block !important;
    }

    /* 筛选页标题样式 */
    .myui-panel-bg2 .myui-panel__head.section-header-flex {
        padding-bottom: 15px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .myui-panel-bg2 .myui-panel__head .title {
        font-size: 18px;
        font-weight: 600;
    }

    /* 筛选列表确保显示 */
    .myui-screen__list {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        border-bottom: 1px solid var(--border-subtle);
        visibility: visible !important;
        opacity: 1 !important;
    }

    .myui-screen__list li {
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
        visibility: visible !important;
    }

    .myui-screen__list li a.btn {
        display: inline-block !important;
        padding: 4px 12px;
        font-size: 13px;
        color: var(--text-secondary);
        background: transparent;
        border: 1px solid transparent;
        border-radius: 16px;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 视频列表确保显示 */
    .myui-panel-bg .myui-vodlist {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .myui-panel-bg .myui-vodlist>li {
        display: block !important;
        visibility: visible !important;
    }


    /* ========== 修复内联背景图被覆盖的问题 ========== */
    /* 如果元素有内联 style 设置了 background，不要覆盖 */
    .myui-vodlist__thumb[style*="background"] {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* 只有带 lazyload 类且没有内联背景的才显示加载动画 */
    .myui-vodlist__thumb.lazyload:not([style*="background"]),
    .myui-vodlist__thumb.lazyloading:not([style*="background"]) {
        background-color: var(--bg-card) !important;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140"><rect fill="%231a1a2e" width="100" height="140"/><circle cx="50" cy="60" r="15" fill="none" stroke="%233b82f6" stroke-width="3" stroke-dasharray="70" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 50 60" to="360 50 60" dur="1s" repeatCount="indefinite"/></circle><text x="50" y="95" text-anchor="middle" fill="%236b7280" font-size="8" font-family="sans-serif">加载中...</text></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: 60% auto !important;
    }

    /* 轮播图/推荐区域的图片样式 */
    .flickity .myui-vodlist__thumb {
        background-size: cover !important;
        background-position: center center !important;
    }


    /* ========== H5详情页布局优化 ========== */
    @media (max-width: 767px) {

        /* 详情头部布局 */
        .detail-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 0;
        }

        .detail-header .myui-content__thumb {
            flex-shrink: 0;
            width: 110px;
            float: none;
            margin: 0;
        }

        .detail-header .myui-content__thumb .myui-vodlist__thumb {
            width: 110px;
            height: 155px;
            padding-top: 0 !important;
        }

        .detail-header .myui-content__detail {
            flex: 1;
            min-width: 0;
            overflow: visible;
        }

        .detail-header .myui-content__detail .title {
            font-size: 17px;
            font-weight: 700;
            margin: 0 0 8px;
            line-height: 1.3;
            color: #fff;
        }

        .detail-header .myui-content__detail .score-line {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
        }

        .detail-header .myui-content__detail .score-line .text-muted {
            font-size: 13px;
        }

        .detail-header .myui-content__detail .score-line .stars {
            color: #fbbf24;
            font-size: 12px;
        }

        .detail-header .myui-content__detail .score-line .score-num {
            color: #fbbf24;
            font-size: 16px;
            font-weight: 700;
            margin-left: 6px;
        }

        .detail-header .myui-content__detail .data {
            font-size: 13px;
            margin-bottom: 5px;
            color: #9ca3af;
            line-height: 1.5;
        }

        /* 分类标签样式 */
        .detail-tags {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0;
            margin-top: 8px;
        }

        .detail-tags a {
            display: inline-block;
            padding: 3px 10px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            color: #9ca3af !important;
            font-size: 12px;
            margin-right: 6px;
            margin-bottom: 4px;
        }

        .detail-tags .tag-divider {
            color: #4b5563;
            margin: 0 4px;
            font-size: 12px;
        }

        /* 演员信息单独一行 */
        .detail-actors {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            padding: 12px 0;
            margin-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .detail-actors .actors-label {
            color: #6b7280;
            font-size: 13px;
            margin-right: 8px;
            flex-shrink: 0;
        }

        .detail-actors .actors-list {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .detail-actors .actors-list a {
            display: inline-block;
            padding: 4px 10px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            color: #d1d5db !important;
            font-size: 12px;
            transition: all 0.2s ease;
        }

        .detail-actors .actors-list a:hover {
            background: rgba(139, 92, 246, 0.2);
            border-color: #8b5cf6;
            color: #fff !important;
        }

        /* 操作按钮优化 */
        .myui-content__operate {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            padding-top: 0;
            border-top: none;
        }

        .myui-content__operate .btn {
            flex: 1;
            margin: 0 !important;
            padding: 12px 0;
            font-size: 15px;
            font-weight: 600;
            border-radius: 8px;
            text-align: center;
        }

        .myui-content__operate .btn-warm {
            background: linear-gradient(135deg, #ef4444, #f97316) !important;
        }

        .myui-content__operate .btn-danger {
            background: rgba(255, 255, 255, 0.08) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #fff !important;
        }

        /* 隐藏PC端按钮 */
        .myui-content__operate .btn-default.hidden-xs {
            display: none !important;
        }
    }

    /* PC端演员信息样式 - 独立区域 (现在使用内联版本，隐藏此区域) */
    @media (min-width: 768px) {
        .detail-actors {
            display: none;
        }
    }

    /* 移动端演员信息样式 */
    @media (max-width: 767px) {
        .detail-actors {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            padding: 12px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .detail-actors .actors-label {
            color: #6b7280;
            font-size: 13px;
            margin-right: 8px;
        }

        .detail-actors .actors-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .detail-actors .actors-list a {
            display: inline-block;
            padding: 4px 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            color: #d1d5db !important;
            font-size: 12px;
            transition: all 0.2s ease;
        }

        .detail-actors .actors-list a:hover {
            background: rgba(139, 92, 246, 0.2);
            border-color: #8b5cf6;
            color: #fff !important;
        }

        .detail-tags {
            margin-top: 10px;
        }

        .detail-tags a {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            color: #9ca3af !important;
            font-size: 13px;
            margin-right: 8px;
        }

        .detail-tags .tag-divider {
            color: #4b5563;
            margin: 0 6px;
        }
    }


    /* ========== PC端body顶部间距修复 ========== */
    @media (min-width: 768px) {

        body,
        body.active {
            padding-top: 0 !important;
        }

        /* 头部导航高度优化 */
        .myui-header__top {
            position: sticky !important;
            top: 0;
            z-index: 999;
            height: auto !important;
            min-height: auto;
        }

        .myui-header__top .header-inner {
            height: 65px;
        }

        /* 隐藏顶部背景占位 */
        .myui-topbg {
            display: none !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        /* 容器顶部间距 */
        .container {
            margin-top: 0;
        }
    }


    /* ========== PC端布局优化 - 参考freeymxz布局 ========== */
    @media (min-width: 992px) {

        /* 容器宽度优化 */
        .container {
            max-width: 1400px;
            width: 95%;
            margin-left: auto;
            margin-right: auto;
            padding-left: 20px;
            padding-right: 20px;
        }

        /* 视频卡片网格 - 7列布局，排除移动端专用列表 */
        .myui-vodlist:not(.visible-xs) {
            display: grid !important;
            grid-template-columns: repeat(7, 1fr) !important;
            gap: 15px !important;
        }

        /* 确保移动端专用列表在PC端隐藏 */
        .myui-vodlist.visible-xs {
            display: none !important;
        }

        /* 卡片圆角优化 */
        .myui-vodlist__thumb {
            border-radius: 8px !important;
        }

        /* 分区标题样式 */
        .myui-panel__head {
            padding: 0 0 10px;
        }

        .myui-panel__head .title {
            font-size: 18px;
            font-weight: 700;
        }
    }

    /* 大屏幕优化 */
    @media (min-width: 1400px) {
        .container {
            max-width: 1600px;
            width: 92%;
        }

        /* 视频卡片网格 - 大屏7列 */
        .myui-vodlist:not(.visible-xs) {
            grid-template-columns: repeat(7, 1fr) !important;
            gap: 18px !important;
        }
    }

    /* 超大屏幕 */
    @media (min-width: 1800px) {
        .container {
            max-width: 1800px;
            width: 90%;
        }

        .myui-vodlist:not(.visible-xs) {
            grid-template-columns: repeat(8, 1fr) !important;
            gap: 20px !important;
        }
    }

    /* 中等屏幕 */
    @media (min-width: 768px) and (max-width: 991px) {
        .container {
            width: 95%;
            padding-left: 15px;
            padding-right: 15px;
        }

        .myui-vodlist:not(.visible-xs) {
            grid-template-columns: repeat(5, 1fr) !important;
            gap: 12px !important;
        }
    }

    /* ========== 首页和栏目页分区样式优化 ========== */
    @media (min-width: 768px) {

        /* 分区面板 */
        .myui-panel {
            margin-bottom: 30px;
        }

        /* 分区头部 - 左标题右更多 */
        .myui-panel__head,
        .myui-panel_hd .myui-panel__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 0 10px;
            border-bottom: none;
        }

        .section-header-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        .section-header-flex .title {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
            margin: 0;
            display: flex;
            align-items: center;
        }

        .section-header-flex .title::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 20px;
            background: linear-gradient(180deg, #8b5cf6, #6366f1);
            border-radius: 2px;
            margin-right: 10px;
        }

        .section-header-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .section-header-right .more-link {
            color: #9ca3af;
            font-size: 14px;
            transition: color 0.2s;
        }

        .section-header-right .more-link:hover {
            color: #fff;
        }

        /* 卡片悬停效果 */
        .myui-vodlist__box {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .myui-vodlist__box:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        }

        /* 评分徽章优化 */
        .pic-tag-top {
            background: linear-gradient(135deg, #a08c3a, #8b7a2e) !important;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 4px;
            font-weight: 700;
        }

        /* 状态标签 */
        .pic-text {
            font-size: 12px;
            background: #5865F2 !important;
            text-shadow: none;
        }

        /* 卡片标题 */
        .myui-vodlist__detail .title {
            font-size: 14px;
            margin-top: 10px;
        }

        .myui-vodlist__detail .text {
            font-size: 12px;
            color: #6b7280;
        }
    }


    /* ========== 栏目页顶部推荐区域间距 ========== */
    @media (min-width: 768px) {
        #index-hot {
            margin-top: 20px;
            padding: 20px 0 !important;
        }

        #index-hot .container {
            padding-left: 20px;
            padding-right: 20px;
        }

        #index-hot .flickity {
            margin: 0 -8px;
        }

        #index-hot .flickity>div {
            padding: 0 8px;
        }

        /* 栏目页内容区域顶部间距 */
        .myui-panel.myui-panel-bg {
            margin-top: 20px;
        }
    }


    /* ========== 栏目页顶部推荐间距固定 ========== */
    @media (min-width: 768px) {

        /* 禁用JS动态调整的margin-top */
        .top-fixed-down {
            margin-top: 0 !important;
        }

        /* 覆盖旧主题 header 固定高度 */
        .myui-header__top.top-fixed {
            position: fixed !important;
            top: 0 !important;
            height: auto !important;
        }

        /* 顶部推荐区域固定间距 */
        #index-hot {
            margin-top: 0 !important;
            margin-bottom: 25px !important;
        }

        /* 栏目页container顶部间距 */
        body.active .container {
            margin-top: 20px !important;
        }

        /* 分类面板间距 */
        .myui-panel.myui-panel-bg {
            margin-bottom: 25px;
        }
    }


    /* ========== 栏目页顶部推荐轮播间距修复 ========== */
    @media (min-width: 768px) {

        /* 轮播项目间距 - 不覆盖flickity的display */
        #index-hot .flickity>div[class*="col-"] {
            padding-left: 8px !important;
            padding-right: 8px !important;
        }

        /* 卡片盒子 */
        #index-hot .myui-vodlist__box {
            margin: 0;
        }

        /* 缩略图 */
        #index-hot .myui-vodlist__thumb {
            border-radius: 8px;
        }

        /* 整体容器左右间距 */
        #index-hot .container {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }

        #index-hot .row {
            margin-left: -8px !important;
            margin-right: -8px !important;
        }
    }

    /* Flickity轮播子项间距 - 不修改display属性 */
    .flickity>div[class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* PC端轮播宽度调整 */
    @media (min-width: 992px) {
        #index-hot .flickity>.col-lg-6 {
            width: 14.28% !important;
            flex: 0 0 14.28% !important;
        }
    }

    @media (min-width: 768px) and (max-width: 991px) {
        #index-hot .flickity>.col-md-6 {
            width: 20% !important;
            flex: 0 0 20% !important;
        }
    }



    /* ========== Flickity轮播图片显示修复 ========== */
    /* 确保轮播区域的图片正确显示 */
    #index-hot .myui-vodlist__thumb,
    .flickity .myui-vodlist__thumb {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* 已加载的图片 - 移除加载动画 */
    #index-hot .myui-vodlist__thumb.lazyloaded,
    .flickity .myui-vodlist__thumb.lazyloaded {
        background-color: transparent !important;
    }

    /* 有背景图的元素确保显示 */
    #index-hot .myui-vodlist__thumb[style*="background-image"],
    .flickity .myui-vodlist__thumb[style*="background-image"] {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* 强制显示内联背景图 - 覆盖所有可能的冲突 */
    .myui-vodlist__thumb[style*="url("] {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: var(--bg-card) !important;
    }


    /* ========== Flickity轮播卡片间距 - 使用margin而非padding ========== */
    #index-hot .flickity .myui-vodlist__box {
        margin: 0 6px !important;
    }

    /* 确保Flickity cell不会被压缩 */
    #index-hot .flickity-slider>div {
        margin-right: 0 !important;
    }


    /* ========== Flickity轮播间距终极修复 ========== */
    /* 使用padding和box-sizing在Flickity cell上创建间距 */
    #index-hot .flickity-slider>div,
    #index-hot .flickity>div[class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    /* 卡片盒子需要移除margin，让padding控制间距 */
    #index-hot .myui-vodlist__box {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Flickity容器需要负margin补偿padding */
    #index-hot .flickity {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    #index-hot .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ========== H5分类页面 - 视频网格和排行并排显示 ========== */
/* PC端默认样式 */
.h5-type-flex-container {
    display: block;
}

.h5-type-grid-section,
.h5-type-ranking-section {
    width: 100%;
}

/* H5端堆叠显示 - 图片在上，排行榜在下 */
@media (max-width: 767px) {

    /* 堆叠容器 */
    .h5-type-flex-container {
        display: block !important;
    }

    /* 视频网格区域 - 100%宽度 */
    .h5-type-grid-section {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 视频列表 - 3列网格 */
    .h5-type-grid-section .myui-vodlist {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* H5分类页每个分类显示6个（2排x3列） */
    .h5-type-grid-section .myui-vodlist>li:nth-child(n+7) {
        display: none !important;
    }

    .h5-type-grid-section .myui-vodlist>li {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    /* 排行榜区域 - 100%宽度，在下方 */
    .h5-type-ranking-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 15px !important;
    }

    /* 排行榜 - 2列网格 */
    .h5-type-ranking-section .myui-vodlist__text,
    .h5-type-ranking-section ul.myui-vodlist__text,
    .h5-type-ranking-section ul.myui-vodlist__text.col-pd,
    .h5-type-ranking-section ul.myui-vodlist__text.col-pd.clearfix {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .h5-type-ranking-section .myui-vodlist__text>li,
    .h5-type-ranking-section ul>li,
    .h5-type-ranking-section li[class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        float: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        display: block !important;
    }

    .h5-type-ranking-section .myui-vodlist__text .badge {
        min-width: 22px !important;
        height: 22px !important;
        line-height: 22px !important;
        font-size: 11px !important;
        margin-right: 6px !important;
        flex-shrink: 0 !important;
    }

    .h5-type-ranking-section .myui-vodlist__text a {
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 移除clearfix伪元素 */
    .h5-type-ranking-section .myui-vodlist__text::before,
    .h5-type-ranking-section .myui-vodlist__text::after {
        content: none !important;
        display: none !important;
    }

    /* 视频网格调整为3列显示 */
    .h5-type-grid-section .myui-vodlist {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .h5-type-grid-section .myui-vodlist>li {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    .h5-type-grid-section .myui-vodlist__box {
        margin: 0 !important;
    }

    .h5-type-grid-section .myui-vodlist__thumb {
        padding-top: 140% !important;
        border-radius: 6px !important;
    }

    .h5-type-grid-section .myui-vodlist__detail .title {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-top: 4px !important;
    }

    /* 排行榜样式优化 */
    .h5-type-ranking-section .myui-vodlist__text {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .h5-type-ranking-section .myui-vodlist__text>li {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .h5-type-ranking-section .myui-vodlist__text>li:last-child {
        border-bottom: none !important;
    }

    .h5-type-ranking-section .myui-vodlist__text .badge {
        min-width: 22px !important;
        height: 22px !important;
        line-height: 22px !important;
        font-size: 11px !important;
        margin-right: 8px !important;
    }

    .h5-type-ranking-section .myui-vodlist__text a {
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 排行榜标题样式 */
    .h5-type-ranking-section .badge-first {
        background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
        color: #1a1a2e !important;
    }

    .h5-type-ranking-section .badge-second {
        background: linear-gradient(135deg, #94a3b8, #64748b) !important;
        color: #fff !important;
    }

    .h5-type-ranking-section .badge-third {
        background: linear-gradient(135deg, #cd7f32, #a0522d) !important;
        color: #fff !important;
    }
}

/* ========== H5首页分类板块 - 6个图片+排行榜下方2列 ========== */
/* PC端默认样式 */
.h5-index-category-container {
    display: block;
}

.h5-index-grid-section,
.h5-index-ranking-section {
    width: 100%;
}

/* H5端样式 */
@media (max-width: 767px) {

    /* 首页分类容器 - 堆叠布局 */
    .h5-index-category-container {
        display: block !important;
    }

    /* 视频网格调整为3列 */
    .h5-index-grid-section .myui-vodlist {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .h5-index-grid-section .myui-vodlist>li {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    /* H5首页每个分类显示9个（3排x3列） */
    .h5-index-grid-section .myui-vodlist>li:nth-child(n+10) {
        display: none !important;
    }

    .h5-index-grid-section .myui-vodlist__box {
        margin: 0 !important;
    }

    .h5-index-grid-section .myui-vodlist__thumb {
        padding-top: 140% !important;
        border-radius: 6px !important;
    }

    .h5-index-grid-section .myui-vodlist__detail .title {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-top: 4px !important;
    }

    /* 排行榜区域 - 下方显示2列 */
    .h5-index-ranking-section {
        margin-top: 15px !important;
    }

    .h5-index-ranking-section .myui-vodlist__text {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .h5-index-ranking-section .myui-vodlist__text>li {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        float: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .h5-index-ranking-section .myui-vodlist__text .badge {
        min-width: 22px !important;
        height: 22px !important;
        line-height: 22px !important;
        font-size: 11px !important;
        margin-right: 6px !important;
        flex-shrink: 0 !important;
    }

    .h5-index-ranking-section .myui-vodlist__text a {
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 排行榜徽章颜色 */
    .h5-index-ranking-section .badge-first {
        background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
        color: #1a1a2e !important;
    }

    .h5-index-ranking-section .badge-second {
        background: linear-gradient(135deg, #94a3b8, #64748b) !important;
        color: #fff !important;
    }

    .h5-index-ranking-section .badge-third {
        background: linear-gradient(135deg, #cd7f32, #a0522d) !important;
        color: #fff !important;
    }

    /* H5首页顶部推荐(热门观看) - 3列显示 + CLS优化 */
    .h5-hot-list,
    .myui-panel.bg-transparent .h5-hot-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        contain: layout style !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .h5-hot-list>li,
    .myui-panel.bg-transparent .h5-hot-list>li {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        contain: layout style !important;
    }

    .h5-hot-list .myui-vodlist__box {
        margin: 0 !important;
        width: 100% !important;
        contain: layout style !important;
    }

    .h5-hot-list .myui-vodlist__thumb {
        padding-top: 140% !important;
        border-radius: 6px !important;
        aspect-ratio: 2/3 !important;
        contain: layout style !important;
        transform: translateZ(0);
        width: 100% !important;
    }

    .h5-hot-list .myui-vodlist__detail .title {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-top: 4px !important;
    }

    .myui-panel .visible-xs.myui-vodlist .myui-vodlist__box {
        margin: 0 !important;
    }

    .myui-panel .visible-xs.myui-vodlist .myui-vodlist__thumb {
        padding-top: 140% !important;
        border-radius: 6px !important;
    }

    .myui-panel .visible-xs.myui-vodlist .myui-vodlist__detail .title {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-top: 4px !important;
    }
}


/* ========== PC Navigation Menu Fix - Override mytheme-site.css ========== */
/* Must use !important to override float:left in mytheme-site.css */
@media (min-width: 768px) {
    .myui-header__menu {
        display: flex !important;
        float: none !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 4px !important;
    }

    .myui-header__menu>li {
        float: none !important;
        display: inline-flex !important;
        margin: 0 4px !important;
    }

    .myui-header__menu>li>a {
        display: block !important;
        padding: 8px 16px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
        background: transparent !important;
    }

    .myui-header__menu>li>a:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .myui-header__menu>li.active>a {
        color: #fff !important;
        background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
    }

    /* 头部整体布局修复 */
    .myui-header__top .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 65px !important;
        padding: 0 20px !important;
    }

    .myui-header__top .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .myui-header__logo {
        float: none !important;
        flex-shrink: 0 !important;
    }
}


/* ========== PC Fixed Sticky Navigation ========== */
@media (min-width: 768px) {

    /* Header fixed at top */
    .myui-header__top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: rgba(13, 17, 23, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    /* Enhanced shadow on scroll */
    .myui-header__top.scrolled {
        background: rgba(13, 17, 23, 0.98) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
    }

    /* Page content top padding for fixed nav height */
    body,
    body.active {
        padding-top: 65px !important;
    }

    /* Hide old top background placeholder */
    .myui-topbg {
        display: none !important;
    }

    /* Ensure container is not covered by nav */
    .container:first-of-type {
        margin-top: 0 !important;
    }
}

/* ========== Header Inline Styles (moved from header.html) ========== */
/* PC fixed header */
@media (min-width: 768px) {
    #header-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }

    body,
    body.active {
        padding-top: 70px !important;
    }
}

/* Header layout */
.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 65px !important;
    padding: 0 20px !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Navigation menu */
.myui-header__menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

/* Target all child elements (including broken liclass tags) using universal selector */
.myui-header__menu>* {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 2px !important;
    float: none !important;
    flex-shrink: 0;
}

/* li elements (for pages with correct HTML) */
.myui-header__menu li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 2px !important;
    float: none !important;
    flex-shrink: 0;
}

/* Direct link styling - targets all a tags inside the menu */
.myui-header__menu a {
    display: block !important;
    padding: 8px 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.myui-header__menu::-webkit-scrollbar {
    display: none;
}

.myui-header__menu a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Active state - multiple selectors for different HTML structures */
.myui-header__menu li.active a,
.myui-header__menu .active a,
.myui-header__menu [class*="active"] a {
    color: #fff !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

/* Header actions */
.myui-header__actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    flex-shrink: 0;
}

.myui-header__actions>li {
    display: inline-flex !important;
    position: relative;
}

.myui-header__actions .action-link {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.myui-header__actions .action-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.myui-header__actions .action-link i {
    font-size: 14px;
}

.myui-header__actions .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: #fff;
}

.myui-header__actions .dropdown-header a {
    font-size: 12px;
    color: #ef4444 !important;
}

.myui-header__actions .history-item {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.myui-header__actions .history-item:last-child {
    border-bottom: none;
}

.myui-header__actions .history-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7) !important;
}

.myui-header__actions .history-item a:hover {
    color: #fff !important;
}

.myui-header__actions .history-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.myui-header__actions .history-part {
    color: #8b5cf6;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.myui-header__actions .history-empty {
    padding: 40px 0;
    text-align: center;
    color: #6b7280;
}

/* PC logo styles */
.pc-logo-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none;
}

.pc-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.pc-logo-icon svg {
    width: 100%;
    height: 100%;
}

.pc-logo-text {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
    background: linear-gradient(90deg, #22d3ee 0%, #34d399 25%, #a78bfa 50%, #f472b6 75%, #22d3ee 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-flow 4s linear infinite;
}

.myui-header__logo {
    flex-shrink: 0;
}

.pc-search-box {
    margin: 0 !important;
    flex-shrink: 0;
}

@media (max-width: 1400px) and (min-width: 768px) {
    .header-inner {
        padding: 0 12px !important;
    }

    .myui-header__menu a {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    .pc-search-box .search-input {
        width: 160px;
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .pc-search-box .search-input {
        width: 120px;
    }
}

/* H5 header */
.h5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a1a2e;
    height: 56px;
}

.h5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
}

.h5-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.h5-logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
}

.h5-logo-icon svg {
    width: 100%;
    height: 100%;
}

.h5-logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #22d3ee 0%, #34d399 25%, #a78bfa 50%, #f472b6 75%, #22d3ee 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-flow 4s linear infinite;
}

@keyframes aurora-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.h5-header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.h5-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.h5-icon:hover,
.h5-icon:active {
    color: #a78bfa;
}

.h5-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.h5-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #1a1a2e;
    padding: 10px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.h5-search-panel form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-search-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.h5-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.h5-search-btn {
    width: 40px;
    height: 40px;
    background: #a78bfa;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.h5-search-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 767px) {
    body {
        padding-top: 56px;
    }
}