/* زر البث السريع: الزر والكارت ورابط القائمة. تُخصَّص بالمتغيرات من القالب. */
:root {
	--mls-q-live: #d7263d;
	--mls-q-live-hover: #b81f33;
	--mls-q-on-text: #fff;
	--mls-q-bg: #fff;
	--mls-q-text: #1f2430;
	--mls-q-muted: #6b7280;
	--mls-q-line: #dfe2e8;
	--mls-q-off-dot: #9a8fa3;
	--mls-q-accent: #3b6a99;
	--mls-q-soft: #eef1f6;
	--mls-q-media: #1c2230;
	--mls-q-radius: 18px;
}

.mls-qsr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }

/* الزر */
.mls-qbtn { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: 0 .8rem; border: 1px solid var(--mls-q-line); border-radius: 999px; background: var(--mls-q-bg); color: var(--mls-q-muted); font-size: .8125rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
a.mls-qbtn:hover { border-color: var(--mls-q-accent); color: var(--mls-q-accent); }
.mls-qbtn__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--mls-q-off-dot); }
.mls-qbtn.is-on { border-color: transparent; background: var(--mls-q-live); color: var(--mls-q-on-text); }
a.mls-qbtn.is-on:hover { border-color: transparent; background: var(--mls-q-live-hover); color: var(--mls-q-on-text); }
.mls-qbtn.is-on .mls-qbtn__dot { background: var(--mls-q-on-text); animation: mls-q-pulse 1.4s ease-out infinite; }
.mls-qbtn--solid { box-shadow: 0 8px 24px -10px rgba(20, 20, 40, .45); }
.mls-qbtn--dot { width: 34px; justify-content: center; padding: 0; }
@keyframes mls-q-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .85); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* الزر العائم: جهة الشاشة ثابتة كما اختارها صاحب الموقع، أيًّا كان اتجاه اللغة. */
.mls-qfloat { position: fixed; z-index: 99990; bottom: max(18px, env(safe-area-inset-bottom)); min-height: 42px; padding: 0 1rem; }
.mls-qfloat--right { right: 18px; }
.mls-qfloat--left { left: 18px; }

/* رابط القائمة */
.mls-qnav { display: inline-flex; align-items: center; gap: .45rem; }
.mls-qico { display: inline-grid; place-items: center; flex-shrink: 0; line-height: 0; }
.mls-qico svg { display: block; }
.mls-qnav.is-live .mls-qico { color: var(--mls-q-live); }
.mls-qnav.is-off .mls-qico { opacity: .6; }
.mls-qnav.is-live .mls-qico__w1 { animation: mls-q-wave 1.5s ease-in-out infinite; }
.mls-qnav.is-live .mls-qico__w2 { animation: mls-q-wave 1.5s ease-in-out .25s infinite; }
.mls-qnav.is-live .mls-qico__dot { animation: mls-q-dot 1.5s ease-in-out infinite; transform-origin: 12px 12px; }
@keyframes mls-q-wave { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes mls-q-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* الكارت */
.mls-qcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-width: 0; padding: .75rem; border: 1px solid var(--mls-q-line); border-radius: var(--mls-q-radius); background: var(--mls-q-bg); color: var(--mls-q-text); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.mls-qcard:hover { border-color: var(--mls-q-accent); box-shadow: 0 10px 30px -18px rgba(20, 20, 40, .45); }
.mls-qcard.is-on { border-color: color-mix(in srgb, var(--mls-q-live) 35%, transparent); }
.mls-qcard__media { position: relative; display: grid; place-items: center; width: 240px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--mls-q-media); color: #fff; }
.mls-qcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mls-qcard__media img.mls-qcard__still { filter: brightness(.55) saturate(.8); }
.mls-qcard__play { position: relative; z-index: 1; box-sizing: border-box; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.mls-qcard.is-on .mls-qcard__play { background: var(--mls-q-live); }
.mls-qcard__body { display: grid; gap: .3rem; justify-items: start; min-width: 0; }
.mls-qcard__body strong { font-size: 1.05rem; line-height: 1.3; }
.mls-qcard__body small { color: var(--mls-q-muted); font-size: .875rem; line-height: 1.5; }
.mls-qcard__cta { padding: .55rem 1rem; border-radius: 999px; background: var(--mls-q-soft); color: var(--mls-q-accent); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.mls-qcard.is-on .mls-qcard__cta { background: var(--mls-q-live); color: var(--mls-q-on-text); }

@media (max-width: 900px) {
	.mls-qcard { grid-template-columns: auto minmax(0, 1fr); }
	.mls-qcard__media { width: 190px; }
	.mls-qcard__cta { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 600px) {
	.mls-qcard { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.mls-qcard__media { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.mls-qbtn.is-on .mls-qbtn__dot, .mls-qnav.is-live .mls-qico__w1, .mls-qnav.is-live .mls-qico__w2, .mls-qnav.is-live .mls-qico__dot { animation: none; }
}
