.mgr-wrap {
    --mgr-star: #fbbc04;
    --mgr-text: #202124;
    --mgr-muted: #5f6368;
    --mgr-border: #dadce0;
    --mgr-bg: #f8f9fa;
    --mgr-blue: #1a73e8;
    --mgr-card-w: 300px;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--mgr-text);
    box-sizing: border-box;
}
.mgr-wrap *, .mgr-wrap *::before, .mgr-wrap *::after { box-sizing: border-box; }

.mgr-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    background: var(--mgr-bg);
    border: 1px solid var(--mgr-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.mgr-header-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mgr-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15em; }
.mgr-brand-text strong { font-weight: 700; }
.mgr-g { display: inline-flex; }
.mgr-summary { display: inline-flex; align-items: baseline; gap: 8px; }
.mgr-rating-number { font-size: 1.5em; font-weight: 700; line-height: 1; }
.mgr-count { color: var(--mgr-muted); font-size: 0.9em; }
.mgr-stars { color: var(--mgr-star); letter-spacing: 1px; font-size: 1.05em; white-space: nowrap; }

.mgr-cta {
    display: inline-block;
    background: var(--mgr-blue);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: background .15s ease;
}
.mgr-cta:hover { background: #1765cc; }

.mgr-slider-outer { position: relative; }

.mgr-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--mgr-border);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--mgr-text);
    display: none;
    align-items: center; justify-content: center;
    z-index: 2;
    padding: 0 0 3px 0;
}
.mgr-layout-slider .mgr-nav { display: flex; }
.mgr-nav:hover { background: #f1f3f4; }
.mgr-nav-prev { left: -12px; }
.mgr-nav-next { right: -12px; }

.mgr-list { display: grid; gap: 14px; }
.mgr-wrap[data-columns="2"] .mgr-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mgr-wrap[data-columns="3"] .mgr-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 700px) {
    .mgr-wrap[data-columns="2"] .mgr-list,
    .mgr-wrap[data-columns="3"] .mgr-list { grid-template-columns: 1fr; }
}

.mgr-layout-slider .mgr-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 14px;
    padding: 4px 4px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.mgr-layout-slider .mgr-list::-webkit-scrollbar { display: none; }
.mgr-layout-slider .mgr-item {
    flex: 0 0 var(--mgr-card-w);
    max-width: var(--mgr-card-w);
    scroll-snap-align: start;
}

.mgr-item {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--mgr-border);
    border-radius: 10px;
    display: flex; flex-direction: column;
    min-height: 190px;
    transition: box-shadow .15s ease;
}
.mgr-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.mgr-item-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mgr-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    background: var(--mgr-bg);
}
.mgr-avatar-initials {
    display: inline-flex; align-items: center; justify-content: center;
    background: #e8f0fe; color: var(--mgr-blue); font-weight: 700;
}
.mgr-item-meta { min-width: 0; flex: 1; }
.mgr-author { font-weight: 500; line-height: 1.2; font-size: 0.95em; display: inline-flex; align-items: center; gap: 4px; }
.mgr-author a { color: inherit; text-decoration: none; }
.mgr-author a:hover { text-decoration: underline; }
.mgr-verified { display: inline-flex; }
.mgr-item-sub { font-size: 0.8em; color: var(--mgr-muted); margin-top: 2px; }

.mgr-stars-row { margin-bottom: 6px; font-size: 0.95em; }

.mgr-text {
    margin: 0 0 10px;
    line-height: 1.45;
    font-size: 0.9em;
    color: var(--mgr-text);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mgr-text p { margin: 0 0 0.5em; }
.mgr-text p:last-child { margin-bottom: 0; }

.mgr-photos {
    display: grid;
    gap: 4px;
    margin-top: auto;
    border-radius: 8px;
    overflow: hidden;
}
.mgr-photos[data-count="1"] { grid-template-columns: 1fr; }
.mgr-photos[data-count="2"] { grid-template-columns: 1fr 1fr; }
.mgr-photos[data-count="3"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mgr-photos[data-count="3"] .mgr-photo:first-child { grid-row: span 2; }
.mgr-photos[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.mgr-photo {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    background-color: #f1f3f4;
}

.mgr-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.mgr-dots button {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #dadce0;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.mgr-dots button[aria-selected="true"] { background: var(--mgr-muted); transform: scale(1.15); }

.mgr-footer { margin-top: 8px; text-align: right; }
.mgr-powered { font-size: 0.72em; color: var(--mgr-muted); }

.mgr-error {
    padding: 10px 14px; background: #fce8e6; color: #c5221f;
    border: 1px solid #f5c6c2; border-radius: 8px; font-size: 0.9em;
}
.mgr-empty {
    padding: 24px;
    background: var(--mgr-bg);
    border: 1px dashed var(--mgr-border);
    border-radius: 10px;
    text-align: center;
}
.mgr-empty-inner { max-width: 420px; margin: 0 auto; }
.mgr-empty-stars { color: var(--mgr-star); font-size: 1.4em; letter-spacing: 2px; opacity: .6; margin-bottom: 8px; }
.mgr-empty-text { margin: 0; color: var(--mgr-muted); font-size: 0.95em; }

@media (prefers-reduced-motion: reduce) {
    .mgr-item, .mgr-nav, .mgr-dots button { transition: none; }
    .mgr-layout-slider .mgr-list { scroll-behavior: auto; }
}

@media (max-width: 600px) {
    .mgr-wrap { --mgr-card-w: 78vw; }
    .mgr-header { padding: 14px 16px; }
    .mgr-nav-prev { left: 4px; }
    .mgr-nav-next { right: 4px; }
}
