.anlamtv-vtrend {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: var(--anlamtv-vtrend-height, 480px);
    overflow: hidden;
    border-radius: 8px;
    margin: 24px 0;
    background: #111;
    touch-action: pan-x; /* اسکرول افقی صفحه دست‌نخورده می‌ماند، عمودی برای درگ آزاد است */
    -webkit-user-select: none;
    user-select: none;
}

body.rtl .anlamtv-vtrend {
    direction: rtl;
}

.anlamtv-vtrend__track {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.5s ease;
}

.anlamtv-vtrend.is-dragging .anlamtv-vtrend__track {
    transition: none !important;
}

.anlamtv-vtrend__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.anlamtv-vtrend__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #333;
    pointer-events: none;
}

.anlamtv-vtrend__skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #2b2b2b 30%, #3d3d3d 45%, #3d3d3d 55%, #2b2b2b 70%);
    background-size: 250% 100%;
    animation: anlamtv-vtrend-shimmer 1.6s ease-in-out infinite;
}

@keyframes anlamtv-vtrend-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.anlamtv-vtrend__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.anlamtv-vtrend__img.is-loaded {
    opacity: 1;
}

.anlamtv-vtrend__image.is-loaded .anlamtv-vtrend__skeleton {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anlamtv-vtrend__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
    pointer-events: none;
}

.anlamtv-vtrend__content {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    padding: 20px;
    color: #fff;
}

body.rtl .anlamtv-vtrend__content {
    direction: rtl;
}

.anlamtv-vtrend__category {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.anlamtv-vtrend__category a {
    color: #fff;
    text-decoration: none;
}

.anlamtv-vtrend__title {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.anlamtv-vtrend__title a {
    color: #fff;
    text-decoration: none;
}

/* متا (تاریخ انتشار و نام نویسنده) همیشه در پایین عکس و کاملاً خوانا */
.anlamtv-vtrend__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.anlamtv-vtrend__nav {
    position: absolute;
    inset-inline-end: 14px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    pointer-events: auto;
}

.anlamtv-vtrend__nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.anlamtv-vtrend__nav--prev {
    top: 14px;
}

.anlamtv-vtrend__nav--next {
    bottom: 14px;
}

@media (max-width: 600px) {
    .anlamtv-vtrend {
        height: 320px;
    }
    .anlamtv-vtrend__content {
        padding: 14px;
    }
    .anlamtv-vtrend__title {
        font-size: 15px;
    }
}
