/* Weekly matches inner page — inherits approved global header/footer styles */
.matches-page .site-shell{min-height:100vh}
.matches-hero{min-height:177px;display:flex;align-items:center;padding:26px 4%;color:#fff;position:relative;background:linear-gradient(270deg,rgba(4,15,36,.80),rgba(4,17,42,.22)),url('../images/hero.webp') center 48%/cover}
.matches-hero>div{position:relative;z-index:1}.matches-hero h1{font-weight:900;font-size:clamp(25px,2.8vw,38px);margin:10px 0 3px}.matches-hero p{font-size:13px;color:#e6efff;margin:0}.matches-breadcrumb{display:flex;align-items:center;gap:6px;color:#e7f0fe;font-size:12px}.matches-breadcrumb svg{width:14px;height:14px}.matches-breadcrumb a:hover{color:#ff3662}
.matches-layout{padding:18px 20px 24px;display:grid;grid-template-columns:minmax(238px,25%) minmax(0,1fr);gap:16px;align-items:start;direction:rtl;background:var(--surface, #f1f6fb)}
.matches-sidebar{display:flex;flex-direction:column;gap:14px;min-width:0}
.matches-sidebar section{border-radius:12px;overflow:hidden;box-shadow:0 5px 20px rgba(15,38,68,.11)}
.sidebar-wallet{background:linear-gradient(125deg,#164c90,#06172f 85%);padding:15px;color:#fff}
.sidebar-heading{display:flex;gap:8px;align-items:center;font-size:15px}.sidebar-heading svg{width:20px;height:20px;color:#fff}.sidebar-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0}.sidebar-balance>div{display:flex;flex-direction:column;align-items:flex-start}.sidebar-balance small{color:#d3e1f7;font-size:11px}.sidebar-balance strong{font:bold 26px Arial;direction:ltr}.sidebar-balance em{font:700 12px Cairo;font-style:normal;color:#e1ebfc}.sidebar-wallet-art{width:69px;height:64px;background:linear-gradient(135deg,#1275e2,#00427f);box-shadow:inset 0 0 0 1px #72a9f0;border-radius:13px;display:grid;place-items:center}.sidebar-wallet-art svg{width:42px;height:42px;color:#fff}
.sidebar-wallet-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sidebar-wallet-actions button{border:0;border-radius:6px;background:#089342;color:white;min-height:50px;padding:6px 3px;font-size:10px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.sidebar-wallet-actions button:nth-child(2){background:#0c66d7}.sidebar-wallet-actions button:nth-child(3){background:#718196}.sidebar-wallet-actions svg{width:18px;height:18px}
.sidebar-shortcuts,.sidebar-media{background:#fff;padding:13px}.sidebar-shortcuts h2,.sidebar-media h2{margin:0 0 11px;font-size:14px;display:flex;gap:7px;align-items:center}.sidebar-shortcuts h2 svg,.sidebar-media h2>svg{width:17px;color:var(--red, #f20735)}.sidebar-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sidebar-shortcut-grid a{border:1px solid #e0e8f4;border-radius:8px;background:#f8fbff;min-height:78px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;text-align:center;font-size:11px;font-weight:800;padding:5px}.sidebar-shortcut-grid a:hover{border-color:var(--hover, #f20735);color:var(--hover, #f20735)}.sidebar-shortcut-grid svg{width:27px;height:27px;color:var(--red, #f20735)}.sidebar-media h2 a{font-size:10px;margin-right:auto;color:#1677bf}.sidebar-featured-photo{display:block;position:relative;overflow:hidden;border-radius:7px;height:138px}.sidebar-featured-photo img{width:100%;height:100%;object-fit:cover}.sidebar-featured-photo span{position:absolute;inset:auto 0 0;display:flex;align-items:center;gap:6px;justify-content:center;padding:16px 5px 8px;color:#fff;background:linear-gradient(transparent,#000c);font-size:11px}.sidebar-featured-photo svg{width:20px;height:20px}.sidebar-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:7px}.sidebar-thumbs img{height:62px;width:100%;object-fit:cover;border-radius:5px}
.matches-primary{background:#fff;border-radius:12px;box-shadow:0 5px 20px rgba(15,38,68,.09);min-width:0;padding:15px}.matches-section-heading{background:linear-gradient(115deg,var(--internal-heading-start, #f5083f),var(--internal-heading-end, #cc1238));border-radius:8px;color:white;padding:12px;text-align:center}.matches-section-heading h2{font-size:21px;line-height:1.5;margin:0;display:flex;gap:9px;align-items:center;justify-content:center}.matches-section-heading svg{width:24px;height:24px}.matches-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px 15px;padding:15px 2px;font-size:10px;color:#43536c}.matches-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.legend-dot{width:11px;height:11px;display:inline-block;border-radius:2px}.legend-dot.subscribe{background:#079c32}.legend-dot.excuse{background:#facc00}.legend-dot.wait{background:#f29413}.legend-dot.reject{background:#f20b36}.legend-dot.full{background:#8b9097}.legend-dot.paused{background:#97162a}.legend-dot.canceled{background:#0c111d}
.matches-table-wrap{overflow-x:auto;border:1px solid #dae4ef;border-radius:8px}.matches-table{width:100%;border-collapse:collapse;font-size:11px;min-width:660px;text-align:center;color:#10213f}.matches-table thead{background:#eaf0f7}.matches-table th{padding:11px 7px;font-weight:900;white-space:nowrap}.matches-table td{border-top:1px solid #e2e9f2;padding:9px 6px;line-height:1.65}.matches-table tr:nth-child(even){background:#f8fafc}.matches-table td:nth-child(2){font-weight:700;min-width:130px}.matches-table td:first-child{font-weight:800}.match-status{width:100%;max-width:152px;min-width:112px;border:1px solid transparent;border-radius:6px;padding:8px 6px;text-align:center;color:#fff;background:#0a953b;font-weight:800;cursor:pointer}.match-status:disabled{opacity:.92;cursor:not-allowed}.match-status option{color:#0d2548;background:white}.matches-actions{display:flex;flex-direction:column;align-items:center;gap:6px;margin:18px 0 5px}.matches-actions button{min-width:185px;font-size:13px}.matches-actions p{min-height:19px;margin:0;color:#157b44;font-size:11px}.matches-help{background:#f5f9fe;border:1px solid #e3edf6;border-radius:8px;display:flex;align-items:flex-start;gap:9px;padding:12px;font-size:11px;color:#53667c}.matches-help svg{width:18px;height:18px;flex:none;color:#0d73c3}
@media(min-width:731px) and (max-width:1120px){.matches-layout{grid-template-columns:minmax(200px,29%) minmax(0,1fr);gap:10px;padding:12px}.sidebar-wallet{padding:11px}.sidebar-balance strong{font-size:21px}.matches-primary{padding:10px}}
@media(max-width:730px){.matches-hero{min-height:145px;padding:20px 15px;background-position:56% 45%}.matches-hero h1{font-size:24px}.matches-layout{display:flex;flex-direction:column;gap:12px;padding:12px 10px 17px}.matches-primary{order:0;width:100%;padding:10px}.matches-sidebar{order:1;width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.matches-section-heading h2{font-size:18px}.matches-legend{gap:7px 10px;padding:12px 0}.matches-table-wrap{overflow:visible;border:none}.matches-table{display:block;min-width:0}.matches-table thead{display:none}.matches-table tbody{display:grid;gap:9px}.matches-table tr{background:white!important;border:1px solid #dde7f0;border-radius:9px;box-shadow:0 2px 8px #03162b0b;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:8px 6px}.matches-table td{padding:4px;display:flex;flex-direction:column;gap:4px;min-width:0;border:0;text-align:right;font-size:11px}.matches-table td:before{content:attr(data-label);color:#667a94;font-size:10px}.matches-table td:nth-child(1){display:none}.matches-table td:nth-child(2),.matches-table td:nth-child(7){grid-column:span 2}.matches-table td:nth-child(2) b{font-size:13px}.match-status{max-width:none;min-width:0}.matches-actions{margin-top:12px}.sidebar-shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar-shortcut-grid a{font-size:10px;min-height:75px}.sidebar-media{display:none}.sidebar-balance{justify-content:space-around}.matches-help{font-size:10px}}

/* Quick-access icons follow the configured main and hover colors. */
.sidebar-shortcut-grid a:hover svg,
.sidebar-shortcut-grid a:focus-visible svg {color:var(--hover, #f20735)}

/* Shared saved hero artwork for every public inner page. */
.site-shell .matches-hero{box-sizing:border-box;min-height:180px;height:clamp(180px,18vw,260px);padding:24px 4%;background-image:linear-gradient(270deg,rgba(4,15,36,.72),rgba(4,17,42,.18)),var(--inner-hero-image);background-position:center,center 42%;background-size:cover;background-repeat:no-repeat}
@media(max-width:730px){.site-shell .matches-hero{height:auto;min-height:clamp(180px,52vw,260px);padding:24px 18px;background-image:linear-gradient(270deg,rgba(4,15,36,.72),rgba(4,17,42,.2)),var(--inner-hero-mobile-image,var(--inner-hero-image));background-position:center,center;background-size:cover}.site-shell .matches-hero h1{font-size:clamp(23px,6vw,30px);line-height:1.5;overflow-wrap:anywhere}.site-shell .matches-breadcrumb{flex-wrap:wrap}}

/* Match registration cards: same form fields and submission rules. */
.matches-redesign{padding:26px!important;border-radius:18px!important}
.matches-redesign .matches-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;background:none;padding:0 0 22px;border-bottom:1px solid #e8edf4;margin:0 0 18px;color:#102b4b}
.matches-redesign .matches-section-heading h2{background:none;color:#102b4b;font-size:25px;margin:4px 0 0;padding:0;text-align:right}
.matches-eyebrow{font-size:12px;color:#ed1647;font-weight:800}.matches-total{background:#edf3fb;border:1px solid #dce6f2;padding:8px 13px;border-radius:24px;font-size:12px;white-space:nowrap}
.matches-redesign .matches-legend{justify-content:flex-start;gap:12px;padding:0 0 18px;font-size:11px}.matches-redesign .match-legend-swatch{border-radius:50%;width:8px;height:8px}
.matches-redesign .matches-table-wrap{border:0;overflow:visible;background:none}.matches-redesign .matches-table{display:block;width:100%;min-width:0;background:none;border:0}.matches-redesign .matches-table thead{display:none}.matches-redesign .matches-table tbody{display:grid;gap:18px}
.matches-redesign .matches-table tr.match-fixture-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#fff;border:1px solid #dbe5f0;border-radius:15px;overflow:hidden;box-shadow:0 5px 18px #183c6610;position:relative;padding:0 20px}
.matches-redesign .matches-table td{display:block;width:auto;min-width:0;text-align:right;border:0;padding:16px 0;grid-column:auto;background:none;color:#173757;font-size:13px;white-space:normal}
.matches-redesign .matches-table td:before{content:attr(data-label);display:block;color:#6c8097;font-size:11px;font-weight:500;margin-bottom:6px}
.matches-redesign .matches-table td:nth-child(1){display:none}.matches-redesign .matches-table td:nth-child(2){grid-column:1/-1;padding:20px 0 16px;border-bottom:1px solid #edf1f6}.matches-redesign .matches-table td:nth-child(2):before{display:none}.matches-redesign .matches-table td:nth-child(2) b{font-size:19px;color:#102b4b}.matches-redesign .public-match-notes{font-size:12px;color:#738397;margin-top:6px}
.matches-redesign .matches-table td:nth-child(6){color:#0c845e;font-weight:800}.matches-redesign .matches-table td:nth-child(7){grid-column:1/-1;border-top:1px solid #edf1f6;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0 18px}.matches-redesign .matches-table td:nth-child(7):before{content:'مشاركتك';color:#173757;font-weight:800;margin:0 0 0 6px;font-size:13px}
.matches-redesign .public-status{display:inline-flex;align-items:center;justify-content:center;min-width:95px;width:auto;padding:7px 16px;border-radius:24px;font-size:12px;line-height:1.5}.matches-redesign .match-status{width:auto;max-width:100%;min-width:220px;height:46px;border:1px solid #cbd9e9;border-radius:9px;background:#f5f8fc;color:#153c61;font-size:13px;padding:8px 12px}.matches-redesign tr[data-participation]:not([data-participation="0"]) .match-status{display:none}.matches-redesign .matches-table td small{font-size:11px;color:#74859a;line-height:1.8;flex:1;min-width:150px}.matches-redesign [data-apology-fields]{flex-basis:100%;width:100%}
.matches-redesign #matchForm>p{font-size:12px;line-height:1.9;color:#6d7e93;margin:20px 0}.matches-redesign .matches-save{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px;background:#f1f5fb;border:1px solid #e0e8f2;border-radius:12px}.matches-redesign .matches-save>span{font-size:12px;color:#536b86}.matches-redesign .matches-save button{border-radius:9px;min-height:46px;padding:10px 26px}
@media(max-width:730px){.matches-redesign{padding:18px 14px!important}.matches-redesign .matches-section-heading{align-items:flex-start;gap:10px}.matches-redesign .matches-section-heading h2{font-size:20px}.matches-total{font-size:10px;padding:6px 9px}.matches-redesign .matches-legend{gap:8px 12px}.matches-redesign .matches-table tr.match-fixture-card{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 15px}.matches-redesign .matches-table td:nth-child(5){grid-column:1}.matches-redesign .matches-table td:nth-child(6){grid-column:2}.matches-redesign .matches-table td:nth-child(7){grid-column:1/-1;gap:10px}.matches-redesign .match-status{width:100%;min-width:0}.matches-redesign .matches-save{flex-direction:column;align-items:stretch}.matches-redesign .matches-save button{width:100%}}

/* Apology controls stay readable inside desktop and mobile match cards. */
.matches-redesign [data-apology-fields]:not([hidden]){display:block;flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;margin:8px 0 0;padding:16px;background:#f6f8fc;border:1px solid #dfe7f1;border-radius:10px;text-align:right}
.matches-redesign .public-apology-fields label{display:block;text-align:right;font-size:13px;font-weight:700;color:#183b5d;margin:0 0 8px;line-height:1.7}
.matches-redesign .public-apology-fields select,.matches-redesign .public-apology-fields input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #c9d7e7;border-radius:8px;background:#fff;color:#193b5a;text-align:right;font-family:inherit;font-size:14px;line-height:1.6}
.matches-redesign .public-apology-fields select:focus,.matches-redesign .public-apology-fields input:focus{outline:2px solid #178b9c;outline-offset:2px}
.matches-redesign .public-apology-reason{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.9;color:#193b5a;overflow-wrap:anywhere}.matches-redesign .public-apology-reason strong{white-space:nowrap;color:#6e5a21}.matches-redesign .public-apology-value{min-width:0}
@media(max-width:730px){.matches-redesign [data-apology-fields]:not([hidden]){padding:13px}.matches-redesign .public-apology-fields select,.matches-redesign .public-apology-fields input{font-size:16px;min-height:48px}.matches-redesign .public-apology-reason{flex-direction:column;gap:4px}.matches-redesign .matches-table td:nth-child(7){align-items:flex-start}.matches-redesign .matches-table td:nth-child(7)>small{flex-basis:100%;min-width:0}}

/* Prevent mobile flex columns from wrapping apology controls off-screen. */
.matches-redesign .matches-table td:nth-child(7){flex-direction:row;flex-wrap:wrap}

/* Subtle alternating fixture colors distinguish matches without changing status colors. */
.matches-redesign .matches-table tr.match-fixture-card{--fixture-accent:#416c9c;--fixture-surface:#f3f8fe;--fixture-border:#c7d9ed;background:var(--fixture-surface);border-color:var(--fixture-border);border-inline-start:5px solid var(--fixture-accent);box-shadow:0 5px 18px #183c660e}
.matches-redesign .matches-table tr.match-fixture-card:nth-child(4n+2){--fixture-accent:#79669f;--fixture-surface:#f8f6fd;--fixture-border:#ded5ed}
.matches-redesign .matches-table tr.match-fixture-card:nth-child(4n+3){--fixture-accent:#47837f;--fixture-surface:#f1f9f8;--fixture-border:#cbe3df}
.matches-redesign .matches-table tr.match-fixture-card:nth-child(4n+4){--fixture-accent:#987858;--fixture-surface:#fcf8f2;--fixture-border:#eadfcf}
.matches-redesign .matches-table tr.match-fixture-card td:nth-child(2),.matches-redesign .matches-table tr.match-fixture-card td:nth-child(7){border-color:var(--fixture-border)}

@media(max-width:730px){.matches-redesign .matches-table tr.match-fixture-card{background:var(--fixture-surface)!important}}
