/* Moment by Moment — live coverage timeline. Logical properties: works in RTL and LTR. */

.mbm {
	--mbm-accent: #1a73e8;
	--mbm-hot: #e11d48;
	--mbm-ink: #0f172a;
	--mbm-mute: #64748b;
	--mbm-line: #e2e8f0;
	--mbm-soft: #f8fafc;
	--mbm-card: #fff;
	--mbm-r: 14px;
	--mbm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
	box-sizing: border-box;
	max-width: 1200px;
	margin-inline: auto;
	padding: 16px;
	color: var(--mbm-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.65;
}
.mbm *, .mbm *::before, .mbm *::after { box-sizing: border-box; }
.mbm a { color: inherit; text-decoration: none; }
.mbm button { font: inherit; color: inherit; cursor: pointer; }
.mbm [hidden] { display: none !important; }
.mbm .mbm-ico { display: inline-flex; flex: none; line-height: 0; }
.mbm .mbm-grow { flex: 1 1 auto; }
.mbm :focus-visible { outline: 2px solid var(--mbm-accent); outline-offset: 2px; border-radius: 6px; }
.mbm-lock { overflow: hidden; }
.mbm-fallback { margin: 0; padding-inline-start: 1.2em; }

/* ---------- hero ---------- */
.mbm-hero {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between;
	padding: 28px 28px 24px; margin-block-end: 14px;
	background: linear-gradient(135deg, #f1f5f9 0%, #fff 60%);
	border: 1px solid var(--mbm-line); border-radius: 20px;
	position: relative; overflow: hidden;
}
.mbm-hero::before {
	content: ""; position: absolute; inset-block: 22px; inset-inline-start: 0; width: 4px;
	background: var(--mbm-accent); border-radius: 0 4px 4px 0;
}
[dir="rtl"] .mbm-hero::before { border-radius: 4px 0 0 4px; }
.mbm-hero__main { flex: 1 1 360px; min-width: 0; }
.mbm-kicker { margin: 0 0 6px; color: var(--mbm-accent); font-weight: 700; font-size: 13px; }
.mbm-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 800; }
.mbm-desc { margin: 10px 0 0; max-width: 62ch; color: var(--mbm-mute); }

.mbm-live {
	display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
	background: var(--mbm-hot); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.8;
}
.mbm-live.is-off { background: #94a3b8; }
.mbm-live.is-off .mbm-pulse { animation: none; }
.mbm-pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: mbm-pulse 1.6s ease-out infinite; }
@keyframes mbm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
	70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.mbm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mbm-tools-row { margin-block-end: 10px; }
.mbm-tool {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px;
	border: 1px solid var(--mbm-line); background: #fff; font-size: 13px; font-weight: 600;
}
.mbm-tool.is-on { background: var(--mbm-accent); border-color: var(--mbm-accent); color: #fff; }
.mbm-dotsw { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; }
.mbm-tool.is-on .mbm-dotsw { background: #86efac; }

/* ---------- ticker ---------- */
.mbm-ticker {
	display: flex; align-items: center; gap: 12px; padding: 8px 14px; margin-block-end: 14px;
	background: #fff1f2; border: 1px solid #fecdd3; border-radius: 12px; overflow: hidden;
}
.mbm-ticker__view { flex: 1; min-width: 0; overflow: hidden; }
.mbm-ticker__track { display: flex; width: max-content; animation: mbm-marquee var(--mbm-speed, 40s) linear infinite; }
.mbm-ticker:hover .mbm-ticker__track { animation-play-state: paused; }
.mbm-ticker__seg { display: flex; flex: none; }
.mbm-ticker__item { white-space: nowrap; padding-inline: 28px; font-size: 14px; font-weight: 600; position: relative; }
.mbm-ticker__item::after { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--mbm-hot); }
.mbm-ticker__item:hover { color: var(--mbm-hot); }
@keyframes mbm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .mbm-ticker__track { animation-name: mbm-marquee-rtl; }
@keyframes mbm-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- badges ---------- */
.mbm-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; border-radius: 999px;
	font-size: 11.5px; font-weight: 700; line-height: 22px; white-space: nowrap;
}
.mbm-badge--hot { background: var(--mbm-hot); color: #fff; }
.mbm-badge--new { background: #dcfce7; color: #15803d; }

/* ---------- stats ---------- */
.mbm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-block-end: 16px; }
.mbm-stat {
	--t: var(--mbm-accent); --tb: #e8f0fe;
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	background: var(--mbm-card); border: 1px solid var(--mbm-line); border-radius: var(--mbm-r); box-shadow: var(--mbm-shadow);
}
.mbm-stat--hot { --t: var(--mbm-hot); --tb: #ffe4e8; }
.mbm-stat--violet { --t: #7c3aed; --tb: #f1eaff; }
.mbm-stat--teal { --t: #0d9488; --tb: #d9f5f1; }
.mbm-stat__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tb); color: var(--t); flex: none; }
.mbm-stat__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mbm-stat__label { font-size: 12.5px; color: var(--mbm-mute); font-weight: 600; }
.mbm-stat__val { font-size: 26px; font-weight: 800; }
.mbm-stat__sub { font-size: 12px; color: var(--mbm-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- layout ---------- */
.mbm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.mbm-layout--single { grid-template-columns: minmax(0, 1fr); }
.mbm-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }

.mbm-box { padding: 16px; background: var(--mbm-card); border: 1px solid var(--mbm-line); border-radius: var(--mbm-r); box-shadow: var(--mbm-shadow); }
.mbm-box__head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14.5px; font-weight: 800; }
.mbm-box__head .mbm-ico { color: var(--mbm-accent); }
.mbm-box__head--hot { color: var(--mbm-hot); }
.mbm-box__head--hot .mbm-pulse { background: var(--mbm-hot); animation-name: mbm-pulse-hot; }
@keyframes mbm-pulse-hot {
	0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .5); }
	70% { box-shadow: 0 0 0 7px rgba(225, 29, 72, 0); }
	100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}
.mbm-spot { background: #fff1f2; border-color: #fecdd3; }
.mbm-spot__title { display: block; font-weight: 700; line-height: 1.6; }
.mbm-spot__title:hover { color: var(--mbm-hot); }
.mbm-link { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 10px; padding: 0; border: 0; background: none; color: var(--mbm-accent); font-weight: 700; font-size: 13px; }
[dir="rtl"] .mbm-link .mbm-ico, [dir="rtl"] .mbm-btn .mbm-ico { transform: scaleX(-1); }

.mbm-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mbm-rank li { display: flex; gap: 12px; align-items: flex-start; }
.mbm-rank__n { flex: none; width: 24px; height: 24px; border-radius: 8px; background: #e8f0fe; color: var(--mbm-accent); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.mbm-rank li:nth-child(n+4) .mbm-rank__n { background: #f1f5f9; color: var(--mbm-mute); }
.mbm-rank__b { min-width: 0; }
.mbm-rank__b a { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.55; }
.mbm-rank__b a:hover { color: var(--mbm-accent); }
.mbm-rank__m { display: flex; align-items: center; gap: 5px; margin-block-start: 3px; font-size: 12px; color: var(--mbm-mute); }
.mbm-rank__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.mbm-dist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mbm-dist__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mbm-dist__name { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.mbm-dist__n { color: var(--mbm-mute); font-size: 12px; white-space: nowrap; }
.mbm-dist__bar { height: 5px; margin-block-start: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.mbm-dist__bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; }

/* ---------- toolbar ---------- */
.mbm-toolbar {
	display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-block-end: 14px;
	background: var(--mbm-card); border: 1px solid var(--mbm-line); border-radius: var(--mbm-r); box-shadow: var(--mbm-shadow);
}
.mbm-toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mbm-seg { display: inline-flex; padding: 3px; background: #f1f5f9; border-radius: 10px; gap: 2px; }
.mbm-seg button {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 8px;
	background: transparent; font-size: 13px; font-weight: 700; color: var(--mbm-mute);
}
.mbm-seg button.is-on { background: var(--mbm-accent); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.mbm-count {
	font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; padding: 0 6px; line-height: 18px;
	text-align: center; border-radius: 99px; background: rgba(100, 116, 139, .15);
}
.mbm-seg button.is-on .mbm-count { background: rgba(255, 255, 255, .25); }
.mbm-select {
	padding: 6px 12px; border: 1px solid var(--mbm-line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--mbm-ink); max-width: 100%;
}
.mbm-updated { font-size: 12px; color: var(--mbm-mute); }
.mbm-iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--mbm-line); border-radius: 10px; background: #fff; padding: 0; }
.mbm-iconbtn:hover { border-color: var(--mbm-accent); color: var(--mbm-accent); }
.mbm-search {
	display: flex; align-items: center; gap: 8px; flex: 1 1 260px; padding: 0 12px; height: 38px;
	border: 1px solid var(--mbm-line); border-radius: 10px; background: #f8fafc; color: var(--mbm-mute);
}
.mbm-search:focus-within { border-color: var(--mbm-accent); background: #fff; }
.mbm-search__in { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--mbm-ink); outline: none; }
.mbm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mbm-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border: 1px solid var(--mbm-line); border-radius: 999px;
	background: #fff; font-size: 12.5px; font-weight: 600;
}
.mbm-chip.is-on { border-color: var(--mbm-accent); background: #e8f0fe; color: var(--mbm-accent); }
.mbm-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

.mbm-newbar {
	display: block; width: 100%; margin-block-end: 14px; padding: 10px; border: 1px dashed var(--mbm-accent);
	border-radius: 12px; background: #e8f0fe; color: var(--mbm-accent); font-weight: 700; font-size: 14px;
}

/* ---------- timeline ---------- */
.mbm-timeline { position: relative; padding-inline-start: 30px; }
.mbm-timeline::before {
	content: ""; position: absolute; inset-block: 6px; inset-inline-start: 8px; width: 2px;
	background: linear-gradient(to bottom, var(--mbm-accent), var(--mbm-line) 30%, var(--mbm-line));
	border-radius: 2px;
}
.mbm-group { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 13px; position: relative; }
.mbm-group:first-child { margin-block-start: 0; }
.mbm-group::before {
	content: ""; position: absolute; inset-inline-start: -28px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
	border-radius: 50%; background: #fff; border: 3px solid var(--mbm-accent);
}
.mbm-group__name { font-weight: 800; padding: 3px 12px; background: var(--mbm-card); border: 1px solid var(--mbm-line); border-radius: 999px; }
.mbm-group__sub { color: var(--mbm-mute); font-size: 12px; }

.mbm-card {
	position: relative; display: flex; gap: 14px; padding: 14px; margin-block-end: 12px;
	background: var(--mbm-card); border: 1px solid var(--mbm-line); border-radius: var(--mbm-r); box-shadow: var(--mbm-shadow);
	transition: border-color .15s, box-shadow .15s;
}
.mbm-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 22px rgba(15, 23, 42, .08); }
.mbm-card .mbm-dot {
	position: absolute; inset-inline-start: -28px; top: 26px; width: 10px; height: 10px; border-radius: 50%;
	background: var(--dot); box-shadow: 0 0 0 4px #fff;
}
.mbm-card.is-breaking { background: #fff7f8; border-color: #fecdd3; }
.mbm-card.is-fresh { animation: mbm-in .9s ease-out; }
@keyframes mbm-in { from { background: #e8f0fe; transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }

.mbm-card__media { flex: none; width: 128px; height: 92px; border-radius: 10px; overflow: hidden; background: #eef2f7; align-self: flex-start; }
.mbm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mbm-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #eef2f7, #e5e9f0 60%, #f4eaf0); }
.mbm-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mbm-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mbm-card__chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mbm-cat { display: inline-block; padding: 0 9px; border-radius: 6px; background: #f1f5f9; font-size: 11.5px; font-weight: 700; line-height: 22px; color: var(--mbm-mute); }
a.mbm-cat:hover { background: #e8f0fe; color: var(--mbm-accent); }
.mbm-clock { font-size: 12px; color: var(--mbm-mute); }
.mbm-ago { font-size: 12px; color: var(--mbm-mute); white-space: nowrap; }
.mbm-card__title { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 800; }
.mbm-card__title a:hover { color: var(--mbm-accent); }
.mbm-card__ex { margin: 0; color: var(--mbm-mute); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mbm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-block-start: 2px; }
.mbm-acts { display: flex; align-items: center; gap: 4px; }
.mbm-act { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--mbm-mute); padding: 0; }
.mbm-act:hover { background: #f1f5f9; color: var(--mbm-ink); }
.mbm-act.is-on { color: var(--mbm-accent); }
.mbm-act.is-on svg { fill: currentColor; }
.mbm-quick {
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; margin-inline-start: 6px; border: 0; border-radius: 8px;
	background: #e8f0fe; color: var(--mbm-accent); font-size: 12.5px; font-weight: 700;
}
.mbm-quick:hover { background: var(--mbm-accent); color: #fff; }
.mbm-meta { display: flex; gap: 14px; color: var(--mbm-mute); font-size: 12px; }
.mbm-meta__i { display: inline-flex; align-items: center; gap: 4px; }

/* compact view */
.mbm-timeline.is-compact .mbm-card { padding: 10px 14px; margin-block-end: 8px; }
.mbm-timeline.is-compact .mbm-card__title { font-size: 15px; }
.mbm-timeline.is-compact .mbm-card .mbm-dot { top: 20px; }

/* skeleton + empty */
.mbm-skel { min-height: 120px; }
.mbm-skel__a { flex: none; width: 128px; height: 92px; border-radius: 10px; }
.mbm-skel__b { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-block: 6px; }
.mbm-skel__b i { height: 12px; border-radius: 6px; }
.mbm-skel__b i:nth-child(1) { width: 40%; } .mbm-skel__b i:nth-child(2) { width: 90%; } .mbm-skel__b i:nth-child(3) { width: 70%; }
.mbm-skel__a, .mbm-skel__b i { background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%); background-size: 200% 100%; animation: mbm-shimmer 1.3s linear infinite; }
@keyframes mbm-shimmer { to { background-position: -200% 0; } }
.mbm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--mbm-mute); background: var(--mbm-card); border: 1px dashed var(--mbm-line); border-radius: var(--mbm-r); margin-inline-start: -30px; }
.mbm-empty p { margin: 0; }

.mbm-more { display: flex; justify-content: center; margin-block-start: 8px; }
.mbm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 20px; border: 1px solid var(--mbm-line);
	border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px;
}
.mbm-btn:hover:not(:disabled) { border-color: var(--mbm-accent); color: var(--mbm-accent); }
.mbm-btn:disabled { opacity: .6; cursor: progress; }
.mbm-btn--wide { min-width: 220px; }
.mbm-btn--primary { background: var(--mbm-accent); border-color: var(--mbm-accent); color: #fff; }
.mbm .mbm-btn--primary:hover { color: #fff; opacity: .92; }

/* ---------- modal ---------- */
.mbm-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); animation: mbm-fade .15s ease-out; }
@keyframes mbm-fade { from { opacity: 0; } to { opacity: 1; } }
.mbm-modal__box { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.mbm-modal__x { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; background: rgba(255, 255, 255, .92); z-index: 1; }
.mbm-modal__img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.mbm-modal__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.mbm-modal__title { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 800; }
.mbm-modal__text { margin: 0; color: #334155; line-height: 1.9; }
.mbm-modal__foot { display: flex; align-items: center; gap: 10px; margin-block-start: 6px; }

/* ---------- toast ---------- */
.mbm-toast {
	position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: max-content; max-width: 90vw; z-index: 100000;
	padding: 9px 18px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 600;
	opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.mbm-toast.is-on { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.mbm-stats { grid-template-columns: repeat(2, 1fr); }
	.mbm-layout { grid-template-columns: minmax(0, 1fr); }
	.mbm-aside { position: static; order: -1; }
}
@media (max-width: 600px) {
	.mbm { padding: 10px; }
	.mbm-hero { padding: 20px 18px; }
	.mbm-stat { padding: 10px 12px; gap: 10px; }
	.mbm-stat__ico { width: 36px; height: 36px; }
	.mbm-stat__val { font-size: 21px; }
	.mbm-card { padding: 11px; gap: 10px; }
	.mbm-card__media, .mbm-skel__a { width: 88px; height: 70px; }
	.mbm-card__title { font-size: 15px; }
	.mbm-card__ex { display: none; }
	.mbm-timeline { padding-inline-start: 24px; }
	.mbm-card .mbm-dot { inset-inline-start: -22px; }
	.mbm-group::before { inset-inline-start: -22px; }
	.mbm-timeline::before { inset-inline-start: 4px; }
	.mbm-empty { margin-inline-start: -24px; }
}
@media (prefers-reduced-motion: reduce) {
	.mbm *, .mbm *::before, .mbm *::after { animation: none !important; transition: none !important; }
	.mbm-ticker__view { overflow-x: auto; }
}
