@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;750;900&family=Noto+Sans+Arabic:wght@500;700&display=swap');
@import url('../../design-tokens.css');
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--background);color:var(--primary);font:var(--body)/1.45 var(--type);overflow:hidden}
/* iOS 26 installed web apps (WebKit bug 301108): with viewport-fit=cover and the see-through status bar, the viewport
   is shorter than the screen by the status bar height, and WebKit only draws fixed elements down to the page height.
   Making the page itself full-screen tall lets the fixed shell reach the bottom edge on every iPhone. The min() cap
   keeps it from overshooting where the viewport is already full height. The home indicator inset is tab bar padding. */
@media (display-mode: standalone){html{min-height:min(100lvh,calc(100% + env(safe-area-inset-top)))}}
html.standalone{min-height:min(100lvh,calc(100% + env(safe-area-inset-top)))}
.app{position:fixed;inset:0;display:flex;flex-direction:column;max-width:500px;margin:0 auto;padding-top:env(safe-area-inset-top)}
#screen{flex:1;min-height:0;width:100%;border:0;display:block;background:var(--background)}
.dock{flex:none;display:grid;gap:6px;padding:6px 10px 0;background:var(--background)}
.dock nav.tabbar{padding-top:4px;padding-bottom:max(6px,calc(env(safe-area-inset-bottom) - 12px))}
.player-sheet{position:fixed;inset:0;z-index:10;max-width:500px;margin:auto;transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);background:var(--background);border-radius:16px 16px 0 0;overflow:hidden;box-shadow:0 -10px 40px #000a;padding-top:env(safe-area-inset-top)}
.player-sheet.open{transform:none}
.player-sheet iframe{width:100%;height:100%;border:0;display:block}
body.player-open .app{transform:scale(.96);border-radius:16px;filter:brightness(.6);transition:transform .32s,filter .32s}
.app{transition:transform .32s,filter .32s}
@media(prefers-reduced-motion:reduce){.player-sheet,.app{transition:none}}
