.live-feed-section {
	--live-feed-ink: #1d2630;
	--live-feed-muted: #6d7884;
	--live-feed-border: #e8edf2;
}

.live-feed-card {
	position: relative;
	border: 1px solid var(--live-feed-border);
	border-radius: 20px;
	background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
	box-shadow: 0 18px 42px rgba(27, 47, 67, .08);
	overflow: hidden;
}

.live-feed-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem 1rem;
	border-bottom: 1px solid var(--live-feed-border);
}

.live-feed-kicker {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: #bd2548;
	font-size: .94rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.live-feed-live-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ef1747;
	box-shadow: 0 0 0 7px rgba(239, 23, 71, .18), 0 0 12px rgba(239, 23, 71, .55);
	animation: live-feed-pulse 1.8s ease-in-out infinite;
}

.live-feed-title {
	margin: .25rem 0 .15rem;
	color: var(--live-feed-ink);
	font-size: 1.35rem;
	font-weight: 800;
}

.live-feed-subtitle {
	margin: 0;
	color: var(--live-feed-muted);
	font-size: .9rem;
}

.live-feed-status {
	flex: 0 0 auto;
	padding: .35rem .6rem;
	border-radius: 999px;
	background: #edf8f2;
	color: #28774c;
	font-size: .72rem;
	font-weight: 700;
}

.live-feed-list {
	height: min(560px, 65vh);
	min-height: 320px;
	overflow-y: auto;
	padding: .55rem .75rem .75rem;
	scroll-behavior: smooth;
}

.live-feed-item {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	position: relative;
	margin: .25rem 0;
	padding: .75rem .7rem;
	border: 1px solid transparent;
	border-radius: 14px;
	background: rgba(255, 255, 255, .72);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.live-feed-item:hover {
	border-color: var(--live-feed-border);
	background: #fff;
	transform: translateY(-1px);
}

.live-feed-item-private {
	background: #fff8ec;
	border-color: #fae3bb;
}

.live-feed-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	font-size: .9rem;
}

.live-feed-item-image {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: cover;
	background: #eef2f5;
}

.live-feed-avatar-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #8793a0;
	font-size: .9rem;
}

.live-feed-item-content {
	min-width: 0;
	flex: 1 1 auto;
}

.live-feed-item-topline {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
}

.live-feed-item-topline strong {
	color: var(--live-feed-ink);
	font-size: .88rem;
}

.live-feed-item-topline time {
	flex: 0 0 auto;
	color: var(--live-feed-muted);
	font-size: .72rem;
	white-space: nowrap;
}

.live-feed-item-content p {
	margin: .18rem 0 .2rem;
	color: #4e5c68;
	font-size: .84rem;
	line-height: 1.45;
}

.live-feed-actor,
.live-feed-open {
	font-size: .76rem;
	font-weight: 700;
}

.live-feed-actor {
	color: #586b7a;
}

.live-feed-open {
	margin-left: .65rem;
	color: #b42361;
	text-decoration: none;
}

.live-feed-open:hover {
	color: #8e174b;
	text-decoration: underline;
}

.live-feed-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 180px;
	color: var(--live-feed-muted);
	font-size: .9rem;
}

.live-feed-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding: .9rem 1.25rem;
	border: 1px solid #dce5ec;
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 8px 20px rgba(27, 47, 67, .16);
	color: #344756;
	font-size: 1.05rem;
	font-weight: 700;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, calc(-50% - 6px));
	visibility: hidden;
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

/* The explicit state is required because some browser/vendor styles force [hidden] elements to remain invisible. */
.live-feed-loader.is-visible {
	display: flex !important;
	opacity: 1;
	transform: translate(-50%, -50%);
	visibility: visible;
}

.live-feed-loader img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.live-feed-new-events {
	position: absolute;
	top: 5.6rem;
	right: 1.25rem;
	z-index: 2;
	border: 0;
	border-radius: 999px;
	padding: .45rem .75rem;
	background: #b42361;
	box-shadow: 0 8px 18px rgba(180, 35, 97, .22);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
}

.live-feed-offer .live-feed-item-icon { background: #fff0e8; color: #c85a25; }
.live-feed-question .live-feed-item-icon { background: #eef1ff; color: #4e63c5; }
.live-feed-answer .live-feed-item-icon { background: #eaf8f4; color: #25886e; }
.live-feed-project .live-feed-item-icon { background: #f4edff; color: #8257c8; }
.live-feed-profile .live-feed-item-icon { background: #eaf6ff; color: #2876ac; }
.live-feed-ad .live-feed-item-icon { background: #fff6df; color: #a46a0c; }
.live-feed-blog .live-feed-item-icon { background: #ffeaf3; color: #b42361; }
.live-feed-private .live-feed-item-icon { background: #fff0ca; color: #9a6500; }
.live-feed-default .live-feed-item-icon { background: #edf1f4; color: #607080; }

@keyframes live-feed-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .55; transform: scale(.82); }
}

@media (max-width: 575.98px) {
	.live-feed-header { padding: 1rem; }
	.live-feed-title { font-size: 1.15rem; }
	.live-feed-subtitle { font-size: .82rem; }
	.live-feed-status { padding: .3rem .45rem; font-size: .62rem; line-height: 1.25; max-width: 145px; text-align: right; }
	.live-feed-loader { padding: .75rem 1rem; font-size: .9rem; }
	.live-feed-list { height: 65vh; min-height: 300px; padding-left: .4rem; padding-right: .4rem; }
	.live-feed-item { gap: .5rem; padding: .65rem .5rem; }
	.live-feed-item-icon { flex-basis: 30px; width: 30px; height: 30px; }
	.live-feed-item-image { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
	.live-feed-item-topline { display: block; }
	.live-feed-item-topline time { display: block; margin-top: .12rem; }
	.live-feed-open { display: block; margin: .25rem 0 0; }
	.live-feed-new-events { top: 5.1rem; right: .8rem; }
}
