/* Sanal Süper Lig -- the player UI. Tokens and values come from the design file
   "4 Mac Gunu.dc.html" (PAL, base/mob/tab layouts). Loaded after main.css, so
   every rule here sets what it needs rather than trusting the legacy resets. */

:root,
:root[data-theme="dark"] {
  --bg: #07100b; --surf: #0c1912; --surf2: #112219; --surf3: #183024;
  --line: #1b3326; --dv: #14281d; --fg: #e7f3eb; --mute: #86a291;
  --acc: #2bd36b; --acc-ink: #03140a; --acc-text: #4ade80; --acc-soft: rgba(43,211,107,.12);
  --live: #ff5c6c; --live-soft: rgba(255,92,108,.14);
  --win: #4ade80; --lose: #ff6b76; --warn: #f5c542; --draw: #7f9688;
  --home: #2bd36b; --away: #cfdcd4; --track: rgba(255,255,255,.09); --overlay: rgba(2,7,4,.7);
  --on-color: #04120a; --sel-bar: rgba(3,20,10,.35);
}
:root[data-theme="light"] {
  --bg: #eef3ef; --surf: #ffffff; --surf2: #f3f7f4; --surf3: #e2eae4;
  --line: #d9e3dc; --dv: #e7eee9; --fg: #0b1c12; --mute: #55675c;
  --acc: #15803d; --acc-ink: #ffffff; --acc-text: #15803d; --acc-soft: #e2f3e7;
  --live: #d4213a; --live-soft: #fde7ea;
  --win: #15803d; --lose: #d4213a; --warn: #a86410; --draw: #8a9a90;
  --home: #15803d; --away: #475569; --track: #e1e8e3; --overlay: rgba(11,28,18,.45);
  --on-color: #ffffff; --sel-bar: rgba(255,255,255,.45);
}

@keyframes mgBlink{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes mgPop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.08);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes mgCoin{0%{transform:translate(-50%,-50%) scale(.3);opacity:1}100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(1) rotate(220deg);opacity:0}}
@keyframes mgShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
@keyframes mgUp{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes mgFade{from{opacity:0}to{opacity:1}}
@keyframes mgChevR{0%{transform:translateX(-5px);opacity:0}50%{opacity:1}100%{transform:translateX(5px);opacity:0}}
@keyframes mgSlide{from{transform:translateX(40px);opacity:0}to{transform:translateX(0);opacity:1}}

/* ---------- shell ---------- */
/* Only the game page; the account page keeps its old background. */
body:has(.ss-app) { background: var(--bg); }
html { touch-action: manipulation; } /* no double-tap zoom */
.ss-app {
  position: relative; height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: 'Archivo', sans-serif; font-size: 13px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
.ss-app *, .ss-overlay * { box-sizing: border-box; }
/* :where() keeps these resets at zero specificity, so every class below wins. */
:where(.ss-app, .ss-overlay) button { font: inherit; cursor: pointer; color: inherit; border: none; background: transparent; padding: 0; }
:where(.ss-app) input { font: inherit; }
:where(.ss-app) a { text-decoration: none; }
.ss-main, .ss-scroll, .ss-dbody, .ss-seg { scrollbar-width: thin; scrollbar-color: var(--surf3) transparent; }
.ss-num { font-variant-numeric: tabular-nums; }
.ss-mute { color: var(--mute); }

.ss-header {
  flex-shrink: 0; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 18px;
  background: var(--surf); border-bottom: 1px solid var(--line);
}
.ss-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--fg); }
.ss-brand-logo { display: block; width: 30px; height: 40px; }
/* The logo's white parts vanish on the light header; dark green there. The animations always run on dark green. */
:root[data-theme="light"] .ss-brand-logo .ss-logo-w { fill: #0b411d; }
/* Two lines, as tall as the logo: a small tracked "SANAL" over a bold "SÜPER LİG", LİG in the logo's green. */
.ss-brand-name { display: grid; gap: 4px; font-family: var(--font-exo2), sans-serif; font-style: italic; line-height: 1; white-space: nowrap; }
.ss-brand-name > span { font-size: 11px; font-weight: 500; letter-spacing: .42em; opacity: .75; }
.ss-brand-name > b { font-size: 21px; font-weight: 700; letter-spacing: .03em; }
.ss-brand-name i { color: #12b56d; }
:root[data-theme="light"] .ss-brand-name i { color: #009959; }
.ss-spacer { flex: 1; }
/* Phones fold Hesabım and the theme switch into one menu next to the bell. */
.ss-wide-only { display: flex; flex-shrink: 0; }
.ss-hmenu { display: none; position: relative; flex-shrink: 0; }
.ss-hmenu > button { width: 36px; height: 36px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line) !important; background: var(--surf2) !important; }
.ss-hmenu > button > i { width: 16px; height: 2px; border-radius: 1px; background: var(--fg); }
.ss-hmenu-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 180px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.ss-hmenu-pop > a { padding: 10px 12px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--fg); }
.ss-hmenu-pop > a:hover { background: var(--surf2); }
.ss-hmenu-pop > div { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.ss-level { display: flex; align-items: center; gap: 9px; }
.ss-level-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.ss-level-ring > span { width: 26px; height: 26px; border-radius: 50%; background: var(--surf); display: grid; place-items: center; font-weight: 900; font-stretch: 75%; font-size: 13px; }
.ss-level-text { display: flex; flex-direction: column; line-height: 1.15; }
.ss-level-text b { font-size: 11px; font-weight: 800; }
.ss-level-text span { font-size: 10px; color: var(--mute); font-weight: 600; white-space: nowrap; }
/* Header bell: decided coupons and level-ups, newest first. */
.ss-bell { position: relative; flex-shrink: 0; }
.ss-bell > button { position: relative; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; }
.ss-bell > button > b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.ss-notes { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: min(320px, calc(100vw - 20px)); max-height: 420px; overflow-y: auto; padding: 10px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 6px; animation: mgFade .15s both; }
/* Ranks: the badge, a name in the rank's colour, and the header pill's progress bar. */
.ss-rank { display: inline-block; flex-shrink: 0; vertical-align: -3px; } /* Tailwind's base makes every svg a block */
.ss-rank-name { font-weight: 800; }
.ss-rank-name.grand { background: linear-gradient(90deg, #b06cff, #e45cff, #ff8ad8); -webkit-background-clip: text; background-clip: text; color: transparent; }
a.ss-level { color: inherit; }
.ss-level-text .ss-track { display: block; width: 72px; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.ss-level-text .ss-track > span { display: block; height: 100%; border-radius: 2px; }
/* Lobby chat: the bell's dropdown, taller, with the input pinned at the bottom. */
.ss-chat-panel { width: min(360px, calc(100vw - 20px)); height: min(520px, calc(100vh - 90px)); max-height: none; overflow: hidden; }
.ss-chat-h { display: flex; align-items: baseline; justify-content: space-between; }
.ss-chat-h small { color: var(--mute); font-size: 11px; font-weight: 600; }
.ss-chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.ss-chat-line { margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.ss-chat-line > .ss-rank { margin-right: 5px; }
.ss-chat-empty { margin: auto; color: var(--mute); font-size: 12px; }
.ss-chat-err { color: var(--live); font-size: 11px; font-weight: 700; }
.ss-chat-in { display: flex; gap: 6px; }
.ss-chat-in input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surf2); color: var(--fg); font: inherit; font-size: 13px; }
.ss-chat-in button { height: 36px; padding: 0 12px; }
.ss-note { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surf2); }
.ss-note.new { box-shadow: inset 0 0 0 1px var(--acc); }
.ss-note > i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.ss-note.won > i { background: var(--win); }
.ss-note.lost > i { background: var(--lose); }
.ss-note.level > i, .ss-note.freebet > i { background: var(--acc); }
.ss-note > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ss-note b { font-size: 12px; font-weight: 800; }
.ss-note span { font-size: 11px; color: var(--mute); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-note small { font-size: 10px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ss-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.ss-balance small { font-size: 10px; color: var(--mute); font-weight: 700; letter-spacing: .08em; }
.ss-balance span { font-weight: 800; font-stretch: 78%; font-size: 18px; white-space: nowrap; transition: color .3s; }
.ss-balance span.flash { color: var(--win); }
.ss-btn-outline {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important;
  font-weight: 700; font-size: 13px; white-space: nowrap;
}
.ss-pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ss-theme { width: 48px; height: 28px; border-radius: 14px; border: 1px solid var(--line) !important; background: var(--surf3) !important; position: relative; flex-shrink: 0; }
.ss-theme > span { position: absolute; top: 3px; left: 24px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: left .25s; display: grid; place-items: center; }
.ss-theme > span > span { width: 8px; height: 8px; border-radius: 50%; background: var(--surf3); }
:root[data-theme="light"] .ss-theme > span { left: 3px; }
:root[data-theme="light"] .ss-theme > span > span { background: var(--warn); }

/* Two columns, main and slip. Inside main the stream and the live bets share the top row, and the bulletin runs under both up to the slip. */
.ss-app { --slip: 380px; }
.ss-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) var(--slip); gap: 12px; padding: 14px; }
.ss-top { flex-shrink: 0; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 12px; align-items: stretch; }
.ss-top > .ss-feed { height: 0; min-height: 100%; }
/* Live bets, between the stream and the slip. */
.ss-feed { min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; }
.ss-feed > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.ss-feed > h3 > i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; animation: mgBlink 1s infinite; }
.ss-feed > div { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ss-feed-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 8px 14px; border-bottom: 1px solid var(--dv); font-size: 12px; animation: mgUp .3s both; }
.ss-feed-row > b { font-weight: 800; }
.ss-feed-row > span { color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.ss-feed-row > em { font-style: normal; font-weight: 700; color: var(--acc-text); }
.ss-feed-row > strong { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ss-main { min-height: 0; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 10px; }
/* ---------- stream card ---------- */
.ss-stream { flex-shrink: 0; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
/* No margin: main.css's phone rule pulled the video 16px past each side of the card, which cut the board and the attack bar. */
.ss-stream .Match-video { background: #040806; border-radius: 0; margin: 0; padding: 0; }
.ss-stream .Match-video-body { padding: 0; }
.ss-stream .Match-video-body-content { max-width: none; border-radius: 0; border: 0; background: #040806; }
.ss-stream .Match-video-login { color: rgba(255,255,255,.45); font-size: 12px; font-weight: 600; }
/* The player's own controls sit where the attack bar runs, so they come up on
   hover or keyboard focus only; a tap counts as hover on a phone. */
.ss-stream .custom-controls { opacity: 0; transition: opacity .2s; }
.ss-stream .Match-video-stage:hover .custom-controls, .ss-stream .custom-controls:focus-within { opacity: 1; }

/* ---------- tabs ---------- */
.ss-tabs { flex-shrink: 0; display: flex; align-items: flex-end; gap: 22px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.ss-tab { height: 44px; padding: 0 2px !important; color: var(--mute) !important; font-weight: 900; font-stretch: 75%; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ss-tab.on { color: var(--fg) !important; box-shadow: inset 0 -3px 0 var(--acc); }
.ss-cd { height: 20px; padding: 0 7px; border-radius: 5px; background: var(--acc-soft); color: var(--acc-text); font-size: 11px; font-weight: 800; font-stretch: 100%; display: grid; place-items: center; }
.ss-cd.hot { background: var(--live); color: #fff; }

/* ---------- bulletin ---------- */
.ss-lensbar { flex-shrink: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mute); }
.ss-seg { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--surf); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.ss-seg > button { flex-shrink: 0; height: 32px; padding: 0 12px !important; border-radius: 6px; color: var(--fg) !important; font-weight: 700; font-size: 12px; white-space: nowrap; }
.ss-seg > button.on { background: var(--acc) !important; color: var(--acc-ink) !important; }
.ss-hint { font-size: 12px; color: var(--mute); }

.ss-card { flex-shrink: 0; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ss-bhead, .ss-brow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,360px) 54px; gap: 14px; align-items: center; }
.ss-bhead { padding: 8px 14px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.ss-brow { padding: 10px 14px; border-top: 1px solid var(--dv); animation: mgUp .3s both; }
.ss-odds { display: grid; gap: 6px; }
.ss-odds.c2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ss-odds.c3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ss-odds-head > span { padding-left: 10px; }
.ss-teams { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--fg) !important; text-align: left; }
.ss-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-team b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-team small { margin-left: auto; font-size: 10px; color: var(--mute); font-weight: 700; flex-shrink: 0; }
.ss-crest { border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--surf3); color: var(--fg); font-weight: 800; }
.ss-crest img { width: 100%; height: 100%; object-fit: contain; display: block; }

.ss-odd {
  position: relative; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px !important;
  border-radius: 7px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; overflow: hidden;
  transition: background .15s, transform .1s;
}
.ss-odd:active { transform: scale(.96); }
.ss-odd .ss-odd-l { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; min-width: 0; }
.ss-odd .ss-odd-l b { font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ss-odd .ss-odd-l span { font-size: 10px; color: var(--mute); }
.ss-odd .ss-odd-v { display: flex; align-items: center; gap: 3px; font-weight: 800; font-stretch: 82%; font-size: 17px; font-variant-numeric: tabular-nums; }
.ss-odd .ss-odd-v i { font-style: normal; font-size: 8px; }
.ss-odd .ss-odd-v i.up { color: var(--win); }
.ss-odd .ss-odd-v i.down { color: var(--lose); }
.ss-odd .ss-share { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--acc); transition: width .5s; }
.ss-odd.sel { background: var(--acc) !important; border-color: var(--acc) !important; color: var(--acc-ink) !important; }
.ss-odd.sel .ss-odd-l b, .ss-odd.sel .ss-odd-l span, .ss-odd.sel .ss-odd-v i { color: var(--acc-ink); }
.ss-odd.sel .ss-share { background: var(--sel-bar); }
.ss-odd.won { box-shadow: inset 0 0 0 2px var(--win); }
.ss-odd.off { opacity: .45; cursor: not-allowed; }
.ss-odd.won.off { opacity: 1; }
.ss-odd .ss-lock { width: 11px; height: 11px; color: var(--mute); }
.ss-odd.empty { justify-content: center; color: var(--mute) !important; cursor: default; }
.ss-odd.sm { height: auto; min-height: 42px; }
.ss-odd.sm .ss-odd-l b { font-size: 12px; font-weight: 600; }
.ss-odd.sm .ss-odd-v { font-size: 15px; }
.ss-odd.sm .ss-share { height: 2px; }
.ss-brow.live { background: var(--live-soft); animation: none; }
.ss-brow.live .ss-team small { display: none; }
.ss-livescore { margin-left: auto; font-style: normal; font-weight: 900; font-stretch: 80%; font-size: 16px; font-variant-numeric: tabular-nums; }
.ss-livechip { height: 48px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--live); color: #fff; font-weight: 800; font-size: 11px; font-variant-numeric: tabular-nums; }
.ss-livechip > i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: mgBlink 1s infinite; }
.ss-more { height: 48px; border-radius: 7px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; }
.ss-empty { padding: 30px 20px; text-align: center; color: var(--mute); }
.ss-empty b { display: block; font-size: 14px; color: var(--fg); margin-bottom: 6px; }

.ss-rrow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 4px 12px; padding: 10px 14px; border-top: 1px solid var(--dv); }
.ss-rrow.fresh { background: var(--acc-soft); }
.ss-rrow[role="button"] { cursor: pointer; }
.ss-rside { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-rside.h { justify-content: flex-end; }
.ss-rside span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-rscore { display: flex; flex-direction: column; align-items: center; }
.ss-rscore b { font-weight: 900; font-stretch: 75%; font-size: 17px; padding: 1px 10px; border-radius: 5px; background: var(--surf3); font-variant-numeric: tabular-nums; }
.ss-rscore span { font-size: 10px; color: var(--mute); }

/* ---------- coupon (aside) ---------- */
.ss-aside { position: relative; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.ss-grab { display: none; }
.ss-cptabs { flex-shrink: 0; padding: 12px 14px 10px; }
.ss-cptabs > div { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 9px; background: var(--surf2); }
.ss-cptab { height: 36px; border-radius: 7px; color: var(--mute) !important; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.ss-cptab > span:not(.ss-cptab-l) { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--surf3); color: var(--fg); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ss-cptab.on { background: var(--surf) !important; color: var(--fg) !important; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ss-cptab.on > span:not(.ss-cptab-l) { background: var(--acc); color: var(--acc-ink); }
.ss-modes { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; }
.ss-modes > div { display: flex; gap: 2px; padding: 2px; border-radius: 7px; border: 1px solid var(--line); }
.ss-modes > div > button { height: 28px; padding: 0 12px !important; border-radius: 5px; color: var(--mute) !important; font-weight: 700; font-size: 12px; }
.ss-modes > div > button.on { background: var(--fg) !important; color: var(--bg) !important; }
.ss-def { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.ss-def .ss-stepper { width: 108px; height: 30px; grid-template-columns: 28px minmax(0,1fr) 28px; }
.ss-def .ss-stepper input { font-size: 13px; }
.ss-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ss-slip-empty { flex-shrink: 0; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1.5px dashed var(--line); border-radius: 10px; }
.ss-slip-empty b { font-weight: 800; font-size: 14px; }
.ss-slip-empty span { font-size: 12px; color: var(--mute); line-height: 1.5; max-width: 240px; }
.ss-sub { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--mute); margin-top: 6px; }
.ss-pop { flex-shrink: 0; display: grid; grid-template-columns: minmax(0,1fr) 56px; gap: 10px; align-items: center; padding: 9px 10px !important; border-radius: 8px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; text-align: left; }
.ss-pop > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ss-pop b { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-pop small { font-size: 11px; color: var(--mute); }
.ss-track { height: 3px; border-radius: 2px; background: var(--track); overflow: hidden; }
.ss-track > span { display: block; height: 100%; background: var(--acc); }
.ss-pop > span:last-child { height: 34px; border-radius: 6px; background: var(--surf); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-stretch: 82%; font-size: 15px; font-variant-numeric: tabular-nums; }
.ss-pop.sel > span:last-child { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.ss-sel { flex-shrink: 0; display: grid; grid-template-columns: 4px minmax(0,1fr) auto 24px; gap: 10px; align-items: center; padding: 10px 10px 10px 0; border-radius: 8px; background: var(--surf2); border: 1px solid var(--line); overflow: hidden; animation: mgUp .25s both; }
.ss-sel > i { align-self: stretch; background: var(--acc); }
.ss-sel > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-sel > div > small { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-sel > div > b { font-size: 13px; font-weight: 800; }
.ss-sel > strong { font-weight: 900; font-stretch: 80%; font-size: 17px; font-variant-numeric: tabular-nums; }
.ss-x { width: 24px; height: 24px; border-radius: 50%; background: var(--surf3) !important; color: var(--mute) !important; font-size: 14px; line-height: 1; }
.ss-foot { flex-shrink: 0; padding: 12px 14px 14px; border-top: 1px solid var(--dv); display: flex; flex-direction: column; gap: 10px; background: var(--surf); }
.ss-stake { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; }
.ss-stake > span { font-size: 12px; color: var(--mute); font-weight: 600; }
.ss-stepper { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surf2); overflow: hidden; }
.ss-stepper > button { color: var(--fg) !important; font-size: 18px; font-weight: 700; }
.ss-stepper input { min-width: 0; border: none; background: transparent; color: var(--fg); text-align: center; font-weight: 800; font-size: 16px; outline: none; }
.ss-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.ss-quick > button { height: 30px; border-radius: 6px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; font-weight: 700; font-size: 12px; }
.ss-quick > button.on { border-color: var(--fg) !important; background: var(--fg) !important; color: var(--bg) !important; }
.ss-rows { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.ss-rows > div { display: flex; justify-content: space-between; }
.ss-rows > div > span:first-child { color: var(--mute); }
.ss-rows > div > span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.ss-win { display: flex; justify-content: space-between; align-items: baseline; }
.ss-win > span { font-weight: 700; }
.ss-win > b { font-weight: 900; font-stretch: 75%; font-size: 28px; line-height: 1; color: var(--acc-text); font-variant-numeric: tabular-nums; }
.ss-actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; }
.ss-actions > button:first-child { height: 50px; padding: 0 14px !important; border-radius: 8px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; font-weight: 700; font-size: 12px; }
.ss-place { height: 50px; border-radius: 8px; background: var(--acc) !important; color: var(--acc-ink) !important; font-weight: 900; font-stretch: 85%; font-size: 16px; letter-spacing: .02em; transition: transform .1s; }
.ss-place:active { transform: scale(.98); }
.ss-place:disabled { background: var(--surf3) !important; color: var(--mute) !important; opacity: .7; cursor: not-allowed; }

.ss-bet { flex-shrink: 0; padding: 12px; border-radius: 8px; background: var(--surf2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; animation: mgUp .25s both; }
.ss-bet-h { display: flex; align-items: center; gap: 6px; }
.ss-badge { height: 20px; padding: 0 7px; border-radius: 4px; font-size: 10px; font-weight: 800; display: flex; align-items: center; background: var(--surf3); color: var(--fg); }
.ss-badge.won { background: var(--win); color: var(--on-color); }
.ss-badge.lost { background: var(--lose); color: var(--on-color); }
.ss-badge.fb { background: var(--acc-soft); color: var(--acc-text); }
/* The coupon's freebet switch: the operator grant stakes the whole coupon. */
/* Open tickets on the match on screen: up or down at the current score. */
.ss-live-tix { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; margin: 10px 14px 0; padding: 8px; border-radius: 9px; background: var(--surf2); border: 1px solid var(--line); }
.ss-live-tix > small { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--mute); }
.ss-live-tix > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.ss-live-tix > div > span:nth-child(2) { color: var(--mute); font-variant-numeric: tabular-nums; }
.ss-live-tix > div.up { background: rgba(43,211,107,.12); }
.ss-live-tix > div.up > b { color: #2bd36b; }
.ss-live-tix > div.down { background: rgba(255,77,94,.12); }
.ss-live-tix > div.down > b { color: #ff6b78; }
/* Which wallet the coupon is played from: cash or the operator's freebet. */
.ss-wallet { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 14px 10px; padding: 3px; border-radius: 9px; background: var(--surf2); }
.ss-wallet > button { height: 32px; border-radius: 7px; color: var(--mute) !important; font-size: 12px; font-weight: 700; }
.ss-wallet > button > b { margin-left: 4px; font-weight: 800; color: var(--acc-text); font-variant-numeric: tabular-nums; }
.ss-wallet > button.on { background: var(--surf) !important; color: var(--fg) !important; box-shadow: inset 0 0 0 1px var(--line); }
.ss-wallet > button:disabled { opacity: .5; cursor: not-allowed; }
.ss-bet-h small { font-size: 11px; color: var(--mute); font-weight: 600; }
.ss-bet-h small:last-child { margin-left: auto; font-weight: 400; }
.ss-code { color: var(--mute) !important; font-weight: 700; text-decoration: underline dotted; }
.ss-leg { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.ss-leg > i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); margin-top: 5px; flex-shrink: 0; }
.ss-leg > i.won { background: var(--win); } .ss-leg > i.lost { background: var(--lose); }
.ss-leg > span { display: flex; flex-direction: column; min-width: 0; }
.ss-leg b { font-weight: 700; }
.ss-leg small { color: var(--mute); font-size: 12px; }
.ss-bet-f { display: flex; gap: 10px; padding-top: 7px; border-top: 1px solid var(--dv); font-size: 12px; font-variant-numeric: tabular-nums; }
.ss-bet-f > span:first-child { color: var(--mute); }
.ss-bet-f > span:last-child { margin-left: auto; font-weight: 800; color: var(--mute); }
.ss-bet-f > span.won { color: var(--win); } .ss-bet-f > span.lost { color: var(--lose); }
.ss-bet-f > .ss-bet-fb { margin-left: auto; height: 18px; }
.ss-bet-f > .ss-bet-fb + span:last-child { margin-left: 0; }
/* Cancel an open coupon: its own row under the totals, shown only while betting is open on every match on it. */
.ss-bet-cancel { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 7px; }
.ss-bet-cancel small { margin-right: auto; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ss-bet-cancel button { height: 28px; padding: 0 12px !important; border-radius: 7px; border: 1px solid var(--lose) !important; background: transparent !important; color: var(--lose) !important; font-weight: 700; font-size: 12px; }
.ss-bet-cancel button:hover { background: var(--live-soft) !important; }
/* The confirmation, on <body> (outside .ss-app, so it sets its own font). */
.ss-confirm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); font-family: 'Archivo', sans-serif; font-size: 13px; line-height: 1.4; color: var(--fg); animation: mgFade .15s both; }
.ss-confirm-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.ss-confirm-card strong { font-size: 16px; font-weight: 800; }
.ss-confirm-card p { margin: 0; color: var(--mute); }
.ss-confirm-card p:first-of-type { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-confirm-card small { color: var(--warn); font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-confirm-card > div { display: flex; gap: 8px; margin-top: 6px; }
.ss-confirm-card button { flex: 1; height: 38px; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.ss-confirm-card button:disabled { opacity: .6; cursor: default; }
.ss-confirm-card .ss-ghost { height: 38px; font-size: 13px; }
.ss-confirm-card .ss-danger { border: 1px solid var(--lose); background: var(--lose); color: #fff; }
.ss-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.ss-pager > button { height: 30px; padding: 0 12px !important; border-radius: 6px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; font-size: 12px; font-weight: 700; }
.ss-pager > button:disabled { opacity: .4; cursor: default; }

/* ---------- detail drawer ---------- */
.ss-scrim { position: absolute; top: 0; left: 0; bottom: 0; right: calc(var(--slip) + 26px); z-index: 70; background: var(--overlay); animation: mgFade .2s both; }
.ss-drawer { position: absolute; top: 76px; bottom: 14px; right: calc(var(--slip) + 26px); width: 480px; max-width: 100%; z-index: 71; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: mgSlide .28s cubic-bezier(.2,.8,.2,1) both; }
.ss-dhead { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--dv); }
.ss-dhead > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--mute); white-space: nowrap; }
.ss-dhead > span.cd { color: var(--fg); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ss-dhead > span.cd.hot { color: var(--live); }
.ss-nav { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--fg) !important; }
.ss-close { width: 32px; height: 32px; border-radius: 50%; background: var(--surf3) !important; color: var(--fg) !important; font-size: 16px; }
.ss-dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 16px; }
.ss-vs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: 10px; }
.ss-vs > div { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; min-width: 0; }
.ss-vs > div > b { font-weight: 800; font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-vs > span { margin-top: 14px; font-weight: 900; font-stretch: 72%; font-size: 20px; color: var(--mute); }
.ss-prob { display: flex; flex-direction: column; gap: 6px; }
.ss-prob > div:first-child { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--mute); }
.ss-prob-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; gap: 2px; }
.ss-prob-bar > div { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; transition: width .5s; color: var(--on-color); }
.ss-prob-bar > div.h { background: var(--home); color: var(--acc-ink); }
.ss-prob-bar > div.d { background: var(--draw); }
.ss-prob-bar > div.a { background: var(--away); }
.ss-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.ss-cats > button { height: 30px; padding: 0 12px !important; border-radius: 999px; border: 1px solid var(--line) !important; background: var(--surf) !important; color: var(--fg) !important; font-weight: 700; font-size: 12px; }
.ss-cats > button.on { border-color: var(--fg) !important; background: var(--fg) !important; color: var(--bg) !important; }
.ss-group { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surf2); }
.ss-group > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ss-group > div:first-child b { font-weight: 800; font-size: 13px; }
.ss-group > div:first-child span { font-size: 11px; color: var(--mute); white-space: nowrap; }
.ss-ggrid { display: grid; gap: 6px; }
.ss-ggrid .ss-odd { background: var(--surf) !important; }
.ss-ggrid .ss-odd.sel { background: var(--acc) !important; }
.ss-reveal { height: 32px; border-radius: 7px; border: 1px dashed var(--line) !important; color: var(--mute) !important; font-weight: 700; font-size: 12px; }

/* ---------- toasts, celebration ---------- */
.ss-toast { min-width: 240px; max-width: 340px; padding: 11px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); box-shadow: 0 12px 32px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 2px; font-family: 'Archivo', sans-serif; animation: mgUp .3s both; }
.ss-toast b { font-size: 13px; font-weight: 800; }
.ss-toast span { font-size: 12px; opacity: .85; }
.ss-toast.lose { background: var(--surf); color: var(--fg); border-color: var(--lose); animation: mgShake .5s both; }
[data-sonner-toast].ss-sonner-error { background: var(--surf) !important; color: var(--fg) !important; border-color: var(--lose) !important; }
/* Sonner colours the reason by the OS theme, not ours; it follows the toast instead. */
[data-sonner-toast] [data-description] { color: inherit !important; opacity: .8; }
.ss-cel { position: absolute; inset: 0; z-index: 95; display: grid; place-items: center; background: var(--overlay); animation: mgFade .25s both; }
.ss-coins { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ss-coins > span { position: absolute; left: 0; top: 0; border-radius: 50%; animation: mgCoin 1.2s cubic-bezier(.2,.7,.3,1) both; }
.ss-cel-card { position: relative; text-align: center; padding: 26px 36px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: mgPop .55s cubic-bezier(.2,.9,.3,1.3) both; min-width: 280px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ss-cel-card > small { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--mute); }
.ss-cel-card > strong { font-weight: 900; font-stretch: 70%; font-size: 50px; line-height: 1; }
.ss-cel-card > b { font-weight: 900; font-stretch: 75%; font-size: 34px; color: var(--win); font-variant-numeric: tabular-nums; }
.ss-cel-card > span { font-size: 12px; color: var(--mute); }
.ss-cel-card > button { margin-top: 10px; height: 44px; padding: 0 28px !important; border-radius: 8px; background: var(--acc) !important; color: var(--acc-ink) !important; font-weight: 800; }

/* ---------- account page ---------- */
.ss-page { flex: 1; min-height: 0; overflow-y: auto; padding: 32px 14px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--surf3) transparent; }
.ss-page h1 { margin: 0 0 4px; font-weight: 900; font-stretch: 72%; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.ss-panel { width: 100%; max-width: 420px; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; animation: mgUp .3s both; }
.ss-panel.wide { max-width: 600px; }
.ss-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ss-panel-h b { font-weight: 800; font-size: 14px; }
.ss-seg.full { display: grid; grid-template-columns: 1fr 1fr; background: var(--surf2); }
.ss-seg.full > button { height: 36px; color: var(--mute) !important; font-weight: 800; font-size: 13px; }
.ss-seg.full > button.on { background: var(--surf) !important; color: var(--fg) !important; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ss-form { display: flex; flex-direction: column; gap: 10px; }
.ss-input { width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surf2); color: var(--fg); font-size: 14px; font-weight: 600; outline: none; transition: border-color .15s; }
.ss-input::placeholder { color: var(--mute); font-weight: 500; }
.ss-input:focus { border-color: var(--acc); }
.ss-primary { height: 48px; border-radius: 8px; background: var(--acc) !important; color: var(--acc-ink) !important; font-weight: 900; font-stretch: 85%; font-size: 16px; letter-spacing: .02em; }
.ss-primary:disabled { background: var(--surf3) !important; color: var(--mute) !important; cursor: not-allowed; }
.ss-ghost { height: 32px; padding: 0 12px !important; border-radius: 7px; border: 1px solid var(--line) !important; background: var(--surf2) !important; color: var(--mute) !important; font-weight: 700; font-size: 12px; }
.ss-bigbal { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ss-bigbal small { display: block; font-size: 10px; color: var(--mute); font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.ss-bigbal strong { font-weight: 900; font-stretch: 75%; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.ss-bigbal span { font-size: 12px; font-weight: 800; color: var(--acc-text); }
/* Hesabım's level view and notification list. */
.ss-lvl { display: flex; align-items: center; gap: 16px; }
.ss-level-ring.big { width: 72px; height: 72px; flex-shrink: 0; }
.ss-level-ring.big > span { width: 58px; height: 58px; font-size: 26px; }
.ss-lvl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-lvl-info > b { font-weight: 900; font-stretch: 78%; font-size: 20px; }
.ss-lvl-info > .ss-track { height: 6px; border-radius: 3px; }
.ss-lvl-info > span { font-size: 12px; font-weight: 700; color: var(--acc-text); }
.ss-lvl-info > small { font-size: 11px; color: var(--mute); font-weight: 600; }
.ss-xp-rules { display: flex; flex-direction: column; gap: 4px; }
.ss-xp-rules > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--surf2); font-size: 12px; }
.ss-xp-rules > div > b { font-weight: 800; }
.ss-xp-rules > div > span { color: var(--mute); font-weight: 600; text-align: right; }
.ss-notes-list { display: flex; flex-direction: column; gap: 6px; }
.ss-row { display: flex; gap: 8px; }
.ss-row .ss-input { flex: 1; }
.ss-row .ss-primary { height: 44px; padding: 0 20px !important; font-size: 14px; }
.ss-panel .ss-scroll { padding: 0; overflow: visible; }

/* ---------- phone nav ---------- */
.ss-mnav { display: none; }
.ss-bar { display: none; }
.ss-sheet-scrim { display: none; }

/* ---------- breakpoints (design: tab < 1180, mob < 820) ---------- */
@media (max-width: 1179px) {
  .ss-level-text { display: none; }
  .ss-hint { display: none; }
  .ss-app { --slip: 300px; }
  .ss-feed { display: none; }
  .ss-top { display: block; }
  .ss-bhead, .ss-brow { grid-template-columns: minmax(0,1fr) minmax(0,250px) 48px; gap: 10px; }
  .ss-drawer { width: 420px; top: 120px; }
}
/* A phone's header holds the mark, rank, balance, chat, bell and menu: the wordmark does not fit beside them. */
@media (max-width: 480px) {
  .ss-brand-name { display: none; }
  /* Anchored to its button the panel hangs off the left edge; span the screen under the header instead. */
  .ss-chat-panel { position: fixed; top: 60px; left: 10px; right: 10px; width: auto; height: min(520px, calc(100dvh - 140px)); }
}
@media (max-width: 819px) {
  .ss-header { height: 54px; padding: 0 12px; gap: 8px; }
  .ss-wide-only { display: none; }
  .ss-hmenu { display: block; }
  .ss-brand { gap: 8px; }
  .ss-brand-logo { width: 25px; height: 34px; }
  .ss-brand-name { gap: 3px; }
  .ss-brand-name > span { font-size: 9.5px; }
  .ss-brand-name > b { font-size: 18px; }
  .ss-balance span { font-size: 15px; }
  .ss-body { grid-template-columns: minmax(0,1fr); padding: 10px; gap: 10px; }
  .ss-main { padding-bottom: 80px; }
  .ss-tabs { display: none; }
  .ss-bhead { display: none; }
  .ss-brow { grid-template-columns: minmax(0,1fr) 48px; gap: 8px 10px; padding: 10px 12px; }
  .ss-brow > .ss-odds { grid-column: 1 / -1; order: 3; }
  .ss-aside { position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: 60; border-radius: 16px 16px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.35); transform: translateY(105%); }
  .ss-aside.open { transform: translateY(0); }
  .ss-grab { display: grid; place-items: center; flex-shrink: 0; padding: 10px 0 0 !important; }
  .ss-grab > span { width: 44px; height: 5px; border-radius: 3px; background: var(--surf3); }
  .ss-sheet-scrim { display: block; position: absolute; inset: 0; z-index: 50; background: var(--overlay); animation: mgFade .25s both; }
  .ss-mnav { flex-shrink: 0; display: grid; grid-template-columns: repeat(3,1fr); height: 60px; border-top: 1px solid var(--line); background: var(--surf); }
  .ss-mnav > button { color: var(--mute) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 800; font-size: 12px; }
  .ss-mnav > button.on { color: var(--fg) !important; box-shadow: inset 0 3px 0 var(--acc); }
  .ss-mnav > button > span { font-size: 10px; font-weight: 700; color: var(--mute); min-height: 12px; font-variant-numeric: tabular-nums; }
  .ss-mnav > button > span.cd { color: var(--acc-text); } .ss-mnav > button > span.cd.hot { color: var(--live); }
  .ss-bar { position: absolute; left: 10px; right: 10px; bottom: 70px; z-index: 30; height: 58px; border-radius: 12px; background: var(--acc) !important; color: var(--acc-ink) !important; display: flex; align-items: center; gap: 12px; padding: 0 16px !important; box-shadow: 0 12px 30px rgba(0,0,0,.3); animation: mgUp .3s both; text-align: left; }
  .ss-bar > span:first-child { width: 30px; height: 30px; border-radius: 50%; background: var(--acc-ink); color: var(--acc); display: grid; place-items: center; font-weight: 800; }
  .ss-bar > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
  .ss-bar > span:nth-child(2) small { font-size: 11px; font-weight: 600; }
  .ss-bar > span:nth-child(2) b { font-weight: 900; font-stretch: 78%; font-size: 18px; }
  .ss-bar > span:last-child { margin-left: auto; font-weight: 800; }
  .ss-scrim { right: 0; }
  .ss-drawer { top: 0; bottom: 0; right: 0; width: 100%; border-radius: 0; }
}

/* ---------- full screen ("theatre", see the page): the match covers the screen, two buttons open the match list or the slip ---------- */
.ss-tbtns { display: none; }
.ss-app.theatre { position: fixed; inset: 0; z-index: 1000; height: auto; background: #000; container-type: size; }
/* A phone held upright with no turn lock (iPhone): the page is turned a quarter, so it fills the screen on its side. */
@media (orientation: portrait) and (pointer: coarse) {
  .ss-app.theatre { inset: 50% auto auto 50%; width: 100dvh; height: 100vw; transform: translate(-50%, -50%) rotate(90deg); }
}
.ss-app.theatre :is(.ss-header, .ss-mnav, .ss-bar, .ss-sheet-scrim, .ss-grab, .ss-hint, .ss-feed) { display: none; }
/* The body box lies over the stream, which sits under it (z-index -1): taps go through it to the player's controls. */
.ss-app.theatre .ss-body { display: block; padding: 0; pointer-events: none; }
.ss-app.theatre :is(.ss-main, .ss-aside) { pointer-events: auto; }
.ss-app.theatre .ss-stream { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; visibility: visible; border: 0; border-radius: 0; background: #000; }
.ss-app.theatre .ss-stream .Match-video { width: min(100cqw, calc(100cqh * 16 / 9)); }
.ss-app.theatre :is(.ss-main, .ss-aside) { position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 55cqw); height: auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--bg); transform: none; visibility: hidden; }
.ss-app.theatre .ss-main { padding: 10px; }
/* The drawer is phone-narrow at any screen width: the phone's rows, and the tabs, since the bottom bar is hidden. */
.ss-app.theatre .ss-tabs { display: flex; }
.ss-app.theatre .ss-bhead { display: none; }
.ss-app.theatre .ss-brow { grid-template-columns: minmax(0,1fr) 48px; gap: 8px 10px; padding: 10px 12px; }
.ss-app.theatre .ss-brow > .ss-odds { grid-column: 1 / -1; order: 3; }
.ss-app.theatre.drawer-matches .ss-main, .ss-app.theatre.drawer-slip .ss-aside { visibility: visible; }
.ss-app.theatre .ss-scrim { right: 0; }
.ss-app.theatre .ss-drawer { top: 0; bottom: 0; right: 0; width: min(420px, 60cqw); border-radius: 0; }
.ss-app.theatre .ss-tbtns { position: absolute; z-index: 5; top: 12px; right: 12px; display: flex; gap: 8px; }
.ss-tbtns > button { position: relative; height: 40px; padding: 0 14px; border-radius: 10px; background: rgba(6,12,9,.82); color: #fff; font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ss-tbtns > button.on { background: var(--acc); color: var(--acc-ink); }
.ss-tbtns > button > b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-size: 11px; line-height: 18px; }
.ss-tbtns > button.on > b { background: var(--acc-ink); color: var(--acc); }

/* ======================================================================
   Stream overlay. Sized against the stage (container-type: inline-size), so
   the board reads the same on a phone and a desktop; the design's px values
   are the clamp ends (mob .. base).
   ====================================================================== */
.ss-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; container-type: inline-size; color: #fff; font-family: 'Archivo', sans-serif; }
.ss-overlay * { box-sizing: border-box; }
.ss-ocrest { border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: rgba(255,255,255,.12); font-weight: 800; color: #fff; }
.ss-ocrest img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* The design's "Dikey B" board, its px read at a 1000px stage. It grows with the picture (max(), not clamp()); the px are a phone's floor. */
.ss-sb { position: absolute; top: max(8px, 1.2cqw); left: max(8px, 1.2cqw); width: max(120px, 20.5cqw); display: grid; grid-template-columns: max(22px, 3.6cqw) minmax(0,1fr); border-radius: max(6px, .6cqw); overflow: hidden; background: rgba(6,12,9,.82); box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08); animation: mgFade .3s both; }
.ss-sb-min { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: max(3px, .4cqw); background: rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.08); transition: background .3s; }
.ss-sb-min.dg { background: rgba(255,77,94,.24); }
.ss-sb-min > i { width: 5px; height: 5px; border-radius: 50%; background: #ff4d5e; animation: mgBlink 1s infinite; }
.ss-sb-min > b { font-weight: 800; font-stretch: 75%; font-size: max(11px, 1.8cqw); line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s; }
.ss-sb-min.dg > b { color: #ff6b78; }
.ss-sb-min > small { font-size: max(7px, .8cqw); font-weight: 800; opacity: .55; line-height: 1; }
.ss-sb > div { display: flex; flex-direction: column; min-width: 0; }
.ss-sb .row { display: grid; grid-template-columns: 2px auto minmax(0,1fr) auto max(16px, 2.6cqw); align-items: center; height: max(15px, 2.6cqw); transition: background .3s, color .3s; }
.ss-sb .row > i { align-self: stretch; }
.ss-sb .row > .ss-ocrest { width: max(10px, 1.6cqw); height: max(10px, 1.6cqw); margin: 0 max(6px, .7cqw) 0 max(6px, .8cqw); font-size: max(5px, .5cqw); }
.ss-sb .row > b { font-weight: 600; font-size: max(8px, 1.2cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-sb .row.on > b { font-weight: 800; }
.ss-sb .row > em { padding: 0 max(4px, .5cqw); font-style: normal; font-weight: 900; font-size: max(8px, 1.1cqw); animation: mgChevR 1s infinite; }
.ss-sb .row > strong { align-self: stretch; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; font-stretch: 75%; font-size: max(9px, 1.5cqw); font-variant-numeric: tabular-nums; transition: background .3s; }
/* A narrow stage names a team by its short code. */
.ss-sb .row > b > .code { display: none; }
@container (max-width: 700px) {
  .ss-sb .row > b > .full { display: none; }
  .ss-sb .row > b > .code { display: inline; }
}
/* A phone shows the board smaller, and 20% larger in full screen. */
@media (pointer: coarse) {
  .ss-sb { transform: scale(.8); transform-origin: top left; }
  .ss-app.theatre .ss-sb { transform: scale(.96); }
}

/* Clip cut: chevron transition and the goal score sting (cut-anim.tsx). */
.ss-trans { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

/* Between matches: the design's "SIRADAKİ MAÇLAR" interstitial. */
.ss-break { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; padding: 8.5cqw 4cqw 8cqw; background: radial-gradient(ellipse at 50% 28%, rgba(18,44,30,.97), rgba(4,9,6,.99) 72%); animation: mgFade .45s both; }
.ss-break > h2 { margin: 0; font-weight: 900; font-stretch: 70%; font-size: 3.4cqw; line-height: 1; letter-spacing: .02em; color: #fff; }
.ss-break-res { display: flex; flex-direction: column; align-items: center; gap: max(3px, .5cqw); width: 100%; }
.ss-break-res > small { font-size: max(9px, 1.1cqw); font-weight: 800; letter-spacing: .22em; color: rgba(255,255,255,.55); }
/* Equal side columns, so the SCORE sits on the screen's centre line whatever
   the names' lengths; the names run outward from it. */
.ss-break-res > div { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: max(6px, 1.1cqw); width: 100%; font-weight: 800; font-size: max(12px, 2.1cqw); color: #2bd36b; white-space: nowrap; }
.ss-break-res .side { display: flex; align-items: center; gap: max(6px, 1.1cqw); min-width: 0; }
.ss-break-res .side.h { justify-content: flex-end; }
.ss-break-res .side > span { overflow: hidden; text-overflow: ellipsis; }
.ss-break-res .ss-ocrest { width: max(16px, 2.8cqw); height: max(16px, 2.8cqw); font-size: max(6px, .9cqw); }
.ss-break-res b { padding: max(2px, .3cqw) max(6px, .9cqw); border-radius: max(4px, .6cqw); background: rgba(255,255,255,.1); color: #fff; font-weight: 900; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.ss-break-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: max(4px, .8cqw) max(6px, 1.2cqw); width: 78cqw; }
.ss-break-row { display: grid; grid-template-columns: auto minmax(max-content,1fr) auto minmax(max-content,1fr) auto; align-items: center; gap: max(5px, .7cqw); height: 4.4cqw; padding: 0 max(8px, 1.2cqw); border-radius: max(5px, .8cqw); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); animation: mgUp .4s both; }
.ss-break-row .ss-ocrest { width: max(16px, 2.6cqw); height: max(16px, 2.6cqw); font-size: max(6px, .9cqw); }
.ss-break-row > b { font-weight: 700; font-size: max(9px, 1.2cqw); line-height: 1.1; white-space: nowrap; }
.ss-break-row > b:nth-of-type(1) { text-align: right; }
.ss-break-row > i { font-style: normal; padding: max(2px, .25cqw) max(5px, .7cqw); border-radius: max(3px, .4cqw); background: #2bd36b; color: #03140a; font-size: max(8px, 1cqw); font-weight: 900; letter-spacing: .04em; }
.ss-break-cd { display: flex; align-items: center; gap: max(6px, 1cqw); font-size: max(10px, 1.5cqw); font-weight: 700; white-space: nowrap; color: #fff; }
.ss-break-cd > .ring { width: max(20px, 2.8cqw); height: max(20px, 2.8cqw); border-radius: 50%; display: grid; place-items: center; }
.ss-break-cd > .ring > span { width: 76%; height: 76%; border-radius: 50%; background: #07120c; display: grid; place-items: center; font-size: .8em; font-weight: 900; font-variant-numeric: tabular-nums; }
.ss-break-cd b { color: #2bd36b; font-variant-numeric: tabular-nums; }
.ss-break-cd .sep { opacity: .35; }
.ss-break-cd .closed { color: #ff7a84; }
.ss-break-cd .open { color: #f5c542; }
@container (max-width: 560px) {
  .ss-break { padding: 34px 10px 30px; gap: 6px; }
  .ss-break > h2 { display: none; }
  .ss-break-list { grid-template-columns: minmax(0,1fr); width: 100%; }
  .ss-break-row { height: 22px; }
  .ss-break-row:nth-child(n+4) { display: none; }
}
