.fg-trending {
    margin-bottom: 1.25rem;
}

.fg-trending__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(10, 45, 92, 0.1);
    border-radius: 14px;
    box-shadow:
        0 10px 28px rgba(10, 45, 92, 0.08),
        0 2px 8px rgba(10, 45, 92, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fg-trending__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1a5fb4;
    white-space: nowrap;
}

.fg-trending__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(180deg, #3b8beb 0%, #1a5fb4 100%);
    box-shadow:
        0 4px 10px rgba(26, 95, 180, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.fg-trending__track-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.fg-trending__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.15rem 0;
}

.fg-trending__track::-webkit-scrollbar {
    display: none;
}

.fg-trending__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    width: min(100%, 260px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.fg-trending__item:hover {
    transform: translateY(-2px);
    color: inherit;
}

.fg-trending__thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    box-shadow:
        0 4px 12px rgba(10, 45, 92, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fg-trending__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.fg-trending__item:hover .fg-trending__title {
    color: #1a5fb4;
}

.fg-trending__nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.fg-trending__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(10, 45, 92, 0.14);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
    color: #475569;
    box-shadow:
        0 3px 8px rgba(10, 45, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.fg-trending__btn:hover {
    color: #1a5fb4;
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(10, 45, 92, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fg-trending__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 767px) {
    .fg-trending__bar {
        flex-wrap: wrap;
        padding: 0.85rem;
    }

    .fg-trending__track-wrap {
        order: 3;
        flex: 1 1 100%;
    }

    .fg-trending__nav {
        margin-left: auto;
    }

    .fg-trending__item {
        width: 220px;
    }
}
