.rtp-rank-section {
    position: relative;
    width: 100%;
    margin: 14px 0 18px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 17, 26, 0.98) 0%, rgba(10, 12, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
}

.rtp-rank-title {
    width: 12%;
}

.rtp-rank-title h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.rtp-rank-title p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #9aa3b2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rtp-slider-wrap {
    overflow: hidden;
    width: 88%;
    border-radius: 8px;
}

.rtp-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
}

.rtp-slider-track::-webkit-scrollbar {
    display: none;
}

.rtp-slider-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.rtp-slide {
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 320px;
}

.rtp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.rtp-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.rtp-rank-wrap {
    width: 34px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.rtp-rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.rtp-rank-badge.top-1 {
    background: linear-gradient(180deg, #ffe27a 0%, #e8b700 100%);
    color: #111;
}

.rtp-rank-badge.top-2 {
    background: linear-gradient(180deg, #edf2f7 0%, #bcc4d2 100%);
    color: #111;
}

.rtp-rank-badge.top-3 {
    background: linear-gradient(180deg, #ffc88d 0%, #f38a1a 100%);
    color: #111;
}

.rtp-rank-badge.normal {
    background: rgba(255, 255, 255, 0.06);
    color: #c2c8d3;
}

.rtp-game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rtp-game-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtp-game-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8f97aa;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtp-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    padding-left: 8px;
}

.rtp-data strong {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.rtp-data .trend {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1;
}

.rtp-data .trend.up {
    color: #2dd36f;
}

.rtp-data .trend.down {
    color: #ff4961;
}

.rtp-data .trend.same {
    color: #9aa3b2;
}

.rtp-data .trend .change-text {
    margin-left: 4px;
    font-size: 10px;
    font-weight: 600;
}

.rtp-data .trend.up .change-text {
    color: #2dd36f;
}

.rtp-data .trend.down .change-text {
    color: #ff4961;
}

.rtp-data .trend.same .change-text {
    color: #9aa3b2;
}



@media (max-width: 767px) {
    .rtp-rank-section {
        margin: 12px 0;
        border-radius: 8px;
        flex-direction: column;
    }

    .rtp-rank-title {
        width: 100%;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }

    .rtp-rank-title p {
        font-size: 12px;
    }

    .rtp-slider-wrap{
        width: 100%;
    }

    .rtp-slide {
        min-width: 260px;
        max-width: 260px;
        flex: 0 0 260px;
    }

    .rtp-item {
        gap: 10px;
        padding: 11px 12px;
        border-radius: 12px;
    }

    .rtp-rank-wrap {
        width: 30px;
    }

    .rtp-rank-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .rtp-game-info h4 {
        font-size: 14px;
    }

    .rtp-game-info p {
        font-size: 11px;
    }

    .rtp-data strong {
        font-size: 14px;
    }
}

/* RTP 排行弹窗样式 */
.rtp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.rtp-modal.show {
    display: flex;
}

.rtp-modal-content {
    background: linear-gradient(180deg, rgba(20, 23, 35, 0.98) 0%, rgba(12, 15, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rtp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rtp-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rtp-modal-close {
    background: transparent;
    border: none;
    color: #9aa3b2;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.rtp-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.rtp-modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.rtp-modal-subtitle {
    font-size: 0.9rem;
    color: #9aa3b2;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rtp-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rtp-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.rtp-modal-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.rtp-modal-rank {
    width: 36px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.rtp-modal-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rtp-modal-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtp-modal-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8f97aa;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtp-modal-data {
    flex-shrink: 0;
    padding-left: 8px;
}

.rtp-modal-data strong {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.rtp-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9aa3b2;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .rtp-modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 16px;
    }

    .rtp-modal-header {
        padding: 16px;
    }

    .rtp-modal-header h3 {
        font-size: 1.1rem;
    }

    .rtp-modal-body {
        padding: 16px;
    }

    .rtp-modal-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .rtp-modal-rank {
        width: 32px;
    }

    .rtp-modal-info h4 {
        font-size: 14px;
    }

    .rtp-modal-info p {
        font-size: 11px;
    }

    .rtp-modal-data strong {
        font-size: 14px;
    }
}