/* Top Games Carousel - Full-Width Slideshow */

.top-games-carousel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 650px;
    width: 90%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 10;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Hide carousel when games/apps panels are open */
body.content-open .top-games-carousel {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

.top-games-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bright-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-games-title i {
    color: #ff6b6b;
}

.top-games-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.top-game-card {
    flex-shrink: 0;
    width: 100%;
    height: 240px;
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
}

/* Quick Access inside carousel */
.carousel-quick-access {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    border-radius: 0 0 20px 20px;
}

.carousel-qa-title {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.carousel-qa-title i {
    color: var(--accent);
    font-size: 10px;
}

.carousel-qa-items {
    display: flex;
    gap: 8px;
}

.carousel-qa-item {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.carousel-qa-item:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.top-game-card .bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s, filter 0.3s;
    filter: brightness(0.7);
}

.top-game-card:hover .bg-img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.top-game-card .rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.top-game-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    padding-left: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-game-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.top-game-card .play-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-game-card .play-btn:hover {
    transform: scale(1.05);
    background: white;
    color: var(--accent);
}

/* Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-3);
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--accent);
    opacity: 0.7;
}

/* Hide carousel on very small screens */
@media screen and (max-width: 600px),
screen and (max-height: 500px) {
    .top-games-carousel {
        display: none !important;
    }
}