/* Farida IPTV: 1920x1080 TV layout. Layout, sizes and type only: every colour comes from theme.js.
   Older TV browsers get .lite on <html> (theme.js): no movement and no shadows there. No CSS variables or grid. */
@font-face { font-family: 'Readex'; font-weight: 400; src: url('readex-regular.ttf') format('truetype'); }
@font-face { font-family: 'Readex'; font-weight: 500; src: url('readex-medium.ttf') format('truetype'); }
@font-face { font-family: 'Readex'; font-weight: 700; src: url('readex-bold.ttf') format('truetype'); }
html, body { margin: 0; width: 1920px; height: 1080px; overflow: hidden; background: #000; }
body { font-family: 'Readex', 'LG Smart UI', 'Noto Sans Arabic', 'Noto Sans', 'Segoe UI', Tahoma, sans-serif; font-size: 30px; }
#app { position: relative; width: 1920px; height: 1080px; overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { -webkit-user-drag: none; }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: middle; }
.brand { display: flex; align-items: center; font-weight: 700; font-size: 28px; direction: ltr; white-space: nowrap; }
.brand-mark { display: inline-block; flex: none; width: 52px; height: 52px; margin-right: 14px; border-radius: 15px; text-align: center; line-height: 52px; font-size: 26px; color: #fff; }
.brand.big { justify-content: center; font-size: 54px; margin-bottom: 18px; }
.brand.big .brand-mark { width: 84px; height: 84px; border-radius: 24px; line-height: 84px; }
.brand-mark.mark-farida { padding: 8px; box-sizing: border-box; }
.brand-mark.mark-farida svg { display: block; width: 100%; height: 100%; }
.brand-name { white-space: nowrap; }

/* ---- sign-in ---- */
#login { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.login-card { width: 900px; margin: 90px auto 0; padding: 50px 64px 40px; border-radius: 30px; border: 2px solid; box-sizing: border-box; }
.login-card h1 { font-size: 32px; font-weight: 500; text-align: center; margin: 0 0 34px; }
.field { display: block; margin: 0 0 20px; padding: 14px 24px; border-radius: 18px; border: 4px solid; }
.field span { display: block; font-size: 22px; margin-bottom: 4px; }
.field input { width: 100%; box-sizing: border-box; font: inherit; font-size: 32px; background: transparent; border: 0; outline: none; }
.field.button { text-align: center; padding: 0; }
.field.button button { display: block; width: 100%; padding: 20px 0; font-weight: 700; font-size: 32px; }
#loginMsg { min-height: 40px; margin: 10px 0 0; text-align: center; font-size: 26px; }
#loginHint { margin: 8px 0 0; text-align: center; font-size: 21px; line-height: 1.5; }
#loginNote { margin: 8px 0 0; text-align: center; font-size: 21px; }
#loginNote:empty { display: none; }
#loginPlus { margin: 14px 0 0; padding: 12px 20px; border-radius: 16px; text-align: center; font-size: 22px; }
#loginPlus:empty { display: none; }

/* ---- boxes over the screen ---- */
#exitBox, #plusBox, #sheet { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; }
#plusBox { z-index: 75; }
#sheet { z-index: 70; }
.exit-card { width: 760px; margin: 330px auto 0; padding: 44px 50px; border-radius: 28px; border: 2px solid; text-align: center; }
.exit-card h2 { margin: 0 0 34px; font-size: 38px; font-weight: 700; }
.exit-btns button { min-width: 230px; margin: 0 12px; padding: 18px 30px; border-radius: 40px; font-size: 30px; font-weight: 500; border: 4px solid transparent; }
.plus-chip { display: inline-block; margin: 0 10px; padding: 6px 16px; border-radius: 999px; font-size: 21px; font-weight: 500; vertical-align: middle; cursor: pointer; white-space: nowrap; }
.plus-card { width: 900px; margin: 190px auto 0; padding: 40px 46px 34px; border-radius: 30px; border: 2px solid; box-sizing: border-box; }
.plus-head { display: flex; align-items: center; }
.plus-head .brand-mark { margin: 0 18px 0 0; }
[dir="rtl"] .plus-head .brand-mark { margin: 0 0 0 18px; }
.plus-head h2 { margin: 0; font-size: 42px; font-weight: 700; }
.plus-card p { margin: 22px 0 28px; font-size: 29px; line-height: 1.55; }
.plus-btns button { display: block; width: 100%; margin: 0 0 12px; padding: 20px 24px; border-radius: 40px; font-size: 30px; font-weight: 500; border: 4px solid transparent; text-align: center; cursor: pointer; }
.plus-card.code { width: 1240px; margin-top: 130px; display: flex; align-items: flex-start; }
.plus-card.code .plus-main { flex: 1; min-width: 0; }
.plus-card.code p { margin: 20px 0 14px; }
.plus-how { font-size: 25px; line-height: 1.5; }
.plus-dev { display: flex; align-items: center; margin: 22px 0 26px; padding: 16px 24px; border-radius: 18px; }
.plus-dev span { font-size: 25px; }
.plus-dev b { margin: 0 24px; font-size: 50px; font-weight: 700; letter-spacing: 6px; font-family: 'Courier New', monospace; }
.plus-qr { flex: 0 0 340px; width: 340px; height: 340px; margin: 0 0 0 40px; border-radius: 20px; overflow: hidden; background: #fff; }
[dir="rtl"] .plus-qr { margin: 0 40px 0 0; }
.plus-qr svg { display: block; width: 100%; height: 100%; }
.sheet-card { width: 840px; margin: 200px auto 0; padding: 34px 34px 26px; border-radius: 28px; border: 2px solid; box-sizing: border-box; }
.sheet-title { font-size: 36px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-sub { margin-top: 6px; font-size: 25px; }
[dir="rtl"] .sheet-title, [dir="rtl"] .sheet-sub { text-align: right; }
.sheet-opts { margin-top: 22px; position: relative; overflow: hidden; }
.sheet-opts.long { max-height: 560px; }
.sopt { display: flex; align-items: center; height: 80px; margin: 0 0 10px; padding: 0 26px; border-radius: 18px; border: 4px solid transparent; font-size: 30px; cursor: pointer; box-sizing: border-box; }
.sopt .ico { width: 38px; height: 38px; margin: 0 20px 0 0; fill: currentColor; flex: none; }
[dir="rtl"] .sopt .ico { margin: 0 0 0 20px; }
.sopt .sval { margin: 0 auto 0 0; font-size: 24px; opacity: .75; direction: ltr; }
[dir="ltr"] .sopt .sval { margin: 0 0 0 auto; }

/* ---- top bar: brand, navigation, prayer, clock ---- */
#top { position: absolute; top: 0; left: 0; right: 0; height: 112px; padding: 0 48px 8px; box-sizing: border-box; display: flex; align-items: center; z-index: 20; }
#nav { display: flex; align-items: center; margin: 0 16px; white-space: nowrap; }
.nv { position: relative; display: inline-flex; align-items: center; height: 56px; padding: 0 16px; margin: 0 1px; border-radius: 28px; font-size: 24px; font-weight: 500; cursor: pointer; }
.nv .ico { display: none; width: 26px; height: 26px; margin: 0 0 0 9px; }
[dir="ltr"] .nv .ico { margin: 0 9px 0 0; }
.nv:after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 4px; border-radius: 2px; }
#title { flex: 1; min-width: 0; font-size: 24px; white-space: nowrap; overflow: hidden; }
[dir="rtl"] #title { text-align: left; }
[dir="ltr"] #title { text-align: right; }
#salahChip { display: flex; align-items: center; height: 52px; padding: 0 18px; margin: 0 10px; border-radius: 26px; border: 2px solid; font-size: 22px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: none; }
#salahChip .ico { width: 30px; height: 30px; margin: 0 0 0 10px; }
[dir="ltr"] #salahChip .ico { margin: 0 10px 0 0; }
#salahChip small { font-size: 19px; font-weight: 400; margin: 0 8px; }
#clockBox { text-align: center; direction: ltr; min-width: 104px; flex: none; }
#clock { font-size: 32px; font-weight: 700; line-height: 1.1; }
#date { font-size: 18px; }
.sec-title { font-size: 34px; font-weight: 700; }
.acct-line { font-size: 22px; }

/* ---- areas under the top bar ---- */
#cats, #kbd { position: absolute; top: 124px; bottom: 56px; left: 56px; width: 380px; z-index: 2; }
#content { position: absolute; top: 124px; bottom: 56px; left: 464px; right: 56px; z-index: 2; }
[dir="rtl"] #cats, [dir="rtl"] #kbd { left: auto; right: 56px; }
[dir="rtl"] #content { left: 56px; right: 464px; }
#cats { padding: 12px 10px; box-sizing: border-box; border-radius: 26px; border: 2px solid; }
.tab-live #content { left: 464px; right: 620px; }
[dir="rtl"] .tab-live #content { left: 620px; right: 464px; }
#side { position: absolute; top: 124px; bottom: 56px; right: 56px; width: 540px; padding: 30px 32px 0; box-sizing: border-box; border-radius: 26px; border: 2px solid; overflow: hidden; z-index: 2; }
[dir="rtl"] #side { right: auto; left: 56px; }
.tab-home #content, [dir="rtl"] .tab-home #content { top: 0; left: 0; right: 0; bottom: 0; }
.tab-settings #content, [dir="rtl"] .tab-settings #content, .tab-prayer #content, [dir="rtl"] .tab-prayer #content { left: 380px; right: 380px; }
#infoBar { display: none; }
#hints { position: absolute; bottom: 14px; left: 60px; right: 60px; font-size: 20px; text-align: center; z-index: 3; }
.tab-home #hints { display: none; }
#contentMsg { position: absolute; top: 220px; left: 0; right: 0; text-align: center; font-size: 30px; }
#items { position: absolute; top: 0; bottom: 0; left: 0; right: 0; }

/* the focused poster's picture, faint, behind the movie and series grids */
#ambient { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: none; z-index: 1; }
.tab-movies #ambient, .tab-series #ambient, .tab-favorites #ambient { display: block; }
.lite #ambient { display: none !important; }
.amb-img { position: absolute; top: 0; left: 0; right: 0; height: 760px; opacity: .32; background-size: cover; background-position: center 30%; }
.amb-shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

/* ---- categories, channels, details panel ---- */
.vlist { overflow: hidden; }
.vlist-inner { position: relative; will-change: transform; }   /* its own layer: scrolling moves it without drawing it again */
.vcell { position: absolute; left: 0; right: 0; box-sizing: border-box; }
.vcell.cat { height: 62px; padding: 0 24px; border-radius: 16px; line-height: 62px; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcell.cat:before { content: ''; position: absolute; top: 16px; bottom: 16px; width: 5px; border-radius: 3px; right: 6px; }
[dir="ltr"] .vcell.cat:before { right: auto; left: 6px; }
.vcell.row { height: 86px; display: flex; align-items: center; padding: 0 18px; border-radius: 18px; }
.row .num { width: 70px; flex: none; font-size: 24px; direction: ltr; text-align: center; }
.row .logo { width: 116px; height: 64px; flex: none; margin: 0 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.row .logo img { max-width: 104px; max-height: 56px; }
.row .logo b { font-size: 30px; }
.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.row .name { font-size: 28px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .now { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .nowbar { display: block; height: 3px; margin-top: 7px; width: 60%; border-radius: 2px; }
.row .nowbar i { display: block; height: 3px; border-radius: 2px; }
.row .star, .poster .star { font-size: 26px; margin: 0 10px; }
.row.ep .enum { width: 56px; height: 44px; line-height: 44px; flex: none; border-radius: 12px; text-align: center; direction: ltr; font-size: 25px; }
[dir="rtl"] .row.ep .enum { margin: 0 0 0 22px; }
[dir="ltr"] .row.ep .enum { margin: 0 22px 0 0; }
.row.ep .edur { flex: none; font-size: 23px; margin: 0 16px; direction: ltr; }
.row.ep .check { flex: none; font-size: 30px; margin: 0 10px; }
.side-logo { height: 200px; margin-bottom: 22px; border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.side-logo img { max-width: 300px; max-height: 160px; }
.side-logo b { font-size: 90px; }
.side-name { font-size: 36px; font-weight: 700; line-height: 1.2; max-height: 88px; overflow: hidden; margin-bottom: 20px; }
.side-num { display: inline-block; margin: 0 12px; padding: 0 12px; border-radius: 10px; font-size: 26px; direction: ltr; vertical-align: middle; }
.side-prog { padding: 18px 0; border-top: 2px solid; }
.side-label { font-size: 21px; margin-bottom: 6px; }
.side-ptitle { font-size: 29px; line-height: 1.3; max-height: 76px; overflow: hidden; }
.side-desc { margin-top: 10px; font-size: 22px; line-height: 1.5; max-height: 132px; overflow: hidden; }
.side-none { padding: 18px 0; border-top: 2px solid; font-size: 23px; }
.side-hint { position: absolute; bottom: 26px; left: 34px; right: 34px; text-align: center; font-size: 22px; }
.epg-bar { height: 5px; margin: 10px 0 6px; border-radius: 3px; }
.epg-bar i { display: block; height: 5px; border-radius: 3px; }

/* ---- posters, cards ---- */
.vcell.cell { width: 210px; right: auto; height: 380px; padding-top: 10px; }
[dir="rtl"] .vcell.cell { left: auto; }
.poster.skel, .tile.skel { border: 0; }
#catPick { display: none; }
.poster { position: relative; width: 200px; height: 300px; border-radius: 16px; overflow: hidden; border: 4px solid transparent; box-sizing: border-box; }
.poster img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .ph { position: absolute; top: 38%; left: 12px; right: 12px; text-align: center; font-size: 22px; }
.poster img + .ph { display: none; }
.poster .star { position: absolute; top: 8px; right: 4px; margin: 0; }
.poster .rate { position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 10px; font-size: 19px; font-weight: 500; direction: ltr; }
.poster .pbar, .wide .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.poster .pbar i, .wide .pbar i { display: block; height: 6px; }
.ptitle { width: 200px; margin-top: 10px; font-size: 21px; line-height: 1.3; height: 54px; overflow: hidden; text-align: center; }
.focused > .poster, .vcell.cell.focused .poster, .focused > .wide, .focused > .tile, .focused > .bcard { -webkit-transform: scale(1.06); transform: scale(1.06); }
.poster, .wide, .tile, .bcard { -webkit-transition: -webkit-transform .16s ease-out; transition: transform .16s ease-out; }
.vcell.cell.focused, .hcell.focused { z-index: 2; }
.lite .poster, .lite .wide, .lite .tile, .lite .bcard { -webkit-transition: none !important; transition: none !important; }
.lite .focused > .poster, .lite .vcell.cell.focused .poster, .lite .focused > .wide, .lite .focused > .tile, .lite .focused > .bcard { box-shadow: none !important; -webkit-transform: none; transform: none; }

/* ---- home: the big picture on top, rows below ---- */
#homePane, #searchPane { position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: hidden; }
#hero { position: absolute; top: 0; left: 0; right: 0; height: 800px; overflow: hidden; }
.hero-art { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
/* Each part of the picture is drawn once on its own layer, so moving the focus only redraws the text. */
.hero-img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center 25%; opacity: 0;
  -webkit-transition: opacity .35s; transition: opacity .35s; will-change: opacity; }
.hero-img.on { opacity: 1; }
.hero-img canvas { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-img.blur canvas { display: block; }
.lite .hero-img { -webkit-transition: none; transition: none; will-change: auto; }
.lite .hero-img.blur { opacity: .6; }
.hero-poster { position: absolute; top: 170px; left: 170px; width: 340px; height: 510px; border-radius: 24px; overflow: hidden; background-size: cover; background-position: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); will-change: transform; }
[dir="ltr"] .hero-poster { left: auto; right: 170px; }
.lite .hero-poster { box-shadow: none; will-change: auto; }
.in-rows .hero-poster { top: 130px; width: 260px; height: 390px; }
.hero-shade, .hero-fade { position: absolute; left: 0; right: 0; will-change: transform; }
.hero-body { will-change: transform; }
.lite .hero-shade, .lite .hero-fade, .lite .hero-body { will-change: auto; }
.hero-shade { top: 0; bottom: 0; }
.hero-fade { bottom: 0; height: 380px; }
.hero-body { position: absolute; top: 196px; right: 96px; width: 860px; }
[dir="ltr"] .hero-body { right: auto; left: 96px; }
.hero-badge { display: flex; align-items: center; height: 34px; font-size: 23px; font-weight: 500; letter-spacing: .5px; }
.hero-badge i { display: inline-block; width: 6px; height: 26px; border-radius: 3px; margin: 0 0 0 12px; }
[dir="ltr"] .hero-badge i { margin: 0 12px 0 0; }
.hero-logo { width: 300px; height: 168px; margin: 14px 0 6px; border-radius: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-logo img { max-width: 250px; max-height: 130px; }
.hero-logo b { font-size: 80px; }
.hero-title { margin: 10px 0 0; font-size: 76px; font-weight: 700; line-height: 1.12; max-height: 172px; overflow: hidden; }
.hero-meta { margin-top: 16px; font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-meta b { font-weight: 500; }
.hero-prog { width: 460px; height: 6px; margin-top: 18px; border-radius: 3px; overflow: hidden; }
.hero-prog i { display: block; height: 6px; border-radius: 3px; }
.hero-plot { margin: 18px 0 0; font-size: 26px; line-height: 1.55; max-height: 121px; overflow: hidden; }
.hero-btns { margin-top: 30px; white-space: nowrap; }
.hbtn { display: inline-flex; align-items: center; height: 72px; padding: 0 38px; margin: 0 0 0 16px; border-radius: 36px; border: 4px solid; font-size: 28px; font-weight: 700; vertical-align: top; cursor: pointer; }
[dir="ltr"] .hbtn { margin: 0 16px 0 0; }
.hbtn .ico { width: 32px; height: 32px; margin: 0 0 0 12px; }
[dir="ltr"] .hbtn .ico { margin: 0 12px 0 0; }
/* while the rows have the focus, the picture follows the focused card and the text gets smaller */
.in-rows .hero-body { top: 150px; }
.in-rows .hero-title { font-size: 60px; max-height: 136px; }
.in-rows .hero-plot { max-height: 81px; }
.in-rows .hero-logo { width: 200px; height: 112px; margin: 8px 0 0; border-radius: 18px; }
.in-rows .hero-logo img { max-width: 170px; max-height: 86px; }
.in-rows .hero-logo b { font-size: 56px; }
.in-rows .hero-logo + .hero-title + .hero-meta + .hero-prog + .hero-plot, .in-rows .hero-logo:not([hidden]) ~ .hero-plot { max-height: 40px; }
.in-rows .hero-btns { display: none; }
#homeRows { position: absolute; top: 560px; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
/* the rows' box lies over the lower part of the picture (its buttons): only the rows themselves take clicks and taps */
.hrow-wrap { pointer-events: auto; }
#homeStrip { position: relative; -webkit-transition: -webkit-transform .28s ease-out; transition: transform .28s ease-out; will-change: transform; }
.hrow-strip { will-change: transform; }
.lite #homeStrip, .lite .hrow-strip { will-change: auto; }
.lite #homeStrip { -webkit-transition: none; transition: none; }
#homeStrip .hrow-wrap { padding: 0 48px; margin: 0 0 6px; }
.hrow-wrap { margin: 0 0 16px; }
.hrow-title { margin: 0 0 4px; padding: 0 10px; font-size: 28px; font-weight: 700; }
.hrow-title small { font-size: 21px; font-weight: 400; margin: 0 12px; }
.hrow { position: relative; overflow: hidden; padding: 16px 10px; }
.k-wide .hrow { height: 236px; }
.k-tile .hrow { height: 214px; }
.k-poster .hrow { height: 366px; }
.k-browse .hrow { height: 180px; }
.hrow-strip { position: relative; height: 100%; }
.hcell { position: absolute; top: 0; }
.wide { position: relative; width: 384px; height: 216px; border-radius: 18px; overflow: hidden; border: 4px solid transparent; box-sizing: border-box; }
.wide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.wshade { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; }
.wplay { position: absolute; top: 34px; left: 50%; width: 60px; height: 60px; margin-left: -30px; border-radius: 30px; font-size: 30px; text-align: center; line-height: 60px; }
.wtitle { position: absolute; left: 18px; right: 18px; bottom: 44px; font-size: 25px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsub { position: absolute; left: 18px; right: 18px; bottom: 16px; font-size: 19px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmore { display: none; position: absolute; top: 10px; right: 10px; width: 56px; height: 56px; border-radius: 28px; background: rgba(3, 6, 15, 0.7); color: #fff; text-align: center; }
[dir="rtl"] .wmore { right: auto; left: 10px; }
.wmore .ico { width: 34px; height: 34px; margin-top: 11px; fill: #fff; }
.hcell:hover .wmore { display: block; }
.tile { position: relative; width: 264px; height: 148px; border-radius: 18px; border: 4px solid transparent; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.tlogo { display: flex; align-items: center; justify-content: center; background: transparent !important; }
.tlogo img { max-width: 180px; max-height: 96px; }
.tlogo b { font-size: 44px; }
.tnum { position: absolute; top: 8px; left: 12px; font-size: 19px; opacity: .6; direction: ltr; }
.ttitle { width: 264px; margin-top: 10px; font-size: 21px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard { position: relative; width: 280px; height: 148px; border-radius: 20px; border: 4px solid transparent; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.bcard .bico { font-size: 54px; line-height: 1; }
.bcard .blabel { margin-top: 10px; font-size: 27px; font-weight: 700; }

/* ---- search ---- */
.kbd-box { position: relative; height: 78px; margin-bottom: 18px; padding: 0 22px; border-radius: 18px; border: 4px solid transparent; line-height: 78px; font-size: 32px; white-space: nowrap; overflow: hidden; }
.kbd-caret { display: inline-block; width: 3px; height: 38px; margin: 0 4px; vertical-align: middle; }
.kbd-row { display: flex; margin-bottom: 8px; }
.kbd-key { display: block; white-space: nowrap; overflow: hidden; height: 62px; line-height: 62px; margin: 0 4px; border-radius: 14px; text-align: center; font-size: 29px; border: 3px solid transparent; box-sizing: border-box; }
.kbd-key.span1 { width: 64px; }
.kbd-key.span2 { width: 136px; }
.kbd-key.kbd-act { font-size: 22px; }

/* ---- settings ---- */
#settingsPane, #prayerPane { position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: hidden; }
.set-inner { -webkit-transition: -webkit-transform .2s; transition: transform .2s; will-change: transform; }
.lite .set-inner { -webkit-transition: none; transition: none; }
.acct { display: flex; flex-wrap: wrap; padding: 22px 30px; margin-bottom: 18px; border-radius: 22px; font-size: 24px; line-height: 1.6; }
.acct div { width: 50%; }
.acct .srv { width: 100%; font-size: 21px; }
.acct b { font-weight: 400; }
.srow { display: flex; align-items: center; height: 70px; padding: 0 26px; margin-bottom: 10px; border-radius: 18px; font-size: 28px; box-sizing: border-box; }
.srow .sico { width: 34px; height: 34px; margin: 0 0 0 18px; flex: none; }
[dir="ltr"] .srow .sico { margin: 0 18px 0 0; }
.slabel { flex: 1; }
.svalue { display: flex; align-items: center; font-weight: 500; }
.swatch { display: inline-block; width: 30px; height: 30px; margin: 0 12px; border-radius: 50%; border: 2px solid; vertical-align: middle; }
.diag { padding: 24px 30px; border-radius: 22px; }
.diag h3 { margin: 0 0 14px; font-size: 30px; }
.diag-body { font-size: 20px; line-height: 1.45; max-height: 700px; overflow: hidden; word-wrap: break-word; text-align: left; font-family: monospace; }
.diag-hint { margin-top: 12px; font-size: 22px; text-align: center; }

/* ---- prayer times ---- */
.pr-head { text-align: center; margin-top: 10px; }
.pr-city { font-size: 46px; font-weight: 700; }
.pr-date { margin-top: 6px; font-size: 25px; }
.pr-next { display: flex; align-items: center; justify-content: center; margin: 30px auto 0; padding: 20px 30px; border-radius: 26px; border: 2px solid; font-size: 30px; }
.pr-next .ico { width: 54px; height: 54px; margin: 0 0 0 18px; }
[dir="ltr"] .pr-next .ico { margin: 0 18px 0 0; }
.pr-next b { font-size: 40px; margin: 0 14px; }
.pr-cards { display: flex; justify-content: space-between; margin-top: 30px; }
.pr-card { width: 176px; padding: 24px 0 20px; border-radius: 24px; border: 3px solid; text-align: center; }
.pr-card .ico { width: 44px; height: 44px; }
.pr-card div { margin-top: 10px; font-size: 28px; font-weight: 500; }
.pr-card b { display: block; margin-top: 6px; font-size: 40px; font-weight: 700; direction: ltr; }
.pr-card small { display: block; margin-top: 4px; font-size: 19px; }
.pr-btns { margin-top: 36px; text-align: center; white-space: nowrap; }
.pr-btn { display: inline-flex; align-items: center; height: 68px; padding: 0 30px; margin: 0 8px; border-radius: 34px; border: 4px solid transparent; font-size: 26px; font-weight: 500; cursor: pointer; }
.pr-btn .ico { width: 30px; height: 30px; margin: 0 0 0 10px; }
[dir="ltr"] .pr-btn .ico { margin: 0 10px 0 0; }
.pr-note { margin-top: 22px; text-align: center; font-size: 21px; }
#salahBanner { position: absolute; top: 126px; left: 50%; width: 900px; margin-left: -450px; display: flex; align-items: center; padding: 18px 30px; border-radius: 24px; border: 3px solid; box-sizing: border-box; z-index: 80; }
#player:not([hidden]) ~ #salahBanner { top: 46px; }
#salahBanner .ico { width: 64px; height: 64px; flex: none; margin: 0 0 0 22px; }
[dir="ltr"] #salahBanner .ico { margin: 0 22px 0 0; }
#salahBanner b { display: block; font-size: 34px; font-weight: 700; }
#salahBanner small { display: block; margin-top: 4px; font-size: 22px; }

/* ---- details pages (movie, series) ---- */
#movie, #seriesPage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.bshade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.dposter { position: absolute; top: 130px; left: 110px; width: 360px; height: 540px; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.lite .dposter { box-shadow: none; }
.dposter img { width: 100%; height: 100%; object-fit: cover; }
.dinfo { position: absolute; top: 130px; left: 540px; right: 110px; bottom: 60px; }
[dir="rtl"] .dposter { left: auto; right: 110px; }
[dir="rtl"] .dinfo { left: 110px; right: 540px; }
.dinfo h1 { margin: 0; font-size: 64px; font-weight: 700; line-height: 1.15; max-height: 148px; overflow: hidden; }
.dmeta { margin-top: 14px; font-size: 26px; min-height: 36px; }
.dplot { margin: 18px 0 14px; font-size: 27px; line-height: 1.55; max-height: 252px; overflow: hidden; }
.dplot.short { max-height: 126px; }
.dcast { font-size: 23px; line-height: 1.6; }
.dcast b { font-weight: 500; }
.dbtns { margin-top: 28px; white-space: nowrap; }
.dbtn { display: inline-flex; align-items: center; height: 72px; padding: 0 36px; margin: 0 0 0 16px; border-radius: 36px; font-size: 28px; font-weight: 700; border: 4px solid transparent; vertical-align: top; }
[dir="ltr"] .dbtn { margin: 0 16px 0 0; }
.dbtn .ico { font-size: 30px; margin: 0 0 0 12px; }
[dir="ltr"] .dbtn .ico { margin: 0 12px 0 0; }
#sInfo { display: flex; flex-direction: column; }
#sInfo > h1, #sInfo > div, #sInfo > p, #sInfo > h2 { flex: none; }
#sInfo > #sEpisodes { flex: 1; position: relative; min-height: 240px; }
#sInfo .dbtns { margin: 6px 0 18px; }
#sSeasons { white-space: nowrap; overflow: hidden; margin-bottom: 8px; }
.season { display: inline-block; margin: 0 6px 6px 0; padding: 10px 26px; border-radius: 26px; font-size: 25px; font-weight: 500; border: 4px solid transparent; }
#epTitle { margin: 6px 0 12px; font-size: 25px; font-weight: 400; }
#sHints { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 21px; }

/* ---- player ---- */
#player { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #000; overflow: hidden; color: #F4F6FB; }
#video { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; background: #000; object-fit: contain; }
#video.ar-fill { object-fit: fill; }
#video.ar-zoom { width: 2400px; height: 1350px; left: -240px; top: -135px; object-fit: cover; }
#spinner { position: absolute; top: 50%; left: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; }
#spinner i { display: block; width: 74px; height: 74px; border-radius: 50%; border: 8px solid rgba(255, 255, 255, 0.15);
  -webkit-animation: spin 0.9s linear infinite; animation: spin 0.9s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.ppanel { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 80px 26px; }
.osd-head { display: flex; align-items: center; margin-bottom: 10px; }
.osd-num { font-size: 34px; border-radius: 12px; padding: 0 14px; margin: 0 18px; direction: ltr; }
.osd-logo { max-width: 130px; max-height: 70px; margin: 0 20px; }
.osd-name { flex: 1; font-size: 40px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-star { font-size: 34px; margin: 0 14px; }
.osd-clock { font-size: 34px; direction: ltr; margin: 0 20px; }
.osd-behind { margin: 0 16px; padding: 4px 16px; border-radius: 12px; font-size: 25px; color: #fff; background: #e53935; white-space: nowrap; }
.osd-epg { min-height: 0; }
.d-title { font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-meta { font-size: 24px; margin-top: 6px; color: #9fd0ff; }
.epg-row { display: flex; align-items: center; font-size: 25px; height: 40px; white-space: nowrap; }
.epg-row.next { color: #A9B6CF; }
.epg-label { flex: none; width: 110px; color: #9fd0ff; }
.epg-time { flex: none; width: 190px; color: #A9B6CF; direction: ltr; text-align: center; }
.epg-title { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.c-prog { display: flex; align-items: center; font-size: 25px; margin: 8px 0 20px; }
.c-cur { width: 140px; }
.c-tot { width: 260px; text-align: right; color: #A9B6CF; }
.c-bar { position: relative; flex: 1; height: 10px; margin: 0 24px; border-radius: 5px; background: rgba(255, 255, 255, 0.25); }
.c-bar.focused { height: 14px; background: rgba(255, 255, 255, 0.4); }
.c-fill { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 5px; }
.c-mark { position: absolute; top: -8px; width: 6px; margin-left: -3px; height: 30px; border-radius: 3px; background: #fff; display: none; }
.c-tip { position: absolute; bottom: 30px; padding: 6px 16px; border-radius: 10px; font-size: 25px; white-space: nowrap; display: none;
  -webkit-transform: translateX(-50%); transform: translateX(-50%); }
.c-btns { display: flex; justify-content: center; }
.cbtn { display: flex; flex-direction: column; align-items: center; width: 138px; margin: 0 5px; padding: 10px 0 8px; border-radius: 20px; border: 4px solid transparent; }
.cbtn .ico { width: 72px; height: 72px; padding: 14px; box-sizing: border-box; border-radius: 36px; background: rgba(255, 255, 255, .12); }
.cbtn span { font-size: 20px; margin-top: 8px; color: #C9D3E6; white-space: nowrap; }
.cbtn.on .ico { color: #ffc93c; }
.cbtn.focused { background: rgba(255, 255, 255, .08); }
.cbtn.focused span { color: #fff; }
.c-hint { margin-top: 10px; text-align: center; font-size: 23px; color: #C9D3E6; }
#zap { position: absolute; top: 0; bottom: 0; left: 0; width: 740px; border-right: 3px solid; }
[dir="rtl"] #zap { left: auto; right: 0; border-right: 0; border-left: 3px solid; }
#zapHead { position: absolute; top: 30px; left: 30px; right: 30px; height: 68px; display: flex; align-items: center; justify-content: center; font-size: 29px; border-radius: 18px; }
#zapHead .za { font-size: 44px; margin: 0 24px; }
#zapHead .zname { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#zapList { position: absolute; top: 116px; bottom: 70px; left: 30px; right: 30px; }
#zapHint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 21px; color: #8B98B3; }
#menu { position: absolute; top: 50%; left: 50%; width: 640px; margin-left: -320px; -webkit-transform: translateY(-50%); transform: translateY(-50%); padding: 26px 30px; border-radius: 26px; border: 2px solid; }
#menu h3 { margin: 0 0 16px; font-size: 29px; font-weight: 700; text-align: center; }
.mopt { display: flex; align-items: center; height: 64px; padding: 0 20px; margin-bottom: 8px; border-radius: 16px; font-size: 27px; }
.mcheck { width: 40px; color: #5fd38b; }
.mopt.focused .mcheck { color: #fff; }
#nextCard { position: absolute; bottom: 330px; right: 80px; width: 560px; padding: 22px 28px; border-radius: 22px; border: 3px solid; }
[dir="rtl"] #nextCard { right: auto; left: 80px; }
.nc-label { font-size: 23px; }
.nc-name { margin-top: 8px; font-size: 29px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-in { margin-top: 8px; font-size: 21px; color: #A9B6CF; }
#numBox { position: absolute; top: 60px; right: 80px; padding: 10px 30px; border-radius: 18px; font-size: 62px; font-weight: 700; direction: ltr; }
[dir="rtl"] #numBox { right: auto; left: 80px; }

#player:not([hidden]) ~ #toast { top: 50px; bottom: auto; }
#toast { position: absolute; bottom: 90px; left: 50%; width: 900px; margin-left: -450px; padding: 22px 30px; box-sizing: border-box; border-radius: 22px; text-align: center;
  font-size: 29px; border: 3px solid; z-index: 50; }

/* Right-to-left: names written in Latin letters still line up on the right, next to their logos. */
[dir="rtl"] .row .name, [dir="rtl"] .row .now, [dir="rtl"] .osd-name, [dir="rtl"] .d-title, [dir="rtl"] .epg-title, [dir="rtl"] .dinfo h1, [dir="rtl"] .dmeta,
[dir="rtl"] .dplot, [dir="rtl"] .dcast, [dir="rtl"] .wtitle, [dir="rtl"] .wsub, [dir="rtl"] .nc-name, [dir="rtl"] .mopt span, [dir="rtl"] .hrow-title, [dir="rtl"] .kbd-text,
[dir="rtl"] .side-name, [dir="rtl"] .side-ptitle, [dir="rtl"] .side-desc, [dir="rtl"] .side-label, [dir="rtl"] .hero-title, [dir="rtl"] .hero-meta, [dir="rtl"] .hero-plot { text-align: right; }
[dir="rtl"] .row .nowbar { margin-left: auto; }
/* Left-to-right (English): Arabic names line up on the left like everything else. */
[dir="ltr"] .row .name, [dir="ltr"] .row .now, [dir="ltr"] .osd-name, [dir="ltr"] .d-title, [dir="ltr"] .epg-title, [dir="ltr"] .dinfo h1, [dir="ltr"] .dmeta,
[dir="ltr"] .dplot, [dir="ltr"] .dcast, [dir="ltr"] .wtitle, [dir="ltr"] .wsub, [dir="ltr"] .nc-name, [dir="ltr"] .mopt span, [dir="ltr"] .hrow-title,
[dir="ltr"] .side-name, [dir="ltr"] .side-ptitle, [dir="ltr"] .side-desc, [dir="ltr"] .side-label, [dir="ltr"] .hero-title, [dir="ltr"] .hero-meta, [dir="ltr"] .hero-plot { text-align: left; }
