/* Goal Pulse Live — nafs l'style dyal l'app (dark + neon green) */
:root {
  --bg: #05090d; --bg2: #0a1218; --card: rgba(255,255,255,.05); --stroke: rgba(255,255,255,.08);
  --text: #f1f5f4; --muted: rgba(241,245,244,.55); --accent: #00d16b; --accent2: #00e676;
  --live: #ff3b54; --gold: #ffc733; --r: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: linear-gradient(180deg, var(--bg2), var(--bg)) fixed; color: var(--text); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* Header */
.banner { background: var(--accent); color: #000; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 14px; }
.top { position: sticky; top: 0; z-index: 50; background: rgba(5,9,13,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--stroke); }
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; white-space: nowrap; }
.logo img { border-radius: 9px; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--card); }
.nav a.on { color: var(--accent); }
.live-count:not(:empty) { background: var(--live); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.tools { display: flex; align-items: center; gap: 8px; }
.search input { background: var(--card); border: 1px solid var(--stroke); color: var(--text); border-radius: 12px; padding: 9px 14px; width: 200px; font: inherit; font-size: 14px; }
.search.big input { width: 100%; max-width: 520px; padding: 14px 18px; font-size: 17px; }
.icon-btn { background: var(--card); border: 1px solid var(--stroke); color: var(--text); border-radius: 12px; height: 38px; min-width: 38px; cursor: pointer; font-size: 16px; }
.icon-btn.on { background: var(--accent); }
.menu-btn { display: none; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.langs summary::-webkit-details-marker { display: none; }
.langs-menu { position: absolute; inset-inline-end: 0; top: 46px; background: #0f1a22; border: 1px solid var(--stroke); border-radius: 14px; padding: 6px; min-width: 160px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.langs-menu a { display: block; padding: 9px 12px; border-radius: 9px; }
.langs-menu a:hover, .langs-menu a.on { background: var(--card); color: var(--accent); }

main { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }

/* Common */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); }
.card.empty { padding: 28px; text-align: center; color: var(--muted); }
.big-empty { padding: 60px 20px !important; }
.btn { display: inline-block; background: var(--accent); color: #000; font-weight: 700; padding: 10px 18px; border-radius: 12px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.sec-h h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.sec-h a { color: var(--accent); font-weight: 600; font-size: 14px; }
.page-h { margin: 8px 0 18px; }
.page-h h1 { font-size: 30px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.col-side { position: sticky; top: 84px; }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, rgba(0,209,107,.22), rgba(255,255,255,.03)); border: 1px solid var(--stroke); }
.hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.hero p { margin: 8px 0 0; }
.hero-live { display: flex; align-items: center; gap: 12px; background: rgba(255,59,84,.12); border: 1px solid rgba(255,59,84,.3); padding: 14px 20px; border-radius: 18px; white-space: nowrap; }
.hero-live b { font-size: 32px; font-weight: 800; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,84,.6); animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,59,84,.6); } 100% { box-shadow: 0 0 0 16px rgba(255,59,84,0); } }

/* Live carousel */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.lcard { flex: 0 0 250px; scroll-snap-align: start; padding: 14px; border-radius: 18px; border: 1px solid var(--stroke); background: linear-gradient(135deg, rgba(0,209,107,.16), var(--card)); display: grid; gap: 10px; }
.lcard.is-imp { border-color: rgba(255,199,51,.45); }
.lcard-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lcard-h span:first-of-type { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-t { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lcard-t span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-t b { font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--card); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.live { background: rgba(255,59,84,.15); color: var(--live); }
.badge.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.badge.ko { color: var(--text); background: transparent; font-size: 14px; }

/* League groups + match rows */
.lg { margin-bottom: 14px; }
.lg-h { display: flex; align-items: baseline; gap: 10px; font-size: 15px; margin: 18px 0 8px; }
.lg-h a { display: flex; align-items: center; gap: 8px; }
.lg-h a:hover span { color: var(--accent); }
.lg-h small { color: var(--muted); font-weight: 500; font-size: 12px; }
.group-h { font-size: 14px; color: var(--accent); margin: 14px 0 8px; }
.list > * + * { border-top: 1px solid var(--stroke); }
.mrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; transition: background .15s; }
.mrow:hover { background: rgba(255,255,255,.03); }
.mrow.is-live .sc { color: var(--accent); }
.mrow-league { grid-column: 1 / -1; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: -6px; }
.teams { display: grid; gap: 8px; min-width: 0; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: 15px; }
.team .tn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team.lose { color: var(--muted); font-weight: 500; }
.team.win .tn { font-weight: 800; }
.sc { font-size: 17px; font-weight: 800; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.st { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 70px; border-inline-start: 1px solid var(--stroke); padding-inline-start: 12px; }
.bell { font-size: 13px; opacity: .35; cursor: pointer; filter: grayscale(1); user-select: none; }
.bell:hover { opacity: .8; }
.bell.on { opacity: 1; filter: none; }
.bell.big { opacity: .8; font-size: 13px; padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 99px; margin-top: 8px; filter: none; }
.bell.big.on { background: var(--gold); color: #000; border-color: var(--gold); }
.logo-ph { display: inline-block; border-radius: 50%; background: var(--card); }
.flash { animation: flash 1.2s 3; }
@keyframes flash { 50% { background: rgba(0,209,107,.25); } }

/* Goals feed */
.goal { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.gmin { font-weight: 800; color: var(--accent); min-width: 44px; font-variant-numeric: tabular-nums; }
.gtxt { display: grid; min-width: 0; }
.gtxt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Days + segments */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.days a { flex: 0 0 auto; min-width: 66px; text-align: center; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); }
.days a small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.days a b { font-size: 18px; }
.days a.on { background: var(--accent); color: #000; }
.days a.on small { color: rgba(0,0,0,.6); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; padding: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.seg a { padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg a.on { background: var(--accent); color: #000; }

/* Standings */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { color: var(--muted); font-weight: 700; font-size: 12px; padding: 10px 6px; text-align: center; }
.tbl td { padding: 9px 6px; text-align: center; border-top: 1px solid var(--stroke); }
.tbl .l { text-align: start; }
.tbl td.l a { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tbl td:first-child { position: relative; font-weight: 700; width: 34px; }
.tbl tr.z-cl td:first-child { box-shadow: inset 3px 0 var(--accent); }
.tbl tr.z-el td:first-child { box-shadow: inset 3px 0 orange; }
.tbl tr.z-rel td:first-child { box-shadow: inset 3px 0 var(--live); }
.tbl tr.hl { background: rgba(0,209,107,.1); }
.form i { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 800; margin: 0 1px; color: #000; }
.f-W { background: var(--accent); } .f-D { background: #9aa4a8; } .f-L { background: var(--live); color: #fff !important; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.lrow span { display: grid; }
.lrow:hover { background: rgba(255,255,255,.03); }

/* Leagues */
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.league-card { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; text-align: center; transition: transform .15s, border-color .15s; }
.league-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.league-card img { background: #fff; border-radius: 14px; padding: 6px; }
.league-head { display: flex; align-items: center; gap: 16px; padding: 18px; }
.league-head img { background: #fff; border-radius: 14px; padding: 6px; }

/* Match page */
.score { padding: 22px 16px; text-align: center; background: linear-gradient(160deg, rgba(0,209,107,.2), var(--card) 60%); }
.score-league { color: var(--muted); font-size: 13px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.score-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 16px; }
.score-team { display: grid; justify-items: center; gap: 10px; }
.score-team h2 { font-size: 17px; }
.score-num { font-size: 50px; font-weight: 900; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.score-ko { font-size: 38px; font-weight: 900; }
.score-mid { display: grid; justify-items: center; gap: 6px; min-width: 130px; }
.pen { color: var(--accent); font-weight: 700; font-size: 13px; }
.tabs { display: flex; gap: 8px; margin: 16px 0 0; overflow-x: auto; }
.tabs a { padding: 8px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--stroke); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a:hover { border-color: var(--accent); color: var(--accent); }
.timeline { padding: 6px 14px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ev-a { flex-direction: row-reverse; text-align: end; }
.ev-min { font-weight: 800; color: var(--muted); min-width: 46px; font-variant-numeric: tabular-nums; }
.ev-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 15px; }
.ev-goal .ev-ic { background: rgba(0,209,107,.2); }
.ev-tx { display: grid; }
.stats { padding: 16px; display: grid; gap: 14px; }
.stat-l { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.stat-l span { color: var(--muted); font-size: 13px; }
.bar { display: flex; gap: 4px; height: 7px; }
.bar i { display: block; border-radius: 99px; background: rgba(255,255,255,.18); }
.bar i:first-child { background: var(--accent); }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lineups .card { padding: 16px; }
.lineups h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.players { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.players li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.players li span { width: 26px; height: 26px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.players li small { margin-inline-start: auto; color: var(--muted); }
.players.subs li { color: var(--muted); }
.info { padding: 14px 16px; margin-bottom: 12px; }
.info p { margin: 6px 0; font-size: 14px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ncard a { display: flex; gap: 14px; padding: 14px; height: 100%; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); transition: border-color .15s; }
.col-side .ncard { margin-bottom: 10px; }
.ncard a:hover { border-color: var(--accent); }
.nimg img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.nbody { min-width: 0; }
.nbody h3 { font-size: 15px; margin: 6px 0; }
.nbody p { margin: 0 0 6px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ntype { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; background: var(--card); }
.t-report { color: var(--accent); } .t-preview { color: var(--gold); } .t-post { color: #6ab7ff; }
.prose { padding: 22px; }
.prose h1 { font-size: 28px; margin: 10px 0 6px; }
.prose h2 { font-size: 19px; margin: 18px 0 8px; }
.prose p { font-size: 16px; line-height: 1.7; }
.prose a { color: var(--accent); }
.legal { max-width: 820px; margin: 0 auto; }
.hero-img { width: 100%; border-radius: 14px; margin: 10px 0; }
.mini-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px; margin: 16px 0; border-radius: 14px; background: rgba(0,0,0,.25); text-align: center; }
.mini-score span { display: grid; justify-items: center; gap: 6px; }
.mini-score strong { font-size: 30px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { padding: 6px 12px; border-radius: 99px; background: rgba(0,209,107,.12); color: var(--accent); font-weight: 600; font-size: 13px; }
.tag:hover { background: var(--accent); color: #000; }
.hashtag { color: var(--accent); font-size: 38px !important; }

/* Ads */
.ad { margin: 18px 0; text-align: center; min-height: 90px; }
.ad-label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* Toasts */
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; display: grid; gap: 10px; z-index: 100; max-width: calc(100vw - 36px); }
.toast { background: #0f1a22; border: 1px solid var(--accent); border-radius: 14px; padding: 12px 16px; box-shadow: 0 20px 40px rgba(0,0,0,.5); animation: slide .3s; display: block; min-width: 260px; }
.toast b { color: var(--accent); }
@keyframes slide { from { transform: translateY(20px); opacity: 0; } }

/* Footer */
.foot { border-top: 1px solid var(--stroke); padding: 30px 0 20px; margin-top: 30px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot h4 { margin: 0 0 10px; }
.foot-in > div > a:not(.logo):not(.btn) { display: block; color: var(--muted); padding: 3px 0; font-size: 14px; }
.foot-in a:hover { color: var(--accent); }
.copy { font-size: 13px; margin-top: 20px; }

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .search { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; background: #0a1218; border-bottom: 1px solid var(--stroke); padding: 10px 16px; }
  .nav.open { display: flex; }
  .top-in { justify-content: space-between; }
  .logo span { font-size: 16px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .lineups { grid-template-columns: 1fr; }
  .score-num { font-size: 38px; }
  .score-team img { width: 52px; height: 52px; }
  .score-team h2 { font-size: 14px; }
  .score-mid { min-width: 90px; }
  .hide-s { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .page-h h1 { font-size: 24px; }
}
