/* ===== 覆盖深色全局背景 ===== */
body {
    background-color: #0d181a;
}
/*.container {*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    padding: 0 15px;*/
/*}*/

/* 海报悬浮放大特效 */
.rank-poster {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.rank-poster:hover {
    transform: scale(1.12); /* 放大1.12倍 */
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.4); /* 青色发光外圈 */
    z-index: 10; /* 放大后浮在其他文字上面 */
}

/* 列表入场动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.rank-item {
    animation: slideUp 0.5s ease forwards;
    opacity: 0; /* 初始隐藏 */
}
/* 给每一条设置不同的延迟时间，实现“错落感” */
.rank-item:nth-child(1) { animation-delay: 0.0s; }
.rank-item:nth-child(2) { animation-delay: 0.1s; }
.rank-item:nth-child(3) { animation-delay: 0.2s; }
.rank-item:nth-child(4) { animation-delay: 0.3s; }
.rank-item:nth-child(5) { animation-delay: 0.4s; }
.rank-item:nth-child(6) { animation-delay: 0.5s; }
.rank-item:nth-child(7) { animation-delay: 0.6s; }
.rank-item:nth-child(8) { animation-delay: 0.7s; }
.rank-item:nth-child(9) { animation-delay: 0.8s; }
.rank-item:nth-child(10) { animation-delay: 0.9s; }
/* 超过10条的统一延迟 */
.rank-item:nth-child(n+11) { animation-delay: 1.0s; }

/* 第一名发光跳动特效 */
.rank-item:nth-child(1) .rank-num { 
    background: #FFD700; 
    color: #1a1a1a; 
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    animation: pulse-gold 1.5s infinite;
}
@keyframes pulse-gold {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* 科技动态背景光晕 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(0, 206, 201, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 206, 201, 0.03) 0%, transparent 50%);
    animation: aura-move 20s infinite alternate linear;
    pointer-events: none; /* 不影响点击 */
    z-index: -1;
}
@keyframes aura-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(10deg); }
}

/* 为热度上升的箭头添加弹跳动画 */
@keyframes bounce-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}
/* 让排名前三的箭头具有弹跳力 */
.rank-item:nth-child(1) .fa-arrow-up { animation: bounce-up 1.2s infinite; }
.rank-item:nth-child(2) .fa-arrow-up { animation: bounce-up 1.2s infinite 0.2s; }
.rank-item:nth-child(3) .fa-arrow-up { animation: bounce-up 1.2s infinite 0.4s; }

/* 排行列表鼠标悬浮流光特效 */
.rank-item {
    position: relative;
    overflow: hidden; /* 隐藏溢出的流光 */
}
.rank-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 206, 201, 0.05), transparent);
    transition: left 0.5s;
    pointer-events: none; /* 防止遮挡点击 */
}
.rank-item:hover::before {
    left: 100%; /* 鼠标移入时，流光瞬间扫过 */
}

/* 排行榜页头 */
.rank-page-title {
    color: #00CEC9;
    font-size: 26px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 206, 201, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* 分类 Tabs 导航 */
.rank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.rank-tabs a {
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}
.rank-tabs a:hover, .rank-tabs a.active {
    background: #00CEC9;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 206, 201, 0.3);
}

/* 隐藏/显示切换 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ===== 主体左侧（深色卡片，与右侧统一） ===== */
.detail-main {
    background: #132224; /* 由白色改为深色 */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.rank-list {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}
.rank-item {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* 半透明白色分割线 */
    transition: background 0.2s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: rgba(255, 255, 255, 0.04); }

/* 排名数字 */
.rank-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.15); /* 半透明白底 */
    color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-right: 16px;
}
/* 前三金/银/铜色 */
.rank-item:nth-child(1) .rank-num { background: #FFD700; color: #1a1a1a; box-shadow: 0 2px 8px rgba(255,215,0,0.3); }
.rank-item:nth-child(2) .rank-num { background: #C0C0C0; color: #1a1a1a; box-shadow: 0 2px 8px rgba(192,192,192,0.3); }
.rank-item:nth-child(3) .rank-num { background: #CD7F32; color: #fff; box-shadow: 0 2px 8px rgba(205,127,50,0.3); }

/* 海报 */
.rank-poster {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 16px;
}
.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文字信息 */
.rank-info {
    flex: 1;
    min-width: 0;
}
.rank-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #eeeeee; /* 深色背景上改为白色文字 */
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}
.rank-info h3 a { color: #eeeeee; text-decoration: none; }
.rank-info h3 a:hover { color: #00CEC9; }
.rank-info .rank-meta { 
    font-size: 13px; 
    color: rgba(255, 255, 255, 0.6); /* 辅助文字改为半透明白 */
}
.rank-info .rank-meta i { color: #00CEC9; margin-right: 4px; }

/* 右侧分数 */
.rank-score {
    flex-shrink: 0;
    margin-left: 16px;
    text-align: right;
    font-weight: 700;
    color: #00CEC9;
    font-size: 18px;
}
.rank-score small { font-weight: 400; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

/* ===== 侧边栏（深色卡片） ===== */
.detail-sidebar__section {
    background: #132224;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-sidebar__title {
    color: #00CEC9;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
}
.sidebar-rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-rank-item:last-child { border-bottom: none; }

/* 侧边栏排名圆点 */
.sidebar-rank-num {
    width: 24px; height: 24px;
    background: rgba(255,255,255,0.15);
    color: #eee;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    margin-right: 12px; flex-shrink: 0;
}
/* 侧边栏前三 */
.sidebar-rank-item:nth-child(1) .sidebar-rank-num { background: #FFD700; color: #1a1a1a; }
.sidebar-rank-item:nth-child(2) .sidebar-rank-num { background: #C0C0C0; color: #1a1a1a; }
.sidebar-rank-item:nth-child(3) .sidebar-rank-num { background: #CD7F32; color: #fff; }

.sidebar-rank-title {
    flex: 1;
    font-size: 14px;
    color: #eeeeee;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-rank-title a { color: #eee; text-decoration: none; }
.sidebar-rank-title a:hover { color: #00CEC9; }
.sidebar-rank-score {
    font-size: 13px;
    color: #00CEC9; /* 改为青色 */
    font-weight: 600;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 移动端适配（按你的要求：主列表铺满，完美贴合边框） */
@media (max-width: 768px) {
    /* 去除移动端主卡片的内部留白，让它跟侧边栏一样顶格铺满 */
    .detail-main {
        padding: 0 0 12px 0; 
    }
    
    .rank-item { 
        padding: 14px 0; /* 让电影条目自身靠边 */
    }
    
    .rank-poster { 
        width: 44px; 
        height: 60px; 
        margin-right: 12px; 
    }
    
    .rank-score { 
        font-size: 15px; 
    }
    
    .rank-num { 
        width: 26px; 
        height: 26px; 
        font-size: 12px; 
        margin-right: 10px; 
    }
    
    .rank-tabs a { 
        padding: 6px 12px; 
        font-size: 13px; 
    }

    /* 移动端右侧侧边栏要稍微拉开一点距离，避免贴底太紧 */
    .detail-sidebar__section {
        padding: 14px;
        margin-bottom: 16px;
    }
}

/* 默认电脑端：4个在一行 */
.stats-wrap { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; }
.stats-item { padding: 15px; flex: 1 1 auto; min-width: 100px; box-sizing: border-box; }
.stats-num { font-size: 40px; font-weight: bold; color: #FFD700; line-height: 1.2; }
.stats-label { font-size: 16px; opacity: 0.8; line-height: 1.4; }

/* 平板和大屏手机：2x2 网格 */
@media screen and (max-width: 768px) {
    .stats-item { flex: 1 1 50%; padding: 10px 5px; }
    .stats-num { font-size: 32px; }
    .stats-label { font-size: 14px; }
}

/* 小屏手机：2x2 网格，字再小一点 */
@media screen and (max-width: 480px) {
    .stats-item { flex: 1 1 10%; padding: 8px 2px; }
    .stats-num { font-size: 26px; }
    .stats-label { font-size: 12px; }
}


    
 