/* Isolated components; legacy article, widget and plugin styling stays in style.css. */
.gx-header,.gx-listing,.gx-hub,.gx-game-detail,.gx-pagination{--gx-red:#d71927;--gx-ink:#19232e;box-sizing:border-box}
.gx-header *, .gx-hub *, .gx-game-detail *{box-sizing:border-box}
.gx-header{background:#fff;border-bottom:1px solid #e4e6ec;position:relative;z-index:100;color:#19232e}
.gx-header-row{max-width:1440px;margin:auto;padding:12px 24px 8px;display:flex;gap:24px;align-items:center}
.gx-brand{flex:0 0 auto}.gx-brand .logo,.gx-brand .site-title{margin:0;padding:0;float:none;font-size:24px}
.gx-brand img{max-height:56px;max-width:150px;width:auto;object-fit:contain}
.gx-search{display:flex;align-items:center;background:#f4f5f8;border:1px solid #d9dee5;border-radius:28px;overflow:hidden;width:min(100%,480px);margin:0 auto}
.gx-search input[type=search]{min-width:0;width:100%;border:0;background:transparent;padding:12px 18px;font:inherit;font-size:15px;line-height:30px;color:#19232e}
.gx-search button,.gx-menu-toggle,.gx-sub-toggle{background:#19232e;color:#fff;border:0;padding:10px 15px;margin:0;min-height:44px;font-size:16px;border-radius:6px;text-decoration:none}
.gx-search button{border-radius:0}.gx-header a{color:#19232e;text-decoration:none}.gx-header a:hover{color:#d71927}
.gx-social-list{display:flex;gap:14px;list-style:none;margin:0;padding:0}.gx-social-list li{margin:0;font-size:18px}
.gx-nav{max-width:1440px;margin:auto;padding:0 24px;position:relative}
.gx-menu{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.gx-menu li{margin:0;position:static;list-style:none;font-size:16px;letter-spacing:0;min-width:0}
.gx-menu a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;line-height:1.5;border-radius:6px;text-decoration:none}
.gx-menu .icon{display:none}
.gx-menu-link{display:inline-flex;align-items:center;gap:0;border-radius:7px;vertical-align:middle;max-width:100%}
.gx-menu-link>a{padding-inline-end:4px;min-width:0}
.gx-menu>li>.gx-menu-link,.gx-menu>li>a{position:relative;margin-block:3px 6px;transition:background-color .15s,color .15s}
.gx-menu>li>.gx-menu-link{background:#f6f7f9}
.gx-menu>li>.gx-menu-link:hover,.gx-menu>li>a:hover,.gx-menu>li>.gx-menu-link:focus-within{background:#f5f6f8}
.gx-menu>li.current-menu-item>.gx-menu-link,.gx-menu>li.current-menu-ancestor>.gx-menu-link,.gx-menu>li.current-menu-item>a{background:#fff1f2;color:#b81422}
.gx-menu>li.current-menu-item>.gx-menu-link::after,.gx-menu>li.current-menu-ancestor>.gx-menu-link::after,.gx-menu>li.current-menu-item>a::after{content:"";position:absolute;inset-inline:12px;bottom:-6px;height:3px;border-radius:3px;background:#d71927}
.gx-menu .current-menu-item>a,.gx-menu .current-menu-item>.gx-menu-link>a,.gx-menu .current-menu-ancestor>.gx-menu-link>a{color:#b81422}
.gx-sub-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;width:44px;height:44px;background:transparent;color:inherit;padding:0}
.gx-sub-toggle::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.gx-sub-toggle[aria-expanded=true]::before{transform:translateY(2px) rotate(225deg)}
.gx-sub-toggle:hover{background:#e9edf2;color:#b81422}
.gx-menu>li>ul{position:absolute;inset-inline:24px;top:100%;margin:0;padding:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:#fff;border:1px solid #e4e6ec;border-top:3px solid #d71927;border-radius:0 0 12px 12px;box-shadow:0 12px 24px #19232e18;max-height:65vh;overflow:auto;z-index:10;animation:gx-menu-in .15s ease-out}
.gx-menu ul a{border-radius:6px;font-size:15px}.gx-menu ul a:hover{background:#f4f5f8}.gx-menu ul ul{margin:0;padding-inline-start:12px}
.gx-header [hidden]{display:none}.gx-nav-mobile{display:none}.gx-header :focus-visible,.gx-listing :focus-visible,.gx-hub :focus-visible,.gx-game-detail :focus-visible,.gx-pagination :focus-visible{outline:3px solid #d71927;outline-offset:3px}
.gx-listing{width:100%;max-width:none;margin:0 auto;padding:0 8px}.gx-list-title{font-size:clamp(24px,3vw,36px);margin:28px 12px}
.gx-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.gx-tile{min-width:0;position:relative;background:#19232e;overflow:hidden;aspect-ratio:16/9}
.gx-tile>a{display:block;height:100%;color:white}.gx-tile img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.gx-tile h2{position:absolute;inset-inline:0;bottom:0;margin:0;padding:24px 14px 12px;background:linear-gradient(transparent,#000e);color:white;font-size:clamp(15px,1.3vw,21px);line-height:1.5;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.gx-tile:hover img{transform:scale(1.035)}
.gx-pagination{padding:24px 8px;clear:both}.gx-pagination .pagination{padding:0;margin:0;max-width:none;width:auto}.gx-pagination .nav-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;font-size:16px}
.gx-pagination .page-numbers{position:static;margin:0;min-width:40px;min-height:40px;padding:8px 12px;border-radius:7px;border:1px solid #d9dee5;background:white;color:#19232e;text-decoration:none;text-align:center}
.gx-pagination .current,.gx-pagination a:hover{background:#d71927;color:white;border-color:#d71927}.gx-pagination .dots{border:0;background:transparent}
.gx-hub,.gx-game-detail{max-width:1440px;width:100%;margin:0 auto;padding:clamp(16px,3vw,40px);color:#19232e;overflow-wrap:anywhere}
.gx-hero{padding:clamp(20px,3vw,36px);background:linear-gradient(125deg,#101820,#283a4e);color:#fff;border-radius:12px;margin-bottom:24px;border-bottom:4px solid #d71927}
.gx-hero h1{color:#fff;font-size:clamp(28px,4vw,48px);margin:0 0 12px;letter-spacing:0}.gx-hero p{max-width:800px;font-size:18px;margin:0;line-height:1.8}
.gx-filters{font-family:'drmohsen',sans-serif;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto auto;align-items:end;gap:12px;margin:20px 0 24px;padding:18px;background:#fff;border:1px solid #e0e4ea;border-radius:10px;box-shadow:0 2px 8px #19232e05}
.gx-filters label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;line-height:1.4;margin:0;color:#354255}
.gx-filters input[type=number],.gx-filters select{display:block;width:100%;min-width:0;max-width:100%;height:46px;min-height:46px;margin:0;padding:0 12px;line-height:30px;background:#fafbfc;border:1px solid #c8ced7;border-radius:7px;font:inherit;font-size:15px;line-height:30px;color:#19232e}
.gx-filters .gx-filter-submit,.gx-filters .gx-filter-reset{display:inline-flex;align-items:center;justify-content:center;min-height:46px;height:46px;min-width:0;margin:0;padding:10px 18px;border:1px solid transparent;border-radius:7px;font:inherit;font-size:15px;line-height:1.4;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s}
.gx-filters .gx-filter-submit{background:#d71927;color:#fff;border-color:#d71927}
.gx-filters .gx-filter-submit:hover{background:#b81422;border-color:#b81422}
.gx-filters .gx-filter-reset{background:#f5f6f8;color:#354255;border-color:#c8ced7}
.gx-filters .gx-filter-reset:hover{background:#e9edf2;border-color:#9aa6b5}


.gx-month{margin:24px 0;padding:0}.gx-month > h2{background:#19232e;color:#fff;padding:16px 20px;border-radius:9px;font-size:22px;margin:0 0 12px;letter-spacing:0}



.gx-game-detail h1{font-size:clamp(30px,4vw,48px);letter-spacing:0}.gx-game-detail .gx-cover{max-height:480px;width:auto;margin:20px auto;object-fit:contain}.gx-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#dce1e8;border:1px solid #dce1e8;border-radius:8px;overflow:hidden;margin:24px 0}.gx-facts>div{padding:16px;background:#fff}.gx-facts dt{font-size:14px;color:#536174}.gx-facts dd{margin:6px 0 0;font-size:17px}.gx-game-content{background:#fff;padding:clamp(16px,3vw,32px);border-radius:10px;font-size:18px;line-height:1.9}.gx-game-content iframe,.gx-game-content img{max-width:100%}
@media(max-width:1099px){.gx-nav-desktop{display:none}.gx-nav-mobile{display:block}.gx-menu-toggle:not([hidden]){display:block;flex-shrink:0}.gx-social{display:none}.gx-header-row{gap:12px;padding:10px 16px}.gx-nav-mobile .gx-menu{display:block;padding:12px 0}.gx-menu>li>ul{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));box-shadow:none;max-height:none}.gx-nav-mobile .gx-menu>li>.gx-menu-link{display:flex;width:100%}.gx-nav-mobile .gx-menu>li>.gx-menu-link>a{flex:1}.gx-nav-mobile .gx-menu>li>a{width:100%}.gx-nav-mobile .gx-menu>li>.gx-menu-link,.gx-nav-mobile .gx-menu>li>a{margin:2px 0}.gx-nav-mobile .gx-menu>li.current-menu-item>.gx-menu-link::after,.gx-nav-mobile .gx-menu>li.current-menu-ancestor>.gx-menu-link::after,.gx-nav-mobile .gx-menu>li.current-menu-item>a::after{bottom:0}}
@media(min-width:1100px){.gx-menu-toggle{display:none}}
@media(max-width:959px){.gx-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.gx-header-row{flex-wrap:wrap;justify-content:space-between;padding:8px 16px;gap:8px 12px}.gx-search{order:3;width:100%}.gx-brand img{max-height:44px}.gx-hub,.gx-game-detail{padding:16px}.gx-facts{grid-template-columns:1fr}.gx-pagination .page-numbers{min-width:34px;padding:8px}.gx-hero p{font-size:16px}}
@media(max-width:419px){.gx-game-grid{grid-template-columns:1fr}.gx-menu>li>ul{grid-template-columns:1fr}}
@media(max-width:767px){.gx-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.gx-filter-genre{grid-column:1/-1}.gx-filters .gx-filter-submit,.gx-filters .gx-filter-reset{width:100%;padding-inline:8px}.gx-hero h1{font-size:clamp(26px,5vw,36px)}.gx-hero p{font-size:16px;line-height:1.65}.gx-month > h2{padding:13px 16px;font-size:20px}}

@media(prefers-reduced-motion:reduce){.gx-tile img,.gx-sub-toggle::before,.gx-menu>li>.gx-menu-link,.gx-menu>li>a,.gx-filter-submit,.gx-filter-reset{transition:none}}

@keyframes gx-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.gx-menu>li>ul{animation:none}}

/* Share links stay in document flow unless both sides have a clear gutter. */
.gx-share-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:100%;padding:16px;margin:0 auto 16px;clear:both}
.gx-share-bar .share-icon{position:static;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;line-height:1;margin:0;flex:0 0 44px;text-decoration:none}
.gx-share-bar .share-icon:focus-visible{outline:3px solid #19232e;outline-offset:3px}
@media(min-width:1760px){.gx-share-bar{position:fixed;inset-inline-end:18px;bottom:88px;flex-direction:column;max-width:44px;padding:0;margin:0;z-index:99}}

/* Shared listing container uses the viewport; articles, header and hub stay scoped. */

.gx-listing ~ .gx-share-bar{position:static;flex-direction:row;max-width:100%;padding:16px;margin:0 auto 16px}
.gx-pagination-compact{display:none}
@media(max-width:599px){.gx-pagination-wide{display:none}.gx-pagination-compact{display:block}}
/* A 30px text line fits Arabic ascenders/descenders inside the existing 46px control. */
.gx-filter-field{position:relative;min-width:0;display:flex;flex-direction:column;gap:7px}
.gx-filters [hidden]{display:none!important}
.gx-filters select{appearance:none;padding-inline-end:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23354255' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 12px center}
.gx-filters option{font-family:inherit;font-size:15px;line-height:2}
.gx-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;width:100%;min-width:0;height:46px;min-height:46px;margin:0;padding:0 12px;border:1px solid #c8ced7;border-radius:7px;background:#fafbfc;color:#19232e;font-family:inherit;font-size:15px;font-weight:400;line-height:30px;letter-spacing:0;text-transform:none;text-align:start;cursor:pointer}
.gx-select-value{display:block;min-width:0;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gx-select-trigger::after{content:"";flex:0 0 7px;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.gx-select-trigger[aria-expanded=true]{border-color:#d71927;background:#fff}
.gx-select-trigger[aria-expanded=true]::after{transform:translateY(2px) rotate(225deg)}
.gx-select-list{position:absolute;inset-inline:0;top:calc(100% + 6px);z-index:120;max-height:min(280px,45vh);overflow:auto;overscroll-behavior:contain;margin:0;padding:6px;background:#fff;color:#19232e;border:1px solid #d9dee5;border-radius:9px;box-shadow:0 8px 24px #19232e24;font-family:inherit;font-size:15px;line-height:2;text-align:start}
.gx-select-list.gx-select-above{top:auto;bottom:52px}
.gx-select-option{padding:6px 10px;min-height:42px;border-radius:5px;line-height:2;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.gx-select-option[aria-selected=true]{background:#fff0f1;color:#b81422}
.gx-select-option.gx-active{outline:2px solid #d71927;outline-offset:-2px;background:#f5f6f8}


/* Archive descriptions stay readable without adding a large heading area. */
.gx-listing > p{font-size:16px;line-height:1.7;margin:0 12px 20px}

/* Compact category heading: editorial content comes only from WordPress. */
.gx-category-header{margin:16px 0 12px;padding:16px 20px;background:#19232e;color:#fff;border-inline-start:3px solid #d71927;border-radius:9px;text-align:start;overflow-wrap:anywhere}
.gx-category-header h1{margin:0;color:inherit;font-size:clamp(24px,2.3vw,32px);line-height:1.5;letter-spacing:0}
.gx-category-description{margin-top:8px;color:#e0e5ec;font-size:16px;line-height:1.7}
.gx-category-description > :first-child{margin-top:0}.gx-category-description > :last-child{margin-bottom:0}
.gx-category-description p{font-size:inherit;line-height:inherit;margin:0 0 8px}.gx-category-description a{color:#fff;text-decoration:underline}
/* One search surface with an integrated end button and room for Arabic glyphs. */
.gx-search{height:46px;border-radius:24px;gap:0}
.gx-search input[type=search]{height:44px;line-height:30px;padding:0 16px;border-radius:0;outline-offset:-4px}
.gx-search button{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:44px;min-height:44px;padding:0;border-radius:0;line-height:1;align-self:stretch}
.gx-search button:hover{background:#b81422}.gx-search:focus-within{border-color:#d71927;box-shadow:0 0 0 2px #d7192720}
.gx-search button:focus-visible{outline-offset:-4px}
@media(min-width:1100px){
 .gx-header-utility{border-bottom:1px solid #e4e6ec}
 .gx-header-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,480px) minmax(0,1fr);gap:24px;padding:12px 24px;min-height:80px}
 .gx-brand{justify-self:start}.gx-search{width:100%;margin:0}.gx-social{justify-self:end;min-width:0}
 .gx-social-list{align-items:center;flex-wrap:wrap;gap:12px}.gx-social-list a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:36px}
 .gx-nav-desktop{padding-block:3px}.gx-menu>li>.gx-menu-link{background:transparent}
 .gx-menu>li.current-menu-item>.gx-menu-link,.gx-menu>li.current-menu-ancestor>.gx-menu-link{background:#fff1f2}
}
@media(max-width:599px){.gx-category-header{margin-top:12px;padding:14px 16px}.gx-category-description{font-size:15px}}
/* Weekly discovery reuses game-tile; only its compact context changes sizing. */
.gx-weekly{margin:16px 0 20px;border-bottom:1px solid #d9dee5;padding:0 0 16px}

.gx-weekly-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-width:0}
.gx-weekly-row .gx-tile h2{font-size:14px;line-height:1.5;padding:20px 8px 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

@media(max-width:1099px){.gx-weekly-row{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}.gx-weekly-row .gx-weekly-item{flex:0 0 calc((100% - 16px)/3);scroll-snap-align:start}}
@media(max-width:599px){.gx-weekly-row .gx-weekly-item{flex-basis:calc((100% - 8px)/2)}.gx-weekly{margin-block:12px 16px}.gx-weekly-row .gx-tile h2{font-size:13px;padding:16px 6px 6px}}


/* Shared homepage heading: logical alignment, one restrained underline, no background. */
.gx-section-heading{position:relative;display:flex;align-items:center;gap:6px;min-width:0;margin:0 0 12px;padding:0 4px 10px;border-bottom:1px solid #d9dee5;color:#19232e;font-size:clamp(17px,1.6vw,23px);font-weight:700;line-height:1.8;letter-spacing:0;text-align:start}
.gx-section-heading::after{content:"";position:absolute;inset-inline-start:4px;bottom:-1px;width:32px;height:3px;border-radius:2px;background:#d71927}
.gx-section-heading .gx-heading-icon{flex:0 0 auto;font-size:.95em;line-height:1;align-self:center}
.gx-section-heading>span:last-child{min-width:0;overflow-wrap:anywhere}
.gx-weekly-item{position:relative;min-width:0}
.gx-weekly-item .gx-tile{aspect-ratio:8/5}
.gx-weekly-rank{position:absolute;top:7px;inset-inline-start:7px;padding:2px 6px;border:1px solid #ffffff35;border-radius:4px;background:#19232ed9;color:#fff;font:600 12px/1.5 sans-serif;pointer-events:none}
.gx-heading-icon::before{content:"\1F525"}

/* Suggestions sit outside the existing clipped pill without changing its geometry. */
.gx-search-shell{position:relative;width:min(100%,480px);min-width:0;margin:0 auto}
.gx-search-shell .gx-search{width:100%;margin:0}
.gx-search-panel{position:absolute;inset-inline:0;top:calc(100% + 6px);z-index:130;max-height:400px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #d9dee5;border-top:2px solid #d71927;border-radius:10px;box-shadow:0 8px 24px #19232e1c;direction:rtl;text-align:right;color:#19232e}
.gx-search-status{font-size:14px;line-height:1.8;padding:12px 14px;font-weight:400}
.gx-search-status:empty{display:none}
.gx-header .gx-search-result{display:flex;direction:rtl;align-items:center;gap:10px;min-height:68px;padding:9px 12px;color:#19232e;text-decoration:none}
.gx-search-result+.gx-search-result{border-top:1px solid #edf0f3}
.gx-search-panel [role=option]{transition:none}
.gx-search-thumb{display:block;flex:0 0 48px;width:48px;height:48px;border-radius:5px;overflow:hidden;background:#edf0f3}
.gx-search-thumb img{width:48px;height:48px;object-fit:cover;margin:0}
.gx-search-text{display:block;min-width:0;flex:1;direction:rtl;text-align:right}
/* dir=auto preserves each title's natural reading order; alignment stays RTL. */
.gx-search-title{display:block;font-size:14px;font-weight:700;line-height:1.8;color:#19232e;text-align:right;unicode-bidi:isolate;overflow-wrap:anywhere}
.gx-search-category{display:block;font-size:12px;font-weight:400;line-height:1.8;color:#647183;text-align:right;unicode-bidi:isolate;overflow-wrap:anywhere}
.gx-header .gx-search-all{display:block;padding:12px;border-top:1px solid #e4e8ee;background:#fafbfc;font-size:14px;line-height:1.8;min-height:48px;text-align:center;color:#b81422;text-decoration:none}
.gx-header .gx-search-panel [role=option]:hover,.gx-header .gx-search-panel [aria-selected=true],.gx-header .gx-search-panel [role=option]:focus-visible{background:#fff2f3;outline:none}
.gx-search-result:hover,.gx-search-result[aria-selected=true],.gx-search-result:focus-visible{box-shadow:inset -3px 0 #d71927}
@media(min-width:1100px){.gx-search-shell{width:100%;margin:0}}
@media(max-width:599px){.gx-search-shell{order:3;width:100%}.gx-search-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}
