/*CSS HANDLER */
.MostPlayedGamesTitle {
    width: 100%;
    margin-top: 20px;
    height: 30px;
    text-align: center;
    font-size: 20px;
    color: var(--textColor3) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

#MostPlayedGames {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    justify-content: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    height: calc((100vh - 400px) / 2);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#MostPlayedGames.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

#MostPlayedGames.fade-in {
    opacity: 1;
    transform: translateX(0);
}

#MostPlayedGames::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background: var(--regola_gradiente3);
}

#MostPlayedGames::-webkit-scrollbar {
    width: 7px; 
    border-radius: 10px;
}

#MostPlayedGames::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--table_header);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.mostplayed {
    display: block;
    padding: 0;
    position: relative;
    text-align: center;
    transition: all 0.5s ease-in-out;
    border-radius: 9px;
    margin: 5px;
    width: 75%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    vertical-align: top;
    overflow: hidden;
    z-index: 1;
}

.mostplayed .heart {
    cursor: pointer;
    color: #d9d9d9;
    z-index: 1;
    position: relative;
    font-size: 16px;
    margin: 10px;
    margin-bottom: -40px;
}

.mostplayed li {
    background: transparent;
    display: block;
    padding-left: 20px;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    text-align: center;
    transition: all 0.5s ease-in-out;
    border: none;
    border-radius: 9px;
    margin: 0;
    margin-top: 5px;
    width: 100%;
    height: 100%;
}

.mostplayed li .button.for_logged,
.mostplayed li .button.for_real {
    background: transparent;
    background-image: url(../img/play/play.svg);
    background-repeat: no-repeat;
    background-size: 50px auto;
    opacity: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    content: "";
    left: 0;
    bottom: 0;
    font-size: 1px;
    letter-spacing: 0em;
    text-align: center;
    text-transform: none;
    height: 50px;
    width: 50px;
}

.mostplayed li .button.for_logged::after {
    content: none;
}

.mostplayed li .title {
    margin-top: -30px;
    background-color: transparent;
    background: linear-gradient(to top, black, transparent);
    padding-bottom: 2px;
    padding-top: 5px;
    display: block;
    color: white;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: center;
    position: relative;
}

.mostplayed li::before {
    opacity: 0;
    background: #000000B2 none repeat scroll 0 0;
    content: "";
    height: 100%;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    position: absolute;
    border-radius: 9px;
}

.mostplayed li:hover .button.for_logged {
    opacity: 1;
    content: "";
    color: transparent;
    top: -10px;
}

.mostplayed li:hover::before {
    opacity: 1;
}

.mostplayed li a {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
}

.mostplayed li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.mostplayed li span {
    display: block;
}

.game-navigation {
    position: absolute;
    top: 47%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
  
.nav-btn {
    background: transparent !important;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    height: 10px;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

.nav-btn i:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}
  
.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#prevBtn {
    left: 5px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out; 
}
  
#nextBtn {
    right: 5px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}

#prevBtn:hover, #nextBtn:hover {
    transform: scale(1.2);
}