/* ═══════════════════════════════════════════════════════════════
   label/hotlist.html 页面专属样式
   抽出时间:2026-07-14

   顶部 banner 的结构、字号等通用样式
   已在 /static/ds3/css/style_add.css 的 .page-banner 定义，
   这里只保留 hotlist 自己的品牌蓝色渐变。
   ═══════════════════════════════════════════════════════════════ */

/* ---------- hotlist 顶部 banner 主题色（聚合榜单·蓝紫） ---------- */
.hotlist-page-banner {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a2585 50%, #6a3093 100%);
}

/* ---------- Tab 样式 - 站点蓝紫主色 + 玻璃感 ---------- */
.guduo-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.theme2 .guduo-tab {
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}
.theme2 .guduo-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.theme1 .guduo-tab.active, .theme2 .guduo-tab.active {
    background: linear-gradient(-45deg, #59Ceff 0%, #6177ff 100%);
    color: #fff;
    font-weight: bold;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(97, 119, 255, 0.15);
}

.theme1 .guduo-tab {
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #f0f0f2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.theme1 .guduo-tab:hover {
    color: #333;
    background: #e6e6ea;
}

/* ---------- 列表 - 4 列表格布局 ---------- */
.hotlist-hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}
.hotlist-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 90px;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #888;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.theme1 .hotlist-table-header {
    border-bottom: 1px solid #e0e0e0;
}
/* 强化：img 未加载时预留海报高度，避免整行塌陷 */
.hotlist-item img.lazy {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #25252b;
    background-image: url('/static/ds3/img/img-bj-k.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}
.theme1 .hotlist-item img.lazy {
    background-color: #f0f0f2;
}
.hotlist-item img.lazy.loaded {
    background-image: none;
    background-color: transparent;
    opacity: 1;
}

/* 桌面端 - 4 列布局（hotlist 强化：grid） */
.hotlist-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px 90px;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: transform 0.2s, background 0.2s, opacity 0.25s ease;
    text-decoration: none;
    align-items: start;
    opacity: 1;
}
@keyframes hotlistItemIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hotlist-item.fade-in {
    animation: hotlistItemIn 0.35s ease both;
}
.hotlistHotList-fadeout { opacity: 0; transition: opacity 0.15s ease; }

.theme2 .hotlist-item {
    border: 1px solid rgba(63, 63, 63, 0.67);
    filter: drop-shadow(rgba(0, 0, 0, 0.31) 2px 11px 30px);
    backdrop-filter: blur(26.5px);
    background: linear-gradient(273deg, rgba(191, 191, 191, 0.14) 27.08%, rgba(74, 74, 74, 0.13) 100.67%), rgba(0, 0, 0, 0.33);
}
.theme2 .hotlist-item:hover { transform: scale(1.01); }

.theme1 .hotlist-item {
    background: #f0f0f2;
}
.theme1 .hotlist-item:hover { transform: scale(1.01); }

/* 第 1 列 - 排名 + 升降 */
.hotlist-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
}
.hotlist-rank-num {
    font-weight: bold;
    font-size: 18px;
    color: #999;
    line-height: 1;
}
.hotlist-rank.top1 .hotlist-rank-num { color: #e74c3c; }
.hotlist-rank.top2 .hotlist-rank-num { color: #f39c12; }
.hotlist-rank.top3 .hotlist-rank-num { color: #27ae60; }

.rank-change {
    display: inline-block;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.4;
}
.rank-change.up { color: #ef4444; background: rgba(239,68,68,0.15); }
.rank-change.down { color: #22c55e; background: rgba(34,197,94,0.15); }

/* 第 2 列 - 名称区域（参照 tmdb .tmdb-info 风格） */
.hotlist-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.hotlist-info-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
}

.hotlist-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    opacity: .92;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

/* meta 行：容纳色块 chip（与 tmdb .tmdb-meta 同款布局） */
.hotlist-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 18px;
}

.hotlist-days {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
    width: fit-content;
}
.theme1 .hotlist-days {
    color: #5a6fd8;
    background: #e8eaf6;
    border-color: #c5cae9;
}

.hotlist-snippet {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 18px;
}
.theme1 .hotlist-snippet {
    color: #888;
}

.hotlist-no-pic {
    width: 72px;
    height: 96px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05) url(/static/ds3/img/img-bj-k.png) center / cover no-repeat;
}
.theme1 .hotlist-no-pic {
    background-color: rgba(0,0,0,0.08);
}

/* 第 3 列 - 平台图标容器 */
.hotlist-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    height: 100%;
}
.platform-icon {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
}
.platform-icon:hover { transform: scale(1.1); }
.platform-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.platform-icon .platform-short {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    pointer-events: none;
}
.platform-icon.no-img .platform-short {
    color: rgba(255,255,255,0.95);
}

/* 第 4 列 - 热度 */
.hotlist-heat {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.heat-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: bold;
    color: #f7c948;
}

/* 数据来源 */
.data-source {
    text-align: center;
    padding: 30px 0 0;
    color: #666;
    font-size: 12px;
}
.data-source a { color: #ff9800; }

/* 更新时间 */
.hotlist-meta {
    text-align: center;
    margin: -10px 0 18px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.theme1 .hotlist-meta { color: #888; }
.hotlist-meta i {
    margin-right: 4px;
    opacity: 0.7;
}
.hotlist-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    padding: 0 3px;
    border-radius: 3px;
    line-height: 14px;
    height: 16px;
    margin-left: 8px;
    flex-shrink: 0;
}
/* 移动端 */
@media (max-width: 767px) {
    .hotlist-hot-list { padding: 0px; }
    .hotlist-table-header { display: none; }
    .guduo-tabs { gap: 6px; padding: 0px; }
    .guduo-tab { padding: 5px 14px; font-size: 13px; }

    .hotlist-item {
        grid-template-columns: 26px 1fr auto 56px;
        gap: 8px;
        padding: 12px 6px;
        align-items: center;
    }
    .hotlist-info {
        align-items: center;
    }
    .hotlist-item img {
        width: 52px;
        height: 70px;
    }

    .hotlist-title { font-size: 14px; }
    .hotlist-snippet { display: none; }
    .hotlist-rank-num { font-size: 13px; }
    .hotlist-platform {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    .platform-icon { width: 22px; height: 22px; border-radius: 5px; }
    .platform-icon .platform-short { font-size: 9px; }
    .heat-tag { font-size: 12px; }

    .hotlist-tag { display: none !important; }
}
