/* ==========================================================================
   MR — wpisy w feedzie (strona glowna, profil, grupy) w ukladzie X.com
   --------------------------------------------------------------------------
   Dotyczy list wpisow (.js_posts_stream) - na telefonie i na komputerze.
     - naglowek w jednej linii: nazwa + odznaki + @nick · czas, "⋯" z prawej
       (czas przenosi tu mr-feed-x.js),
     - tekst 15/20 tuz pod naglowkiem, zdjecie 12 px nizej, zaokraglone 16,
     - pasek ikon rowno pod tekstem (bez 40 px wciecia i dziury nad nim),
       ikonki 18 px, liczniki 13 px,
     - odstepy: telefon 10 px z boku, komputer 16 px, 12 px od gory,
     - serduszko: animacja przy polubieniu (jak na X).
   ========================================================================== */

.js_posts_stream .post,
.mr-boost-deck .post {
	--fx-pad: 16px;
	--fx-av: 40px;
	--fx-gap: 8px;
	--fx-text: #e7e9ea;
	--fx-dim: #71767b;
	--fx-line: #202326;
}
html[data-mr-theme="light"] .js_posts_stream .post,
html[data-mr-theme="light"] .mr-boost-deck .post {
	--fx-text: #0f1419;
	--fx-dim: #536471;
	--fx-line: #eff3f4;
}
@media (max-width: 767.98px) {
	.js_posts_stream .post,
.mr-boost-deck .post {
		--fx-pad: 10px;
	}
}

/* ── Bez filtra "Wszystko" nad lista wpisow ───────────────────────────
   Pasek z przyciskiem "Wszystko" (tekst / linki / zdjecia...) - zbedny, psul
   wyglad. Zostaje tylko wtedy, gdy jest w nim filtr krajow (gdy wlaczony). */
.js_posts-filter {
	display: none !important;
}
.posts-filter:not(:has(.countries-filter)) {
	display: none !important;
}

/* ── Relacje: kolka o 10 px mniejsze (72 -> 62) ─────────────────────── */
.mr-stories .add-story,
.mr-stories .stories-wrapper .stories.carousel .story {
	width: 62px !important;
}
/* linia pod relacjami - ten sam kolor co miedzy wpisami i pod publisherem */
html body .x_announcement.mr-stories {
	border-top: 0 !important;
	border-bottom: var(--mr-hair, 1px) solid #202326 !important;
}
html[data-mr-theme="light"] body .x_announcement.mr-stories {
	border-bottom-color: #eff3f4 !important;
}
/* podpis w dawnej szerokosci, zeby "Twoja relacja" sie nie ucinalo */
.mr-stories .add-story p,
.mr-stories .stories-wrapper .stories.carousel .story > .item-link > .info {
	width: 72px !important;
	max-width: none !important;
	margin-left: -5px !important;
	margin-right: -5px !important;
}

/* ── Profil: czcionka jak na X ──────────────────────────────────────────
   Strona ma Poppins / Outfit. X uzywa czcionki systemowej (SF na iPhonie,
   Roboto na Androidzie, Segoe UI na Windowsie) - to samo na calym profilu:
   naglowek, nazwa, bio, liczniki, zakladki i wpisy. Ikonki (Font Awesome,
   <i>) zostaja przy swojej czcionce. */
.mr-xp {
	--mr-x-font: "TwitterChirp", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--body-font-family: var(--mr-x-font);
	--font-family-headline: var(--mr-x-font);
	font-family: var(--mr-x-font) !important;
}
.mr-xp div:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp span:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp a:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp p:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp b:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp strong:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp small:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp li:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp button:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp label:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp h1:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp h2:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp h3:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp h4:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp h5:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp h6:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp textarea:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp input:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]),
.mr-xp time:not(.fa):not(.fab):not(.fas):not(.far):not([class*="fa-"]) {
	font-family: var(--mr-x-font) !important;
	letter-spacing: normal;
}

/* ── Karta wpisu ───────────────────────────────────────────────────── */
.js_posts_stream .post:not(.mr-x-skip),
.mr-boost-deck .post:not(.mr-x-skip) {
	margin: 0 !important;
	padding: 12px var(--fx-pad) 4px !important;
	border: 0 !important;
	border-bottom: var(--mr-hair, 1px) solid var(--fx-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.js_posts_stream .post > .post-body,
.mr-boost-deck .post > .post-body {
	margin: 0 !important;
	padding: 0 !important;
}
.js_posts_stream .post .post-x-layout,
.mr-boost-deck .post .post-x-layout {
	gap: var(--fx-gap) !important;
}
.js_posts_stream .post .post-x-layout > .post-avatar,
.mr-boost-deck .post .post-x-layout > .post-avatar {
	width: var(--fx-av) !important;
	min-width: var(--fx-av) !important;
	margin: 0 !important;
}
.js_posts_stream .post .post-x-layout > .post-avatar .post-avatar-picture,
.mr-boost-deck .post .post-x-layout > .post-avatar .post-avatar-picture {
	width: var(--fx-av) !important;
	height: var(--fx-av) !important;
}

/* ── Naglowek: nazwa ✓ @nick · czas            ⋯ ─────────────────────── */
.js_posts_stream .post .post-header,
.mr-boost-deck .post .post-header {
	height: 20px !important;
	min-height: 20px !important;
	margin: 0 !important;
	align-items: center !important;
	gap: 8px !important;
}
.js_posts_stream .post .post-header > .d-flex:first-child,
.mr-boost-deck .post .post-header > .d-flex:first-child {
	min-width: 0 !important;
	flex: 1 1 auto !important;
}
.js_posts_stream .post .post-header > .d-flex:first-child > .mw-0,
.mr-boost-deck .post .post-header > .d-flex:first-child > .mw-0 {
	min-width: 0 !important;
	flex: 1 1 auto !important;
}
.js_posts_stream .post .post-meta,
.mr-boost-deck .post .post-meta {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 4px !important;
	min-width: 0 !important;
	height: 20px !important;
	margin: 0 !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	font-size: 15px !important;
	line-height: 20px !important;
}
.js_posts_stream .post .post-meta > *,
.mr-boost-deck .post .post-meta > * {
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
}
.js_posts_stream .post .post-meta > .js_user-popover,
.mr-boost-deck .post .post-meta > .js_user-popover {
	flex: 0 1 auto !important;
	min-width: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}
.js_posts_stream .post .post-meta .post-author,
.mr-boost-deck .post .post-meta .post-author {
	color: var(--fx-text) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
}
.js_posts_stream .post .post-meta > .verified-badge,
.mr-boost-deck .post .post-meta > .verified-badge,
.js_posts_stream .post .post-meta > .pro-badge,
.mr-boost-deck .post .post-meta > .pro-badge,
.js_posts_stream .post .post-meta > .mr-comm-role,
.mr-boost-deck .post .post-meta > .mr-comm-role {
	display: inline-flex !important;
	align-items: center !important;
	height: 20px !important;
}
.js_posts_stream .post .post-meta > .verified-badge svg,
.mr-boost-deck .post .post-meta > .verified-badge svg,
.js_posts_stream .post .post-meta > .pro-badge svg,
.mr-boost-deck .post .post-meta > .pro-badge svg {
	width: 17px !important;
	height: 17px !important;
}
.js_posts_stream .post .post-meta > .text-muted,
.mr-boost-deck .post .post-meta > .text-muted {
	flex: 0 1 auto !important;
	min-width: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	color: var(--fx-dim) !important;
	font-size: 15px !important;
	line-height: 20px !important;
}
/* "dodal zdjecie" / "added a photo" / "> grupa" - na X tego nie ma (tez na
   stronie wpisu; grupe pokazuje linijka nad wpisem) */
.js_posts_stream .post .post-meta > .post-title,
.mr-boost-deck .post .post-meta > .post-title,
.standalone-post .post-meta > .post-title {
	display: none !important;
}
/* czas przeniesiony z prawej strony do linii z nazwa (mr-feed-x.js) */
.js_posts_stream .post .post-meta > .mr-fx-time,
.mr-boost-deck .post .post-meta > .mr-fx-time {
	flex: 0 0 auto !important;
	color: var(--fx-dim) !important;
	font-size: 14px !important;
	line-height: 20px !important;
	text-decoration: none !important;
}
.js_posts_stream .post .post-meta > .mr-fx-time::before,
.mr-boost-deck .post .post-meta > .mr-fx-time::before {
	content: "·";
	margin-right: 4px;
}
.js_posts_stream .post .post-meta > .mr-fx-time:hover,
.mr-boost-deck .post .post-meta > .mr-fx-time:hover {
	text-decoration: underline !important;
}
/* prawa strona: sam "⋯" (+ ikonka widocznosci, gdy wpis NIE jest publiczny
   i mozesz ja zmienic - "tylko ja" / "znajomi"). Globus przy wpisach
   publicznych nic nie mowi (admin widzi go przy kazdym wpisie) - jak na X
   go nie ma. */
.js_posts_stream .post .post-header > .flex-0,
.mr-boost-deck .post .post-header > .flex-0 {
	gap: 4px !important;
	flex: 0 0 auto !important;
}
.js_posts_stream .post .post-time.mr-fx-moved:not(:has(.btn-group:not([data-value="public"]))),
.mr-boost-deck .post .post-time.mr-fx-moved:not(:has(.btn-group:not([data-value="public"]))) {
	display: none !important;
}
.js_posts_stream .post .post-time.mr-fx-moved,
.mr-boost-deck .post .post-time.mr-fx-moved {
	font-size: 13px !important;
}
/* oryginalny czas zostaje w DOM (czytaja go skrypty), ale go nie widac */
.js_posts_stream .post .post-time.mr-fx-moved > .js_moment,
.mr-boost-deck .post .post-time.mr-fx-moved > .js_moment {
	display: none !important;
}
.js_posts_stream .post .post-header .dropdown > svg,
.mr-boost-deck .post .post-header .dropdown > svg {
	width: 20px !important;
	height: 20px !important;
	color: var(--fx-dim) !important;
}

/* ── Tresc ──────────────────────────────────────────────────────────── */
.js_posts_stream .post .post-text,
.mr-boost-deck .post .post-text {
	margin: 2px 0 0 !important;
	color: var(--fx-text) !important;
	font-size: 15px !important;
	line-height: 20px !important;
	overflow-wrap: anywhere;
}
.js_posts_stream .post .js_post-link,
.mr-boost-deck .post .js_post-link {
	margin: 0 !important;
}
.js_posts_stream .post .post-card > .d-flex:not(.post-header),
.mr-boost-deck .post .post-card > .d-flex:not(.post-header) {
	margin-top: 0 !important;
}
.js_posts_stream .post .post-card .mt-2,
.mr-boost-deck .post .post-card .mt-2 {
	margin-top: 12px !important;
}
.js_posts_stream .post .pg_wrapper img,
.mr-boost-deck .post .pg_wrapper img,
.js_posts_stream .post .post-media-image img,
.mr-boost-deck .post .post-media-image img,
.js_posts_stream .post .post-video-reel video,
.mr-boost-deck .post .post-video-reel video {
	border: 1px solid var(--fx-line);
	border-radius: 16px !important;
}

/* ── Pasek ikon: rowno pod tekstem ─────────────────────────────────── */
.js_posts_stream .post > .post-body > .mt-2.pt-1,
.mr-boost-deck .post > .post-body > .mt-2.pt-1 {
	margin: 4px 0 0 !important;
	padding: 0 !important;
}
.js_posts_stream .post .post-stats:empty,
.mr-boost-deck .post .post-stats:empty {
	display: none !important;
}
.js_posts_stream .post .post-stats,
.mr-boost-deck .post .post-stats {
	margin: 0 0 0 calc(var(--fx-av) + var(--fx-gap)) !important;
}
.js_posts_stream .post .post-actions,
.mr-boost-deck .post .post-actions {
	height: 32px !important;
	min-height: 32px !important;
	margin: 0 0 0 calc(var(--fx-av) + var(--fx-gap) - 6px) !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	border: 0 !important;
}
.js_posts_stream .post .post-actions > .action-btn,
.mr-boost-deck .post .post-actions > .action-btn {
	height: 32px !important;
	min-width: 32px !important;
	margin: 0 !important;
	padding: 0 6px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--fx-dim) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 16px !important;
}
.js_posts_stream .post .post-actions > .action-btn svg,
.mr-boost-deck .post .post-actions > .action-btn svg {
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 auto;
}
.js_posts_stream .post .post-actions .reaction-btn,
.mr-boost-deck .post .post-actions .reaction-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
}
.js_posts_stream .post .post-actions .reaction-btn-icon,
.mr-boost-deck .post .post-actions .reaction-btn-icon {
	display: inline-flex !important;
	align-items: center !important;
}
.js_posts_stream .post .post-actions .reaction-btn-name,
.mr-boost-deck .post .post-actions .reaction-btn-name {
	display: none !important;
}
.js_posts_stream .post .post-actions .pointer99,
.mr-boost-deck .post .post-actions .pointer99 {
	font-size: 13px !important;
	line-height: 16px !important;
}

/* ── "Tony i 2 znajomych odpowiedzialo" + linia od awatara ─────────────
   Linia schodzi ze srodka awatara i lukiem wchodzi w pierwszy awatar
   wiersza. Liczona od DOLU wpisu (wiersz jest zawsze ostatni i ma stala
   wysokosc), wiec trafia niezaleznie od dlugosci tekstu czy zdjecia. */
.js_posts_stream .post.mr-has-thread-repliers,
.mr-boost-deck .post.mr-has-thread-repliers {
	--fx-rep-h: 32px;
	--fx-rep-av: 24px;
	padding-bottom: 10px !important;
}
.js_posts_stream .post.mr-has-thread-repliers > .post-body,
.mr-boost-deck .post.mr-has-thread-repliers > .post-body {
	position: relative !important;
}
.js_posts_stream .post.mr-has-thread-repliers .post-body > .post-x-layout > .post-avatar::after,
.mr-boost-deck .post.mr-has-thread-repliers .post-body > .post-x-layout > .post-avatar::after {
	content: none !important;
	display: none !important;
}
.js_posts_stream .post.mr-has-thread-repliers > .post-body::before,
.mr-boost-deck .post.mr-has-thread-repliers > .post-body::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: calc(var(--fx-av) + 4px);
	bottom: calc(var(--fx-rep-h) / 2 - .75px);
	left: calc(var(--fx-av) / 2 - .75px);
	width: calc(var(--fx-av) / 2 + var(--fx-gap) - 1px);
	/* 1.5px - tak samo jak linia do popularnej odpowiedzi */
	border-left: 1.5px solid var(--fx-thread);
	border-bottom: 1.5px solid var(--fx-thread);
	border-bottom-left-radius: 14px;
	pointer-events: none;
}
.js_posts_stream .post,
.mr-boost-deck .post { --fx-thread: #333639; }
html[data-mr-theme="light"] .js_posts_stream .post,
html[data-mr-theme="light"] .mr-boost-deck .post { --fx-thread: #cfd9de; }
.js_posts_stream .post .mr-thread-repliers,
.mr-boost-deck .post .mr-thread-repliers {
	position: relative;
	z-index: 2;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	height: var(--fx-rep-h) !important;
	min-height: var(--fx-rep-h) !important;
	margin: 4px 0 0 calc(var(--fx-av) + var(--fx-gap)) !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--fx-dim) !important;
	font-size: 13px !important;
	line-height: 16px !important;
}
.js_posts_stream .post .mr-thread-repliers:hover .mr-thread-repliers-text,
.mr-boost-deck .post .mr-thread-repliers:hover .mr-thread-repliers-text {
	text-decoration: underline;
}
.js_posts_stream .post .mr-thread-repliers-avatars,
.mr-boost-deck .post .mr-thread-repliers-avatars {
	padding: 0 !important;
}
.js_posts_stream .post .mr-thread-repliers-avatars img,
.mr-boost-deck .post .mr-thread-repliers-avatars img {
	width: var(--fx-rep-av) !important;
	height: var(--fx-rep-av) !important;
	margin-left: -7px !important;
	border: 2px solid #000 !important;
	background: #000 !important;
}
html[data-mr-theme="light"] .js_posts_stream .post .mr-thread-repliers-avatars img,
html[data-mr-theme="light"] .mr-boost-deck .post .mr-thread-repliers-avatars img {
	border-color: #fff !important;
	background: #fff !important;
}
.js_posts_stream .post .mr-thread-repliers-avatars img:first-child,
.mr-boost-deck .post .mr-thread-repliers-avatars img:first-child {
	margin-left: 0 !important;
}
.js_posts_stream .post .mr-thread-repliers-text,
.mr-boost-deck .post .mr-thread-repliers-text {
	color: var(--fx-dim) !important;
	font-size: 13px !important;
}
.js_posts_stream .post .mr-thread-repliers-text strong,
.mr-boost-deck .post .mr-thread-repliers-text strong {
	color: var(--fx-text) !important;
	font-weight: 700 !important;
}
.js_posts_stream .post .mr-thread-repliers-arrow,
.mr-boost-deck .post .mr-thread-repliers-arrow {
	width: 16px !important;
	height: 16px !important;
	color: var(--fx-dim) !important;
}

/* ── Naglowek chowa sie przy przewijaniu w dol (mr-feed-x.js) ─────────
   Jak na X: w dol - naglowek wyjezdza do gory, w gore - wraca, razem
   z dolnym paskiem. Otwarte wyszukiwanie / menu konta zostaje na miejscu. */
@media (max-width: 520px) {
	.x-sidebar-fixed .logo-wrapper,
	.x-sidebar-fixed .x_user_mobi_menu,
	.search-wrapper-prnt {
		transition: transform .25s cubic-bezier(.2, .8, .2, 1) !important;
		will-change: transform;
	}
	html.mr-x-bars-instant .x-sidebar-fixed .logo-wrapper,
	html.mr-x-bars-instant .x-sidebar-fixed .x_user_mobi_menu,
	html.mr-x-bars-instant .search-wrapper-prnt,
	html.mr-x-bars-instant .x_sidebar_links,
	html.mr-x-bars-instant .x_side_create {
		transition: none !important;
	}
	html.mr-x-hdr-hide body:not(.search_open):not(.user_menu_open):not(.more_menu_open) .x-sidebar-fixed .logo-wrapper,
	html.mr-x-hdr-hide body:not(.search_open):not(.user_menu_open):not(.more_menu_open) .x-sidebar-fixed .x_user_mobi_menu,
	html.mr-x-hdr-hide body:not(.search_open):not(.user_menu_open):not(.more_menu_open) .search-wrapper-prnt {
		transform: translate3d(0, calc(-100% - 16px), 0) !important;
		pointer-events: none !important;
	}
}

/* ── Pociagnij, zeby odswiezyc (mr-feed-x.js) ──────────────────────────
   Telefon, strona z feedem: bez przegladarkowego "odbicia" i przeladowania
   calej strony przy pociagnieciu - robi to nasz skrypt (tylko wpisy). */
/* Blokada przegladarkowego "pociagnij = przeladuj" tylko na stronie (html) i
   tylko z feedem glownym - klase mr-ptr-page stawia mr-feed-x.js. NIE na
   <body> (body ma overflow-y: scroll i wtedy blokowalo przewijanie strony na
   Androidzie) i bez :has() na html (przeliczanie calej strony przy kazdej zmianie). */
@media (max-width: 767.98px) {
	html.mr-ptr-page {
		overscroll-behavior-y: contain;
	}
}
.mr-ptr {
	position: fixed;
	left: 50%;
	z-index: 1000;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #000;
	box-shadow: 0 0 0 1px #2f3336, 0 2px 10px rgba(0, 0, 0, .5);
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-50%, -26px, 0);
}
html[data-mr-theme="light"] .mr-ptr {
	background: #fff;
	box-shadow: 0 0 0 1px #eff3f4, 0 2px 10px rgba(0, 0, 0, .12);
}
.mr-ptr svg {
	display: block;
	transform: rotate(-90deg);
}
.mr-ptr-track {
	fill: none;
	stroke: rgba(29, 155, 240, .2);
	stroke-width: 3;
}
.mr-ptr-arc {
	fill: none;
	stroke: #1d9bf0;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 75.4;
	stroke-dashoffset: 75.4;
}
.mr-ptr.mr-ptr-spin svg {
	animation: mr-ptr-spin .8s linear infinite;
}
.mr-ptr.mr-ptr-spin .mr-ptr-arc {
	stroke-dashoffset: 52 !important;
}
@keyframes mr-ptr-spin {
	from { transform: rotate(-90deg); }
	to   { transform: rotate(270deg); }
}

/* ==========================================================================
   Serduszko - animacja przy polubieniu (feed, okno wpisu, komentarze)
   --------------------------------------------------------------------------
   post.js dodaje klase mr-like-pop do ikony w chwili polubienia. Jak na X:
   serce wyskakuje, rozchodzi sie rozowy pierscien i drobne kropki.
   ========================================================================== */
.reaction-btn-icon.mr-like-pop {
	position: relative;
	overflow: visible !important;
}
.reaction-btn-icon.mr-like-pop svg {
	animation: mr-fx-heart .45s cubic-bezier(.17, .89, .32, 1.28) both !important;
	transform-origin: 50% 50%;
}
.reaction-btn-icon.mr-like-pop::before,
.reaction-btn-icon.mr-like-pop::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	pointer-events: none;
}
/* pierscien */
.reaction-btn-icon.mr-like-pop::before {
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border-radius: 50%;
	border: 2px solid #f91880;
	animation: mr-fx-ring .45s ease-out both;
}
/* kropki (8 sztuk, dookola) */
.reaction-btn-icon.mr-like-pop::after {
	width: 4px;
	height: 4px;
	margin: -2px 0 0 -2px;
	border-radius: 50%;
	background: transparent;
	box-shadow:
		0 -15px 0 0 #f91880, 11px -11px 0 0 #ff7a59, 15px 0 0 0 #f91880, 11px 11px 0 0 #ffad1f,
		0 15px 0 0 #f91880, -11px 11px 0 0 #794bc4, -15px 0 0 0 #f91880, -11px -11px 0 0 #1d9bf0;
	animation: mr-fx-dots .55s ease-out both;
}
@keyframes mr-fx-heart {
	0%   { transform: scale(.2); }
	45%  { transform: scale(1.25); }
	70%  { transform: scale(.92); }
	100% { transform: scale(1); }
}
@keyframes mr-fx-ring {
	0%   { transform: scale(.2); opacity: 1; border-width: 8px; }
	60%  { opacity: .8; }
	100% { transform: scale(1.1); opacity: 0; border-width: 0; }
}
@keyframes mr-fx-dots {
	0%, 25% { transform: scale(.4); opacity: 0; }
	40%     { opacity: 1; }
	100%    { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.reaction-btn-icon.mr-like-pop svg,
	.reaction-btn-icon.mr-like-pop::before,
	.reaction-btn-icon.mr-like-pop::after {
		animation: none !important;
	}
}

/* przytrzymanie serca: bez menu iOS / zaznaczania tekstu */
.post-actions .reactions-wrapper,
.comment-actions .reactions-wrapper {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}
/* lista reakcji otwarta przytrzymaniem - wyskakuje miekko */
.reactions-container.mr-fx-open {
	animation: mr-fx-picker .16s cubic-bezier(.2, .8, .25, 1) both;
	transform-origin: 20% 100%;
}
@keyframes mr-fx-picker {
	from { opacity: 0; transform: translateY(6px) scale(.9); }
	to   { opacity: 1; transform: none; }
}

/* ekrany dotykowe: lista reakcji tylko po PRZYTRZYMANIU serca (mr-fx-open
   dodaje mr-feed-x.js). Stukniecie = Like - bez migniecia listy, ktora
   post.js / motyw potrafi na ulamek sekundy pokazac przy tym samym dotyku. */
@media (hover: none) {
	.post-actions .reactions-container:not(.mr-fx-open),
	.comment-actions .reactions-container:not(.mr-fx-open) {
		display: none !important;
	}
}

/* ekrany dotykowe: po stuknieciu przycisk nie zostaje z tlem "najechania" */
@media (hover: none) {
	.post-actions .action-btn:hover,
	.post-actions .action-btn:focus,
	.comment-actions .action-btn:hover,
	.comment-actions .action-btn:focus {
		background: transparent !important;
	}
}

/* ── Linie pod gornymi belkami = linie pod publisherem i relacjami ─────
   Belka "Obserwujesz / Najnowsze..." i pasek "Wyniki / Spolecznosci..."
   mialy kreske #16181c (prawie czarna), a publisher i relacje #2f3336.
   Teraz wszystkie cztery: 1 px, ten sam kolor (jasny motyw: #eff3f4). */
html body:not(#mrx0) .mr-deck > .mr-topbar,
html body:not(#mrx0) .mr-chips {
	border-bottom: var(--mr-hair, 1px) solid #202326 !important;
}
html[data-mr-theme="light"] body:not(#mrx0) .mr-deck > .mr-topbar,
html[data-mr-theme="light"] body:not(#mrx0) .mr-chips,
html[data-mr-theme="light"] body:not(#mrx0) .x_announcement.mr-stories {
	border-bottom-color: #eff3f4 !important;
}

/* ── Wszystkie ramki w jednym kolorze (jak linie pod publisherem) ──────
   Motyw mial trzy odcienie: #111 (wyszukiwarka), #141414 (kolumny,
   panele po prawej - czesc wpisana na sztywno, czesc przez
   --border-divider) i #2f3336 (wpisy, publisher, relacje).
   Teraz wszedzie #2f3336, w jasnym motywie #eff3f4. */
html body.night-mode:not(#mrx0),
html[data-mr-theme="dark"] body:not(#mrx0) {
	--border-divider: #202326;
}
html[data-mr-theme="light"] body:not(#mrx0) {
	--border-divider: #eff3f4;
}
/* panele prawej kolumny i inne karty */
html body:not(#mrx0) .content,
html body:not(#mrx0) .content2,
html body:not(#mrx0) .news-timeline-container,
html body:not(#mrx0) .blog-container {
	border-color: var(--border-divider, #2f3336) !important;
}
/* wyszukiwarka */
html body:not(#mrx0) .search-wrapper .form-control,
html body:not(#mrx0) #search-input {
	border-color: var(--border-divider, #2f3336) !important;
}
/* pionowe linie kolumn: menu po lewej, feed z obu stron */
html body:not(#mrx0) .x-sidebar-fixed,
html body:not(#mrx0) .x_content_row > .col-lg-8 {
	border-color: var(--border-divider, #2f3336) !important;
}
/* okno Post / Watek / powiadomienia (panel w miejscu feedu na PC) mialo
   ramke #111 - lezala na linii kolumny i prawa krawedz byla ciemniejsza */
html body:not(#mrx0) #modal.mr-post-thread-open .modal-content,
html body:not(#mrx0) #modal.mr-comment-thread-open .modal-content,
html body:not(#mrx0) #modal.mr-notif-open .modal-content,
html body:not(#mrx0) #modal.mr-msg-open .modal-content,
html body:not(#mrx0) #modal.mr-publisher-modal-open .modal-content {
	border-color: var(--border-divider, #2f3336) !important;
}
/* linie w oknach Post / Watek - ten sam kolor co reszta ramek
   (mr-post-thread.css / mr-comment-thread.css mialy #111) */
html body:not(#mrx0) .mr-post-thread-modal,
html body:not(#mrx0) .mr-comment-thread-modal {
	--mr-post-line: var(--border-divider, #2f3336);
	--mr-thread-line: var(--border-divider, #2f3336);
}
html body:not(#mrx0) #modal .mr-post-thread-modal .post-actions,
html body:not(#mrx0) #modal .mr-post-thread-modal .post-footer,
html body:not(#mrx0) #modal .mr-post-thread-modal .post-stats,
html body:not(#mrx0) #modal .mr-post-thread-modal .comment,
html body:not(#mrx0) #modal .mr-post-thread-modal .comment-actions,
html body:not(#mrx0) #modal .mr-post-thread-modal .mrx-row,
html body:not(#mrx0) #modal .mr-post-thread-modal .mr-x-inline-composer,
html body:not(#mrx0) #modal .mr-post-thread-modal .mr-post-thread-compose-wrap,
html body:not(#mrx0) #modal .mr-post-thread-modal .mr-comment-thread-compose-wrap,
html body:not(#mrx0) #modal .mr-post-thread-modal .mr-thread-parent,
html body:not(#mrx0) #modal .mr-comment-thread-modal .post-actions,
html body:not(#mrx0) #modal .mr-comment-thread-modal .post-footer,
html body:not(#mrx0) #modal .mr-comment-thread-modal .post-stats,
html body:not(#mrx0) #modal .mr-comment-thread-modal .comment,
html body:not(#mrx0) #modal .mr-comment-thread-modal .comment-actions,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mrx-row,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mr-x-inline-composer,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mr-post-thread-compose-wrap,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mr-comment-thread-compose-wrap,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mr-thread-parent {
	border-color: var(--border-divider, #2f3336) !important;
}
/* bez linii pod naglowkiem: Watek, okno odpowiedzi (jak na X) */
html body:not(#mrx0) #modal .mr-comment-thread-header,
html body:not(#mrx0) #modal .mr-post-thread-header,
html body:not(#mrx0) #modal .mr-x-desktop-compose-header,
html body:not(#mrx0) #modal .mr-x-compose-header,
html body:not(#mrx0) #modal .mr-x-standalone-reply-nav {
	border-bottom-color: transparent !important;
	box-shadow: none !important;
}
/* PC: lewa krawedz okna lezy na linii menu - dwie linie obok siebie
   dawaly 2 px; zostaje jedna (menu) */
@media (min-width: 768px) {
	html body:not(#mrx0) #modal.mr-post-thread-open .modal-content,
html body:not(#mrx0) #modal.mr-comment-thread-open .modal-content,
html body:not(#mrx0) #modal.mr-notif-open .modal-content,
html body:not(#mrx0) #modal.mr-msg-open .modal-content,
html body:not(#mrx0) #modal.mr-publisher-modal-open .modal-content {
		border-left-color: transparent !important;
	}
}
/* Zamykanie / cofanie okna: na chwile pokazuje sie jego zamrozona kopia
   (#mr-thread-ghost) albo warstwa poprzedniego widoku (#mr-back-layer) -
   mialy stare ramki #111, wiec linie "ciemnialy" tuz przed zniknieciem.
   Te same kolory co w oknie. */
html body:not(#mrx0) #mr-thread-ghost,
html body:not(#mrx0) #mr-back-layer {
	border-color: var(--border-divider, #2f3336) !important;
}
html body:not(#mrx0) #mr-thread-ghost .modal-content,
html body:not(#mrx0) #mr-thread-ghost .post-actions,
html body:not(#mrx0) #mr-thread-ghost .post-footer,
html body:not(#mrx0) #mr-thread-ghost .post-stats,
html body:not(#mrx0) #mr-thread-ghost .comment,
html body:not(#mrx0) #mr-thread-ghost .comment-actions,
html body:not(#mrx0) #mr-thread-ghost .mrx-row,
html body:not(#mrx0) #mr-thread-ghost .mr-x-inline-composer,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-compose-wrap,
html body:not(#mrx0) #mr-thread-ghost .mr-comment-thread-compose-wrap,
html body:not(#mrx0) #mr-thread-ghost .mr-thread-parent,
html body:not(#mrx0) #mr-back-layer .modal-content,
html body:not(#mrx0) #mr-back-layer .post-actions,
html body:not(#mrx0) #mr-back-layer .post-footer,
html body:not(#mrx0) #mr-back-layer .post-stats,
html body:not(#mrx0) #mr-back-layer .comment,
html body:not(#mrx0) #mr-back-layer .comment-actions,
html body:not(#mrx0) #mr-back-layer .mrx-row,
html body:not(#mrx0) #mr-back-layer .mr-x-inline-composer,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-compose-wrap,
html body:not(#mrx0) #mr-back-layer .mr-comment-thread-compose-wrap,
html body:not(#mrx0) #mr-back-layer .mr-thread-parent {
	border-color: var(--border-divider, #2f3336) !important;
}
html body:not(#mrx0) #mr-thread-ghost .mr-comment-thread-header,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-header,
html body:not(#mrx0) #mr-thread-ghost .mr-x-desktop-compose-header,
html body:not(#mrx0) #mr-thread-ghost .mr-x-compose-header,
html body:not(#mrx0) #mr-thread-ghost .mr-x-standalone-reply-nav,
html body:not(#mrx0) #mr-back-layer .mr-comment-thread-header,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-header,
html body:not(#mrx0) #mr-back-layer .mr-x-desktop-compose-header,
html body:not(#mrx0) #mr-back-layer .mr-x-compose-header,
html body:not(#mrx0) #mr-back-layer .mr-x-standalone-reply-nav {
	border-bottom-color: transparent !important;
	box-shadow: none !important;
}
@media (min-width: 768px) {
	html body:not(#mrx0) #mr-thread-ghost,
html body:not(#mrx0) #mr-back-layer,
html body:not(#mrx0) #mr-thread-ghost .modal-content,
html body:not(#mrx0) #mr-back-layer .modal-content {
		border-left-color: transparent !important;
	}
}

/* ── Popularny komentarz pod postem (5+ odpowiedzi i reakcji) ─────────── */
.js_posts_stream .post .mr-top-comment,
.mr-boost-deck .post .mr-top-comment {
	position: relative;
	z-index: 2;
	display: block;
	margin: 10px 0 4px calc(var(--fx-av, 40px) + var(--fx-gap, 12px));
	padding: 10px 12px 10px;
	border: 1px solid var(--border-divider, #2f3336);
	border-radius: 16px;
	background: transparent;
	cursor: pointer;
	transition: background-color .15s;
	-webkit-tap-highlight-color: transparent;
	color: var(--fx-text, #e7e9ea);
	text-align: left;
}
.js_posts_stream .post .mr-top-comment:hover,
.mr-boost-deck .post .mr-top-comment:hover { background: rgba(255,255,255,.03); }
html[data-mr-theme="light"] .js_posts_stream .post .mr-top-comment:hover,
html[data-mr-theme="light"] .mr-boost-deck .post .mr-top-comment:hover { background: rgba(0,0,0,.03); }
.js_posts_stream .post .mr-top-comment:focus-visible,
.mr-boost-deck .post .mr-top-comment:focus-visible { outline: 2px solid #1d9bf0; outline-offset: 1px; }
.mr-top-comment .mr-tc-label {
	display: flex; align-items: center; gap: 5px;
	margin: 0 0 8px; color: var(--fx-dim, #71767b);
	font-size: 12px; font-weight: 700; line-height: 16px;
}
.mr-top-comment .mr-tc-label svg { color: #f91880; flex-shrink: 0; }
.mr-top-comment .mr-tc-row { display: flex; gap: 10px; align-items: flex-start; }
.mr-top-comment .mr-tc-avatar { flex-shrink: 0; display: block; line-height: 0; }
.mr-top-comment .mr-tc-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.mr-top-comment .mr-tc-body { min-width: 0; flex: 1; }
.mr-top-comment .mr-tc-head {
	display: flex; align-items: center; gap: 4px; min-width: 0;
	font-size: 14px; line-height: 18px; white-space: nowrap;
}
.mr-top-comment .mr-tc-name { color: var(--fx-text, #e7e9ea) !important; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; max-width: 70%; }
.mr-top-comment .mr-tc-name:hover { text-decoration: underline; }
.mr-top-comment .mr-tc-verified { color: #1d9bf0; flex-shrink: 0; }
.mr-top-comment .mr-tc-handle { color: var(--fx-dim, #71767b); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 100 auto; }
.mr-top-comment .mr-tc-dot, .mr-top-comment .mr-tc-time { color: var(--fx-dim, #71767b); flex-shrink: 0; }
.mr-top-comment .mr-tc-text {
	margin-top: 2px; color: var(--fx-text, #e7e9ea);
	font-size: 15px; line-height: 20px; overflow-wrap: anywhere;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.mr-top-comment .mr-tc-text a { color: #1d9bf0; text-decoration: none; }
.mr-top-comment .mr-tc-text img.emoji, .mr-top-comment .mr-tc-text .emoji { width: 18px; height: 18px; vertical-align: -3px; }
.mr-top-comment .mr-tc-media { color: var(--fx-dim, #71767b); }
.mr-top-comment .mr-tc-stats { display: flex; align-items: center; gap: 18px; margin-top: 8px; color: var(--fx-dim, #71767b); font-size: 13px; line-height: 16px; }
.mr-top-comment .mr-tc-stat { display: inline-flex; align-items: center; gap: 5px; }
.mr-top-comment .mr-tc-emojis { display: inline-flex; align-items: center; }
.mr-top-comment .mr-tc-emojis .inline-emoji { width: 16px; height: 16px; margin-left: -3px; display: inline-flex; }
.mr-top-comment .mr-tc-emojis .inline-emoji:first-child { margin-left: 0; }
.mr-top-comment .mr-tc-emojis .inline-emoji img, .mr-top-comment .mr-tc-emojis .inline-emoji svg { width: 16px !important; height: 16px !important; }
@media (max-width: 767px) {
	.js_posts_stream .post .mr-top-comment,
.mr-boost-deck .post .mr-top-comment { padding: 9px 11px; border-radius: 14px; }
	.mr-top-comment .mr-tc-text { font-size: 15px; -webkit-line-clamp: 3; }
}

/* ── Emoji jak na X (mr-emoji-x.js) ── obrazek w linii tekstu, rozmiar liter */
img.mr-emoji {
	display: inline-block !important;
	width: 1.2em !important;
	height: 1.2em !important;
	margin: 0 .05em 0 .1em !important;
	vertical-align: -.2em !important;
	border: 0 !important;
	border-radius: 0 !important;
	max-width: none !important;
	background: transparent !important;
	box-shadow: none !important;
	pointer-events: none;
}

/* ── Ankieta w komentarzu jak na X (mr-feed-x.js liczy procenty) ────────
   Przed oddaniem glosu: niebieskie "pastylki". Po glosie: paski z wynikiem,
   procent po prawej, prowadzaca opcja wyrozniona, pod spodem liczba glosow. */
.mr-comment-poll {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	width: 100% !important;
	max-width: 520px;
	margin: 10px 0 4px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}
.mr-comment-poll .mr-comment-poll-option {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	overflow: hidden !important;
	border: 1px solid #1d9bf0 !important;
	border-radius: 9999px !important;
	background: transparent !important;
	color: #1d9bf0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	text-align: center !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s;
	-webkit-tap-highlight-color: transparent;
}
.mr-comment-poll .mr-comment-poll-option:hover { background: rgba(29, 155, 240, .1) !important; }
.mr-comment-poll .mr-comment-poll-option > span { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-comment-poll .mr-comment-poll-option > strong { display: none !important; }
.mr-comment-poll .mr-poll-pct { display: none; }

/* wyniki */
.mr-comment-poll.mr-poll-done .mr-comment-poll-option {
	justify-content: space-between !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 0 12px !important;
	color: var(--fx-text, #e7e9ea) !important;
	font-weight: 400 !important;
	background: transparent !important;
}
.mr-comment-poll.mr-poll-done .mr-comment-poll-option::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: var(--mr-p, 0%);
	min-width: 4px;
	border-radius: 6px;
	background: #333639;
	transition: width .35s cubic-bezier(.2, .8, .2, 1);
}
.mr-comment-poll.mr-poll-done .mr-comment-poll-option.mr-poll-lead::before { background: rgba(29, 155, 240, .55); }
.mr-comment-poll.mr-poll-done .mr-comment-poll-option.mr-poll-lead { font-weight: 700 !important; }
.mr-comment-poll.mr-poll-done .mr-comment-poll-option:hover { background: rgba(255, 255, 255, .03) !important; }
.mr-comment-poll.mr-poll-done .mr-comment-poll-option.voted > span::after {
	content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px;
	background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e7e9ea' d='M12 1.75C6.34 1.75 1.75 6.34 1.75 12S6.34 22.25 12 22.25 22.25 17.66 22.25 12 17.66 1.75 12 1.75zm-1.43 14.6L6.62 12.4l1.42-1.42 2.53 2.54 5.4-5.4 1.41 1.42-6.81 6.81z'/%3E%3C/svg%3E");
}
.mr-comment-poll.mr-poll-done .mr-poll-pct { display: inline; position: relative; z-index: 1; margin-left: 12px; flex-shrink: 0; }
.mr-comment-poll .mr-poll-foot { color: var(--fx-dim, #71767b); font-size: 13px; line-height: 16px; margin-top: 2px; }
html[data-mr-theme="light"] .mr-comment-poll.mr-poll-done .mr-comment-poll-option { color: #0f1419 !important; }
html[data-mr-theme="light"] .mr-comment-poll.mr-poll-done .mr-comment-poll-option::before { background: #cfd9de; }
html[data-mr-theme="light"] .mr-comment-poll.mr-poll-done .mr-comment-poll-option.mr-poll-lead::before { background: #8ecdf8; }
html[data-mr-theme="light"] .mr-comment-poll.mr-poll-done .mr-comment-poll-option.voted > span::after { filter: invert(1); }

/* odtwarzacz w ramce na pelnym ekranie zastepczym (mr-feed-x.js) */
html.mr-frame-fs, html.mr-frame-fs body { overflow: hidden !important; overscroll-behavior: none; }

/* ── @nick i czas przy wpisie: 15 px jak na X (szare, nazwa pogrubiona) ──
   Wyzsza waga selektora (html body ... :not(#mrx0)), zeby nie przebily
   jej inne arkusze motywu. */
html body:not(#mrx0) .js_posts_stream .post .post-meta > .text-muted,
html body:not(#mrx0) .mr-boost-deck .post .post-meta > .text-muted,
html body:not(#mrx0) .js_posts_stream .post .post-meta > .text-muted *,
html body:not(#mrx0) .mr-boost-deck .post .post-meta > .text-muted *,
html body:not(#mrx0) .js_posts_stream .post .post-meta > .mr-fx-time,
html body:not(#mrx0) .mr-boost-deck .post .post-meta > .mr-fx-time,
html body:not(#mrx0) .js_posts_stream .post .post-meta > .mr-fx-time *,
html body:not(#mrx0) .mr-boost-deck .post .post-meta > .mr-fx-time * {
	font-size: 15px !important;
	line-height: 20px !important;
}

/* MR: promowane posty - karuzela z kropkami w naglowku "Promowane tresci" */
.mr-boost-deck { position: relative; }
.mr-boost-deck > .mr-boost-item[hidden] { display: none !important; }
.mr-boost-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  margin-top: -1px;
}
.mr-boost-dot {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mr-boost-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #536471;
  transition: background-color .15s ease, transform .15s ease;
}
.mr-boost-dot:hover::before { background: #8b98a5; }
.mr-boost-dot.active::before { background: #0053cb; transform: scale(1.25); }
.mr-boost-dot:focus { outline: none; }
.mr-boost-dot:focus-visible::before { box-shadow: 0 0 0 2px #000, 0 0 0 4px #0053cb; }
html[data-mr-theme="light"] .mr-boost-dot::before { background: #cfd9de; }
html[data-mr-theme="light"] .mr-boost-dot:hover::before { background: #8b98a5; }
html[data-mr-theme="light"] .mr-boost-dot.active::before { background: #0053cb; }
html[data-mr-theme="light"] .mr-boost-dot:focus-visible::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0053cb; }
@media (max-width: 575.98px) {
  .mr-boost-dot { width: 22px; height: 24px; }
  .mr-boost-dots { height: 24px; margin-top: -3px; }
}

/* MR: oznaczenia w tekstach - "@nick" normalna grubosc, kolor #217bff */
html body:not(#mrx0) .mr-mention-wrap,
html body:not(#mrx0) a.mr-mention,
html body:not(#mrx0) .mr-mention-wrap > a.mr-mention {
  color: #217bff !important;
  font-weight: 400 !important;
  font-size: inherit !important;
  text-decoration: none !important;
  background: none !important;
}
html body:not(#mrx0) a.mr-mention:hover { text-decoration: underline !important; }
/* zakladka "Odpowiedzi" na profilu: oznaczenie bez linku (caly wiersz jest linkiem) */
.mr-pr-text .mr-mention-wrap { color: #217bff; font-weight: 400; }
.mr-pr-text.mr-pr-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}

/* MR: naglowek wpisu - nick, znaczki i @nick na jednej wysokosci (znaczki byly ~1,5px za wysoko) */
.js_posts_stream .post .post-meta > .verified-badge svg,
.mr-boost-deck .post .post-meta > .verified-badge svg,
.js_posts_stream .post .post-meta > .pro-badge svg,
.mr-boost-deck .post .post-meta > .pro-badge svg,
.js_posts_stream .post .post-meta > .mr-ubadges .mr-ubadge,
.mr-boost-deck .post .post-meta > .mr-ubadges .mr-ubadge {
	position: relative;
	top: 1px;
}

/* MR: panele boczne (aktywnosc ekipy, komentarze, polecane) - emotki w rozmiarze tekstu,
   nie w naturalnym rozmiarze obrazka; naklejki (.sticker-inline) zostaja jak byly */
.sc-content img:not(.sticker-inline),
.sc-group-preview img:not(.sticker-inline),
.cms-txt img:not(.sticker-inline),
.cms-group-preview img:not(.sticker-inline),
.topviews-hero-title img:not(.sticker-inline),
.topviews-text img:not(.sticker-inline) {
	display: inline-block !important;
	width: 1.2em !important;
	height: 1.2em !important;
	max-width: none !important;
	margin: 0 .05em 0 .1em !important;
	vertical-align: -.2em !important;
	border-radius: 0 !important;
}
/* ikonka weryfikacji ma wbudowany ~1px margines - odstep od nicku rowny pozostalym (~5px) */
.js_posts_stream .post .post-meta > .verified-badge,
.mr-boost-deck .post .post-meta > .verified-badge { margin-left: -1px !important; }

/* MR: okno wpisu (PC i telefon) - nick, weryfikacja i odznaki dokladnie jak w feedzie
   (na PC okno bralo stare style: znaczek 15px podniesiony o 4px, odznaka nizej) */
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .verified-badge,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .verified-badge,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .verified-badge,
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .pro-badge,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .pro-badge,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .pro-badge {
	display: inline-flex !important;
	align-items: center !important;
	height: 20px !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .verified-badge,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .verified-badge,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .verified-badge { margin-left: -1px !important; }
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .verified-badge svg,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .verified-badge svg,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .verified-badge svg,
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .pro-badge svg,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .pro-badge svg,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .pro-badge svg {
	width: 17px !important;
	height: 17px !important;
	position: relative !important;
	top: 1px !important;
	margin: 0 !important;
}
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .mr-ubadges,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .mr-ubadges,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .mr-ubadges {
	height: 20px !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}
html body:not(#mrx0) #modal .mr-post-thread-native .post-meta > .mr-ubadges .mr-ubadge,
html body:not(#mrx0) #mr-thread-ghost .mr-post-thread-native .post-meta > .mr-ubadges .mr-ubadge,
html body:not(#mrx0) #mr-back-layer .mr-post-thread-native .post-meta > .mr-ubadges .mr-ubadge {
	position: relative !important;
	top: 1px !important;
}
/* MR: puste/niewidoczne elementy w naglowku wpisu nie moga dostawac odstepu flex (4px).
   Stary skrypt rangi (sbs-badges) wstawial pusty element miedzy znaczek a odznake -
   w feedzie odstep wychodzil ~9,6px zamiast ~5px. */
html body:not(#mrx0) .post-meta > .sbs-badges,
html body:not(#mrx0) .post-meta > span:empty:not(.js_moment):not(.mr-fx-time),
html body:not(#mrx0) .post-meta > i:empty:not(.js_moment):not(.mr-fx-time),
html body:not(#mrx0) .post-meta > b:empty:not(.js_moment):not(.mr-fx-time),
html body:not(#mrx0) .post-meta > em:empty:not(.js_moment):not(.mr-fx-time),
html body:not(#mrx0) .post-meta > a:empty:not(.js_moment):not(.mr-fx-time) {
	display: none !important;
}

/* ── Popularna odpowiedz pod wpisem jak na X ────────────────────────────
   Bez ramki i etykiety: wiersz odpowiedzi z awatarem w kolumnie awatara wpisu
   i pionowa linia watku od awatara wpisu do awatara odpowiedzi.
   Dlugosc linii (--mr-tc-line) liczy mr-feed-x.js. */
.js_posts_stream .post.mr-has-top-comment > .post-body,
.mr-boost-deck .post.mr-has-top-comment > .post-body { position: relative !important; }
.js_posts_stream .post.mr-has-top-comment > .post-body::before,
.mr-boost-deck .post.mr-has-top-comment > .post-body::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: var(--mr-tc-top, calc(var(--fx-av) + 4px));
	left: var(--mr-tc-left, calc(var(--fx-av) / 2 - .75px));
	width: 1.5px;
	height: var(--mr-tc-line, 0px);
	border-radius: 1px;
	background: var(--fx-thread, #333639);
	pointer-events: none;
}
html body .js_posts_stream .post .mr-top-comment.mr-tc-x,
html body .mr-boost-deck .post .mr-top-comment.mr-tc-x {
	position: relative;
	z-index: 2;
	margin: 0 !important;
	padding: 12px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}
html body .js_posts_stream .post .mr-top-comment.mr-tc-x:hover,
html body .mr-boost-deck .post .mr-top-comment.mr-tc-x:hover { background: transparent !important; }
.mr-top-comment.mr-tc-x .mr-tc-row { display: flex; gap: var(--fx-gap, 8px); align-items: flex-start; }
.mr-top-comment.mr-tc-x .mr-tc-avatar img { width: var(--fx-av, 40px); height: var(--fx-av, 40px); }
.mr-top-comment.mr-tc-x .mr-tc-head {
	display: flex; align-items: center; gap: 4px; min-width: 0;
	height: 20px; font-size: 15px; line-height: 20px; white-space: nowrap;
}
.mr-top-comment.mr-tc-x .mr-tc-name { max-width: 60%; font-weight: 700; }
.mr-top-comment.mr-tc-x .mr-tc-verified { display: inline-flex; align-items: center; height: 20px; margin-left: -1px; color: #0053cb; }
.mr-top-comment.mr-tc-x .mr-tc-verified svg { position: relative; top: 1px; }
.mr-top-comment.mr-tc-x .mr-ubadges .mr-ubadge { position: relative; top: 1px; }
.mr-top-comment.mr-tc-x .mr-tc-handle,
.mr-top-comment.mr-tc-x .mr-tc-dot,
.mr-top-comment.mr-tc-x .mr-tc-time { font-size: 15px; color: var(--fx-dim, #71767b); }
.mr-top-comment.mr-tc-x .mr-tc-text {
	margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--fx-text, #e7e9ea);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; overflow-wrap: anywhere;
}
/* zdjecie z odpowiedzi jak na X: zaokraglona ramka pod tekstem */
.mr-top-comment.mr-tc-x .mr-tc-img {
	margin-top: 12px; overflow: hidden; line-height: 0;
	border: 1px solid var(--border-divider, #2f3336); border-radius: 16px; cursor: zoom-in;
}
.mr-top-comment.mr-tc-x .mr-tc-img img { display: block; width: 100%; max-height: 510px; height: auto; object-fit: cover; }
.mr-top-comment.mr-tc-x .mr-tc-actions {
	display: flex; align-items: center; justify-content: space-between;
	max-width: 425px; margin: 8px 0 0 -8px; color: var(--fx-dim, #71767b);
}
.mr-top-comment.mr-tc-x .mr-tc-act {
	display: inline-flex; align-items: center; gap: 2px; min-width: 34px; height: 34px;
	padding: 0 8px; border-radius: 999px; font-size: 13px; line-height: 16px;
}
.mr-top-comment.mr-tc-x .mr-tc-act i { font-style: normal; }
.mr-top-comment.mr-tc-x .mr-tc-act svg { width: 18.75px; height: 18.75px; flex: 0 0 auto; }
.mr-top-comment.mr-tc-x:hover .mr-tc-name { text-decoration: underline; }
@media (max-width: 575.98px) {
	html body .js_posts_stream .post .mr-top-comment.mr-tc-x,
html body .mr-boost-deck .post .mr-top-comment.mr-tc-x { padding: 12px 0 0 !important; }
	.mr-top-comment.mr-tc-x .mr-tc-text { font-size: 15px; -webkit-line-clamp: 6; }
}

/* MR: linia do "... odpowiedzial(a)" 1.5px takze na ekranach 1x (obramowanie 1.5px
   przegladarka zaokragla do 1px) - rysowana tlem: pion + luk (SVG) + poziom */
.js_posts_stream .post.mr-has-thread-repliers > .post-body::before,
.mr-boost-deck .post.mr-has-thread-repliers > .post-body::before {
	border: 0 !important;
	border-radius: 0 !important;
	left: calc(var(--fx-av) / 2 - .75px) !important;
	bottom: calc(var(--fx-rep-h) / 2 - .75px) !important;
	background:
		linear-gradient(var(--fx-thread), var(--fx-thread)) left top / 1.5px calc(100% - 14px) no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M.75 0v.25a14 14 0 0 0 14 14h.25' fill='none' stroke='%23333639' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / 15px 15px no-repeat,
		linear-gradient(var(--fx-thread), var(--fx-thread)) 15px 100% / calc(100% - 15px) 1.5px no-repeat !important;
}
html[data-mr-theme="light"] .js_posts_stream .post.mr-has-thread-repliers > .post-body::before,
html[data-mr-theme="light"] .mr-boost-deck .post.mr-has-thread-repliers > .post-body::before {
	background:
		linear-gradient(var(--fx-thread), var(--fx-thread)) left top / 1.5px calc(100% - 14px) no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M.75 0v.25a14 14 0 0 0 14 14h.25' fill='none' stroke='%23cfd9de' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / 15px 15px no-repeat,
		linear-gradient(var(--fx-thread), var(--fx-thread)) 15px 100% / calc(100% - 15px) 1.5px no-repeat !important;
}

/* ── Popularna odpowiedz: przyciski dzialaja (odpowiedz, podaj dalej, serce, zakladka, udostepnij) ── */
.mr-top-comment.mr-tc-x .mr-tc-actions { max-width: none; }
.mr-top-comment.mr-tc-x button.mr-tc-act {
	appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
	font: inherit; font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: color .15s ease, background-color .15s ease;
}
.mr-top-comment.mr-tc-x .mr-tc-end { display: inline-flex; align-items: center; }
.mr-top-comment.mr-tc-x .mr-tc-like .mr-tc-on { display: none; }
.mr-top-comment.mr-tc-x .mr-tc-like.is-on { color: #f91880; }
.mr-top-comment.mr-tc-x .mr-tc-like.is-on .mr-tc-on { display: block; }
.mr-top-comment.mr-tc-x .mr-tc-like.is-on .mr-tc-off { display: none; }
.mr-top-comment.mr-tc-x .mr-tc-like.is-pop svg { animation: mrTcPop .3s ease; }
.mr-top-comment.mr-tc-x .mr-tc-bm.is-on { color: #1d9bf0; }
.mr-top-comment.mr-tc-x .mr-tc-act i:empty { display: none; }
@keyframes mrTcPop { 0% { transform: scale(.7); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ── Udostepnij (jak na X): zakladka i udostepnij razem po prawej ── */
/* "Kopiuj link" przeniesiony z menu "Podaj dalej" do "Udostepnij" */
#mr-rp-menu .js_mr-rp-link { display: none !important; }

/* ── Przytrzymanie palcem: podglad + opcje (jak w aplikacji X) ── */
@media (hover: none), (pointer: coarse) {
	.js_posts_stream .post .post-text,
.mr-boost-deck .post .post-text,
.comment .comment-inner,
.js_posts_stream .post .post-header,
.mr-boost-deck .post .post-header {
		-webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
	}
}
html.mr-lp-lock, html.mr-lp-lock body { overflow: hidden !important; }
/* w trakcie przytrzymania i przy otwartym menu nic sie nie zaznacza */
html.mr-lp-press, html.mr-lp-press *, #mr-lp, #mr-lp * {
	-webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important;
}
@media (hover: none), (pointer: coarse) {
	.comment, .mrx-row { -webkit-touch-callout: none; }
}
#mr-lp { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: flex-start; justify-content: center;
	padding: calc(env(safe-area-inset-top, 0px) + 56px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
	font-family: var(--mr-x-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif); }
#mr-lp .mr-lp-shade { position: absolute; inset: 0; background: rgba(0,0,0,.45);
	-webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity .16s ease; }
#mr-lp.mr-lp-in .mr-lp-shade { opacity: 1; }
#mr-lp .mr-lp-wrap { position: relative; width: 100%; max-width: 480px; max-height: 100%; display: flex; flex-direction: column; gap: 12px;
	transform: scale(.94); opacity: 0; transition: transform .18s cubic-bezier(.2,.9,.3,1.2), opacity .14s ease; }
#mr-lp.mr-lp-in .mr-lp-wrap { transform: none; opacity: 1; }
#mr-lp .mr-lp-card { background: #000; color: #e7e9ea; border-radius: 18px; padding: 14px 16px 14px; overflow: hidden;
	max-height: 48vh; flex: 0 1 auto; display: flex; flex-direction: column;
	/* wyrazniej odciety od rozmytego tla: cienka jasna obwodka, poswiata i cien */
	box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 28px rgba(255,255,255,.12), 0 14px 44px rgba(0,0,0,.7); }
#mr-lp .mr-lp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#mr-lp .mr-lp-av { width: 40px; height: 40px; border-radius: 50%; background: #333 center / cover no-repeat; flex: 0 0 auto; }
#mr-lp .mr-lp-who { display: flex; flex-direction: column; min-width: 0; line-height: 20px; }
#mr-lp .mr-lp-who b { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mr-lp .mr-lp-who b svg { width: 17px; height: 17px; color: #1d9bf0; flex: 0 0 auto; }
#mr-lp .mr-lp-who small { font-size: 14px; color: #71767b; }
#mr-lp .mr-lp-text { font-size: 15px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
#mr-lp .mr-lp-text img { max-height: 1.2em; vertical-align: -.2em; }
#mr-lp .mr-lp-head, #mr-lp .mr-lp-time { flex: 0 0 auto; }
/* tekst sie nie kurczy (Safari ucinal go w polowie linii przy -webkit-box
   w kolumnie flex) - miejsce oddaje tylko zdjecie */
#mr-lp .mr-lp-text { flex: 0 0 auto !important; min-height: auto !important; height: auto !important; max-height: none !important; overflow: hidden; }
#mr-lp .mr-lp-img { display: block; width: 100%; height: auto; max-height: 24vh; min-height: 0; flex: 0 1 auto; object-fit: cover; border-radius: 14px; margin-top: 10px; }
#mr-lp .mr-lp-time { margin-top: 10px; font-size: 14px; color: #71767b; }
#mr-lp .mr-lp-menu { width: 72%; min-width: 250px; max-width: 320px; background: rgba(37,37,37,.94); border-radius: 14px; overflow-y: auto;
	flex: 0 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
#mr-lp .mr-lp-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
	padding: 12px 16px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; line-height: 20px; text-align: left;
	-webkit-tap-highlight-color: transparent; }
#mr-lp .mr-lp-item + .mr-lp-item { border-top: .5px solid rgba(255,255,255,.14); }
#mr-lp .mr-lp-item:active { background: rgba(255,255,255,.1); }
#mr-lp .mr-lp-item svg, #mr-lp .mr-lp-item i { width: 20px; height: 20px; flex: 0 0 auto; color: currentColor; font-size: 18px; text-align: center; }
#mr-lp .mr-lp-item.is-danger { color: #ff453a; }
html[data-mr-theme="light"] #mr-lp .mr-lp-shade { background: rgba(255,255,255,.35); }
html[data-mr-theme="light"] #mr-lp .mr-lp-card { background: #fff; color: #0f1419; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 14px 44px rgba(0,0,0,.25); }
html[data-mr-theme="light"] #mr-lp .mr-lp-menu { background: rgba(242,242,247,.96); }
html[data-mr-theme="light"] #mr-lp .mr-lp-item { color: #0f1419; }
html[data-mr-theme="light"] #mr-lp .mr-lp-item + .mr-lp-item { border-top-color: rgba(0,0,0,.12); }
html[data-mr-theme="light"] #mr-lp .mr-lp-item.is-danger { color: #e0245e; }

/* ── Najechanie na ikonki jak na X: kolko TYLKO pod ikonka (bez liczby).
   Wczesniej tlo obejmowalo caly przycisk razem z ukrytymi spacjami przed
   liczba ("&nbsp;&nbsp;0"), wiec kolko przy sercu bylo krzywe. ── */
.js_posts_stream .post .post-actions > .action-btn svg,
.mr-boost-deck .post .post-actions > .action-btn svg,
.post-actions > .action-btn svg,
.comment-actions > .action-btn svg,
.mr-top-comment.mr-tc-x .mr-tc-act svg {
	border-radius: 50%;
	transition: background-color .15s ease, box-shadow .15s ease;
}
@media (hover: hover) {
	html body .post-actions > .action-btn:hover,
	html body .comment-actions > .action-btn:hover,
	html body .mr-top-comment.mr-tc-x .mr-tc-act:hover { background: transparent !important; }
	.post-actions > .action-btn:hover svg,
	.comment-actions > .action-btn:hover svg,
	.mr-top-comment.mr-tc-x button.mr-tc-act:hover svg { --mr-hc: rgba(29,155,240,.1); background: var(--mr-hc); box-shadow: 0 0 0 7px var(--mr-hc); }
	.post-actions > .action-btn:hover,
	.comment-actions > .action-btn:hover,
	.mr-top-comment.mr-tc-x button.mr-tc-act:hover { color: #1d9bf0 !important; }
	html body .post-actions > .action-btn:hover svg:not(.action-icon2),
	html body .comment-actions > .action-btn:hover svg:not(.action-icon2) { color: inherit !important; fill: currentColor !important; }
	html body .post-actions > .action-btn:hover svg:not(.action-icon2) path,
	html body .comment-actions > .action-btn:hover svg:not(.action-icon2) path { color: inherit !important; fill: currentColor !important; stroke: none !important; }
	html body .mr-top-comment.mr-tc-x .mr-tc-views:hover { color: #1d9bf0; }
	html body .mr-top-comment.mr-tc-x .mr-tc-views:hover svg { --mr-hc: rgba(29,155,240,.1); background: var(--mr-hc); box-shadow: 0 0 0 7px var(--mr-hc); }
	.post-actions > .reactions-wrapper:hover svg,
	.comment-actions > .reactions-wrapper:hover svg,
	.mr-top-comment.mr-tc-x .mr-tc-like:hover svg { --mr-hc: rgba(249,24,128,.1); }
	.post-actions > .reactions-wrapper:hover,
	.comment-actions > .reactions-wrapper:hover,
	.mr-top-comment.mr-tc-x .mr-tc-like:hover { color: #f91880 !important; }
	.post-actions > .js_share-toggle:hover svg,
	.comment-actions > .js_share-toggle:hover svg,
	.mr-top-comment.mr-tc-x .mr-tc-repost:hover svg { --mr-hc: rgba(0,186,124,.1); }
	.post-actions > .js_share-toggle:hover,
	.comment-actions > .js_share-toggle:hover,
	.mr-top-comment.mr-tc-x .mr-tc-repost:hover { color: #00ba7c !important; }
	/* tlo na caly przycisk rysowal style.css (::before) - wylaczone */
	html body .post-actions .action-btn:hover::before,
	html body .comment-actions .action-btn:hover::before { opacity: 0 !important; background: transparent !important; }
	/* kolor ikonki i liczby przy najechaniu (mocniej niz reguly feedu) */
	html body .js_posts_stream .post .post-actions > .action-btn:hover,
html body .mr-boost-deck .post .post-actions > .action-btn:hover { color: #1d9bf0 !important; }
	html body .js_posts_stream .post .post-actions > .reactions-wrapper:hover,
html body .mr-boost-deck .post .post-actions > .reactions-wrapper:hover { color: #f91880 !important; }
	html body .js_posts_stream .post .post-actions > .js_share-toggle:hover,
html body .mr-boost-deck .post .post-actions > .js_share-toggle:hover { color: #00ba7c !important; }
	html body .post-actions > .reactions-wrapper:hover svg:not(.action-icon2), html body .comment-actions > .reactions-wrapper:hover svg:not(.action-icon2) { color: #f91880 !important; fill: #f91880 !important; }
	html body .post-actions > .reactions-wrapper:hover svg path[fill="#AAAAAA"], html body .comment-actions > .reactions-wrapper:hover svg path[fill="#AAAAAA"] { fill: #f91880 !important; stroke: none !important; }
	html body .post-actions > .reactions-wrapper:hover svg, html body .comment-actions > .reactions-wrapper:hover svg { stroke: none !important; }
	html body .mr-top-comment.mr-tc-x button.mr-tc-like:hover { color: #f91880 !important; }
	html body .mr-top-comment.mr-tc-x button.mr-tc-like:hover svg { --mr-hc: rgba(249,24,128,.1); }
	html body .mr-top-comment.mr-tc-x button.mr-tc-repost:hover { color: #00ba7c !important; }
	html body .mr-top-comment.mr-tc-x button.mr-tc-repost:hover svg { --mr-hc: rgba(0,186,124,.1); }
	/* w liscie reakcji (dymek nad sercem) bez kolek */
	.post-actions .reactions-container svg, .comment-actions .reactions-container svg { background: none !important; box-shadow: none !important; }
}

/* ikonka "Udostepnij" w komentarzach zawsze na koncu wiersza (jak na X) -
   okna Wpis/Watek ustawiaja kolejnosc ikon po klasach (order) */
.comment-actions > .js_mr-share { order: 6 !important; }

/* serce w komentarzach na poczatku wiersza (jak pod wpisami) - takze w oknach
   Wpis/Watek, ktore ustawiaja kolejnosc ikon przez "order" */
html body .comment-actions > .reactions-wrapper { order: -1 !important; }

/* zero przy ikonkach schowane (owija je mr-feed-x.js) */
.mr-cnt-zero { display: none !important; }

/* ── Ikonki zawsze w tych samych miejscach (jak na X) ──
   Stale kolumny: 1 serce, 2 komentarz/odpowiedz, 3 podaj dalej,
   4 wyswietlenia (rowne szerokosci, ikonka na poczatku kolumny), potem
   zakladka i udostepnij razem po prawej. Liczby (2, 11, 5,4 tys.) ani brak
   ktorejs ikonki (np. wyswietlen przy wpisie dla znajomych) niczego nie
   przesuwaja. Id w :not() tylko po to, by przebic reguly okien Wpis/Watek. */
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
	grid-auto-flow: row dense;
	align-items: center !important;
	justify-content: stretch !important;
	column-gap: 0 !important;
}
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > *,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > *,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > * {
	grid-row: 1; margin: 0 !important; min-width: 0 !important; justify-self: start;
}
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > .reactions-wrapper,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > .reactions-wrapper,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .reactions-wrapper { grid-column: 1; }
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > .js_comment,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > .js_comment,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .js_reply { grid-column: 2; }
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > .js_share-toggle,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > .js_share-toggle,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .js_share-toggle { grid-column: 3; }
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > .js_mr-views,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > .js_mr-views,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .js_comment-views { grid-column: 4; }
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > .js_mr-save,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > .js_mr-save,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .js_comment-bookmark { grid-column: 5; justify-self: end; }
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > .js_mr-share,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > .js_mr-share,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .js_mr-share { grid-column: 6; justify-self: end; margin-left: 4px !important; }
/* reszta (napiwek, wyswietlenia filmu, lista reakcji) - za udostepnij */
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > :not(.reactions-wrapper):not(.js_comment):not(.js_reply):not(.js_share-toggle):not(.js_mr-views):not(.js_comment-views):not(.js_mr-save):not(.js_comment-bookmark):not(.js_mr-share),
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > :not(.reactions-wrapper):not(.js_comment):not(.js_reply):not(.js_share-toggle):not(.js_mr-views):not(.js_comment-views):not(.js_mr-save):not(.js_comment-bookmark):not(.js_mr-share),
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > :not(.reactions-wrapper):not(.js_comment):not(.js_reply):not(.js_share-toggle):not(.js_mr-views):not(.js_comment-views):not(.js_mr-save):not(.js_comment-bookmark):not(.js_mr-share) { grid-column: auto; }
html body:not(#mrx0):not(#mrx1) .js_posts_stream .post .post-actions > script,
html body:not(#mrx0):not(#mrx1) .mr-boost-deck .post .post-actions > script,
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > script { display: none !important; }
.mr-top-comment.mr-tc-x .mr-tc-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; justify-content: stretch; }
.mr-top-comment.mr-tc-x .mr-tc-actions > * { justify-self: start; min-width: 0; }
.mr-top-comment.mr-tc-x .mr-tc-actions > .mr-tc-end { justify-self: end; }
html body:not(#mrx0):not(#mrx1) .comment .comment-actions > .js_mr-share { margin-left: 12px !important; }

/* ── Film we wpisie (plyr): ramka, film i pasek ikon zawsze tej samej szerokosci ──
   style.css zeruje proporcje kontenera plyr (aspect-ratio: unset !important),
   przez co kontener mial wysokosc 0, film z niego wystawal, a pasek ikon
   (play, glosnosc, ustawienia, pelny ekran) lezal szerzej niz ramka filmu.
   Proporcje (--mr-ar) ustawia mr-video.js z prawdziwego rozmiaru filmu;
   pionowy film jest wezszy (max. 70% wysokosci ekranu), a ramka i pasek
   ida razem z nim. */
html body .post .post-video-reel:not(.vertical-reel) .plyr--video {
	position: relative !important;
	width: min(100%, calc(70vh * var(--mr-arn, 1.7778))) !important;
	max-width: 100% !important;
	height: auto !important;
	border: 1px solid var(--fx-line, #2f3336) !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	background: #000 !important;
}
html body .post .post-video-reel:not(.vertical-reel) .plyr--video .plyr__video-wrapper {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
	padding: 0 !important;
	aspect-ratio: var(--mr-ar, 16 / 9) !important;
	background: #000 !important;
}
html body .post .post-video-reel:not(.vertical-reel) .plyr--video .plyr__video-wrapper video {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	border: 0 !important;
	border-radius: 0 !important;
}
/* pelny ekran: bez ramki i ograniczen szerokosci */
html body .post .post-video-reel:not(.vertical-reel) .plyr--video.plyr--fullscreen-active,
html body .post .post-video-reel:not(.vertical-reel) .plyr--video.plyr--fullscreen-fallback {
	width: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
}
html body .post .post-video-reel:not(.vertical-reel) .plyr--fullscreen-active .plyr__video-wrapper,
html body .post .post-video-reel:not(.vertical-reel) .plyr--fullscreen-fallback .plyr__video-wrapper {
	aspect-ratio: auto !important;
	height: 100% !important;
}

/* ── Menu "…" przy wpisie i komentarzu: jak na X ─────────────────────────
   Polprzezroczyste, rozmyte tlo (widac pod nim wpis), zaokraglone rogi,
   duzy czytelny tekst po lewej i ikonka po prawej, cienkie linie miedzy
   grupami. Usuwanie na czerwono. */
html body .action-dropdown-menu.dropdown-menu,
html body .comment-btn .dropdown-menu {
	--mrm-bg: rgba(28, 28, 30, .86);
	--mrm-line: rgba(255, 255, 255, .13);
	--mrm-text: #f7f9f9;
	--mrm-icon: rgba(247, 249, 249, .88);
	--mrm-hover: rgba(255, 255, 255, .08);
	min-width: 240px !important;
	max-width: min(290px, calc(100vw - 24px)) !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 13px !important;
	background: var(--mrm-bg) !important;
	-webkit-backdrop-filter: blur(30px) !important;
	backdrop-filter: blur(30px) !important;
	box-shadow: 0 10px 38px rgba(0, 0, 0, .5) !important;
	overflow: hidden !important;
	max-height: min(70vh, 560px);
	overflow-y: auto !important;
	overscroll-behavior: contain;
}
html[data-mr-theme="light"] body .action-dropdown-menu.dropdown-menu,
html[data-mr-theme="light"] body .comment-btn .dropdown-menu {
	--mrm-bg: rgba(255, 255, 255, .78);
	--mrm-line: rgba(15, 20, 25, .1);
	--mrm-text: #0f1419;
	--mrm-icon: rgba(15, 20, 25, .8);
	--mrm-hover: rgba(15, 20, 25, .06);
	border-color: rgba(15, 20, 25, .08) !important;
	box-shadow: 0 18px 50px rgba(15, 20, 25, .18), 0 2px 8px rgba(15, 20, 25, .08) !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-item,
html body .comment-btn .dropdown-menu .dropdown-item {
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	min-height: 44px !important;
	padding: 10px 16px 10px 20px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--mrm-text) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 20px !important;
	letter-spacing: -.1px !important;
	white-space: normal !important;
	text-align: left !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-item:hover,
html body .action-dropdown-menu.dropdown-menu .dropdown-item:active,
html body .comment-btn .dropdown-menu .dropdown-item:hover,
html body .comment-btn .dropdown-menu .dropdown-item:active {
	background: var(--mrm-hover) !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-item > svg,
html body .action-dropdown-menu.dropdown-menu .dropdown-item > i,
html body .comment-btn .dropdown-menu .dropdown-item > svg,
html body .comment-btn .dropdown-menu .dropdown-item > i {
	flex: 0 0 auto !important;
	width: 19px !important;
	height: 19px !important;
	margin: 0 !important;
	font-size: 17px !important;
	line-height: 20px !important;
	text-align: center !important;
	color: var(--mrm-icon) !important;
	opacity: 1 !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-item > span,
html body .comment-btn .dropdown-menu .dropdown-item > span {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	color: inherit !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-item .action-desc {
	margin-top: 2px !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	opacity: .6 !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-divider,
html body .comment-btn .dropdown-menu .dropdown-divider {
	margin: 4px 0 !important;
	border-top: .5px solid var(--mrm-line) !important;
	opacity: 1 !important;
}
/* usuwanie i blokady - czerwone, jak na X */
html body .action-dropdown-menu.dropdown-menu .dropdown-item.js_delete-post,
html body .action-dropdown-menu.dropdown-menu .dropdown-item[data-mrc-action="remove_post"],
html body .action-dropdown-menu.dropdown-menu .dropdown-item[data-mrc-action="ban_author"],
html body .comment-btn .dropdown-menu .dropdown-item.js_delete-comment {
	color: #f4212e !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-item.js_delete-post > svg,
html body .action-dropdown-menu.dropdown-menu .dropdown-item.js_delete-post > i,
html body .action-dropdown-menu.dropdown-menu .dropdown-item[data-mrc-action="remove_post"] > svg,
html body .action-dropdown-menu.dropdown-menu .dropdown-item[data-mrc-action="ban_author"] > svg,
html body .comment-btn .dropdown-menu .dropdown-item.js_delete-comment > svg,
html body .comment-btn .dropdown-menu .dropdown-item.js_delete-comment > i {
	color: #f4212e !important;
}

/* X: cienka linia miedzy KAZDYM wierszem menu, grube przerwy zamiast pustych
   odstepow; tlo bez "mlecznego" rozjasnienia (bez saturate) */
html body .action-dropdown-menu.dropdown-menu .dropdown-item + .dropdown-item,
html body .comment-btn .dropdown-menu .dropdown-item + .dropdown-item {
	border-top: .5px solid var(--mrm-line) !important;
}
html body .action-dropdown-menu.dropdown-menu .dropdown-divider,
html body .comment-btn .dropdown-menu .dropdown-divider {
	margin: 0 !important;
	border-top: 6px solid rgba(0, 0, 0, .28) !important;
}
html[data-mr-theme="light"] body .action-dropdown-menu.dropdown-menu .dropdown-divider,
html[data-mr-theme="light"] body .comment-btn .dropdown-menu .dropdown-divider {
	border-top-color: rgba(15, 20, 25, .06) !important;
}

/* ── Panele "Podaj dalej / Cytuj" i "Udostepnij" (telefon) jak na X ─────── */
/* przyciemnienie: ciemne, a nie mleczne szaro-niebieskie */
.mr-rp-shade { background: rgba(0, 0, 0, .55) !important; }
html[data-mr-theme="light"] .mr-rp-shade { background: rgba(0, 0, 0, .4) !important; }
/* Podaj dalej / Cytuj: plywajaca karta nad dolna krawedzia */
#mr-rp-menu.mr-rp-sheet .mr-rp-card {
	left: 10px !important;
	right: 10px !important;
	bottom: calc(10px + env(safe-area-inset-bottom)) !important;
	padding: 10px 0 !important;
	border: 0 !important;
	border-radius: 28px !important;
	background: #1c1c1e !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5) !important;
}
html[data-mr-theme="light"] #mr-rp-menu.mr-rp-sheet .mr-rp-card { background: #fff !important; }
#mr-rp-menu.mr-rp-sheet .mr-rp-item {
	display: flex !important;
	align-items: center !important;
	gap: 22px !important;
	min-height: 60px !important;
	padding: 0 28px !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	letter-spacing: -.2px !important;
	background: transparent !important;
}
#mr-rp-menu.mr-rp-sheet .mr-rp-item svg { width: 24px !important; height: 24px !important; flex: 0 0 24px !important; }
#mr-rp-menu.mr-rp-sheet .mr-rp-cancel { display: none !important; }
/* Udostepnij: arkusz z uchwytem i rzedem okraglych przyciskow */
#mr-share-menu.mr-sh-x .mr-rp-card {
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	padding: 8px 0 calc(18px + env(safe-area-inset-bottom)) !important;
	border: 0 !important;
	border-radius: 24px 24px 0 0 !important;
	background: #16181c !important;
	box-shadow: none !important;
}
html[data-mr-theme="light"] #mr-share-menu.mr-sh-x .mr-rp-card { background: #fff !important; }
#mr-share-menu .mr-sh-grab {
	width: 40px;
	height: 4px;
	margin: 2px auto 18px;
	border-radius: 2px;
	background: #5b5e62;
}
#mr-share-menu .mr-sh-row {
	display: flex;
	gap: 6px;
	padding: 0 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
#mr-share-menu .mr-sh-row::-webkit-scrollbar { display: none; }
#mr-share-menu .mr-sh-tile {
	flex: 0 0 78px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #e7e9ea;
	font: inherit;
	cursor: pointer;
}
html[data-mr-theme="light"] #mr-share-menu .mr-sh-tile { color: #0f1419; }
#mr-share-menu .mr-sh-ic {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #2f3336;
	color: #fff;
}
html[data-mr-theme="light"] #mr-share-menu .mr-sh-ic { background: #eff3f4; color: #0f1419; }
#mr-share-menu .mr-sh-ic svg { width: 26px; height: 26px; }
#mr-share-menu .mr-sh-wa .mr-sh-ic { background: #25d366; color: #fff; }
#mr-share-menu .mr-sh-fb .mr-sh-ic { background: linear-gradient(45deg, #0a7cff, #a334fa 60%, #ff5c87); color: #fff; }
#mr-share-menu .mr-sh-lb {
	max-width: 78px;
	font-size: 12px;
	line-height: 15px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#mr-share-menu .mr-sh-tile:active .mr-sh-ic { filter: brightness(1.2); }

/* telefon: menu "…" o 1 px mniejsze i z ograniczona wysokoscia - dluga lista
   przewija sie palcem wewnatrz menu (strona pod spodem stoi) */
@media (max-width: 767.98px) {
	html body .action-dropdown-menu.dropdown-menu,
	html body .comment-btn .dropdown-menu {
		max-height: min(52vh, 400px) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain !important;
		touch-action: pan-y !important;
	}
	html body .action-dropdown-menu.dropdown-menu .dropdown-item,
	html body .comment-btn .dropdown-menu .dropdown-item {
		font-size: 14px !important;
		line-height: 19px !important;
		min-height: 42px !important;
		touch-action: pan-y !important;
	}
	html body .action-dropdown-menu.dropdown-menu .dropdown-item > svg,
	html body .action-dropdown-menu.dropdown-menu .dropdown-item > i,
	html body .comment-btn .dropdown-menu .dropdown-item > svg,
	html body .comment-btn .dropdown-menu .dropdown-item > i {
		width: 18px !important;
		height: 18px !important;
		font-size: 16px !important;
	}
}

/* ── Okno potwierdzenia jak na X (klasa mr-confirm-x - mr-feed-x.js) ───── */
html body #modal.mr-confirm-x .modal-dialog {
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	width: min(300px, calc(100vw - 48px)) !important;
	max-width: none !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	transform: translate(-50%, -50%) !important;
	transition: none !important;
}
html body #modal.mr-confirm-x .modal-content {
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: rgba(38, 38, 40, .94) !important;
	-webkit-backdrop-filter: blur(24px) !important;
	backdrop-filter: blur(24px) !important;
	box-shadow: 0 16px 50px rgba(0, 0, 0, .5) !important;
	color: #f7f9f9 !important;
	text-align: center !important;
	overflow: hidden !important;
	transform: none !important;
	animation: mr-confirm-pop .18s ease-out both;
}
@keyframes mr-confirm-pop { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
html[data-mr-theme="light"] body #modal.mr-confirm-x .modal-content {
	background: rgba(242, 242, 247, .96) !important;
	color: #0f1419 !important;
}
html body #modal.mr-confirm-x .modal-header {
	display: block !important;
	padding: 20px 16px 4px !important;
	border: 0 !important;
	background: transparent !important;
}
html body #modal.mr-confirm-x .modal-header .btn-close { display: none !important; }
html body #modal.mr-confirm-x .modal-title {
	margin: 0 !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 22px !important;
	color: inherit !important;
	text-align: center !important;
}
html body #modal.mr-confirm-x .modal-body {
	padding: 2px 16px 18px !important;
	background: transparent !important;
}
html body #modal.mr-confirm-x .modal-body h6 {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 19px !important;
	color: inherit !important;
	opacity: .9;
}
html body #modal.mr-confirm-x .modal-body .form-control {
	margin-top: 8px;
	height: 38px;
	border-radius: 8px !important;
	background: rgba(118, 118, 128, .24) !important;
	border: 0 !important;
	color: inherit !important;
}
html body #modal.mr-confirm-x .modal-footer {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-top: .5px solid rgba(255, 255, 255, .18) !important;
	background: transparent !important;
}
html[data-mr-theme="light"] body #modal.mr-confirm-x .modal-footer { border-top-color: rgba(60, 60, 67, .29) !important; }
html body #modal.mr-confirm-x .modal-footer > .btn {
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 8px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	color: #3d8bfd !important;
}
html body #modal.mr-confirm-x .modal-footer > .btn:first-child {
	border-right: .5px solid rgba(255, 255, 255, .18) !important;
}
html[data-mr-theme="light"] body #modal.mr-confirm-x .modal-footer > .btn:first-child { border-right-color: rgba(60, 60, 67, .29) !important; }
html body #modal.mr-confirm-x .modal-footer > #modal-confirm-ok { font-weight: 600 !important; }
html body #modal.mr-confirm-x .modal-footer > #modal-confirm-ok.mr-confirm-danger { color: #f4212e !important; }
html body #modal.mr-confirm-x .modal-footer > .btn:active { background: rgba(255, 255, 255, .08) !important; }
body.mr-confirm-open .modal-backdrop.show { background: #000 !important; opacity: .5 !important; }
html body #modal.mr-confirm-x { transform: none !important; }

/* ── Komputer: menu "Udostepnij" i "Podaj dalej / Cytuj" szare jak na X ───
   (zamiast czarnego). Na telefonie zostaja arkusze od dolu. */
.mr-rp-menu:not(.mr-rp-sheet) .mr-rp-card {
	min-width: 250px !important;
	padding: 6px 0 !important;
	border: 1px solid rgba(255, 255, 255, .08) !important;
	border-radius: 16px !important;
	background: #1c1d1f !important;
	color: #e7e9ea !important;
	box-shadow: 0 0 18px rgba(255, 255, 255, .08), 0 8px 28px rgba(0, 0, 0, .55) !important;
	overflow: hidden;
}
.mr-rp-menu:not(.mr-rp-sheet) .mr-rp-item {
	gap: 14px !important;
	min-height: 44px !important;
	padding: 11px 18px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	color: #e7e9ea !important;
}
.mr-rp-menu:not(.mr-rp-sheet) .mr-rp-item svg {
	width: 19px !important;
	height: 19px !important;
	color: #e7e9ea;
	opacity: .95;
}
.mr-rp-menu:not(.mr-rp-sheet) .mr-rp-item:hover { background: rgba(255, 255, 255, .06) !important; }
html[data-mr-theme="light"] .mr-rp-menu:not(.mr-rp-sheet) .mr-rp-card {
	border-color: rgba(15, 20, 25, .06) !important;
	background: #fff !important;
	color: #0f1419 !important;
	box-shadow: 0 0 15px rgba(101, 119, 134, .2), 0 0 3px 1px rgba(101, 119, 134, .15) !important;
}
html[data-mr-theme="light"] .mr-rp-menu:not(.mr-rp-sheet) .mr-rp-item,
html[data-mr-theme="light"] .mr-rp-menu:not(.mr-rp-sheet) .mr-rp-item svg { color: #0f1419 !important; }
html[data-mr-theme="light"] .mr-rp-menu:not(.mr-rp-sheet) .mr-rp-item:hover { background: rgba(15, 20, 25, .04) !important; }

/* linie poziome (miedzy wpisami, komentarzami, w oknach) zawsze jako
   JEDEN piksel ekranu - przy skalowaniu (Windows 125%, telefony 2x/3x)
   "1px" z CSS zajmowal 2-3 piksele i linia wygladala na grubsza */
:root { --mr-hair: 1px; }
@media (min-resolution: 1.2dppx) { :root { --mr-hair: .8px; } }
@media (min-resolution: 1.45dppx) { :root { --mr-hair: .67px; } }
/* telefony (2x/3x): pelny 1px z CSS - linia w jeden piksel ekranu
   byla na iPhonie praktycznie niewidoczna */
@media (min-resolution: 1.9dppx) { :root { --mr-hair: 1px; } }
/* szerokosc linii poziomych: wpisy w feedzie, promowane, komentarze, wiersze
   rozmow i sekcje okien Post / Watek (styl "none" zostaje - tylko grubosc) */
html body:not(#mrx0) .js_posts_stream .post,
html body:not(#mrx0) .mr-boost-deck .post,
html body:not(#mrx0) .js_posts_stream > ul > li,
html body:not(#mrx0) .x_comms_list > li,
html body:not(#mrx0) .x_comms_list .comment,
html body:not(#mrx0) .mrx-row,
html body:not(#mrx0) #modal .mr-post-thread-modal .post-actions,
html body:not(#mrx0) #modal .mr-post-thread-modal .post-stats,
html body:not(#mrx0) #modal .mr-post-thread-modal .comment,
html body:not(#mrx0) #modal .mr-post-thread-modal .mr-thread-parent,
html body:not(#mrx0) #modal .mr-post-thread-modal .mr-post-thread-compose-wrap,
html body:not(#mrx0) #modal .mr-comment-thread-modal .post-actions,
html body:not(#mrx0) #modal .mr-comment-thread-modal .comment,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mr-thread-parent,
html body:not(#mrx0) #modal .mr-comment-thread-modal .mr-comment-thread-compose-wrap {
	border-top-width: var(--mr-hair, 1px) !important;
	border-bottom-width: var(--mr-hair, 1px) !important;
}

/* ==========================================================================
   Rolki (/reels) jak film na X: film na calym ekranie, pod nim podpis,
   autor z "Obserwuj", pigulki akcji, cienki pasek postepu i sterowanie.
   Szablon: __feeds_reel.tpl, obsluga: mr-feed-x.js (__mrReels).
   ========================================================================== */
.reels-wrapper { background: #000 !important; }
.reel-container.mr-reel {
	transition: transform .2s ease;
	background: #000;
}
/* ukryte rolki nie sa w ogole rysowane (wczesniej kazda byla gotowa warstwa
   z odtwarzaczem - to one obciazaly telefon) */
.reel-container.mr-reel.hidden { display: none !important; }
.reel-container.mr-reel:not(.hidden) { animation: mr-reel-in .18s ease both; }
@keyframes mr-reel-in { from { opacity: 0; } to { opacity: 1; } }

.mr-reel .mr-reel-stage { background: #000; overflow: hidden; }
.mr-reel video.mr-reel-video {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	display: block;
}
.mr-reel .mr-reel-tap {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.mr-reel .mr-reel-bigplay {
	position: absolute;
	top: 50%; left: 50%;
	z-index: 2;
	width: 64px; height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(.85);
	transition: opacity .15s ease, transform .15s ease;
	pointer-events: none;
}
.mr-reel.mr-reel-paused .mr-reel-bigplay { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.mr-reel .mr-reel-spin {
	position: absolute;
	top: 50%; left: 50%;
	z-index: 2;
	width: 34px; height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #1d9bf0;
	opacity: 0;
	pointer-events: none;
}
.mr-reel.mr-reel-wait:not(.mr-reel-paused) .mr-reel-spin {
	opacity: 1;
	animation: mr-reel-spin .8s linear infinite;
	transition: opacity .15s ease .4s;
}
@keyframes mr-reel-spin { to { transform: rotate(360deg); } }

/* dolna czesc: gradient, podpis, autor, pigulki, pasek, sterowanie */
.mr-reel .mr-reel-ui {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 3;
	padding: 56px 0 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.45) 56px, rgba(0,0,0,.72) 100%);
	color: #e7e9ea;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.mr-reel .mr-reel-ui > * { pointer-events: auto; }
.mr-reel .mr-reel-info { padding: 0 16px; }
.mr-reel .mr-reel-caption {
	font-size: 15px;
	line-height: 20px;
	color: #e7e9ea;
	margin: 0 0 10px;
	white-space: pre-line;
	word-wrap: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	cursor: pointer;
}
.mr-reel .mr-reel-author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0 0 12px;
}
.mr-reel .mr-reel-avatar {
	flex: 0 0 40px;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: #333 center / cover no-repeat;
	display: block;
}
.mr-reel .mr-reel-names {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 4px;
	min-width: 0;
	flex: 0 1 auto;
	line-height: 19px;
}
.mr-reel .mr-reel-name {
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.mr-reel .mr-reel-verified { color: #1d9bf0; display: inline-flex; }
.mr-reel .mr-reel-handle {
	flex-basis: 100%;
	color: #b0b5ba;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
html body .mr-reel .mr-x-follow.mr-reel-follow {
	display: inline-flex !important;
	align-items: center;
	flex: 0 0 auto;
	height: 32px;
	margin: 0 0 0 4px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: #eff3f4;
	color: #0f1419;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
html body .mr-reel .mr-x-follow.mr-reel-follow.mr-x-following {
	background: transparent;
	color: #eff3f4;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

/* pigulki akcji */
html body .mr-reel .mr-reel-post.post {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
html body .mr-reel .mr-reel-post .post-actions.mr-reel-pills {
	display: flex !important;
	align-items: center;
	justify-content: flex-start !important;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 0 0 10px !important;
	padding: 0 !important;
	max-width: none !important;
	border: 0 !important;
}
html body .mr-reel .mr-reel-pills::-webkit-scrollbar { display: none; }
html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	height: 36px;
	min-width: 44px;
	margin: 0 !important;
	padding: 0 14px !important;
	border-radius: 999px !important;
	background: rgba(39, 44, 48, .72) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #eff3f4 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1 !important;
	white-space: nowrap;
	opacity: 1 !important;
}
html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill.x-hidden { display: none !important; }
html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill:active { background: rgba(70, 76, 82, .8) !important; }
html body .mr-reel .mr-reel-pills > .action-btn svg {
	width: 20px !important;
	height: 20px !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit;
}
html body .mr-reel .mr-reel-pills > .action-btn svg:not(.action-icon2) path { fill: currentColor !important; }
html body .mr-reel .mr-reel-pills > .action-btn::before { display: none !important; }
html body .mr-reel .mr-reel-pills .reaction-btn { display: inline-flex !important; align-items: center; gap: 0; }
html body .mr-reel .mr-reel-pills .reaction-btn-icon { display: inline-flex; margin: 0 !important; }
html body .mr-reel .mr-reel-pills .reaction-btn-name { display: none !important; }
html body .mr-reel .mr-reel-pills .pointer99 { display: inline; margin: 0 !important; }
html body .mr-reel .mr-reel-pills > .reactions-wrapper.js_unreact-post { color: #f91880 !important; }
html body .mr-reel .mr-reel-pills > .js_mr-save.mr-saved { color: #1d9bf0 !important; }
html body .mr-reel .mr-reel-pills .mr-cnt-zero { display: none !important; }
@media (hover: hover) {
	html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill:hover { background: rgba(60, 66, 72, .82) !important; }
	html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill:hover svg { background: none !important; box-shadow: none !important; }
}

/* pasek postepu (wiekszy obszar dotyku niz widoczna kreska) */
.mr-reel .mr-reel-prog {
	position: relative;
	height: 14px;
	margin: 0 16px -5px;
	cursor: pointer;
	touch-action: none;
}
.mr-reel .mr-reel-prog::before,
.mr-reel .mr-reel-prog-buf,
.mr-reel .mr-reel-prog-bar {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: 6px;
	height: 2px;
	border-radius: 2px;
	transform-origin: 0 50%;
}
.mr-reel .mr-reel-prog::before { background: rgba(255, 255, 255, .25); }
.mr-reel .mr-reel-prog-buf { background: rgba(255, 255, 255, .35); transform: scaleX(0); }
.mr-reel .mr-reel-prog-bar { background: #1d9bf0; transform: scaleX(0); }
.mr-reel.mr-reel-seeking .mr-reel-prog::before,
.mr-reel.mr-reel-seeking .mr-reel-prog-buf,
.mr-reel.mr-reel-seeking .mr-reel-prog-bar { height: 4px; top: 5px; }

.mr-reel .mr-reel-ctl {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 0 8px calc(4px + env(safe-area-inset-bottom, 0px));
	box-sizing: content-box;
}
.mr-reel .mr-reel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.mr-reel .mr-reel-btn:active { background: rgba(255, 255, 255, .12); }
.mr-reel .mr-reel-time { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.mr-reel .mr-reel-ctl-gap { flex: 1 1 auto; }
.mr-reel .mr-reel-i-play,
.mr-reel.mr-reel-paused .mr-reel-i-pause,
.mr-reel .mr-reel-i-muted,
.mr-reel.mr-reel-muted .mr-reel-i-vol { display: none; }
.mr-reel.mr-reel-paused .mr-reel-i-play,
.mr-reel.mr-reel-muted .mr-reel-i-muted { display: block; }

/* komputer: podpis i pigulki nie rozjezdzaja sie na cala szerokosc */
@media (min-width: 992px) {
	.mr-reel .mr-reel-info { max-width: 640px; }
	.reels-wrapper .mr-reel .reel-next-btn,
	.reels-wrapper .mr-reel .reel-prev-btn { z-index: 4; }
}

/* Rolki: pigulki rozciagniete na cala szerokosc (jak pasek akcji na X),
   wyrazne biale ikonki - wczesniej ikonki bral szary kolor z paska wpisu */
html body .mr-reel .mr-reel-post .post-actions.mr-reel-pills {
	gap: 8px;
	overflow: visible;
}
html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill {
	flex: 1 1 0 !important;
	min-width: 0;
	height: 40px;
	padding: 0 6px !important;
	gap: 6px;
	background: rgba(255, 255, 255, .1) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
}
html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill:active { background: rgba(255, 255, 255, .2) !important; }
@media (hover: hover) {
	html body .mr-reel .mr-reel-pills > .action-btn.mr-reel-pill:hover { background: rgba(255, 255, 255, .16) !important; }
}
html body .mr-reel .mr-reel-pills > .action-btn svg:not(.action-icon2) {
	width: 21px !important;
	height: 21px !important;
	color: #fff !important;
	fill: #fff !important;
	opacity: 1 !important;
	filter: none !important;
}
html body .mr-reel .mr-reel-pills > .action-btn svg:not(.action-icon2) path {
	fill: #fff !important;
	stroke: none !important;
	opacity: 1 !important;
}
html body .mr-reel .mr-reel-pills > .action-btn svg.action-icon2 { width: 21px !important; height: 21px !important; }
html body .mr-reel .mr-reel-pills > .reactions-wrapper.js_unreact-post,
html body .mr-reel .mr-reel-pills > .reactions-wrapper.js_unreact-post .pointer99 { color: #f91880 !important; }
html body .mr-reel .mr-reel-pills > .js_mr-save.mr-saved svg path { fill: #1d9bf0 !important; }
html body .mr-reel .mr-reel-pills .pointer99,
html body .mr-reel .mr-reel-pills .mr-reel-num { color: inherit !important; font-weight: 700; }
/* komputer: pasek pod filmem na szerokosc kolumny z filmem */
@media (min-width: 992px) {
	.mr-reel .mr-reel-info { max-width: none; }
}

/* Rolki na telefonie: strona nieruchoma, przesuwa sie tylko rolka */
@media (max-width: 991.98px) {
	html.mr-reels-on,
	html.mr-reels-on body {
		overflow: hidden !important;
		overscroll-behavior: none !important;
		height: 100%;
	}
}

/* Rolki na komputerze: kolumna z rolka zawsze na wysokosc ekranu. Motyw
   daje jej tylko min-height, wiec "height: 100%" rolki bywal zerowy -
   po wejsciu ze strony glownej (bez przeladowania) zostawalo czarne tlo. */
@media (min-width: 521px) {
	html.mr-reels-on .x_content_row > .col-lg-8 {
		height: 100vh !important;
		height: 100dvh !important;
	}
	html.mr-reels-on .x_content_row > .col-lg-8 > .reels-wrapper {
		height: 100% !important;
		min-height: 0;
	}
}
@media (min-width: 992px) {
	/* prawa kolumna (takze ta zostawiona ze strony glownej przy przejsciu
	   bez przeladowania) przewija sie sama - rolka stoi */
	html.mr-reels-on .x_content_row > #mrSideMain {
		height: 100vh !important;
		overflow-y: auto !important;
		scrollbar-width: none;
	}
	html.mr-reels-on .x_content_row > #mrSideMain::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   Rolki jak TikTok: zwykle przewijanie z zatrzaskiwaniem na kazdej rolce.
   Wszystkie rolki stoja jedna pod druga (bez chowania / pokazywania, czyli
   bez czarnego ekranu miedzy nimi); nastepna ma gotowa pierwsza klatke.
   ========================================================================== */
.reels-wrapper.mr-snap {
	overflow-x: hidden !important;
	overflow-y: scroll !important;
	scroll-snap-type: y mandatory;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	touch-action: pan-y;
}
.reels-wrapper.mr-snap::-webkit-scrollbar { display: none; }
.reels-wrapper.mr-snap > .reel-container.mr-reel,
.reels-wrapper.mr-snap > .reel-container.mr-reel.hidden {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	transition: none !important;
	animation: none !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.reels-wrapper.mr-snap > .reels-loader { display: none !important; }

/* telefon: na rolkach bez dolnego paska (Home, Szukaj, Powiadomienia...) -
   rolka na caly ekran */
@media (max-width: 520px) {
	html.mr-reels-on .x-sidebar-fixed { display: none !important; }
	html.mr-reels-on .main-wrapper { padding-bottom: 0 !important; }
	html.mr-reels-on .x_content_row > .col-lg-8 {
		height: 100vh !important;
		height: 100dvh !important;
		min-height: 0 !important;
	}
}

/* Rolki: "Obserwuj" przy prawej krawedzi (rowno z pigulkami),
   wiecej miejsca pod paskiem postepu i sterowaniem */
.mr-reel .mr-reel-names { flex: 1 1 auto; }
html body .mr-reel .mr-x-follow.mr-reel-follow { margin: 0 0 0 auto; }
.mr-reel .mr-reel-prog { margin-bottom: 2px; }
.mr-reel .mr-reel-ctl {
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

/* Rolki: najpierw autor, pod nim tresc wpisu (jak na X) */
.mr-reel .mr-reel-info {
	display: flex;
	flex-direction: column;
}
.mr-reel .mr-reel-author { order: 1; margin: 0 0 8px; }
.mr-reel .mr-reel-caption { order: 2; margin: 0 0 12px; white-space: normal; }
.mr-reel .mr-reel-post { order: 3; }
.mr-reel .mr-reel-caption a { color: #1d9bf0 !important; text-decoration: none !important; }
.mr-reel .mr-reel-caption strong,
.mr-reel .mr-reel-caption b { font-weight: 700; color: #fff; }
.mr-reel .mr-reel-caption br + br { display: none; }

/* w trakcie przejscia z feedu do rolek (telefon) dolny pasek juz schowany */
@media (max-width: 520px) {
	html.mr-reel-intro-on .x-sidebar-fixed { display: none !important; }
}

/* Telefon: lista rolek przypieta do calego ekranu - dokladnie tak jak
   nakladka przejscia z feedu. Wczesniej rolka zaczynala sie pod resztka
   naglowka i byla wyzsza niz ekran, wiec po przejsciu wszystko "opadalo". */
@media (max-width: 520px) {
	html.mr-reels-on .reels-wrapper {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		height: 100% !important;
		z-index: 1035;
	}
}

/* Rolki na komputerze: pasek przewijania strony zostaje jak na glownej.
   Bez niego strona po przejsciu z feedu byla o szerokosc paska szersza
   i caly uklad przeskakiwal o kilka pikseli ("przesuniecie po sekundzie"). */
@media (min-width: 992px) {
	html.mr-reels-on,
	html.mr-reel-intro-on {
		overflow-y: scroll;
	}
}

/* Rolki na komputerze: bez czarnego paska na dole. Wiersz z kolumnami
   zaczyna sie kilka pikseli nad ekranem (ujemny margines przyklejonej
   wyszukiwarki), wiec kolumny na "100vh" konczyly sie nad dolna krawedzia.
   Sa dluzsze dokladnie o to przesuniecie (mr-feed-x.js ustawia zmienna). */
@media (min-width: 521px) {
	html.mr-reels-on .x_content_row > .col-lg-8 {
		height: calc(100vh + var(--mr-reels-lift, 0px)) !important;
		height: calc(100dvh + var(--mr-reels-lift, 0px)) !important;
	}
}
@media (min-width: 992px) {
	html.mr-reels-on .x_content_row > #mrSideMain {
		height: calc(100vh + var(--mr-reels-lift, 0px)) !important;
	}
}

/* Menu "…" przy wpisie i komentarzu: przewija sie jak dotad, ale bez
   widocznego (czarnego) paska przewijania - jak na X */
html body .action-dropdown-menu.dropdown-menu,
html body .comment-btn .dropdown-menu,
html body .action-dropdown-menu.dropdown-menu *,
html body .comment-btn .dropdown-menu * {
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}
html body .action-dropdown-menu.dropdown-menu::-webkit-scrollbar,
html body .comment-btn .dropdown-menu::-webkit-scrollbar,
html body .action-dropdown-menu.dropdown-menu *::-webkit-scrollbar,
html body .comment-btn .dropdown-menu *::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

/* ==========================================================================
   Menu "…" przy wpisie i komentarzu na KOMPUTERZE - 1:1 jak na x.com:
   czarne tlo z delikatna jasna poswiata, ikonka z LEWEJ, pogrubiony tekst,
   bez opisow pod spodem i bez linii miedzy wierszami.
   (Telefon zostaje bez zmian - tam jest wersja jak w aplikacji.)
   ========================================================================== */
@media (min-width: 768px) {
	html body .action-dropdown-menu.dropdown-menu,
	html body .comment-btn .dropdown-menu {
		--mrm-bg: #181818;
		--mrm-text: #e7e9ea;
		--mrm-icon: #e7e9ea;
		--mrm-hover: rgba(231, 233, 234, .05);
		min-width: 300px !important;
		max-width: 384px !important;
		padding: 4px 0 !important;
		border: 0 !important;
		border-radius: 12px !important;
		background: var(--mrm-bg) !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		/* jak na X: szare tlo, bez jasnej poswiaty - tylko ledwo widoczna
		   krawedz i ciemny cien */
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 28px rgba(0, 0, 0, .6) !important;
	}
	html[data-mr-theme="light"] body .action-dropdown-menu.dropdown-menu,
	html[data-mr-theme="light"] body .comment-btn .dropdown-menu {
		--mrm-bg: #fff;
		--mrm-text: #0f1419;
		--mrm-icon: #0f1419;
		--mrm-hover: rgba(15, 20, 25, .03);
		box-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px !important;
	}
	html body .action-dropdown-menu.dropdown-menu .dropdown-item,
	html body .comment-btn .dropdown-menu .dropdown-item {
		flex-direction: row !important;
		justify-content: flex-start !important;
		gap: 12px !important;
		min-height: 44px !important;
		padding: 12px 16px !important;
		border: 0 !important;
		font-size: 15px !important;
		font-weight: 700 !important;
		line-height: 20px !important;
		letter-spacing: 0 !important;
	}
	html body .action-dropdown-menu.dropdown-menu .dropdown-item + .dropdown-item,
	html body .comment-btn .dropdown-menu .dropdown-item + .dropdown-item {
		border-top: 0 !important;
	}
	html body .action-dropdown-menu.dropdown-menu .dropdown-item > svg,
	html body .action-dropdown-menu.dropdown-menu .dropdown-item > i,
	html body .comment-btn .dropdown-menu .dropdown-item > svg,
	html body .comment-btn .dropdown-menu .dropdown-item > i {
		width: 18.75px !important;
		height: 18.75px !important;
		font-size: 17px !important;
	}
	/* bez opisow ("Posty tego uzytkownika nie beda sie wyswietlac" itd.) */
	html body .action-dropdown-menu.dropdown-menu .dropdown-item .action-desc,
	html body .comment-btn .dropdown-menu .dropdown-item .action-desc {
		display: none !important;
	}
	/* bez linii i przerw miedzy grupami */
	html body .action-dropdown-menu.dropdown-menu .dropdown-divider,
	html body .comment-btn .dropdown-menu .dropdown-divider {
		display: none !important;
	}
}

/* ==========================================================================
   Szare okienka jak menu "…" (ciemny motyw)
   1. menu uzytkownika: PC szare, telefon polprzezroczyste i rozmyte
   2. wyszukiwarka (wyniki / ostatnio wyszukiwane): szara, szare przyciski
   3. spolecznosci: odstep nad wyszukiwarka
   4. panel "Dostosuj strone": szary
   ========================================================================== */
html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu,
html:not([data-mr-theme="light"]) body .dropdown-search.dropdown-menu {
	background: #181818 !important;
	border: 0 !important;
	border-radius: 16px !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 28px rgba(0, 0, 0, .6) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
/* menu uzytkownika przewija sie (dluga lista "Zarzadzaj..."), bez widocznego
   paska; wczesniej overflow:hidden z tej sekcji blokowal przewijanie */
html body .x_mobi_user_menu.dropdown-menu {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}
html body .x_mobi_user_menu.dropdown-menu::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}
@media (min-width: 768px) {
	html body .x_mobi_user_menu.dropdown-menu {
		max-height: calc(100vh - 110px) !important;
		max-height: calc(100dvh - 110px) !important;
	}
}
html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu .dropdown-item:hover,
html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu .dropdown-item:focus,
html:not([data-mr-theme="light"]) body .dropdown-search .dropdown-widget-body a:hover,
html:not([data-mr-theme="light"]) body .dropdown-search .feeds-item:hover {
	background: rgba(231, 233, 234, .05) !important;
}
html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu .dropdown-divider,
html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu > .dropdown-item:first-child {
	border-color: rgba(255, 255, 255, .08) !important;
}
@media (max-width: 767.98px) {
	html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu {
		background: rgba(28, 28, 30, .86) !important;
		-webkit-backdrop-filter: blur(30px) !important;
		backdrop-filter: blur(30px) !important;
		box-shadow: 0 10px 38px rgba(0, 0, 0, .5) !important;
		border-radius: 13px !important;
	}
	html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu .dropdown-item:hover,
	html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu .dropdown-item:active {
		background: rgba(255, 255, 255, .08) !important;
	}
	html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu .dropdown-divider,
	html:not([data-mr-theme="light"]) body .x_mobi_user_menu.dropdown-menu > .dropdown-item:first-child {
		border-color: rgba(255, 255, 255, .13) !important;
	}
}
/* wyszukiwarka: naglowek, stopka i pozycje listy (.side_item_list dawal
   czarne #020202) bez osobnego tla, przyciski szare */
html:not([data-mr-theme="light"]) body .dropdown-search .dropdown-widget-header,
html:not([data-mr-theme="light"]) body .dropdown-search .dropdown-widget-body,
html:not([data-mr-theme="light"]) body .dropdown-search .dropdown-widget-footer,
html:not([data-mr-theme="light"]) body .dropdown-search .feeds-item {
	background: transparent !important;
	border-color: rgba(255, 255, 255, .08) !important;
}
html:not([data-mr-theme="light"]) body .dropdown-search .dropdown-widget-footer:hover {
	background: rgba(231, 233, 234, .05) !important;
}
html:not([data-mr-theme="light"]) body .dropdown-search .btn:not(.btn-link) {
	background: #2f3336 !important;
	border-color: #2f3336 !important;
	color: #e7e9ea !important;
	box-shadow: none !important;
}
html:not([data-mr-theme="light"]) body .dropdown-search .btn:not(.btn-link):hover {
	background: #3a3f43 !important;
	border-color: #3a3f43 !important;
}

/* spolecznosci: odstep nad wyszukiwarka */
html body .mrc-search {
	padding-top: 20px !important;
}

/* panel "Dostosuj strone" */
html:not([data-mr-theme="light"]) body .mr-set-overlay {
	background: rgba(0, 0, 0, .6) !important;
}
html:not([data-mr-theme="light"]) body .mr-set {
	background: #181818 !important;
	border: 0 !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 70px rgba(0, 0, 0, .65) !important;
}
html:not([data-mr-theme="light"]) body .mr-set-foot {
	background: #181818 !important;
	border-top-color: #2a2a2a !important;
}
html:not([data-mr-theme="light"]) body .mr-set-tabs-main {
	border-bottom-color: #2a2a2a !important;
}
html:not([data-mr-theme="light"]) body .mr-set-tabs:not(.mr-set-tabs-main) {
	background: #202020 !important;
	border-color: #2e2e2e !important;
}
html:not([data-mr-theme="light"]) body .mr-set-close {
	background: #262626 !important;
	border-color: #2e2e2e !important;
}
html:not([data-mr-theme="light"]) body .mr-set-close:hover {
	background: #303030 !important;
}
html:not([data-mr-theme="light"]) body .mr-set-row,
html:not([data-mr-theme="light"]) body .mr-set-feed-config,
html:not([data-mr-theme="light"]) body .mr-set-color-field,
html:not([data-mr-theme="light"]) body .mr-default-feed-options label {
	background: #202020 !important;
	border-color: #2e2e2e !important;
}
html:not([data-mr-theme="light"]) body .mr-set-row:hover {
	background: #262626 !important;
}
html:not([data-mr-theme="light"]) body .mr-set-general-list {
	border-color: #2e2e2e !important;
	background: #202020 !important;
}
html:not([data-mr-theme="light"]) body .mr-set-general-list .mr-set-row {
	background: transparent !important;
}
html:not([data-mr-theme="light"]) body .mr-set-general-list .mr-set-row + .mr-set-row {
	border-top-color: #2e2e2e !important;
}
html:not([data-mr-theme="light"]) body .mr-set-feed-mode select,
html:not([data-mr-theme="light"]) body .mr-set-weight-select,
html:not([data-mr-theme="light"]) body .mr-set-move button {
	background: #2a2a2a !important;
	border-color: #3a3a3a !important;
}
html:not([data-mr-theme="light"]) body .mr-set-link:hover {
	background: #262626 !important;
}
/* zaznaczony feed - jak dotad niebieski (osobna regula: starsze przegladarki
   bez :has() ja pomijaja, reszta zostaje) */
html:not([data-mr-theme="light"]) body .mr-default-feed-options label:has(input:checked) {
	background: rgba(13, 110, 253, .12) !important;
	border-color: #0d6efd !important;
}

/* ==========================================================================
   Menu uzytkownika na telefonie (awatar w lewym gornym rogu) jak menu
   "Wiecej" i menu "…" przy wpisie: tekst z lewej, ikonka z prawej, cienkie
   linie miedzy pozycjami, grube przerwy zamiast separatorow, jeden kolor
   tekstu (bez kolorow wpisanych w szablon). Naglowek z awatarem bez zmian.
   ========================================================================== */
@media (max-width: 767.98px) {
	html body .x_mobi_user_menu.dropdown-menu {
		--mrm-text: #f7f9f9;
		--mrm-icon: rgba(247, 249, 249, .88);
		--mrm-hover: rgba(255, 255, 255, .08);
		--mrm-line: rgba(255, 255, 255, .13);
		padding: 0 !important;
	}
	html[data-mr-theme="light"] body .x_mobi_user_menu.dropdown-menu {
		--mrm-text: #0f1419;
		--mrm-icon: rgba(15, 20, 25, .8);
		--mrm-hover: rgba(15, 20, 25, .06);
		--mrm-line: rgba(15, 20, 25, .1);
		background: rgba(255, 255, 255, .78) !important;
		-webkit-backdrop-filter: blur(30px) !important;
		backdrop-filter: blur(30px) !important;
		box-shadow: 0 18px 50px rgba(15, 20, 25, .18), 0 2px 8px rgba(15, 20, 25, .08) !important;
		border-radius: 13px !important;
	}
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child) {
		display: flex !important;
		flex-direction: row-reverse !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 12px !important;
		min-height: 46px !important;
		margin: 0 !important;
		padding: 11px 16px 11px 20px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		color: var(--mrm-text) !important;
		font-size: 16px !important;
		font-weight: 400 !important;
		line-height: 22px !important;
		letter-spacing: 0 !important;
		text-align: left !important;
		white-space: nowrap;
	}
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item + .dropdown-item:not(:first-child) {
		box-shadow: inset 0 .5px 0 var(--mrm-line) !important;
	}
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child):hover,
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child):active,
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child):focus {
		background: var(--mrm-hover) !important;
		color: var(--mrm-text) !important;
	}
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child) > span,
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child) > span[style] {
		color: var(--mrm-text) !important;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child) > i,
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:not(:first-child) > svg {
		flex: 0 0 auto !important;
		width: 20px !important;
		height: 20px !important;
		margin: 0 !important;
		font-size: 18px !important;
		line-height: 20px !important;
		text-align: center;
		color: var(--mrm-icon) !important;
	}
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-divider {
		margin: 0 !important;
		border-top: 6px solid rgba(0, 0, 0, .25) !important;
		opacity: 1 !important;
	}
	html[data-mr-theme="light"] body .x_mobi_user_menu.dropdown-menu > .dropdown-divider {
		border-top-color: rgba(15, 20, 25, .06) !important;
	}
	/* dwa separatory pod rzad (szablon admina) - jedna przerwa */
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-divider + .dropdown-divider {
		display: none !important;
	}
	/* jak menu "…" przy wpisie: bez czarnej zaslony pod spodem - przez
	   polprzezroczyste, rozmyte menu widac strone (zaslona .75 robila z menu
	   pelny szary prostokat). Zaslona zostaje tylko do zamykania stuknieciem. */
	html body.user_menu_open .x_user_menu_backdrop {
		background: transparent !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
	}
	/* naglowek z awatarem: linia pod spodem jak przy pozycjach */
	html body .x_mobi_user_menu.dropdown-menu > .dropdown-item:first-child {
		border-radius: 0 !important;
		box-shadow: inset 0 -.5px 0 var(--mrm-line) !important;
	}
}

/* "Komentowanie tego wpisu zostalo wylaczone" - minimalnie wiekszy i z
   odstepem od paska akcji (wczesniej 12 px tuz pod ikonami) */
html body .mr-comments-off {
	margin: 14px 16px 6px !important;
	font-size: 14px !important;
	line-height: 18px !important;
}

/* ==========================================================================
   Profil na telefonie: jeden naglowek jak na X (strzalka, nazwa, liczba
   wpisow). Gorny pasek z logo, awatarem i lupa jest na profilu schowany,
   bo dublowal sie z naglowkiem profilu (.mr-xp-bar, sticky top:0).
   ========================================================================== */
@media (max-width: 767.98px) {
	body:has(.mr-xp-main) .search-wrapper-prnt,
	body:has(.mr-xp-main) .logo-wrapper,
	body:has(.mr-xp-main) .x_user_mobi_menu {
		display: none !important;
	}
	body:has(.mr-xp-main) .main-wrapper {
		padding-top: 0 !important;
	}
}

/* ==========================================================================
   Zakladki / Zaplanowane / Wspomnienia: jak na X tylko naglowek i lista.
   Bez zakladek feedu, ostrzezenia i pola "Co sie dzieje?" (zostaja w DOM
   dla miekkiej nawigacji, wracaja po przejsciu na feed).
   ========================================================================== */
:is(body:has(#mrFeedView[data-view="saved"]),
    body:has(#mrFeedView[data-view="scheduled"]),
    body:has(#mrFeedView[data-view="memories"])) :is(#mrShellTop, #mrPublisherHome, .mr-nav-stack) {
	display: none !important;
}

/* ==========================================================================
   Licznik znakow w okienku pisania (js/mr-char-ring.js) - kolko jak na X
   ========================================================================== */
.mr-char-ring {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-right: 10px;
	vertical-align: middle;
	flex: 0 0 auto;
}
.mr-char-ring[hidden] { display: none !important; }
.mr-char-ring svg { display: block; }
.mr-char-ring .mr-cr-bg { stroke: #2f3336; }
.mr-char-ring .mr-cr-fg { stroke: #1d9bf0; transition: stroke-dashoffset .12s linear, stroke .12s; }
.mr-char-ring.is-warn .mr-cr-fg { stroke: #ffd400; }
.mr-char-ring.is-over .mr-cr-fg { stroke: #f4212e; }
.mr-char-ring .mr-cr-num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 500;
	color: #71767b;
}
.mr-char-ring.is-over .mr-cr-num { color: #f4212e; }
.mr-char-ring.is-warn svg, .mr-char-ring.is-over svg { transform: scale(1.25); }
html[data-mr-theme="light"] .mr-char-ring .mr-cr-bg { stroke: #cfd9de; }
html[data-mr-theme="light"] .mr-char-ring .mr-cr-num { color: #536471; }

/* ==========================================================================
   Szukaj w wiadomosciach (templates/_mr_msg_search.tpl, js/mr-msg-search.js)
   ========================================================================== */
.mr-msg-search { padding: 4px 4px 8px; }
.mr-msg-modal .mr-msg-search { padding: 8px 16px; }
.mr-msg-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #2f3336;
	border-radius: 9999px;
	background: transparent;
	color: #71767b;
	cursor: text;
}
.mr-msg-search-box:focus-within { border-color: #1d9bf0; box-shadow: 0 0 0 1px #1d9bf0; color: #1d9bf0; }
.mr-msg-search-box svg { flex: 0 0 auto; }
.mr-msg-search-box input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #e7e9ea;
	font-size: 15px;
	padding: 0;
}
.mr-msg-search-box input::placeholder { color: #71767b; }
.mr-msg-search-box input::-webkit-search-cancel-button { display: none; }
.mr-msg-search-clear {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1d9bf0;
	color: #000;
	flex: 0 0 auto;
}
.mr-msg-search-clear[hidden] { display: none !important; }
.mr-msg-search-results[hidden] { display: none !important; }
.x_side_msg_bar .mr-msg-search-results { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); overflow-y: auto; }
.mr-msg-search-status { padding: 0 16px; color: #71767b; font-size: 15px; }
.mr-msg-search-status:not(:empty) { padding: 16px; }
.mr-msg-search-list { margin: 0; padding: 0; list-style: none; }
html[data-mr-theme="light"] .mr-msg-search-box { border-color: #cfd9de; color: #536471; }
html[data-mr-theme="light"] .mr-msg-search-box input { color: #0f1419; }
html[data-mr-theme="light"] .mr-msg-search-clear { color: #fff; }
.js_live-messages-alt[hidden], .mr-msg-list-wrap[hidden] { display: none !important; }

/* pasek czatu: etykieta "ostatnio aktywny" nigdy nie przesuwa awatara (tez dla wpisow
   dodanych na zywo przez chat.js) */
.chat-avatar-wrapper { position: relative; }
.chat-avatar-wrapper .last-seen { position: absolute !important; left: 0; right: 0; pointer-events: none; }
.chat-avatar-wrapper .chat-avatar img { border-radius: 50%; }

/* ── "Podaj dalej" jak na X: szara linijka nad oryginalnym wpisem ───────── */
.mr-repost-label {
	display: flex;
	align-items: center;
	gap: 0;
	margin: -4px 0 4px;
	min-height: 16px;
	color: var(--x-dim, #71767b);
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
}
.mr-repost-label svg {
	flex: 0 0 auto;
	margin-left: calc(var(--fx-av, 40px) - 16px);
	margin-right: var(--fx-gap, 12px);
}
.mr-repost-label a { color: inherit !important; }
.mr-repost-label a:hover { text-decoration: underline; }
