.stilecht-rss-scroller {
    position: relative;
    --rss-gap: 12px;
}

.stilecht-rss-track {
    display: flex;
    gap: var(--rss-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stilecht-rss-track::-webkit-scrollbar {
    display: none;
}

.stilecht-rss-slide {
    flex: 0 0 calc((100% - (var(--rss-per-view) - 1) * var(--rss-gap)) / var(--rss-per-view));
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .stilecht-rss-scroller {
        --rss-per-view: 2 !important;
    }
}

@media (max-width: 480px) {
    .stilecht-rss-scroller {
        --rss-per-view: 1 !important;
    }
}

.stilecht-rss-card {
    position: relative;
    height: var(--rss-slider-height, 400px);
    overflow: hidden;
    border-radius: 4px;
    background-color: #e9ecef;
}

.stilecht-rss-img-link {
    display: block;
    height: 100%;
    line-height: 0;
}

.stilecht-rss-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stilecht-rss-slide-placeholder {
    height: 100%;
    background-color: #e9ecef;
}

.stilecht-rss-no-image-icon {
    font-size: 4rem;
    opacity: 0.4;
}

.stilecht-rss-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2rem 1.25rem 1rem;
    text-align: left;
    pointer-events: none;
}

.stilecht-rss-title-link {
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}

.stilecht-rss-title-link:hover .stilecht-rss-title {
    text-decoration: underline;
}

.stilecht-rss-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stilecht-rss-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

/* Arrows */
.stilecht-rss-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.stilecht-rss-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.stilecht-rss-arrow-prev {
    left: 0.5rem;
}

.stilecht-rss-arrow-next {
    right: 0.5rem;
}

/* Indicators */
.stilecht-rss-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.stilecht-rss-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c4c4c4;
    cursor: pointer;
    transition: background 0.15s ease;
}

.stilecht-rss-dot.active {
    background: #555;
}

.stilecht-rss-empty-preview {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stilecht-rss-empty-preview p {
    margin: 0.25rem 0;
}
