/* مشغّلات الصوت والفيديو ومعرض الصور — إذاعة صوت الأسرى */

.ib { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); font: 700 var(--t-xs)/1 var(--f); transition: background .2s, color .2s, transform var(--snap-d) var(--snap); }
.ib:hover { background: var(--surface); color: var(--ink); }
.ib:active { transform: scale(.9); }
.ib:disabled { opacity: .35; pointer-events: none; }
.ib.rate { width: auto; min-width: 44px; padding: 0 8px; border-radius: 22px; font-variant-numeric: tabular-nums; }
.pp { display: inline-grid; place-items: center; }
.pp .i { grid-area: 1 / 1; transition: opacity .2s, transform var(--snap-d) var(--snap); }
.pp .i + .i { opacity: 0; transform: scale(.4); }
[data-state="playing"] .pp .i:first-child, .is-playing .pp .i:first-child { opacity: 0; transform: scale(.4); }
[data-state="playing"] .pp .i + .i, .is-playing .pp .i + .i { opacity: 1; transform: none; }
[data-ap="mute"] .i + .i, [data-v="mute"] .i + .i { display: none; }
[data-muted="1"] [data-ap="mute"] .i:first-child, [data-muted="1"] [data-v="mute"] .i:first-child { display: none; }
[data-muted="1"] [data-ap="mute"] .i + .i, [data-muted="1"] [data-v="mute"] .i + .i { display: block; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 35%; border-radius: 2px; background: currentColor; }
.eq.big { height: 22px; gap: 3px; } .eq.big i { width: 4px; }
[data-state="playing"] .eq i, .qi.now .eq i, .is-playing .eq i { animation: lv .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.55s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; } .eq i:nth-child(5) { animation-delay: -.42s !important; } .eq i:nth-child(6) { animation-delay: -.7s !important; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--red-f); color: #fff; font-size: var(--t-xs); font-weight: 700; line-height: 1.7; white-space: nowrap; }
.live-pill .dot { background: #fff; }

/* الموجة الصوتية */
.wf { --p: 0; --h: -1; position: relative; flex: 1; min-width: 0; height: 40px; cursor: pointer; touch-action: none; border-radius: 4px; }
.wf-b, .wf-f { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.wf i { flex: 1; min-width: 1.5px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 18%, var(--bg)); }
.wf-f { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.wf-f i { background: var(--brand); }
.wf:not(.drag) .wf-f { transition: clip-path .12s linear; }
.wf-x { position: absolute; inset-block: 0; left: calc(var(--h) * 100%); width: 2px; border-radius: 1px; background: var(--ink); opacity: 0; transition: opacity .2s; pointer-events: none; }
.wf-tip { position: absolute; bottom: calc(100% + 6px); left: calc(var(--h) * 100%); translate: -50% 0; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: var(--t-xs); font-variant-numeric: tabular-nums; line-height: 1.6; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.wf-x, .wf-tip { display: none; }
.wf.drag .wf-tip { display: block; opacity: 1; }
@media (hover: hover) { .wf:hover .wf-x { display: block; opacity: .4; } .wf:hover .wf-tip { display: block; opacity: 1; } }
.wf.big { height: 64px; } .wf.mini { height: 28px; }
.wf.mini i { min-width: 1px; }
.wf:focus-visible { outline-offset: 4px; }

/* الشريط السفلي */
.ap { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-block-start: 1px solid var(--line); box-shadow: 0 -12px 32px rgb(0 0 0 / .08); transform: translateY(110%); transition: transform var(--spring-d) var(--spring); }
.ap.on { transform: none; }
.ap-line { position: absolute; inset-inline: 0; top: -1px; height: 3px; direction: ltr; }
.ap-line i { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.ap-in { display: flex; align-items: center; gap: 12px; min-height: 72px; padding-block: 8px; }
.ap-art { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; border-start-end-radius: 16px; overflow: hidden; background: var(--surface); cursor: pointer; transition: transform var(--snap-d) var(--snap); }
.ap-art:hover { transform: scale(1.06); }
.ap-art img { width: 100%; height: 100%; object-fit: cover; }
.ap-art .eq { position: absolute; inset: 0; justify-content: center; align-items: center; height: auto; padding-block: 16px; background: rgb(0 0 0 / .4); color: #fff; opacity: 0; transition: opacity .3s; }
.ap[data-state="playing"] .ap-art .eq { opacity: 1; }
.ap-meta { flex: 1; display: grid; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ap-t { font-size: var(--t-sm); font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-s { font-size: var(--t-xs); line-height: 1.6; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.ap-ctl .skip { display: none; }
.ap-pp { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform var(--snap-d) var(--snap), background .2s; }
.ap-pp:hover { transform: scale(1.05); } .ap-pp:active { transform: scale(.92); }
.ap-pp .ring { position: absolute; inset: -5px; width: 58px; height: 58px; transform: rotate(-90deg); pointer-events: none; }
.ap-pp .ring circle { fill: none; stroke: var(--line); stroke-width: 2; }
.ap-pp .ring .v { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 141.37; stroke-dashoffset: 141.37; }
.ap.busy .ap-pp .ring { animation: spin 1s linear infinite; }
.ap-scrub { display: none; flex: 1.618 1 0; align-items: center; gap: 12px; min-width: 0; }
.t-cur, .t-rem { flex: none; min-width: 4.5ch; font-size: var(--t-xs); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-rem { text-align: end; }
.ap-live { display: none; flex: 1.618 1 0; align-items: center; gap: 12px; min-width: 0; color: var(--red); }
.ap-prog { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-tools { display: none; align-items: center; gap: 2px; flex: none; }
.vol { display: inline-flex; align-items: center; }
.vol-r { width: 0; opacity: 0; accent-color: var(--brand); transition: width .35s var(--spring), opacity .25s; }
.vol:hover .vol-r, .vol:focus-within .vol-r { width: 84px; opacity: 1; margin-inline: 4px; }
.ap[data-live="1"] .ap-scrub, .ap[data-live="1"] .skip, .ap[data-live="1"] .rate { display: none !important; }
body.has-ap { padding-block-end: 72px; }
body.has-ap .fab { inset-block-end: 88px; }

/* اللوحة الموسّعة */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; overflow: hidden; background: rgb(8 10 14 / .6); opacity: 0; transition: opacity .4s; }
.sheet-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(56px) saturate(1.5) brightness(.5); transform: scale(1.25); }
.sheet.in .sheet-bg { opacity: 1; }
.sheet-panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 1120px; height: min(94dvh, 780px); border-radius: 22px 22px 0 0; overflow: hidden; background: color-mix(in srgb, var(--deep) 82%, transparent); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); color: var(--on-deep); box-shadow: 0 -20px 60px rgb(0 0 0 / .35); transform: translateY(100%); transition: transform var(--spring-d) var(--spring); }
.sheet.in .sheet-panel { transform: none; }
.sheet .ib { color: var(--on-deep); }
.sheet .ib:hover { background: rgb(255 255 255 / .1); color: var(--on-deep); }
.sheet-top { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; touch-action: none; cursor: grab; }
.sheet-top:active { cursor: grabbing; }
.grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgb(255 255 255 / .3); }
.sheet-k { flex: 1; text-align: center; font-size: var(--t-xs); font-weight: 700; color: var(--on-deep-m); }
.sheet-body { flex: 1; min-height: 0; overflow: auto; display: grid; align-content: start; }
.sheet-main { display: flex; flex-direction: column; gap: 16px; padding: 8px 24px 24px; }
.sheet-art { position: relative; align-self: center; width: min(100%, 300px); aspect-ratio: 1; border-radius: 16px; border-start-end-radius: 44px; overflow: hidden; box-shadow: 0 24px 48px rgb(0 0 0 / .4); transform: scale(.9); transition: transform var(--spring-d) var(--spring); }
.sheet[data-state="playing"] .sheet-art { transform: none; }
.sheet-art img { width: 100%; height: 100%; object-fit: cover; }
.sheet-art .eq { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; color: #fff; opacity: 0; transition: opacity .3s; }
.sheet[data-state="playing"] .sheet-art .eq { opacity: 1; }
.sheet-info { display: grid; gap: 4px; justify-items: start; }
.sheet-info .chip { background: rgb(255 255 255 / .12); color: var(--on-deep); }
.sheet-info h2 { font-size: var(--t-lg); line-height: 1.5; }
.sheet-s { font-size: var(--t-sm); color: var(--on-deep-m); }
.sheet .wf i { background: rgb(255 255 255 / .2); }
.sheet .wf-f i { background: var(--gold-d); }
.sheet .wf-x { background: #fff; } .sheet .wf-tip { background: #fff; color: #111; }
.sheet-times { display: flex; justify-content: space-between; gap: 12px; margin-block-start: 8px; }
.sheet-times .t-cur, .sheet-times .t-rem { color: var(--on-deep-m); }
.sheet-chap { flex: 1; text-align: center; font-size: var(--t-xs); font-weight: 700; color: var(--gold-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.sheet-live { display: none; align-items: center; gap: 12px; min-height: 64px; }
.sheet-live .ap-prog { color: var(--on-deep-m); font-size: var(--t-sm); }
.sheet[data-live="1"] .sheet-scrub, .sheet[data-live="1"] .skip, .sheet[data-live="1"] .rate { display: none; }
.sheet[data-live="1"] .sheet-live { display: flex; }
.sheet-ctl { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.sheet-ctl .ib { width: 40px; height: 40px; }
.sheet-main, .sheet-pane { overflow-x: hidden; }
.ap-pp.xl { width: 72px; height: 72px; background: var(--gold-d); color: var(--on-gold); box-shadow: 0 12px 28px rgb(0 0 0 / .35); }
.sheet-side { display: flex; flex-direction: column; min-height: 320px; padding: 8px 24px 24px; }
.seg-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgb(255 255 255 / .08); }
.seg-tabs button { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--on-deep-m); font: 700 var(--t-xs)/1 var(--f); transition: color .3s; }
.seg-tabs button[aria-selected="true"] { color: var(--on-deep); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: rgb(255 255 255 / .14); transition: transform var(--spring-d) var(--spring), width var(--spring-d) var(--spring); }
.sheet-pane { flex: 1; min-height: 0; overflow: auto; margin-block-start: 12px; padding-block: 8px; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 32px), transparent); }
.cue, .chap { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--on-deep-m); font: 500 var(--t-md)/1.8 var(--f); text-align: start; cursor: pointer; transition: color .35s, background .35s, transform var(--spring-d) var(--spring); }
.cue bdi, .chap bdi { padding-block-start: 3px; font-size: var(--t-xs); opacity: .7; font-variant-numeric: tabular-nums; }
.cue:hover, .chap:hover { background: rgb(255 255 255 / .06); color: var(--on-deep); }
.cue.now, .chap.now { background: rgb(255 255 255 / .1); color: var(--on-deep); transform: translateX(-4px); }
[dir="ltr"] .cue.now, [dir="ltr"] .chap.now { transform: translateX(4px); }
.cue.now span { font-weight: 700; }
.chap.now bdi { color: var(--gold-d); opacity: 1; }
.qi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--on-deep); text-align: start; cursor: pointer; }
.qi:hover, .qi.now { background: rgb(255 255 255 / .08); }
.qi img { width: 48px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; }
.qi span { flex: 1; display: grid; min-width: 0; }
.qi b { font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi small { font-size: var(--t-xs); color: var(--on-deep-m); }
.qi .eq { flex: none; color: var(--gold-d); }
html.sheet-open, html.sheet-open body { overflow: hidden; }

/* مشغّل الفيديو */
.vhost { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.vp { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r); border-start-end-radius: var(--rw); background: #000; color: #fff; outline: none; isolation: isolate; container-type: inline-size; }
.vp:focus-visible { box-shadow: 0 0 0 3px var(--brand); }
.vp video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-hit { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }
.vp[data-state="playing"]:not(.ui) .vp-hit { cursor: none; }
.vp-big { position: absolute; left: 50%; top: 50%; z-index: 3; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 14px 34px rgb(0 0 0 / .4); transition: transform var(--snap-d) var(--snap), opacity .25s; }
.vp-big svg.i { margin-inline-start: 4px; }
.vp-big:hover { transform: scale(1.08); }
.vp-big .ring { position: absolute; inset: -10px; width: 96px; height: 96px; }
.vp-big .ring circle { fill: none; stroke: #fff; stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ping 2.2s var(--ease) infinite; }
.vp[data-state="playing"] .vp-big, .vp[data-state="ended"] .vp-big { opacity: 0; transform: scale(.6); pointer-events: none; }
.vp-spin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px; border: 3px solid rgb(255 255 255 / .25); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: spin .8s linear infinite; pointer-events: none; transition: opacity .2s; }
.vp.busy .vp-spin { opacity: 1; }
.vp-ui { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; padding: 40px 12px 8px; background: linear-gradient(transparent, rgb(0 0 0 / .78)); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform var(--spring-d) var(--spring); }
.vp.ui .vp-ui, .vp[data-state="paused"] .vp-ui, .vp:focus-within .vp-ui { opacity: 1; transform: none; }
.vp[data-state="idle"] .vp-ui { opacity: 0; pointer-events: none; transform: translateY(10px); }
.vp-scrub { --p: 0; --b: 0; --h: 0; position: relative; display: flex; align-items: center; height: 22px; cursor: pointer; touch-action: none; }
.vp-rail { position: relative; flex: 1; height: 4px; border-radius: 3px; background: rgb(255 255 255 / .22); transition: height .2s var(--ease); }
.vp-scrub:hover .vp-rail, .vp-scrub.drag .vp-rail, .vp-scrub:focus-visible .vp-rail { height: 7px; }
.vp-buf, .vp-prog { position: absolute; inset-block: 0; left: 0; border-radius: 3px; }
.vp-buf { width: calc(var(--b) * 100%); background: rgb(255 255 255 / .32); }
.vp-prog { width: calc(var(--p) * 100%); background: var(--gold-d); }
.vp-tk { position: absolute; inset-block: 0; width: 3px; margin-left: -1.5px; background: rgb(0 0 0 / .65); }
.vp-knob { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 15px; height: 15px; margin: -7.5px; border-radius: 50%; background: var(--gold-d); box-shadow: 0 2px 6px rgb(0 0 0 / .4); transform: scale(0); transition: transform var(--snap-d) var(--snap); }
.vp-scrub:hover .vp-knob, .vp-scrub.drag .vp-knob, .vp-scrub:focus-visible .vp-knob { transform: scale(1); }
.vp-tip { position: absolute; bottom: 26px; left: calc(var(--h) * 100%); translate: -50% 0; display: grid; justify-items: center; padding: 4px 10px; border-radius: 8px; background: rgb(0 0 0 / .85); font-size: var(--t-xs); line-height: 1.5; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vp-tip small { color: var(--gold-d); direction: rtl; }
.vp-tip small:empty { display: none; }
.vp-scrub:hover .vp-tip { opacity: 1; }
.vp-row { display: flex; align-items: center; gap: 2px; }
.vp .ib { width: 40px; height: 40px; color: #fff; }
.vp .ib:hover { background: rgb(255 255 255 / .16); color: #fff; }
.vp .vol-r { accent-color: var(--gold-d); }
.vp-time { margin-inline: 8px; font-size: var(--t-xs); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp-chap { flex: 1; min-width: 0; font-size: var(--t-xs); font-weight: 700; color: rgb(255 255 255 / .85); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.vp-cc[aria-pressed="true"] { color: var(--gold-d) !important; }
.vp-fs .i + .i, .vp.fs .vp-fs .i:first-child { display: none; }
.vp.fs .vp-fs .i + .i { display: block; }
.vp.fs { border-radius: 0; }
.vp-cap { position: absolute; inset-inline: 6%; bottom: 18px; z-index: 2; text-align: center; pointer-events: none; transition: bottom var(--spring-d) var(--spring); }
.vp.ui .vp-cap, .vp[data-state="paused"] .vp-cap { bottom: 86px; }
.vp-cap span { padding: 3px 10px; border-radius: 6px; background: rgb(0 0 0 / .74); font-size: clamp(.875rem, 2.4cqi, 1.375rem); font-weight: 500; line-height: 2; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vp[data-cc="0"] .vp-cap, .vp:not(.has-cap) .vp-cap, .vp[data-state="idle"] .vp-cap { display: none; }
.vp-rip { position: absolute; top: 50%; z-index: 2; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; background: rgb(255 255 255 / .2); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.vp-rip.l { left: 10%; } .vp-rip.r { right: 10%; }
.vp-rip.go { animation: rip .65s var(--ease); }
.vp-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; padding: 16px; background: rgb(0 0 0 / .74); animation: fadein .3s ease-out; }
.vp-again { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid rgb(255 255 255 / .5); border-radius: 22px; background: none; color: #fff; font: 700 var(--t-sm)/1 var(--f); }
.vp-again:hover { background: #fff; color: #111; }
.vp-next { display: grid; gap: 8px; justify-items: center; direction: rtl; }
.vp-next small { font-size: var(--t-xs); color: rgb(255 255 255 / .8); }
.vp-go { display: grid; gap: 6px; width: 200px; padding: 0; border: 0; background: none; color: #fff; text-align: center; cursor: pointer; }
.vp-go img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 2px var(--gold-d); }
.vp-go b { font: 700 var(--t-sm)/1.5 var(--f); }
.vp-stay { border: 0; background: none; color: rgb(255 255 255 / .75); font: 500 var(--t-xs)/1 var(--f); text-decoration: underline; cursor: pointer; }
.vp-x { display: none; }
.vp.float { position: fixed; z-index: 55; inset-block-end: 16px; inset-inline-start: 16px; width: min(360px, calc(100vw - 32px)); height: auto; aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgb(0 0 0 / .35); animation: floatin var(--spring-d) var(--spring); }
body.has-ap .vp.float { inset-block-end: 92px; }
.vp.float .vp-x { position: absolute; top: 6px; right: 6px; z-index: 6; display: grid; width: 32px; height: 32px; background: rgb(0 0 0 / .6); }
.vp.float .vp-chap, .vp.float .vol, .vp.float [data-v="pip"], .vp.float [data-v="rate"], .vp.float .skip, .vp.float .vp-time, .vp.float .vp-cap { display: none; }
@container (max-width: 560px) {
  .vp .vol-r, .vp-chap, .vp [data-v="pip"], .vp [data-v="rate"] { display: none; }
  .vp-row { justify-content: space-between; }
  .vp-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vp-big .ring { inset: -8px; width: 76px; height: 76px; }
  .vp.ui .vp-cap, .vp[data-state="paused"] .vp-cap { bottom: 78px; }
}

/* معرض الصور */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(12 10 9 / .94); color: #fff; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lb::backdrop { background: transparent; }
.lb-top { display: flex; align-items: center; gap: 4px; padding: 8px 16px; }
.lb-n { margin-inline-end: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb .ib { color: #fff; } .lb .ib:hover { background: rgb(255 255 255 / .12); color: #fff; }
.lb-stage { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; }
.lb-stage:active { cursor: grabbing; }
.lb-track { display: flex; height: 100%; will-change: transform; }
.lb-track figure { flex: 0 0 100%; display: grid; place-items: center; margin: 0; padding: 8px 64px; }
.lb-track img { max-width: 100%; max-height: calc(100dvh - 210px); border-radius: 12px; border-start-end-radius: 32px; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 52px; height: 52px; background: rgb(255 255 255 / .1) !important; }
.lb-nav:hover { background: rgb(255 255 255 / .22) !important; }
.lb-nav.prev { inset-inline-start: 12px; } .lb-nav.next { inset-inline-end: 12px; }
[dir="ltr"] .lb-nav svg { transform: scaleX(-1); }
.lb-cap { padding: 8px 16px; text-align: center; font-size: var(--t-sm); font-weight: 500; }
.lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 8px 16px 16px; overflow-x: auto; scrollbar-width: none; }
.lb-thumbs button { flex: none; width: 72px; height: 46px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; opacity: .45; transition: opacity .25s, transform var(--snap-d) var(--snap); cursor: pointer; }
.lb-thumbs button:hover { opacity: .8; }
.lb-thumbs button[aria-current="true"] { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 2px var(--gold-d); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* الإشعار */
.toast { position: fixed; inset-block-end: 96px; left: 50%; z-index: 90; translate: -50% 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--t-sm); font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .25s, transform var(--spring-d) var(--spring); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rip { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes floatin { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes fadein { from { opacity: 0; } }

@media (min-width: 760px) {
  .ap-ctl .skip { display: inline-grid; }
  .ap-meta { flex: 0 1 220px; }
  .ap-scrub, .ap-tools { display: flex; }
  .ap[data-live="1"] .ap-live { display: flex; }
}
@media (min-width: 900px) {
  .sheet-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); overflow: hidden; }
  .sheet-main { overflow: auto; padding-block-end: 32px; }
  .sheet-side { min-height: 0; padding-block-start: 16px; border-inline-start: 1px solid rgb(255 255 255 / .1); }
  .sheet-art { width: min(100%, 320px); }
}
@media (max-width: 899px) { .sheet-panel { height: 96dvh; } }
@media (prefers-reduced-motion: reduce) {
  .eq i, .vp-big .ring circle, .vp-spin, .ap.busy .ap-pp .ring { animation: none !important; }
}
