/* ==========================================================
   1. СЛАЙДЕР НА ГЛАВНОЙ (4 колонки под вертикальные афиши А4)
   ========================================================== */
.mbs-slider-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 20px auto;
    padding: 0 38px;
}

.mbs-a4-slide-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.mbs-a4-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.mbs-a4-poster-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background: #f4f5f7;
    overflow: hidden;
}

.mbs-a4-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mbs-a4-slide-card:hover .mbs-a4-poster-box img {
    transform: scale(1.03);
}

.mbs-a4-age {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20, 30, 48, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}

.mbs-a4-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 52, 96, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mbs-a4-slide-card:hover .mbs-a4-overlay {
    opacity: 1;
}

.mbs-a4-btn {
    background: #ffffff;
    color: #16427a;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
}

.mbs-a4-caption {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fff;
}

.mbs-a4-date {
    font-size: 13px;
    font-weight: 700;
    color: #1b5299;
}

.mbs-a4-branch {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbs-slider-prev,
.mbs-slider-next {
    color: #1b5299 !important;
    width: 30px !important;
    height: 30px !important;
}

.mbs-slider-prev::after,
.mbs-slider-next::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* ==========================================================
   2. СТРАНИЦА АФИШИ И БОКОВОЙ КАЛЕНДАРЬ
   ========================================================== */
.mbs-afisha-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* Верхняя панель фильтров */
.mbs-afisha-filters {
    background: #f5f7fa;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.mbs-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mbs-tab-btn {
    background: #ffffff;
    border: 1px solid #d0d7de;
    color: #333;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mbs-tab-btn:hover {
    border-color: #1b5299;
    color: #1b5299;
}

.mbs-tab-btn.active {
    background: #1b5299;
    border-color: #1b5299;
    color: #ffffff;
}

.mbs-filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mbs-select {
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #222;
    min-width: 210px;
}

/* Плашка выбранной даты */
.mbs-selected-date-banner {
    background: #e8f1fc;
    border: 1px solid #b6d1f2;
    color: #123c73;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.mbs-reset-date-btn {
    background: #ffffff;
    border: 1px solid #1b5299;
    color: #1b5299;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mbs-reset-date-btn:hover {
    background: #1b5299;
    color: #ffffff;
}

/* Двухколоночный макет: Слева события (1fr), Справа календарь (320px) */
.mbs-afisha-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    align-items: start;
}

/* ==========================================================
   3. ИНТЕРАКТИВНЫЙ КАЛЕНДАРЬ СПРАВА
   ========================================================== */
.mbs-afisha-sidebar {
    position: sticky;
    top: 24px;
}

.mbs-cal-widget {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: opacity 0.2s ease;
}

.mbs-cal-widget.loading {
    opacity: 0.55;
    pointer-events: none;
}

.mbs-cal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f5;
}

.mbs-cal-nav-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.mbs-cal-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d5dce6;
    background: #f8fafc;
    color: #1b5299;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.mbs-cal-nav-btn:hover {
    background: #1b5299;
    border-color: #1b5299;
    color: #ffffff;
}

.mbs-cal-select {
    flex: 1;
    height: 32px;
    border: 1px solid #d5dce6;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 0 6px;
}

.mbs-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.mbs-cal-weekdays .mbs-weekend {
    color: #dc2626;
}

.mbs-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.mbs-cal-cell {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    position: relative;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mbs-cal-cell.empty {
    cursor: default;
    pointer-events: none;
}

/* Подсветка: Дни БЕЗ событий */
.mbs-cal-cell.no-events {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #f1f5f9;
}

.mbs-cal-cell.no-events:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Подсветка: Дни С СОБЫТИЯМИ */
.mbs-cal-cell.has-events {
    background: #e6f0fd;
    color: #13468a;
    font-weight: 700;
    border-color: #bfd7f9;
}

.mbs-cal-cell.has-events:hover {
    background: #cfe2fc;
    transform: scale(1.06);
}

.mbs-cal-cell.has-events::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1b5299;
    position: absolute;
    bottom: 4px;
}

/* Сегодняшний день */
.mbs-cal-cell.is-today {
    box-shadow: inset 0 0 0 2px #f59e0b;
}

/* Выбранный день */
.mbs-cal-cell.is-selected {
    background: #1b5299 !important;
    color: #ffffff !important;
    border-color: #1b5299 !important;
    font-weight: 700;
}

.mbs-cal-cell.is-selected::after {
    background: #ffffff;
}

/* Легенда календаря */
.mbs-cal-legend {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eef1f5;
    font-size: 11px;
    color: #64748b;
}

.mbs-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mbs-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}

.mbs-dot.has-events {
    background: #e6f0fd;
    border: 1px solid #93bdf5;
}

.mbs-dot.no-events {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.mbs-dot.is-selected {
    background: #1b5299;
}

.mbs-cal-footer {
    margin-top: 10px;
}

.mbs-cal-today-btn {
    width: 100%;
    padding: 7px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mbs-cal-today-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================
   4. СПИСОК КАРТОЧЕК МЕРОПРИЯТИЙ
   ========================================================== */
.mbs-afisha-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.2s ease;
}

.mbs-afisha-list.loading {
    opacity: 0.45;
    pointer-events: none;
}

.mbs-event-card {
    display: grid;
    grid-template-columns: 115px 135px 1fr;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mbs-event-card:hover {
    border-color: #b8c9e0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mbs-card-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 4px;
    border-right: 1px solid #eef1f5;
    padding-right: 12px;
}

.mbs-date-day {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #1b5299;
}

.mbs-date-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: lowercase;
    color: #222;
    margin-top: 4px;
}

.mbs-date-time {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.3;
}

.mbs-date-until {
    margin-top: 6px;
    font-size: 11px;
    background: #eef4fc;
    color: #1b5299;
    padding: 2px 8px;
    border-radius: 4px;
}

.mbs-card-poster-link {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1.414;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f3f7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mbs-card-poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mbs-poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b5299 0%, #2c7be5 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.mbs-poster-placeholder span {
    font-size: 10px;
    opacity: 0.85;
    text-transform: uppercase;
}

.mbs-poster-placeholder strong {
    font-size: 15px;
    margin-top: 5px;
}

.mbs-card-age {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.mbs-card-body-col {
    display: flex;
    flex-direction: column;
}

.mbs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.mbs-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.mbs-tag-cat {
    background: #eef4fc;
    color: #1b5299;
}

.mbs-tag-price {
    background: #eaf7ed;
    color: #1d7a36;
}

.mbs-card-title {
    margin: 0 0 8px 0;
    font-size: 19px;
    line-height: 1.3;
}

.mbs-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mbs-card-title a:hover {
    color: #1b5299;
}

.mbs-card-location {
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mbs-card-location .dashicons {
    color: #1b5299;
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.mbs-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 12px;
}

.mbs-card-footer {
    margin-top: auto;
}

.mbs-readmore-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1b5299;
    text-decoration: none;
    border: 1px solid #1b5299;
    padding: 6px 14px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.mbs-readmore-btn:hover {
    background: #1b5299;
    color: #ffffff;
}

.mbs-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 15px;
}

.mbs-single-meta-box {
    background: #f5f8fc;
    border-left: 4px solid #1b5299;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 960px) {
    .mbs-afisha-layout {
        grid-template-columns: 1fr;
    }
    .mbs-afisha-sidebar {
        position: static;
        order: -1; /* На мобильных календарь поднимается над списком */
        max-width: 400px;
    }
}

@media (max-width: 680px) {
    .mbs-filter-selects {
        width: 100%;
    }
    .mbs-select {
        width: 100%;
    }
    .mbs-event-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .mbs-card-date-col {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid #eef1f5;
        padding-right: 0;
        padding-bottom: 8px;
        text-align: left;
    }
    .mbs-date-day {
        font-size: 24px;
    }
    .mbs-card-poster-link {
        max-width: 200px;
    }
}


/* Закрепленное (Важное) событие наверху афиши */
.mbs-event-card.mbs-event-pinned {
    border: 2px solid #f59e0b;
    background: linear-gradient(to right, #fffdf7 0%, #ffffff 35%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.14);
}

.mbs-event-card.mbs-event-pinned:hover {
    border-color: #d97706;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
}

.mbs-tag-pinned {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
    font-weight: 700;
}


/* ==========================================================
   5. МОДАЛЬНОЕ ОКНО МЕРОПРИЯТИЯ (По центру экрана с затемнением)
   ========================================================== */
body.mbs-modal-open {
    overflow: hidden;
}

.mbs-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mbs-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mbs-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mbs-modal-backdrop.is-open .mbs-modal-dialog {
    transform: translateY(0) scale(1);
}

.mbs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.mbs-modal-close:hover {
    background: #1b5299;
    border-color: #1b5299;
    color: #ffffff;
    transform: rotate(90deg);
}

.mbs-modal-body {
    overflow-y: auto;
    padding: 28px;
    overscroll-behavior: contain;
}

.mbs-modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: #475569;
    font-size: 15px;
}

.mbs-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #1b5299;
    border-radius: 50%;
    animation: mbs-spin 0.75s linear infinite;
}

@keyframes mbs-spin {
    to { transform: rotate(360deg); }
}

.mbs-modal-content-grid.has-poster {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    align-items: start;
}

.mbs-modal-poster-col {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mbs-modal-poster-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.mbs-modal-age-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
}

.mbs-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-right: 36px;
}

.mbs-modal-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    line-height: 1.28;
    color: #0f172a;
    font-weight: 700;
}

.mbs-modal-meta-panel {
    background: #f4f7fb;
    border-left: 4px solid #1b5299;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbs-modal-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #1e293b;
}

.mbs-modal-meta-row .dashicons {
    color: #1b5299;
    font-size: 19px;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex-shrink: 0;
}

.mbs-modal-description {
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 20px;
}

.mbs-modal-description p:last-child {
    margin-bottom: 0;
}

.mbs-modal-actions {
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.mbs-modal-direct-link {
    font-size: 13px;
    font-weight: 600;
    color: #1b5299;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    background: #eef4fc;
    transition: all 0.2s ease;
}

.mbs-modal-direct-link:hover {
    background: #1b5299;
    color: #ffffff;
}

/* ==========================================================
   6. ПОЛНАЯ АДАПТИВНОСТЬ ПОД ПЛАНШЕТЫ И СМАРТФОНЫ
   ========================================================== */

/* Планшеты (до 960px) */
@media (max-width: 960px) {
    .mbs-afisha-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mbs-afisha-sidebar {
        position: static;
        order: -1;
        width: 100%;
        max-width: 100%;
    }

    .mbs-cal-widget {
        max-width: 460px;
        margin: 0 auto;
    }

    .mbs-modal-content-grid.has-poster {
        grid-template-columns: 210px 1fr;
        gap: 20px;
    }
}

/* Мобильные устройства и малые планшеты (до 680px) */
@media (max-width: 680px) {
    /* Слайдер на главной */
    .mbs-slider-wrapper {
        padding: 0 28px;
        margin: 12px auto;
    }

    .mbs-slider-prev { left: 0 !important; }
    .mbs-slider-next { right: 0 !important; }

    /* Панель фильтров */
    .mbs-afisha-filters {
        padding: 12px;
        gap: 10px;
    }

    .mbs-filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .mbs-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 13px;
    }

    .mbs-filter-selects {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .mbs-select {
        width: 100%;
        min-width: 0;
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Плашка выбранной даты */
    .mbs-selected-date-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .mbs-reset-date-btn {
        width: 100%;
        text-align: center;
        padding: 7px 12px;
    }

    /* Календарь на смартфоне */
    .mbs-cal-widget {
        max-width: 100%;
        padding: 14px 12px;
    }

    .mbs-cal-cell {
        font-size: 14px;
        min-height: 38px;
    }

    .mbs-cal-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Карточка мероприятия в списке */
    .mbs-event-card {
        grid-template-columns: 95px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .mbs-card-date-col {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 6px 10px;
        border-right: none;
        border-bottom: 1px solid #eef1f5;
        padding-right: 0;
        padding-bottom: 10px;
        text-align: left;
    }

    .mbs-date-day {
        font-size: 24px;
    }

    .mbs-date-month {
        font-size: 15px;
        margin-top: 0;
    }

    .mbs-date-time {
        margin-top: 0;
        font-size: 13px;
    }

    .mbs-date-until {
        margin-top: 0;
    }

    .mbs-card-poster-link {
        width: 95px;
        max-width: 95px;
    }

    .mbs-card-title {
        font-size: 17px;
    }

    .mbs-readmore-btn {
        display: block;
        text-align: center;
        padding: 9px 14px;
    }

    /* Модальное окно на мобильном */
    .mbs-modal-backdrop {
        padding: 10px;
        align-items: flex-end; /* Удобная шторка/карточка снизу-по центру на телефоне */
    }

    .mbs-modal-dialog {
        max-height: 92vh;
        border-radius: 16px 16px 12px 12px;
    }

    .mbs-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .mbs-modal-body {
        padding: 18px 16px 22px;
    }

    .mbs-modal-content-grid.has-poster {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mbs-modal-poster-col {
        max-width: 210px;
        margin: 0 auto;
    }

    .mbs-modal-badges {
        padding-right: 32px;
    }

    .mbs-modal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .mbs-modal-meta-panel {
        padding: 12px;
        gap: 8px;
    }

    .mbs-modal-meta-row {
        font-size: 13px;
    }

    .mbs-modal-description {
        font-size: 14px;
    }

    .mbs-modal-direct-link {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }
}

/* Узкие экраны смартфонов (до 400px) */
@media (max-width: 400px) {
    .mbs-event-card {
        grid-template-columns: 1fr;
    }

    .mbs-card-poster-link {
        width: 150px;
        max-width: 150px;
        margin: 0 auto;
    }
}


/* Отображение адреса и контактов организатора в карточках и модальном окне */
.mbs-card-address {
    color: #64748b;
    font-weight: 400;
}

.mbs-card-organizer {
    font-size: 13px;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.45;
}

.mbs-card-organizer .dashicons {
    color: #1b5299;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.mbs-card-organizer a,
.mbs-modal-meta-row a,
.mbs-single-meta-box a {
    color: #1b5299;
    text-decoration: none;
}

.mbs-card-organizer a:hover,
.mbs-modal-meta-row a:hover,
.mbs-single-meta-box a:hover {
    text-decoration: underline;
}

.mbs-modal-addr-line {
    color: #475569;
    font-size: 13px;
}


/* Кнопка и блок AJAX-подгрузки следующих страниц афиши */
.mbs-load-more-wrap {
    text-align: center;
    padding: 16px 0 8px;
}

.mbs-load-more-btn {
    background: #ffffff;
    border: 1px solid #1b5299;
    color: #1b5299;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(27, 82, 153, 0.08);
}

.mbs-load-more-btn:hover:not(:disabled) {
    background: #1b5299;
    color: #ffffff;
}

.mbs-load-more-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
