/* ArabFootball24 — matchday theme.
   One accent family: pitch green surfaces, a single floodlight-lime highlight on dark,
   emerald on light. Loaded after site.css, so it re-themes the newsroom components in place. */
:root {
    color-scheme: light;
    --paper: #f1f5ee;
    --paper-raised: #fafcf8;
    --ink: #0e1f17;
    --ink-soft: #3d5247;
    --muted: #66786d;
    --line: #d3ddd0;
    --line-strong: #b2c1b4;
    --accent: #16664a;
    --accent-dark: #0e4d38;
    --pitch: #0a271c;
    --pitch-2: #0f3526;
    --turf: #17563d;
    --lime: #c6ef4f;
    --serif: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --shadow-tint: 10 39 28;
}

body { background: var(--paper); overflow-x: clip; }
h1, h2, h3, h4, .brand-name { letter-spacing: -.012em; text-wrap: balance; }
:focus-visible { outline-color: var(--accent); }
.container.site-shell { width: min(calc(100% - 40px), var(--shell)); }

/* ---------- top bars ---------- */
.utility-bar { background: #061a12; border-bottom: 0; color: rgb(255 255 255 / .58); }
.utility-note { color: rgb(255 255 255 / .72); }
.utility-account a:hover, .utility-account button:hover { color: var(--lime); }
.account-join { color: var(--lime) !important; }

.masthead {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 260px at 12% -40%, rgb(198 239 79 / .16), transparent 70%),
        repeating-linear-gradient(90deg, var(--pitch-2) 0 84px, #0d2f21 84px 168px);
}
.masthead::after { /* halfway line + centre circle, very faint */
    position: absolute; inset-block: -80px; inset-inline-start: 46%; width: 220px; border-radius: 50%;
    border: 2px solid rgb(255 255 255 / .06); content: ""; pointer-events: none;
}
.masthead-inner { position: relative; min-height: 104px; }
.brand-lockup, .brand-lockup:hover { color: #fff; }
.brand-mark {
    width: 52px; height: 52px; border: 0; border-radius: 14px; background: var(--lime); color: var(--pitch);
    font-size: 1.05rem; font-weight: 700; transform: rotate(-6deg); box-shadow: 0 10px 22px -10px rgb(198 239 79 / .7);
}
.brand-name { font-size: 2rem; font-weight: 700; color: #fff; }
.brand-tagline { color: rgb(255 255 255 / .6); }
.masthead-edition { color: rgb(255 255 255 / .72); }
.masthead-edition span, .category-dot { background: var(--lime); }
.masthead-link { border-bottom-color: var(--lime); color: var(--lime); }
.masthead-link span { color: var(--lime); }

.primary-nav {
    position: sticky; top: 0; z-index: 50; border: 0; background: var(--pitch);
    box-shadow: 0 10px 24px -16px rgb(var(--shadow-tint) / .8);
}
.nav-scroll { gap: clamp(14px, 2.4vw, 30px); }
.nav-scroll a { padding: 14px 2px 13px; color: rgb(255 255 255 / .72); font-weight: 600; }
.nav-scroll a::after { height: 3px; bottom: 0; background: var(--lime); border-radius: 3px 3px 0 0; }
.nav-scroll a:hover, .nav-scroll a.is-current { color: #fff; }

/* ---------- shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .01em; }
.eyebrow::before { width: 16px; height: 3px; border-radius: 3px; background: currentColor; content: ""; }
.section-title, .module-heading h2, .page-heading h1, .editorial-heading h1, .aside-heading h2 { font-weight: 700; }
.section-heading-row, .page-heading, .editorial-heading, .aside-heading { border-bottom-color: var(--line-strong); }
.text-link { color: var(--ink-soft); font-weight: 600; }
.text-link span, .back-link span, .read-link { color: var(--accent); }

/* ---------- home: matchday hero ---------- */
.home-page > .pitch-hero { margin-top: -28px; }
.pitch-hero {
    position: relative; margin-inline: calc(50% - 50vw); padding: 30px 0 46px; color: #fff; overflow: hidden;
    background:
        radial-gradient(1000px 420px at 85% -10%, rgb(198 239 79 / .12), transparent 65%),
        repeating-linear-gradient(90deg, #0b2d21 0 96px, #0e3427 96px 192px);
}
.pitch-hero::before { /* centre circle */
    position: absolute; inset-block-end: -230px; inset-inline-start: 6%; width: 520px; height: 520px; border-radius: 50%;
    border: 2px solid rgb(255 255 255 / .07); content: ""; pointer-events: none;
}
.pitch-hero::after { /* halfway line */
    position: absolute; inset-block: 0; inset-inline-start: calc(6% + 260px); width: 2px; background: rgb(255 255 255 / .05); content: ""; pointer-events: none;
}
.pitch-hero-inner { position: relative; z-index: 1; width: min(calc(100vw - 40px), var(--shell)); margin-inline: auto; }

.ticker { display: flex; align-items: stretch; gap: 10px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 10px; background: var(--lime); color: var(--pitch); font-size: .76rem; font-weight: 700; }
.ticker-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--pitch); animation: pulse 1.8s ease-in-out infinite; }
.ticker-match { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: rgb(255 255 255 / .07); color: #fff; font-size: .8rem; white-space: nowrap; }
.ticker-match b { padding: 2px 9px; border-radius: 6px; background: var(--pitch); color: var(--lime); font-variant-numeric: tabular-nums; }
.ticker-empty { align-self: center; color: rgb(255 255 255 / .7); font-size: .8rem; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.pitch-hero .front-page-grid { gap: 28px; }
.pitch-hero .lead-story { background: transparent; border-top: 0; min-height: 440px; color: #fff; gap: 0; }
.pitch-hero .lead-image-wrap { border-radius: 18px; background: var(--pitch-2); box-shadow: 0 24px 48px -26px rgb(0 0 0 / .8); }
.pitch-hero .lead-story:hover .lead-image { transform: scale(1.04); }
.pitch-hero .image-caption-mark { background: var(--lime); color: var(--pitch); font-weight: 700; border-radius: 6px; }
.pitch-hero .lead-copy { padding: clamp(18px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
.pitch-hero .story-kicker { color: var(--lime); }
.pitch-hero .kicker-divider { color: rgb(255 255 255 / .3); }
.pitch-hero .lead-copy h1 { margin: 16px 0 12px; font-size: clamp(1.8rem, 3.3vw, 2.9rem); font-weight: 700; line-height: 1.34; color: #fff; }
.pitch-hero .lead-summary { color: rgb(255 255 255 / .76); }
.pitch-hero .story-byline { color: rgb(255 255 255 / .55); }
.pitch-hero .read-link { color: var(--lime); }

.pitch-hero .front-rail { border-top: 0; padding: 18px 20px 8px; border-radius: 18px; background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); }
.pitch-hero .rail-heading { padding-top: 0; color: #fff; font-weight: 700; }
.pitch-hero .rail-index { color: rgb(255 255 255 / .5); }
.pitch-hero .rail-story { border-bottom-color: rgb(255 255 255 / .1); }
.pitch-hero .rail-number { color: var(--lime); font-size: 1.05rem; font-weight: 700; }
.pitch-hero .rail-category { color: rgb(255 255 255 / .55); }
.pitch-hero .rail-copy h2 { color: #fff; font-weight: 600; }
.pitch-hero .rail-copy time { color: rgb(255 255 255 / .5); }
.pitch-hero .rail-story img { border-radius: 10px; }
.pitch-hero .rail-more { color: var(--lime); }
.pitch-hero .rail-story:hover h2 { color: var(--lime); }

/* ---------- home: football hub ---------- */
.hub-strip { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 14px; margin: -26px 0 44px; position: relative; z-index: 2; }
.hub-tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 118px; padding: 18px 20px;
    border-radius: 16px; background: var(--paper-raised); color: var(--ink);
    box-shadow: 0 18px 36px -24px rgb(var(--shadow-tint) / .55), 0 0 0 1px var(--line);
    transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease;
}
.hub-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgb(var(--shadow-tint) / .6), 0 0 0 1px var(--accent); color: var(--ink); }
.hub-tile:active { transform: translateY(-1px) scale(.99); }
.hub-tile-lead { background: var(--lime); box-shadow: 0 18px 36px -24px rgb(198 239 79 / .9); }
.hub-label { font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.hub-tile-lead .hub-label { color: var(--pitch); }
.hub-number { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--accent-dark); }
.hub-tile-lead .hub-number { color: var(--pitch); }
.hub-go { display: inline-flex; align-items: center; justify-content: space-between; font-size: .74rem; font-weight: 700; color: var(--accent); }
.hub-tile-lead .hub-go { color: var(--pitch); }

/* ---------- cards ---------- */
.news-grid { gap: 26px 22px; }
.news-card { transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.news-card:hover { transform: translateY(-3px); }
.news-card-image { border-radius: 14px; background: #dde6da; box-shadow: 0 16px 30px -22px rgb(var(--shadow-tint) / .7); }
.news-card-copy h3 { font-weight: 700; font-size: 1.12rem; }
.news-card:hover h3 { color: var(--accent-dark); }
.story-kicker { color: var(--accent); }
.news-card .story-kicker, .rail-category { text-transform: none; }

.latest-section, .catalog-section, .spotlight-section, .service-strip { border-top: 0; }
.catalog-section, .spotlight-section { margin: 56px 0 0; padding-top: 0; }
.spotlight-section { border-top: 0; }

/* leagues + clubs */
.league-chips { gap: 8px; }
.league-chip { padding: 8px 14px; border: 0; border-radius: 10px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .88rem; transition: background .18s ease, color .18s ease, transform .18s ease; }
.league-chip:hover { background: var(--pitch); color: var(--lime); box-shadow: none; transform: translateY(-1px); }
.league-chip-all { background: transparent; color: var(--accent); box-shadow: none; }
.league-chip-all:hover { background: transparent; color: var(--accent-dark); }
.club-grid { gap: 12px; }
.club-tile { padding: 12px 14px; border: 0; border-radius: 14px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.club-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -20px rgb(var(--shadow-tint) / .7), inset 0 0 0 1px var(--accent); }
.club-badge { border-radius: 14px; background: linear-gradient(150deg, var(--turf), var(--pitch)); color: var(--lime); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.club-badge:has(img) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.club-badge img { padding: 5px; }
.club-badge-lg { border-radius: 22px; }
.club-hero { padding: 26px; border-radius: 20px; background: linear-gradient(120deg, var(--pitch-2), var(--pitch)); color: #fff; }
.club-hero h1 { color: #fff; }
.club-hero .club-en { color: rgb(255 255 255 / .6); }
.club-facts { border: 0; padding: 0; gap: 12px; }
.club-facts > div { padding: 14px 16px; border-radius: 12px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); }
.league-country h2 { color: var(--accent-dark); font-weight: 700; border-bottom-color: var(--line-strong); }
.catalog-filter input, .catalog-filter select { border-radius: 10px; background: var(--paper-raised); }
.catalog-filter button { border-radius: 10px; background: var(--pitch); color: var(--lime); transition: transform .15s ease, background .15s ease; }
.catalog-filter button:hover { background: var(--turf); }
.catalog-filter button:active { transform: scale(.97); }

/* players */
.spotlight-scroll { gap: 14px; padding-bottom: 10px; }
.spotlight-player { flex-basis: 156px; padding: 10px; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.spotlight-player:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -20px rgb(var(--shadow-tint) / .7), inset 0 0 0 1px var(--accent); }
.spotlight-photo { width: 100%; border-radius: 12px; background: linear-gradient(150deg, var(--turf), var(--pitch)); }
.spotlight-initial { background: transparent; color: var(--lime); }
.spotlight-player strong, .player-tile strong { font-weight: 700; }
.player-tile { padding: 10px; border: 0; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); }
.player-photo { border-radius: 12px; }
.player-number { color: var(--accent); }

/* service strip: scoreboard, transfers, table */
.service-strip { gap: 22px; margin-top: 56px; padding-top: 0; }
.service-strip > div { min-width: 0; padding: 20px 22px; border-radius: 18px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); }
.score-list { border-top: 0; }
.score-row { border-bottom-color: var(--line); }
.score-time, .match-score { min-width: 64px; padding: 5px 10px; border-radius: 8px; background: var(--pitch); color: var(--lime); font-weight: 700; }
.transfer-status { color: var(--accent); }
.transfer-row { border-top-color: var(--line); }
.transfer-row:hover .transfer-title { color: var(--accent-dark); }
.standings-table thead th { border-bottom-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.standings-table tbody tr:first-child td { background: rgb(198 239 79 / .22); }
.standings-table .col-pos { color: var(--accent); font-weight: 700; }
.match-list { border-top-color: var(--accent); }
.match-status { color: var(--accent); }

/* countdown band — same pitch palette */
.countdown-band { margin: 44px 0 0; border-radius: 20px; background-color: var(--pitch); }
.countdown-band::before { background: linear-gradient(100deg, rgb(6 26 18 / .95) 0%, rgb(10 39 28 / .86) 48%, rgb(10 39 28 / .6) 100%); }
.countdown-band .eyebrow { color: var(--lime); }
.countdown-teams { font-weight: 700; }
.clock-unit { border-radius: 12px; border-color: rgb(198 239 79 / .28); background: rgb(198 239 79 / .08); }
.clock-value { color: var(--lime); }

/* article + misc surfaces */
.article-header h1 { font-weight: 700; }
.article-cover img { border-radius: 16px; }
.article-action { border-radius: 10px; }
.article-action:hover, .article-action.is-active { border-color: var(--accent); color: var(--accent-dark); }
.related-story img, .archive-thumb, .archive-lead-image { border-radius: 10px; }
.archive-lead-image { border-radius: 16px; }
.af-panel { border-radius: 14px; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark); --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .18rem rgb(22 102 74 / .16); }

/* ---------- footer ---------- */
.site-footer { margin-top: 36px; background: var(--pitch); color: rgb(255 255 255 / .7); border-top: 0; }
.site-footer .brand-lockup, .site-footer .brand-name { color: #fff; }
.footer-brand p { color: rgb(255 255 255 / .55); }
.footer-links a { color: rgb(255 255 255 / .72); }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { border-top-color: rgb(255 255 255 / .1); color: rgb(255 255 255 / .5); }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .pitch-hero { padding: 22px 0 34px; }
    .pitch-hero .lead-story { min-height: 0; }
    .pitch-hero .lead-image-wrap, .pitch-hero .lead-image { border-radius: 14px; }
    .pitch-hero .front-page-grid { gap: 20px; }
    .hub-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -18px; }
    .hub-tile-lead { grid-column: 1 / -1; }
    .masthead-inner { min-height: 84px; }
    .brand-name { font-size: 1.55rem; }
    .service-strip > div { padding: 16px; }
}
@media (max-width: 575.98px) {
    .container.site-shell { width: calc(100% - 28px); }
    .pitch-hero-inner { width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-label i { animation: none; }
    .hub-tile, .news-card, .club-tile, .spotlight-player { transition: none; }
}

/* ---------- home: star player cards ---------- */
.stars-section { margin: 56px 0 0; }
.stars-scroll { display: flex; gap: 16px; margin-top: 18px; padding: 6px 2px 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.star-card {
    position: relative; flex: 0 0 190px; display: flex; flex-direction: column; padding: 14px 14px 16px; border-radius: 20px; color: #fff; scroll-snap-align: start; overflow: hidden;
    background:
        radial-gradient(160px 120px at 80% 0%, rgb(198 239 79 / .22), transparent 70%),
        linear-gradient(165deg, #17563d 0%, #0e3829 52%, #082016 100%);
    box-shadow: 0 22px 36px -24px rgb(var(--shadow-tint) / .9), inset 0 0 0 1px rgb(255 255 255 / .08);
    transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s ease;
}
.star-card::after { /* pitch line across the card */
    position: absolute; inset-inline: 0; bottom: 78px; height: 1px; background: rgb(255 255 255 / .07); content: ""; pointer-events: none;
}
.star-card:hover { transform: translateY(-6px); color: #fff; box-shadow: 0 30px 40px -22px rgb(var(--shadow-tint)), inset 0 0 0 1px rgb(198 239 79 / .5); }
.star-card:active { transform: translateY(-2px) scale(.99); }
.star-top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 40px; }
.star-pos { padding: 3px 8px; border-radius: 6px; background: rgb(255 255 255 / .12); font-size: .7rem; font-weight: 600; }
.star-no { font-size: 2.1rem; font-weight: 700; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--lime); }
.star-photo { display: grid; place-items: end center; height: 150px; margin: -2px -14px 0; overflow: hidden; }
.star-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.star-silhouette { width: 78%; height: 100%; fill: rgb(255 255 255 / .1); }
.star-name { margin-top: 12px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.star-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .78rem; color: rgb(255 255 255 / .78); }
.star-crest { flex: 0 0 22px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: var(--lime); color: var(--pitch); font-size: .72rem; font-weight: 700; }
.star-club { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-nat { margin-top: 4px; font-size: .7rem; color: rgb(255 255 255 / .5); }
@media (max-width: 575.98px) { .star-card { flex-basis: 164px; } .star-photo { height: 128px; } }
@media (prefers-reduced-motion: reduce) { .star-card { transition: none; } }

/* ---------- news detail: headline sized to the cover image width ---------- */
.article-header { max-width: none; }
.article-header h1 { margin: 12px 0 12px; font-size: clamp(1.45rem, 2.7vw, 2.2rem); font-weight: 700; line-height: 1.5; text-wrap: balance; }
.article-cover { margin-top: 22px; }
@media (max-width: 991.98px) { .article-header h1 { font-size: 1.4rem; line-height: 1.55; } }
