/* ================================================
   components.css — sportracker.com
   Reusable UI components: match cards, standings,
   brackets, modals, team tables, highlights
   ================================================ */

/* ============ MATCH CARDS ============ */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px; margin-bottom: 4px;
}
.match-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px;
  transition: box-shadow .18s, transform .18s;
  position: relative; overflow: hidden; cursor: pointer;
}
.match-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.match-card--live { border-color: rgba(220,38,38,.28); box-shadow: 0 0 0 1px rgba(220,38,38,.12); }
.match-card--live::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-600), #ff7799);
}

.mc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mc-round  { font-size: .7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.status-badge { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.status-badge--live { background: rgba(220,38,38,.1); color: var(--red-600); display: flex; align-items: center; gap: 5px; }
.status-badge--pre  { background: var(--blue-50);   color: var(--blue-600); }
.status-badge--post { background: var(--slate-100); color: var(--slate-500); }

.mc-teams { display: flex; align-items: center; gap: 6px; }
.mc-team  { flex: 1; display: flex; align-items: center; gap: 9px; }
.mc-team--away { flex-direction: row-reverse; text-align: right; }
.team-logo    { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.team-logo-fb {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--slate-100); display: flex; align-items: center;
  justify-content: center; font-size: .62rem; font-weight: 700;
  color: var(--slate-600); flex-shrink: 0;
}
.team-name          { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.team-name--winner  { color: var(--green-600); }

.mc-score   { flex-shrink: 0; text-align: center; padding: 0 8px; }
.score-row  { display: flex; align-items: center; gap: 5px; }
.score-num  { font-size: 1.55rem; font-weight: 800; line-height: 1; min-width: 26px; text-align: center; }
.score-num--winner { color: var(--green-600); }
.score-sep  { font-size: 1.1rem; color: var(--slate-300); font-weight: 300; }
.score-label       { font-size: .7rem; color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
.score-label--live { color: var(--red-600); font-weight: 700; }

.mc-footer {
  margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 8px;
}

.section-tag {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); padding: 20px 0 10px;
}
.section-tag:first-child  { padding-top: 0; }
.section-tag--live  { color: var(--red-600); }
.section-tag--today { color: var(--primary); }

.live-now-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(220,38,38,.1), rgba(220,38,38,.05));
  border: 1px solid rgba(220,38,38,.25); border-radius: 10px;
  padding: 10px 16px; margin-bottom: 12px;
  color: var(--red-600); font-weight: 700; font-size: .85rem;
}

/* ============ GROUP STANDINGS ============ */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.group-card  { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.group-card__head {
  background: linear-gradient(135deg, #0B1E3D 0%, #1a3a6b 100%);
  color: white; padding: 11px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .92rem;
}
.group-card__head span { font-size: .72rem; opacity: .65; font-weight: 400; }

.g-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.g-table th {
  padding: 7px 6px; text-align: center; font-size: .65rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); background: var(--slate-50); border-bottom: 1px solid var(--border);
}
.g-table th:nth-child(2) { text-align: left; padding-left: 10px; min-width: 130px; }
.g-table td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.g-table td:nth-child(2) { text-align: left; padding-left: 10px; }
.g-table tr:last-child td { border-bottom: none; }

.q-direct   { background: rgba(22,163,74,.05); }
.q-possible { background: rgba(245,158,11,.05); }
.q-direct td:first-child   { border-left: 3px solid var(--green-600); }
.q-possible td:first-child { border-left: 3px solid #f59e0b; }
.q-out td:first-child      { border-left: 3px solid transparent; }

.pts-bold { font-weight: 800; }
.g-team-cell { display: flex; align-items: center; gap: 6px; }
.g-logo  { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.g-flag  { font-size: .9rem; flex-shrink: 0; line-height: 1; }
.pos-badge {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .64rem; font-weight: 700; flex-shrink: 0;
}
.pos-1, .pos-2 { background: var(--green-50);  color: var(--green-600); }
.pos-3          { background: var(--amber-50);  color: var(--amber-600); }
.pos-4          { background: var(--red-50);    color: var(--red-600); }

.q-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 4px; font-size: .6rem; font-weight: 700; white-space: nowrap;
}
.q-pill--green { background: rgba(22,163,74,.12); color: #166534; }
.q-pill--amber { background: rgba(245,158,11,.14); color: #92400e; }
.q-pill--gray  { background: var(--slate-100); color: var(--slate-500); }

.g-legend {
  padding: 8px 14px; font-size: .7rem; color: var(--text-muted);
  border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.g-legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.legend-dot--green { background: var(--green-600); opacity: .5; }
.legend-dot--amber { background: #f59e0b; opacity: .5; }

/* Best 3rd place */
.best3rd-card { background: white; border: 2px solid #f59e0b; border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.best3rd-head {
  background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%);
  color: white; padding: 14px 18px; font-size: .95rem; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.best3rd-note    { padding: 10px 16px 4px; font-size: .78rem; color: var(--text-muted); line-height: 1.6; }
.best3rd-divider {
  padding: 5px 0; text-align: center; font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; color: #ea580c;
  background: rgba(249,115,22,.08);
  border-top: 2px dashed rgba(234,88,12,.3); border-bottom: 2px dashed rgba(234,88,12,.3);
}

/* ============ BRACKET ============ */
.bracket-notice {
  background: var(--amber-50); border: 1px solid rgba(245,158,11,.35); color: var(--amber-700);
  border-radius: var(--radius); padding: 12px 16px; font-size: .85rem; margin-bottom: 16px;
}
.bk-outer { overflow-x: auto; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }
.bk-tree  { display: inline-flex; align-items: stretch; gap: 0; position: relative; }
.bk-round { flex-shrink: 0; width: 158px; display: flex; flex-direction: column; padding: 0 8px; }
.bk-round__hdr {
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary); text-align: center; padding: 0 0 10px; white-space: nowrap;
  border-bottom: 2px solid var(--primary); margin-bottom: 0;
}
.bk-round__hdr--gold  { color: #b45309; border-color: #C9A227; }
.bk-round__hdr--amber { color: var(--amber-600); border-color: #f59e0b; }
.bk-matches   { flex: 1; display: flex; flex-direction: column; }
.bk-card-wrap { flex: 1; display: flex; align-items: center; padding: 2px 0; }
.bk-card {
  width: 100%; background: white; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: box-shadow .15s;
}
.bk-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.bk-card--live  { border-color: rgba(220,38,38,.45); box-shadow: 0 0 0 1px rgba(220,38,38,.15); }
.bk-card--final { border: 2px solid #C9A227; box-shadow: 0 2px 16px rgba(201,162,39,.22); }
.bk-team {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 8px; border-bottom: 1px solid var(--border);
  font-size: .72rem; font-weight: 600; min-height: 30px;
}
.bk-team:last-child { border-bottom: none; }
.bk-team--winner { background: rgba(22,163,74,.09); color: #166534; }
.bk-team--live   { background: rgba(220,38,38,.05); }
.bk-team--tbd    { color: var(--slate-400); font-style: italic; font-weight: 400; font-size: .67rem; }
.bk-logo  { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
.bk-flag  { font-size: .8rem; flex-shrink: 0; line-height: 1; }
.bk-name  { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-score { font-weight: 800; font-size: .75rem; min-width: 18px; text-align: right; flex-shrink: 0; color: var(--text-muted); }
.bk-score--winner { color: var(--green-600); }
#bracket-svg { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.bk-3rd-section { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--border); }
.bk-3rd-label   { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-600); margin-bottom: 10px; }

/* ============ TEAMS TABLE ============ */
.teams-filters    { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.teams-search     { flex: 1; min-width: 160px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; background: var(--bg); color: var(--text); }
.conf-pills       { display: flex; flex-wrap: wrap; gap: 6px; }
.conf-pill        { padding: 4px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; transition: opacity .15s; }
.conf-pill:hover  { opacity: .8; }
.conf-pill.active { border-color: currentColor; }
.conf-pill--all      { background: var(--slate-100); color: var(--slate-600); }
.conf-pill--conmebol { background: rgba(234,179,8,.12);  color: #854d0e; }
.conf-pill--uefa     { background: rgba(59,130,246,.1);  color: #1e40af; }
.conf-pill--concacaf { background: rgba(34,197,94,.1);   color: #166534; }
.conf-pill--afc      { background: rgba(239,68,68,.1);   color: #991b1b; }
.conf-pill--caf      { background: rgba(249,115,22,.1);  color: #9a3412; }
.conf-pill--ofc      { background: rgba(168,85,247,.1);  color: #6b21a8; }

.teams-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.teams-table      { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 640px; }
.teams-table thead { background: var(--bg-alt); }
.teams-table th {
  padding: 8px 10px; text-align: left; font-size: .7rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid var(--border);
}
.teams-table th.center, .teams-table td.center { text-align: center; }
.teams-table td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.teams-table tbody tr:hover { background: var(--bg-alt); }

.t-group-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: white; font-size: .72rem; font-weight: 800;
}
.t-name-cell   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-flag        { font-size: 1.2rem; line-height: 1; }
.t-name        { font-weight: 600; }
.t-host-badge  { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.t-debut-badge { background: rgba(245,158,11,.15); color: #92400e; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.t-abbr-code   { font-size: .65rem; font-family: monospace; background: var(--slate-100); color: var(--slate-500); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; letter-spacing: .04em; }

.t-conf-badge     { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: .68rem; font-weight: 700; }
.tcb-conmebol { background: rgba(234,179,8,.12); color: #854d0e; }
.tcb-uefa     { background: rgba(59,130,246,.1);  color: #1e40af; }
.tcb-concacaf { background: rgba(34,197,94,.1);   color: #166534; }
.tcb-afc      { background: rgba(239,68,68,.1);   color: #991b1b; }
.tcb-caf      { background: rgba(249,115,22,.1);  color: #9a3412; }
.tcb-ofc      { background: rgba(168,85,247,.1);  color: #6b21a8; }
.t-best-champion { font-weight: 700; color: #854d0e; }
.teams-count  { margin-top: 12px; font-size: .76rem; color: var(--text-muted); text-align: right; }

.squad-btn { background: var(--primary); color: white; border: none; border-radius: 6px; padding: 4px 10px; font-size: .72rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.squad-btn:hover { opacity: .85; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.squad-card { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg-alt); border-radius: 8px; font-size: .8rem; border: 1px solid var(--border); }
.squad-jersey { font-weight: 800; font-size: .9rem; color: var(--primary); min-width: 24px; text-align: center; }
.squad-name   { font-weight: 600; flex: 1; }
.squad-age    { font-size: .7rem; color: var(--text-muted); }

/* ============ MATCH MODAL ============ */
.modal-scoreboard {
  padding: 20px; text-align: center;
  background: linear-gradient(135deg, #071428 0%, #0B1E3D 100%); color: white;
}
.modal-teams-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-team      { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.modal-team-logo { width: 52px; height: 52px; object-fit: contain; }
.modal-team-name { font-size: .78rem; font-weight: 700; text-align: center; }
.modal-score-block { font-size: 2.4rem; font-weight: 800; display: flex; align-items: center; white-space: nowrap; }
.modal-score-vs    { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,.5); }
.modal-match-meta  { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; font-size: .72rem; color: rgba(255,255,255,.65); }
.modal-body        { padding: 16px 20px 20px; }
.modal-section     { margin-bottom: 20px; }
.modal-section-title { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }

.stat-row     { display: flex; align-items: center; gap: 8px; }
.stat-val     { font-size: .78rem; font-weight: 700; min-width: 28px; text-align: center; }
.stat-val--away { text-align: center; color: var(--slate-500); }
.stat-bar-bg  { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.stat-bar-home { height: 100%; background: var(--primary); border-radius: 3px; transition: width .4s; }
.stat-bar-away { height: 100%; background: var(--slate-400); border-radius: 3px; transition: width .4s; margin-left: auto; }

.modal-goal-list { display: flex; flex-direction: column; gap: 6px; }
.modal-goal-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg-alt); border-radius: 8px; font-size: .8rem; }
.modal-goal-min  { font-weight: 700; color: var(--primary); min-width: 48px; }

.lineup-wrap      { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.lineup-team      { background: var(--slate-50); border-radius: 8px; padding: 10px; }
.lineup-team-hdr  { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.lineup-formation { margin-left: auto; background: var(--primary); color: white; font-size: .62rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; flex-shrink: 0; }
.lineup-list      { display: flex; flex-direction: column; gap: 2px; }
.lineup-player    { display: flex; align-items: center; gap: 5px; font-size: .74rem; padding: 3px 4px; border-radius: 4px; }
.lineup-player:hover   { background: var(--slate-100); }
.lineup-player--out    { opacity: .65; }
.lineup-player--sub    { border-left: 2px solid #16a34a; padding-left: 6px; }
.lineup-no    { width: 18px; text-align: right; font-weight: 700; color: var(--text-muted); font-size: .68rem; flex-shrink: 0; }
.lineup-name  { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lineup-pos   { font-size: .6rem; color: var(--text-muted); background: var(--slate-200); padding: 1px 4px; border-radius: 3px; font-weight: 700; flex-shrink: 0; }
.lineup-evts  { font-size: .68rem; flex-shrink: 0; white-space: nowrap; }
.lineup-bench-hdr { font-size: .62rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 6px 4px 2px; margin-top: 4px; border-top: 1px dashed var(--border); }
.lineup-subs-hdr  { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 6px; }
.lineup-subs  { display: flex; flex-direction: column; gap: 4px; }
.sub-item     { display: flex; align-items: center; gap: 8px; font-size: .77rem; padding: 5px 8px; background: var(--slate-50); border-radius: 6px; }
.sub-min      { font-weight: 800; color: var(--primary); min-width: 34px; flex-shrink: 0; font-size: .72rem; }
.sub-players  { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sub-in       { color: #166534; font-weight: 600; }
.sub-out      { color: var(--text-muted); }

/* ============ HIGHLIGHTS ============ */
.yt-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin-top: 8px; background: #000; }
.yt-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.ht-btn-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.ht-btn     { background: var(--slate-100); border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--text); }
.ht-btn:hover { background: var(--slate-200); }
.ht-input   { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: .8rem; margin-top: 6px; box-sizing: border-box; background: var(--card-bg); color: var(--text); }

/* ============ SPORT / COMPETITION CARDS (landing & hubs) ============ */
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sport-card  {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: box-shadow .18s, transform .18s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.sport-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sport-card__icon { font-size: 2.4rem; margin-bottom: 12px; line-height: 1; }
.sport-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.sport-card__meta { font-size: .76rem; color: var(--text-muted); }
.sport-card__live { display: inline-block; margin-top: 8px; background: rgba(220,38,38,.12); color: var(--red-600); font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.comp-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  transition: box-shadow .18s, transform .18s; text-decoration: none; color: inherit;
}
.comp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.comp-card__icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.comp-card__info { flex: 1; min-width: 0; }
.comp-card__name { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.comp-card__meta { font-size: .75rem; color: var(--text-muted); }
.comp-card__badge { flex-shrink: 0; }
.comp-card--live  { border-color: rgba(220,38,38,.25); }
.comp-card--live::before { display: none; }

/* Year selection (WC hub etc) */
.year-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.year-card  {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.year-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.year-card__year   { font-size: 1.5rem; font-weight: 800; }
.year-card__host   { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.year-card__winner { font-size: .8rem; font-weight: 600; margin-top: 8px; }
.year-card--live   { border-color: rgba(220,38,38,.3); }
.year-card--live .year-card__year { color: var(--red-600); }

/* ============ AD SLOTS ============ */
/*
 * Ad slots are invisible by default (hidden attr).
 * ads.js reveals them only when a real ad is configured.
 * Design principle: ads blend with the site, never shout.
 */
[data-ad-slot] { display: none; }
[data-ad-slot]:not([hidden]) { display: block; }

.ad-slot {
  text-align: center;
  padding: 0;
  /* No margin here — parent context controls spacing */
}

/* Label: small, muted, clearly marks it as an ad */
.ad-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--slate-400);
  margin-bottom: 5px;
}

.ad-slot__inner {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* ---- Top banner (leaderboard) ---- */
.ad-slot--top_banner {
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.ad-slot--top_banner .ad-slot__inner { max-width: 728px; }

/* ---- Mid content (native card style) ---- */
.ad-slot--mid_content {
  margin: 20px 0;
  padding: 14px 16px;
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.ad-slot--mid_content .ad-label { text-align: left; }
.ad-slot--mid_content .ad-slot__inner {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ---- Above footer (rectangle) ---- */
.ad-slot--above_footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--slate-50);
}
.ad-slot--above_footer .ad-slot__inner { max-width: 336px; }

@media (max-width: 768px) {
  .ad-slot--top_banner { padding: 8px 0; }
  .ad-slot--top_banner .ad-slot__inner { max-width: 320px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 680px) {
  .matches-grid { grid-template-columns: 1fr; }
  .sports-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .groups-grid, .sk-g-grid { grid-template-columns: 1fr; }
  .team-name  { font-size: .78rem; }
  .score-num  { font-size: 1.3rem; }
  .tab-btn    { padding: 12px 14px; font-size: .82rem; }
  .q-pill     { font-size: .56rem; padding: 1px 5px; }
  .group-card__head { font-size: .82rem; padding: 10px 13px; }
  .lineup-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .g-table { font-size: .72rem; }
  .g-table th, .g-table td { padding: 6px 3px; }
  .g-table th:nth-child(2) { min-width: 80px; padding-left: 5px; }
  .g-col-gf, .g-col-ga { display: none; }
}
