*{margin:0;padding:0;box-sizing:border-box}
html{background:#060713}
body{
    background: radial-gradient(circle at top center, #151630 0%, #0a0b14 60%, #060713 100%) no-repeat fixed !important;
    background-color: #060713 !important;
    color: #e2e8f0;
    font: 14px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Neon Lights Background */
body::before {
    content: "";
    position: fixed;
    top: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    bottom: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

a{color:#8b8bff;text-decoration:none;transition:all .2s ease}
a:hover{color:#a5a5ff}
img{max-width:100%;display:block}

/* PC模式开关 */
.mode-toggle{
    position:fixed;
    bottom:20px;
    right:20px;
    z-index:1000;
    display:flex;
    align-items:center;
    gap:8px;
    background:rgba(10,10,20,.85);
    border:1px solid rgba(255,255,255,.06);
    border-radius:20px;
    padding:6px 14px;
    backdrop-filter:blur(20px);
    cursor:pointer;
    font-size:12px;
    color:rgba(255,255,255,.6);
    transition:all .3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mode-toggle:hover{
    border-color:rgba(99,102,241,.4);
    color:#fff;
    transform: translateY(-1px);
}
.mode-toggle .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.3);transition:background .3s}
.mode-toggle.active .dot{background:#8b8bff;box-shadow: 0 0 6px #8b8bff}

/* 头部 */
.header{
    display:flex;
    align-items:center;
    padding:14px 28px;
    background:rgba(8,8,16,.75);
    border-bottom:1px solid rgba(255,255,255,.04);
    position:sticky;
    top:0;
    z-index:100;
    backdrop-filter:blur(24px);
    gap:20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.logo{width:110px;height:30px;background-size:contain;background-repeat:no-repeat;background-position:left center;display:block;flex-shrink:0}
.header .search{display:flex;flex:1;max-width:420px;position:relative}
.header .search input{
    flex:1;
    height:38px;
    padding:0 16px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    background:rgba(255,255,255,.03);
    color:#fff;
    font-size:13px;
    outline:none;
    transition:all .3s ease;
}
.header .search input:focus{
    border-color:rgba(99,102,241,0.5);
    background:rgba(255,255,255,.06);
    box-shadow: 0 0 12px rgba(99,102,241,0.25);
}
.header .search input::placeholder{color:rgba(255,255,255,.3)}
.header .search #searchDo{
    width:38px;
    height:38px;
    margin-left:8px;
    background:rgba(99,102,241,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: 16px;
    border-radius:20px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .2s ease;
    flex-shrink:0;
}
.header .search #searchDo:hover{
    background-color:rgba(99,102,241,.3);
    transform: scale(1.05);
}

.navigate{display:flex;gap:6px;margin-left:auto;flex-shrink:0}
.navigate a{padding:8px 16px;border-radius:20px;font-size:13px;color:rgba(255,255,255,.6);transition:all .25s ease;white-space:nowrap}
.navigate a:hover{color:#fff;background:rgba(255,255,255,.05)}
.navigate a.current{color:#fff;background:rgba(99,102,241,.2);font-weight:600;box-shadow: 0 0 10px rgba(99,102,241,0.1)}

/* 主体容器 */
.main-wrap{max-width:1400px;margin:0 auto;padding:24px 24px 20px}

/* 轮播图升级为影院级双层毛玻璃结构 */
.slider{
    position:relative;
    width:100%;
    aspect-ratio:2.6/1;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:28px;
    background:#0d0d18;
    border:1px solid rgba(255,255,255,.04);
    box-shadow:0 12px 36px rgba(0,0,0,.4);
}
.slider ul{list-style:none;width:100%;height:100%}
.slider li{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity .6s ease-in-out;z-index:1}
.slider li.active{opacity:1;z-index:2}
.slider li a{display:block;width:100%;height:100%;position:relative;overflow:hidden}
.slider .banner-bg{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center 20%;filter:blur(30px) brightness(0.4) saturate(1.2);transform:scale(1.1);z-index:1}
.slider .banner-content{position:relative;width:100%;height:100%;z-index:2;display:flex;align-items:center;padding:24px 60px;gap:32px;box-sizing:border-box}
.slider .banner-poster{width:auto;height:82%;aspect-ratio:2/3;object-fit:cover;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.08);transition:transform .5s cubic-bezier(0.25, 0.8, 0.25, 1)}
.slider li.active .banner-poster{transform:scale(1.03)}
.slider .banner-info{flex:1;display:flex;flex-direction:column;gap:10px;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.5)}
.slider .banner-title{font-size:24px;font-weight:700;color:#fff;margin:0;letter-spacing:1px;line-height:1.2}
.slider .banner-meta{font-size:12px;color:rgba(255,255,255,.5);font-weight:500;display:inline-flex;gap:12px;align-items:center}
.slider .banner-meta span{background:rgba(99,102,241,.35);padding:2px 8px;border-radius:4px;color:#a5a5ff;border:1px solid rgba(99,102,241,.3)}
.slider .banner-desc{font-size:13px;color:rgba(255,255,255,.6);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:6px;max-width:650px}
.slider ol{position:absolute;bottom:20px;right:24px;display:flex;gap:8px;z-index:10;list-style:none}
.slider ol li{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.25);cursor:pointer;transition:all .3s cubic-bezier(0.4, 0, 0.2, 1)}
.slider ol li.active{width:22px;border-radius:4px;background:#8b8bff;transform:scale(1.1);box-shadow:0 0 8px #8b8bff}

/* 播放历史挂件样式 */
.history-section{margin-bottom:28px}
.history-widget-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 18px;
    background:rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.05);
    border-radius:14px;
    cursor:pointer;
    transition:all .3s ease;
    backdrop-filter:blur(25px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.history-widget-header:hover{
    background:rgba(99,102,241,.06);
    border-color:rgba(99,102,241,.3);
    box-shadow:0 6px 20px rgba(99,102,241,.15);
}
.history-widget-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width: 0;
}
.history-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#a5a5ff;
    filter:drop-shadow(0 0 4px rgba(99,102,241,.6));
    flex-shrink:0;
}
.history-quick-info{
    font-size:13px;
    color:rgba(255,255,255,.65);
    line-height:1.4;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.history-quick-info b{color:#fff;font-weight:600}
.history-widget-right{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}
.history-arrow{width:8px;height:8px;border-bottom:2px solid rgba(255,255,255,.5);border-right:2px solid rgba(255,255,255,.5);transform:rotate(45deg);margin-top:-4px;transition:transform .3s ease;flex-shrink:0}
.history-widget-header.expanded .history-arrow{transform:rotate(-135deg);margin-top:2px}
.clear-btn{
    font-size:12px;
    color:rgba(255,255,255,.55);
    padding:5px 12px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
    border-radius:14px;
    transition:all .2s ease;
    white-space:nowrap;
}
.clear-btn:hover{color:#fff;background:rgba(248,113,113,.2);border-color:rgba(248,113,113,.4)}
.history-expand-container{padding-top:16px}

/* 分类区块 */
.section{margin-bottom:28px}
.section .section-title{font-size:18px;font-weight:600;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;color:#fff}
.section .section-title span{display:inline-flex;align-items:center;gap:8px}
.section .section-title span::before{content:"";width:4px;height:16px;background:linear-gradient(#8b8bff,#5a4fcf);border-radius:2px;display:inline-block;box-shadow:0 0 8px rgba(139,139,255,.6)}
.section .section-title a{font-size:13px;color:rgba(255,255,255,.4);font-weight:400;transition:color .2s}
.section .section-title a:hover{color:rgba(139,139,255,.85)}

/* 视频网格 */
.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}
.video-card{
    display:block;
    border-radius:14px;
    overflow:hidden;
    background:rgba(255,255,255,.015);
    border:1px solid rgba(255,255,255,.03);
    backdrop-filter:blur(4px);
    transition:all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.video-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 36px rgba(99,102,241,.25);
    border-color:rgba(99,102,241,.35);
    background: rgba(255,255,255,.03);
}
.video-card .poster{position:relative;width:100%;aspect-ratio:2/3;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.02)}
.video-card .poster img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(0.25, 0.8, 0.25, 1)}
.video-card:hover .poster img{transform:scale(1.08)}
.video-card .poster .badge{
    position:absolute;
    top:8px;
    right:8px;
    padding:3px 10px;
    background:rgba(99,102,241,.85);
    border-radius:6px;
    font-size:10px;
    font-weight:600;
    color:#fff;
    backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.1);
    box-shadow:0 4px 10px rgba(0,0,0,.3);
    z-index:2;
}
.video-card .info{padding:12px}
.video-card .info .name{
    font-size:13px;
    color:#e2e8f0;
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    transition:color .2s;
}
.video-card:hover .info .name{color:#8b8bff}
.video-card .info .meta{font-size:11px;color:rgba(255,255,255,.45);margin-top:4px}

/* 筛选条件 */
.filter-bar{
    margin-bottom:24px;
    background:rgba(255,255,255,.01);
    border:1px solid rgba(255,255,255,.02);
    border-radius:16px;
    padding:10px 20px;
    backdrop-filter:blur(15px);
}
.filter-row{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.filter-row:not(:last-child){border-bottom:1px solid rgba(255,255,255,.03)}
.filter-row .opts{display:flex;flex-wrap:wrap;gap:8px}
.filter-row .opts a{
    padding:5px 14px;
    border-radius:16px;
    font-size:12px;
    font-weight: 500;
    color:rgba(255,255,255,.6);
    background:rgba(255,255,255,.02);
    border:1px solid rgba(255,255,255,.04);
    transition:all .2s ease;
    cursor:pointer;
}
.filter-row .opts a:hover{
    color:#fff;
    background:rgba(99,102,241,.12);
    border-color:rgba(99,102,241,.3);
}
.filter-row .opts a.active{
    color:#fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    box-shadow:0 4px 12px rgba(99,102,241,.35);
}

/* 加载动画 */
.page-loading{
    display:none;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(6,6,12,.82);
    z-index:9999;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(16px);
    flex-direction:column;
    gap:16px;
    transition:opacity .3s ease;
}
.page-loading.show{display:flex}
.page-loading .spinner{
    position: relative;
    width: 64px;
    height: 64px;
}
.page-loading .spinner::before,
.page-loading .spinner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}
.page-loading .spinner::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-color: #6366f1;
    border-bottom-color: #a855f7;
    animation: spin 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.7));
}
.page-loading .spinner::after {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-left-color: #ec4899;
    border-right-color: #06b6d4;
    animation: spin 0.8s ease-in-out infinite reverse;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
}
.page-loading::after{
    content:"正在为您载入精彩影视...";
    font-size:13px;
    color:rgba(255,255,255,.5);
    letter-spacing:1px;
    animation:pulse 1.5s ease-in-out infinite;
    margin-top: 10px;
}

@keyframes pulse{
    0%,100%{opacity:.4}
    50%{opacity:.8}
}
@keyframes spin{to{transform:rotate(360deg)}}

/* 分页 */
.pagination{display:flex;justify-content:center;gap:10px;margin:32px 0 20px}
.pagination a{
    padding:8px 22px;
    border-radius:20px;
    font-size:13px;
    font-weight: 500;
    color:rgba(255,255,255,.7);
    background:rgba(255,255,255,.02);
    border:1px solid rgba(255,255,255,.04);
    transition:all .2s ease;
}
.pagination a:hover{
    color:#fff;
    background:rgba(99,102,241,.12);
    border-color:rgba(99,102,241,.3);
    transform: translateY(-1px);
}
.pagination a.disabled{opacity:.2;pointer-events:none}

/* 搜索结果 */
.search-result{padding:16px 0;font-size:15px;color:rgba(255,255,255,.5)}
.search-result b{color:#8b8bff;font-weight: 600}

/* 无数据 */
.no-data{text-align:center;padding:60px 20px;color:rgba(255,255,255,.3);font-size:15px}

/* 版权 */
.copyright{text-align:center;padding:30px;color:rgba(255,255,255,.15);font-size:12px;line-height:2}

/* 回到顶部 */
.scroll-top{
    position:fixed;
    bottom:70px;
    right:20px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(10,10,20,.85);
    border:1px solid rgba(255,255,255,.06);
    display:none;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:999;
    transition:all .3s ease;
    backdrop-filter:blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.scroll-top:hover{
    border-color:rgba(99,102,241,.4);
    background: rgba(99,102,241,.1);
    transform: translateY(-2px);
}
.scroll-top::after{content:"";width:8px;height:8px;border-top:2px solid rgba(255,255,255,.6);border-right:2px solid rgba(255,255,255,.6);transform:rotate(-45deg);margin-bottom:3px}
.scroll-top.show{display:flex}

/* 全屏搜索抽屉 Overlay */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 6, 12, 0.94);
    backdrop-filter: blur(25px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(-20px);
}
.search-overlay.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.search-overlay-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.search-overlay-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.search-overlay-content {
    width: 90%;
    max-width: 500px;
}
.search-overlay-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.search-overlay-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #fff;
    font-size: 16px;
    height: 36px;
}
.search-overlay-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.overlay-search-btn {
    padding: 8px 24px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}
.overlay-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.search-overlay-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.search-overlay-hot {
    margin-top: 28px;
    padding: 0 4px;
}
.search-overlay-hot .hot-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.search-overlay-hot .hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.search-overlay-hot .hot-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-overlay-hot .hot-tag:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* PC 联想列表下拉框 */
.search-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 6px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
}

/* 联想与历史项样式 */
.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    padding-left: 22px;
}
.autocomplete-item .item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.autocomplete-item .item-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

/* PC 历史搜索在联想框中的布局 */
.autocomplete-history-title {
    padding: 12px 18px 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.clear-pc-history {
    color: #ff6b6b;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}
.clear-pc-history:hover {
    color: #ff8b8b;
}
.autocomplete-history-tags {
    padding: 0 18px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pc-history-tag {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.pc-history-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 移动端搜索历史块 */
.search-overlay-history {
    margin-top: 24px;
    padding: 0 4px;
}
.search-overlay-history .history-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.search-overlay-history .history-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.search-overlay-history .clear-history-btn {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.search-overlay-history .clear-history-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
}
.search-overlay-history .history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.search-overlay-history .history-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-overlay-history .history-tag:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

/* 移动端联想建议列表 */
.search-overlay-autocomplete {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-overlay-autocomplete .autocomplete-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}



/* ===== 移动端适配 ===== */
@media(max-width:768px){
    .header{padding:10px 16px;gap:10px}
    .logo{width:80px;height:24px}
    
    /* 手机下，隐藏标准输入框，将搜索框简化为单个 🔍 按钮 */
    .header .search {
        flex: 0 0 auto;
        max-width: none;
    }
    .header .search input {
        display: none !important;
    }
    .header .search a#searchDo {
        margin-left: 0 !important;
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .navigate{gap:0}
    .navigate a{padding:5px 10px;font-size:12px}
    .main-wrap{padding:12px 16px}
    .slider{aspect-ratio:2/1;border-radius:8px;margin-bottom:16px}
    .slider .banner-bg {
        filter: blur(1px) brightness(0.85) saturate(1.1);
        background-position: right center;
    }
    .slider .banner-content {
        padding: 16px 20px;
        gap: 0;
        background: linear-gradient(to right, rgba(10, 11, 20, 0.95) 45%, rgba(10, 11, 20, 0.2) 100%);
    }
    .slider .banner-poster{display:none}
    .slider .banner-title{font-size:16px}
    .slider .banner-desc{font-size:11px;-webkit-line-clamp:2;margin-top:4px}
    .section .section-title{font-size:16px}
    .video-grid{grid-template-columns:repeat(3, 1fr) !important;gap:8px}
    .video-card{border-radius:10px}
    .video-card .info{padding: 8px 10px}
    .video-card .info .name{font-size:11.5px; line-height: 1.4}
    .video-card .info .meta{font-size:10px; margin-top: 2px}
    .filter-bar {
        padding: 8px 12px;
        border-radius: 12px;
    }
    .filter-row {
        padding: 5px 0;
        display: block;
    }
    .filter-row .opts {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 4px 20px 4px 4px;
        margin: 0 -12px;
        padding-left: 12px;
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
        mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    }
    .filter-row .opts::-webkit-scrollbar {
        display: none !important;
    }
    .filter-row .opts a {
        padding: 5px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .filter-row .opts a.active {
        background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
    }
    .history-widget-header {
        padding: 10px 14px;
        border-radius: 12px;
    }
    .history-quick-info {
        font-size: 11.5px;
    }
    .clear-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .mode-toggle{display:none !important}
}

/* ===== PC宽屏优化 ===== */
@media(min-width:1200px){
    .video-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
}
@media(min-width:1600px){
    .video-grid{grid-template-columns:repeat(8,1fr)}
}

/* PC模式全局 class 样式绑定 */
html.pc-mode body {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* PWA Splash Launch Screen */
.pwa-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #060713;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
}
.pwa-splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pwa-splash-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 32px;
    animation: pwaLogoPulse 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
.pwa-splash-logo img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
}
.pwa-splash-loader {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.pwa-splash-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #6366f1, #a855f7);
    position: absolute;
    left: -100%;
    animation: pwaLoad 1.5s ease-in-out forwards;
}
@keyframes pwaLogoPulse {
    0% {
        transform: scale(0.92);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.15));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.4));
    }
    100% {
        transform: scale(0.92);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.15));
    }
}
@keyframes pwaLoad {
    0% { left: -100%; }
    55% { left: -30%; }
    100% { left: 0%; }
}