/* 热搜样式独立模块 - 统一维护，勿写入 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{
    position:fixed!important;
    z-index:2147483646!important;
    top:70px;
    left:auto;
    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 .public-list-b{line-height:32px;height:32px}
.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}
.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:-15px}
.pop-1 .search-hot-module{margin-top:30px}

/* 样式2：海报排行 */
.search-hot-module.search-hot-s2{margin-bottom:0}
.search-hot-module.search-hot-s2 .search-hot-tabs{display:flex;gap:16px;margin-bottom:5px;padding-bottom:0;border-bottom:none;overflow-x:auto;-webkit-overflow-scrolling:touch}
.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:14px;line-height:32px;color:hsla(0,0%,100%,.9);white-space:nowrap;border-bottom:none;flex-shrink:0;font-weight:400}
.theme1 .search-hot-module.search-hot-s2 .search-hot-tab{color:#333}
.search-hot-module.search-hot-s2 .search-hot-tab.on{color:hsla(0,0%,100%,.9);border-bottom:none;font-weight:400}
.theme1 .search-hot-module.search-hot-s2 .search-hot-tab.on{color:#333;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}
/* 悬停背景大于封面用 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}
.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-poster{position:relative;width:52px;height:70px;flex:0 0 52px;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{position:absolute;top:0;left:0;z-index:2;min-width:18px;height:20px;line-height:20px;padding:0 4px;text-align:center;font-size:12px;font-weight:700;color:#fff;border-radius:3px 3px 3px 0}
.search-hot-module.search-hot-s2 .search-hot-rank.rank-1{background:#ff4f7a}
.search-hot-module.search-hot-s2 .search-hot-rank.rank-2{background:#fa6400}
.search-hot-module.search-hot-s2 .search-hot-rank.rank-3{background:#ffb802}
.search-hot-module.search-hot-s2 .search-hot-rank.rank-4,.search-hot-module.search-hot-s2 .search-hot-rank.rank-5,.search-hot-module.search-hot-s2 .search-hot-rank.rank-6{background:#4da6ff}
.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:530px;
        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}
