/* ============================================================
   acoolive 首页改版 2026-11-22
   浅色清爽 + 卡片网格，1200 容器
   仅作用于首页（body.hm-body），不影响其它页面
   ============================================================ */

body.hm-body{
    background:#f4f6f8;
    color:#23282d;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
}
body.hm-body a{text-decoration:none;color:inherit;}
body.hm-body img{border:0;}

/* ---------- 布局 ---------- */
.hm-main{width:1200px;max-width:calc(100% - 32px);margin:0 auto;padding:20px 0 44px;box-sizing:border-box;}

/* ---------- 区块外壳 ---------- */
.hm-sec{background:#fff;border-radius:10px;padding:20px 22px 22px;margin-bottom:16px;box-shadow:0 1px 2px rgba(20,30,40,.05);}
.hm-sec-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.hm-sec-hd h2{position:relative;margin:0;padding-left:12px;font-size:19px;font-weight:600;line-height:26px;color:#1b2126;}
.hm-sec-hd h2::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;border-radius:2px;background:#2482b6;}
.hm-more{font-size:13px;color:#98a2ab;transition:color .2s;}
.hm-more:hover{color:#2482b6;}

/* ---------- 网格 ---------- */
.hm-grid{display:grid;gap:16px 16px;}
.hm-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));}

/* ---------- 竖版海报卡（影视剧） ---------- */
.hm-card{display:block;min-width:0;}
.hm-poster{position:relative;width:100%;padding-top:133.33%;border-radius:7px;overflow:hidden;background:#eceff2;}
.hm-poster img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .38s ease;}
.hm-card:hover .hm-poster img{transform:scale(1.05);}
.hm-poster-ph{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#aeb7c0;font-size:13px;background:#e7ebee;}
.hm-badge{position:absolute;right:7px;bottom:7px;padding:0 7px;height:20px;line-height:20px;border-radius:10px;background:rgba(0,0,0,.62);color:#fff;font-size:11px;}
.hm-card-t{margin-top:9px;height:42px;overflow:hidden;font-size:14px;line-height:21px;color:#23282d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;transition:color .2s;}
.hm-card:hover .hm-card-t{color:#2482b6;}
.hm-card-s{margin-top:3px;font-size:12px;line-height:18px;color:#9aa4ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* ---------- 横版视频卡（今日热点 / 最新下载） ---------- */
.hm-wcard{display:block;min-width:0;}
.hm-wthumb{position:relative;width:100%;padding-top:56.25%;border-radius:7px;overflow:hidden;background:#eceff2;}
.hm-wthumb img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;transition:transform .38s ease;}
.hm-wcard:hover .hm-wthumb img{transform:scale(1.05);}
.hm-dur{position:absolute;right:7px;bottom:7px;padding:0 6px;height:19px;line-height:19px;border-radius:3px;background:rgba(0,0,0,.7);color:#fff;font-size:11px;}
.hm-src{position:absolute;left:7px;top:7px;padding:0 7px;height:20px;line-height:20px;border-radius:10px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;}

/* ---------- 顶部推广条 ---------- */
.hm-promo{display:flex;align-items:center;gap:26px;margin:0 0 16px;padding:22px 26px;border-radius:10px;
    background:linear-gradient(120deg,#f2f8fd 0%,#e9f2fa 60%,#e3eef8 100%);
    border:1px solid #dce9f4;}
.hm-promo-main{flex:1;min-width:0;}
.hm-promo-main h3{margin:0 0 6px;font-size:17px;font-weight:600;color:#1b2126;}
.hm-promo-main p{margin:0 0 14px;font-size:13px;line-height:22px;color:#63707b;}
.hm-promo-btn{display:inline-block;height:38px;line-height:38px;padding:0 22px;border-radius:19px;background:#2482b6;color:#fff;font-size:14px;transition:background .2s;}
.hm-promo-btn:hover{background:#1a6a94;color:#fff;}
.hm-qrs{display:flex;gap:18px;flex:none;}
.hm-qr{width:104px;text-align:center;}
.hm-qr img{width:92px !important;height:92px !important;padding:0 !important;margin:0 !important;border-radius:6px;background:#fff;object-fit:cover;}
.hm-qr span{display:block;margin-top:6px;font-size:11px;color:#7c8894;line-height:16px;}

/* ---------- 空状态 ---------- */
.hm-empty{padding:26px 0;text-align:center;font-size:13px;color:#a5aeb7;}

/* ---------- 响应式 ---------- */
@media screen and (max-width:1240px){
    body.hm-body .vid-head-width{width:100%;padding-left:16px;padding-right:16px;box-sizing:border-box;}
    body.hm-body .vid-head{overflow-x:hidden;}
    .hm-grid-5{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media screen and (max-width:980px){
    .hm-main{width:100%;padding:14px 15px 32px;}
    .hm-grid-5{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
    .hm-sec{padding:16px 15px 18px;border-radius:8px;}
    .hm-promo{flex-direction:column;align-items:flex-start;gap:16px;}
    .hm-qrs{gap:14px;}
}
@media screen and (max-width:640px){
    .hm-grid-5{grid-template-columns:repeat(2,minmax(0,1fr));}
    .hm-sec-hd h2{font-size:17px;}
    .hm-qr img{width:80px !important;height:80px !important;}
}

/* ================= 抽奖浮标 ================= */
.hm-lottery{
    position:fixed; right:28px; bottom:168px; z-index:1200;
    width:78px; padding:12px 0 10px; border-radius:20px;
    background:linear-gradient(158deg,#ff8a3d 0%,#f5491b 55%,#d92e0c 100%);
    color:#fff; text-align:center; text-decoration:none;
    box-shadow:0 12px 26px rgba(217,46,12,.35),0 2px 6px rgba(0,0,0,.12);
    transition:transform .22s ease,box-shadow .22s ease;
}
.hm-lottery:hover{transform:translateY(-5px) scale(1.05); box-shadow:0 18px 34px rgba(217,46,12,.46); color:#fff;}
.hm-lottery-ico{display:block; line-height:0; margin-bottom:6px;}
.hm-lottery-ico svg{width:28px; height:28px;}
.hm-lottery-txt{display:block; font-size:14px; letter-spacing:2px; font-weight:600;}
.hm-lottery-close{
    position:absolute; top:-8px; right:-8px; width:20px; height:20px; line-height:18px;
    border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:15px; font-style:normal;
    text-align:center; cursor:pointer; display:none;
}
.hm-lottery:hover .hm-lottery-close{display:block;}
.hm-lottery::after{
    content:""; position:absolute; left:-6px; right:-6px; top:-6px; bottom:-6px; border-radius:24px;
    border:2px solid rgba(245,73,27,.55); animation:hmLotteryPulse 2.4s ease-out infinite; pointer-events:none;
}
@keyframes hmLotteryPulse{0%{transform:scale(.94);opacity:.85}70%{transform:scale(1.13);opacity:0}100%{opacity:0}}
@media screen and (max-width:1240px){
    .hm-lottery{right:14px; bottom:110px; width:64px; padding:10px 0 8px; border-radius:17px;}
    .hm-lottery-ico svg{width:23px; height:23px;}
    .hm-lottery-txt{font-size:12px; letter-spacing:1px;}
}
