/* 热搜样式独立模块 - 统一维护，勿写入 common.css / youku.css */

/* 顶栏搜索框：轮播影片名左间距 */
.head .this-search .flex-public{padding:0 12px 0 20px!important}
.head .this-search .flex-public input.this-input{padding-left:0px!important}

/* 搜索面板整体玻璃背景 */
.pop-list-body.pop-1{
    background-color:rgba(17,19,25,.72)!important;
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    backdrop-filter:blur(20px) saturate(180%);
    border-left:1px solid rgba(255,255,255,.08);
    box-shadow:-8px 0 32px rgba(0,0,0,.18);
}
.theme1 .pop-list-body.pop-1{
    background-color:rgba(255,255,255,.72)!important;
    border-left-color:rgba(0,0,0,.06);
    box-shadow:-8px 0 32px rgba(0,0,0,.08);
}
/* 播放页：热搜弹出层挂到 body / popover 顶层，避免被播放器 iframe 挡住 */
.this-search-get.is-fixed-hot,
.this-search-get.is-fixed-hot:popover-open{
    /* 清掉 UA popover 的 inset:0 + margin:auto，否则会漂到左侧/居中异常 */
    inset:unset!important;
    position:fixed!important;
    z-index:2147483646!important;
    top:70px;
    left:0;
    right:auto;
    bottom:auto;
    margin:0!important;
    border:none!important;
    background:transparent!important;
    overflow:visible!important;
    width:530px;
    max-width:calc(100vw - 48px);
    height:auto!important;
    padding:8px 0 0;
    pointer-events:auto;
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
    color:inherit;
}
.this-search-get.is-fixed-hot .box{
    width:100%;
    padding:10px;
    background-color:rgba(17,19,25,.78)!important;
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,.1);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 32px rgba(0,0,0,.24);
}
.theme1 .this-search-get.is-fixed-hot .box{
    background-color:rgba(255,255,255,.78)!important;
    border-color:rgba(0,0,0,.08);
    box-shadow:0 8px 32px rgba(0,0,0,.1);
}
.this-search-get.is-fixed-hot .title-m{margin-top:0;padding-bottom:0}
.this-search-get.is-fixed-hot .title-m h5{font-size:15px;font-weight:400}
.this-search-get.is-fixed-hot .wap-diy-vod-e{margin-bottom:0}
.this-search-get.is-fixed-hot .records-list{width:100%;display:flex;flex-wrap:wrap;flex-direction:row;margin-top:10px}
/* 优酷：历史搜索标签 */
.head .this-search-get .records-list .public-list-b,
.this-search-get.is-fixed-hot .records-list .public-list-b,
.pop-1 .search-history-box .records-list .public-list-b{
    padding:0 16px;height:36px;line-height:36px;margin:0 10px 10px 0;
    font-size:14px;border:none;
    background:rgba(245,245,245,.05);border-radius:18px;color:rgba(255,255,255,.5)
}
.theme1 .head .this-search-get .records-list .public-list-b,
.theme1 .this-search-get.is-fixed-hot .records-list .public-list-b,
.theme1 .pop-1 .search-history-box .records-list .public-list-b{
    background:rgba(0,0,0,.05);color:rgba(0,0,0,.45)
}

/* 优酷：历史搜索 + 仅垃圾桶图标 */
.search-history-box .title-m h5,
.head .this-search-get .title-m h5,
.this-search-get.is-fixed-hot .title-m h5,
.pop-1 .search-history-box .title-m h5{font-size:18px;font-weight:400;color:hsla(0,0%,100%,.92)}
.theme1 .search-history-box .title-m h5,
.theme1 .head .this-search-get .title-m h5,
.theme1 .this-search-get.is-fixed-hot .title-m h5{color:#333}
a.search-hist-del,
#re_del.search-hist-del{
    display:inline-flex;align-items:center;justify-content:center;
    width:28px;height:28px;margin:0;padding:0;border:0;
    background:transparent;color:hsla(0,0%,100%,.85);
    font-size:16px;line-height:1;text-decoration:none;cursor:pointer
}
a.search-hist-del:hover,
#re_del.search-hist-del:hover{color:#fff;opacity:.9;text-decoration:none}
.theme1 a.search-hist-del,
.theme1 #re_del.search-hist-del{color:#666}
.theme1 a.search-hist-del:hover,
.theme1 #re_del.search-hist-del:hover{color:#333}
a.search-hist-del .fa,
#re_del.search-hist-del .fa{margin:0;font-size:20px}
.this-search-get.is-fixed-hot .this-search-completion{display:none;margin-bottom:8px}
.this-search-get.is-fixed-hot .this-search-completion .results{position:relative!important;top:0!important;left:0!important;width:100%!important;border:none!important;box-shadow:none!important;background:transparent!important}
.this-search-get.is-fixed-hot .this-search-completion li{padding:10px 12px;border-radius:6px;line-height:1.5;cursor:pointer}
.this-search-get.is-fixed-hot .this-search-completion li:hover,
.this-search-get.is-fixed-hot .this-search-completion li.ac_over{background:rgba(255,255,255,.08)}

.head .this-search-get .box{
    background-color:rgba(17,19,25,.78)!important;
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,.1);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 32px rgba(0,0,0,.24);
}
.theme1 .head .this-search-get .box{
    background-color:rgba(255,255,255,.78)!important;
    border-color:rgba(0,0,0,.08);
    box-shadow:0 8px 32px rgba(0,0,0,.1);
}

.search-hot-module{margin-bottom:0}
.head .this-search-get .search-hot-module,
.this-search-get.is-fixed-hot .search-hot-module{margin-top:2px}
.head .this-search-get .search-hot-module.search-hot-s1,
.this-search-get.is-fixed-hot .search-hot-module.search-hot-s1,
.head .this-search-get .search-hot-module.search-hot-s3,
.this-search-get.is-fixed-hot .search-hot-module.search-hot-s3{margin-top:-15px}
.pop-1 .search-hot-module{margin-top:30px}
.pop-1 .search-hot-module.search-hot-s2{margin-top:18px}

/* 样式2：海报排行 */
.search-hot-module.search-hot-s2{margin-bottom:0}
/* 优酷分类 Tab：横向滚动 + 右侧箭头 */
.search-hot-module.search-hot-s2 .search-hot-tabs-wrap{
    position:relative;display:flex;align-items:center;margin:0 0 6px;min-width:0
}
.search-hot-module.search-hot-s2 .search-hot-tabs{
    display:flex;gap:26px;margin:0;padding:0;border-bottom:none;
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex:1;min-width:0
}
.search-hot-module.search-hot-s2 .search-hot-tabs::-webkit-scrollbar{display:none;height:0}
.theme1 .search-hot-module.search-hot-s2 .search-hot-tabs{border-bottom:none}
.search-hot-module.search-hot-s2 .search-hot-tab{
    cursor:pointer;font-size:18px;line-height:32px;color:hsla(0,0%,100%,.72);
    white-space:nowrap;border-bottom:none;flex-shrink:0;font-weight:400
}
.theme1 .search-hot-module.search-hot-s2 .search-hot-tab{color:#888}
.search-hot-module.search-hot-s2 .search-hot-tab.on{
    color:hsla(0,0%,100%,.96);border-bottom:none;font-weight:700
}
.theme1 .search-hot-module.search-hot-s2 .search-hot-tab.on{color:#222;border-bottom:none}
.search-hot-module.search-hot-s2 .search-hot-panel{display:none}
.search-hot-module.search-hot-s2 .search-hot-panel.show{display:block}
.search-hot-module.search-hot-s2 .search-hot-grid{display:grid;grid-template-columns:1fr;gap:6px;align-items:start;list-style:none;padding:0;margin:0;width:100%}
.search-hot-module.search-hot-s2 .search-hot-grid>li{min-width:0;list-style:none;width:100%;align-self:start;overflow:visible}
/* 悬停背景大于封面用 padding；左右负 margin 让封面与「热搜」标题左对齐 */
.search-hot-module.search-hot-s2 .search-hot-item{display:flex;flex-direction:row;align-items:center;align-self:start;gap:10px;padding:10px;margin:0 -10px;border-radius:10px;text-decoration:none;color:inherit;min-width:0;height:auto;line-height:normal;box-sizing:border-box;transition:background .2s;overflow:visible;position:relative}
.search-hot-module.search-hot-s2 .search-hot-item:hover{background:hsla(0,0%,100%,.1);text-decoration:none}
.theme1 .search-hot-module.search-hot-s2 .search-hot-item:hover{background:rgba(0,0,0,.06)}
/* 封面壳：序号可溢出到海报外（优酷同款） */
.search-hot-module.search-hot-s2 .search-hot-cover{position:relative;width:52px;height:70px;flex:0 0 52px;overflow:visible}
.search-hot-module.search-hot-s2 .search-hot-poster{position:relative;z-index:0;width:100%;height:100%;border-radius:4px;background-color:#2a2a2a;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}
/* 优酷同款：蓝底与序号分开，压在海报左上角外侧 */
.search-hot-module.search-hot-s2 .search-hot-rank-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #274BFF, rgba(0, 128, 255, 0) 50.35%, rgba(0, 128, 255, 0));
    border-radius: 8px 0 0 0;
    pointer-events: none;
    z-index: 1;
}
.search-hot-module.search-hot-s2 .search-hot-rank-num{
    position:absolute;top:-6px;left:-4px;z-index:3;
    font-size:26px;line-height:1;font-weight:800;font-style:italic;
    font-family:Impact,"Arial Black","Helvetica Neue",QY_Digital,sans-serif;
    letter-spacing:-1px;color:#fff;background:transparent;
    text-shadow:0 1px 2px rgba(0,0,0,.75),0 0 6px rgba(0,0,0,.35);
    pointer-events:none
}
.search-hot-module.search-hot-s2 .search-hot-rank-num.is-top3{
    text-shadow:0 1px 2px rgba(0,0,0,.45)
}
.search-hot-module.search-hot-s2 .search-hot-info{flex:1;min-width:0;overflow:hidden;align-self:flex-start;padding-top:0;margin-top:0}
.search-hot-module.search-hot-s2 .search-hot-title{display:flex;align-items:flex-start;gap:4px;margin:0 0 4px;min-width:0;overflow:hidden;line-height:1.2}
.search-hot-module.search-hot-s2 .search-hot-name{font-size:13px;font-weight:700;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto;min-width:0}
.search-hot-module.search-hot-s2 .search-hot-badge{display:inline-block;flex-shrink:0;margin-left:2px;width:16px;height:16px;line-height:16px;text-align:center;font-size:11px;font-weight:700;color:#fff;border-radius:2px;font-style:normal}
.search-hot-module.search-hot-s2 .search-hot-badge.badge-bao{background:#ff4f34}
.search-hot-module.search-hot-s2 .search-hot-badge.badge-re{background:#ff4d4f}
.search-hot-module.search-hot-s2 .search-hot-badge.badge-xin{background:#ff921a}
.search-hot-module.search-hot-s2 .search-hot-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
.search-hot-module.search-hot-s2 .search-hot-tag{display:inline-block;padding:0 6px;height:20px;line-height:18px;font-size:12px;color:#ff921a;border:1px solid rgba(255,146,26,.45);border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.search-hot-module.search-hot-s2 .search-hot-meta{font-size:11px;line-height:16px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}
.search-hot-module.search-hot-s2 .search-hot-meta:empty{display:none;margin:0}

/* 宽屏双列：搜索侧栏 + PC顶栏下拉 */
@media (min-width:481px){
    .pop-list-body .search-hot-module.search-hot-s2 .search-hot-grid,
    .head .this-search-get .search-hot-module.search-hot-s2 .search-hot-grid,
    .this-search-get.is-fixed-hot .search-hot-module.search-hot-s2 .search-hot-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px 12px;
    }
    .pop-list-body .search-hot-module.search-hot-s2 .search-hot-grid>li,
    .head .this-search-get .search-hot-module.search-hot-s2 .search-hot-grid>li,
    .this-search-get.is-fixed-hot .search-hot-module.search-hot-s2 .search-hot-grid>li{
        width:auto;
        max-width:none;
    }
}

/* PC 顶栏热搜下拉加宽（海报排行双列更舒展） */
@media (min-width:768px){
    .head .this-search-get{
        left:50%;
        transform:translateX(-50%);
        width:672px;
        max-width:calc(100vw - 48px);
    }
    .head .this-search-get .box,
    .this-search-get.is-fixed-hot .box{
        padding:16px 18px;
    }
    .head .this-search-get .search-hot-module.search-hot-s2 .search-hot-grid,
    .this-search-get.is-fixed-hot .search-hot-module.search-hot-s2 .search-hot-grid{
        gap:0px 20px;
    }
    .head .this-search-get .search-hot-module.search-hot-s2 .search-hot-name,
    .this-search-get.is-fixed-hot .search-hot-module.search-hot-s2 .search-hot-name{
        font-size:14px;
    }
    .head .this-search-get .search-hot-module.search-hot-s2 .search-hot-meta,
    .this-search-get.is-fixed-hot .search-hot-module.search-hot-s2 .search-hot-meta{
        font-size:14px;
    }
}

/* 宽屏侧栏加宽，双列更舒展 */
@media (min-width:768px){
    .pop-list-body.pop-1{
        width:560px;
    }
    .pop-list-body.show .search-hot-module.search-hot-s2{margin-top:20px}
    .pop-list-body .search-hot-module.search-hot-s2 .search-hot-grid{
        gap:0px 20px;
    }
}

/* 样式3：B站双列 */
.search-hot-module.search-hot-s3 .title-m{margin-top:0;padding-bottom:10px}
.search-hot-module.search-hot-s3 .title-m h5{font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-hot-module.search-hot-s3 .search-hot-bili{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:6px -4px 0;width:100%}
.search-hot-module.search-hot-s3 .search-hot-bili>li{width:50%;min-width:0;list-style:none;padding:0 4px;box-sizing:border-box}
.search-hot-module.search-hot-s3 .search-hot-bili-item{display:flex;align-items:center;height:36px;padding:0 8px;border-radius:4px;text-decoration:none;color:inherit;box-sizing:border-box}
.search-hot-module.search-hot-s3 .search-hot-bili-item:hover{background:hsla(0,0%,100%,.06);text-decoration:none}
.theme1 .search-hot-module.search-hot-s3 .search-hot-bili-item:hover{background:#f4f4f4}
.search-hot-module.search-hot-s3 .search-hot-bili-rank{flex-shrink:0;width:22px;font-size:14px;color:hsla(0,0%,100%,.45)}
.theme1 .search-hot-module.search-hot-s3 .search-hot-bili-rank{color:#999}
.search-hot-module.search-hot-s3 .search-hot-bili-rank.rank-1,.search-hot-module.search-hot-s3 .search-hot-bili-rank.rank-2,.search-hot-module.search-hot-s3 .search-hot-bili-rank.rank-3{font-weight:700;color:hsla(0,0%,100%,.92)}
.theme1 .search-hot-module.search-hot-s3 .search-hot-bili-rank.rank-1,.theme1 .search-hot-module.search-hot-s3 .search-hot-bili-rank.rank-2,.theme1 .search-hot-module.search-hot-s3 .search-hot-bili-rank.rank-3{color:#333}
.search-hot-module.search-hot-s3 .search-hot-bili-main{display:flex;align-items:center;flex:1;min-width:0;overflow:hidden}
.search-hot-module.search-hot-s3 .search-hot-bili-text{flex:0 1 auto;min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-hot-module.search-hot-s3 .search-hot-bili-badge{flex-shrink:0;display:inline-block;margin-left:4px;height:16px;line-height:16px;padding:0 4px;font-size:11px;font-style:normal;color:#fff;border-radius:2px}
.search-hot-module.search-hot-s3 .search-hot-bili-badge.badge-new{background:#ff921a}
.search-hot-module.search-hot-s3 .search-hot-bili-badge.badge-hot,
.search-hot-module.search-hot-s3 .search-hot-bili-badge.badge-re{background:#ff4d4f}
.search-hot-module.search-hot-s3 .search-hot-bili-badge.badge-bao{background:#ff4f34}
.search-hot-module.search-hot-s3 .search-hot-bili-badge.badge-rise{background:#ff6699;width:18px;padding:0;text-align:center}
.search-hot-module.search-hot-s3 .search-hot-bili-badge.badge-rise .fa{font-size:10px}
.head .this-search-get .search-hot-module.search-hot-s3 .search-hot-bili>li,
.this-search-get.is-fixed-hot .search-hot-module.search-hot-s3 .search-hot-bili>li{width:100%}

/* 兼容旧 class 名（search-hot-s3 写在容器上） */
.search-hot-s3 .search-hot-bili{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:6px -4px 0;width:100%}
.search-hot-s3 .search-hot-bili>li{width:50%;min-width:0;padding:0 4px;box-sizing:border-box}
.search-hot-s3 .search-hot-bili-main{display:flex;align-items:center;flex:1;min-width:0;overflow:hidden}
.search-hot-s3 .search-hot-bili-text{flex:0 1 auto;min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-hot-s3 .search-hot-bili-badge{flex-shrink:0;display:inline-block;margin-left:4px}
