.up-steam {
    --primary-color: #00adac;
    --border: #1d2a2a;
    --bg-white-2: #172323;
    --text-gray: #93a6a6;
    margin: 18px 0 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--up-line, #1d2a2a);
    border-radius: 16px;
    background: var(--up-surface, #121b1b);
}

.gs-steam-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray, #a0a0a0);
}

.gs-steam-label i {
    font-size: 15px;
    line-height: 1;
    opacity: .8;
}

.gs-steam-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.gs-steam-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white-2, #1f1f1f);
    cursor: pointer;
}

.gs-steam-tile[hidden] { display: none; }

.gs-steam-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .2s ease, transform .3s ease;
}

.gs-steam-tile:hover img,
.gs-steam-tile:focus-visible img {
    opacity: 1;
    transform: scale(1.04);
}

.gs-steam-tile:focus-visible {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
}

.gs-steam-tile-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 20px;
    pointer-events: none;
    transition: background .2s ease;
}

.gs-steam-tile:hover .gs-steam-tile-play { background: var(--primary-color, #667eea); }

.gs-steam-tile-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .gs-steam-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gs-steam-strip::-webkit-scrollbar { display: none; }

    .gs-steam-tile {
        flex: 0 0 42%;
        scroll-snap-align: start;
    }
}

.gs-steam-box {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 72px;
    background: rgba(0, 0, 0, .92);
}

.gs-steam-box.is-open { display: flex; }

.gs-steam-box-media {
    width: min(100%, 1280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gs-steam-box-media img,
.gs-steam-box-media video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    border-radius: 8px;
    background: #000;
}

.gs-steam-box-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.gs-steam-error {
    margin: 0;
    color: #bbb;
}

.gs-steam-box button {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.gs-steam-box button:hover { background: rgba(255, 255, 255, .25); }
.gs-steam-box button[hidden] { display: none; }
.gs-steam-box-close { top: 12px; right: 12px; }
.gs-steam-box-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gs-steam-box-next { right: 14px; top: 50%; transform: translateY(-50%); }

.gs-steam-box-count {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.gs-steam-box-count[hidden] { display: none; }

@media (max-width: 575.98px) {
    .gs-steam-box { padding: 56px 8px 72px; }
    .gs-steam-box-prev, .gs-steam-box-next { top: auto; bottom: 8px; transform: none; }
}
