.bgs-spinner-wrap {
    --bgs-duration: 32s;
    --bgs-direction: normal;
    position: relative;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.bgs-header-bar {
    display: none !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(87, 118, 242, 0.92) 0%, rgba(67, 96, 221, 0.92) 100%);
    border: 1px solid rgba(153, 181, 255, 0.14);
    box-sizing: border-box;
}

.bgs-header-icon {
    font-size: 20px;
    line-height: 1;
}

.bgs-header-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bgs-marquee-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 2px 0;
}

.bgs-marquee-shell::before,
.bgs-marquee-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 130px;
    z-index: 3;
    pointer-events: none;
}

.bgs-marquee-shell::before {
    left: 0;
    background: linear-gradient(90deg, #040a17 0%, rgba(4, 10, 23, 0.96) 34%, rgba(4, 10, 23, 0.74) 62%, rgba(4, 10, 23, 0) 100%);
}

.bgs-marquee-shell::after {
    right: 0;
    background: linear-gradient(270deg, #040a17 0%, rgba(4, 10, 23, 0.96) 34%, rgba(4, 10, 23, 0.74) 62%, rgba(4, 10, 23, 0) 100%);
}

.bgs-marquee-track {
    display: inline-flex !important;
    flex-flow: row nowrap !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    width: max-content;
    min-width: max-content;
    align-items: stretch !important;
    animation: bgs-scroll var(--bgs-duration) linear infinite;
    animation-direction: var(--bgs-direction);
    will-change: transform;
}

.bgs-pause-hover:hover .bgs-marquee-track {
    animation-play-state: paused;
}

.bgs-card {
    display: block !important;
    flex: 0 0 198px !important;
    width: 198px !important;
    min-width: 198px !important;
    max-width: 198px !important;
}

.bgs-card-link {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    min-height: 198px;
    padding: 20px;
    border-radius: 22px;
    text-decoration: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(43, 88, 255, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(12, 18, 31, 0.98) 0%, rgba(9, 14, 23, 0.99) 100%);
    border: 1px solid rgba(86, 117, 221, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 10px 26px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.bgs-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 136, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 14px 30px rgba(0, 8, 25, 0.34);
}

.bgs-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(233,241,255,0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 8px 20px rgba(9, 16, 31, 0.28);
    overflow: hidden;
}

.bgs-logo-box img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    display: block;
}

.bgs-logo-fallback {
    color: #19357d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.bgs-card-meta {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.bgs-card-name {
    color: #ffffff;
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    min-height: 52px;
    max-height: 52px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.bgs-pill {
    align-self: flex-start;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: rgba(224, 231, 255, 0.76);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

@keyframes bgs-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-50% - 10px), 0, 0);
    }
}

@media (max-width: 768px) {
    .bgs-spinner-wrap {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        padding: 0;
        border-radius: 0;
    }

    .bgs-header-bar {
    display: none !important;
        min-height: 50px;
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 16px;
    }

    .bgs-header-text {
        font-size: 17px;
    }

    .bgs-marquee-shell::before,
    .bgs-marquee-shell::after {
        width: 54px;
    }

    .bgs-card {
        display: block !important;
        flex: 0 0 170px !important;
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }

    .bgs-card-link {
        min-height: 170px;
        padding: 16px;
        gap: 14px;
        border-radius: 20px;
    }

    .bgs-logo-box {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 18px;
    }

    .bgs-card-name {
        font-size: 19px;
    }

    .bgs-pill {
        font-size: 12px;
        padding: 7px 12px;
    }
}
