/* ============================================================
   الألوان والشكل — غيّر من هنا لو عاوز ستايل مختلف
   ============================================================ */
: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; }


.hero-app-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px auto;flex-wrap:nowrap}
.phero-btns{display:flex;flex-wrap:nowrap;gap:10px;justify-content:center;align-items:center}
.phero .pbtn,.phero a.hero-install-btn{box-sizing:border-box;white-space:nowrap;background:transparent!important;color:#5ec8f8!important;border:1px solid #5ec8f8;border-radius:999px;padding:10px 20px;min-width:0;font-size:14px;line-height:1.5;font-family:inherit;text-decoration:none;display:inline-block;cursor:pointer;box-shadow:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease}
.phero .pbtn-primary{background:linear-gradient(135deg,#5ec8f8,#2f8fd0)!important;color:#06121c!important;border:0;padding:11px 22px;font-size:15px;font-weight:700;box-shadow:0 0 18px rgba(94,200,248,.4)}
.phero .pbtn:hover,.phero a.hero-install-btn:hover{transform:translateY(-2px);border-color:#5ec8f8;box-shadow:0 6px 18px rgba(94,200,248,.28)}
.phero .pbtn:active,.phero a.hero-install-btn:active{transform:scale(.95);box-shadow:none}
.phero .pbtn:focus-visible,.phero a.hero-install-btn:focus-visible{outline:2px solid #5ec8f8;outline-offset:4px}
.podcast-folder{background:var(--surface,#101627);border:1px solid #22304f;border-radius:16px;padding:16px;margin:12px 0 20px}
.podcast-folder[hidden]{display:none!important}
#podcastToggle.open{background:rgba(94,200,248,.12)!important}
.player-card>.top{margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #22304f;gap:10px;text-align:right}.player-card>.top .brand{min-width:0}.player-card>.top .brand .logo{display:none}.player-card>.top h1{font-size:23px}.player-card>.top .tagline{font-size:12px}.player-card>.top .top-actions{flex-shrink:0}
@media(max-width:520px){.phero-btns{gap:6px}.phero .pbtn,.phero a.hero-install-btn{padding:10px 9px;font-size:11px}.hero-app-actions .pbtn,.hero-app-actions a.hero-install-btn{font-size:13px;padding:10px 16px}}
@media(max-width:380px){.player-card>.top h1{font-size:20px}.player-card>.top .tagline{font-size:10px}}
@media(max-width:360px){.phero-btns{gap:4px}.phero-btns .pbtn{padding:9px 6px;font-size:10px}}

.player-card>.top{align-self:stretch;width:100%;border-bottom:none;padding:0;margin:0;align-items:flex-start;position:relative;z-index:1}
.player-card>.top .brand{text-align:right;align-items:flex-start}
.player-card>.cover{margin:10px auto 16px}
.follow-chain{display:inline-block;font-family:"Noto Color Emoji","Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:22px;line-height:1;vertical-align:middle}
@media(min-width:800px){.app{max-width:800px}.player-card>.cover{width:184px;height:184px;margin:-22px auto 16px}.player-card>.top .brand{max-width:240px}.player-card>.top h1{font-size:22px}.player-card>.top .tagline{font-size:12px}}
@media(max-width:520px){.player-card>.cover{width:190px;height:190px;margin:8px auto 16px}}

@media(min-width:800px){.player-card>.cover{margin-top:-36px}}
.follow-chain{color:#5ec8f8;flex-shrink:0}

.side-preview-nav,.side-preview-dock{display:none}
@media(min-width:1100px){
.sidebar-desktop .app{max-width:1380px;display:grid;grid-template-columns:210px minmax(300px,1fr) minmax(360px,1.25fr);gap:22px;align-items:start}
.sidebar-desktop .phero{grid-column:1/-1;padding-bottom:16px}
.sidebar-desktop .side-preview-nav{display:block;grid-column:1;grid-row:2;background:var(--surface);border:1px solid #22304f;border-radius:18px;padding:18px 12px;position:sticky;top:20px}
.side-preview-nav h2{font-size:17px;margin:0 5px 18px;color:#5ec8f8}
.sidebar-desktop .side-preview-nav .phero-btns,.sidebar-desktop .side-preview-nav .hero-app-actions{display:flex;flex-direction:column;margin:0;gap:12px}
.sidebar-desktop .side-preview-nav .hero-app-actions{margin-top:12px}
.side-preview-nav .pbtn,.side-preview-nav a.hero-install-btn{width:100%;text-align:center;white-space:nowrap;font-size:12px;padding:12px 8px;min-width:0;border-radius:999px;background:transparent!important;color:#5ec8f8!important;border:1px solid #5ec8f8;text-decoration:none;box-shadow:none;font-family:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s}
.side-preview-nav .pbtn-primary{background:linear-gradient(135deg,#5ec8f8,#2f8fd0)!important;color:#06121c!important;border:0;font-weight:700;box-shadow:0 0 18px rgba(94,200,248,.4)}
.side-preview-nav .pbtn:hover,.side-preview-nav a.hero-install-btn:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(94,200,248,.28)}
.side-preview-nav .pbtn:active,.side-preview-nav a.hero-install-btn:active{transform:scale(.95);box-shadow:none}
.sidebar-desktop .side-preview-dock{display:block;grid-column:2;grid-row:2;min-height:290px;background:var(--surface);border:1px solid #22304f;border-radius:18px;padding:18px}
.side-preview-dock .podcast-folder{margin:0;padding:0;border:0}.side-preview-dock .list-title{font-size:19px}.side-preview-dock .empty-note{font-size:13px}
.side-welcome{padding:28px 5px;text-align:center}.side-welcome h2{font-size:21px;color:#5ec8f8;margin-bottom:14px}.side-welcome p{font-size:14px;color:var(--text-dim);line-height:1.9}
.sidebar-desktop #playerCard{grid-column:3;grid-row:2;margin:0;min-width:0}.sidebar-desktop #playerCard>.cover{margin:12px auto 16px}.sidebar-desktop #playerCard>.top .tagline{font-size:10px}.sidebar-desktop #playerCard>.top h1{font-size:20px}
.sidebar-desktop .section-sub,.sidebar-desktop #socialsSection,.sidebar-desktop .footer{grid-column:1/-1}
}

.listen-focus{animation:listenFocus 1.2s ease-out}
@keyframes listenFocus{0%{box-shadow:0 0 0 2px #5ec8f8,0 0 35px #5ec8f855}100%{box-shadow:0 4px 24px #0005}}
@media(max-width:1099px){.hero-app-actions{flex-wrap:wrap}#listenAlways{flex-basis:auto}}

@media(min-width:1100px){
.sidebar-desktop .app{max-width:1260px;grid-template-columns:340px minmax(0,1fr);gap:24px}
.sidebar-desktop .side-preview-nav{padding:18px 14px}
.sidebar-desktop .side-preview-dock{display:none}
.sidebar-desktop #playerCard{grid-column:2}
.side-preview-nav #podcastFolder,.side-preview-nav #videos{width:100%;margin:0;padding:12px 8px;border:1px solid #22304f;border-radius:12px;background:#0b1120}
.side-preview-nav #podcastFolder[hidden],.side-preview-nav #videos[hidden]{display:none!important}
.side-preview-nav #podcastFolder .list-title{font-size:15px;margin:0 0 10px}
.side-preview-nav .empty-note{padding:12px 8px;font-size:12px;line-height:1.8}
.side-preview-nav .v-item{margin-bottom:0;padding:8px;gap:8px}.side-preview-nav .v-name{font-size:12px}.side-preview-nav .v-thumb{width:65px;height:46px}
}
/* Floating folder overlays do not take space in the layout. */
#podcastFolder,#videos,.side-preview-nav #podcastFolder,.side-preview-nav #videos{position:fixed!important;z-index:100!important;margin:0!important;padding:16px!important;background:#101627!important;border:1px solid #5ec8f8!important;border-radius:16px!important;box-shadow:0 18px 60px #000b,0 0 20px #5ec8f822!important;max-height:min(65vh,520px);overflow:auto;box-sizing:border-box}
#podcastFolder[hidden],#videos[hidden]{display:none!important}
/* Glass preview, readable foreground over a translucent blurred backdrop. */
#podcastFolder,#videos,.side-preview-nav #podcastFolder,.side-preview-nav #videos{background:rgba(14,24,42,.48)!important;backdrop-filter:blur(10px) saturate(135%);-webkit-backdrop-filter:blur(10px) saturate(135%);border-color:rgba(94,200,248,.65)!important}
#podcastFolder .empty-note,#videos .empty-note,#videos .v-item{background:rgba(10,18,32,.35)!important;opacity:1;color:#e1e9fb}
/* Wider desktop player preview; sidebar and player internals unchanged. */


/* Taller variant for review only. */


/* Slightly slimmer desktop player, original height and phone retained. */
@media(min-width:1100px){.sidebar-desktop .app{max-width:1016px}}
/* Compact two-column phone experiment. Full labels retained. */
@media(max-width:1099px){
.sidebar-desktop .app{display:grid;grid-template-columns:126px minmax(0,1fr);gap:10px;padding:12px;max-width:760px;align-items:start}
.sidebar-desktop .phero{grid-column:1/-1}
.sidebar-desktop .side-preview-nav{display:block;grid-column:1;grid-row:2;background:#101627;border:1px solid #22304f;border-radius:16px;padding:10px 7px}
.sidebar-desktop .side-preview-nav h2{font-size:13px;text-align:center;margin:5px 0 14px}
.sidebar-desktop .side-preview-nav .phero-btns,.sidebar-desktop .side-preview-nav .hero-app-actions{display:flex;flex-direction:column;gap:10px;margin:0}
.sidebar-desktop .side-preview-nav .hero-app-actions{margin-top:10px}
.sidebar-desktop .side-preview-nav .pbtn,.sidebar-desktop .side-preview-nav a.hero-install-btn{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px;white-space:normal;line-height:1.5;padding:6px;width:100%;box-sizing:border-box}
.sidebar-desktop #playerCard{grid-column:2;grid-row:2;min-width:0;width:100%;box-sizing:border-box;padding:14px 10px;gap:14px;margin:0}
.sidebar-desktop #playerCard>.top h1{font-size:18px}.sidebar-desktop #playerCard>.top .tagline{font-size:10px;line-height:1.6}
.sidebar-desktop #playerCard>.top{gap:5px}.sidebar-desktop #playerCard>.top .top-actions{width:44px}.sidebar-desktop #playerCard>.top .top-actions button{width:44px;height:44px}
.sidebar-desktop #playerCard>.cover{width:140px;height:140px;margin:8px auto 12px}
.sidebar-desktop #playerCard .now-playing h2{font-size:18px}.sidebar-desktop #playerCard .np-desc{font-size:12px;line-height:1.7}
.sidebar-desktop #playerCard .controls{display:grid;grid-template-columns:44px 52px 44px;gap:8px;justify-content:center;direction:rtl}
.sidebar-desktop #playerCard .ctl{width:44px;height:44px}.sidebar-desktop #playerCard .ctl.play{width:52px;height:52px}
.sidebar-desktop #stopBtn{grid-column:2;justify-self:center}
.sidebar-desktop .section-sub,.sidebar-desktop #socialsSection,.sidebar-desktop .foot{grid-column:1/-1}
.sidebar-desktop #playerCard .progress-row{gap:4px}.sidebar-desktop #playerCard .time{font-size:10px}
}
@media(max-width:400px){.sidebar-desktop .app{grid-template-columns:120px minmax(0,1fr);gap:8px}.sidebar-desktop #playerCard>.cover{width:128px;height:128px}}
@media(max-width:1099px){
.sidebar-desktop .side-preview-nav #followBtn{background:linear-gradient(135deg,#5ec8f8,#2f8fd0)!important;color:#06121c!important;box-shadow:0 0 18px rgba(94,200,248,.4);border:0}
.sidebar-desktop .side-preview-nav #installBtn{background:transparent!important;color:#5ec8f8!important;box-shadow:none;border:1px solid #5ec8f8;font-weight:400}
}

.admin-password-section { margin: 24px 0 18px; padding: 18px; border: 1px solid rgba(94,200,248,.25); border-radius: 14px; }
.admin-password-section h3 { margin: 0 0 10px; }
#adminPasswordForm { display: grid; gap: 10px; }
#adminPasswordForm input { box-sizing: border-box; width: 100%; min-height: 44px; background: #111a2b; border: 1px solid #526887; border-radius: 8px; color: #edf4ff; padding: 10px 12px; font: inherit; }
#adminPasswordForm .admin-btn { min-height: 44px; justify-self: start; }
#adminPasswordForm input:focus-visible { outline: 2px solid #5ec8f8; outline-offset: 2px; }
#adminPasswordForm .admin-msg { margin: 0; overflow-wrap: anywhere; }

/* Keep the sidebar's floating folders above the player's artwork stacking layer. */
.sidebar-desktop .side-preview-nav { z-index: 20; }
.sidebar-desktop #playerCard { position: relative; z-index: 1; }

/* Separate, always-visible social card below the navigation card. */
.sidebar-desktop .side-stack { grid-column: 1; grid-row: 2; min-width: 0; position: relative; z-index: 20; display: grid; gap: 14px; }
.sidebar-desktop .side-stack .side-preview-nav { position: static; grid-column: auto; grid-row: auto; }
.side-social-card { background: #101627; border: 1px solid #22304f; border-radius: 18px; padding: 16px 12px; min-width: 0; }
.side-social-card .section-sub { margin: 0 0 16px; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; text-align: center; color: #5ec8f8; }
.side-social-card .section-sub:after { display: none; }
.side-social-card #socialsSection { flex-wrap: wrap; gap: 12px; padding: 0; }
.side-social-card #socialsSection .social-card { min-width: 44px; min-height: 44px; justify-content: center; }
@media(min-width:1100px) { .sidebar-desktop .side-stack { position: sticky; top: 20px; } }
@media(max-width:1099px) { .side-social-card { padding: 12px 7px; border-radius: 16px; } .side-social-card .section-sub { font-size: 12px; line-height: 1.6; gap: 3px; margin-bottom: 8px; } .side-social-card .follow-chain { display: none; } .side-social-card #socialsSection { gap: 4px; } .side-social-card #socialsSection .social-card .s-ico svg { width: 25px; height: 25px; } }
/* The follow card always has a title row and a single icon row. */
.side-social-card #socialsSection { flex-wrap: nowrap; }
@media(max-width:1099px) {
.side-social-card .section-sub { font-size: 11px; white-space: nowrap; }
.side-social-card #socialsSection { gap: 3px; }
.side-social-card #socialsSection .social-card { min-width: 0; min-height: 44px; flex: 1 1 0; }
.side-social-card #socialsSection .social-card .s-ico svg { width: 22px; height: 22px; }
}

/* Native-app actions: share and update opposite title, Theme directly below. */
@media(max-width:1099px) {
.native-app-mode .sidebar-desktop #playerCard>.top { display: grid; grid-template-columns: minmax(0,1fr) 94px; align-items: start; gap: 5px; min-width: 0; }
.native-app-mode .sidebar-desktop #playerCard>.top .brand { min-width: 0; }
.native-app-mode .sidebar-desktop #playerCard>.top h1 { font-size: 16px; line-height: 1.55; }
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions { width: 94px; display: grid; grid-template-columns: 44px 44px; gap: 6px; }
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions button { flex-shrink: 0; }
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions .theme-btn { grid-column: 1 / -1; width: 94px; min-width: 0; padding: 0 10px; gap: 7px; }
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions .theme-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
}
@media(max-width:1099px) {
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions .theme-btn { grid-row: 1; }
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions #shareBtn,
.native-app-mode .sidebar-desktop #playerCard>.top .top-actions #updateBtn { grid-row: 2; }
}
/* Compact native-app presentation, CSS layout only, no page zoom or clipped canvas. */
@media(max-width:1099px) {
.native-app-mode .sidebar-desktop .phero { padding: 10px 4px 16px; }
.native-app-mode .sidebar-desktop .logo-ring { width: 116px; height: 116px; margin-bottom: 12px; }
.native-app-mode .sidebar-desktop .phero-title { font-size: 34px; letter-spacing: 7px; }
.native-app-mode .sidebar-desktop .phero-sub { font-size: 12px; letter-spacing: 5px; }
.native-app-mode .sidebar-desktop .phero-tagline { font-size: 12px; margin-top: 12px; }
.native-app-mode .sidebar-desktop #playerCard { padding: 10px 8px; gap: 10px; }
.native-app-mode .sidebar-desktop #playerCard>.cover { width: 110px; height: 110px; margin: 4px auto 8px; }
.native-app-mode .sidebar-desktop #playerCard .now-playing h2 { font-size: 16px; }
.native-app-mode .sidebar-desktop #playerCard .np-desc { font-size: 11px; line-height: 1.5; }
.native-app-mode .sidebar-desktop .side-preview-nav { padding: 8px 6px; }
.native-app-mode .sidebar-desktop .side-preview-nav h2 { margin-bottom: 8px; font-size: 12px; }
.native-app-mode .sidebar-desktop .side-preview-nav .phero-btns,
.native-app-mode .sidebar-desktop .side-preview-nav .hero-app-actions { gap: 6px; }
.native-app-mode .sidebar-desktop .side-preview-nav .hero-app-actions { margin-top: 6px; }
.native-app-mode .sidebar-desktop .side-stack { gap: 8px; }
.native-app-mode .sidebar-desktop .foot { padding-top: 10px; }
}
@media(max-width:1099px) {
.native-app-mode .sidebar-desktop .app { padding: 8px; gap: 8px; }
.native-app-mode .sidebar-desktop .phero { padding: 4px 0 6px; }
.native-app-mode .sidebar-desktop .logo-ring { width: 84px; height: 84px; margin-bottom: 6px; }
.native-app-mode .sidebar-desktop .phero-name { font-size: 28px; letter-spacing: 7px; line-height: 1.2; }
.native-app-mode .sidebar-desktop .phero-sub { font-size: 10px; line-height: 1.4; }
.native-app-mode .sidebar-desktop .phero-tag { font-size: 11px; margin-top: 6px; }
.native-app-mode .sidebar-desktop #playerCard { gap: 8px; }
.native-app-mode .sidebar-desktop #playerCard>.cover { width: 100px; height: 100px; margin: 2px auto 4px; }
.native-app-mode .sidebar-desktop .foot { margin-top: 0; padding: 4px 0; font-size: 10px; }
.native-app-mode .sidebar-desktop .foot #adminLink { min-height: 32px; }
}

/* Admin sections are separate tab pages. Only the current page can scroll. */
.admin-modal:has(#adminPanel:not([hidden]))>div { width: min(1080px,96vw); max-width: none; height: min(760px,94dvh); max-height: 94dvh; display: flex; flex-direction: column; overflow: hidden; }
#adminPanel:not([hidden]) { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.admin-tabbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 14px; flex: 0 0 auto; }
.admin-tabbar button { font: inherit; font-size: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #34536c; border-radius: 10px; background: #101b2c; color: #d8eaff; cursor: pointer; }
.admin-tabbar button[aria-selected=true] { background: #5ec8f8; color: #06121c; border-color: #5ec8f8; }
.admin-tabs-body { min-height: 0; overflow: auto; padding: 0 4px 12px; flex: 1; }
.admin-tab-page[hidden] { display: none !important; }
.admin-tab-page>.admin-sec,.admin-tab-page>h3 { margin-top: 0; }
#adminPanel>#adminLogout { align-self: flex-start; margin-top: 10px; flex: 0 0 auto; }
@media(min-width:800px){ #admin-page-0 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; align-items: center; } #admin-page-0>h4,#admin-page-0>.admin-label,#admin-page-0>#saveSettings { grid-column:1/-1; } }
@media(max-width:520px){.admin-modal:has(#adminPanel:not([hidden]))>div { padding: 12px; } .admin-tabbar {gap:4px; padding-bottom:10px;} .admin-tabbar button {font-size:11px; padding:5px 8px;} }
.admin-section-menu { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-section-menu button { border: 1px solid #36516b; background: transparent; color: #b8d3eb; border-radius: 8px; min-height: 40px; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.admin-section-menu button.active { background: #20374d; color: #5ec8f8; border-color: #5ec8f8; }
.admin-tab-page section[hidden] { display: none !important; }
.admin-tab-page .admin-check { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.admin-tab-page input[type=checkbox],.admin-tab-page input[type=radio] { width: auto; margin: 0; }
.admin-tab-page input,.admin-tab-page select { max-width: 100%; box-sizing: border-box; }
.admin-tab-page>.admin-tab-page { display: block; }
#admin-page-2 { display: block; }
.admin-tab-page .admin-sec { margin-top: 0; }
#admin-page-0,#admin-page-1,#admin-page-2 { display: block; }
#admin-page-0[hidden],#admin-page-1[hidden],#admin-page-2[hidden] { display:none; }
.admin-tab-page input[type=url],.admin-tab-page input[type=file] { display:block; width:100%; background:#0a1020; color:#d8e2f2; border:1px solid #263b59; border-radius:10px; padding:12px; margin:8px 0 14px; font:inherit; }
.admin-tab-page label { display:block; margin-top:10px; }
.admin-tab-page select { display:block; width:100%; min-height:44px; padding:10px; margin:8px 0 14px; background:#0a1020; color:#d8e2f2; border:1px solid #263b59; border-radius:10px; font:inherit; }

.podcast-demo-episode { border:1px dashed #3a6786; border-radius:12px; padding:12px; margin-bottom:18px; }
.podcast-demo-episode strong {font-size:14px;}
.podcast-demo-episode .admin-btn { margin-top:2px; }
.admin-section-menu { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; }
.admin-section-menu button { flex:0 0 auto; }
.admin-horizontal-lane { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; align-items:stretch; padding:0 0 16px; }
.admin-horizontal-lane>section,.admin-horizontal-card { flex:0 0 340px; min-width:0; scroll-snap-align:start; padding:14px; border:1px solid #263d56; border-radius:12px; box-sizing:border-box; }
.admin-horizontal-lane>section { flex-basis:100%; }
.admin-horizontal-lane>section .admin-horizontal-card {flex-basis:340px;}
.admin-horizontal-card h3,.admin-horizontal-card h4 {margin:0 0 12px;}
.admin-horizontal-card .admin-row {display:block;}
.admin-horizontal-card .admin-btn {max-width:100%;}
@media(max-width:520px){.admin-horizontal-card {flex-basis:calc(100vw - 96px);} .admin-horizontal-lane>section .admin-horizontal-card{flex-basis:calc(100vw - 128px);} .admin-horizontal-lane>section {padding:8px;} }
.admin-horizontal-lane>section.admin-horizontal-card {flex-basis:340px;}
.admin-lane-nav { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; color:#9cb1c8; font-size:11px; }
.admin-lane-nav button { background:#14263b; color:#71d3ff; border:1px solid #325472; padding:8px 10px; border-radius:8px; cursor:pointer; min-height:40px; }
@media(max-width:520px){.admin-horizontal-lane>section.admin-horizontal-card{flex-basis:calc(100vw - 96px);}}
.admin-horizontal-lane>div:has(>.admin-horizontal-lane) { flex:0 0 100%; min-width:0; }
@media(max-width:520px){.admin-tabbar button {font-size:10px;padding:5px 7px;}}

.home-density-compact .v-item{padding:6px}.home-density-compact .v-thumb{max-height:90px;overflow:hidden}.home-density-wide #videos .v-item{width:100%}.custom-text-on #stationName,.custom-text-on .phero-name,.custom-text-on .side-preview-nav h2,.custom-text-on .section-sub{color:var(--heading-text)!important;background:none!important;-webkit-text-fill-color:var(--heading-text)!important}.custom-text-on .phero-sub,.custom-text-on .now-playing h2{color:var(--heading-text)!important}
#reelsPanel{position:fixed;z-index:100;max-height:70dvh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;box-sizing:border-box}#reelsPanel[hidden]{display:none}#reelsPanel a{color:var(--accent)}#reelsPanel video{width:100%;max-height:50dvh}#reelsPanel .reel-item{padding:10px 0;border-bottom:1px solid var(--border)}
