/* Hilal Football Center 1.0 — scoped design. No changes to other app screens. */
.hfc { --hfc-bg:#f6f8fd; --hfc-paper:#fff; --hfc-fg:#131b2d; --hfc-muted:#657082; --hfc-border:#e7eaf2; --hfc-brand:#0754e8; --hfc-soft:#e9f0ff; color:var(--hfc-fg); background:var(--hfc-bg); font-family:Tajawal,"Noto Sans Arabic",Tahoma,Arial,sans-serif; box-sizing:border-box; font-size:15px; line-height:1.5; max-width:900px; margin:0 auto; padding:18px 16px 30px; direction:rtl; }
.hfc *, .hfc *:before, .hfc *:after {box-sizing:border-box}
.hfc [hidden] {display:none!important}
.hfc a {text-decoration:none; color:var(--hfc-brand)}
.hfc h1,.hfc h2,.hfc h3,.hfc h4,.hfc p {margin:0}
.hfc button {font:inherit;cursor:pointer}
.hfc-header {display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 4px 22px}
.hfc-eyebrow {color:var(--hfc-brand); font-size:10px; font-weight:800; letter-spacing:.14em}
.hfc-header h1 {font-weight:900; color:var(--hfc-fg); font-size:27px; line-height:1.4}
.hfc-theme-toggle {width:42px;height:42px;border:1px solid var(--hfc-border);border-radius:50%; background:var(--hfc-paper); color:var(--hfc-fg); font-size:25px;box-shadow:0 6px 18px #1d3e740b}
.hfc-tabs {display:flex;gap:10px;margin-bottom:18px}
.hfc-tabs button {flex:1;min-height:48px;border:1px solid var(--hfc-border);border-radius:17px;background:var(--hfc-paper);color:var(--hfc-muted);font-size:16px;font-weight:800}
.hfc-tabs button.is-active {background:var(--hfc-brand);color:white;border-color:var(--hfc-brand);box-shadow:0 10px 18px #0754e82a}
.hfc-hero {background:linear-gradient(124deg,#2778fa,#034ade 63%,#1d19b8);color:white;border-radius:29px; padding:22px 18px 24px;box-shadow:0 17px 28px #1238a82c;margin:0 0 27px;position:relative;overflow:hidden}
.hfc-hero:before,.hfc-hero:after {content:"";position:absolute;border-radius:50%;width:190px;height:190px;background:#ffffff0b;pointer-events:none}
.hfc-hero:before {top:-95px;left:-65px}.hfc-hero:after {bottom:-140px;right:-65px}
.hfc-hero-top {display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700;font-size:14px;margin-bottom:24px;position:relative;z-index:1}
.hfc-hero-state {background:#ffffff23;padding:6px 11px;border-radius:30px;font-size:12px;white-space:nowrap}
.hfc-hero-teams {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;position:relative;z-index:1;text-align:center}
.hfc-hero-team {display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}
.hfc-hero-team img,.hfc-hero-team .hfc-badge-logo {height:75px;width:75px;border-radius:50%;background:#fff;object-fit:contain;padding:11px;box-shadow:0 5px 20px #021b6f3d}
.hfc-hero-team b {font-size:15px;font-weight:800;overflow-wrap:anywhere;line-height:1.3}
.hfc-hero-score {font-size:36px;white-space:nowrap;font-weight:900;letter-spacing:1px}
.hfc-hero-bottom {font-weight:700;text-align:center;font-size:13px;opacity:.93;margin-top:22px;position:relative;z-index:1}
.hfc-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 2px 15px}
.hfc-heading h2 {font-size:24px;font-weight:900;border-right:4px solid var(--hfc-brand);padding-right:9px;color:var(--hfc-fg)}
.hfc-heading span {color:var(--hfc-muted);font-weight:700;font-size:13px}
.hfc-week {display:grid;grid-template-columns:repeat(7,1fr);gap:4px;background:#f0f3fa;border-radius:24px;padding:5px 3px;margin-bottom:20px}
.hfc-day {border:0;background:transparent;border-radius:17px;min-width:0;padding:11px 1px 6px;color:#515b70;display:flex;align-items:center;gap:5px;flex-direction:column}
.hfc-day span {font-size:11px;font-weight:600}.hfc-day b {font-size:20px;font-weight:800}.hfc-day-dot {height:6px;width:6px;border-radius:100%;background:transparent}.hfc-day-dot.has-match {background:#d9a60d}
.hfc-day.is-today,.hfc-day.is-chosen {background:var(--hfc-brand);color:white;box-shadow:0 5px 12px #0754e82e}
.hfc-filters {display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 17px;padding-bottom:5px}
.hfc-filters::-webkit-scrollbar {display:none}
.hfc-filters button {white-space:nowrap;flex-shrink:0;min-height:40px;padding:0 15px;border:1px solid var(--hfc-border);border-radius:15px;background:var(--hfc-paper);color:var(--hfc-muted);font-weight:800}
.hfc-filters button.is-selected {background:var(--hfc-brand);border-color:var(--hfc-brand);color:white}
.hfc-match-list {display:grid;gap:13px}
.hfc-match {border:1px solid var(--hfc-border);background:var(--hfc-paper);border-radius:23px;padding:18px 15px;box-shadow:0 7px 25px #10274f09}
.hfc-match-meta {display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px;font-weight:700;color:var(--hfc-muted);padding-bottom:12px;border-bottom:1px solid var(--hfc-border)}
.hfc-match-main {display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,auto) minmax(0,1fr);align-items:center;gap:7px;padding:14px 0 5px}
.hfc-team {display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;min-width:0;font-size:13px;line-height:1.25}
.hfc-team img,.hfc-team .hfc-badge-logo {height:45px;width:45px;object-fit:contain;background:var(--hfc-paper);border-radius:50%;padding:4px}
.hfc-team b {overflow-wrap:anywhere;font-weight:800;color:var(--hfc-fg)}
.hfc-result {display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;white-space:nowrap}
.hfc-result strong {font-size:25px;font-weight:900;color:var(--hfc-fg)}
.hfc-status {font-size:11px;font-weight:700;color:var(--hfc-muted);background:var(--hfc-bg);border-radius:20px;padding:4px 8px}
.hfc-status.is-live {color:#d62843;background:#ffe7ed}
.hfc-venue {font-size:11px;color:var(--hfc-muted);padding-top:8px;text-align:center}
.hfc-standings-card {background:var(--hfc-paper);border:1px solid var(--hfc-border);border-radius:22px;padding:14px 10px 15px;margin:15px 0}
.hfc-standings-card h3 {font-size:19px;margin:5px 9px 15px;font-weight:900;color:var(--hfc-fg)}
.hfc-standings-card h3 small {font-size:12px;color:var(--hfc-muted);font-weight:600}
.hfc-standings-card h4 {font-size:14px;font-weight:800;margin:15px 9px 8px;color:var(--hfc-muted)}
.hfc-table-wrap {overflow-x:auto;-webkit-overflow-scrolling:touch}
.hfc-table {width:100%;border-collapse:separate;border-spacing:0 5px;min-width:550px;text-align:center;font-variant-numeric:tabular-nums}
.hfc-table th {color:var(--hfc-muted);font-size:12px;font-weight:800;padding:9px 7px;border-bottom:1px solid var(--hfc-border)}
.hfc-table td {padding:12px 7px;font-size:13px;font-weight:700;color:var(--hfc-fg)}
.hfc-table-team {min-width:150px;text-align:right;white-space:nowrap}
.hfc-table-team img,.hfc-table-team .hfc-badge-logo {width:27px;height:27px;object-fit:contain;vertical-align:middle;margin-left:6px}
.hfc-table .is-hilal td {background:var(--hfc-soft);color:var(--hfc-brand);font-weight:900}
.hfc-table .is-hilal td:first-child {border-radius:0 12px 12px 0}.hfc-table .is-hilal td:last-child {border-radius:12px 0 0 12px}
.hfc-table .negative {color:#df4961}.hfc-table .positive {color:#1b9d60}
.hfc-empty,.hfc-filter-message {border:1px dashed var(--hfc-border);padding:35px 22px;text-align:center;background:var(--hfc-paper);border-radius:22px;color:var(--hfc-muted);font-weight:700}
.hfc-filter-message {margin-bottom:16px}.hfc-empty-small {color:var(--hfc-muted);padding:14px}
.hfc-updated {font-size:12px;text-align:center;color:var(--hfc-muted);margin-top:22px!important;line-height:1.7}
.hfc-see-all {display:block;text-align:center;background:var(--hfc-paper);padding:12px;border-radius:14px;font-size:14px;font-weight:800}
.hfc--dark {--hfc-bg:#061331;--hfc-paper:#112b5a;--hfc-fg:#fff;--hfc-muted:#c2cdeb;--hfc-border:#2d4978;--hfc-brand:#5d9dff;--hfc-soft:#203e7c}
.hfc--dark .hfc-week {background:#132c57}.hfc--dark .hfc-day {color:#e3eafc}.hfc--dark .hfc-day.is-today,.hfc--dark .hfc-day.is-chosen {background:#0754e8;color:white}
.hfc--dark .hfc-tabs button.is-active,.hfc--dark .hfc-filters button.is-selected {background:#0754e8;border-color:#0754e8;color:white}
.hfc--dark .hfc-status.is-live {color:#ffbdc8;background:#86354d}
body.hfc-app-page {background:#f6f8fd!important;margin:0!important;padding:0!important}
body.hfc-app-page .hfc-page-main {min-height:100vh;padding-bottom:90px}
body.hfc-app-page .hfc-page-main>.hfc {min-height:calc(100vh - 90px);max-width:960px}
.hfc-app-nav {position:fixed;bottom:0;left:0;right:0;height:calc(64px + env(safe-area-inset-bottom));padding:5px 8px env(safe-area-inset-bottom);z-index:99999;display:flex;gap:1px;background:white;border-top:1px solid #e6ebf2;box-shadow:0 -7px 17px #10244710;font-family:Tajawal,"Noto Sans Arabic",Tahoma,Arial,sans-serif;box-sizing:border-box}
.hfc-app-nav a {flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;color:#798292;text-decoration:none!important;font-weight:700;font-size:11px;min-width:0}
.hfc-app-nav a span {font-size:23px;height:30px;line-height:30px}.hfc-app-nav a b {font-size:11px}
.hfc-app-nav a.is-active {color:#0652e6}
@media(max-width:380px) {
  .hfc{padding:14px 10px 24px}.hfc-hero{padding:18px 11px 22px}.hfc-hero-team img{height:59px;width:59px}.hfc-hero-score{font-size:29px}.hfc-week{gap:0}.hfc-day span{font-size:10px}.hfc-team img{height:38px;width:38px}
}

/* 1.1 — follow the single application theme (the dark theme is the default). */
html.hiah-theme-dark body.hfc-app-page{background:#061331!important;color:#eef3ff}
html.hiah-theme-light body.hfc-app-page{background:#f6f8fd!important}
html.hiah-theme-dark .hfc-app-nav{background:#071735;border-top:1px solid #263f6a;box-shadow:0 -7px 17px #00102e44}
html.hiah-theme-dark .hfc-app-nav a{color:#a7b7d9}
html.hiah-theme-dark .hfc-app-nav a.is-active{color:#88b3ff}
.hfc-app-nav{max-width:960px;margin:auto}
.hfc-app-nav a{gap:3px}
.hfc-app-nav a b{font-size:11px!important;white-space:nowrap}
html.hiah-theme-dark .hfc {--hfc-bg:#061331;--hfc-paper:#112b5a;--hfc-fg:#fff;--hfc-muted:#c2cdeb;--hfc-border:#2d4978;--hfc-brand:#5d9dff;--hfc-soft:#203e7c}
html.hiah-theme-dark .hfc-week{background:#132c57}
html.hiah-theme-dark .hfc-day{color:#e3eafc}
html.hiah-theme-dark .hfc-day.is-today,html.hiah-theme-dark .hfc-day.is-chosen,html.hiah-theme-dark .hfc-tabs button.is-active,html.hiah-theme-dark .hfc-filters button.is-selected{background:#0754e8;border-color:#0754e8;color:#fff}

/* 1.3 — Match details; entirely scoped to the football center. */
.hfc-match-open{display:block;margin:6px 0 0;text-align:center;background:var(--hfc-bg);border:1px solid var(--hfc-border);border-radius:12px;padding:9px;font-size:13px;font-weight:800;color:var(--hfc-brand)!important}
.hfc-hero-details-link{position:relative;z-index:2;display:block;width:max-content;max-width:100%;margin:17px auto 0;padding:9px 17px;border:1px solid #ffffff65;border-radius:30px;color:#fff!important;font-size:13px;font-weight:900;background:#ffffff1c}
.hfc-detail{display:grid;gap:18px}
.hfc-back{font-size:14px;font-weight:800;padding:9px 4px;display:inline-flex;align-self:start;justify-self:start}
.hfc-detail-hero{border-radius:25px;padding:24px 16px 22px;color:#fff;background:linear-gradient(127deg,#2879ff 0%,#094cdb 55%,#1716a2 100%);box-shadow:0 14px 28px #073cb52c;text-align:center}
.hfc-detail-hero p{font-size:13px;font-weight:700;color:#e7eeff;margin:0 0 18px!important}
.hfc-detail-hero p:last-child{margin:20px 0 0!important}
.hfc-detail-score{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;white-space:nowrap}
.hfc-detail-score strong{font-size:38px;font-weight:900;direction:ltr}
.hfc-detail-score span{font-size:12px;font-weight:800;background:#ffffff26;padding:5px 12px;border-radius:18px}
.hfc-detail-panel,.hfc-related{border-radius:22px;border:1px solid var(--hfc-border);background:var(--hfc-paper);padding:18px 15px;box-shadow:0 6px 22px #0a25540a}
.hfc-detail-panel h2,.hfc-related h2{font-size:19px;color:var(--hfc-fg);font-weight:900;margin:0 0 16px!important}
.hfc-related h3{font-size:15px;color:var(--hfc-fg);margin:20px 0 10px!important}
.hfc-event-list{margin:0;padding:0;list-style:none;display:grid;gap:0}
.hfc-event-list li{display:grid;grid-template-columns:43px 28px minmax(0,1fr);gap:10px;align-items:center;border-bottom:1px solid var(--hfc-border);padding:11px 0}
.hfc-event-list li:last-child{border-bottom:0}
.hfc-event-list time{font-size:13px;color:var(--hfc-brand);font-weight:900;direction:ltr;text-align:center}
.hfc-event-list li>span{font-size:19px}
.hfc-event-list li strong{font-size:14px;color:var(--hfc-fg);display:block}
.hfc-event-list li small{font-size:12px;color:var(--hfc-muted);display:block;line-height:1.5}
.hfc-stat-row{display:grid;grid-template-columns:minmax(45px,1fr) minmax(110px,2.2fr) minmax(45px,1fr);align-items:center;gap:8px;text-align:center;border-bottom:1px solid var(--hfc-border);padding:12px 1px;font-size:13px;color:var(--hfc-fg)}
.hfc-stat-row:last-child{border-bottom:0}
.hfc-stat-row span{font-size:12px;color:var(--hfc-muted)}
.hfc-stat-head b{font-size:12px;color:var(--hfc-brand)}
.hfc-lineups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hfc-lineups>div{min-width:0}
.hfc-lineups h3{font-size:15px;color:var(--hfc-fg);margin:0 0 8px!important}
.hfc-lineups h3 small{font-size:12px;color:var(--hfc-muted)}
.hfc-lineups ol{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:3px}
.hfc-lineups li{display:flex;align-items:center;gap:7px;padding:6px 0;border-bottom:1px solid var(--hfc-border);font-size:12px;color:var(--hfc-fg);overflow-wrap:anywhere}
.hfc-lineups li span{display:grid;place-items:center;min-width:28px;height:26px;background:var(--hfc-bg);border-radius:8px;font-weight:800;color:var(--hfc-brand)}
.hfc-lineups>div>small{font-size:12px;color:var(--hfc-muted)}
.hfc-related-news{display:grid;gap:10px}
.hfc-related-news a{display:flex;gap:10px;align-items:center;border:1px solid var(--hfc-border);border-radius:15px;padding:8px;color:var(--hfc-fg)!important;font-weight:800;font-size:13px;line-height:1.5}
.hfc-related-news img{width:58px;height:58px;object-fit:cover;border-radius:10px}
.hfc-related-reels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.hfc-related-reels a{min-width:0;color:var(--hfc-fg)!important;font-weight:700;font-size:12px}
.hfc-related-reels img,.hfc-reel-placeholder{display:grid;place-items:center;width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--hfc-bg);border-radius:13px;margin-bottom:7px}
.hfc-related-reels b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hfc-related-link,.hfc-live-link{display:block;text-align:center;padding:13px;border:1px solid var(--hfc-border);border-radius:15px;font-size:14px;font-weight:900;margin-top:12px}
.hfc-live-link{color:#fff!important;background:#0754e8}
@media(max-width:380px){.hfc-detail-score strong{font-size:30px}.hfc-lineups{gap:8px}}

/* Compact last-five standings indicator, only when provided by the API. */
.hfc-table{min-width:640px}.hfc-form{display:inline-flex;gap:2px;direction:ltr;align-items:center}.hfc-form span{width:19px;height:19px;border-radius:5px;display:inline-grid;place-items:center;color:#fff;font-size:10px;font-weight:900}.hfc-form-w{background:#20a56b}.hfc-form-d{background:#9ba4b4}.hfc-form-l{background:#e34b62}


/* 1.4 — RTL match timeline, readable in both themes. */
.hfc-detail-hero .hfc-hero-teams{direction:rtl}
.hfc-detail-hero .hfc-hero-team{min-width:0}
.hfc-live-note{font-size:12px;font-weight:700;text-align:center;color:var(--hfc-muted);margin:-6px 0 2px!important;line-height:1.7}
.hfc-live-note.is-stale{color:#b97712}
.hfc-event-list{position:relative;list-style:none;margin:0;padding:3px 0 2px;display:grid;gap:5px}
.hfc-event-list:before{content:"";position:absolute;right:calc(50% - 1px);top:12px;bottom:12px;width:2px;background:var(--hfc-border)}
.hfc-event-list .hfc-event{display:grid;position:relative;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:center;gap:6px;border:0;padding:6px 0;min-height:67px}
.hfc-event-card{min-width:0;background:var(--hfc-bg);border:1px solid var(--hfc-border);border-radius:14px;padding:9px 10px;line-height:1.5;overflow-wrap:anywhere}
.hfc-event-card b{display:block;font-size:12px;font-weight:900;color:var(--hfc-brand)}
.hfc-event-card strong{display:block;font-size:13px;font-weight:800;color:var(--hfc-fg)}
.hfc-event-card small{font-size:11px;display:block;color:var(--hfc-muted);line-height:1.45}
.hfc-event-node{position:relative;z-index:1;grid-column:2;grid-row:1;width:32px;height:32px;display:grid;place-items:center;border:2px solid var(--hfc-border);border-radius:50%;background:var(--hfc-paper);color:var(--hfc-brand);font-size:18px;line-height:1}
.hfc-event--goal .hfc-event-node{background:#e7f4fe;border-color:#b5d4ff;color:#0754e8}
.hfc-event--card .hfc-event-node{background:#fff3cd;border-color:#e0b64d;color:#99680a}
.hfc-event--subst .hfc-event-node{background:#e5f6ee;border-color:#91cba9;color:#16885a}
.hfc-event--home .hfc-event-card{grid-column:1;grid-row:1;text-align:right}
.hfc-event--home time{grid-column:3;grid-row:1;justify-self:start}
.hfc-event--away .hfc-event-card{grid-column:3;grid-row:1;text-align:right}
.hfc-event--away time{grid-column:1;grid-row:1;justify-self:end}
.hfc-event time{direction:ltr;white-space:nowrap;font-weight:900;color:var(--hfc-brand);font-size:13px}
html.hiah-theme-dark .hfc-event--goal .hfc-event-node,.hfc--dark .hfc-event--goal .hfc-event-node{background:#123d8b;border-color:#568fe5;color:#fff}
html.hiah-theme-dark .hfc-event--card .hfc-event-node,.hfc--dark .hfc-event--card .hfc-event-node{background:#59420c;border-color:#bb872e;color:#ffdb7c}
html.hiah-theme-dark .hfc-event--subst .hfc-event-node,.hfc--dark .hfc-event--subst .hfc-event-node{background:#144c3a;border-color:#2e9e70;color:#adf1d6}
@media(max-width:420px){
 .hfc-event-list .hfc-event{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:4px}
 .hfc-event-node{width:29px;height:29px;font-size:15px}
 .hfc-event-card{padding:8px 7px}
 .hfc-event-card strong{font-size:12px}
 .hfc-event-card small{font-size:10.5px}
 .hfc-event time{font-size:12px}
}
