/* EGYSHOW shared visual refinement: layout only, no changes to access or playback. */
:root{--ui-surface:#101c2c;--ui-border:#304258;--ui-focus:#77b8ff;--ui-text:#edf4ff;--ui-muted:#a9b9ce;--ui-radius:14px;--ui-gap:clamp(12px,1.5vw,22px)}
html{scroll-padding-top:90px;-webkit-text-size-adjust:100%}
:where(button,input,select,textarea){font-family:inherit}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
:where(.content-shell,.seo-shell,.account-page,.premium-account,.legal-shell,.catalog-page,.premium-search-page){min-inline-size:0}
:where(.topbar,.landing-header) .brand{flex-shrink:0}
.topbar .actions{align-items:center;flex-shrink:0;gap:clamp(5px,.7vw,12px)}
.topbar .actions :is(.icon-btn,.language-switch,.account-avatar){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.topbar .language-flag{display:block;flex:none;object-fit:contain}
.topbar .desktop-nav{min-width:0;align-items:center}
.topbar .desktop-nav a{white-space:nowrap}
.account-menu{max-inline-size:min(300px,calc(100vw - 24px));overflow-wrap:anywhere}
:where(.section-grid,.search-results,.smart-search-grid,.protected-episodes-grid,.account-form-grid,.account-settings-grid)>*{min-inline-size:0}
:where(.portrait-media-card,.catalog-card,.listing-card,.stream-card,.episode-card,.channel-landscape-card){min-inline-size:0}
.portrait-poster{background-color:#132135}
.portrait-poster .poster-art{display:block;object-fit:cover;object-position:center}
:where(.poster-title,.card-title,.account-section-head h2,.catalog-hero h1,.legal-shell h1){overflow-wrap:anywhere}
:where(.poster-submeta,.hero-meta,.account-dashboard-nav,.page-nav,.media-detail-nav){row-gap:8px}
:where(.account-settings-card,.account-dashboard-section,.account-profile-hero,.account-auth-card){min-inline-size:0}
.account-dashboard-nav{flex-wrap:wrap}
.account-dashboard-nav a{min-height:42px;align-content:center}
:where(.account-form-grid,.account-auth-card) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){max-inline-size:100%;min-inline-size:0}
:where(.account-auth-terms,.auth-terms,.terms-consent){align-items:flex-start;text-align:start;overflow-wrap:anywhere}
:where(.account-auth-terms,.auth-terms,.terms-consent) input[type=checkbox]{flex:none;inline-size:18px;block-size:18px;accent-color:#278cff}
:where(.account-auth-captcha,.landing-captcha){max-inline-size:100%;min-inline-size:0;overflow-x:auto}
:where(.legal-shell,.legal-content) :is(p,li){line-height:1.95;overflow-wrap:anywhere}
:where(.legal-shell,.legal-content) :is(h1,h2,h3){line-height:1.45;text-wrap:balance}
:where(.legal-shell,.legal-content) a{overflow-wrap:anywhere}
:where(.footer-nav,.footer-legal){flex-wrap:wrap;row-gap:12px}
:where(.footer-pro-column,.footer-pro-brand-block){min-inline-size:0;overflow-wrap:anywhere}
.landing-header{gap:16px}
.landing-main{align-items:center;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.landing-main>*{min-width:0}
.landing-main .auth-card{max-width:480px;padding:clamp(18px,3vw,34px);border-radius:22px}
.landing-main .intro h1{line-height:1.32;letter-spacing:-.025em;text-wrap:balance}
html[lang=ar] .landing-main .intro h1{letter-spacing:normal}
.landing-main .intro .privacy-note{border:0;border-inline-start:3px solid #388bff;text-align:start}
.landing-main .feature-list,.landing-main .free-access{text-align:start}
.landing-main .auth-card form input:not([type=checkbox]){min-height:48px;font-size:16px}
.landing-main .auth-card .tabs button,.landing-main .auth-card .submit{min-height:44px}
.landing-main .auth-card .message{line-height:1.7;overflow-wrap:anywhere}
.landing-main .google-wrap,.landing-main .facebook-wrap{max-width:100%;min-width:0}
.landing-main .stat-card{min-width:0}
.landing-main .stat-card strong{font-variant-numeric:tabular-nums}
.landing-footer .footer-legal{max-width:100%}
@media(max-width:820px){
 .landing-main{grid-template-columns:minmax(0,1fr);gap:24px}
 .landing-main .auth-card{width:100%;max-width:500px}
 .landing-main .intro{width:100%}
 .topbar .actions{gap:5px}
 .account-dashboard-nav a{min-height:44px}
 .footer-pro-main{gap:20px}
}
@media(max-width:480px){
 .landing-main{width:calc(100% - 28px)}
 .landing-main .auth-card{padding:18px 12px}
 .landing-main .intro h1{font-size:clamp(30px,8vw,40px)}
 .landing-header{padding-inline:14px}
 .landing-main .feature-list{gap:10px}
 .account-form-grid,.account-settings-grid{grid-template-columns:minmax(0,1fr)}
 .account-dashboard-nav{gap:6px}
 .account-dashboard-nav a{padding-inline:10px}
 .legal-shell{overflow-wrap:anywhere}
}
@media(max-width:360px){.landing-main{width:calc(100% - 20px)}.landing-main .auth-card{padding-inline:10px}.landing-main .google-wrap{overflow-x:auto}.topbar .actions{gap:3px}}
@media(pointer:coarse){.landing-main .tabs button,.language,.facebook-login-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.cinema-wall,.cinema-tile,.cinema-tile img{animation:none!important}.poster-art{transition:none!important}}


/* Account overview: five equal destinations, compact profile, no duplicate navigation. */
#accountDashboard.account-page{padding-top:clamp(24px,3vw,44px)!important;padding-bottom:clamp(32px,5vw,64px)!important}
#accountDashboard .account-profile-hero{padding:clamp(20px,2.5vw,32px)!important;min-height:0!important}
#accountDashboard .account-profile-copy{min-width:0;overflow-wrap:anywhere}
#accountDashboard .account-profile-copy h1{font-size:clamp(22px,2.5vw,36px)!important;line-height:1.5;margin-block:6px}
#accountDashboard .account-profile-copy p{margin-block:4px}
#accountDashboard .account-overview{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-block:18px 24px}
#accountDashboard .account-stat-card{min-height:92px;padding:16px;align-content:center}
#accountDashboard .account-stat-card span{font-size:clamp(12px,1vw,15px);color:#e5effc;line-height:1.6}
#accountDashboard .account-stat-card small{font-size:11px;color:#a9bdd5}

#accountDashboard[data-account-active-section="overview"] .account-dashboard-nav{display:none!important}
#accountDashboard .account-dashboard-nav{justify-content:flex-start;gap:6px}
@media(max-width:1100px) and (min-width:761px){#accountDashboard .account-overview{grid-template-columns:repeat(3,minmax(0,1fr))}#accountDashboard .account-overview>a:nth-last-child(-n+2){grid-column:auto}}
@media(max-width:760px){#accountDashboard .account-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#accountDashboard .account-overview>a:last-child{grid-column:1/-1}#accountDashboard .account-stat-card{padding:12px;min-height:76px}}


/* Home artwork must sit above the background and below readability overlays. */
#hero.stream-hero.premium-hero{background:radial-gradient(ellipse at 20% 35%,#16304b 0%,#0a1423 55%,#070c15 100%)!important}
#hero.stream-hero>.hero-backdrop-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 28%;z-index:0!important;pointer-events:none}
#hero.stream-hero>.hero-backdrop-art[hidden]{display:none!important}
#hero.stream-hero:before,#hero.stream-hero>.hero-shade{z-index:1!important;pointer-events:none}
#hero.stream-hero>.hero-content,#hero.stream-hero>.hero-dots{z-index:2!important}
html[dir=rtl] #hero.stream-hero:before{background:linear-gradient(270deg,rgba(4,10,18,.95),rgba(4,10,18,.68) 30%,rgba(4,10,18,.10) 78%),linear-gradient(0deg,#070d17 0%,transparent 55%)}
html[dir=ltr] #hero.stream-hero:before{background:linear-gradient(90deg,rgba(4,10,18,.95),rgba(4,10,18,.68) 30%,rgba(4,10,18,.10) 78%),linear-gradient(0deg,#070d17 0%,transparent 55%)}
@media(max-width:760px){#hero.stream-hero>.hero-backdrop-art{object-position:center}#hero.stream-hero:before{background:linear-gradient(0deg,#070d17 0%,rgba(7,13,23,.78) 35%,rgba(7,13,23,.12) 85%)!important}}

#hero.stream-hero.premium-hero{background-size:cover!important;background-position:center 28%!important;background-repeat:no-repeat!important}

/* Quality pass: preserve existing layout and playback; refine public surfaces. */
.landing-main .auth-card{border-color:rgba(132,171,221,.25);box-shadow:0 18px 60px rgba(0,0,0,.4)}
.landing-main .auth-heading h2{line-height:1.4}
.landing-main .auth-card .submit{font-weight:800}
.landing-main .feature-list>div{min-width:0}
.landing-main .feature-list>div span{overflow-wrap:anywhere}
.landing-main .stat-card{border-radius:12px}
.landing-main .auth-card :where(input,button):focus-visible{outline-offset:2px}
.landing-main .google-wrap iframe{max-inline-size:100%}
:where(.legal-shell,.legal-content) :where(h1,h2,h3){scroll-margin-top:100px}
:where(.legal-shell,.legal-content) :where(p,li){max-inline-size:85ch}
@media(max-width:820px){.landing-main{padding-block:28px 40px}.landing-main .auth-card{grid-row:1;justify-self:center}.landing-main .intro{max-width:100%}}
@media(max-width:480px){.landing-main .auth-card{border-radius:16px}.landing-main .feature-list{grid-template-columns:repeat(2,minmax(0,1fr))}.landing-main .stat-label{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.landing-main *{scroll-behavior:auto!important}}

/* Registration controls: styling only, provider-rendered button stays untouched. */
.landing-main .auth-card .tabs,#accountAuth .account-auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;border:1px solid #29435e;border-radius:13px;background:#0c192a}
.landing-main .auth-card .tabs button,#accountAuth .account-auth-tabs button{min-height:44px;border-radius:9px;font-size:14px;font-weight:800;line-height:1.5}
.landing-main .auth-card .tabs button.active,#accountAuth .account-auth-tabs button.active{background:linear-gradient(120deg,#278cff,#0867d7)!important;color:#fff!important}
.landing-main .auth-card #facebookButton,#accountAuth #accountFacebookWrap{margin:4px 0 0;padding:0;border:0;min-width:0;justify-items:center}
#accountAuth #accountGoogleWrap{margin:12px 0 0;padding:0;border:0;gap:6px;min-width:0}
#accountAuth #accountGoogleWrap>span{display:none}
.landing-main .auth-card .facebook-login-button,#accountAuth .account-auth-card .facebook-login-button{height:40px;min-height:40px;width:min(100%,280px);padding:0 8px;border:1px solid #1877f2;border-radius:20px;background:#1877f2;color:#fff;font:700 13px Cairo,Arial,sans-serif;opacity:1;gap:8px}
#accountAuth .account-auth-card .facebook-login-button{width:min(100%,300px)}
.landing-main .auth-card .facebook-login-button:hover:not(:disabled),#accountAuth .account-auth-card .facebook-login-button:hover:not(:disabled){background:#1268d4;border-color:#1268d4}
.landing-main .auth-card .facebook-login-button:disabled,#accountAuth .account-auth-card .facebook-login-button:disabled{opacity:.55;cursor:not-allowed}
#accountFacebookNote[hidden],#facebookButtonNote[hidden]{display:none!important}
@media(min-width:1040px){
 .landing-main{width:min(1320px,94%);grid-template-columns:minmax(0,1fr) minmax(0,650px);gap:clamp(22px,4vw,58px)}
 .landing-main .auth-card{max-width:650px;width:100%;padding:24px}
 #accountAuth .account-auth-layout{max-width:1320px;grid-template-columns:minmax(0,1fr) minmax(0,660px);gap:clamp(22px,4vw,58px)}
 .landing-main .auth-card,#accountAuth .account-auth-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px;align-items:start}
 .landing-main .auth-card>*,#accountAuth .account-auth-card>*{grid-column:1/-1;min-width:0}
 .landing-main .auth-card>#googleButton,#accountAuth .account-auth-card>#accountGoogleWrap{grid-column:1;min-width:0;margin:0}
 .landing-main .auth-card>#facebookButton,#accountAuth .account-auth-card>#accountFacebookWrap{grid-column:2;margin:0}
 .landing-main .auth-card #googleButton{min-height:44px}
 #accountAuth .account-auth-card>#accountGoogleWrap.hidden{display:none!important}
 #accountAuth .account-auth-card:has(#accountGoogleWrap.hidden)>#accountFacebookWrap{grid-column:1/-1}
}
@media(max-width:400px){#accountAuth .account-auth-card .facebook-login-button{width:min(100%,250px)}}
