/* ============================================================
   الألوان والشكل — غيّر من هنا لو عاوز ستايل مختلف
   ============================================================ */
:root {
  --glow: #14264a;          /* وهج أعلى الصفحة — بيتغير مع الثيم */
  --bg: #0a0e18;            /* خلفية الصفحة — هوية PATH */
  --surface: #101627;       /* خلفية الكروت */
  --surface-2: #151d33;     /* عناصر أوضح شوية */
  --text: #e8f1ff;          /* النص الأساسي */
  --text-dim: #9aa4b8;      /* نص باهت */
  --accent: #5ec8f8;        /* سماوي PATH — بيتاخد كمان من config.js */
  --accent2: #b388ff;       /* بنفسجي PATH للمسات التانية */
  --on-accent: #06121c;
  --border: #1d2a4a;
  --radius: 18px;
}

.top-actions { display: flex; gap: 8px; align-items: center; }
.theme-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 20px; height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-shrink: 0; white-space: nowrap;
}
.theme-btn:hover { border-color: var(--accent); }
.update-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 50%; width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.update-btn:hover, .share-btn:hover { border-color: var(--accent); }
.share-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 50%; width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* الثيمات الزجاجية: خلفية ملونة وكروت شفافة ببلور */
[data-glass="1"] body {
  background:
    radial-gradient(900px 500px at 85% -50px, var(--accent2) 0%, transparent 55%),
    radial-gradient(800px 600px at 10% 20%, var(--accent) 0%, transparent 50%),
    radial-gradient(1200px 600px at 50% -100px, var(--glow) 0%, var(--bg) 55%) fixed,
    var(--bg);
  background-attachment: fixed;
}
[data-glass="1"] .player-card,
[data-glass="1"] .episode,
[data-glass="1"] .social-card,
[data-glass="1"] .admin-modal > div,
[data-glass="1"] .chan-card {
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", "Noto Kufi Arabic", Tahoma, sans-serif;
  background: radial-gradient(1200px 600px at 50% -100px, var(--glow) 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100%;
  padding: 18px 16px 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- الهيدر ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--surface-2));
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--on-accent, #0c0c10);
  flex-shrink: 0;
}

.top h1 { font-size: 20px; font-weight: 700; }
.tagline { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.install-btn {
  background: var(--accent); color: var(--on-accent, #0c0c10); border: 0;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}

/* ---------- كارت المشغّل ---------- */
.player-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.cover {
  width: 180px; height: 180px; border-radius: 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}

.cover-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.cover-bars i {
  width: 7px; border-radius: 4px; background: var(--accent);
  height: 30%;
}
.playing .cover-bars i { animation: bounce 1s ease-in-out infinite; }
.cover-bars i:nth-child(2) { animation-delay: .15s; height: 60%; }
.cover-bars i:nth-child(3) { animation-delay: .3s; height: 100%; }
.cover-bars i:nth-child(4) { animation-delay: .45s; height: 45%; }

@keyframes bounce {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1); }
}

.now-playing { text-align: center; }
.now-playing h2 { font-size: 18px; }
.np-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.progress-row {
  width: 100%; display: flex; align-items: center; gap: 10px; direction: ltr;
}
.time { font-size: 12px; color: var(--text-dim); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }

.seek {
  flex: 1; appearance: none; -webkit-appearance: none;
  height: 5px; border-radius: 3px;
  background: var(--surface-2); outline: none; cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px;
  border-radius: 50%; background: var(--accent);
}
.seek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--accent); }

.controls { display: flex; align-items: center; gap: 22px; }

.ctl {
  background: none; border: 0; cursor: pointer; color: var(--text);
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%;
}
.ctl svg { width: 26px; height: 26px; fill: currentColor; }
.ctl:active { transform: scale(.92); }

.ctl.play {
  width: 64px; height: 64px;
  background: var(--accent); color: var(--on-accent, #0c0c10);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.ctl.play svg { width: 30px; height: 30px; }

.volume-row { width: 100%; display: flex; align-items: center; gap: 10px; direction: ltr; padding: 0 6px; }
.vol-icon { width: 18px; height: 18px; fill: var(--text-dim); flex-shrink: 0; }

/* ---------- قائمة الحلقات ---------- */
.list-title { font-size: 15px; color: var(--text-dim); font-weight: 600; margin-bottom: 10px; }

.episode-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.episode {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 14px;
  padding: 12px 14px; cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.episode:hover { background: var(--surface-2); }
.episode.active { border-color: var(--accent); }

.ep-num {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface-2); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.episode.active .ep-num { background: var(--accent); color: var(--on-accent, #0c0c10); }

.ep-info { flex: 1; min-width: 0; }
.ep-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-dur { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ---------- الفوتر ---------- */
.foot {
  text-align: center; font-size: 12px; color: var(--text-dim);
  padding-top: 6px;
}

/* إخفاء أيقونات SVG المعلّمة hidden */
.ctl svg[hidden] { display: none; }

/* تحسين التفاف اسم المحطة في الهيدر */
.brand { flex: 1; min-width: 0; }
.top h1 { line-height: 1.35; }
.install-btn { padding: 8px 12px; font-size: 12px; }

/* صور الأعمال الفنية */
.cover { position: relative; overflow: hidden; }
.cover-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cover-bars {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(12,12,16,.55); padding: 6px 10px; border-radius: 10px;
  height: 34px; gap: 4px;
}
.cover-bars i { width: 5px; }
.ep-num.has-thumb { background: none; overflow: hidden; }
.ep-num.has-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }

/* مشغّل الفيديو */
.video-player {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; background: #000;
}

/* ---------- لوحة الإدارة ---------- */
.admin-link {
  display: block; margin: 8px auto 0;
  background: none; border: 0; color: var(--text-dim);
  font-size: 11px; cursor: pointer; font-family: inherit;
  text-decoration: underline; opacity: .7;
}
.admin-modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,5,8,.75);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 14px; overflow-y: auto;
}
.admin-box {
  background: var(--surface); border-radius: var(--radius);
  width: 100%; max-width: 440px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.admin-head { display: flex; align-items: center; justify-content: space-between; }
.admin-head h3 { font-size: 17px; }
.admin-close {
  background: var(--surface-2); border: 0; color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.admin-msg { font-size: 13px; color: var(--accent); min-height: 16px; }
.admin-msg.bad { color: #eb5757; }
.admin-box label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.admin-box input[type="text"], .admin-box input[type="email"], .admin-box input[type="password"] {
  width: 100%; background: var(--surface-2); border: 1px solid transparent;
  border-radius: 10px; padding: 10px 12px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.admin-box input:focus { border-color: var(--accent); }
.admin-box input[type="color"] { width: 60px; height: 34px; border: 0; background: none; padding: 0; }
.admin-box input[type="file"] { font-size: 12px; color: var(--text-dim); }
.admin-btn {
  margin-top: 8px; background: var(--accent); color: var(--on-accent, #0c0c10);
  border: 0; border-radius: 12px; padding: 11px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(122,162,247,.25);
  transition: transform .08s ease, filter .15s ease, background .2s ease;
}
.admin-btn:hover { filter: brightness(1.12); }
.admin-btn:active { transform: scale(.94); filter: brightness(1.35); }
.admin-btn.saved { background: #43a047; color: #fff; }
.admin-btn.ghost { background: var(--surface-2); color: var(--text-dim); }
.stream-return {
  margin-top: 10px; background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 12px; padding: 8px 14px;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  touch-action: manipulation; transition: transform .08s ease, filter .15s ease;
}
.stream-return:active { transform: scale(.96); filter: brightness(1.3); }
.player-card.streaming .progress-row { visibility: hidden; }
.admin-sec { font-size: 14px; color: var(--text-dim); margin-top: 14px; border-top: 1px solid var(--surface-2); padding-top: 12px; }
.admin-eps { display: flex; flex-direction: column; gap: 6px; }
.admin-ep {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface-2); border-radius: 10px; padding: 8px 10px;
}
.admin-ep-title { font-size: 13px; font-weight: 600; }
.admin-ep-kind { font-size: 11px; color: var(--text-dim); }
.admin-ep-actions button {
  background: var(--surface); color: var(--text); border: 0;
  border-radius: 8px; padding: 6px 10px; margin-inline-start: 4px;
  cursor: pointer; font-size: 12px; font-family: inherit;
}
.admin-ep-actions button.danger { color: #eb5757; }
.pl-pick { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; max-height: 180px; overflow-y: auto; }
.pl-pick label { font-size: 13px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.admin-ep-actions button.bc { color: var(--accent); font-weight: 600; }
.admin-ep-actions button.bc:hover { background: rgba(122,162,247,.15); }
.admin-ep-actions button.bc:active { transform: scale(.95); }
.admin-ep-actions button:disabled { opacity: .35; cursor: default; }

.admin-modal[hidden], #adminModal[hidden] { display: none !important; }

.radio-banner[hidden] { display: none; }
.radio-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface, #17171f); border: 1px solid var(--accent);
  border-radius: 12px; padding: 12px 14px; margin: 14px 0;
}
.radio-badge { font-weight: 700; }
.radio-now { flex: 1; min-width: 120px; font-size: 14px; opacity: 0.9; }
.radio-join { white-space: nowrap; }
.admin-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.admin-input { background: #101018; color: inherit; border: 1px solid #2a2a38; border-radius: 8px; padding: 8px; }

.section-sub { margin: 26px 0 12px; font-size: 16px; opacity: 0.9; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-card {
  background: var(--surface-2, #17171f); border: 1px solid #2a2a38; border-radius: 12px;
  padding: 13px; text-decoration: none; color: inherit; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color 0.2s;
}
.social-card:hover { border-color: var(--accent); }
.social-card .s-ico { font-size: 18px; }

.social-card .s-ico { display: inline-flex; align-items: center; justify-content: center; }

/* صف أيقونات السوشيال: أيقونات فقط بدون أي إطار */
#socialsSection {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 4px 0 2px;
}
#socialsSection .social-card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
#socialsSection .social-card:hover { transform: scale(1.12); }
#socialsSection .social-card .s-ico svg { width: 30px; height: 30px; display: block; }

/* أيقونة الموقع (PATH Media) */
#socialsSection .soc-site { flex-direction: column; gap: 4px; }
#socialsSection .soc-site .s-ico img { width: 30px; height: 30px; border-radius: 50%; display: block; object-fit: cover; }
#socialsSection .soc-site .s-lbl { font-size: 11px; color: #9aa4b8; direction: ltr; }

/* مشغّل يوتيوب المدمج */
.yt-player { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.yt-player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* تاثيرات الماوس والضغط — نفس ستايل موقع PATH */
.episode { transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.episode:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(122,162,247,.18); }
.episode:active { transform: scale(.98); }
.ctl { transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.ctl:hover { color: var(--accent); transform: scale(1.08); }
.ctl.play:hover { color: var(--on-accent, #0c0c10); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(122,162,247,.35); }
.btn-primary, .install-btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn-primary:hover, .install-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(122,162,247,.3); }
.btn-primary:active, .install-btn:active { transform: scale(.95); box-shadow: none; }
#socialsSection .social-card { transition: transform .15s ease; }
#socialsSection .social-card:active { transform: scale(.85); }

/* تبويبات القنوات الدائمة */
.chan-tabs {
  flex-basis: 100%;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chan-tab {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #e8eaf2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chan-tab:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.12); }
.chan-tab:active { transform: scale(0.96); }
.chan-tab.on {
  background: var(--accent, #7aa2f7);
  border-color: var(--accent, #7aa2f7);
  color: #0d1020;
  font-weight: 700;
}
.chan-row { align-items: stretch; }
.chan-row .chan-name { max-width: 120px; }
.chan-row .chan-url { flex: 1; min-width: 140px; }

/* كروت القنوات وجدولة اللينكات */
.chan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}
.chan-items { margin-top: 6px; }
.chan-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-top: 8px;
}
.chan-sched { align-items: center; gap: 6px; flex-wrap: wrap; }
.chan-time { width: 90px; padding: 6px; }
.chan-day {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text, #e8eaf2);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.chan-day:hover { background: rgba(255, 255, 255, 0.1); }
.chan-day:active { transform: scale(0.92); }
.chan-day.on { background: var(--accent, #7aa2f7); border-color: var(--accent, #7aa2f7); color: #0d1020; font-weight: 700; }
.chan-rm { padding: 6px 10px; }
.chan-addlink { margin-top: 8px; font-size: 0.85rem; }
.chan-item-name { font-size: 0.9rem; }

/* قوائم التشغيل على الرئيسية */
.pl-head { list-style: none; font-size: 13px; font-weight: 700; color: var(--accent); margin: 12px 0 4px; }
.episode.pl-child { padding-inline-start: 18px; }


/* ============================================================
   هوية PATH Media — سماوي/بنفسجي، توهج، تدرجات
   ============================================================ */

/* اللوجو: حلقة متدرجة متوهجة زي PATH */
.logo {
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#0d1424, #0d1424) padding-box,
    conic-gradient(from 120deg, #35e0ff, #7aa2f7, #b388ff, #ff7ad9, #35e0ff) border-box;
  color: var(--accent);
  box-shadow: 0 0 18px 2px rgba(94,200,248,0.45), 0 0 46px 6px rgba(179,136,255,0.22);
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { box-shadow: 0 0 14px 2px rgba(94,200,248,0.35), 0 0 36px 4px rgba(179,136,255,0.16); }
  to   { box-shadow: 0 0 24px 4px rgba(94,200,248,0.6), 0 0 60px 8px rgba(179,136,255,0.3); }
}

/* اسم المحطة: نص متدرج متوهج زي PATH */
.top h1 {
  font-weight: 800;
  background: linear-gradient(180deg, #dff4ff 15%, var(--accent) 55%, #2f7fc9 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(94,200,248,0.35);
}
.tagline { color: var(--accent2); opacity: .95; }

/* الأزرار الأساسية: بيل متدرجة بتوهج */
.install-btn, .admin-btn, .radio-join {
  background: linear-gradient(135deg, var(--accent), #2f8fd0) !important;
  color: #06121c !important;
  box-shadow: 0 0 16px rgba(94,200,248,0.35);
}
.ctl.play {
  background: linear-gradient(135deg, var(--accent), #2f8fd0);
  color: #06121c;
  box-shadow: 0 0 22px rgba(94,200,248,0.45), 0 8px 22px rgba(0,0,0,.4);
}
.ctl.play:hover { color: #06121c; box-shadow: 0 0 30px rgba(94,200,248,0.6), 0 10px 26px rgba(0,0,0,.45); }
.admin-btn.saved { background: #43a047 !important; color: #fff !important; }
.admin-btn.ghost, .stream-return {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  box-shadow: none;
}

/* الكروت: سطح PATH بحدود وظل */
.player-card, .radio-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.cover { box-shadow: 0 0 26px rgba(94,200,248,0.18), 0 14px 34px rgba(0,0,0,.45); }

.episode {
  background: var(--surface);
  border: 1px solid #22304f;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.episode:hover { background: var(--surface-2); border-color: var(--accent); box-shadow: 0 6px 16px rgba(94,200,248,.2); }
.episode.active { border-color: var(--accent); box-shadow: 0 0 16px rgba(94,200,248,0.28); }
.episode.active .ep-num { background: linear-gradient(135deg, var(--accent), #2f8fd0); color: #06121c; }

/* عناوين الأقسام: خط متدرج جانبي زي PATH */
.list-title, .section-sub {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); opacity: 1; font-weight: 700;
}
.list-title::after, .section-sub::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* تبويبات القنوات */
.chan-tab { background: rgba(94,200,248,0.06); border: 1px solid #22304f; color: var(--text); }
.chan-tab:hover { background: rgba(94,200,248,0.12); }
.chan-tab.on {
  background: linear-gradient(135deg, var(--accent), #2f8fd0);
  border-color: transparent; color: #06121c;
  box-shadow: 0 0 14px rgba(94,200,248,0.4);
}
.chan-day.on { background: var(--accent); border-color: var(--accent); color: #06121c; }

/* السوشيال: هوفر بتوهج سماوي */
#socialsSection .social-card .s-ico svg { transition: filter .15s ease; }
#socialsSection .social-card:hover .s-ico svg { filter: drop-shadow(0 0 8px rgba(94,200,248,0.65)); }

/* الإدارة: نفس الباليت */
.admin-box { background: var(--surface); border: 1px solid #22335c; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.admin-box input[type="text"], .admin-box input[type="email"], .admin-box input[type="password"], .admin-input {
  background: #0b1120; border: 1px solid #22335c; color: var(--text);
}
.admin-box input:focus, .admin-input:focus { border-color: var(--accent); }
.admin-ep { background: var(--surface-2); border: 1px solid #22304f; }
.admin-ep-actions button { background: var(--surface); border: 1px solid #22304f; }
.admin-ep-actions button.bc { color: var(--accent); border-color: var(--accent); }
.admin-ep-actions button.bc:hover { background: rgba(94,200,248,.12); }
.admin-head h3, .admin-sec { color: var(--text); }
.pl-head { color: var(--accent); text-shadow: 0 0 10px rgba(94,200,248,0.35); }
.ctl:hover { color: var(--accent); }
.episode:hover { box-shadow: 0 6px 16px rgba(94,200,248,.2); }


/* لوجو PATH في الهيدر والغلاف — نفس شكل الموقع */
.logo { padding: 0; overflow: hidden; }
.logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

.cover {
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(#0d1424, #0d1424) padding-box,
    conic-gradient(from 120deg, #35e0ff, #7aa2f7, #b388ff, #ff7ad9, #35e0ff) border-box;
  box-shadow: 0 0 30px 4px rgba(94,200,248,0.45), 0 0 80px 10px rgba(179,136,255,0.25);
  animation: glowPulse 4s ease-in-out infinite alternate;
}
.cover-art { border-radius: 50%; }


/* أزرار التخطي متعطلة في وضع البث المباشر — الكل سامع نفس اللحظة */
.ctl:disabled { opacity: .3; cursor: default; }
.ctl:disabled:hover { transform: none; color: var(--text); box-shadow: none; }

.admin-hint { font-size: 13px; color: #8b93a7; line-height: 1.7; margin: 4px 0 10px; }

/* Explicit hidden wins over display:flex on header controls. */
[hidden] { display: none !important; }

.web-share-overlay { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; padding:20px; }
.web-share-card { width:min(100%,420px); box-sizing:border-box; background:var(--surface); color:var(--text); padding:24px; border:1px solid var(--border); border-radius:18px; position:relative; box-shadow:0 20px 70px #0008; }
.web-share-card h2 { font-size:22px; margin:6px 0 12px; }
.web-share-card p { line-height:1.7; font-size:14px; }
.web-share-close { position:absolute; left:10px; top:8px; width:36px; height:36px; border:0; background:transparent; color:var(--text); font-size:28px; cursor:pointer; }
.web-share-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0; }
.web-share-options button,.web-share-options a { display:flex; min-height:46px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); color:var(--text); font:inherit; text-decoration:none; cursor:pointer; }
.web-share-options button:hover,.web-share-options a:hover { border-color:var(--accent); }
#webShareUrl { width:100%; box-sizing:border-box; background:var(--bg); border:1px solid var(--border); padding:10px; border-radius:8px; color:var(--text); font-size:12px; }
.web-share-status { min-height:48px; color:var(--text-dim); margin-bottom:0; }

/* The APK install action is a real download link. */
a.install-btn { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }

/* ================= قسم PATH MEDIA ================= */
.phero { text-align: center; padding: 22px 0 8px; }
.logo-ring {
  width: 148px; height: 148px; margin: 0 auto 12px; border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 120deg, #35e0ff, #7aa2f7, #b388ff, #ff7ad9, #35e0ff);
  box-shadow: 0 0 34px 4px rgba(94,200,248,0.45), 0 0 90px 10px rgba(179,136,255,0.25);
  animation: glowPulse 4s ease-in-out infinite alternate;
  transition: transform .2s ease;
}
.logo-ring:hover { transform: scale(1.04); }
@keyframes glowPulse {
  from { box-shadow: 0 0 26px 3px rgba(94,200,248,0.35), 0 0 70px 8px rgba(179,136,255,0.18); }
  to   { box-shadow: 0 0 44px 6px rgba(94,200,248,0.6), 0 0 110px 14px rgba(179,136,255,0.32); }
}
.logo-ring img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.phero-name {
  font-size: 44px; font-weight: 800; letter-spacing: 10px; margin-right: -10px;
  background: linear-gradient(180deg, #dff4ff 15%, var(--accent, #5ec8f8) 55%, #2f7fc9 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(94,200,248,0.35);
  direction: ltr;
}
.phero-sub {
  font-size: 14px; letter-spacing: 7px; margin-right: -7px; color: #b388ff;
  direction: ltr; font-weight: 600;
  text-shadow: 0 0 16px rgba(179,136,255,0.5);
}
.phero-tag { margin-top: 12px; font-size: 15px; opacity: 0.92; }
.phero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pbtn {
  background: transparent; color: var(--accent, #5ec8f8); border: 1px solid var(--accent, #5ec8f8);
  border-radius: 999px; padding: 10px 20px; font-size: 14px; cursor: pointer; text-decoration: none;
  font-family: inherit; display: inline-block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.pbtn.pbtn-primary {
  background: linear-gradient(135deg, var(--accent, #5ec8f8), #2f8fd0);
  color: #06121c; border: 0; font-weight: 700;
  box-shadow: 0 0 18px rgba(94,200,248,0.4);
}
.pbtn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(94,200,248,.28); }
.pbtn:active { transform: scale(.95); box-shadow: none; }
#videosToggle.open { background: rgba(94,200,248,0.12); }
.videos-panel { margin-bottom: 8px; }
.empty-note { background: var(--surface, #101627); border: 1px dashed #2a3a5f; border-radius: 12px; padding: 18px; text-align: center; opacity: 0.8; font-size: 14px; }
/* قائمة الفيديوهات المختارة */
.v-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface, #101627); border: 1px solid #22304f; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.v-item:hover { transform: translateY(-2px); border-color: var(--accent, #5ec8f8); box-shadow: 0 6px 16px rgba(94,200,248,.2); }
.v-item:active { transform: scale(.98); }
.v-thumb {
  width: 84px; height: 54px; border-radius: 8px; overflow: hidden;
  background: #000; flex: 0 0 auto; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.v-thumb img, .v-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-open {
  position: absolute; bottom: 4px; inset-inline-end: 4px;
  background: rgba(0,0,0,.65); color: #fff; border-radius: 6px;
  font-size: 11px; padding: 1px 5px; line-height: 1.4; pointer-events: none;
}
.v-fb {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(135deg, #123a6b 0%, #1877F2 100%); color: #fff;
}
.v-fb.v-link { background: linear-gradient(135deg, #1c2a4a 0%, #3b5bb5 100%); }
.v-fb-play { font-size: 20px; line-height: 1; }
.v-fb-tag { font-size: 10px; opacity: .85; }
.v-name { font-size: 15px; }
.v-player { margin: -2px 0 10px; }
.v-native { width: 100%; border-radius: 12px; background: #000; max-height: 420px; display: block; }
/* لوحة التحكم — قسم PATH */
.vid-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2, #151d33); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.vid-row .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-row button { background: none; border: 0; color: #ff8080; cursor: pointer; font-size: 13px; }

/* Install and share, together below the PATH hero buttons. */
.hero-app-actions {display:flex;align-items:center;justify-content:center;gap:12px;margin:16px auto 12px;}
a.hero-install-btn {background:transparent;color:#45ead1;border:1px solid #45ead1;border-radius:999px;padding:11px 25px;font-size:15px;font-weight:500;min-width:220px;box-shadow:0 0 9px #29dcb84d,inset 0 0 8px #29dcb81a;text-decoration:none;}
a.hero-install-btn:hover {box-shadow:0 0 17px #29dcb870;color:#86ffe9;}
.hero-app-actions .share-btn {border-color:#45ead180;color:#45ead1;flex:0 0 42px;width:42px;height:42px;}
.hero-app-actions .share-btn svg path {fill:#45ead1;}
@media(max-width:380px){a.hero-install-btn{min-width:0;padding:11px 18px;font-size:14px}.hero-app-actions{gap:9px;}}
/* Override the radio button gradient, keep the old outlined-pill treatment. */
a.hero-install-btn {background-image:none !important;background-color:transparent !important;color:#45ead1 !important;}

.podcast-folder {background:var(--surface,#101627);border:1px solid #45ead155;border-radius:16px;padding:16px;margin:12px 0 20px;}
.podcast-folder[hidden]{display:none !important;}
#podcastToggle.open{background:rgba(69,234,209,.12);}
