.index-container {
    display: flex;
    overflow: hidden;
}

.video-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 20px 0 20px 20px;
    width: 825px;
    height: 452px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #F3EFEA;
    overflow: hidden;
    padding: 20px 25px;
}

.video-area {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-video0 {
    height: 370px;
    object-fit: fill;
    border-radius: 6px;
}

.video-text {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 13px;
    user-select: none;
}

.video-text .title-text {
    font-family: Montserrat, Montserrat;
    font-weight: 400;
    font-size: 22px;
    color: #3B3D3D;
    line-height: 26px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

a {
    color: white;
    text-decoration: none;
}
.video-text .play-btn {
    width: 86px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #00D6DE, #57F3F9);
    font-family: Montserrat, Montserrat;
    font-weight: 400;
    font-size: 18px;
    color:#fff;
    font-style: normal;
    text-transform: none;
    cursor: pointer;
}
.video-change {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 140px;
    margin-left: 20px;
    height: 100%;
}


.video-item:last-child {
    margin-bottom: 0;
}
.video-item {
    width: 140px;
    height: 93px;
    cursor: pointer;
    display: flex
;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.change1 .video-item:nth-child(1) .video-img img {
    filter: brightness(1);
}
.video-item .video-img img {
    width: 100%;
    height: 100%;
}
img {
    vertical-align: top;
    border: 0;
}
.change1 .video-item:nth-child(1) .video-play {
    display: none;
}
.video-item .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
#main-video-title{
    font-size: 22px;
    font-weight: 600;
}
.play-triangle {
    width: 60px;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}
.filter-svg {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(233deg) brightness(100%) contrast(102%);
}

@media (max-width: 1024px) {
    .video-container {
        width: calc(100% - 40px);
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .video-area {
        width: 100%;
    }
    
    .main-video0 {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    .video-text{
        display: none;
    } 
    
    .video-change {
        flex-direction: row;
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .video-item {
        margin-bottom: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .video-item:last-child {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .video-container {
        margin: 10px;
        width: calc(100% - 20px);
        padding: 10px;
    }
    
    .main-video0 {
        max-height: 200px;
    }
    
    .video-text {
        flex-direction: column;
        align-items: center;
    }
    #main-video-title{
        display: none;
    }
    
    .video-text .play-btn {
        margin-top: 10px;
    }
}

@media (max-width: 360px) {
    .video-item {
        width: 120px;
        height: 80px;
    }
}

.category-container {
    margin: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-header h2 {
    margin-left: 20px;
    font-size: 20px;
    font-weight: 600;
}

.view-more {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

.category-carousel {
    position: relative;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
    scrollbar-width: none; /* for Firefox */
    /* background: #F3EFEA; */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.carousel-wrapper .game-card {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 15px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-carousel:hover .prev-btn,
.category-carousel:hover .next-btn {
    opacity: 1;
}

.prev-btn {
    width: 40px;
}

.next-btn {
    right: 1px;
    width: 40px;
}

@media (max-width: 768px) {
    .prev-btn, .next-btn {
        display: none; /* Hide buttons on mobile, rely on swipe */
    }
}

.main-content-wrapper {
    display: flex;
    gap: 20px;
    margin: 0 20px;
}

.game-cards-container {
    flex: 1;
    min-width: 0;
    height: 452px;
    overflow: hidden;
}

.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: #F3EFEA;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.game-title{
    margin: 0 auto;
}
.game-card:hover .game-title{
    opacity: 1;
}
.game-card-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.game-card-img img {
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-img img {
    transform: scale(1.1);
}

.game-card-title {
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    /* color: #3B3D3D; */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1400px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .video-container {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .game-cards-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }

    .game-cards-grid {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: minmax(120px, 1fr);
        gap: 10px;
        width: max-content;
    }
    
    .main-content-wrapper {
        margin: 0 10px;
    }
}

