/* breaking.css */
/* «العاجل» on the new website: the bottom ticker + the «تن تن» breaking alert.
   1:1 port of the live mu-plugin sawtelghad-breaking-news-system.php v2.5.1 (CSS lines 129 to 1141): same ids, same keyframes,
   same sizes and timings. Every value the panel controls arrives as a CSS variable written by Ticker.tsx / AlertMount.tsx
   (site.ticker / site.alert); the fallbacks below are the live values. Layout contract: the ticker sits directly ABOVE the radio
   dock (bottom: var(--radio-h)), z-index 60; the alert layer has the same geometry at z-index 9999. */

:root {
    --sgh-breaking-bottom: var(--radio-h, 70px);
    --sgh-breaking-height: var(--brk-h, 50px);
    --sgh-breaking-red: var(--brk-bg, #910026);
    --sgh-breaking-yellow: var(--brk-label-bg, #ffc107);
    --brk-f-text: var(--f-sub, 'Alexandria'), 'Tajawal', Arial, sans-serif;   /* live: Alexandria for the ticker and the alert text */
    --brk-f-label: var(--f-card, 'Lemonada'), 'Tajawal', Arial, sans-serif;  /* live: Lemonada for «خبر عاجل» */
    --brk-f-base: var(--f-body, 'Tajawal'), Arial, sans-serif;
}

@keyframes sghDelayedWipeAndBuild {
    0% { width: 0; height: 1px; }
    70% { width: 100%; height: 1px; }
    100% { width: 100%; height: var(--sgh-breaking-height); }
}
@keyframes sghMarqueeScroll {
    from { transform: translate3d(var(--sgh-block-px, -50%), 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}
@keyframes sghBuildUpBar {
    0% { transform: translateX(100%); height: 4px; }
    50% { transform: translateX(0); height: 4px; }
    100% { transform: translateX(0); height: var(--sgh-breaking-height); }
}
@keyframes sghWipeInLabel { from { width: 0%; } to { width: 100%; } }
@keyframes sghTyping { from { width: 0; } to { width: 100%; } }
@keyframes sghBlinkCaret { from, to { opacity: 0; } 50% { opacity: 1; } }
@keyframes sghCrtPowerOff {
    0% { transform: translate3d(0, 0, 0) scale3d(1, 1, 1); opacity: 1; }
    35% { transform: translate3d(0, 0, 0) scale3d(1, .12, 1); opacity: 1; }
    48% { transform: translate3d(0, 0, 0) scale3d(1, .055, 1); opacity: 1; }
    68% { transform: translate3d(0, 0, 0) scale3d(.62, .045, 1); opacity: 1; }
    82% { transform: translate3d(0, 0, 0) scale3d(.22, .038, 1); opacity: 1; }
    92% { transform: translate3d(0, 0, 0) scale3d(.055, .028, 1); opacity: .98; }
    97% { transform: translate3d(0, 0, 0) scale3d(.016, .016, 1); opacity: .82; }
    100% { transform: translate3d(0, 0, 0) scale3d(0, 0, 1); opacity: 0; }
}
@keyframes sghCrtCenterGlow {
    0%, 65% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.15); }
    82% { opacity: .15; transform: translate3d(-50%, -50%, 0) scale(.45); }
    92% { opacity: .88; transform: translate3d(-50%, -50%, 0) scale(1); }
    97% { opacity: .52; transform: translate3d(-50%, -50%, 0) scale(.55); }
    100% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.05); }
}
@keyframes sghWipeOutLabel { from { width: 100%; } to { width: 0%; } }
@keyframes sghUntyping { from { width: 100%; } to { width: 0; } }
@keyframes sghBrkFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ------------------------------------------------------------------ the ticker (z 60) */
#sgh-breaking-system {
    position: fixed;
    right: 0;
    left: 0;
    bottom: var(--sgh-breaking-bottom);
    width: 100%;
    height: var(--sgh-breaking-height);
    z-index: 60;
    pointer-events: none;
    font-family: var(--brk-f-base);
}
#sgh-breaking-marquee {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    overflow: hidden;
    background-color: var(--sgh-breaking-red);
    color: var(--brk-ink, #fff);
    direction: ltr;
    display: flex;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .30);
    pointer-events: auto;
    transform-origin: bottom center;
    animation: sghDelayedWipeAndBuild var(--brk-enter, .9s) cubic-bezier(.77, 0, .175, 1) 0s forwards;
    -webkit-tap-highlight-color: transparent;
}
#sgh-breaking-marquee-track {
    /* note 68 B: the strip = [head clone][the list], anchored to the bar's right edge; breaking.js moves it with one compositor
       animation in px (no CSS keyframes, no percentages). Without the script it simply stands still. */
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    direction: ltr;
    margin: 0 !important;
    padding: 0 !important;
    height: var(--sgh-breaking-height);
    line-height: var(--sgh-breaking-height) !important;
    white-space: nowrap;
    font-family: var(--brk-tk-font, var(--brk-f-text));
    font-size: var(--brk-fs-d, 19px);
    font-weight: var(--brk-tk-w, 800) !important;
    color: var(--brk-ink, #fff) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: none !important;
    font-synthesis: none;
    text-rendering: optimizeSpeed;
    transition: opacity .3s linear;
}
#sgh-breaking-marquee-track .sgh-brk-blk { display: block; flex: none; direction: rtl; white-space: nowrap; }
#sgh-breaking-marquee-track .sgh-brk-clone { display: flex; flex: none; justify-content: flex-end; overflow: hidden; }
#sgh-breaking-marquee-track.sgh-brk-fade { opacity: 0; }
@media (hover:hover) and (pointer:fine) {
    #sgh-breaking-system[data-hover-pause="1"] #sgh-breaking-marquee:hover #sgh-breaking-marquee-track {
        animation-play-state: paused !important;
    }
}
#sgh-breaking-marquee-track.sgh-brk-paused { animation-play-state: paused !important; }
#sgh-breaking-marquee-track .sgh-breaking-separator {
    display: inline-block;
    width: auto;
    height: var(--brk-sep-h, 18px);
    vertical-align: middle;
    margin: 0 15px;
    opacity: 1 !important;
    filter: none !important;
    border: 0;
    border-radius: 0;
    background: none;
}
#sgh-breaking-marquee-track .sgh-breaking-promo {
    color: var(--sgh-promo-item, var(--sgh-color-promo, #fff000));
    font-weight: 800;
}
#sgh-breaking-marquee-track .sgh-breaking-promo a {
    color: inherit !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
#sgh-breaking-marquee-track .sgh-breaking-promo.sgh-breaking-promo--white,
#sgh-breaking-marquee-track .sgh-breaking-promo.sgh-breaking-promo--white a { color: #ffffff; }
.sgh-breaking-prefix { font-weight: 800; }
#sgh-breaking-marquee-track .sgh-breaking-prefix { color: var(--sgh-color-prefix-bar, #fff000); }
#sgh-breaking-alert-text .sgh-breaking-prefix,
#sgh-breaking-alert .sgh-breaking-transition-page .sgh-breaking-prefix { color: var(--sgh-color-prefix-alert, #fff000); }
#sgh-breaking-marquee-track .sgh-breaking-stars {
    color: var(--sgh-color-stars, #fff);
    font-weight: 800;
    font-size: var(--brk-st-d, 22px);
    letter-spacing: 6px;
    margin: 0 14px;
    vertical-align: middle;
    opacity: 0.9;
}

/* ------------------------------------------------------------------ the alert layer (z 9999), same place as the ticker */
#sgh-breaking-alert-layer {
    position: fixed;
    right: 0;
    left: 0;
    bottom: var(--sgh-breaking-bottom);
    width: 100%;
    height: var(--sgh-breaking-height);
    z-index: 9999;
    pointer-events: none;
    font-family: var(--brk-f-base);
}
#sgh-breaking-alert {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%;
    height: var(--sgh-breaking-height);
    background-color: var(--brk-alert-bg, var(--sgh-breaking-red));
    color: var(--brk-alert-ink, #fff);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .30);
    direction: rtl !important;
    z-index: 10;
    pointer-events: auto;
    transform: translateX(100%);
    animation: sghBuildUpBar var(--brk-build, .8s) cubic-bezier(.77, 0, .175, 1) forwards;
}
#sgh-breaking-alert[hidden] { display: none !important; }
#sgh-breaking-alert .sgh-breaking-news-label {
    flex-shrink: 0;
    color: var(--brk-label-ink, var(--sgh-breaking-red));
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: var(--brk-f-label);
    font-weight: 700;
    font-size: var(--brk-lb-d, 16px);
    position: relative;
    overflow: hidden;
    direction: rtl;
    isolation: isolate;
}
#sgh-breaking-alert .sgh-breaking-news-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--sgh-breaking-yellow);
    z-index: -1;
    animation: sghWipeInLabel var(--brk-label-in, .5s) ease-out var(--brk-build, .8s) forwards;
}
#sgh-breaking-alert .sgh-breaking-news-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
    padding: 0 15px;
    direction: rtl;
    position: relative;
    min-width: 0;
}
#sgh-breaking-alert-text {
    display: inline-block;
    position: relative;
    font-family: var(--brk-f-text);
    font-size: var(--brk-tx-d, 18px);
    font-weight: 700;
    color: var(--brk-alert-ink, #fff);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    padding: 0 !important;
    margin: 0 !important;
    height: var(--sgh-breaking-height);
    line-height: var(--sgh-breaking-height) !important;
    opacity: 1 !important;
    filter: none !important;
}
#sgh-breaking-alert-text::after {
    content: '';
    position: absolute;
    background-color: var(--brk-alert-ink, #fff);
    width: 3px;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: sghBlinkCaret var(--brk-caret, .75s) step-end infinite var(--brk-type-delay, 1.3s);
}
#sgh-breaking-alert.sgh-exit-label .sgh-breaking-news-label::before {
    animation: sghWipeOutLabel var(--brk-label-exit, .5s) ease-in 0s forwards;
}
#sgh-breaking-alert.sgh-crt-off {
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: sghCrtPowerOff var(--brk-crt, 1.35s) cubic-bezier(.68, 0, .22, 1) 0s forwards;
}
#sgh-breaking-alert::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 0 5px rgba(255, 255, 255, .90), 0 0 12px rgba(255, 255, 255, .58), 0 0 22px rgba(255, 255, 255, .24);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transform: translate3d(-50%, -50%, 0) scale(.15);
}
#sgh-breaking-alert.sgh-crt-off::after { animation: sghCrtCenterGlow var(--brk-crt, 1.35s) ease-in-out forwards; }
#sgh-breaking-alert.sgh-exit-label #sgh-breaking-alert-text::after,
#sgh-breaking-alert.sgh-crt-off #sgh-breaking-alert-text::after { animation: none; opacity: 0; }
#sgh-breaking-alert-text.sgh-paging-no-caret::after { animation: none !important; opacity: 0 !important; }
#sgh-breaking-alert .sgh-breaking-transition-page {
    position: absolute;
    top: 0;
    margin: 0 !important;
    padding: 0 !important;
    height: var(--sgh-breaking-height);
    line-height: var(--sgh-breaking-height) !important;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--brk-f-text);
    font-size: var(--brk-tx-d, 18px);
    font-weight: 700;
    color: var(--brk-alert-ink, #fff);
    direction: rtl;
    text-align: right;
    pointer-events: none;
    opacity: 1;
    filter: none;
    transform: translate3d(0, 100%, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
/* reduced motion: no typing, no roll, no TV switch off; the text simply shows and fades */
#sgh-breaking-alert.sgh-brk-still,
#sgh-breaking-alert.sgh-brk-still .sgh-breaking-news-label::before { animation: none !important; transform: none; width: 100%; }
#sgh-breaking-alert.sgh-brk-still #sgh-breaking-alert-text { width: 100%; }
#sgh-breaking-alert.sgh-brk-still #sgh-breaking-alert-text::after { display: none; }
#sgh-breaking-alert.sgh-brk-still.sgh-brk-fade { animation: sghBrkFadeOut .4s linear forwards !important; }

/* ------------------------------------------------------------------ live breakpoints (tablet ≤1007, phone ≤767) */
@media (max-width: 1007.98px) {
    #sgh-breaking-marquee-track {
        font-size: var(--brk-fs-t, 18px);
        animation-duration: var(--sgh-speed-tablet, 240s);
        animation-delay: var(--sgh-delay-tablet, -9.6s);
    }
    #sgh-breaking-marquee-track .sgh-breaking-stars { font-size: var(--brk-st-t, 21px); }
    #sgh-breaking-alert .sgh-breaking-news-label { font-size: var(--brk-lb-t, 15px); }
    #sgh-breaking-alert-text, #sgh-breaking-alert .sgh-breaking-transition-page { font-size: var(--brk-tx-t, 17px); }
}
@media (max-width: 767px) {
    #sgh-breaking-marquee-track {
        font-size: var(--brk-fs-m, 17px);
        animation-duration: var(--sgh-speed-mobile, 350s) !important;
        animation-delay: var(--sgh-delay-mobile, -14s) !important;
    }
    #sgh-breaking-marquee-track .sgh-breaking-stars { font-size: var(--brk-st-m, 20px); }
    #sgh-breaking-alert .sgh-breaking-news-label { padding: 0 12px; font-size: var(--brk-lb-m, 14px); }
    #sgh-breaking-alert .sgh-breaking-news-content-wrapper { padding: 0 12px; }
    #sgh-breaking-alert-text, #sgh-breaking-alert .sgh-breaking-transition-page { font-size: var(--brk-tx-m, 16px); }
}
@media (prefers-reduced-motion: reduce) {
    #sgh-breaking-marquee { animation: none; width: 100%; height: var(--sgh-breaking-height); }
}

/* ------------------------------------------------------------------ dark page: the bars are already dark on live; nothing the site's
   dark theme sets (p / a / img colours, filters, borders) may reach inside them */
html[data-theme=dark] #sgh-breaking-marquee { background-color: var(--sgh-breaking-red); color: var(--brk-ink, #fff); color-scheme: light; }
html[data-theme=dark] #sgh-breaking-alert { background-color: var(--brk-alert-bg, var(--sgh-breaking-red)); color: var(--brk-alert-ink, #fff); color-scheme: light; }
html[data-theme=dark] #sgh-breaking-marquee-track { color: var(--brk-ink, #fff) !important; }
html[data-theme=dark] #sgh-breaking-alert-text { color: var(--brk-alert-ink, #fff); }
html[data-theme=dark] #sgh-breaking-marquee-track .sgh-breaking-separator { filter: none !important; opacity: 1 !important; }
html[data-theme=dark] #sgh-breaking-marquee-track .sgh-breaking-promo a { color: inherit !important; }
@media print { #sgh-breaking-system, #sgh-breaking-alert-layer { display: none !important; } }

/* W8 item 14: a ticker item is a link (opens the breaking item); colour stays, no underline */
#sgh-breaking-marquee-track a.sgh-brk-it{color:inherit;text-decoration:none!important;cursor:pointer}
#sgh-breaking-marquee-track a.sgh-brk-it:hover{color:#FFE27A}

/* ------------------------------------------------------------------ note 68 B (Majdi 00:11): هيبة — the same crimson, with depth.
   One recipe for the ticker and the «خبر عاجل» bar: the panel colour stays the base; over it a black layer that deepens toward the
   bottom edge (like a broadcast lower third), a hairline of light on the top edge and a dark hairline at the foot; on the ticker the
   two ends fall into shadow so the words arrive from depth and leave into it. The yellow «خبر عاجل» plate gets the same light-to-depth
   fall. Night: the black layer is a little deeper and the top hairline a little brighter, so the bar stands off the dark page.
   No glow, no glass, no blur: flat gradients over the panel colour. */
:root {
    --brk-depth: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .10) 38%, rgba(0, 0, 0, .30) 78%, rgba(0, 0, 0, .44) 100%);
    --brk-sheen: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 46%);
    --brk-edges: linear-gradient(90deg, rgba(10, 0, 4, .62) 0, rgba(10, 0, 4, .34) 22px, rgba(10, 0, 4, 0) 76px, rgba(10, 0, 4, 0) calc(100% - 76px), rgba(10, 0, 4, .34) calc(100% - 22px), rgba(10, 0, 4, .62) 100%);
    --brk-hair: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .38);
}
html[data-theme=dark] {
    --brk-depth: linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .16) 38%, rgba(0, 0, 0, .38) 78%, rgba(0, 0, 0, .54) 100%);
    --brk-hair: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .5);
}
#sgh-breaking-marquee,
html[data-theme=dark] #sgh-breaking-marquee {
    background-image: var(--brk-sheen), var(--brk-depth);
    box-shadow: var(--brk-hair), 0 -2px 12px rgba(0, 0, 0, .32);
    contain: layout paint style;
    isolation: isolate;
}
#sgh-breaking-marquee::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--brk-edges);
    box-shadow: var(--brk-hair);
}
@media (max-width: 767px) {
    :root { --brk-edges: linear-gradient(90deg, rgba(10, 0, 4, .6) 0, rgba(10, 0, 4, .3) 12px, rgba(10, 0, 4, 0) 44px, rgba(10, 0, 4, 0) calc(100% - 44px), rgba(10, 0, 4, .3) calc(100% - 12px), rgba(10, 0, 4, .6) 100%); }
}
#sgh-breaking-alert,
html[data-theme=dark] #sgh-breaking-alert {
    background-image: var(--brk-sheen), var(--brk-depth);
    box-shadow: var(--brk-hair), 0 -2px 12px rgba(0, 0, 0, .32);
}
#sgh-breaking-alert .sgh-breaking-news-label::before {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .10) 75%, rgba(0, 0, 0, .22) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .25);
}

/* radio.css */
/* صوت الغد · radio dock (sticky footer) + /radio page. Prefix sgr-. Light = violet over the night layer; dark = night with the
   approved dark palette. Station colour: --sgr-acc (raw), --sgr-hi (readable on the bar), --sgr-ink (text on --sgr-hi).
   z: ticker 60, dock 61, popups ≤ 50, breaking alert 9999. Radius 12–18, no pills. Logos bare (LOGO LAW). */
@property --sgr-hi{syntax:'<color>';inherits:true;initial-value:#F5C518}
@property --sgr-acc{syntax:'<color>';inherits:true;initial-value:#4B0082}
.sgr{--sgr-night:#1A0533;--sgr-gold:#F5C518;--sgr-txt:#FFFFFF;--sgr-mut:rgba(255,255,255,.78);--sgr-line:rgba(255,255,255,.14);
  --sgr-panel:#2A0A4E;--sgr-row:rgba(255,255,255,.06);
  transition:--sgr-hi .4s ease,--sgr-acc .4s ease;font-family:Tajawal,system-ui,sans-serif;color:var(--sgr-txt);direction:rtl;-webkit-tap-highlight-color:transparent}
html[data-theme=dark] .sgr{--sgr-night:#110321;--sgr-txt:#F4F0FA;--sgr-mut:#BAAEC7;--sgr-line:#40225B;--sgr-panel:#260445;--sgr-row:rgba(244,240,250,.05)}
.sgr *{box-sizing:border-box}
.sgr button,.sgr a{font:inherit;color:inherit}

/* ---------------------------------------------------------------- dock */
.sgr-dock{position:fixed;left:0;right:0;bottom:0;z-index:61;height:var(--sgr-h,70px);
  background:radial-gradient(120% 140% at 82% 120%,color-mix(in srgb,var(--sgr-acc) 34%,transparent) 0%,transparent 58%),
    linear-gradient(0deg,color-mix(in srgb,var(--sgr-night) 62%,transparent) 0%,transparent 78%),var(--sgr-bg,#4B0082);
  box-shadow:0 -1px 0 var(--sgr-line),0 -8px 24px rgba(10,0,25,.28);padding-bottom:env(safe-area-inset-bottom);transition:height .28s cubic-bezier(.2,.8,.2,1),--sgr-hi .4s ease,--sgr-acc .4s ease}
html[data-theme=dark] .sgr-dock{background:radial-gradient(120% 140% at 82% 120%,color-mix(in srgb,var(--sgr-acc) 30%,transparent) 0%,transparent 58%),
  linear-gradient(180deg,#260445 0%,#110321 100%);box-shadow:0 -1px 0 #40225B,0 -8px 24px rgba(0,0,0,.45)}
.sgr-bgm{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:var(--sgr-mop,.3);transition:opacity .5s ease}
.sgr[data-state=idle] .sgr-bgm,.sgr[data-state=paused] .sgr-bgm{opacity:calc(var(--sgr-mop,.3) * .55)}
.sgr[data-meter=compact] .sgr-bgm,.sgr[data-meter=off] .sgr-bgm,.sgr[data-meter=off] .sgr-cm{display:none}
.sgr-in{position:relative;height:100%;display:flex;align-items:center;gap:18px;padding:0 clamp(14px,2.4vw,32px);max-width:2560px;margin:0 auto}
.sgr-id{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 0}
.sgr-logo{width:44px;height:44px;object-fit:contain;flex:none;display:block;background:none;border:0;border-radius:0;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.sgr-tx{min-width:0;display:flex;flex-direction:column;gap:3px}
.sgr-nm{display:flex;align-items:center;gap:10px;min-width:0}
.sgr-name{font-family:Alexandria,Tajawal,sans-serif;font-weight:700;font-size:20px;line-height:1.15;white-space:nowrap;overflow:hidden;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.sgr-live{display:inline-flex;align-items:center;gap:6px;font-family:Alexandria,Tajawal,sans-serif;font-weight:500;font-size:12.5px;line-height:1;color:var(--sgr-txt);flex:none}
.sgr-live i{width:8px;height:8px;border-radius:2px;background:var(--sgr-hi);box-shadow:0 0 0 3px color-mix(in srgb,var(--sgr-hi) 30%,transparent)}
.sgr[data-state=playing] .sgr-live i{animation:sgr-pulse 1.8s ease-in-out infinite}
@keyframes sgr-pulse{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--sgr-hi) 0%,transparent)}}
.sgr-cm{width:46px;height:22px;flex:none;display:block}
.sgr-now{font-size:13.5px;line-height:1.3;color:var(--sgr-mut);white-space:nowrap;overflow:hidden;max-width:46vw}
.sgr-ctl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:22px;direction:ltr}
.sgr-end{display:flex;align-items:center;gap:8px;flex:1 1 0;justify-content:flex-end}
.sgr-b{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;background:none;border-radius:12px;cursor:pointer;color:var(--sgr-txt);transition:background .2s ease,transform .15s ease;text-decoration:none;flex:none}
.sgr-b svg{width:24px;height:24px;fill:currentColor}
.sgr-b:hover{background:rgba(255,255,255,.1)}.sgr-b:active{transform:scale(.94)}
.sgr-b:focus-visible,.sgr-play:focus-visible,.sgr-row:focus-visible,.sgr-range:focus-visible{outline:2px solid var(--sgr-gold);outline-offset:2px}
.sgr-play{position:relative;width:48px;height:48px;border:0;border-radius:12px;background:var(--sgr-hi);color:var(--sgr-ink,#12061F);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px color-mix(in srgb,var(--sgr-hi) 38%,transparent);transition:transform .15s ease,box-shadow .3s ease,--sgr-hi .4s ease}
.sgr-play:active{transform:scale(.95)}
.sgr-play svg{width:26px;height:26px;fill:currentColor}
.sgr-play .sgr-i-pause,.sgr[data-state=playing] .sgr-play .sgr-i-play,.sgr[data-state=loading] .sgr-play .sgr-i-play{display:none}
.sgr[data-state=playing] .sgr-play .sgr-i-pause,.sgr[data-state=loading] .sgr-play .sgr-i-pause{display:block}
/* loading (Majdi 09/11 03:43): NO circular spinner. A thin light runs around the play button's OWN rounded-square edge, inside it, in the
   icon's colour (currentColor), so the button stays solid and keeps its size */
@property --sgr-a{syntax:'<angle>';inherits:false;initial-value:0deg}
.sgr-spin{position:absolute;inset:0;border-radius:inherit;padding:2.5px;box-sizing:border-box;pointer-events:none;opacity:0;
  background:conic-gradient(from var(--sgr-a),transparent 0 58%,currentColor 92%,transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;transition:opacity .2s}
.sgr[data-state=loading] .sgr-spin{opacity:.95;animation:sgr-sweep 1.1s linear infinite}
@keyframes sgr-sweep{to{--sgr-a:360deg}}
@media (prefers-reduced-motion:reduce){.sgr[data-state=loading] .sgr-spin{animation-duration:2.4s}}
.sgr-vol{display:flex;align-items:center;gap:4px}
.sgr[data-vol="0"] .sgr-vol{display:none}
.sgr-i-x{display:none}.sgr[data-muted="1"] .sgr-i-x{display:inline}.sgr[data-muted="1"] .sgr-i-w{display:none}
.sgr-range{-webkit-appearance:none;appearance:none;width:96px;height:20px;background:transparent;cursor:pointer;direction:ltr;margin:0}
.sgr-range::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(90deg,#fff 0 var(--v,80%),rgba(255,255,255,.28) var(--v,80%) 100%)}
.sgr-range::-moz-range-track{height:4px;border-radius:2px;background:rgba(255,255,255,.28)}
.sgr-range::-moz-range-progress{height:4px;border-radius:2px;background:#fff}
.sgr-range::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:4px;background:#fff;border:0;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.sgr-range::-moz-range-thumb{width:14px;height:14px;border-radius:4px;background:#fff;border:0}
.sgr-only-phone,.sgr-app.sgr-only-phone{display:none}

/* collapsed: a slim strip that still plays */
.sgr-dock[data-collapsed="1"]{height:44px}
.sgr-dock[data-collapsed="1"] .sgr-now,.sgr-dock[data-collapsed="1"] .sgr-vol,.sgr-dock[data-collapsed="1"] [data-a=list],
.sgr-dock[data-collapsed="1"] [data-a=popup],.sgr-dock[data-collapsed="1"] [data-a=prev],.sgr-dock[data-collapsed="1"] [data-a=next]{display:none}
.sgr-dock[data-collapsed="1"] .sgr-logo{width:28px;height:28px}
.sgr-dock[data-collapsed="1"] .sgr-name{font-size:15px}
.sgr-dock[data-collapsed="1"] .sgr-play{width:34px;height:34px;border-radius:12px}.sgr-dock[data-collapsed="1"] .sgr-play svg{width:20px;height:20px}
.sgr-dock[data-collapsed="1"] .sgr-fold svg{transform:rotate(180deg)}
.sgr-fold svg{transition:transform .28s ease}

/* station list: lifts from the top of the ticker (ticker 50 px sits on the dock) */
.sgr-list{position:fixed;z-index:61;bottom:calc(var(--radio-h,70px) + var(--ticker-h,50px) + 10px);inset-inline-start:clamp(10px,2.4vw,32px);width:min(720px,calc(100vw - 20px));
  max-height:min(62vh,560px);display:flex;flex-direction:column;background:var(--sgr-panel);border:1px solid var(--sgr-line);border-radius:12px;
  box-shadow:0 18px 48px rgba(10,0,25,.45);opacity:0;transform:translateY(14px) scale(.985);transform-origin:50% 100%;
  transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1);overflow:hidden}
.sgr-open .sgr-list{opacity:1;transform:none}
.sgr-list[hidden]{display:none}
.sgr-list-h{display:flex;align-items:center;gap:10px;padding:12px 16px 10px;border-bottom:1px solid var(--sgr-line)}
.sgr-list-h b{font-family:Alexandria,Tajawal,sans-serif;font-weight:700;font-size:16px;flex:1}
.sgr-app{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:12px;background:var(--sgr-gold);color:#1A0533 !important;text-decoration:none;font-weight:700;font-size:14px}
.sgr-app svg{width:18px;height:18px;fill:currentColor}
.sgr-rows{list-style:none;margin:0;padding:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;overflow:auto;overscroll-behavior:contain}
.sgr-row{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;padding:8px 14px;border:0;background:none;border-radius:12px;cursor:pointer;text-align:start;position:relative;transition:background .2s ease}
.sgr-row:hover{background:var(--sgr-row)}
.sgr-row-sw{width:5px;height:30px;border-radius:3px;flex:none;background:var(--row-hi)}
.sgr-row-name{flex:1;font-family:Alexandria,Tajawal,sans-serif;font-weight:500;font-size:16px;line-height:1.2;color:var(--sgr-txt)}
.sgr-row[aria-selected=true]{background:color-mix(in srgb,var(--row-hi) 14%,transparent)}
.sgr-row[aria-selected=true] .sgr-row-name{font-weight:700}
.sgr-row-eq{display:none;align-items:flex-end;gap:2px;height:16px}
.sgr-row-eq i{width:3px;height:30%;border-radius:2px;background:var(--row-hi)}
.sgr[data-state=playing] .sgr-row[aria-selected=true] .sgr-row-eq{display:inline-flex}
.sgr[data-state=playing] .sgr-row[aria-selected=true] .sgr-row-eq i{animation:sgr-eq 1s ease-in-out infinite alternate}
.sgr-row-eq i:nth-child(2){animation-delay:-.35s !important}.sgr-row-eq i:nth-child(3){animation-delay:-.7s !important}.sgr-row-eq i:nth-child(4){animation-delay:-.2s !important}
@keyframes sgr-eq{to{height:100%}}

/* tablet */
@media (max-width:899px){.sgr-range{width:72px}.sgr-ctl{gap:14px}.sgr-now{max-width:30vw}}
/* phone: two rows (live layout, 121 px) */
@media (max-width:599px){
  .sgr-dock{height:var(--sgr-hp,121px)}
  .sgr-in{flex-direction:column;align-items:stretch;justify-content:center;gap:8px;padding:8px 12px 10px}
  .sgr-id{flex:none;gap:10px;padding-inline-end:44px}
  .sgr-logo{width:38px;height:38px}
  .sgr-name{font-size:17px}
  .sgr-now{font-size:12.5px;max-width:none}
  .sgr-ctl{position:static;transform:none;justify-content:center;gap:clamp(14px,6vw,26px)}
  .sgr-end{position:absolute;top:10px;inset-inline-end:8px;flex:none}
  .sgr-dock .sgr-vol,.sgr-no-phone{display:none}
  .sgr-only-phone,.sgr-app.sgr-only-phone{display:inline-flex}
  .sgr-play{width:50px;height:50px}
  .sgr-list{inset-inline:8px;width:auto;bottom:calc(var(--radio-h,121px) + var(--ticker-h,50px) + 8px);max-height:62vh}
  .sgr-rows{grid-template-columns:1fr}
  .sgr-dock[data-collapsed="1"] .sgr-in{flex-direction:row;align-items:center;padding:0 12px}
  .sgr-dock[data-collapsed="1"] .sgr-id{flex:1;padding:0}
  .sgr-dock[data-collapsed="1"] .sgr-ctl{order:2}
  .sgr-dock[data-collapsed="1"] .sgr-end{position:static;order:3}
  .sgr-dock[data-collapsed="1"] [data-a=list],.sgr-dock[data-collapsed="1"] [data-a=popup]{display:none}
}
/* TV */
@media (prefers-reduced-motion:reduce){.sgr,.sgr *{transition:none !important;animation:none !important}}

/* ---------------------------------------------------------------- /radio page (window 430×670, also full page on phones) */
html.sgr-pg body{margin:0;background:var(--sgr-night,#1A0533)}
.sgr-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;gap:12px;padding:12px 12px calc(16px + env(safe-area-inset-bottom));
  background:radial-gradient(90% 60% at 50% 0%,color-mix(in srgb,var(--sgr-acc) 42%,transparent) 0%,transparent 70%),linear-gradient(180deg,var(--sgr-bg,#4B0082) 0%,var(--sgr-night) 64%);max-width:560px;margin:0 auto}
html[data-theme=dark] .sgr-page{background:radial-gradient(90% 60% at 50% 0%,color-mix(in srgb,var(--sgr-acc) 34%,transparent) 0%,transparent 70%),linear-gradient(180deg,#260445 0%,#110321 60%)}
.sgr-pg-ad{display:flex;justify-content:center}
.sgr-pg-ad>*{width:min(381px,100%);aspect-ratio:381/90;border-radius:12px;overflow:hidden}
.sgr-soc{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.sgr-soc a{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:var(--sgr-txt);background:rgba(255,255,255,.08);transition:background .2s ease}
.sgr-soc a:hover{background:rgba(255,255,255,.16)}
.sgr-soc svg{width:20px;height:20px;fill:currentColor}
.sgr-card{position:relative;overflow:hidden;border-radius:12px;padding:22px 16px 18px;display:flex;flex-direction:column;align-items:center;gap:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02));border:1px solid var(--sgr-line)}
.sgr-card .sgr-bgm{opacity:calc(var(--sgr-mop,.3) * 1.15)}
.sgr-card>*:not(.sgr-bgm){position:relative}
.sgr-logo-xl{width:132px;height:132px;filter:drop-shadow(0 8px 22px rgba(0,0,0,.35))}
.sgr-card .sgr-nm{flex-direction:column;gap:6px;margin-top:4px}
.sgr-card .sgr-name{font-family:'Qatar 2022',Alexandria,Tajawal,sans-serif;font-size:28px;margin:0}
.sgr-card .sgr-now{font-size:14.5px;max-width:100%;text-align:center;white-space:normal}
.sgr-cm-xl{width:min(300px,86%);height:46px;margin:6px 0 2px}
.sgr-card .sgr-ctl{position:static;transform:none;gap:26px;margin-top:4px}
.sgr-card .sgr-play{width:64px;height:64px;border-radius:12px}.sgr-card .sgr-play svg{width:32px;height:32px}
.sgr-card .sgr-vol .sgr-range{width:180px}
.sgr-plist{border-radius:12px;background:var(--sgr-panel);border:1px solid var(--sgr-line);overflow:hidden}
.sgr-plist summary{list-style:none;display:flex;align-items:center;gap:8px;padding:12px 16px;cursor:pointer;font-family:Alexandria,Tajawal,sans-serif;font-weight:700;font-size:16px}
.sgr-plist summary::-webkit-details-marker{display:none}
.sgr-plist summary svg{width:20px;height:20px;fill:currentColor}
.sgr-plist .sgr-rows{grid-template-columns:1fr;max-height:none;border-top:1px solid var(--sgr-line)}
@media (max-height:720px){.sgr-logo-xl{width:100px;height:100px}.sgr-card{padding-top:16px;gap:6px}.sgr-card .sgr-name{font-size:25px}}
@media (hover:none) and (pointer:coarse){.sgr-page .sgr-vol .sgr-range{display:none}}

/* «tuning C»: the meter flickers while the dial sound plays (the app's tuning look) */
@keyframes sgr-tune{0%{opacity:.35;filter:saturate(.4) brightness(1.4)}50%{opacity:.9;filter:none}100%{opacity:.5;filter:saturate(.6) brightness(1.2)}}
/* the old «tuning» flicker strobed at ~18 Hz (brightness 1.4): gone (Majdi 09/11 00:26 «وميض مؤذي للعين») */
.sgr[data-tuning="1"] .sgr-bgm,.sgr[data-tuning="1"] .sgr-cm{animation:none}
@media (prefers-reduced-motion:reduce){.sgr[data-tuning="1"] .sgr-bgm,.sgr[data-tuning="1"] .sgr-cm{animation:none}}

/* v2 (09/11): the bar takes the station colour (radio.js sets --sgr-bg on every switch, day and night variants), the bars a lighter tint of it */
.sgr-dock[data-dockbg=station],html[data-theme=dark] .sgr-dock[data-dockbg=station]{background-color:var(--sgr-bg,#4B0082);background-image:linear-gradient(0deg,rgba(0,0,0,.2) 0%,rgba(0,0,0,0) 72%);transition:background-color .3s ease,height .28s cubic-bezier(.2,.8,.2,1)}
.sgr[data-dockbg=station] .sgr-bgm{inset:auto;opacity:var(--sgr-dop,1);transition:opacity .6s cubic-bezier(.2,.8,.2,1)}
.sgr[data-dockbg=station][data-state=idle] .sgr-bgm,.sgr[data-dockbg=station][data-state=paused] .sgr-bgm,.sgr[data-dockbg=station][data-state=error] .sgr-bgm{opacity:0}
.sgr[data-dockbg=station] .sgr-cm{display:none}   /* the name, logo and «مباشر» stay clean: no bars there */
/* v4 play/pause: a solid deeper station-colour button, soft icon; «deep» = off-white 85 %, «gold» = #F5C518 (panel) */
.sgr[data-dockbg=station] .sgr-play{background:var(--sgr-hi);color:#FFFFFF;box-shadow:none;opacity:1}
.sgr[data-dockbg=station][data-play=gold] .sgr-play{color:#F5C518}
.sgr[data-dockbg=station] .sgr-live i{background:#F5C518;box-shadow:none}
.sgr[data-dockbg=station] .sgr-range::-webkit-slider-runnable-track{background:linear-gradient(90deg,var(--sgr-hi) 0 var(--v,80%),rgba(0,0,0,.18) var(--v,80%) 100%)}
.sgr[data-dockbg=station] .sgr-range::-moz-range-track{background:rgba(0,0,0,.18)}.sgr[data-dockbg=station] .sgr-range::-moz-range-progress{background:var(--sgr-hi)}
.sgr[data-dockbg=station] .sgr-range::-webkit-slider-thumb{background:rgba(255,255,255,.85);box-shadow:none}.sgr[data-dockbg=station] .sgr-range::-moz-range-thumb{background:rgba(255,255,255,.85)}
@media (prefers-reduced-motion:reduce){.sgr[data-dockbg=station] .sgr-bgm{opacity:min(var(--sgr-mop,.45),.3);transition:none}}

/* ================= popup window /radio — Sawt el Ghad identity (Majdi 09/11 01:30–01:40). Day and night are both VIOLET (one light,
   one dark); the station colour is only an accent: the bars, the ring around the logo, the active tile. No site chrome, no ticker. */
.sgr.sgr-page{--pp-bg:var(--bg,#F6F4FA);--pp-card:var(--card,#FFFFFF);--pp-ink:var(--ink,#1B1730);--pp-mut:var(--muted,#6E6886);--pp-line:var(--line,#E9E5F2);--pp-soft:#EFE7FA;
  --pp-player:linear-gradient(160deg,#4B0082 0%,#3A066A 55%,#260445 100%);--pp-strip:#4B0082;
  display:flex;flex-direction:column;gap:8px;height:100dvh;min-height:0;max-width:var(--sgr-pw,420px);margin:0 auto;overflow:hidden;box-sizing:border-box;
  padding:0 10px calc(8px + env(safe-area-inset-bottom));background:var(--pp-bg);color:var(--pp-ink)}
html[data-theme=dark] .sgr.sgr-page{--pp-bg:#110321;--pp-card:#260445;--pp-ink:#F4F0FA;--pp-mut:#BAAEC7;--pp-line:#40225B;--pp-soft:#47156F;
  --pp-player:linear-gradient(160deg,#2E0752 0%,#260445 60%,#1C0335 100%);--pp-strip:#260445}
html.sgr-pg body{margin:0;background:#F6F4FA}html.sgr-pg[data-theme=dark] body{background:#110321}
.sgr-page>*{flex:none}
/* the promo bars (the header's own component), full width, never clipped */
.sgr-top{margin:0 -10px}.sgr-top .sbars{width:100%}.sgr-top .sbar{min-height:50px;padding:6px 10px;gap:8px;box-sizing:border-box;max-width:100%;overflow:hidden}
.sgr-top .sbar .si{width:32px;height:32px}.sgr-top .sbar .stt{font-size:14px}.sgr-top .sbar .ss{font-size:11.5px;text-overflow:ellipsis}
.sgr-top .sbar .sc{padding:5px 10px;font-size:12px}
/* socials row: a violet strip, white icons; the theme toggle at its end (active = gold) */
.sgr-page .sgr-soc{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:4px;padding:6px 8px;border-radius:12px;background:var(--pp-strip)}
.sgr-page .sgr-soc a{width:32px;height:32px;border-radius:10px;color:#fff;background:rgba(255,255,255,.12)}.sgr-page .sgr-soc a:hover{background:rgba(255,255,255,.22)}
.sgr-page .sgr-soc svg{width:18px;height:18px}
.sgr-soc .sgr-thm{margin-inline-start:8px;display:inline-flex;gap:2px;padding:2px;border-radius:10px;background:rgba(255,255,255,.12)}
.sgr-soc .sgr-thm button{width:26px;height:26px;border:0;border-radius:8px;background:none;color:#fff;display:inline-grid;place-items:center;cursor:pointer;padding:0}
.sgr-soc .sgr-thm button[aria-pressed=true]{background:#F5C518;color:#1A0533}
/* the player card: the brand gradient in both themes, white ink; the bars only in their lane between the subtitle and the slider */
.sgr-page .sgr-card{background:var(--pp-player);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px 14px;gap:5px;color:#fff;box-shadow:0 6px 20px rgba(38,4,69,.18);
  --sgr-txt:#FFFFFF;--sgr-mut:rgba(255,255,255,.8)}
.sgr-page .sgr-card .sgr-bgm{opacity:1;inset:auto;transition:opacity .6s ease}
.sgr-page[data-state=idle] .sgr-card .sgr-bgm,.sgr-page[data-state=paused] .sgr-card .sgr-bgm,.sgr-page[data-state=error] .sgr-card .sgr-bgm{opacity:0}
.sgr-page .sgr-logo-xl{width:84px;height:84px;border-radius:12px;object-fit:cover;background:#260445;box-shadow:0 0 0 3px var(--sgr-stc,#F5C518),0 4px 14px rgba(0,0,0,.3)}
.sgr-page .sgr-card .sgr-name{font-family:var(--f-title,"SawtElGhad"),Alexandria,Tajawal,sans-serif;font-size:26px;color:#fff;text-shadow:none}
.sgr-page .sgr-card .sgr-now{font-family:var(--f-sub,Alexandria),Tajawal,sans-serif;color:rgba(255,255,255,.82);text-shadow:none}
.sgr-page .sgr-card .sgr-b{color:#fff}
.sgr-page .sgr-play{background:#F5C518;color:#1A0533;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.sgr-page .sgr-live i{background:#F5C518;box-shadow:none}
.sgr-page .sgr-range::-webkit-slider-runnable-track{background:linear-gradient(90deg,#F5C518 0 var(--v,80%),rgba(255,255,255,.22) var(--v,80%) 100%)}
.sgr-page .sgr-range::-moz-range-track{background:rgba(255,255,255,.22)}.sgr-page .sgr-range::-moz-range-progress{background:#F5C518}
.sgr-page .sgr-range::-webkit-slider-thumb{background:#fff;box-shadow:none}
/* stations: their own scroll layer, a 3-column tile grid (2 under 360) */
.sgr-page .sgr-plist{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:transparent;border:0;border-radius:0}
.sgr-ph{width:100%;border:0;background:none;color:var(--pp-ink);cursor:pointer;text-align:start;display:flex;align-items:center;gap:8px;padding:6px 4px;
  font-family:var(--f-title,"SawtElGhad"),Alexandria,Tajawal,sans-serif;font-weight:700;font-size:16px;flex:none}
.sgr-ph>svg{width:20px;height:20px;fill:currentColor;color:var(--primary,#4B0082)}html[data-theme=dark] .sgr-ph>svg{color:#F5C518}
.sgr-ph .sgr-chev{width:18px;height:18px;margin-inline-start:auto;transition:transform .2s ease;fill:none}
.sgr-plist[data-open="0"] .sgr-chev{transform:rotate(90deg)}
.sgr-page .sgr-plist[data-open="0"]{flex:none}.sgr-plist[data-open="0"] .sgr-pscroll{display:none}
.sgr-pscroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.sgr-tiles{list-style:none;margin:0;padding:4px 2px 8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:359px){.sgr-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sgr-tile{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px 9px;border-radius:12px;cursor:pointer;
  background:var(--pp-card);color:var(--pp-ink);border:1px solid var(--pp-line);border-top:3px solid var(--tc);font:600 13px/1.25 Alexandria,Tajawal,sans-serif;
  transition:transform .15s ease,box-shadow .15s ease,background-color .3s ease}
html:not([data-theme=dark]) .sgr-tile{box-shadow:0 1px 4px rgba(27,23,48,.06)}
.sgr-tile:hover,.sgr-tile:focus-visible{transform:translateY(-2px);box-shadow:0 0 0 2px var(--tc),0 6px 14px rgba(0,0,0,.18);outline:none}
.sgr-tile img,.sgr-mono{width:56px;height:56px;border-radius:12px;object-fit:cover;background:#4B0082;flex:none}
.sgr-mono{display:grid;place-items:center;color:#fff;font:700 12px/1.2 var(--f-sub,Alexandria),Tajawal,sans-serif;padding:4px;box-sizing:border-box;text-align:center;overflow:hidden}
.sgr-tn{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgr-tile[aria-selected=true]{background:var(--tc);border-color:var(--tc);color:#fff;font-weight:700}
.sgr-tile[aria-selected=true] .sgr-tn{text-shadow:0 1px 2px rgba(0,0,0,.35)}
.sgr-tl{position:absolute;top:7px;inset-inline-start:7px;width:8px;height:8px;border-radius:2px;background:#F5C518;display:none}
.sgr-tile[aria-selected=true] .sgr-tl{display:block;animation:sgr-dot 1.8s ease-in-out infinite}
@keyframes sgr-dot{50%{opacity:.4;transform:scale(.8)}}
@media (prefers-reduced-motion:reduce){.sgr-tile[aria-selected=true] .sgr-tl{animation:none}}
.sgr-dock .sgr-logo{border-radius:10px;filter:none;object-fit:cover}
/* the app's StationMarkTile, 1:1 (brand.dart): station colour gradient (+10 % white → −18 % black), radius 14 at 56, padding 12.5 %, a thin white frame, the white mark contained */
.sgr-mk{--mk:var(--tc,var(--sgr-stc,#4B0082));display:grid;place-items:center;width:56px;height:56px;border-radius:12px;padding:7px;box-sizing:border-box;flex:none;
  background:linear-gradient(to bottom left,color-mix(in srgb,var(--mk) 90%,#fff),color-mix(in srgb,var(--mk) 82%,#000));border:1.1px solid rgba(255,255,255,.85)}
.sgr-mk img{width:100%;height:100%;object-fit:contain;border-radius:0;background:none;box-shadow:none}
.sgr-page .sgr-mk-xl{--mk:var(--sgr-stc,#4B0082);width:88px;height:88px;border-radius:12px;padding:11px;border-width:1.6px;box-shadow:0 0 0 3px var(--sgr-stc,#F5C518),0 4px 14px rgba(0,0,0,.3)}
.sgr-page .sgr-mk-xl .sgr-logo-xl{width:100%;height:100%;box-shadow:none;background:none;border-radius:0;object-fit:contain}
/* Majdi 09/11 03:30 + LOGO LAW: the dock mark sits BARE, as before 1926536: no tile, ring, border or disc; 44 px, soft drop shadow */
.sgr-mk.sgr-mk-dk{width:44px;height:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}.sgr-mk-dk .sgr-logo{width:100%;height:100%;border-radius:0;background:none;border:0;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.sgr-dock[data-collapsed="1"] .sgr-mk.sgr-mk-dk{width:28px;height:28px;padding:0;border-radius:0}
@media (max-width:600px){.sgr-mk.sgr-mk-dk{width:38px;height:38px;padding:0}}
/* prev/next (Majdi 09/11 02:12): plain white icons, no disc; the bars run unbroken BEHIND all three controls (controls above the canvas) */
.sgr-page .sgr-card .sgr-ctl{z-index:2}
.sgr-page .sgr-card .sgr-b[data-a=prev],.sgr-page .sgr-card .sgr-b[data-a=next]{z-index:2;color:#fff;background:none;box-shadow:none;border:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.sgr-page .sgr-card .sgr-b[data-a=prev]:hover,.sgr-page .sgr-card .sgr-b[data-a=next]:hover{background:rgba(255,255,255,.10)}
.sgr-page .sgr-card .sgr-play{z-index:2}
/* landscape popup (Majdi 09/11 02:07): stations BESIDE the player; the bars and the social row stay full width on top; stacked under 640 px */
.sgr.sgr-page{max-width:var(--sgr-pw,860px)}
.sgr-body{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0}
.sgr-body>.sgr-card{flex:none}
@media (min-width:640px){
  .sgr-body{flex-direction:row;align-items:stretch}
  .sgr-body>.sgr-card{width:400px;max-width:48%;justify-content:center}
  .sgr-body>.sgr-plist{flex:1 1 auto;min-width:0;height:auto;align-self:stretch}
}
.sgr-page .sgr-card{overflow:hidden;isolation:isolate}.sgr-page .sgr-card .sgr-vol{position:relative;z-index:2}
.sgr-page .sgr-card .sgr-nm,.sgr-page .sgr-card .sgr-now,.sgr-page .sgr-card .sgr-mk-xl{position:relative;z-index:2}
.sgr-dock .sgr-in{position:relative;z-index:1}

/* the dock bg is the exact panel colour now (light stations included): white text keeps a soft shadow for legibility */
.sgr[data-dockbg=station] .sgr-name,.sgr[data-dockbg=station] .sgr-now,.sgr[data-dockbg=station] .sgr-live{text-shadow:0 1px 2px rgba(0,0,0,.35)}

/* popup in the CURRENT station's colour (Majdi 09/11 03:49–03:52, voice 03:51): the player card and the header row (socials + theme) =
   the panel colour exactly (the dock's bg derivation), the play/pause button and the active theme button = its deeper shade (the dock
   button), inactive icon buttons = a solid tint between the two; icons white, or ink #1B1730 where white is under 3:1. Cross-fade 400 ms.
   Only the bars use barShade. */
.sgr.sgr-page .sgr-card,html[data-theme=dark] .sgr.sgr-page .sgr-card{background:var(--sgr-pbg,#4B0082);color:var(--sgr-pink,#fff);transition:background-color .4s ease,color .4s ease}
.sgr.sgr-page .sgr-soc,html[data-theme=dark] .sgr.sgr-page .sgr-soc{background:var(--sgr-pbg,#4B0082);transition:background-color .4s ease}
.sgr.sgr-page .sgr-soc a,.sgr.sgr-page .sgr-soc a:hover{background:var(--sgr-pm,#3A066A);color:var(--sgr-pmi,#fff);transition:background-color .4s ease,color .4s ease}
.sgr.sgr-page .sgr-soc a:hover{filter:brightness(1.08)}
.sgr.sgr-page .sgr-soc .sgr-thm{background:transparent;gap:3px}
.sgr.sgr-page .sgr-soc .sgr-thm button{background:var(--sgr-pm,#3A066A);color:var(--sgr-pmi,#fff);transition:background-color .4s ease,color .4s ease}
.sgr.sgr-page .sgr-soc .sgr-thm button[aria-pressed=true]{background:var(--sgr-hi,#260445);color:var(--sgr-pbi,#fff)}
.sgr.sgr-page .sgr-play{background:var(--sgr-hi,#260445);color:var(--sgr-pbi,#fff);transition:background-color .4s ease,color .4s ease}
/* the theme toggle icons are STROKE glyphs (sun, crescent, clock): the socials row fill rule must not turn the clock into a white disc (Majdi 09/11 04:08) */
.sgr-soc .sgr-thm svg{fill:none;width:18px;height:18px}

/* W8 item 11: the station's frequency beside its name */
.sgr-freq{font-family:var(--f-sub,'Alexandria'),sans-serif;font-size:12px;font-weight:600;opacity:.8;margin-inline-start:6px;letter-spacing:.3px;white-space:nowrap}
.sgr-freq[hidden]{display:none}

/* note 84 (Majdi 10/11 06:08 «الشريط والمشغل بياكلوا الشاشة»): on a phone the dock folds while the reader scrolls down and opens again on
   the way up or at the top (radio.js sets data-mini on the dock and data-sgr-mini on <html>; panel «شريط الراديو» mini_scroll).
   Folded = only the controls row (previous / play / next) shows: the identity row is clipped away and the ticker slides down by the
   same height. clip-path and transform move nothing in the layout, so the fold adds no layout shift (CLS 0). --sgr-cut is measured.
   A phone held sideways (short landscape) has the one-row desktop bar: there the fold hides the whole bar (--sgr-cut = its height). */
@media (max-width:599px),(max-height:500px) and (orientation:landscape){
  .sgr-dock,.sgr-dock[data-dockbg=station],html[data-theme=dark] .sgr-dock[data-dockbg=station]{transition:height .28s cubic-bezier(.2,.8,.2,1),background-color .3s ease,--sgr-hi .4s ease,--sgr-acc .4s ease,clip-path .3s cubic-bezier(.2,.8,.2,1)}
  .sgr-dock[data-mini="1"]{clip-path:inset(var(--sgr-cut,56px) 0 0 0)}
  #sgh-breaking-system,#sgh-breaking-alert-layer{transition:transform .3s cubic-bezier(.2,.8,.2,1)}
  html[data-sgr-mini="1"] #sgh-breaking-system,html[data-sgr-mini="1"] #sgh-breaking-alert-layer{transform:translateY(var(--sgr-cut,56px))}
}
@media (prefers-reduced-motion:reduce){.sgr-dock,#sgh-breaking-system,#sgh-breaking-alert-layer{transition:none}}


/* note 84f (84d brief, gate g3 P0-1): on a phone the bar starts as ONE row (logo, name, «مباشر», play, open), 56 px
   (panel «شريط الراديو» → phone_compact / height_phone_compact). The open button shows the full two-row player; scrolling down then
   folds it as before. Rendered folded from the server (no layout shift); the ticker sits on it through --radio-h. */
@media (max-width:599px){
  .sgr-dock[data-pc="1"]:not([data-exp="1"]){height:var(--sgr-hpc,56px)}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-in{flex-direction:row;align-items:center;justify-content:space-between;gap:6px;padding:0 6px 0 10px}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-id{flex:1 1 auto;min-width:0;padding:0;gap:8px}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-mk.sgr-mk-dk,.sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-logo{width:32px;height:32px}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-name{font-size:16px}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-now,.sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-freq,.sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-cm,
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-ctl [data-a=prev],.sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-ctl [data-a=next],
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-ctl [data-a=list],.sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-ctl [data-a=popup]{display:none}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-ctl{order:2;gap:0;flex:none}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-play{width:44px;height:44px}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-end{position:static;order:3;flex:none}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-fold svg{transform:rotate(180deg)}
  .sgr-dock[data-pc="1"]:not([data-exp="1"]) .sgr-live{font-size:calc(var(--t-meta,13px) + var(--t-fl,0px))}
}


/* note 84g (critic gate g5, last P0): /radio on a phone — every control is a 44 px hit area (WCAG 2.5.5 / HIG), the drawn boxes keep
   their size (socials 32, theme 26) as a layer inside the hit area; the strip wraps to two rows instead of squeezing the icons to 21-27 px.
   «المحطات» 44 px tall. Same treatment as the header / footer icons (9c32566). */
@media (max-width:599px){
  .sgr.sgr-page .sgr-soc{flex-wrap:wrap;gap:0 4px;padding:2px 6px}
  .sgr.sgr-page .sgr-soc a,.sgr.sgr-page .sgr-soc a:hover{position:relative;flex:none;width:44px;height:44px;border-radius:0;background:transparent}
  .sgr.sgr-page .sgr-soc a::before{content:"";position:absolute;inset:6px;border-radius:10px;background:var(--sgr-pm,#3A066A);transition:background-color .4s ease}
  .sgr.sgr-page .sgr-soc a svg{position:relative}
  .sgr.sgr-page .sgr-soc a:focus-visible{outline:none}.sgr.sgr-page .sgr-soc a:focus-visible::before{box-shadow:0 0 0 2px #F5C518}
  .sgr.sgr-page .sgr-soc .sgr-thm{flex:none;gap:0;padding:0;margin-inline-start:4px}
  .sgr.sgr-page .sgr-soc .sgr-thm button,.sgr.sgr-page .sgr-soc .sgr-thm button[aria-pressed=true]{position:relative;width:44px;height:44px;border-radius:0;background:transparent}
  .sgr.sgr-page .sgr-soc .sgr-thm button::before{content:"";position:absolute;inset:9px;border-radius:8px;background:var(--sgr-pm,#3A066A);transition:background-color .4s ease}
  .sgr.sgr-page .sgr-soc .sgr-thm button[aria-pressed=true]::before{background:var(--sgr-hi,#260445)}
  .sgr.sgr-page .sgr-soc .sgr-thm svg{position:relative}
  .sgr.sgr-page .sgr-soc .sgr-thm button:focus-visible{outline:none}.sgr.sgr-page .sgr-soc .sgr-thm button:focus-visible::before{box-shadow:0 0 0 2px #F5C518}
  .sgr-page .sgr-ph{min-height:44px}
}
/* note 96 (Majdi 15:26): the popup window's footer carries the site's news ticker and the breaking entry (fixed at the bottom, as on
   the site); the page reserves their height, so the player, the controls and every station name stay fully visible above them. */
html.sgr-pg:has(#sgh-breaking-alert-layer){--sgr-foot:var(--brk-h,50px)}
html.sgr-pg:has(#sgh-breaking-system){--sgr-foot:max(var(--ticker-h,50px),var(--brk-h,50px))}
html.sgr-pg .sgr.sgr-page{height:calc(100dvh - var(--sgr-foot,0px));overflow-y:auto}
/* a short popup (about 470 px tall, Majdi 15:26): a slightly smaller station mark and card padding, so the whole player and its volume row fit above the footer */
@media (max-height:600px){
  html.sgr-pg:has(#sgh-breaking-system) .sgr.sgr-page .sgr-card{padding-top:8px;padding-bottom:8px;gap:3px}
  html.sgr-pg:has(#sgh-breaking-system) .sgr.sgr-page .sgr-mk-xl{width:64px;height:64px;padding:8px;border-radius:12px}
}
/* short AND narrow (stacked, under 640 px wide): the stations would be squeezed to nothing, so the page itself scrolls through the player and every station above the footer */
@media (max-width:639px) and (max-height:600px){
  html.sgr-pg .sgr.sgr-page .sgr-body,html.sgr-pg .sgr.sgr-page .sgr-plist,html.sgr-pg .sgr.sgr-page .sgr-pscroll{flex:none;min-height:auto;overflow:visible}
}

/* note 125b: the one short hint after the separate window closes (over the dock's play button; rectangle, 10 px corners; no motion when reduced) */
.sgr-hint{position:fixed;z-index:2147483000;display:flex;align-items:stretch;gap:0;max-width:min(360px,calc(100vw - 16px));background:var(--sgr-hb,#F5C518);color:var(--sgr-hk,#12061F);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.28);opacity:0;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease;direction:rtl}
.sgr-hint.sgr-hint-in{opacity:1;transform:none}
.sgr-hint-go{flex:1;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 14px;border:0;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:700;line-height:1.35;cursor:pointer;border-radius:10px}
.sgr-hint-x{flex:0 0 36px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:10px}
.sgr-hint-x svg{width:16px;height:16px}
.sgr-hint-ar{position:absolute;top:100%;width:12px;height:7px;background:inherit;clip-path:polygon(0 0,100% 0,50% 100%)}
.sgr-hint.sgr-hint-in .sgr-hint-ar{animation:sgrHintNudge .5s ease-in-out .25s 2}
@keyframes sgrHintNudge{50%{transform:translateY(4px)}}
.sgr-hint-go:focus-visible,.sgr-hint-x:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
@media (prefers-reduced-motion:reduce){.sgr-hint{transition:none;transform:none}.sgr-hint .sgr-hint-ar{animation:none !important}}

/* note 125e: the arrow is a line from the note down to the play button (crossing the ticker), its head nudging twice */
.sgr-hint .sgr-hint-ar{width:3px;height:16px;clip-path:none;background:var(--sgr-hb,#F5C518);border-radius:0;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.sgr-hint .sgr-hint-ar::after{content:"";position:absolute;left:50%;bottom:-2px;width:14px;height:9px;margin-left:-7px;background:var(--sgr-hb,#F5C518);clip-path:polygon(0 0,100% 0,50% 100%)}
.sgr-hint.sgr-hint-in .sgr-hint-ar{animation:none}
.sgr-hint.sgr-hint-in .sgr-hint-ar::after{animation:sgrHintNudge .55s ease-in-out .3s 3}
@media (prefers-reduced-motion:reduce){.sgr-hint .sgr-hint-ar::after{animation:none !important}}
/* note 125e: the picture switch in the separate window (rectangles, 8 px corners) */
.sgr-viz{position:absolute !important;top:12px;left:12px;z-index:3;display:flex;gap:4px;padding:3px;background:rgba(0,0,0,.24);border-radius:10px;direction:rtl}
.sgr-viz button{min-height:28px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#fff;font:inherit;font-size:13px;font-weight:700;line-height:1.3;cursor:pointer;opacity:.82}
.sgr-viz button[aria-pressed=true]{background:var(--sgr-hi,#F5C518);color:var(--sgr-ink,#12061F);opacity:1}
.sgr-viz button:focus-visible{outline:2px solid #fff;outline-offset:1px}

/* extras.css */
/* «إضافات الموقع» (063): التغطية · العداد · المناسبات · المنبثق. Scoped .sgx-*; light + html[data-theme=dark]. RTL. */
:root{--sgx-gold:#F5C518;--sgx-violet:#4B0082;--sgx-night:#1A0533;--sgx-r:14px;--sgx-f-card:Lemonada,Tajawal,sans-serif;--sgx-f-body:Tajawal,sans-serif;--sgx-f-sub:Alexandria,Tajawal,sans-serif;--sgx-f-head:Qatar2022,Alexandria,Tajawal,sans-serif}

/* ------------------------------------------------ التغطية (1:1 with coverage-style.css, the rules that win there) */
.sgx-cov{position:relative;max-width:100%;margin:20px auto;box-shadow:0 4px 12px rgba(0,0,0,.15);border-radius:var(--sgx-r);overflow:hidden;background:var(--sgx-night);direction:rtl}
.sgx-cov-track{position:relative;width:100%;height:0;padding-bottom:var(--sgx-cov-r,56.25%)}
.sgx-cov-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity var(--sgx-fade,900ms) ease,visibility 0s linear var(--sgx-fade,900ms)}
.sgx-cov-slide.is-on{opacity:1;visibility:visible;z-index:1;transition:opacity var(--sgx-fade,900ms) ease,visibility 0s}
.sgx-cov-slide picture{position:absolute;inset:0;display:block}
.sgx-cov-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.sgx-cov-ov{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.8) 0%,rgba(0,0,0,0) 100%);color:#fff;padding:30px 20px;text-align:center;z-index:1}
.sgx-cov-t1{font-family:var(--sgx-f-card);font-size:2.2em;font-weight:700;line-height:1.5;margin:0 0 10px;text-shadow:1px 1px 3px rgba(0,0,0,.8);color:#fff}
.sgx-cov-t2{font-family:var(--sgx-f-body);font-size:1.6em;font-weight:500;line-height:1.5;margin:0 0 10px;text-shadow:1px 1px 3px rgba(0,0,0,.8);color:#fff}
.sgx-cov-t1 a,.sgx-cov-t2 a,.sgx-cov-hash a{color:#fff;text-decoration:none;transition:color .3s ease}
.sgx-cov-t1 a:hover,.sgx-cov-t1 a:focus-visible,.sgx-cov-t1 a:active,.sgx-cov-t2 a:hover,.sgx-cov-t2 a:focus-visible,.sgx-cov-t2 a:active{color:var(--sgx-gold)}
.sgx-cov-hash{font-family:var(--sgx-f-body);font-size:1.2em;display:inline-block;background:var(--sgx-violet);color:#fff;padding:5px 15px;border-radius:12px;margin-top:10px;font-weight:700}
.sgx-cov-credit{position:absolute;bottom:10px;right:10px;font-size:14px;color:#fff;text-align:right;z-index:2;font-family:var(--sgx-f-card)}
.sgx-cov-credit-l{margin-left:5px}
.sgx-cov-by{color:#fff;text-decoration:none;transition:color .3s;display:inline-block;margin-right:5px;font-family:var(--sgx-f-card);font-size:14px}
a.sgx-cov-by:hover,a.sgx-cov-by:active,a.sgx-cov-by:focus-visible{color:var(--sgx-gold)}
.sgx-cov-dots{position:absolute;top:12px;left:12px;z-index:3;display:flex;gap:6px}
.sgx-cov-dot{width:22px;height:5px;padding:0;border:0;border-radius:3px;background:rgba(255,255,255,.45);cursor:pointer}
.sgx-cov-dot.is-on{background:var(--sgx-gold)}
@media (max-width:767px){
  .sgx-cov-track{padding-bottom:var(--sgx-cov-rp,125%)}
  .sgx-cov-img:not(.has-m){object-position:var(--fx,50%) var(--fy,50%)}
  .sgx-cov-ov{padding:20px 15px 34px}
  .sgx-cov-t1{font-size:1.6em}.sgx-cov-t2{font-size:1.2em}.sgx-cov-hash{font-size:1em;padding:3px 10px}
}
html[data-theme=dark] .sgx-cov{box-shadow:0 4px 14px rgba(0,0,0,.45)}

/* ------------------------------------------------ العداد (1:1 with public-styles.css) */
.sgx-cnt{width:100%;padding:20px 0;direction:rtl}
.sgx-cnt-title{text-align:center;font-size:26px;font-weight:700;color:#333;margin:0 0 40px;position:relative;padding-bottom:15px;font-family:var(--sgx-f-card);line-height:1.6}
.sgx-cnt-title::after{content:'';position:absolute;display:block;width:120px;height:4px;background:var(--sgx-violet);bottom:0;left:50%;transform:translateX(-50%);border-radius:2px}
.sgx-cnt-row{display:flex;flex-wrap:wrap;justify-content:center;gap:25px;text-align:center;width:100%}
.sgx-cnt-item{flex:1;min-width:220px;max-width:280px;background:#fff;border:1px solid #e0e0e0;border-radius:var(--sgx-r);padding:25px 15px;box-shadow:0 2px 5px rgba(0,0,0,.07);transition:transform .3s ease,box-shadow .3s ease;cursor:pointer;box-sizing:border-box}
.sgx-cnt-item:hover{transform:translateY(-5px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.sgx-cnt-ic{display:block;margin:0 auto 6px;font-size:30px;line-height:36px;height:36px;width:auto;object-fit:contain}
.sgx-cnt-num{font-family:var(--sgx-f-body);font-size:48px;font-weight:700;color:var(--sgx-violet);line-height:1.2;direction:ltr;font-variant-numeric:tabular-nums}
.sgx-cnt-label{font-family:var(--sgx-f-body);font-size:18px;font-weight:600;color:#212121;margin-top:8px}
.sgx-cnt-up{text-align:center;margin:16px 0 0;font:500 14px var(--sgx-f-body);color:#6E6886}
@media (max-width:520px){.sgx-cnt-row{gap:12px;padding:0 12px}.sgx-cnt-item{min-width:calc(50% - 6px);max-width:calc(50% - 6px);padding:18px 8px}.sgx-cnt-num{font-size:32px}.sgx-cnt-label{font-size:16px}.sgx-cnt-title{font-size:22px;margin-bottom:26px}}
html[data-theme=dark] .sgx-cnt-title{color:#F4F0FA}html[data-theme=dark] .sgx-cnt-title::after{background:var(--sgx-gold)}
html[data-theme=dark] .sgx-cnt-item{background:#260445;border-color:#40225B;box-shadow:0 2px 6px rgba(0,0,0,.35)}
html[data-theme=dark] .sgx-cnt-num{color:var(--sgx-gold)}html[data-theme=dark] .sgx-cnt-label{color:#F4F0FA}html[data-theme=dark] .sgx-cnt-up{color:#BAAEC7}
@media (prefers-reduced-motion:reduce){.sgx-cnt-item,.sgx-cnt-item:hover{transition:none;transform:none}}

/* ------------------------------------------------ المناسبات (1:1 with the plugin's inline styles; units = logo height / 80) */
.sgx-occ-wrap{position:relative;display:inline-block;line-height:0;vertical-align:middle;--sgx-lh:var(--sgx-lh-d,64px)}
.sgx-occ{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:visible}
.sgx-occ-i{position:absolute;max-width:none!important;max-height:none!important;width:auto;aspect-ratio:var(--ar,1);object-fit:contain;transform-origin:center center;filter:drop-shadow(3px 5px 6px rgba(0,0,0,.3));pointer-events:none;
  top:calc(var(--sgx-lh) * var(--t) / 80);right:calc(var(--sgx-lh) * var(--r) / 80);height:calc(var(--sgx-lh) * var(--s) / 80);transform:rotate(calc(var(--a) * 1deg))}
@media (max-width:767px){
  .sgx-occ-wrap{--sgx-lh:var(--sgx-lh-p,44px)}
  .sgx-occ-i{top:calc(var(--sgx-lh) * var(--tp) / 80);right:calc(var(--sgx-lh) * var(--rp) / 80);height:calc(var(--sgx-lh) * var(--sp) / 80);transform:rotate(calc(var(--ap) * 1deg))}
  .sgx-occ.no-ph,.sgx-occ-i.no-ph{display:none}
}

/* ------------------------------------------------ المنبثق (web only; never over the bottom bars, the ticker or the breaking alert) */
.sgx-pop-layer{position:fixed;left:0;right:0;top:0;bottom:calc(var(--sgh-bottom-h,0px) + var(--sgx-pop-gap,12px));z-index:900;pointer-events:none;direction:rtl}
.sgx-pop{position:absolute;pointer-events:auto;background:#fff;color:#1B1730;border-radius:16px;box-shadow:0 14px 40px rgba(26,5,51,.28);overflow:hidden;font-family:var(--sgx-f-body);box-sizing:border-box}
.sgx-pop *{box-sizing:border-box}
.sgx-pop-img{display:block;width:100%;height:auto;max-height:inherit;object-fit:contain;background:#F6F4FA}
.sgx-pop-body{padding:22px 22px 20px}
.sgx-pop-title{margin:0 0 8px;font:700 19px/1.5 var(--sgx-f-sub);color:var(--sgx-violet)}
.sgx-pop-text{margin:0 0 16px;font-size:16.5px;line-height:1.75;white-space:pre-line}
.sgx-pop-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:12px;background:var(--sgx-gold);color:#1A0533;font:700 16px var(--sgx-f-body);text-decoration:none}
.sgx-pop-btn:hover{filter:brightness(1.05)}
.sgx-pop-x{position:absolute;top:8px;left:8px;z-index:2;min-width:36px;height:36px;padding:0 10px;border:0;border-radius:12px;background:rgba(26,5,51,.72);color:#fff;font:700 15px var(--sgx-f-body);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.sgx-pop-x[disabled]{cursor:default;opacity:.85;font-size:12.5px;font-weight:500}
.sgx-pop-x:not([disabled]) .sgx-pop-wait{display:none}
.sgx-pop-x[disabled] .sgx-pop-xi{display:none}
/* corner: a card sliding in from the bottom corner (desktop) */
.sgx-pop--corner{bottom:0;width:340px;max-width:calc(100vw - 32px);max-height:min(460px,calc(100% - 24px))}
.sgx-pop--corner.sgx-pop--start{right:20px}.sgx-pop--corner.sgx-pop--end{left:20px}
.sgx-pop--corner{transform:translateY(24px);opacity:0;transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .35s ease}
.sgx-pop--corner.sgx-pop--start{transform:translateX(30px)}.sgx-pop--corner.sgx-pop--end{transform:translateX(-30px)}
/* sheet: rises from the bottom (phones), never more than 45 % of the screen, the page stays usable above it */
.sgx-pop--sheet{left:8px;right:8px;bottom:0;max-height:45vh;border-radius:16px;transform:translateY(110%);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.sgx-pop--sheet .sgx-pop-img{max-height:calc(45vh - 4px)}
/* center: a soft fade in the middle (desktop), with one panel scrim layer under it that stops above the bottom bars */
.sgx-pop-scrim{position:absolute;inset:0;background:rgba(0,0,0,var(--sgx-pop-scrim,.35));pointer-events:auto;opacity:0;transition:opacity .3s ease}
.sgx-pop--center{top:50%;left:50%;width:min(560px,calc(100vw - 40px));max-height:calc(100% - 40px);transform:translate(-50%,-48%) scale(.96);opacity:0;transition:transform .35s ease,opacity .35s ease}
.sgx-pop-layer.is-in .sgx-pop--corner{transform:none;opacity:1}
.sgx-pop-layer.is-in .sgx-pop--sheet{transform:none}
.sgx-pop-layer.is-in .sgx-pop--center{transform:translate(-50%,-50%);opacity:1}
.sgx-pop-layer.is-in .sgx-pop-scrim{opacity:1}
html[data-theme=dark] .sgx-pop{background:#260445;color:#F4F0FA;box-shadow:0 14px 40px rgba(0,0,0,.55)}
html[data-theme=dark] .sgx-pop-title{color:var(--sgx-gold)}html[data-theme=dark] .sgx-pop-img{background:#1E0838}
@media (prefers-reduced-motion:reduce){.sgx-pop,.sgx-pop-scrim,.sgx-cov-slide,.sgx-cov-slide.is-on{transition:none!important}}

/* memory.css */
/* «الذاكرة العربية» (sgm-): the page, the event cards, the picker, the home widget, the submit popup. Light + dark (html[data-theme=dark]).
   Fonts: Qatar 2022 headings, Alexandria sub-headings, Tajawal body, Lemonada card titles. Radius 12..18, no pills. Gold text is night. */
.sgm{--sgm-v:#4B0082;--sgm-g:#F5C518;--sgm-night:#1A0533;--sgm-bg:#F7F4FB;--sgm-card:#fff;--sgm-ink:#1A0533;--sgm-muted:#5E5470;--sgm-line:#E6DFF0;--sgm-soft:#F1EAFA;
  --sgm-fh:'Qatar2022','Alexandria','Tajawal',sans-serif;--sgm-fs:'Alexandria','Tajawal',sans-serif;--sgm-fb:'Tajawal',sans-serif;--sgm-fc:'Lemonada','Tajawal',sans-serif;
  font-family:var(--sgm-fb);color:var(--sgm-ink);direction:rtl;text-align:right}
html[data-theme=dark] .sgm{--sgm-bg:#110321;--sgm-card:#260445;--sgm-ink:#F4F0FA;--sgm-muted:#BAAEC7;--sgm-line:#40225B;--sgm-soft:#47156F;--sgm-v:#C9A7F5}
.sgm *{box-sizing:border-box}:where(.sgm) a{color:inherit}
.sgm-ico{flex:0 0 auto;vertical-align:middle}
.sgm-page{max-width:860px;margin:0 auto;padding:20px 16px 40px}
.sgm-head{text-align:center;padding:26px 18px 22px;border-radius:12px;background:linear-gradient(160deg,#4B0082 0%,#1A0533 100%);color:#fff;margin-bottom:16px}
.sgm-kicker{margin:0 0 6px;font:500 15px/1.4 var(--sgm-fs);color:var(--sgm-g)}
.sgm-h1{margin:0;font:700 clamp(26px,5.4vw,40px)/1.25 var(--sgm-fh)}
.sgm-date{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin:12px 0 6px}
.sgm-dm{font:700 22px/1 var(--sgm-fs);background:var(--sgm-g);color:#1A0533;border-radius:12px;padding:9px 14px 8px;min-width:76px;display:inline-flex;justify-content:center}
.sgm-n{font:500 15px/1 var(--sgm-fs);opacity:.92}
.sgm-sub{margin:6px 0 16px;font-size:15px;opacity:.9}
.sgm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 18px;font:700 16px/1.1 var(--sgm-fb);cursor:pointer;text-decoration:none}
.sgm-btn-g{background:var(--sgm-g);color:#1A0533}.sgm-btn-g:hover{filter:brightness(1.05)}
.sgm-btn-o{background:transparent;color:var(--sgm-ink);border:1.5px solid var(--sgm-line)}
.sgm-head .sgm-btn-g{box-shadow:0 6px 18px rgba(0,0,0,.25)}
.sgm-nav{display:flex;justify-content:space-between;gap:8px;margin:0 0 10px}
.sgm-step{display:inline-flex;align-items:center;gap:4px;padding:9px 12px;border-radius:12px;background:var(--sgm-card);border:1px solid var(--sgm-line);text-decoration:none;font:500 15px/1 var(--sgm-fs)}
.sgm-today{background:var(--sgm-soft);border-color:transparent}
.sgm-pick{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;background:var(--sgm-card);border:1px solid var(--sgm-line);border-radius:12px;padding:12px;margin:0 0 18px}
.sgm-pick label{display:flex;flex-direction:column;gap:4px;flex:1 1 110px;font:500 13px/1.2 var(--sgm-fs);color:var(--sgm-muted)}
.sgm-pick select{appearance:none;width:100%;border:1.5px solid var(--sgm-line);border-radius:12px;padding:10px 12px;font:700 17px/1 var(--sgm-fb);background:var(--sgm-bg);color:var(--sgm-ink)}
.sgm-pick .sgm-btn{flex:0 0 auto;min-height:42px}
.sgm-list,.sgm-grid{display:flex;flex-direction:column;gap:14px}
.sgm-ev{background:var(--sgm-card);border:1px solid var(--sgm-line);border-radius:12px;padding:18px 18px 14px;box-shadow:0 4px 16px rgba(26,5,51,.06);scroll-margin-top:90px}
html[data-theme=dark] .sgm-ev{box-shadow:none}
.sgm-ev-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.sgm-years{background:var(--sgm-g);color:#1A0533;font:700 13px/1 var(--sgm-fs);border-radius:12px;padding:7px 10px 6px}
.sgm-year{font:700 15px/1 var(--sgm-fs);color:var(--sgm-muted)}
.sgm-ev-t{margin:0 0 10px;font:600 clamp(18px,3.6vw,21px)/1.6 var(--sgm-fc);color:var(--sgm-ink)}
.sgm-ev-t a{text-decoration:none}.sgm-ev-t a:hover{color:var(--sgm-v)}
h1.sgm-ev-t{font-size:clamp(22px,4.6vw,30px)}
.sgm-ev-img{margin:0 0 12px}.sgm-ev-img img{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:12px;background:var(--sgm-soft)}
.sgm-ev-d{margin:0 0 12px;font:400 17px/1.85 var(--sgm-fb);white-space:pre-line;overflow-wrap:anywhere}
.sgm-ev-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font:500 14px/1.5 var(--sgm-fs);color:var(--sgm-muted);border-top:1px solid var(--sgm-line);padding-top:10px}
.sgm-ev-meta>*{display:inline-flex;align-items:center;gap:5px;text-decoration:none}
.sgm-share{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.sgm-sh{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;border:1px solid var(--sgm-line);background:var(--sgm-bg);color:var(--sgm-ink);cursor:pointer;padding:0}
.sgm-sh:hover{background:var(--sgm-soft)}.sgm-sh.on{background:var(--sgm-g);color:#1A0533;border-color:transparent}
.sgm-none{text-align:center;padding:28px 16px;border:1.5px dashed var(--sgm-line);border-radius:12px;color:var(--sgm-muted);font-size:17px}
.sgm-crumbs{display:flex;gap:8px;align-items:center;font:500 14px/1.4 var(--sgm-fs);color:var(--sgm-muted);margin:0 0 12px}.sgm-crumbs a{text-decoration:none}
.sgm-h2{font:700 20px/1.4 var(--sgm-fh);margin:26px 0 12px}
.sgm-back{text-align:center;margin:22px 0 0}
@media (min-width:900px){.sgm-one .sgm-grid{display:grid;grid-template-columns:1fr 1fr}}
/* home widget */
.sgm-w{position:relative;background:var(--sgm-card);border:1px solid var(--sgm-line);border-radius:12px;padding:14px 14px 12px;margin:0 0 18px}
.sgm-w-head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.sgm-w-h{margin:0;font:700 19px/1.3 var(--sgm-fh);color:var(--sgm-v)}.sgm-w-h a{text-decoration:none}
.sgm-w-dm{font:700 14px/1 var(--sgm-fs);background:var(--sgm-g);color:#1A0533;border-radius:12px;padding:6px 9px 5px}
.sgm-w-arrows{margin-inline-start:auto;display:flex;gap:6px}.sgm-w-arrows[hidden]{display:none}
.sgm-w-arrows button{width:34px;height:34px;border-radius:12px;border:1px solid var(--sgm-line);background:var(--sgm-bg);color:var(--sgm-ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.sgm-w-strip{display:grid;grid-auto-flow:column;grid-auto-columns:100%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;outline:0;overscroll-behavior-x:contain}
.sgm-w-strip::-webkit-scrollbar{display:none}
@media (min-width:700px){.sgm-w-strip{grid-auto-columns:calc(50% - 6px)}}@media (min-width:1100px){.sgm-w-strip{grid-auto-columns:calc(33.333% - 8px)}}
.sgm-w-card{scroll-snap-align:start;position:relative;display:flex;flex-direction:column;background:var(--sgm-bg);border-radius:12px;padding:46px 14px 12px;min-height:220px}
.sgm-w-badge{position:absolute;top:12px;right:0;background:#4B0082;color:#fff;font:600 13px/1 var(--sgm-fc);padding:8px 14px 7px;border-radius:12px 0 0 12px;text-decoration:none}
.sgm-w-badge:hover{color:var(--sgm-g)}
.sgm-w-t{margin:0 0 8px;font:600 17px/1.6 var(--sgm-fc)}.sgm-w-t a{text-decoration:none}
.sgm-w-d{margin:0 0 10px;font:400 15px/1.8 var(--sgm-fb);color:var(--sgm-ink);flex:1}
.sgm-w-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;font:500 13px/1.5 var(--sgm-fs);color:var(--sgm-muted);border-top:1px solid var(--sgm-line);padding-top:8px}
.sgm-w-meta b{color:var(--sgm-ink)}
.sgm-w-all{display:block;text-align:center;margin-top:10px;font:700 15px/1 var(--sgm-fs);color:var(--sgm-v);text-decoration:none;padding:8px}
/* submit popup (scrim 0.35, one layer) */
.sgm-pop{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;padding:16px}
.sgm-pop[hidden]{display:none}
.sgm-pop-in{position:relative;width:100%;max-width:520px;max-height:calc(100dvh - 32px);overflow:auto;background:var(--sgm-card);color:var(--sgm-ink);border-radius:12px;padding:22px 18px 18px;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.sgm-pop-h{margin:0 0 4px;text-align:center;font:700 21px/1.4 var(--sgm-fh)}
.sgm-pop-hint{margin:0 0 14px;text-align:center;font-size:14px;color:var(--sgm-muted)}
.sgm-x{position:absolute;top:10px;left:12px;width:36px;height:36px;border:0;border-radius:12px;background:var(--sgm-bg);color:var(--sgm-ink);font-size:24px;line-height:1;cursor:pointer}
.sgm-f{display:flex;flex-direction:column;gap:10px}
.sgm-f label{display:flex;flex-direction:column;gap:5px;font:500 14px/1.3 var(--sgm-fs)}
.sgm-f input,.sgm-f textarea{width:100%;border:1.5px solid var(--sgm-line);border-radius:12px;padding:11px 13px;font:400 16px/1.5 var(--sgm-fb);background:var(--sgm-bg);color:var(--sgm-ink)}
.sgm-f input:focus,.sgm-f textarea:focus,.sgm-pick select:focus{outline:0;border-color:#4B0082;box-shadow:0 0 0 3px rgba(75,0,130,.18)}
html[data-theme=dark] .sgm-f input:focus,html[data-theme=dark] .sgm-f textarea:focus{border-color:#C9A7F5}
.sgm-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.sgm-msg{margin:0;min-height:1.4em;font:500 15px/1.5 var(--sgm-fs);text-align:center}.sgm-msg.ok{color:#15803D}.sgm-msg.err{color:#B91C1C}
html[data-theme=dark] .sgm-msg.ok{color:#86EFAC}html[data-theme=dark] .sgm-msg.err{color:#FCA5A5}
.sgm-send{width:100%;min-height:48px}.sgm-send[disabled]{opacity:.6;cursor:wait}
@media (prefers-reduced-motion:no-preference){.sgm-w-strip{scroll-behavior:smooth}.sgm-pop:not([hidden]) .sgm-pop-in{animation:sgm-in .22s ease-out}}
@keyframes sgm-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
/* note 79: the platform buttons are their official brand tiles */
.sgm-sh.bt{border-color:transparent;background-color:var(--bc);color:#FFFFFF}.sgm-sh.bt:hover{background-color:var(--bh);color:#FFFFFF}

/* appbanner.css */
/* «بانر التطبيق» (phones): slim, fixed under the visible header, under the sticky (40) and side menu (80); the bottom bars and the alert stay on top */
.sg-appb{position:fixed;inset-inline:8px;top:0;z-index:30;display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:56px;box-sizing:border-box;
  background:var(--card,#fff);color:var(--ink,#1B1730);border:1px solid var(--line,#E5E1EE);border-top:0;border-radius:0 0 14px 14px;box-shadow:0 6px 18px rgba(26,5,51,.14);
  transform:translateY(-12px);opacity:0;pointer-events:none;transition:transform .32s ease-out,opacity .32s ease-out;font-family:var(--f-body,Tajawal,system-ui,sans-serif)}
.sg-appb.on{transform:none;opacity:1;pointer-events:auto}
.sg-appb-x{flex:none;width:32px;height:32px;border:0;background:none;color:var(--muted,#6B6280);font-size:24px;line-height:1;cursor:pointer;padding:0}
.sg-appb-i{flex:none;width:40px;height:40px;object-fit:contain}
.sg-appb-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.35}
.sg-appb-t b{font:700 14px/1.3 var(--f-sub,Alexandria,sans-serif)}
.sg-appb-t span{font-size:12px;color:var(--muted,#6B6280)}
.sg-appb-go{flex:none;background:var(--gold,#F5C518);color:var(--on-gold,#1A0533);font:700 13px/1 var(--f-sub,Alexandria,sans-serif);padding:10px 14px;border-radius:12px;text-decoration:none;white-space:nowrap}
@media (min-width:821px){.sg-appb{display:none}}
@media (prefers-reduced-motion:reduce){.sg-appb{transition:none}}

/* note 84f (84d brief): the phone bar is part of the page under the header (components/AppBar.tsx): one row, never fixed */
.sg-appb[hidden]{display:none!important}
.sg-appb.sg-appb-in{position:relative;inset:auto;top:auto;z-index:auto;margin:0;transform:none;opacity:1;pointer-events:auto;min-height:56px;padding:6px 12px 6px 4px;
  border:0;border-bottom:1px solid var(--line,#E5E1EE);border-radius:0;box-shadow:none;transition:none}
.sg-appb-in .sg-appb-i{width:36px;height:36px}
.sg-appb-in .sg-appb-t span{display:none}
.sg-appb-in .sg-appb-t b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:calc(var(--t-label,14px) + var(--t-fl,0px))}
.sg-appb-in .sg-appb-go{display:inline-flex;align-items:center;min-height:var(--tap,44px);box-sizing:border-box;padding:0 14px}
.sg-appb-in .sg-appb-x{width:var(--tap,44px);height:var(--tap,44px);order:9}
