.nrc-root {
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.nrc-root *,
.nrc-root *::before,
.nrc-root *::after {
    box-sizing: border-box;
}

.nrc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.nrc-block-title {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 18px;
    background: var(--nrc-head-bg);
    color: var(--nrc-head-color) !important;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 500;
    text-decoration: none !important;
}

.nrc-controls {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.nrc-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.nrc-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #f5f5f5;
}

.nrc-arrow:disabled {
    opacity: .28;
    cursor: default;
}

.nrc-track {
    display: flex;
    gap: var(--nrc-gap);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.nrc-track::-webkit-scrollbar {
    display: none;
}

.nrc-track.nrc-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.nrc-card {
    flex: 0 0 280px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--nrc-card-bg);
    border-radius: var(--nrc-card-radius);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.nrc-image-link {
    display: block;
    text-decoration: none !important;
}

.nrc-image {
    position: relative;
    width: 100%;
    aspect-ratio: var(--nrc-ratio);
    overflow: hidden;
    border-radius: var(--nrc-image-radius);
    background: #ececec;
}

.nrc-image img,
.nrc-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nrc-image img {
    transition: transform .28s ease;
}

.nrc-card:hover .nrc-image img {
    transform: scale(1.018);
}

.nrc-image-placeholder {
    background: linear-gradient(135deg, #efefef, #dedede);
}

.nrc-card-body {
    padding: var(--nrc-text-padding);
}

.nrc-category {
    display: inline-block;
    margin: 12px 0 5px;
    color: var(--nrc-accent) !important;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 500;
    text-decoration: none !important;
}

.nrc-title {
    margin: 0;
    padding: 0;
    color: var(--nrc-title-color);
    font-size: var(--nrc-title-size);
    line-height: 1.13;
    font-weight: 500;
    letter-spacing: 0;
}

.nrc-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.nrc-title[style*="--nrc-title-lines:"] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: var(--nrc-title-lines);
}

.nrc-title[style*="initial"] {
    display: block;
    overflow: visible;
}

.nrc-date {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    opacity: .62;
}

.nrc-excerpt {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.45;
    opacity: .82;
}

.nrc-empty {
    padding: 18px;
    border: 1px dashed #bbb;
    background: #fafafa;
    color: #555;
}

@media (max-width: 767px) {
    .nrc-toolbar {
        margin-bottom: 14px;
    }

    .nrc-block-title {
        min-height: 40px;
        padding: 7px 13px;
        font-size: 19px;
    }

    .nrc-title {
        font-size: var(--nrc-title-size-mobile);
    }

    .nrc-category {
        font-size: 14px;
        margin-top: 10px;
    }

    .nrc-arrow {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nrc-track,
    .nrc-image img,
    .nrc-arrow {
        scroll-behavior: auto;
        transition: none;
    }
}
