/* سمة البث المباشر الداكنة — S04 */

.theme-live { background: var(--live-bg); color: #E7ECF5; }
.theme-live .site-header { background: var(--live-bg); border-bottom: 1px solid #1C2438; }
.theme-live .header-top .icon-btn, .theme-live .header-top a { color: #E7ECF5; }
.theme-live .icon-btn:hover { background: var(--live-card); }
.theme-live .header-tabs-wrap { border-top: 1px solid #1C2438; }
.theme-live .header-logo img { filter: none; }
.theme-live .site-footer { background: #060910; color: rgba(255,255,255,.7); }

.live-page { color: #E7ECF5; }
.theme-live h1, .theme-live h2, .theme-live h3 { color: #FFFFFF; }
.live-title-row { text-align: center; padding-block: 18px 6px; }
.live-title-row h1 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(21px, 5vw, 30px); font-weight: 800; }
.live-title-row p { color: rgba(231,236,245,.7); font-size: 14px; margin: 4px 0 0; }

/* لون البث الرسمي: أحمر نابض — لا يستخدم لون العلامة الأزرق */
:root { --mn-live-red: #E11D33; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mn-live-red); display: inline-block; box-shadow: 0 0 0 4px rgba(225,29,51,.22); animation: pulse 1.4s infinite; }
.live-dot.sm { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(225,29,51,.2); }

.live-player-card {
  background: var(--live-card); border: 1px solid #1E2841; border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 14px;
}
.live-player-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.badge-live {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(225,29,51,.16);
  color: #FF5C79; font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(225,29,51,.4);
}
.badge-live.sm { font-size: 10.5px; padding: 3px 8px; position: absolute; top: 8px; inset-inline-start: 8px; }
.live-channel-logo { height: 30px; max-width: 110px; object-fit: contain; }
.live-channel-name { color: #fff; font-size: 15px; }
.live-player-area { position: relative; aspect-ratio: 16 / 9; background: #05070C; }
.live-player-area.tall { aspect-ratio: 16 / 9; }
.live-iframe, .live-video { width: 100%; height: 100%; display: block; border: 0; }
.live-offline {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(231,236,245,.65); text-align: center; padding: 20px;
}
.live-offline p { max-width: 340px; font-size: 14px; }

.theme-live .chip { background: var(--live-card); border-color: #232E4A; color: #E7ECF5; }
.theme-live .chip.active { background: var(--mn-live-red); border-color: var(--mn-live-red); color: #fff; }
.theme-live .chip-label { color: rgba(231,236,245,.6); }

.channels-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .channels-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .channels-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .channels-grid { grid-template-columns: repeat(6, 1fr); } }
.channel-card { background: var(--live-card); border: 1px solid #1E2841; border-radius: var(--radius-md); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; display: block; }
.channel-card:hover { transform: translateY(-2px); border-color: var(--mn-live-red); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.channel-card.active { border-color: var(--mn-live-red); box-shadow: 0 0 0 1px var(--mn-live-red) inset, 0 8px 20px rgba(225,29,51,.15); }
.channel-media { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #10182B, #0A0F1C); }
.channel-media img { max-width: 72%; max-height: 72%; object-fit: contain; }
.channel-fallback { color: rgba(231,236,245,.45); }
.channel-name { display: block; text-align: center; padding: 10px 8px; font-weight: 700; font-size: 13.5px; color: #fff; }

/* رأس صفحة القناة: شعار + اسم */
.channel-head { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: start; }
.channel-head-logo { height: 74px; max-width: 190px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
@media (max-width: 620px) {
  .channel-head { flex-direction: column; text-align: center; gap: 10px; }
  .channel-head-logo { height: 58px; }
}

.programs-list { display: flex; flex-direction: column; gap: 10px; }
.program-row {
  display: flex; align-items: center; gap: 14px; background: var(--live-card);
  border: 1px solid #1E2841; border-radius: var(--radius-md); padding: 10px 12px;
}
.program-thumb { position: relative; width: 118px; flex-shrink: 0; }
.program-thumb img { width: 118px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.program-when {
  position: absolute; bottom: 6px; inset-inline-start: 6px; background: rgba(5,7,12,.85); color: #fff;
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px;
}
.program-info { flex: 1; min-width: 0; }
.program-info h3 { font-size: 15px; color: #fff; }
.program-info span { color: rgba(231,236,245,.62); font-size: 12.5px; }
.program-desc { color: rgba(231,236,245,.62); font-size: 12.5px; margin: 4px 0 0; }
.reminder-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #232E4A; background: transparent;
  color: #FF5C79; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reminder-btn:hover { background: rgba(209,0,49,.12); }
.reminder-btn.is-on { background: var(--mn-live-red); border-color: var(--mn-live-red); color: #fff; }

.theme-live .empty-state { color: rgba(231,236,245,.65); }
.theme-live .empty-state h3 { color: #fff; }
.theme-live .empty-icon { background: var(--live-card); }

.theme-live .media-fallback.dark { background: linear-gradient(135deg, #10182B, #0A0F1C); }
.theme-live .section-title { border-inline-start-color: var(--mn-live-red); }
.theme-live .live-page .page-block .section-title span { color: #fff; }

/* الشعار الأبيض على السمة الداكنة */
.theme-live .header-logo img { content: url("/brand/logo-white.png"); }
.theme-live .drawer-head img, .theme-live .site-footer .footer-brand img { content: url("/brand/logo-white.png"); }

/* شريط التنقل السفلي الداكن في صفحة البث */
.theme-live .bottom-nav { background: #060910; border-top-color: #1C2438; }
.theme-live .bn-item { color: rgba(231,236,245,.6); }
.theme-live .bn-item.active { color: #FF5C79; }
.theme-live .bn-primary .icon { background: var(--mn-live-red); box-shadow: 0 4px 14px rgba(225,29,51,.5); }
.theme-live .with-bottom-nav { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 20px); }
