/* ===== Golavio polish v2: one consistent look across pages ===== */
:root{--gv-card:#111f27;--gv-card-2:#152733;--gv-line:#2a4350;--gv-text:#eef5f2;--gv-muted:#8ea6b1;--gv-green:#abe96b;--gv-radius:14px}

/* Consistent buttons */
.primary,.secondary,button.primary,button.secondary{border-radius:10px!important;font-weight:700}
.primary{background:var(--gv-green)!important;color:#0f1d12!important;border-color:transparent!important}

/* Segmented tabs (Standings: Competitions | My games) */
.gv-seg{display:grid!important;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 16px;border:1px solid var(--gv-line);border-radius:12px;background:#0d1920}
.gv-seg button{min-height:42px;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--gv-muted)!important;font-weight:800;font-size:14px;box-shadow:none!important;padding:0 10px!important}
.gv-seg button[aria-pressed="true"]{background:var(--gv-green)!important;color:#0f1d12!important}
.gv-seg button>span,.gv-seg button>small,.gv-seg button>strong+small{display:none}
.standings-game-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:12px;border:1px solid var(--gv-line);border-radius:12px;background:var(--gv-card)}
.standings-game-link>span{flex:1 1 100%;font-size:12px;color:var(--gv-muted)}

/* ===== Competition centre: fewer controls, readable table ===== */
#competition-dialog .competition-heading small{display:none}
#competition-dialog .competition-heading h2{display:flex;align-items:center;gap:10px;margin:0;font-size:20px}
#competition-dialog .competition-heading h2 img{width:28px;height:20px;border-radius:3px;object-fit:cover}
#competition-dialog .competition-controls>label:first-child,
#competition-dialog [data-competition-refresh],
#competition-dialog .competition-note,
#competition-dialog .competition-body>.competition-note,
#competition-dialog .competition-day-filter,
#competition-dialog .rankings-navigation [data-ranking-kind]:not([data-ranking-kind="teams"]):not([data-ranking-kind="goals"]):not([data-ranking-kind="assists"]){display:none!important}
#competition-dialog .competition-controls{display:flex!important;justify-content:flex-end;margin:6px 0 10px!important;gap:8px}
#competition-dialog .competition-controls>label{display:flex!important;align-items:center;gap:8px;font-size:12px;color:var(--gv-muted)}
#competition-dialog .competition-controls select{min-height:38px;padding:0 28px 0 10px;font-size:13px}
#competition-dialog .competition-tabs{display:flex!important;gap:4px;padding:4px;margin:0 0 12px!important;border:1px solid var(--gv-line);border-radius:12px;background:#0d1920;overflow-x:auto;scrollbar-width:none}
#competition-dialog .competition-tabs button{flex:1 0 auto;min-height:40px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--gv-muted)!important;font-weight:800;font-size:13px;box-shadow:none!important;white-space:nowrap;padding:0 12px!important}
#competition-dialog .competition-tabs button[aria-pressed="true"]{background:var(--gv-green)!important;color:#0f1d12!important}
#competition-dialog .rankings-navigation{display:flex!important;gap:6px;margin:0 0 12px!important;flex-wrap:nowrap!important;overflow-x:auto}
#competition-dialog .rankings-navigation button{min-height:34px!important;padding:0 14px!important;border-radius:20px!important;font-size:13px;white-space:nowrap}
#competition-dialog .rankings-navigation button[aria-pressed="true"]{background:#22402c!important;border-color:#6aa24a!important;color:#d9f7c4!important}
#competition-dialog .competition-body h3{font-size:14px;color:var(--gv-muted);margin:4px 0 10px}

/* Standings table: compact rows that fit a phone */
#competition-dialog .competition-table-scroll{overflow-x:auto;border-radius:12px}
#competition-dialog .competition-table-scroll table{width:100%!important;min-width:0!important;border-collapse:collapse;font-size:13px}
#competition-dialog .competition-table-scroll th,#competition-dialog .competition-table-scroll td{padding:8px 6px!important;height:auto!important;line-height:1.25}
#competition-dialog .competition-table-scroll tbody th>span{display:flex!important;align-items:center;gap:8px;min-width:0}
#competition-dialog .competition-table-scroll tbody th img{width:20px!important;height:20px!important;object-fit:contain;flex:none}
#competition-dialog .competition-club-button{min-height:0!important;padding:0!important;border:0!important;background:none!important;text-decoration:none!important;color:var(--gv-text)!important;font-weight:700;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;font-size:13px}
#competition-dialog .table-points{font-weight:800;color:var(--gv-green)!important}

/* Matches tab inside a competition */
#competition-dialog .competition-day-controls{display:flex!important;flex-wrap:wrap;gap:6px;align-items:center}
#competition-dialog .competition-day-controls button{min-height:38px}
#competition-dialog .competition-schedule-heading h3{font-size:16px;margin:0 0 8px}

@media (max-width:600px){
  #competition-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:14px 12px 24px!important;border-radius:0!important;border:0!important}
  /* Phone table: # · Team · P · GD · Pts */
  #competition-dialog .competition-table-scroll table:not(.player-ranking-table) thead th:nth-child(4),
  #competition-dialog .competition-table-scroll table:not(.player-ranking-table) thead th:nth-child(5),
  #competition-dialog .competition-table-scroll table:not(.player-ranking-table) thead th:nth-child(6),
  #competition-dialog .competition-table-scroll table:not(.player-ranking-table) tbody td:nth-of-type(3),
  #competition-dialog .competition-table-scroll table:not(.player-ranking-table) tbody td:nth-of-type(4),
  #competition-dialog .competition-table-scroll table:not(.player-ranking-table) tbody td:nth-of-type(5){display:none}
  #competition-dialog .competition-club-button{max-width:140px}
  #competition-dialog .qualification-legend{font-size:11px;flex-wrap:wrap;gap:8px}
}
.gv-seg button{display:flex!important;align-items:center;justify-content:center;text-align:center;height:42px!important;line-height:1!important;margin:0!important}
.gv-friends-link{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--gv-line);border-radius:12px;background:var(--gv-card)}
.gv-friends-link>div{flex:1;display:grid;gap:3px;min-width:0}
.gv-friends-link small{font-size:12px;color:var(--gv-muted);line-height:1.5}
.gv-friends-link button{flex:none;min-height:40px}
/* Favorites: teams first, no Matches-page shortcuts */
body[data-gv-page="favorites"] #simple-match-links,
body[data-gv-page="favorites"] #live-source-bar,
body[data-gv-page="favorites"] #main-content>.footnote{display:none!important}
body[data-gv-page="favorites"] #favorite-team-panel{margin-bottom:14px}

/* ===== Matches: one clear date bar ===== */
#main-content>.section-top{display:grid!important;gap:10px;margin:6px 0 8px!important}
#main-content>.section-top .date{display:block!important;width:100%}
.fixture-date-controls{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;width:100%}
.fixture-date-controls [data-date-shift]{width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:12px!important;border:1px solid var(--gv-line)!important;background:var(--gv-card-2)!important;color:var(--gv-text)!important;font:800 26px/1 Arial,sans-serif!important;display:grid;place-items:center}
.fixture-date-controls [data-date-shift]:hover{border-color:var(--gv-green)!important;color:var(--gv-green)!important}
.fixture-date-controls label{display:block!important;margin:0!important;min-width:0}
.fixture-date-controls label>span{display:none!important}
.fixture-date-controls input[type=date]{width:100%!important;height:48px!important;min-height:48px;padding:0 12px!important;border-radius:12px!important;border:1px solid var(--gv-line)!important;background:#0d1920!important;color:var(--gv-text)!important;font:700 16px Arial,sans-serif!important;text-align:center;color-scheme:dark}
.fixture-date-controls [data-fixtures-today]{height:48px!important;min-height:48px!important;padding:0 14px!important;border-radius:12px!important;font-weight:800;white-space:nowrap}
html[dir=rtl] .fixture-date-controls [data-date-shift]{transform:scaleX(-1)}
html[dir=rtl] .fixture-date-controls [data-date-shift]>*{transform:scaleX(-1)}
/* Day strip: no stray scrollbar line */
#fixture-days{scrollbar-width:none;padding-bottom:2px!important}
#fixture-days::-webkit-scrollbar{display:none}
#fixture-days button{min-height:58px!important}

/* ===== Competition centre: choose another competition instead of a season ===== */
#competition-dialog .competition-controls>label:first-child{display:flex!important;flex:1;min-width:0}
#competition-dialog .competition-controls>label:first-child select{flex:1;min-width:0;width:100%}
#competition-dialog .competition-controls>label:nth-child(2){display:none!important}
#competition-dialog .competition-controls>label>*:not(select){display:none}
#competition-dialog .competition-controls{justify-content:stretch!important}
#competition-dialog .competition-controls>label:first-child{font-size:0!important;gap:0!important}
#competition-dialog .competition-controls>label:first-child select{font-size:14px!important;min-height:42px;font-weight:700}
/* Date bar uses the full width */
#main-content>.section-top{grid-template-columns:1fr!important;width:100%}
#main-content>.section-top .date{width:100%!important;max-width:none!important;justify-self:stretch!important;flex:1 1 100%!important}
.fixture-date-controls{width:100%!important;max-width:none!important}

/* Competition › Matches: same date bar as the home page */
#competition-dialog .competition-day-filters{display:none!important}
#competition-dialog .competition-day-controls{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:center}
#competition-dialog .competition-day-controls [data-competition-day]{display:none!important}
#competition-dialog .competition-day-controls [data-competition-day-shift]{width:48px;height:48px;min-height:48px!important;padding:0!important;border-radius:12px!important;font:800 22px/1 Arial,sans-serif!important}
#competition-dialog .competition-day-controls [data-competition-day-shift="-1"]{grid-column:1;grid-row:1}
#competition-dialog .competition-day-controls label{grid-column:2;grid-row:1;font-size:0!important;margin:0!important;display:block!important}
#competition-dialog .competition-day-controls [data-competition-day-shift="1"]{grid-column:3;grid-row:1}
#competition-dialog .competition-day-controls input[type=date]{width:100%;height:48px;font:700 16px Arial,sans-serif;text-align:center;border-radius:12px;color-scheme:dark}
html[dir=rtl] #competition-dialog [data-competition-day-shift]{transform:scaleX(-1)}

/* ===== Room page ===== */
.room-cover{padding:18px!important;border-radius:16px!important}
.room-cover h2{font-size:clamp(22px,6vw,28px)!important;line-height:1.2!important;margin:10px 0 2px!important;overflow-wrap:normal!important}
.gv-room-date{margin:2px 0 8px;font-size:14px;font-weight:700;color:var(--gv-muted)}
.room-cover-top{display:flex;flex-wrap:wrap;gap:6px}
.room-cover-cup{display:none!important}
.room-cover-actions{display:flex!important;gap:8px;margin-top:12px!important}
.room-cover-actions [data-room-refresh]{min-height:40px!important;padding:0 14px!important;font-size:13px!important;width:auto!important;flex:0 0 auto}
/* Invite card: code + two clear buttons */
.room-invite-card{padding:16px!important;gap:12px!important;border-radius:16px!important}
.room-invite-card>label{display:none!important}
.room-invite-card code{font-size:clamp(22px,7vw,28px)!important;letter-spacing:3px!important}
.room-invite-card [data-copy-room-code]{min-height:40px!important;padding:0 14px!important;margin-inline-start:auto}
.room-share-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%}
.room-share-actions>*{min-height:48px!important;flex:none!important;width:100%!important;font-size:14px!important;padding:0 10px!important}
.room-share-actions .room-share-native{grid-column:1/-1}
/* Steps at the end */
.gv-room-howto{margin-top:24px;padding-top:16px;border-top:1px solid var(--gv-line)}
.gv-room-howto>h3{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--gv-muted)}
.gv-room-howto .friends-stage-track{margin:0!important}
/* Date bar only where the page shows it (not inside rooms) */
#main-content>.section-top .date[hidden],.fixture-date-controls[hidden]{display:none!important}
body:not([data-gv-page="matches"]):not([data-gv-page="favorites"]) #main-content>.section-top .date{display:none!important}
/* Invite card: code and "Copy code" on one line */
.room-invite-card>div:not(.room-share-actions){display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:10px}
.room-invite-card>div:not(.room-share-actions)>span{flex:none}
.room-invite-card [data-copy-room-code]{flex:none;margin-inline-start:auto!important}
/* ===== Pro pass: clean rows, nothing overlaps (Flashscore-style on phones) ===== */
.fixture-date-controls label{min-width:0;display:block!important}
.fixture-date-controls input[type=date]{width:100%!important;min-width:0!important;max-width:none!important;text-align:center;padding-inline:8px!important;box-sizing:border-box}
/* Status tabs: four equal tabs, label over count */
.tabs:has(>[data-filter]){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important;overflow:visible!important}
.tabs:has(>[data-filter])>button{min-width:0!important;flex-direction:column!important;gap:3px!important;min-height:50px!important;height:auto!important;padding:6px 2px!important;line-height:1.1;justify-content:center;white-space:nowrap;font-size:13px!important}
.tabs:has(>[data-filter])>button>span{overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}
.tabs:has(>[data-filter])>button>b{flex:none;font-size:11px!important;min-width:20px;padding:1px 6px!important;line-height:14px}
.fixture-days button,.fixture-day-strip button{min-width:74px!important}
/* Competition header: full name (2 lines max), compact count badge, initials when no logo */
#matches .league-title strong{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25!important;font-size:14.5px!important}
#matches .league-count.gv-count{min-width:26px;height:22px;padding:0 7px;border-radius:11px;display:inline-grid!important;place-items:center;font-size:12px!important;font-weight:700;opacity:1!important;background:rgba(255,255,255,.07);color:#cfe0e6}
#matches .league-emblem.gv-initials{font-size:11px!important;font-weight:800;letter-spacing:.3px;line-height:1!important;text-align:center;overflow:hidden}
@media (max-width:600px){
  /* Match row: time/status · teams stacked · score stacked · star */
  .match[data-match-row]{position:relative!important;display:grid!important;grid-template-columns:56px minmax(0,1fr) auto 34px!important;grid-template-rows:auto auto!important;grid-template-areas:"st home sc fav" "st away sc fav"!important;align-items:center!important;column-gap:8px!important;row-gap:4px!important;padding:10px 6px 10px 12px!important;min-height:0!important}
  .match[data-match-row]>.favorite{grid-area:fav!important;justify-self:center;width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;position:static!important}
  .match[data-match-row]>.match-status{grid-area:st!important;justify-self:start;font-size:11.5px!important;line-height:1.2;white-space:normal;text-align:start;margin:0!important;position:static!important;max-width:56px}
  .match[data-match-row]>.details{display:none!important}
  .match[data-match-row]>.team{grid-area:home!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;text-align:start!important;min-width:0!important;width:100%!important;padding:0!important;min-height:26px!important;height:auto!important;background:none!important;border:0!important}
  .match[data-match-row]>.team.away{grid-area:away!important}
  .match[data-match-row]>.team .team-logo{width:22px!important;height:22px!important;min-width:22px;flex:none;margin:0!important}
  .match[data-match-row]>.team .team-logo img{width:22px!important;height:22px!important;object-fit:contain}
  .match[data-match-row]>.team .team-name{font-size:14.5px!important;font-weight:600;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;min-width:0;text-align:start!important;display:block!important}
  .match[data-match-row]>.score{grid-area:sc!important;align-self:stretch;min-width:28px!important;width:auto!important;padding:0 4px!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;position:static!important}
  .match[data-match-row]>.score .kickoff-above-score{display:none!important}
  .match[data-match-row]>.score .match-score-pair{display:grid!important;grid-template-rows:1fr 1fr;height:100%;align-items:center;justify-items:end;gap:4px;font:800 16px/1 Arial,sans-serif!important;letter-spacing:0!important;padding:0!important;background:none!important}
  .match[data-match-row]>.score .match-score-pair>span:nth-child(2){display:none!important}
  /* Live: LIVE + minute on the left, score in red */
  .match[data-match-row]>.score.live .match-clock-ticker{position:absolute!important;inset-inline-start:12px;top:calc(50% + 4px);margin:0!important;font:700 11.5px/1 Arial,sans-serif!important;color:#ff6b6b;background:none!important;padding:0!important}
  .match[data-match-row]>.match-status.live{align-self:center;transform:translateY(-10px)}
  .match[data-match-row]>.score.live .match-score-pair{color:#ff8a8a}
  /* Upcoming: kickoff time on the left */
  .match[data-match-row]:has(>.score.upcoming)>.match-status{display:none!important}
  .match[data-match-row]>.score.upcoming{grid-area:st!important;justify-self:start;align-self:center;display:grid!important;justify-items:start;gap:3px;padding:0!important;font:700 13px/1.1 Arial,sans-serif!important;text-align:start;white-space:nowrap;min-width:0!important}
  .match[data-match-row]>.score.upcoming .kickoff-countdown{display:block!important;margin:0!important;padding:0!important;background:none!important}
  .match[data-match-row]>.score.upcoming .countdown-label{display:none!important}
  .match[data-match-row]>.score.upcoming .kickoff-countdown b{font:600 11px/1 Arial,sans-serif!important;color:#abe96b}
  .match[data-match-row]+.match[data-match-row]{border-top:1px solid rgba(255,255,255,.06)}
}
/* My picks: recommended match cards */
.game-upcoming-card{display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"lg lg" "tm tm" "tt cd" "bt bt";gap:12px 10px!important;padding:14px 16px!important;align-items:center}
.game-upcoming-card>.game-recommendation-league{grid-area:lg;margin:0!important;font-size:12.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-upcoming-card>div{grid-area:tm;display:grid!important;grid-template-columns:26px minmax(0,1fr) auto minmax(0,1fr) 26px;align-items:center;gap:8px!important;margin:0!important}
.game-upcoming-card>div .team-logo{width:26px!important;height:26px!important;margin:0!important}
.game-upcoming-card>div .team-logo img{width:26px!important;height:26px!important;object-fit:contain}
.game-upcoming-card>div strong{min-width:0;font-size:14px!important;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.game-upcoming-card>div strong:first-of-type{text-align:start}
.game-upcoming-card>div strong:last-of-type{text-align:end}
.game-upcoming-card>div small{font-size:12px;opacity:.6;padding:0 2px}
.game-upcoming-card>time{grid-area:tt;margin:0!important;font-size:12.5px!important;white-space:nowrap}
.game-upcoming-card>.kickoff-countdown{grid-area:cd;justify-self:end;display:flex!important;flex-direction:row!important;align-items:baseline;gap:6px;margin:0!important;padding:0!important;background:none!important;white-space:nowrap}
.game-upcoming-card>.kickoff-countdown>*{display:inline!important;margin:0!important}
.game-upcoming-card>.kickoff-countdown .countdown-label{font-size:11.5px!important;opacity:.7}
.game-upcoming-card>.kickoff-countdown b{font-size:13px!important}
.game-upcoming-card>button{grid-area:bt;margin:0!important;width:100%}
.game-next-heading{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;align-items:center}
.game-next-heading>h3{grid-column:1/-1;margin:0!important}
.game-next-heading>button{width:100%!important;min-height:40px!important;margin:0!important;white-space:nowrap;font-size:13px!important}
/* Standings: competition list as clean rows */
.standings-competition-grid{display:grid!important;gap:8px!important}
.standings-competition-grid>button{display:grid!important;grid-template-columns:30px minmax(0,1fr) 20px;align-items:center;gap:12px!important;text-align:start!important;justify-content:stretch!important;padding:12px 14px!important;min-height:54px!important}
.standings-competition-grid>button>strong{grid-column:2;text-align:start!important;font:700 15px/1.25 Arial,sans-serif!important;letter-spacing:0!important;min-width:0;overflow-wrap:anywhere}
.standings-competition-grid>button>span{grid-column:3;justify-self:end;opacity:.6}
.standings-competition-grid>button>img{grid-column:1;width:30px;height:22px;object-fit:cover;border-radius:3px}
.standings-competition-grid>button:not(:has(>img))::before{content:"🏆";grid-column:1;grid-row:1;justify-self:center;font-size:18px;line-height:1}
/* Rooms list: tidy "More" block, date under room names */
.rooms-more .rooms-help{border-top:0!important;margin-top:0!important;padding-top:0!important}
small.gv-card-date{display:block;margin-top:4px;font-size:13px;font-weight:600;color:var(--gv-muted,#8ea6b1)}
.league-mini-icon.gv-initials{font-size:10px!important;font-weight:800;overflow:hidden;letter-spacing:0}
/* My picks: 5 score boxes = 3 on top, 2 below, all filled */
@media (max-width:600px){
  .game-score-grid:has(>:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .game-score-grid:has(>:nth-child(5):last-child)>*{grid-column:span 2!important}
  .game-score-grid:has(>:nth-child(5):last-child)>:nth-child(n+4){grid-column:span 3!important}
}
/* ===== Player search + stats ===== */
.gv-ps-box{margin:0 0 14px;padding:12px;border:1px solid var(--gv-line,#24404b);border-radius:14px;background:var(--gv-card,#13232b)}
.gv-ps-box[hidden],.gv-ps-out[hidden]{display:none!important}
.gv-ps-box>h3,.gv-ps-out>h3{margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--gv-muted,#8ea6b1)}
.gv-ps-standalone{padding:10px}
.gv-ps-field{display:flex;align-items:center;gap:10px;padding:0 12px;height:48px;border:1px solid var(--gv-line,#24404b);border-radius:12px;background:#0d1920}
.gv-ps-field input{flex:1;min-width:0;height:100%;border:0!important;background:none!important;color:inherit;font:600 15px Arial,sans-serif;outline:none;padding:0!important;box-shadow:none!important}
.gv-ps-out{margin-top:10px}
.gv-ps-note{margin:6px 2px;font-size:13.5px;color:var(--gv-muted,#8ea6b1);line-height:1.5}
.gv-ps-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.gv-ps-list button{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto 14px;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 10px!important;text-align:start;border:1px solid var(--gv-line,#24404b)!important;border-radius:12px!important;background:rgba(255,255,255,.03)!important;color:inherit}
.gv-ps-list button:hover{border-color:var(--gv-green,#abe96b)!important}
.gv-ps-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#0d1920;font:800 13px Arial,sans-serif;overflow:hidden}
.gv-ps-avatar img{width:26px;height:26px;object-fit:contain}
.gv-ps-text{display:grid;gap:2px;min-width:0}
.gv-ps-text strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-ps-text small{font-size:12.5px;color:var(--gv-muted,#8ea6b1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-ps-flag{width:22px;height:16px;object-fit:cover;border-radius:2px}
.gv-ps-go{opacity:.5;font-size:20px;line-height:1}
html[dir=rtl] .gv-ps-go{transform:scaleX(-1)}
#gv-player-dialog{width:min(560px,100vw);max-height:92dvh;padding:16px;border:1px solid var(--gv-line,#24404b);border-radius:18px;background:#0f1d24;color:#eef6f2;overflow:auto}
#gv-player-dialog::backdrop{background:rgba(0,0,0,.6)}
.gv-ps-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:14px}
.gv-ps-head:has(>.gv-ps-close:only-child){grid-template-columns:1fr auto}
.gv-ps-head:has(>.gv-ps-close:only-child)>.gv-ps-close{grid-column:2}
.gv-ps-big{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#abe96b,#3fbf8f);color:#08140f;font:800 20px Arial,sans-serif}
.gv-ps-who{min-width:0;display:grid;gap:4px}
.gv-ps-who h2{margin:0;font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.gv-ps-who p{margin:0;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;min-width:0}
.gv-ps-who p>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gv-ps-who p>img:not(.gv-ps-flag){width:20px;height:20px;object-fit:contain}
.gv-ps-who small{font-size:12.5px;color:var(--gv-muted,#8ea6b1)}
.gv-ps-close{width:40px;height:40px;min-height:40px!important;padding:0!important;border-radius:50%!important;font-size:22px!important;align-self:start}
.gv-ps-sec{margin-top:14px}
.gv-ps-sec>h3{margin:0 0 10px;font-size:15px}
.gv-ps-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gv-ps-cards>div{display:grid;gap:4px;justify-items:center;text-align:center;padding:12px 6px;border:1px solid var(--gv-line,#24404b);border-radius:12px;background:rgba(255,255,255,.03)}
.gv-ps-cards strong{font:800 22px/1 Arial,sans-serif;color:var(--gv-green,#abe96b)}
.gv-ps-cards small{font-size:12px;color:var(--gv-muted,#8ea6b1);line-height:1.3}
.gv-ps-table-wrap{margin-top:10px;border:1px solid var(--gv-line,#24404b);border-radius:12px;overflow:hidden}
.gv-ps-table{width:100%;border-collapse:collapse;font-size:13px}
.gv-ps-table th,.gv-ps-table td{padding:9px 8px;border-bottom:1px solid rgba(255,255,255,.06);text-align:center}
.gv-ps-table thead th{font-size:12px;color:var(--gv-muted,#8ea6b1);background:rgba(255,255,255,.04)}
.gv-ps-table tbody th,.gv-ps-table thead th:first-child{text-align:start;font-weight:600;overflow-wrap:anywhere}
.gv-ps-table td{width:34px;font-variant-numeric:tabular-nums}
.gv-ps-table tr:last-child>*{border-bottom:0}
.gv-ps-games{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.gv-ps-games li{display:grid;grid-template-columns:52px minmax(0,1fr) auto auto 26px;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--gv-line,#24404b);border-radius:12px;font-size:13px}
.gv-ps-date{color:var(--gv-muted,#8ea6b1);font-size:12px}
.gv-ps-opp{display:flex;align-items:center;gap:6px;min-width:0}
.gv-ps-opp small{color:var(--gv-muted,#8ea6b1);font-size:11px}
.gv-ps-opp img{width:18px;height:18px;object-fit:contain;flex:none}
.gv-ps-opp b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gv-ps-contrib{font-size:12px;white-space:nowrap}
.gv-ps-contrib small{color:var(--gv-muted,#8ea6b1)}
.gv-ps-score{font-weight:800;font-variant-numeric:tabular-nums;direction:ltr}
.gv-ps-res{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font:800 12px Arial,sans-serif;background:#2b3a42}
.gv-res-W{background:#2f8f4e;color:#fff}.gv-res-L{background:#b8433f;color:#fff}.gv-res-D{background:#6b7780;color:#fff}
.gv-ps-source{margin:14px 0 0;font-size:11.5px;color:var(--gv-muted,#8ea6b1);text-align:center}
@media (max-width:600px){
  #gv-player-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding:14px 12px 28px}
}
/* Competition: no Rules tab; scorers table shows the numbers */
#competition-dialog [data-competition-tab="rules"]{display:none!important}
#competition-dialog .player-ranking-table{width:100%;table-layout:auto}
#competition-dialog .player-ranking-table tbody tr{cursor:pointer}
#competition-dialog .player-ranking-table tbody tr:hover{background:rgba(171,233,107,.06)}
#competition-dialog .player-ranking-table tbody th b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
#competition-dialog .player-ranking-table td:nth-of-type(2){font-size:12px;color:var(--gv-muted,#8ea6b1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:30vw}
#competition-dialog .player-ranking-table .table-points,#competition-dialog .player-ranking-table thead th:last-child{display:table-cell!important;text-align:center;min-width:44px;font-size:15px}
#competition-dialog .player-ranking-table thead th:last-child{font-size:12px}
/* Small phones (320–400px): header and buttons always fit */
.game-next-heading>button{white-space:normal!important;line-height:1.2}
@media (max-width:400px){
  .app-header{gap:6px!important;padding-inline:10px!important}
  .app-header .header-actions{gap:6px!important}
  .app-header .language-select #language-picker{width:86px!important;font-size:12.5px!important;padding-inline:8px 22px!important}
  .app-header .mobile-brand{font-size:17px!important}
  .app-header .mobile-brand::before{width:26px!important;height:26px!important;margin-inline-end:6px!important}
}
@media (max-width:340px){
  .app-header .language-select #language-picker{width:74px!important}
  .app-header .mobile-brand{font-size:16px!important}
  .app-header .menu-toggle{width:36px!important;min-width:36px!important;padding:0!important}
}
.gv-ps-close{background:#1d2e36!important;color:#eef6f2!important;border:1px solid var(--gv-line,#24404b)!important;display:grid;place-items:center;line-height:1!important}
.gv-ps-a{font-style:normal;font:800 10.5px/1 Arial,sans-serif;padding:3px 5px;border-radius:5px;background:#2f6f8f;color:#fff}
/* ===== Phone comfort ===== */
html,body{overflow-x:clip}
button,a,[role=button]{touch-action:manipulation}
@media (max-width:900px){
  /* iPhone zooms in on fields under 16px — that made the page "move" */
  input,select,textarea{font-size:16px!important}
}
/* Date bar: no hidden 4th column, field always fits between the arrows */
.fixture-date-controls{grid-template-columns:48px minmax(0,1fr) 48px!important}
.fixture-date-controls [data-fixtures-today]{display:none!important}
@supports (-webkit-touch-callout:none){
  input[type=date]{-webkit-appearance:none;appearance:none;display:block;min-width:0!important;width:100%!important;line-height:46px}
  input[type=date]::-webkit-date-and-time-value{text-align:center;margin:0 auto}
}
/* Back bar in every window (phones) */
.gv-dlg-bar{display:none}
.gv-up{position:fixed;inset-inline-end:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:60;width:46px;height:46px;min-height:46px!important;padding:0!important;border-radius:50%!important;border:1px solid var(--gv-line,#24404b)!important;background:#1d2e36!important;color:#eef6f2!important;font:800 20px/1 Arial,sans-serif!important;box-shadow:0 6px 20px rgba(0,0,0,.45);display:grid;place-items:center}
.gv-up[hidden]{display:none!important}
dialog .gv-up{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
@media (max-width:700px){
  .gv-dlg-bar{display:flex;position:sticky;top:0;z-index:30;margin:0 0 12px;padding:8px 0;background:rgba(15,29,36,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--gv-line,#24404b)}
  .gv-dlg-back{display:inline-flex!important;align-items:center;gap:6px;min-height:40px!important;padding:0 14px!important;border-radius:20px!important;border:1px solid var(--gv-line,#24404b)!important;background:#1d2e36!important;color:#eef6f2!important;font:700 15px Arial,sans-serif!important}
  .gv-dlg-back span{font-size:22px;line-height:1}
  html[dir=rtl] .gv-dlg-back span{transform:scaleX(-1)}
}
/* Player list: simple flex rows (works on every phone browser) */
.gv-ps-list button{display:flex!important;align-items:center;gap:10px}
.gv-ps-list button>.gv-ps-avatar{flex:0 0 36px}
.gv-ps-list button>.gv-ps-text{flex:1 1 auto;min-width:0}
.gv-ps-list button>.gv-ps-flag,.gv-ps-list button>.gv-ps-go{flex:none}
.gv-ps-text strong,.gv-ps-text small{display:block}
/* Standings rows: flex instead of grid inside buttons */
.standings-competition-grid>button{display:flex!important;align-items:center}
.standings-competition-grid>button>img,.standings-competition-grid>button::before{flex:0 0 30px}
.standings-competition-grid>button>strong{flex:1 1 auto}
.standings-competition-grid>button>span{flex:none}
/* Match centre pitch never wider than its card */
#match-dialog .event-pitch{width:100%!important;max-width:100%!important;margin-inline:0!important;left:auto!important}
@media (max-width:700px){ #match-dialog>#close-dialog{display:none!important} }
/* Language picker: room for the full word at 16px */
@media (max-width:400px){ .app-header .language-select #language-picker{width:100px!important;padding-inline:8px 20px!important} }
@media (max-width:340px){ .app-header .language-select #language-picker{width:94px!important;padding-inline:6px 18px!important} .app-header .mobile-brand{font-size:15px!important} .app-header .mobile-brand::before{width:24px!important;height:24px!important} }
/* Date text a little lower so it sits in the middle */
.fixture-date-controls input[type=date],#competition-dialog .competition-day-controls input[type=date]{padding-top:4px!important;padding-bottom:0!important}
@supports (-webkit-touch-callout:none){
  .fixture-date-controls input[type=date],#competition-dialog .competition-day-controls input[type=date]{line-height:44px!important;padding-top:4px!important}
}
/* Phones: one way out — the Back bar. Hide the extra × buttons inside windows */
@media (max-width:700px){
  dialog :is([data-botola-close],[data-competition-close],[data-close-standings-choice],[data-game-board-close],[data-account-close],[data-guide-close],.gv-ps-close,[data-friend-choice-close][aria-label],[data-team-close][aria-label]){display:none!important}
}
/* Player page */
.gv-ps-head{grid-template-columns:auto minmax(0,1fr)!important}
.gv-ps-cards>div{position:relative}
.gv-ps-cards>div>i{font-style:normal;font-size:11px;color:var(--gv-muted,#8ea6b1)}
.gv-ps-key{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.gv-ps-key strong{font-size:28px!important;color:#fff!important}
.gv-ps-clubs{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.gv-ps-clubs li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--gv-line,#24404b);border-radius:12px}
.gv-ps-clubs li.is-current{border-color:#4f7d3a;background:#14281b}
.gv-ps-clubs img{width:28px;height:28px;object-fit:contain;flex:none}
.gv-ps-dot{width:28px;height:28px;border-radius:50%;background:#1d2e36;flex:none}
.gv-ps-club{flex:1;min-width:0;display:grid;gap:2px}
.gv-ps-club b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-ps-club small{font-size:12.5px;color:var(--gv-muted,#8ea6b1);direction:ltr;text-align:start}
html[dir=rtl] .gv-ps-club small{text-align:end}
.gv-ps-clubs em{font-style:normal;font-size:11.5px;font-weight:800;padding:3px 8px;border-radius:10px;background:#abe96b;color:#0b1a10}
.gv-ps-sub{margin:12px 0 8px;font-size:13px;color:var(--gv-muted,#8ea6b1)}
.gv-ps-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.gv-ps-details>div{padding:10px 12px;border:1px solid var(--gv-line,#24404b);border-radius:12px}
.gv-ps-details dt{font-size:12px;color:var(--gv-muted,#8ea6b1)}
.gv-ps-details dd{margin:3px 0 0;font-weight:700;font-size:14.5px}
/* Favorites: match alerts at the top of the page content */
body[data-gv-page="favorites"] #match-alerts{margin:0 0 14px!important}
/* Competition logos */
.gv-league-logo{width:28px!important;height:28px!important;object-fit:contain!important;border-radius:0!important;flex:none}
.standings-competition-grid>button>.gv-league-logo{width:28px!important;height:28px!important}
#matches .league-emblem:has(.gv-league-logo){background:none!important;border:0!important;display:grid;place-items:center}
.league-mini-icon .gv-league-logo{width:22px!important;height:22px!important}
#competition-dialog .competition-heading h2 .gv-league-logo{width:30px!important;height:30px!important;vertical-align:middle;margin-inline-end:10px}
/* Match window: Statistics tab first */
#match-dialog [data-detail-tab="stats"]{order:-1}
.standings-competition-grid>button>.gv-league-logo,.standings-competition-grid>button>img{flex:0 0 30px!important;width:30px!important;margin:0!important}
/* Club search + club page */
.gv-ps-out>h3:not(:first-child),.gv-ps-box>h3:not(:first-child){margin-top:14px}
.gv-ps-club-logo{background:none!important}
.gv-ps-club-logo img{width:30px!important;height:30px!important}
.gv-ps-tag{font-style:normal;font-size:11px;font-weight:700;padding:2px 6px;border-radius:8px;background:#2b3a42;color:#cfe0e6;margin-inline-start:6px}
.gv-ps-club-big{background:#0d1920!important}
.gv-ps-club-big img{width:44px;height:44px;object-fit:contain}
.gv-ps-flag-big{width:34px;height:24px;object-fit:cover;border-radius:3px}
.gv-ps-form{display:flex;gap:4px;margin-top:4px}
.gv-ps-date{display:grid;gap:2px}
.gv-ps-date small{font-size:11px;color:var(--gv-muted,#8ea6b1)}
.gv-ps-games .gv-ps-contrib small{display:block;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
/* ===== Club page: simple to read ===== */
.gv-cl-tabs{margin:14px 0 12px}
.gv-cl-sub{margin:0 0 10px}
.gv-cl-tabs button,.gv-cl-sub button{font-size:14px!important}
.gv-cl-hero{margin:4px 0 6px;padding:14px;border:1px solid #2f5a3a;border-radius:16px;background:linear-gradient(135deg,#16301f,#0f1d24)}
.gv-cl-hero-k{display:block;text-align:center;font-size:12px;color:#9fd27a;font-weight:700;margin-bottom:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-cl-hero-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
.gv-cl-hero-team{display:grid;justify-items:center;gap:6px;text-align:center;min-width:0}
.gv-cl-hero-team img{width:46px;height:46px;object-fit:contain}
.gv-cl-hero-team b{font-size:14px;line-height:1.2;overflow-wrap:anywhere}
.gv-cl-hero-mid{display:grid;justify-items:center;gap:3px}
.gv-cl-hero-mid b{font:800 22px/1 Arial,sans-serif;color:#fff}
.gv-cl-hero-mid small{font-size:12px;color:var(--gv-muted,#8ea6b1);white-space:nowrap}
.gv-cl-list{list-style:none;margin:0 0 10px;padding:0;border:1px solid var(--gv-line,#24404b);border-radius:14px;overflow:hidden}
.gv-cl-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto 28px;grid-template-areas:"when teams score res" "when comp comp comp";align-items:center;column-gap:10px;row-gap:2px;padding:10px 12px;background:#0f1c23}
.gv-cl-row+.gv-cl-row{border-top:1px solid rgba(255,255,255,.06)}
.gv-cl-row.is-live{background:#2a1517}
.gv-cl-when{grid-area:when;display:grid;gap:3px;align-self:center}
.gv-cl-when b{font-size:13px}
.gv-cl-when small{font-size:11.5px;color:var(--gv-muted,#8ea6b1)}
.gv-cl-live{color:#ff6b6b}
.gv-cl-teams{grid-area:teams;display:grid;gap:6px;min-width:0}
.gv-cl-team{display:flex;align-items:center;gap:8px;min-width:0}
.gv-cl-team img,.gv-cl-team i{width:20px;height:20px;object-fit:contain;flex:none}
.gv-cl-team b{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-cl-team.is-me b{font-weight:800;color:#fff}
.gv-cl-score{grid-area:score;display:grid;gap:6px;justify-items:end;font:800 15px/20px Arial,sans-serif}
.gv-cl-res{grid-area:res;display:grid;place-items:center}
.gv-cl-comp{grid-area:comp;font-size:11px;color:var(--gv-muted,#8ea6b1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-cl-news{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.gv-cl-news a{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--gv-line,#24404b);border-radius:14px;background:#0f1c23;color:inherit;text-decoration:none}
.gv-cl-news b{font-size:15px;line-height:1.35}
.gv-cl-news span{font-size:13px;line-height:1.5;color:#c3d4db;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gv-cl-news small{font-size:11.5px;color:var(--gv-muted,#8ea6b1)}
.gv-ps-sub span{font-weight:400;opacity:.7}
.gv-cl-backclub{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;min-height:38px!important;padding:0 14px!important;border-radius:19px!important;border:1px solid var(--gv-line,#24404b)!important;background:#1d2e36!important;color:#eef6f2!important;font:700 14px Arial,sans-serif!important}
.gv-cl-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.gv-cl-sub{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.gv-cl-row{grid-template-columns:64px minmax(0,1fr) auto 28px!important}
.gv-cl-when b{white-space:nowrap}
/* Club page: upcoming rows end with the competition logo + name */
.gv-cl-row.is-upcoming{grid-template-columns:64px minmax(0,1fr) 82px!important;grid-template-areas:"when teams lg"!important}
.gv-cl-lg{grid-area:lg;display:grid;justify-items:center;gap:4px;text-align:center;min-width:0}
.gv-cl-lglogo{width:26px;height:26px;object-fit:contain}
.gv-cl-lg small{font-size:10.5px;line-height:1.2;color:var(--gv-muted,#8ea6b1);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:82px}
.gv-cl-lgmini{width:14px;height:14px;object-fit:contain;vertical-align:-2px;margin-inline-end:5px}
.gv-cl-hero-k .gv-cl-lgmini{width:16px;height:16px}
/* Team logos you can tap */
#matches .match .team-logo img,#match-dialog .match-scoreboard img,#match-dialog .match-position-cards img,#competition-dialog tbody img,#competition-dialog .competition-match-card img,#gv-player-dialog .gv-cl-row img:not(.gv-cl-lglogo):not(.gv-cl-lgmini),#gv-player-dialog .gv-cl-hero-team img,#gv-player-dialog .gv-ps-games img,#gv-player-dialog .gv-ps-clubs img,#gv-player-dialog .gv-ps-who img{cursor:pointer}
#match-dialog .real-squad-player{cursor:pointer}
/* Change name */
.gv-rename{display:grid;gap:8px;margin-top:10px}
.gv-rename-open{min-height:40px!important;width:100%}
.gv-rename-form{display:flex;gap:8px}
.gv-rename-form[hidden]{display:none}
.gv-rename-form input{flex:1;min-width:0;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid #4a6878;background:#0b1820;color:#eaf4f8;font:600 16px Arial,sans-serif}
.gv-rename-form button{min-height:44px;white-space:nowrap}
.gv-rename-msg{font-size:12.5px;color:#9fd27a;min-height:1em}
#header-google-trigger.is-busy{opacity:.6;pointer-events:none}
.gv-guide-link{display:flex;align-items:center;gap:10px;width:100%;margin-top:10px;padding:12px 14px;border-radius:12px;border:1px solid rgba(171,233,107,.35);background:rgba(171,233,107,.08);color:#abe96b;font:inherit;font-weight:700;cursor:pointer;text-align:start}
.gv-guide-link>span:first-child{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#abe96b;color:#0b141a;font-size:11px;flex:none}
