/* Game History Styles */
.game-history {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0px 16px 0px 16px;
    margin-top: -16px;
    height: 100px;
}

.game-history-wrapper {
    position: relative;
}

.game-history-content {
    position: relative;
}

.game-history-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-snap-type: x proximity;
}

.game-history-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}
.game-history-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    min-width: min-content;
}

.game-history-list li {
    flex: 0 0 auto;
    width: 68px;
    aspect-ratio: 1;
    position: relative;
    box-shadow: var(--shadow-angle);
    border-radius: var(--card-game-border-radius);
    scroll-snap-align: start;
}

.game-history-list .card-game {
    display: contents;
}

/* Navigation arrows - Overlay style */
.game-history-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 68px;
    background: rgba(0, 0, 0, 0.5);
    border:none;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    /* z-index: 10; */
    pointer-events: auto;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0;
}

.game-history-nav svg {
    width: 28px;
    height: 28px;
}

.game-history-nav-prev {
    left: 0px;
}

.game-history-nav-next {
    right: 0px;
}

/* Ẩn mũi tên khi không thể scroll (không có class is-visible) */
.game-history-nav:not(.is-visible) {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Hiển thị mũi tên khi hover vào wrapper hoặc content VÀ có thể scroll (có class is-visible) */
.game-history-wrapper:hover .game-history-nav.is-visible,
.game-history-content:hover .game-history-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}
