/* PRO2模板增强样式 - 2026-01-26 */

/* 热门搜索高亮 */
[class~="hot-search-list"] a {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    transition: all 0.3s;
}

[class~="hot-search-list"] a:hover {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
    transform: translateY(-2px);
}

/* 强制给前三个加高亮色 */
[class~="hot-search-list"] a:nth-child(1),
[class~="hot-search-list"] a:nth-child(2),
[class~="hot-search-list"] a:nth-child(3) {
    border-color: rgba(255, 95, 0, 0.3);
    color: #ff5f00;
    background: rgba(255, 95, 0, 0.05);
}

/* 卡片统一高度 (2026-01-23) */
[class~="pic-list"] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: start !important;
}

[class~="pic-list"] > li,
[class~="pic-list"] > li[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

[class~="pic-img"],
a[class~="pic-img"],
[class~="pic-list"] [class~="pic-img"] {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 140% !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #1a1a2e !important;
}

[class~="pic-img"] img,
a[class~="pic-img"] img,
[class~="pic-list"] [class~="pic-img"] img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

[class~="pic-list"] h3[class~="name"] {
    font-size: 14px !important;
    line-height: 40px !important;
    height: 40px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    [class~="pic-list"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    [class~="pic-list"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    [class~="pic-list"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    [class~="pic-list"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* 播放器增强 */
[class~="player-wrapper"] {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

[class~="player-wrapper"] iframe,
[class~="player-wrapper"] video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 剧集列表网格 */
[class~="episode-grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

[class~="episode-item"] {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ccc;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

[class~="episode-item"]:hover {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
}

[class~="episode-item"][class~="active"] {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
}

/* FAQ模块 */
[class~="faq-section"] {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

[class~="faq-item"] {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[class~="faq-item"]:last-child {
    border-bottom: none;
}

[class~="faq-question"] {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

[class~="faq-answer"] {
    color: #ccc;
    line-height: 1.6;
}

/* 相关推荐 */
[class~="related-grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* 新闻卡片 */
[class~="news-card"] {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

[class~="news-card"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[class~="news-card"] img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

[class~="news-content"] {
    padding: 15px;
}

[class~="news-title"] {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[class~="news-meta"] {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* 排行榜样式 */
[class~="rank-tabs"] {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

[class~="rank-tab"] {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

[class~="rank-tab"]:hover,
[class~="rank-tab"][class~="active"] {
    color: #ff5f00;
    border-bottom-color: #ff5f00;
}

/* 加载动画 */
[class~="loading"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff5f00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 返回顶部按钮 */
#to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff5f00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 9999;
}

#to_top:hover {
    background: #e65500;
    transform: translateY(-3px);
}

/* 页脚合作伙伴 */
[class~="partner-label"] {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
}

[class~="partner-link"] {
    margin-right: 15px;
}

/* 页脚版权双语 */
[class~="copyright-bilingual"] {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    line-height: 1.8;
}

/* 模板版权声明 */
[class~="vt-template-copyright"] {
    margin-top: 36px;
    padding: 18px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 13px;
    line-height: 1.9;
    color: #8b949e;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    [class~="episode-grid"] {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    [class~="related-grid"] {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    [class~="pic-list"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #to_top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}
