.scroll-content {
    width: max-content;
    animation: games-scroll-marquee 40s linear infinite;
}

.scroll-content:hover {
    animation-play-state: paused;
}

@keyframes games-scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: auto;
    height: auto;
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: solid 2px #fc521400;
    cursor: pointer;
    box-sizing: border-box;
}

.swiper-slide:hover {
    border: solid 2px #fc5214;
}

.swiper-slide-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.swiper-slide .swiper-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center center;
}

.swiper-slide:hover .swiper-img {
    transform: scale(1.05);
}

.swiper-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.swiper-slide-caption {
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
}

.swiper-slide-thumb {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.swiper-slide-info {
    flex: 1;
    min-width: 0;
    width: auto;
    text-align: left;
    padding: 0;
    color: #fff;
}

.swiper-slide-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.swiper-slide-desc {
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.swiper-slide-play {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    min-height: 28px;
    background-color: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.single-row-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-scroll {
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.games-scroll.dragging {
    cursor: grabbing !important;
    scroll-behavior: auto;
}

.games-scroll.dragging * {
    pointer-events: none;
}

.games-grid {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.games-grid--wrap {
    display: flex;
    flex-wrap: wrap;
    min-width: 100%;
}

.game-card2 {
    width: 190px;
    background: #fff;
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin: 2px 0 12px;
    box-shadow: 0 0.22rem 0.67rem 0 rgba(0, 0, 0, 0.08);
    outline: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
}

.game-card2:hover {
    outline-color: #fc5214;
}

.game-card2 a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
}

.game-card2-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card2-info {
    width: 60%;
}

.game-card2-title {
    padding: 6px 8px 2px;
    font-size: 14px;
    font-weight: 500;
}

.game-card2-desc {
    padding: 0 8px 6px;
    font-size: 12px;
    color: #999;
}

.game-card2-play-wrap {
    width: 35%;
}

.game-card2-play {
    padding: 2px 8px 5px;
    border: solid 1px #F57748;
    border-radius: 20px;
    color: #F57748;
    width: 90%;
    text-align: center;
}

.game-image2 {
    width: 100%;
    height: 120px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    border-top-right-radius: 5px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center center;
    object-fit: cover;
}

.game-thumb--clip {
    overflow: hidden;
}

.game-image--150 {
    height: 150px;
}

.game-image--180 {
    width: 180px;
    height: 180px;
    object-fit: cover;
}

.game-image--50 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card--table {
    display: table;
}

.game-card--mini {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
    border-radius: 8px;
    overflow: hidden;
}

.game-card--mini .game-thumb--clip {
    width: 100%;
    height: 100%;
}

.game-card--mini:hover {
    outline: none;
    transform: none;
}

.scroll-arrow {
    position: absolute;
    top: 50px;
    padding: 10px;
    cursor: pointer;
    display: none;
}

.scroll-arrow--left {
    left: 0;
}

.scroll-arrow--right {
    right: 0;
}

.scroll-arrow img {
    width: 50px;
}

.scroll-arrow--left img {
    transform: scaleX(1);
}

.scroll-arrow--right img {
    transform: scaleX(-1);
}

.random-games-bar {
    padding: 14px 16px;
    background-color: #f6f7f8;
    border-radius: 8px;
    overflow: hidden;
}

.random-games-bar .scroll-content,
.random-games-bar .games-grid {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-kuai-title {
    width: 100%;
    padding: 8px 2px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #333;
}

.game-list-container {
    min-height: 84vh;
}

.game-list-grid {
    display: flex;
    flex-wrap: wrap;
}

.game-kuai-title--fixed {
    width: 200px;
    padding: 8px 2px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}
