/* Shared header: rendered only by the existing header include. */
.fh-header{position:sticky;inset:auto;top:0;z-index:800;background:transparent;border-bottom:1px solid transparent;transition:background-color .24s ease,border-color .24s ease,box-shadow .24s ease;color:#f4f4f6;font:14px/1.8 IRANSansX,Tahoma,sans-serif;isolation:isolate}
.fh-header *{box-sizing:border-box}
.fh-header [hidden]{display:none!important}
.fh-header a{color:inherit;text-decoration:none}
.fh-header button,.fh-header input{font:inherit;color:inherit}
.fh-header button{cursor:pointer}
.fh-header .fh-wrap{width:calc(100% - 64px);max-width:1510px;margin-inline:auto}
.fh-header-inner{display:flex;align-items:center;gap:36px;min-height:82px;position:relative}
.fh-header .fh-brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;font-size:19px}
.fh-header .fh-brand svg{width:36px;height:36px;fill:#4e60ce;stroke:#a5affb;stroke-width:1.5}
.fh-header .fh-desktop-nav{display:flex;align-items:center;gap:24px;flex:1;font-weight:650;font-size:13px}
.fh-header .fh-desktop-nav>a:hover,.fh-header .fh-desktop-nav>a[aria-current="page"],.fh-header .fh-dropdown a:hover,.fh-header .fh-dropdown a[aria-current="page"]{color:#b1baff}
.fh-header details{position:relative}
.fh-header summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:13px;min-height:44px}
.fh-header summary::-webkit-details-marker{display:none}
.fh-header .fh-dropdown{position:absolute;top:calc(100% + 10px);right:0;min-width:210px;max-height:70dvh;overflow-y:auto;border:1px solid #3b3b48;background:#24242d;border-radius:14px;padding:12px;box-shadow:0 15px 45px #0008;display:grid;gap:3px;z-index:10}
.fh-header .fh-dropdown a{padding:7px 12px;display:block;border-radius:6px}
.fh-header .fh-dropdown a:hover,.fh-header .fh-dropdown a[aria-current="page"]{background:#30303a}
.fh-header-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.fh-header .fh-icon-button{width:44px;min-width:44px;height:46px;display:grid;place-items:center;border:0;border-radius:14px;background:#25252e;color:#b9b9c3;flex-shrink:0}
.fh-header .fh-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6}
.fh-header .fh-button{border:0;border-radius:13px;background:#4655bd;color:#fff;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 20px;font-weight:750;white-space:nowrap}
.fh-header .fh-button:hover{background:#5969d4}
.fh-header .fh-account{font-size:12px}
.fh-header .fh-mobile-menu{display:none}
.fh-header .fh-user{display:flex;align-items:center;gap:9px}
.fh-header .fh-profile{display:block;width:42px;height:42px;border-radius:50%;border:2px solid #5364d5;overflow:hidden;flex-shrink:0}
.fh-header .fh-profile img{display:block;width:100%;height:100%;object-fit:cover}
.fh-header :is(a,button,input,summary):focus-visible{outline:2px solid #b6bfff;outline-offset:3px}
.fh-header .fh-notifications,.fh-header .fh-mini-search{position:absolute;left:0;right:auto;top:calc(100% + 10px);width:min(420px,100%);max-height:min(600px,75dvh);overflow:auto;background:#24242d;border:1px solid #3b3b48;border-radius:16px;padding:18px;box-shadow:0 20px 50px #0007}
.fh-header .fh-notifications article{border-top:1px solid #3b3b48;padding-top:12px;margin-top:12px;font-size:13px}
.fh-header .fh-notifications article p{margin:8px 0;color:#b6b6c4}
.fh-header .fh-mini-search form{display:flex;gap:8px;direction:rtl}
.fh-header .fh-mini-search input{width:100%;min-width:0;background:#17171f;border:1px solid #414154;border-radius:11px;padding:10px 12px;user-select:text;outline:none;font-size:13px}
.fh-header .fh-mini-search .fh-button{font-size:12px;padding:9px 16px;flex-shrink:0}
.fh-header [data-live-status]{font-size:12px;color:#b3b3c4;margin:14px 0 6px}
.fh-header .fh-live-results{display:grid;gap:4px}
.fh-header .fh-live-results a{display:flex;align-items:center;gap:12px;padding:8px;border-radius:11px;font-size:12px}
.fh-header .fh-live-results a:hover,.fh-header .fh-live-results a:focus{background:#333342}
.fh-header .fh-live-results img{width:42px;height:62px;object-fit:cover;border-radius:6px;flex-shrink:0}
.fh-header .fh-live-all{display:block;text-align:center;padding:12px 0 0;margin-top:10px;border-top:1px solid #3b3b48;font-size:12px;color:#b6bfff}
.fh-header~#main-content{scroll-margin-top:90px}
@media(max-width:1250px){.fh-header .fh-wrap{width:calc(100% - 48px)}.fh-header-inner{gap:24px}.fh-header .fh-desktop-nav{gap:15px;font-size:12px}}
@media(max-width:1000px){.fh-header .fh-desktop-nav{display:none}.fh-header .fh-mobile-menu{display:block}.fh-header .fh-mobile-menu summary{font-size:23px;width:44px;height:44px;justify-content:center;background:#24242d;border-radius:12px}.fh-header .fh-mobile-menu .fh-dropdown{right:auto;left:0}.fh-header-inner{min-height:76px}}
@media(max-width:600px){.fh-header .fh-wrap{width:calc(100% - 24px)}.fh-header-inner{gap:8px;min-height:68px}.fh-header .fh-brand{font-size:14px;gap:5px}.fh-header .fh-brand svg{width:26px;height:26px}.fh-header-actions{gap:4px}.fh-header .fh-icon-button{width:36px;min-width:36px;height:44px;border-radius:10px}.fh-header .fh-icon-button:first-child{display:grid}.fh-header .fh-icon-button svg{width:18px}.fh-header .fh-account{font-size:10px;min-height:44px;padding:7px 10px;border-radius:10px}.fh-header .fh-mobile-menu summary{width:32px;height:44px;font-size:20px}.fh-header .fh-profile{width:31px;height:31px}.fh-header .fh-user{gap:5px}.fh-header .fh-notifications,.fh-header .fh-mini-search{width:min(420px,100%);padding:14px}}
@media(max-width:360px){.fh-header .fh-brand strong{font-size:12px}.fh-header .fh-brand svg{width:22px}.fh-header .fh-account{padding-inline:7px}.fh-header .fh-icon-button{width:32px;min-width:32px}.fh-header .fh-profile{width:28px;height:28px}.fh-header .fh-wrap{width:calc(100% - 16px)}}

/* Transparent at the start, solid once the document scrolls. */
body{--fh-header-height:82px}
.fh-header[data-scrolled="true"]{background:#1c1c24f5;border-bottom-color:#ffffff0c;box-shadow:0 8px 28px #00000020}
@media(max-width:1000px){body{--fh-header-height:76px}}
@media(max-width:600px){body{--fh-header-height:68px}}
@media(prefers-reduced-motion:reduce){.fh-header{transition:none}}

.fh-header[data-scrolled="true"]{box-shadow:0 9px 28px #00000045}
.fh-header .fh-profile[aria-current="page"]{box-shadow:0 0 0 3px #6375d92b}
@media(hover:hover) and (pointer:fine){.fh-header :is(.fh-icon-button,.fh-button,.fh-profile,.fh-dropdown a){transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease}.fh-header :is(.fh-icon-button,.fh-button):hover{transform:translateY(-2px);box-shadow:0 6px 16px #00000030}.fh-header .fh-dropdown a:hover{transform:translateX(-3px)}.fh-header .fh-profile:hover{transform:scale(1.06);box-shadow:0 0 0 3px #6375d92b}.fh-header .fh-desktop-nav>a{position:relative}.fh-header .fh-desktop-nav>a::after{content:"";position:absolute;bottom:-6px;right:0;left:0;height:2px;background:#96a3ff;transform:scaleX(0);transform-origin:right;transition:transform .2s ease}.fh-header .fh-desktop-nav>a:hover::after,.fh-header .fh-desktop-nav>a[aria-current="page"]::after{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.fh-header *,.fh-header *::after{transition:none!important;transform:none!important}}

/* Mobile: navigation and search at the right; account actions at the left. */
@media(max-width:1000px){
 .fh-header .fh-brand{display:none}
 .fh-header .fh-header-actions{width:100%;margin-inline-start:0;gap:8px;direction:rtl}
 .fh-header [data-fh-notices]{margin-inline-start:auto}
 .fh-header .fh-user{gap:8px}
 .fh-header :is(.fh-icon-button,.fh-account,.fh-profile,.fh-mobile-menu summary){box-sizing:border-box;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;flex-shrink:0;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:0}
 .fh-header .fh-mobile-menu summary{background:#25252e}
 .fh-header .fh-mobile-menu .fh-dropdown{right:0;left:auto}
 .fh-header .fh-account{padding:3px;font-size:10px;line-height:1.5;white-space:normal;text-align:center;overflow:hidden}
 .fh-header .fh-profile{border-width:1px}
 .fh-header .fh-profile img{border-radius:10px}
 .fh-header .fh-icon-button:first-child{display:flex}
}

/* Profile stays circular; subscription text has room on ordinary phone widths. */
@media(max-width:1000px){
 .fh-header .fh-user .fh-profile{border-radius:50%}
 .fh-header .fh-user .fh-profile img{border-radius:50%}
 .fh-header .fh-user .fh-account{width:auto;min-width:106px;max-width:none;height:44px;min-height:44px;max-height:44px;padding:0 12px;white-space:nowrap;font-size:11px;line-height:1.5;border-radius:12px}
}
@media(max-width:340px){
 .fh-header .fh-header-actions,.fh-header .fh-user{gap:6px}
 .fh-header .fh-user .fh-account{width:72px;min-width:72px;max-width:72px;padding:3px 6px;white-space:normal;font-size:10px;line-height:1.45}
}
.fh-header .fh-site-logo{display:block;width:36px;height:36px;object-fit:contain;background:none}
