/* منقول كما هو من الموقع القديم: app/player.css و app/globals.css (المشغّل الخاص، مشغّل يوتيوب، إطار درايف، شاشة «جاري التشغيل»، الإذاعة). */

/* ---------- مشغّل الفيديو الخاص (components/DriveVideoPlayer.tsx، وتستعمله الإذاعة وبقية المشغّلات) ---------- */
.player.dp { background: #000; color: #fff; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; direction: ltr; --dp-a: var(--accent); }
.dp:focus-visible { box-shadow: 0 0 0 3px var(--focus) inset; }
.dp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.dp-surface { position: absolute; inset: 0; z-index: 1; touch-action: manipulation; cursor: pointer; }
.dp--idle { cursor: none; }
.dp--idle .dp-ui { opacity: 0; pointer-events: none; transform: translateY(6px); }
.dp--fs { border-radius: 0; }

.dp-center { position: absolute; z-index: 3; top: 50%; left: 50%; translate: -50% -50%; width: calc(68px * var(--dpc, 1)); height: calc(68px * var(--dpc, 1)); border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, .58); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); transition: transform .15s, background .15s; }
.dp-center svg { width: calc(34px * var(--dpc, 1)); height: calc(34px * var(--dpc, 1)); }
.dp-center:hover { background: var(--dp-a); color: var(--accent-ink); transform: scale(1.06); }

.dp-spin { position: absolute; z-index: 2; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--dp-a); animation: dp-rot .8s linear infinite; }
@keyframes dp-rot { to { transform: rotate(360deg); } }

.dp-flash { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; min-width: 84px; padding: 14px 12px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 1.05rem; pointer-events: none;
  background: rgba(0, 0, 0, .55); animation: dp-flash .65s ease-out forwards; }
.dp-flash--back { left: 9%; }
.dp-flash--fwd { right: 9%; }
@keyframes dp-flash { 0% { opacity: 0; transform: scale(.85); } 20% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }

.dp-ui { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; padding: 28px 10px 6px; transition: opacity .2s, transform .2s;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .45) 55%, transparent); }
.dp-row { display: flex; align-items: center; gap: 2px; }
.dp-row button, .dp-menu button { font: inherit; }
.dp-q { position: relative; display: flex; flex: none; }
.dp-row > button, .dp-q > button:not(.dp-tip), .dp-vol > button { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.dp-row > button:hover, .dp-q > button:not(.dp-tip):hover, .dp-vol > button:hover { background: rgba(255, 255, 255, .16); }
.dp-row > button:focus-visible, .dp-q > button:focus-visible, .dp-vol > button:focus-visible, .dp-menu button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.dp-row svg { width: 24px; height: 24px; }

/* فقاعة «اضغط للمشاهدة عبر Drive»: مؤقتة، سهمها يشير إلى زر درايف. */
.dp-tip { position: absolute; z-index: 5; bottom: calc(100% + 12px); right: -6px; width: max-content; max-width: min(210px, calc(100vw - 32px)); padding: 8px 12px; border: 0; border-radius: 12px;
  direction: rtl; text-align: center; font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.5; color: var(--accent-ink); background: color-mix(in srgb, var(--tip-bg, var(--accent)) var(--tip-op, 100%), transparent); cursor: default;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); animation: dp-tip-in .28s ease-out both, dp-tip-bob 1.6s ease-in-out .3s infinite; }
.dp-tip::after { content: ""; position: absolute; top: 100%; right: 20px; margin-top: -5px; width: 12px; height: 12px; background: inherit; border-radius: 2px; transform: rotate(45deg); }
/* «أسفل الشعار»: تنزل الفقاعة تحت الشريط خارج حافة المشغّل (يُفتح القصّ مؤقتًا ما دامت ظاهرة) وسهمها لأعلى. */
.dp-tip--below { bottom: auto; top: calc(100% + 12px); }
.dp-tip--below::after { top: auto; bottom: 100%; margin-top: 0; margin-bottom: -5px; }
.player.dp--tipbelow { overflow: visible; }
@keyframes dp-tip-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dp-tip-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.dp-time { font-size: .82rem; font-variant-numeric: tabular-nums; padding: 0 8px; opacity: .95; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.dp-grow { flex: 1; }
.dp-rate { font-size: .85rem; font-weight: 700; padding: 0 10px !important; }

.dp-vol { display: flex; align-items: center; }
.dp-vol input[type="range"] { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--dp-a); height: 18px; margin: 0; }
.dp-vol:hover input[type="range"], .dp-vol:focus-within input[type="range"] { width: 78px; opacity: 1; margin-inline: 4px 8px; }

/* شريط التقدّم */
.dp-seek { position: relative; height: 22px; display: flex; align-items: center; }
.dp-track { position: absolute; inset-inline: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; pointer-events: none; transition: height .12s, margin-top .12s;
  background: linear-gradient(to right, var(--dp-a) var(--p), rgba(255, 255, 255, .55) var(--p) var(--b), rgba(255, 255, 255, .25) var(--b)); }
.dp-seek:hover .dp-track, .dp-seek:focus-within .dp-track { height: 6px; margin-top: -3px; }
.dp-seek input[type="range"] { position: relative; width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: none; }
.dp-seek input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 22px; }
.dp-seek input[type="range"]::-moz-range-track { background: transparent; height: 22px; }
.dp-seek input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--dp-a); border: 2px solid #fff; transform: scale(0); transition: transform .12s; }
.dp-seek input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--dp-a); border: 2px solid #fff; transform: scale(0); transition: transform .12s; }
.dp-seek:hover input[type="range"]::-webkit-slider-thumb, .dp-seek input[type="range"]:focus-visible::-webkit-slider-thumb, .dp-seek input[type="range"]:active::-webkit-slider-thumb { transform: scale(1); }
.dp-seek:hover input[type="range"]::-moz-range-thumb, .dp-seek input[type="range"]:focus-visible::-moz-range-thumb, .dp-seek input[type="range"]:active::-moz-range-thumb { transform: scale(1); }

/* قائمة الإعدادات */
.dp-menu { position: absolute; inset-inline-end: 10px; bottom: 100%; margin-bottom: 4px; width: min(268px, calc(100% - 20px)); max-height: min(320px, 70%); overflow-y: auto; padding: 6px; border-radius: 14px;
  background: rgba(18, 26, 35, .96); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: start; }
.dp-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; text-align: start; }
.dp-menu button:hover { background: rgba(255, 255, 255, .12); }
.dp-menu button > span { flex: 1; }
.dp-menu button > small { opacity: .75; font-size: .8rem; }
.dp-menu button svg { width: 18px; height: 18px; flex: none; }
.dp-menu [aria-checked="true"] { color: var(--dp-a); font-weight: 700; }
.dp-menu-head { font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 10px 10px 0 0 !important; margin-bottom: 4px; }
.dp-menu-head svg { transform: scaleX(-1); }

/* اللمس: أهداف أكبر، ولا شريط صوت (الصوت من أزرار الجهاز) */
@media (pointer: coarse) {
  .dp-vol { display: none; }
  .dp-row > button, .dp-q > button:not(.dp-tip) { min-width: 38px; height: 44px; padding: 0 3px; flex-shrink: 0; }
  .dp-seek { height: 28px; }
  .dp-seek input[type="range"], .dp-seek input[type="range"]::-webkit-slider-runnable-track { height: 28px; }
  .dp-seek input[type="range"]::-webkit-slider-thumb { transform: scale(1); margin-top: 7px; }
  .dp-seek input[type="range"]::-moz-range-thumb { transform: scale(1); }
}
@media (max-width: 420px) { .dp-time { padding: 0 4px; font-size: .75rem; } .dp-rate { padding: 0 6px !important; } }
@media (prefers-reduced-motion: reduce) { .dp-ui, .dp-track, .dp-center { transition: none; } .dp-flash { animation-duration: .01s; } .dp-spin { animation-duration: 2s; } .dp-tip { animation: none; } }


/* مشغّل يوتيوب بواجهتنا (components/YouTubePlayer.tsx) */
.player--yt { overflow: hidden; }
.player--yt .yt-host { position: absolute; inset: 0; }
/* لا يصل أي نقر أو لمس إلى إطار يوتيوب نفسه: لا روابط ولا عناصر من واجهته (التحكم كله من أزرارنا عبر الـAPI). */
.player--yt .yt-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.yt-cover { position: absolute; inset: 0; z-index: 1; background: #000 center / cover no-repeat; }
.yt-surface { z-index: 2; }
.player--yt .dp-center { z-index: 4; }
.player--yt .dp-ui { z-index: 5; }
/* قائمة الإعدادات لمشغّل يوتيوب: عمودان — الجودة قائمة طولية قابلة للتمرير، والسرعة أزرار صغيرة تلتف بجانبها */
.yt-menu { position: absolute; z-index: 6; inset-inline: 8px; top: 8px; bottom: 62px; overflow: hidden; padding: 12px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; align-content: stretch;
  background: rgba(18, 26, 35, .94); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); direction: rtl; }
.yt-menu-row { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px; max-height: 100%; overflow-y: auto; }
.yt-menu-row b { flex: 1 1 100%; font-size: .85rem; opacity: .85; }
/* الجودة: قائمة طولية (زر في كل سطر) تتمرّر داخليًا إن لم تتسع */
.yt-menu-row--col { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.yt-menu-row--col b { flex: none; position: sticky; top: 0; padding-bottom: 4px; background: rgba(18, 26, 35, .98); }
.yt-menu-row--col button { flex: none; width: 100%; height: 34px; border-radius: 10px; text-align: start; }
.yt-menu-row button { font: inherit; font-size: .88rem; min-width: 56px; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.yt-menu-row button:hover { background: rgba(255, 255, 255, .14); }
.yt-menu-row button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.yt-menu-row button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* اللمس (الجوال):
   - قبل أول تشغيل: وسط الفيديو مثقوب (clip-path يؤثر على الضغط) فيصل اللمس الحقيقي إلى زر يوتيوب الأصلي ويبدأ التشغيل
     (الجوال يمنع أول تشغيل بأمر قادم من الصفحة).
   - بعد البدء: الطبقة تغطي كل الفيديو، والضغط على أي مكان يشغّل/يوقف عبر واجهة يوتيوب (تعمل بعد أول تشغيل).
     مشغّل يوتيوب على الجوال لا يشغّل/يوقف بلمس الفيديو نفسه حين controls=0، فلا نعتمد عليه.
   زر الوسط مؤشر مرئي فقط. */
@media (pointer: coarse) {
  .player--yt { --dpc-px: calc(68px * var(--dpc, 1)); }
  .player--yt .dp-center { pointer-events: none; width: var(--dpc-px); height: var(--dpc-px); background: rgba(0, 0, 0, .88); }
  .player--yt .yt-cover { pointer-events: none; }
  .player--yt.yt-idle .yt-host iframe { pointer-events: auto; }
  .player--yt.yt-idle .yt-surface {
    clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0,
      8% 18%, 8% 74%, 92% 74%, 92% 18%, 8% 18%, 0 0);
  }
  .player--yt.yt-idle .dp-center, .player--yt.yt-idle .yt-cover { display: none; }
}

/* أزرار يوتيوب الأصلية (NATIVE_CONTROLS في YouTubePlayer.tsx): يصل النقر واللمس إلى الإطار،
   والخروج إلى يوتيوب ممنوع بالـ sandbox + حاجز شفاف فوق شريط العنوان. */
.player--native .yt-host iframe { pointer-events: auto; }
.player--native .yt-guard { position: absolute; z-index: 3; inset-inline: 0; }
.player--native .yt-guard--top { top: 0; height: 56px; }
/* فوق شريط التحكم السفلي (--yt-ctl-h) وتحت منتصف الفيديو: هنا يعرض يوتيوب المقترحات عند الإيقاف. عدّل القيمتين إن لزم. */
/* الجانب الأيسر مستثنى (left) لأن زر الجودة وقائمته هناك؛ الحاجز يبدأ بعده حتى الحافة اليمنى. */
.player--native .yt-guard--rel { inset-inline: auto; left: var(--yt-keep-left, clamp(180px, 40%, 280px)); right: 0; bottom: var(--yt-ctl-h, 56px); height: var(--yt-rel-h, 26%); }
.player--native .yt-cover { pointer-events: auto; display: grid; place-items: center; }
.player--native .dp-center { pointer-events: auto; }
/* الشريط المصغّر: كله زر للعودة، فلا يستقبل الإطار شيئًا */

/* ملء الشاشة لمشغّل درايف: الغلاف هو الذي يملأ الشاشة، والإطار يُرسم أكبر ثم يُصغَّر بـ --dz كما في الوضع العادي. */
.dp-fsbtn { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.dp-fsbtn svg { width: 20px; height: 20px; }
.dp-fsbtn:hover { background: var(--accent); color: var(--accent-ink); }
.player--frame.dp-frame--fs { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; overflow: hidden; background: #000; }
@media (pointer: coarse) {
  .player--frame.dp-frame--fs iframe[src*="drive.google.com"] {
    inset: 0 auto auto 0; width: calc(100% / var(--dz)); height: calc(100% / var(--dz));
    transform: scale(var(--dz)); transform-origin: 0 0;
  }
}

/* ---------- شاشة «جاري التشغيل» فوق المشغّل ---------- */
.playload { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; text-align: center;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 38%, #0c141b) 0%, #070b10 72%); color: #fff;
  transition: opacity .4s ease; container-type: size; }
.playload--out { opacity: 0; pointer-events: none; }
.pl-stage { --sz: clamp(84px, 38cqmin, 170px); position: relative; display: grid; place-items: center; width: var(--sz); aspect-ratio: 1; }
.pl-logo { position: relative; z-index: 2; width: 62%; height: 62%; display: grid; place-items: center; animation: pl-bounce 1.15s cubic-bezier(.45, 0, .55, 1) infinite; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.pl-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pl-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.pl-ring { position: absolute; inset: 14%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 80%, #fff); opacity: 0; animation: pl-ping 1.8s ease-out infinite; }
.pl-orbit { position: absolute; inset: 0; animation: pl-spin 5s linear infinite; }
.pl-orbit i { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; animation: pl-twinkle 1.2s ease-in-out infinite; }
.pl-orbit i:nth-child(1) { transform: rotate(0deg) translateY(calc(var(--sz) * -.58)); background: #ffd24a; }
.pl-orbit i:nth-child(2) { transform: rotate(60deg) translateY(calc(var(--sz) * -.58)); background: #ff7a6b; animation-delay: .2s; }
.pl-orbit i:nth-child(3) { transform: rotate(120deg) translateY(calc(var(--sz) * -.58)); background: #5ee0c0; animation-delay: .4s; }
.pl-orbit i:nth-child(4) { transform: rotate(180deg) translateY(calc(var(--sz) * -.58)); background: #7db7ff; animation-delay: .6s; }
.pl-orbit i:nth-child(5) { transform: rotate(240deg) translateY(calc(var(--sz) * -.58)); background: #c59bff; animation-delay: .8s; }
.pl-orbit i:nth-child(6) { transform: rotate(300deg) translateY(calc(var(--sz) * -.58)); background: #ffa6d8; animation-delay: 1s; }
.pl-name { font-weight: 700; font-size: 1rem; opacity: .95; }
.pl-text { font-family: var(--font); font-weight: 700; font-size: clamp(1rem, 4.2cqmin, 1.45rem); letter-spacing: .01em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.pl-dots i { font-style: normal; display: inline-block; animation: pl-dot 1.2s ease-in-out infinite; }
.pl-dots i:nth-child(2) { animation-delay: .15s; }
.pl-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pl-bounce { 0%, 100% { transform: translateY(6%) scale(.96, 1.03); } 50% { transform: translateY(-10%) scale(1.04, .98); } }
@keyframes pl-ping { 0% { transform: scale(.7); opacity: .75; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-twinkle { 0%, 100% { opacity: .35; scale: .7; } 50% { opacity: 1; scale: 1.25; } }
@keyframes pl-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.28em); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pl-logo, .pl-ring, .pl-orbit, .pl-orbit i, .pl-dots i { animation: none !important; }
  .pl-orbit i { opacity: .8; }
}

/* ---------- الإذاعة (/radio): مشغّل درايف أعلى الصفحة وقائمة أناشيد على لوحة زجاجية مبهجة للأطفال ---------- */
.radio { max-width: 760px; margin-inline: auto; }
.radio-player { padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.radio-player .player { aspect-ratio: 16 / 7; min-height: 150px; }
.radio-now { display: flex; align-items: center; gap: 10px; }
.radio-title { flex: 1; min-width: 0; text-align: center; line-height: 1.35; }
.radio-title strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-title small { color: var(--mute); font-size: .78rem; }
.radio-step { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.radio-step:hover:not(:disabled) { border-color: var(--accent); transform: scale(1.06); }
.radio-step:disabled { opacity: .45; cursor: default; }
.radio-step svg { transform: rotate(90deg); }
/* مشغّل الصوت المباشر (عنصر audio) */
.radio-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); direction: ltr; }
.radio-play { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.radio-play svg { width: 26px; height: 26px; }
.radio-play:hover { filter: brightness(1.08); }
.radio-bar input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; margin: 0; cursor: pointer; touch-action: pan-y; }
.radio-bar input[type="range"]:disabled { cursor: default; opacity: .5; }
/* الصوت: أيقونة بجانب عداد الوقت؛ بالضغط عليها ينفتح منزلق طولي فوقها ويختفي بعد التحديد. */
.radio-vol { position: relative; flex: none; }
.radio-vol > button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: transparent; color: var(--mute); }
.radio-vol > button:hover, .radio-vol > button[aria-expanded="true"] { color: var(--accent); }
.radio-vol svg { width: 22px; height: 22px; }
.radio-vol-pop { position: absolute; z-index: 6; top: calc(100% + 8px); right: 0; width: 44px; height: 140px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.radio-vol-pop input[type="range"] { position: absolute; left: 50%; top: 50%; flex: none; width: 110px; height: 28px; margin: -14px 0 0 -55px; transform: rotate(-90deg); touch-action: none; }
.radio-time { flex: none; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--mute); white-space: nowrap; }

/* اللوحة: ألوان فرحة تطفو خلف عناصر زجاجية شفافة (التمويه على العناصر فيظهر اللون من خلفها) */
.radio-glass { position: relative; isolation: isolate; overflow: hidden; margin: 16px 16px 0; padding: 14px 12px 12px; border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, #ffd54a 26%, var(--surface)), color-mix(in srgb, #6ee7ff 24%, var(--surface)) 55%, color-mix(in srgb, #ff9ad5 26%, var(--surface)));
  border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: 0 10px 30px color-mix(in srgb, #7c5cff 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
.radio-glass::before, .radio-glass::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.radio-glass::before { width: 190px; height: 190px; top: -50px; inset-inline-start: -40px; background: radial-gradient(circle at 35% 35%, #ff8a5c, #ff4fa3 70%); opacity: .55; animation: radio-float 9s ease-in-out infinite; }
.radio-glass::after { width: 230px; height: 230px; bottom: -70px; inset-inline-end: -50px; background: radial-gradient(circle at 60% 40%, #5ee0ff, #7c5cff 75%); opacity: .5; animation: radio-float 11s ease-in-out infinite reverse; }
.radio-glass-h { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; font-weight: 700; font-size: 1.02rem; }
.radio-glass-h span { display: inline-block; animation: radio-bounce 2.2s ease-in-out infinite; }

.radio-list { display: grid; gap: 9px; max-height: min(52dvh, 440px); overflow-y: auto; overflow-x: hidden; padding: 4px 10px 6px; scroll-behavior: smooth; overscroll-behavior: contain; touch-action: pan-y; }
.radio-list li { --c: #22b8f0; animation: radio-in .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 55ms); }
.radio-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: start; cursor: pointer; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 20px;
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), border-color .18s, background .18s, box-shadow .18s; }
.radio-item:hover { transform: translateX(-5px) scale(1.015); border-color: var(--c); }
.radio-item:active { transform: scale(.985); }
/* اللمس: بلا إزاحة/تكبير عند الضغط كي لا تتجاوز الأسطر عرض القائمة */
@media (hover: none) { .radio-item:hover { transform: none; } }
.radio-item.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 24%, color-mix(in srgb, var(--surface) 55%, transparent)); box-shadow: 0 5px 16px color-mix(in srgb, var(--c) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
.radio-n { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 70%); box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 50%, transparent); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.radio-item.on .radio-n { animation: radio-wiggle 1.6s ease-in-out infinite; }
.radio-t { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-go { color: var(--c); opacity: 0; transform: translateX(6px); transition: opacity .18s, transform .18s; display: grid; }
.radio-item:hover .radio-go, .radio-item:focus-visible .radio-go { opacity: 1; transform: none; }
.radio-item.on .radio-go { display: none; }
.radio-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
.radio-eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: radio-eq 1s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: -.35s; }
.radio-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes radio-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes radio-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes radio-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, 14px); } }
@keyframes radio-bounce { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(6deg); } }
@keyframes radio-wiggle { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@media (max-width: 600px) { .radio-player .player { aspect-ratio: 16 / 9; } .radio-glass { margin-inline: 12px; border-radius: 24px; } }


/* أساس المشغّل (من globals.css القديم) */
.player .soon { position: absolute; inset-inline: 0; bottom: 12px; text-align: center; font-size: .85rem; opacity: .9; color: #fff; }
.player--frame { background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* تصغير واجهة مشغّل درايف على الجوال (--dz من «حجم أزرار درايف على الجوال») */
@media (max-width: 599px) {
  .player--frame { overflow: hidden; }
  .player--frame iframe[src*="drive.google.com"] {
    inset: 0 auto auto 0; width: calc(100% / var(--dz, .8)); height: calc(100% / var(--dz, .8));
    transform: scale(var(--dz, .8)); transform-origin: 0 0;
  }
}
/* القوائم بلا علامات (كان في الإعادة العامة لأنماط الموقع القديم) */
.radio-list, .radio-list li { list-style: none; }
.radio-list { margin: 0; }
