/* صوت المحلة لايف */

.sotel-live,
.sotel-live-card,
.sotel-online {
	--lv-red: #a1202e;
	--lv-line: #e6e6e6;
	--lv-muted: #7a7f88;
	--lv-bg: #fff;
}

.sotel-live__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.sotel-live-card {
	background: var(--lv-bg);
	border: 1px solid var(--lv-line);
	border-top: 3px solid var(--lv-red);
	padding: 14px 16px 12px;
	font-size: 14px;
	color: #222;
}
.sotel-live-card__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.4;
	color: #111;
}
.sotel-live-card__title em {
	font-style: normal;
	font-size: 12px;
	font-weight: 400;
	color: var(--lv-muted);
}
.sotel-live-card__note {
	margin: 10px 0 0;
	font-size: 11px;
	line-height: 1.6;
	color: var(--lv-muted);
}

/* Rates */
.sotel-rates table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.sotel-rates th,
.sotel-rates td {
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	text-align: start;
	background: none;
}
.sotel-rates th {
	font-weight: 400;
}
.sotel-rates td {
	text-align: end;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.sotel-rates tr.is-gold td {
	color: #9a6b00;
}

/* Prayer */
.sotel-prayer__date {
	margin: -6px 0 10px;
	font-size: 12px;
	color: var(--lv-muted);
}
.sotel-prayer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.sotel-prayer li {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 4px;
	background: #f6f6f6;
	border-radius: 4px;
	margin: 0;
}
.sotel-prayer li span {
	font-size: 12px;
	color: var(--lv-muted);
}
.sotel-prayer li b {
	font-size: 15px;
}
.sotel-prayer li.is-next {
	background: var(--lv-red);
	color: #fff;
}
.sotel-prayer li.is-next span {
	color: rgba(255, 255, 255, .85);
}
.sotel-prayer__next {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--lv-red);
}

/* Weather */
.sotel-weather__now {
	display: flex;
	align-items: center;
	gap: 12px;
}
.sotel-weather__icon {
	font-size: 40px;
	line-height: 1;
}
.sotel-weather__temp {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}
.sotel-weather__desc {
	display: flex;
	flex-direction: column;
	font-weight: 700;
}
.sotel-weather__desc small {
	font-weight: 400;
	font-size: 12px;
	color: var(--lv-muted);
}
.sotel-weather__days {
	list-style: none;
	margin: 14px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #f0f0f0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	text-align: center;
}
.sotel-weather__days li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
	margin: 0;
}
.sotel-weather__days b {
	font-size: 13px;
}

/* Online now */
.sotel-online {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 6px 14px;
	border-radius: 20px;
	background: #f3f3f3;
	font-size: 13px;
}
.sotel-online[hidden] {
	display: none;
}
.sotel-online b {
	color: var(--lv-red);
	font-size: 15px;
}
.sotel-online__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1fa64a;
	box-shadow: 0 0 0 0 rgba(31, 166, 74, .6);
	animation: sotel-pulse 1.8s infinite;
}
@keyframes sotel-pulse {
	70% { box-shadow: 0 0 0 8px rgba(31, 166, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 166, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.sotel-online__dot { animation: none; }
}

/* In the theme sidebar the widget wrapper already draws a box */
.widget .sotel-live-card {
	border: 0;
	border-top: 3px solid var(--lv-red);
	padding: 12px 0 0;
}

@media (max-width: 991px) {
	.sotel-live__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sotel-live__grid > .sotel-rates {
		grid-column: 1 / -1;
	}
}
@media (max-width: 600px) {
	.sotel-live__grid {
		grid-template-columns: 1fr;
	}
}

/* Compact homepage bar: one row on desktop, swipeable on phones */
.sotel-livebar {
	--lv-red: #a1202e;
	--lv-muted: #7a7f88;
	position: relative;
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-top: 3px solid var(--lv-red);
	font-size: 13px;
	color: #222;
}
.sotel-livebar__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 10px 16px;
	border-inline-start: 1px solid #eee;
	min-width: 0;
}
.sotel-livebar__item:first-child {
	border-inline-start: 0;
}
.sotel-livebar__label {
	font-size: 11px;
	color: var(--lv-muted);
	white-space: nowrap;
}
.sotel-livebar__weather {
	flex: 0 0 auto;
}
.sotel-livebar__value {
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}
.sotel-livebar__value small {
	font-size: 12px;
	font-weight: 400;
	color: var(--lv-muted);
}
.sotel-livebar__prayer,
.sotel-livebar__rates {
	flex: 1 1 0;
}
.sotel-livebar ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sotel-livebar li {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 3px 4px;
	border-radius: 3px;
	background: #f6f6f6;
	white-space: nowrap;
	line-height: 1.5;
}
.sotel-livebar li span {
	font-size: 11px;
	color: var(--lv-muted);
}
.sotel-livebar li b {
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.sotel-livebar__prayer li.is-next {
	background: var(--lv-red);
	color: #fff;
}
.sotel-livebar__prayer li.is-next span {
	color: rgba(255, 255, 255, .85);
}
.sotel-livebar .sotel-prayer__next {
	position: absolute;
	inset-block-start: -3px;
	inset-inline-end: 0;
	transform: translateY(-100%);
	margin: 0;
	padding: 2px 10px;
	background: var(--lv-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}
.sotel-livebar__online {
	position: absolute;
	inset-block-start: -3px;
	inset-inline-start: 0;
	transform: translateY(-100%);
	margin: 0;
	padding: 2px 10px;
	border-radius: 0;
	font-size: 11px;
}
.sotel-livebar__online b {
	font-size: 12px;
}

/* The homepage section around the bar: no big title, little padding */
#tiepost-section-live {
	padding-top: 34px !important;
	padding-bottom: 6px !important;
}
#tiepost-section-live .section-title,
#tiepost-section-live .mag-box-title {
	display: none;
}
#tiepost-section-live .container-wrapper,
#tiepost-section-live .mag-box-container {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

@media (max-width: 991px) {
	.sotel-livebar {
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}
	.sotel-livebar::-webkit-scrollbar {
		display: none;
	}
	.sotel-livebar__item {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
	.sotel-livebar li {
		flex: 0 0 auto;
		min-width: 52px;
	}
	/* The badges can't sit above a scrolling box; show them inline instead */
	.sotel-livebar .sotel-prayer__next,
	.sotel-livebar__online {
		position: static;
		transform: none;
		align-self: center;
		margin-inline: 12px;
		white-space: nowrap;
	}
	.sotel-livebar .sotel-prayer__next {
		margin: 4px 0 0;
		background: none;
		color: var(--lv-red);
		padding: 0;
	}
}

/* Sidebar version of the bar: stacked, compact */
.sotel-livebar--side {
	flex-direction: column;
	overflow: visible;
}
.sotel-livebar--side .sotel-livebar__item {
	border-inline-start: 0;
	border-top: 1px solid #eee;
	padding: 10px 12px;
}
.sotel-livebar--side .sotel-livebar__item:first-child {
	border-top: 0;
}
.sotel-livebar--side ul {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
}
.sotel-livebar--side .sotel-livebar__rates ul {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sotel-livebar--side li {
	min-width: 0;
	padding: 3px 2px;
}
.sotel-livebar--side li b {
	font-size: 13px;
}
.sotel-livebar--side .sotel-prayer__next,
.sotel-livebar--side .sotel-livebar__online {
	position: static;
	transform: none;
	background: none;
	padding: 0;
	margin: 6px 0 0;
	color: var(--lv-red);
	text-align: center;
	white-space: normal;
}
.sotel-livebar--side .sotel-livebar__online {
	order: -1;
	justify-content: center;
	margin: 0;
	padding: 8px 12px;
	background: #f6f6f6;
	color: #222;
	border-radius: 0;
}
.widget .sotel-livebar--side {
	border-inline: 0;
	border-bottom: 0;
}
