/* ==========================================================================
   Statistik (bandystats) – enligt Elitseriens profil (grafisk profil, okt 2026)
   Sidhuvud = temats .team-hero, flikar = .team-tab-btn, ytor = .elit-ui-card,
   tabeller som .toplist-table. Värdena är temats egna variabler i style.css.
   Allt ligger under .ebs så att inget krockar med resten av temat.
   ========================================================================== */

.ebs {
	--ebs-line: var(--border, rgba(255, 255, 255, .06));
	--ebs-line-strong: rgba(255, 255, 255, .18);
	--ebs-muted: var(--text-muted, #b8d3dc);
	--ebs-faint: rgba(184, 211, 220, .55);
	--ebs-accent: var(--accent, #d21b69);
	--ebs-head: var(--surface-dark, #00151a);
	--ebs-pill: var(--blue-dark, #002a34);
	--ebs-row: rgba(52, 97, 120, .35);
	--ebs-row-even: rgba(19, 37, 45, .5);
	--ebs-row-hover: rgba(52, 97, 120, .6);
	--ebs-display: "trade-gothic-next-condensed", "Tourney", sans-serif;
	color: var(--text, rgba(255, 255, 255, .92));
}
.ebs [hidden] { display: none !important; }
.ebs .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ebs abbr[title] { text-decoration: none; cursor: help; }
.ebs .icon { width: 12px; height: 12px; }

/* ---------- Sidhuvud: temats team-hero; flikarna är team-tab-btn ---------- */
.ebs .stat-seg .team-tab-btn[aria-selected="true"] { background: var(--ebs-accent); color: #fff; }

/* Tredje raden: panelens flikar (understrukna, en nivå under knapparna ovanför) och lagfiltret */
.ebs .stat-subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin: 0 0 24px; }
.ebs .stat-subtabs { display: flex; gap: 24px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: none; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ebs .stat-subtabs::-webkit-scrollbar { display: none; }
.ebs .stat-subtabs [role="tab"] { flex: 0 0 auto; margin: 0; padding: 12px 2px; border: 0; background: none; color: var(--ebs-muted); font: 700 .875rem "Inter", sans-serif; white-space: nowrap; cursor: pointer; }
.ebs .stat-subtabs [role="tab"]:hover { color: #fff; }
.ebs .stat-subtabs [role="tab"][aria-selected="true"] { color: #fff; box-shadow: inset 0 -3px 0 var(--ebs-accent); }
.ebs .stat-subtabs [role="tab"]:focus { outline: none; }
.ebs .stat-subtabs [role="tab"]:focus-visible { outline: 2px solid rgba(255, 255, 255, .45); outline-offset: -2px; }
.ebs .stat-subbar .filter select { height: 44px; min-height: 44px; padding-left: 16px; font-size: .875rem; }

/* Sorterbara kolumnrubriker (Poängligan) */
.ebs .th-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.ebs .th-sort:hover { color: #fff; }
.ebs .th-sort::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; opacity: 0; }
.ebs th[aria-sort] .th-sort::after { opacity: 1; }
.ebs th[aria-sort="ascending"] .th-sort::after { border-top-color: transparent; border-bottom-color: currentColor; vertical-align: 6px; }
.ebs th[data-col]:not([aria-sort]) .th-sort { color: var(--ebs-muted); }

/* Dator: siffrorna i jämnt fördelade kolumner, rubrikerna på en rad */
@media (min-width: 721px) {
	.ebs .statlist--even { table-layout: fixed; }
	.ebs .statlist--even .c-pos { width: 56px; }
	.ebs .statlist--even .c-team { width: 26%; }
	.ebs .statlist--even th.c-n,
	.ebs .statlist--even th.c-main { width: auto; min-width: 0; max-width: none; }
	/* Rubriker bryts hellre på två rader än får tre prickar */
	.ebs .statlist--even thead th { overflow: hidden; white-space: normal; line-height: 1.25; padding-left: 6px; padding-right: 6px; }
	.ebs .statlist--even .c-bar { width: 14%; }
	.ebs .statlist--even .c-reason-t { width: 15%; }
	.ebs .statlist--even .c-reason { max-width: none; white-space: nowrap; }
	/* Utvisningar: orsakerna visas en sida i taget (bläddras i panelens rubrikband) */
	.ebs .statlist[data-pg="1"] .c-reason:not(.c-pg1),
	.ebs .statlist[data-pg="2"] .c-reason:not(.c-pg2),
	.ebs .statlist[data-pg="3"] .c-reason:not(.c-pg3) { display: none; }
	.ebs #panel-utv .statlist--even thead th.c-reason { white-space: normal; line-height: 1.25; text-overflow: clip; }
	.ebs .stat-card:has(#panel-utv:not([hidden])) .stat-pager { display: flex; }
}
.ebs .stat-divider { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 14px 20px 10px; border-top: 2px solid var(--ebs-line-strong); background: var(--ebs-head); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ebs .stat-divider span { font: 600 .72rem "Inter", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ebs-muted); }
.ebs .stat-card__head { display: flex; align-items: center; gap: 12px; }
.ebs .stat-pager { display: none; align-items: center; gap: 8px; margin-left: auto; }
.ebs .stat-pager__label { margin-right: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ebs-muted); }
.ebs .stat-pager__label b { color: #fff; }
.ebs .stat-pager__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0 0 2px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: #002a34; color: #fff; font: 700 18px/1 "Inter", sans-serif; cursor: pointer; }
.ebs .stat-pager__btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); }
.ebs .stat-pager__btn:disabled { color: rgba(184, 211, 220, .35); cursor: default; }
.ebs .stat-pager__btn:focus { outline: none; }
.ebs .stat-pager__btn:focus-visible { border-color: rgba(255, 255, 255, .6); }
@media (max-width: 720px) {
	.ebs .stat-card:has(#panel-utv:not([hidden])) .stat-pager { display: none; }
}
.ebs .statlist td.c-main { font-weight: 800; color: #fff; }

/* ---------- Panel: rubrikband med reglage ---------- */
.ebs .stat-card { border-radius: .375rem; }
.ebs .stat-card__head { flex-wrap: wrap; gap: 10px 16px; }
.ebs .stat-card__head .elit-ui-title { margin-right: auto; }
.ebs .stat-card__body { min-width: 0; }
.ebs .stat-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.ebs .filter { display: flex; align-items: center; gap: 8px; margin: 0; }
.ebs .filter > span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ebs-muted); }
.ebs .filter select { -webkit-appearance: none; appearance: none; min-height: 36px; width: auto; max-width: 100%; padding: 0 34px 0 14px; border: 1px solid var(--ebs-line); border-radius: 999px; background: var(--ebs-pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b8d3dc' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; color: #fff; font: 600 .8rem "Inter", sans-serif; cursor: pointer; }
.ebs .filter select:hover { border-color: rgba(255, 255, 255, .25); }
/* Ingen rosa fokusram när man klickar på en rullgardin; vid tangentbord syns en ljus kant i stället */
.ebs .filter select:focus,
.ebs .filter select:focus-visible { outline: none; box-shadow: none; }
.ebs .filter select:focus-visible { border-color: rgba(255, 255, 255, .45); }
.ebs .filter select option { background: #00151a; color: #fff; }
.ebs .season-nav { display: flex; align-items: center; margin: 0; }
/* Sidhuvudet: herr/dam till vänster, säsong till höger på samma rad */
/* Jämna avstånd i sidhuvudet: rubrik, herr/dam + säsong, flikar och panelen nedanför har samma luft
   (24 px på dator, 20 px på mobil). Rubrikens versaler har tom luft under sig, den dras av. */
.ebs .team-hero,
.team-hero.ebs { --ebs-hero-gap: 24px; padding-bottom: 0; }
.ebs .team-hero__inner { gap: var(--ebs-hero-gap); }
.ebs .team-hero__inner > * { margin-top: 0; margin-bottom: 0; }
.ebs .team-hero__inner > .team-hero__title { margin-bottom: 24px; } /* som övriga sidor: 48 px luft under rubriken */
.ebs .stat-page,
.ebs-tabell > .container { padding-top: 24px !important; }
.ebs .stat-hero-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 auto; }
.ebs .stat-hero-bar .series-switch { margin: 0; }
.ebs .stat-hero-bar .season-nav__pick { width: auto; }
/* Säsongsväljaren lika hög som herr/dam-växeln bredvid (3 px luft + 36 px knapp + 3 px luft + ram) */
.ebs .stat-hero-bar .filter select { height: 44px; min-height: 44px; padding-left: 16px; }
/* Säsongsväljaren lika hög som herr/dam-växeln bredvid */
.ebs .stat-hero-bar { align-items: stretch; }
.ebs .stat-hero-bar .season-nav,
.ebs .stat-hero-bar .filter { display: flex; flex-direction: row; align-items: stretch; }
.ebs .stat-hero-bar .filter select { min-height: 0; height: auto; align-self: stretch; }
.ebs .stat-hero-bar .season-nav__pick > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lag och spelare i tabellerna ---------- */
.ebs .crest { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font: 800 .55rem "Inter", sans-serif; }
.ebs .crest--img { background: transparent; border-radius: 0; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2)); }
.ebs .team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ebs .team--link { color: inherit; text-decoration: none; }
.ebs .team--link:hover .team__name { text-decoration: underline; text-underline-offset: 3px; }
.ebs .team__name { font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebs .team__code { display: none; }
.ebs .player { display: flex; flex-direction: column; min-width: 0; }
.ebs .player__team { display: none; }

/* ---------- Tabeller (som temats .toplist-table) ---------- */
/* Sidan ska aldrig kunna dras i sidled; bara tabellerna själva sveps (utan iOS-studs) */
main.ebs { overflow-x: clip; }
.ebs .table-scroll { overflow-x: auto; overscroll-behavior-x: none; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--blue-mid, #004b5d) transparent; }
.ebs .standings { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--text, rgba(255, 255, 255, .92)); }
.ebs .standings th,
.ebs .standings td { padding: .55rem .75rem; text-align: center; vertical-align: middle; }
.ebs .standings thead th { padding: .65rem .75rem; background: var(--ebs-head); border-bottom: 1px solid var(--ebs-line-strong); color: var(--ebs-muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ebs .standings thead th.c-main { color: var(--ebs-accent); }
.ebs .standings thead th abbr { font-size: inherit; }
.ebs .standings tbody td,
.ebs .standings tbody th { border-bottom: 1px solid var(--ebs-line); font-weight: 400; }
.ebs .standings tbody tr { background: linear-gradient(90deg, var(--ebs-row), rgba(0, 0, 0, 0)); transition: background .12s; }
.ebs .standings tbody tr.is-alt { background: linear-gradient(90deg, var(--ebs-row-even), rgba(0, 0, 0, 0)); }
.ebs .standings tbody tr:hover { background: linear-gradient(90deg, var(--ebs-row-hover), rgba(0, 0, 0, 0)); }
.ebs .standings tbody tr.is-top { background: linear-gradient(90deg, rgba(210, 27, 105, .3), rgba(0, 0, 0, 0)); }
.ebs .standings tbody tr:last-child > * { border-bottom: 0; }
.ebs .standings .c-pos { width: 44px; }
.ebs .standings tbody .c-pos { color: var(--ebs-muted); font-weight: 700; font-size: .8rem; }
.ebs .standings tbody tr.is-top .c-pos { color: var(--ebs-accent); }
.ebs .standings .c-team { text-align: left; }
.ebs .statlist .c-n { min-width: 44px; white-space: nowrap; }
.ebs .statlist .c-wide { min-width: 96px; }
.ebs .statlist .c-main { width: 64px; }
.ebs .pts { font-weight: 800; color: #fff; }
.ebs .statlist td.is-zero,
.ebs .statlist .muted { color: var(--ebs-faint); }
.ebs .statlist .muted { font-size: .75rem; }
.ebs .statlist td.c-wide { line-height: 1.15; }
.ebs .statlist td.c-wide .muted { display: block; margin-top: 2px; font-weight: 600; }
.ebs .statlist .c-hidden { display: none; }
.ebs .statlist .c-reason { max-width: 110px; white-space: normal; line-height: 1.15; }
.ebs .statlist .c-reason-t { text-align: left; white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.ebs .statlist .h-s { display: none; }
.ebs #panel-forlopp .statlist thead th { white-space: normal; line-height: 1.2; max-width: 120px; }
.ebs .statlist tfoot td,
.ebs .statlist tfoot th { background: var(--ebs-head); border-top: 1px solid var(--ebs-line-strong); font-weight: 700; }
.ebs .statlist tfoot th.c-team { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ebs-muted); }
.ebs .c-bar { width: 26%; }
.ebs .fp-bar { display: block; height: 6px; border-radius: 6px; background: var(--blue, #00627d); }

/* Detaljrad på mobil */
.ebs .statlist .c-exp,
.ebs .statlist .row-detail { display: none; }

/* ---------- Hörnor ---------- */
.ebs .switch { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin: 12px 20px; padding: 0; border: 0; background: none; color: #fff; font: 600 .8rem "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.ebs .switch__ui { position: relative; flex: none; width: 40px; height: 22px; border-radius: 22px; background: var(--ebs-pill); box-shadow: inset 0 0 0 1px var(--ebs-line-strong); transition: background .15s; }
.ebs .switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ebs-muted); transition: transform .15s; }
.ebs .switch[aria-checked="true"] .switch__ui { background: var(--ebs-accent); box-shadow: none; }
.ebs .switch[aria-checked="true"] .switch__ui::after { transform: translateX(18px); background: #fff; }
.ebs .corners .c-s,
.ebs .corners .corners__sides { display: none; }
.ebs .is-split .corners .c-s { display: table-cell; }
.ebs .is-split .corners .c-t { display: none; }
.ebs .is-split .corners .corners__sides { display: table-row; }
.ebs .corners thead tr.corners__groups th { padding: 8px 6px; color: #fff; border-bottom: 2px solid var(--text-meta, #9fecff); }
.ebs .corners thead tr.corners__groups th.g-def { border-bottom-color: var(--ebs-muted); }
.ebs .corners thead tr.corners__groups th:first-child { border-bottom: 0; }
.ebs .corners .g-first { box-shadow: inset 1px 0 0 var(--ebs-line); }
.ebs .corners .g-block { box-shadow: inset 2px 0 0 rgba(255, 255, 255, .18) !important; }
.ebs .corners thead tr.corners__groups th { box-shadow: none !important; }
.ebs .corners td.c-goal { font-weight: 800; color: #fff; }

/* ---------- Målminuter ---------- */
.ebs .minchart { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 16px 20px 24px; }
.ebs .minchart__half { display: flex; flex-direction: column; gap: 12px; }
.ebs .minchart__title { padding-bottom: 6px; border-bottom: 1px solid var(--ebs-line); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ebs-muted); }
.ebs .minchart__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: 170px; align-items: end; }
.ebs .minchart__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ebs .minchart__bar { display: flex; align-items: flex-start; justify-content: center; width: 100%; max-width: 92px; min-height: 30px; border-radius: .375rem .375rem 0 0; background: var(--blue-mid, #004b5d); }
.ebs .minchart__pct { padding-top: 8px; font-weight: 800; font-size: .95rem; line-height: 1; color: #fff; }
.ebs .minchart__l { margin-top: 6px; font-weight: 700; font-size: .8rem; }
.ebs .minchart__n { font-size: .75rem; color: var(--ebs-muted); }
.ebs .minchart__n b { color: #fff; }
.ebs .statlist td.c-min { padding-top: 6px; padding-bottom: 6px; }
.ebs .statlist .c-half { box-shadow: inset 1px 0 0 var(--ebs-line); }
.ebs .mm { display: inline-grid; grid-template-rows: auto 26px 26px auto; justify-items: center; width: 40px; }
.ebs .mm__f { margin-bottom: 3px; font-weight: 800; font-size: .9rem; line-height: 1.1; color: #fff; }
.ebs .mm__f.is-zero { color: var(--ebs-faint); }
.ebs .mm__a { margin-top: 3px; font-size: .75rem; line-height: 1.1; color: var(--ebs-muted); }
.ebs .mm__up,
.ebs .mm__dn { position: relative; width: 22px; height: 26px; }
.ebs .mm__up { border-bottom: 1px solid rgba(255, 255, 255, .35); }
.ebs .mm__up i,
.ebs .mm__dn i { position: absolute; left: 0; right: 0; display: block; }
.ebs .mm__up i { bottom: 0; background: var(--blue, #00627d); }
.ebs .mm__dn i { top: 0; background: rgba(184, 211, 220, .4); }

/* ---------- Publik ---------- */
.ebs .sub-title { margin: 0; padding: 1rem 20px; background: var(--ebs-head); border-top: 1px solid var(--ebs-line); border-bottom: 1px solid var(--ebs-line); font-size: .95rem; }
.ebs .att-top { margin: 0; padding: 0; list-style: none; }
.ebs .att-top a { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; min-height: 48px; padding: 0 20px; color: #fff; text-decoration: none; background: rgba(20, 84, 101, .2); border-bottom: 1px solid var(--ebs-line); }
.ebs .att-top li:nth-child(even) a { background: rgba(0, 0, 0, .2); }
.ebs .att-top a:hover { background: rgba(0, 216, 255, .08); }
.ebs .att-top__n { font-weight: 800; font-variant-numeric: tabular-nums; }
.ebs .att-top__d { font-size: .75rem; color: var(--ebs-muted); text-align: right; }

/* ---------- Rekord: rader som matchsidans info ---------- */
.ebs .records { margin: 0; padding: 0; list-style: none; }
.ebs .records li { display: block; }
.ebs .records__row { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 4px 16px; align-items: center; min-height: 56px; padding: 10px 20px; color: #fff; text-decoration: none; background: rgba(20, 84, 101, .2); border-bottom: 1px solid var(--ebs-line); }
.ebs .records li:nth-child(even) .records__row { background: rgba(0, 0, 0, .2); }
.ebs a.records__row:hover { background: rgba(0, 216, 255, .08); color: #fff; }
.ebs a.records__row:hover .records__t { text-decoration: underline; text-underline-offset: 3px; }
.ebs .records__k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ebs-muted); }
.ebs .records__t { font-size: .875rem; line-height: 1.35; color: var(--text, rgba(255, 255, 255, .92)); }
.ebs .records__v { font-size: 1.35rem; font-weight: 900; line-height: 1; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.ebs .records__v small { font-size: .55em; font-weight: 600; color: var(--ebs-muted); }

/* ---------- Övrigt ---------- */
.ebs .stat-note { margin: 0; padding: 12px 20px 16px; font-size: .75rem; color: var(--ebs-muted); max-width: 90ch; }
.ebs .empty { margin: 0; padding: 24px 20px; color: var(--ebs-muted); }
.ebs .stat-page > .stat-note { padding-left: 0; }

/* ---------- Tabellen ---------- */
.ebs-tabell .table-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.ebs-tabell .standings-list--archive .standings-row::before { background: none !important; }
.ebs-tabell .table-group-title { margin: 0; justify-content: flex-start; }
.ebs-tabell .table-logo.crest { width: 30px; height: 30px; }
.ebs-tabell .playoff-team .crest { width: 26px; height: 26px; }
.ebs-tabell .playoff-round .playoff-label { white-space: nowrap; }
.ebs-tabell .playoff-team-name .n-short { display: none; }
.ebs-tabell > .container > .stat-note { padding: 12px 0 0; }

/* ==========================================================================
   Surfplatta
   ========================================================================== */
@media (max-width: 1080px) {
	.ebs .hide-m { display: none; }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 720px) {
	.ebs .hide-s { display: none; }

	.ebs .stat-card__head { padding: .75rem 1rem; }
	.ebs .stat-card__head .elit-ui-title { width: 100%; }
	/* Panelens reglage på mobil: Visa och Lag delar bredden lika (rullgardinerna fyller sin halva) */
	/* Tredje raden på mobil: flikarna sveps, lagfiltret får hela bredden under */
	.ebs .stat-subbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
	.ebs .stat-subtabs { gap: 20px; padding: 0 4px; }
	.ebs .stat-subbar .filter select { width: 100% !important; }
	.ebs .stat-ctrl { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.ebs .stat-ctrl .filter { min-width: 0; }
	.ebs .stat-ctrl .filter select { width: 100% !important; min-width: 0; }
	.ebs .stat-ctrl .filter,
	.ebs .stat-ctrl .season-nav { min-width: 0; }
	.ebs .filter { flex-direction: column; align-items: stretch; gap: 4px; }
	.ebs .team-hero,
	.team-hero.ebs { --ebs-hero-gap: 20px; }
	.ebs .stat-page,
	.ebs-tabell > .container { padding-top: 20px !important; }
	.ebs .stat-hero-bar { gap: 10px; }
	.ebs .stat-hero-bar .season-nav__pick { width: auto; }
	/* Flikraden i sidhuvudet: en rad som går att svepa, inte två rader */
	.ebs .stat-seg.team-hero__tabs { flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; overscroll-behavior-x: none; scrollbar-width: none; border-radius: 999px; }
	.ebs .stat-seg.team-hero__tabs::-webkit-scrollbar { display: none; }
	.ebs .stat-seg .team-tab-btn { flex: 0 0 auto; padding: .4rem .8rem; font-size: .75rem; }

	/* Swipa i sidled: alla kolumner syns, rank och namn ligger kvar till vänster */
	.ebs .hide-s { display: revert; }
	.ebs .statlist .hide-s { display: table-cell; }
	.ebs .statlist .c-exp,
	.ebs .statlist .row-detail { display: none !important; }
	.ebs .statlist { width: max-content; min-width: 100%; }
	.ebs .standings tbody td,
	.ebs .standings tbody th { padding: .55rem 8px; }
	.ebs .standings thead th { padding-left: 8px; padding-right: 8px; font-size: .62rem; letter-spacing: .06em; }
	.ebs .statlist .c-pos { position: sticky; left: 0; z-index: 2; width: 34px; min-width: 34px; padding-left: 10px; padding-right: 2px; }
	.ebs .statlist .c-team { position: sticky; left: 34px; z-index: 2; max-width: 132px; box-shadow: 8px 0 10px -8px rgba(0, 0, 0, .7); }
	.ebs .corners thead tr.corners__groups th:first-child { position: sticky; left: 0; z-index: 3; background: var(--ebs-head); }
	.ebs .statlist thead .c-pos,
	.ebs .statlist thead .c-team,
	.ebs .statlist tfoot .c-pos,
	.ebs .statlist tfoot .c-team { background: var(--ebs-head); }
	.ebs .statlist tbody .c-pos,
	.ebs .statlist tbody .c-team { background: #0b2c36; }
	.ebs .statlist tbody tr.is-alt .c-pos,
	.ebs .statlist tbody tr.is-alt .c-team { background: #072029; }
	.ebs .statlist tbody tr.is-top .c-pos,
	.ebs .statlist tbody tr.is-top .c-team { background: #421f3d; }
	.ebs .statlist .team { gap: 8px; }
	.ebs .statlist .crest { width: 22px; height: 22px; }
	/* Spelarnamn: förnamn och efternamn på var sin rad, för långt blir punkter.
	   Tryck på ett namn: alla namn fälls ihop till en rad (med punkter). Tryck igen: två rader. */
	.ebs .statlist .player .team__name { display: block; max-width: 104px; line-height: 1.2; }
	.ebs .statlist .player .n-first,
	.ebs .statlist .player .n-last { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.ebs .statlist .player .n-sp { display: none; }
	.ebs.names-1 .statlist .player .team__name { max-width: 92px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.ebs.names-1 .statlist .player .n-first,
	.ebs.names-1 .statlist .player .n-last { display: inline; }
	.ebs.names-1 .statlist .player .n-sp { display: inline; }
	.ebs .statlist--player tbody tr { cursor: pointer; -webkit-tap-highlight-color: transparent; }
	/* Lag: förkortningen syns hela tiden */
	.ebs .statlist .team > .team__name { display: none; }
	.ebs .statlist .team__code { display: inline; font-weight: 800; color: #fff; }
	.ebs .statlist .h-l { display: none; }
	.ebs .statlist .h-s { display: inline; }
	.ebs .statlist .c-n { min-width: 40px; }

	.ebs .minchart { gap: 14px; padding: 12px 12px 18px; }
	.ebs .minchart__bars { gap: 6px; height: 140px; }
	.ebs .minchart__pct { font-size: .8rem; padding-top: 6px; }
	.ebs .minchart__l,
	.ebs .minchart__n { font-size: .65rem; }
	.ebs #panel-minuter .statlist thead th { font-size: .55rem; letter-spacing: 0; padding-left: 1px; padding-right: 1px; }
	.ebs #panel-minuter .statlist .c-n { min-width: 58px; padding-left: 2px; padding-right: 2px; }
	.ebs .mm { width: 28px; grid-template-rows: auto 20px 20px auto; }
	.ebs .mm__up,
	.ebs .mm__dn { width: 14px; height: 20px; }
	.ebs .mm__f { font-size: .8rem; }

	.ebs .att-top a { grid-template-columns: 64px 1fr; padding: 8px 14px; }
	.ebs .att-top__d { grid-column: 2; text-align: left; }

	.ebs .records__row { grid-template-columns: 1fr auto; grid-template-areas: "k v" "t v"; padding: 10px 14px; }
	.ebs .records__k { grid-area: k; }
	.ebs .records__t { grid-area: t; }
	.ebs .records__v { grid-area: v; }

	.ebs-tabell .table-bar { justify-content: stretch; }
	.ebs-tabell .playoff-team-name .n-full { display: none; }
	.ebs-tabell .playoff-team-name .n-short { display: inline; font-weight: 700; }
	.ebs-tabell .table-bar .season-nav,
	.ebs-tabell .table-bar .filter { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ebs * { transition: none !important; }
}

/* Infopluppar i rubriker (dator): ett i i rubriken, förklaringen i en ruta vid hovring. Mobil behåller texten under tabellen. */
.ebs .tip-i { display: none; }
.ebs-tip { position: fixed; z-index: 9999; max-width: 260px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: #002a34; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); color: #fff; font: 400 13px/1.45 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; pointer-events: none; }
@media (hover: hover) and (min-width: 721px) {
	.ebs .tip-i { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 5px; border: 1px solid currentColor; border-radius: 50%; font: 700 9px/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; vertical-align: 1px; opacity: .7; }
	.ebs [data-tip] { cursor: help; }
	.ebs .stat-note--tips { display: none; }
}

/* Publik: lagtabellen och Största publiken som två egna block med luft emellan */
.ebs .stat-card:has(#panel-publik:not([hidden])) { background: none; border: 0; box-shadow: none; overflow: visible; }
.ebs .stat-card:has(#panel-publik:not([hidden])) > .stat-card__head { border: 1px solid var(--border); }
.ebs #panel-publik .att-part { background: linear-gradient(180deg, #00151a, rgb(0 0 0 / 24%)); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 .375rem .375rem; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.ebs #panel-publik .att-part--top { margin-top: 24px; border-top: 1px solid var(--border); border-radius: .375rem; }
.ebs #panel-publik .att-part--top .sub-title { border-top: 0; background: var(--surface-dark); }

/* Rubriker som inte får plats (dator): korta namnet om det finns, annars tätare text – aldrig klippt eller tre prickar */
@media (min-width: 721px) {
	.ebs .statlist th.is-tight { letter-spacing: .02em; font-size: .62rem; padding-left: 2px; padding-right: 2px; }
	.ebs .statlist th.is-tight.has-short .h-l { display: none; }
	.ebs .statlist th.is-tight.has-short .h-s { display: inline; }
	.ebs .statlist .h-tip { white-space: nowrap; }
}

/* Rekord på dator: kort i ett rutnät (rubrik, stort värde, vem/vilken match) */
@media (min-width: 721px) {
	.ebs .records { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 20px; }
	.ebs .records__row,
	.ebs .records li:nth-child(even) .records__row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; min-height: 0; padding: 18px 20px 20px; border: 1px solid var(--ebs-line); border-radius: .375rem; background: rgba(20, 84, 101, .22); }
	.ebs a.records__row:hover { border-color: rgba(255, 255, 255, .25); }
	.ebs .records__k { order: 1; }
	.ebs .records__v { order: 2; font-size: 2.25rem; text-align: left; }
	.ebs .records__t { order: 3; color: var(--ebs-muted); }
}

/* Målminuter: värmekarta */
.ebs .hm { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 36px; padding: 0 8px; border-radius: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ebs .hm { font-weight: 600; color: #fff; }
.ebs #panel-minuter td.c-min { padding: 6px 3px; }
.ebs #panel-minuter td.c-half { padding-left: 10px; }
@media (max-width: 720px) {
	.ebs .hm { min-width: 52px; height: 32px; padding: 0 5px; font-size: .8rem; }
}

/* Tabellen: Totalt/Hemma/Borta, form och länk till lagstatistiken */
.ebs .league-table__bar { margin-bottom: 20px; }
.ebs .league-table__bar:empty { display: none; }
.ebs .standings-list.has-form .form-col { width: 150px; flex: none; display: flex; justify-content: center; }
.ebs .form { display: inline-flex; gap: 4px; }
.ebs .form__i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; }
.ebs .form__i--v { background: #1f9d6b; }
.ebs .form__i--o { background: #5b8590; }
.ebs .form__i--f { background: #d4483b; }
.ebs .form__i--none { background: rgba(255, 255, 255, .06); }
.ebs .league-table__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -8px 0 24px; font-size: .75rem; color: var(--ebs-muted); }
.ebs .league-table__more { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; }
.ebs .league-table__more:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
@media (max-width: 768px) {
	.ebs .standings-list.has-form .form-col { width: 58px; }
	.ebs .standings-head .form-col { font-size: .65rem; }
	.ebs .form { gap: 3px; }
	.ebs .form__i { width: 8px; height: 8px; border-radius: 50%; font-size: 0; }
	.ebs .league-table__foot { flex-direction: column; align-items: stretch; text-align: center; }
	.ebs .league-table__more { justify-content: center; }
}

/* Tabellen: inte bredare än vad kolumnerna behöver på stora skärmar */
.ebs-tabell .tab-content,
.ebs-tabell > .container > .stat-note { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* Tabellen: Mer lagstatistik i raden med Totalt/Hemma/Borta, i samma stil som lagfiltret på statistiksidan */
.ebs-tabell .league-table__bar .league-table__more { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 999px; background: #002a34; color: #fff; font: 600 .875rem "Inter", sans-serif; text-decoration: none; }
.ebs-tabell .league-table__bar .league-table__more:hover { border-color: rgba(255, 255, 255, .25); color: #fff; }
.ebs-tabell .league-table__bar .league-table__more span { color: var(--ebs-muted); }
.ebs-tabell .league-table__foot { margin: -8px 0 24px; }

/* ==========================================================================
   Grafisk profil 2026 (Petrol) – statistik- och tabellsidan (body.es-sub)
   En blågrön kulör (petrol), en rosa accent, inga linjer, rundat ytterst och rakt inuti.
   ========================================================================== */
body.es-sub .ebs {
	--ebs-line: transparent;
	--ebs-line-strong: transparent;
	--ebs-muted: #b1dae1;
	--ebs-faint: rgba(177, 218, 225, .55);
	--ebs-head: #00151a;
	--ebs-pill: rgba(0, 98, 125, .28);
	--es-list: rgba(0, 98, 125, .12);
	--es-stripe: rgba(0, 98, 125, .3);
	--es-hover: rgba(0, 98, 125, .55);
	--es-solid: #032b37;
	--es-shadow: 0 6px 16px rgba(0, 0, 0, .25);
	color: #fff;
}

/* Reglage: Herr/Dam, flikar och rullgardiner i samma petrol, utan ramar */
body.es-sub .ebs .series-switch,
body.es-sub .ebs .team-hero__tabs { border: 0 !important; background: var(--ebs-pill) !important; box-shadow: var(--es-shadow); }
body.es-sub .ebs .team-tab-btn { color: var(--ebs-muted); }
body.es-sub .ebs .team-tab-btn:hover { background: rgba(0, 98, 125, .3); color: #fff; }
body.es-sub .ebs .team-tab-btn.active,
body.es-sub .ebs .stat-seg .team-tab-btn[aria-selected="true"] { background: #d21b69; color: #fff; }
body.es-sub .ebs .filter select { border: 0; background-color: var(--ebs-pill); box-shadow: var(--es-shadow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5' fill='none' stroke='%23b1dae1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.es-sub .ebs .filter select:hover { background-color: rgba(0, 98, 125, .4); }
body.es-sub .ebs .filter select:focus-visible { box-shadow: 0 0 0 2px #d21b69; }
body.es-sub .ebs .filter select option { background: #032b37; }

/* Undernivå (Poängliga/Målen/Utvisningar, Totalt/Hemma/Borta): ingen understrykning – rosa boll som i menyn */
body.es-sub .ebs .stat-subtabs { border-bottom: 0; gap: 22px; }
body.es-sub .ebs .stat-subtabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px; font: 700 12px/1.5 "Inter", sans-serif; letter-spacing: .72px; text-transform: uppercase; color: var(--ebs-muted); }
body.es-sub .ebs .stat-subtabs [role="tab"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background-color .15s; }
body.es-sub .ebs .stat-subtabs [role="tab"]:hover::before { background: rgba(210, 27, 105, .55); }
body.es-sub .ebs .stat-subtabs [role="tab"][aria-selected="true"] { color: #fff; box-shadow: none; }
body.es-sub .ebs .stat-subtabs [role="tab"][aria-selected="true"]::before { background: #d21b69; }

/* Länk vidare (Mer lagstatistik →) som profilens länkar */
body.es-sub .ebs .league-table__more,
body.es-sub.ebs-tabell .league-table__bar .league-table__more,
body.es-sub .ebs-tabell .league-table__bar .league-table__more { height: auto; min-height: 0; padding: 0; border: 0 !important; border-radius: 0; background: none !important; color: #b1dae1 !important; font: 700 12px/1.5 "Inter", sans-serif !important; letter-spacing: .72px; text-transform: uppercase; white-space: nowrap; gap: 6px; }
body.es-sub .ebs .league-table__more:hover { color: #fff !important; }
body.es-sub .ebs .league-table__more span[aria-hidden] { display: inline-block; width: 15px; height: 15px; font-size: 0; color: inherit !important; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='skewX(-14) translate(3 0)' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h16M14 7l5 5-5 5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='skewX(-14) translate(3 0)' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h16M14 7l5 5-5 5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

/* Paneler: mörk rubrikrad, petrol-kropp, rundat ytterst, skugga i stället för ramar */
body.es-sub .ebs .elit-ui-card,
body.es-sub .ebs .stat-card { border: 0 !important; border-radius: 8px; background: var(--es-list) !important; box-shadow: var(--es-shadow) !important; overflow: hidden; }
body.es-sub .ebs .elit-ui-header,
body.es-sub .ebs .stat-card__head { border-bottom: 0 !important; background: var(--ebs-head); border-radius: 8px 8px 0 0; }
body.es-sub .ebs .elit-ui-title { color: #fff; }

/* Statistiktabeller: kolumnrubriker vita i rubrikstilen, sorterad kolumn markeras med pil (inte rosa text) */
body.es-sub .ebs .standings thead th { border-bottom: 0; background: var(--ebs-head); color: #fff; font: 900 13px/1.2 "trade-gothic-next-condensed", "Tourney", sans-serif; letter-spacing: normal; }
body.es-sub .ebs .standings thead th.c-main { color: #fff; }
body.es-sub .ebs th[data-col]:not([aria-sort]) .th-sort { color: var(--ebs-muted); }
body.es-sub .ebs .standings tbody td,
body.es-sub .ebs .standings tbody th { border-bottom: 0; color: #fff; }
body.es-sub .ebs .standings tbody tr { background: none; }
body.es-sub .ebs .standings tbody tr.is-alt { background: linear-gradient(90deg, var(--es-stripe), rgba(0, 98, 125, 0)); }
body.es-sub .ebs .standings tbody tr:hover { background: linear-gradient(90deg, var(--es-hover), rgba(0, 98, 125, 0)); }
body.es-sub .ebs .standings tbody tr.is-top { background: linear-gradient(90deg, #d21b69, rgba(210, 27, 105, 0)); }
body.es-sub .ebs .standings tbody .c-pos { color: var(--ebs-muted); }
body.es-sub .ebs .standings tbody tr.is-top .c-pos { color: #fff; }
body.es-sub .ebs .statlist tfoot td,
body.es-sub .ebs .statlist tfoot th { border-top: 0; }
body.es-sub .ebs .stat-divider { border-top: 0; }
body.es-sub .ebs .sub-title { border: 0; }
body.es-sub .ebs .fp-bar { background: #00627d; }
@media (max-width: 720px) {
	body.es-sub .ebs .statlist tbody .c-pos,
	body.es-sub .ebs .statlist tbody .c-team { background: #001f28; }
	body.es-sub .ebs .statlist tbody tr.is-alt .c-pos,
	body.es-sub .ebs .statlist tbody tr.is-alt .c-team { background: #003341; }
	body.es-sub .ebs .statlist tbody tr.is-top .c-pos,
	body.es-sub .ebs .statlist tbody tr.is-top .c-team { background: #c51b64; }
	body.es-sub .ebs .statlist .c-team { box-shadow: 8px 0 10px -8px rgba(0, 0, 0, .5); }
}

/* Serietabellen (tabellsidan): som startsidans tabell */
body.es-sub .ebs .standings-list { border: 0; border-radius: 8px; overflow: hidden; background: var(--es-list) !important; box-shadow: var(--es-shadow); }
body.es-sub .ebs .standings-list .standings-row { border-bottom: 0 !important; color: #fff; }
body.es-sub .ebs .standings-list .standings-row:not(.standings-head):not(.active) { background: none !important; }
body.es-sub .ebs .standings-list .standings-row:not(.standings-head):not(.active):nth-child(even) { background: linear-gradient(90deg, var(--es-stripe), rgba(0, 98, 125, 0)) !important; }
body.es-sub .ebs .standings-list .standings-row:not(.standings-head):not(.active):hover { background: linear-gradient(90deg, var(--es-hover), rgba(0, 98, 125, 0)) !important; transform: none; }
body.es-sub .ebs .standings-list .standings-row.active { background: linear-gradient(90deg, #d21b69, rgba(210, 27, 105, 0)) !important; }
body.es-sub .ebs .standings-list .standings-row a,
body.es-sub .ebs .standings-list .table-rank { color: #fff; }
body.es-sub .ebs .standings-list .standings-head { background: var(--ebs-head) !important; }
body.es-sub .ebs .form__i--none { background: rgba(0, 98, 125, .3); }

/* Slutspel, publik, rekord, hörnor: samma ytor utan linjer */
body.es-sub .ebs .att-top a,
body.es-sub .ebs .records__row { border-bottom: 0; background: none; }
body.es-sub .ebs .att-top li:nth-child(even) a,
body.es-sub .ebs .records li:nth-child(even) .records__row { background: linear-gradient(90deg, var(--es-stripe), rgba(0, 98, 125, 0)); }
body.es-sub .ebs .att-top a:hover,
body.es-sub .ebs a.records__row:hover { background: linear-gradient(90deg, var(--es-hover), rgba(0, 98, 125, 0)); }
body.es-sub .ebs #panel-publik .att-part { border: 0; background: var(--es-list); box-shadow: var(--es-shadow); border-radius: 0 0 8px 8px; }
body.es-sub .ebs #panel-publik .att-part--top { border-radius: 8px; }
body.es-sub .ebs .stat-card:has(#panel-publik:not([hidden])) > .stat-card__head { border: 0; }
@media (min-width: 721px) {
	body.es-sub .ebs .records__row,
	body.es-sub .ebs .records li:nth-child(even) .records__row { border: 0; border-radius: 8px; background: rgba(0, 98, 125, .28); box-shadow: var(--es-shadow); }
	body.es-sub .ebs a.records__row:hover { background: linear-gradient(90deg, var(--es-hover), rgba(0, 98, 125, 0)), rgba(0, 98, 125, .28); }
}
body.es-sub .ebs .corners thead tr.corners__groups th { border-bottom: 0; background: rgba(0, 98, 125, .28); }
body.es-sub .ebs .corners thead tr.corners__groups th:first-child { background: var(--ebs-head); }
body.es-sub .ebs .corners .g-first,
body.es-sub .ebs .corners .g-block,
body.es-sub .ebs .statlist .c-half { box-shadow: none !important; }
body.es-sub .ebs .minchart__title { border-bottom: 0; }
body.es-sub .ebs .minchart__bar,
body.es-sub .ebs .mm__up i { background: #00627d; }
body.es-sub .ebs .switch__ui { background: var(--es-solid); box-shadow: none; }

/* Små rutor och knappar */
body.es-sub .ebs .stat-pager__btn { border: 0; background: var(--es-solid); box-shadow: var(--es-shadow); }
body.es-sub .ebs .stat-pager__btn:hover:not(:disabled) { background: #d21b69; }
body.es-sub .ebs-tip,
body.es-sub .ebs-tip { border: 0; border-radius: 8px; background: #032b37; }
body.es-sub .ebs .tip-i { border: 0; background: rgba(177, 218, 225, .2); opacity: 1; color: #b1dae1; }
/* Nollor och sekundära värden dämpade */
body.es-sub .ebs .standings tbody td.is-zero,
body.es-sub .ebs .standings tbody .muted { color: var(--ebs-faint); }
/* Tabellen: Mer lagstatistik → till höger i samma rad, flikarna kvar i mitten */
@media (min-width: 721px) {
	body.es-sub .ebs .league-table__bar { position: relative; }
	body.es-sub .ebs .league-table__bar .league-table__more { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
}

/* ---- Profil 2026, omgång 2 ---- */
/* Spelarlistor: 25 rader, sedan "Visa alla" */
body.es-sub .ebs .statlist tbody tr.is-cut { display: none; }
body.es-sub .ebs .ebs-showall { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; background: none; color: #b1dae1; font: 700 12px/1.5 "Inter", sans-serif; letter-spacing: .72px; text-transform: uppercase; cursor: pointer; }
body.es-sub .ebs .ebs-showall::after { content: ""; width: 12px; height: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
body.es-sub .ebs .ebs-showall:hover { color: #fff; background: linear-gradient(90deg, rgba(0, 98, 125, 0), rgba(0, 98, 125, .3), rgba(0, 98, 125, 0)); }
body.es-sub .ebs .ebs-showall:focus-visible { outline: 2px solid #d21b69; outline-offset: -2px; }
body.es-sub .ebs .ebs-showall[hidden] { display: none; }

/* Breda statistiktabeller: ledarens rosa tonar ut vid halva raden */
body.es-sub .ebs .statlist tbody tr.is-top { background: linear-gradient(90deg, #d21b69, rgba(210, 27, 105, 0) 50%); }
@media (max-width: 720px) {
	body.es-sub .ebs .statlist tbody tr.is-top .c-pos { background: linear-gradient(90deg, #d21b69, #bd1b61); }
	body.es-sub .ebs .statlist tbody tr.is-top .c-team { background: linear-gradient(90deg, #bd1b61, #6d1e4a); }
}
/* Målminuter: ingen vinnare – raderna randas som vanligt */
body.es-sub .ebs #panel-minuter .statlist tbody tr.is-top { background-image: none; }
body.es-sub .ebs #panel-minuter .statlist tbody tr.is-top.is-alt { background: linear-gradient(90deg, var(--es-stripe), rgba(0, 98, 125, 0)); }
body.es-sub .ebs #panel-minuter .statlist tbody tr.is-top .c-pos { color: var(--ebs-muted); }
@media (max-width: 720px) {
	body.es-sub .ebs #panel-minuter .statlist tbody tr.is-top .c-pos,
	body.es-sub .ebs #panel-minuter .statlist tbody tr.is-top .c-team { background: #001e26; }
}

/* Hörnor: grupperna skiljs med luft och ton, inte med streck */
body.es-sub .ebs .corners thead tr.corners__groups th.g-first,
body.es-sub .ebs .corners thead tr.corners__sides th.g-first { box-shadow: inset 8px 0 0 #00151a !important; }
body.es-sub .ebs .corners thead tr.corners__sides th { background: rgba(0, 98, 125, .14); }
body.es-sub .ebs .corners thead tr.corners__sides th:first-child { background: var(--ebs-head); }
body.es-sub .ebs .corners .g-first { padding-left: 22px; }
body.es-sub .ebs .corners tbody td.g-def { background: rgba(0, 98, 125, .1); }

/* Serietabellen: hela ord när det finns plats, jämnt fördelade kolumner */
body.es-sub .ebs .standings-head .h-s { display: none; }
@media (min-width: 1081px) {
	body.es-sub .ebs .standings-list .standings-row > .team { flex: 0 0 30% !important; min-width: 0; }
	body.es-sub .ebs .standings-list .standings-row > .stat,
	body.es-sub .ebs .standings-list .standings-row > .goals { flex: 1 1 0; width: auto; text-align: center; }
	body.es-sub .ebs .standings-list .standings-row > .stat:last-child { flex: 0.8 1 0; text-align: right; }
	body.es-sub .ebs .standings-list.has-form .standings-row > .form-col { flex: 1.6 1 0; width: auto; }
}
@media (max-width: 1080px) {
	body.es-sub .ebs .standings-head .h-l { display: none; }
	body.es-sub .ebs .standings-head .h-s { display: inline; }
}
/* Serietabellen: lägre rader (64 → 48 px), samma som på mobil */
body.es-sub .ebs .standings-list .standings-row:not(.standings-head) { min-height: 48px; }
/* Lagstatistiken: ingen rosa etta – raderna randas som vanligt (rosa ledare bara i spelarlistor) */
body.es-sub .ebs .statlist--team tbody tr.is-top { background-image: none; }
body.es-sub .ebs .statlist--team tbody tr.is-top.is-alt { background: linear-gradient(90deg, var(--es-stripe), rgba(0, 98, 125, 0)); }
body.es-sub .ebs .statlist--team tbody tr.is-top:hover { background: linear-gradient(90deg, var(--es-hover), rgba(0, 98, 125, 0)); }
body.es-sub .ebs .statlist--team tbody tr.is-top .c-pos { color: var(--ebs-muted); }
@media (max-width: 720px) {
	body.es-sub .ebs .statlist--team tbody tr.is-top .c-pos,
	body.es-sub .ebs .statlist--team tbody tr.is-top .c-team { background: #001e26; }
}
/* Tabellsidan: Tabell/Slutspel i samma rad som Herr/Dam och säsong (bryts till egen rad på mobil) */
body.es-sub .ebs .stat-hero-bar .team-hero__tabs { margin: 0; }

/* Hörnor: reglagen i en rad som hör till rubriken; med vänster/höger visas anfall eller försvar (K3) */
.ebs .corner-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 20px 12px; background: #00151a; }
.ebs .corner-ctrl .switch { margin: 0; }
.ebs .corner-side { display: none; gap: 4px; padding: 4px; margin-right: auto; border-radius: 999px; background: rgba(0, 98, 125, .28); }
.ebs .is-split .corner-side { display: inline-flex; }
.ebs .corner-side button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #b1dae1; font: 700 12px/1 "Inter", sans-serif; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.ebs .corner-side button[aria-pressed="true"] { background: #d21b69; color: #fff; }
.ebs .corner-side button:focus-visible { outline: 2px solid #d21b69; outline-offset: 2px; }
.ebs .is-split .corners tr.corners__groups { display: none; }
.ebs .is-split:not(.show-def) .corners .g-def,
.ebs .is-split.show-def .corners .g-att { display: none !important; }
body.es-sub .ebs .is-split .corners tbody td.g-def { background: none; }
body.es-sub .ebs .is-split .corners thead tr.corners__sides th.g-first { box-shadow: inset 8px 0 0 #00151a !important; }
@media (max-width: 720px) {
	.ebs .corner-ctrl { flex-wrap: wrap; justify-content: space-between; padding: 0 14px 12px; }
}
/* Tabellsidan: Tabell/Slutspel som underflikar med rosa boll (skiljer sig från Herr/Dam bredvid) */
body.es-sub .ebs .stat-hero-bar .team-hero__tabs { align-items: center; gap: 18px; padding: 0 6px; background: none !important; box-shadow: none !important; border: 0; }
body.es-sub .ebs .stat-hero-bar .team-tab-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 2px; border-radius: 0; background: none !important; color: #b1dae1; font: 700 12px/1.5 "Inter", sans-serif; letter-spacing: .72px; text-transform: uppercase; }
body.es-sub .ebs .stat-hero-bar .team-tab-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background-color .15s; }
body.es-sub .ebs .stat-hero-bar .team-tab-btn:hover { color: #fff; }
body.es-sub .ebs .stat-hero-bar .team-tab-btn:hover::before { background: rgba(210, 27, 105, .55); }
body.es-sub .ebs .stat-hero-bar .team-tab-btn.active { color: #fff; }
body.es-sub .ebs .stat-hero-bar .team-tab-btn.active::before { background: #d21b69; }
/* Hörnor enligt skiss K3: reglagen tillsammans till vänster, Vänster/Höger som etiketter utan band, luft mellan grupperna */
.ebs .corner-ctrl { justify-content: flex-start; gap: 20px; }
.ebs .corner-side { margin-right: 0; }
body.es-sub .ebs .corners thead tr.corners__sides th,
body.es-sub .ebs .corners thead tr.corners__groups th { background: var(--ebs-head) !important; box-shadow: none !important; padding-top: 10px; padding-bottom: 2px; font: 700 11px/1.5 "Inter", sans-serif; letter-spacing: .72px; text-transform: uppercase; color: #b1dae1; }
body.es-sub .ebs .corners .g-first { padding-left: 32px; }
body.es-sub .ebs .corners tbody td.g-def { background: none; }
/* Målvakter: "Mindre speltid" avdelas som en egen rubrikrad med luft ovanför (i stället för strecket) */
body.es-sub .ebs .stat-divider { margin-top: 28px; padding: 14px 20px 12px; background: var(--ebs-head); border-top: 0; font: 900 15.2px/1.2 "trade-gothic-next-condensed", "Tourney", sans-serif; letter-spacing: normal; color: #fff; }
body.es-sub .ebs .stat-divider span { font: 700 11px/1.5 "Inter", sans-serif; letter-spacing: .72px; text-transform: uppercase; color: #b1dae1; }
/* Under avdelaren (mindre speltid) finns ingen ledare – ingen rosa rad */
body.es-sub .ebs .stat-divider ~ * tbody tr.is-top { background-image: none; }
body.es-sub .ebs .stat-divider ~ * tbody tr.is-top .c-pos { color: var(--ebs-muted); }
@media (max-width: 720px) {
	body.es-sub .ebs .stat-divider ~ * tbody tr.is-top .c-pos,
	body.es-sub .ebs .stat-divider ~ * tbody tr.is-top .c-team { background: #001e26; }
}
/* Hörnor: reglagen tillsammans till höger */
.ebs .corner-ctrl { justify-content: flex-end; }
/* Tabellsidan mobil: alla kolumner, sidsvep, # och lag ligger fast; poängen direkt efter laget */
@media (max-width: 768px) {
	body.es-sub .ebs .standings-list { overflow-x: auto; overscroll-behavior-x: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	body.es-sub .ebs .standings-list::-webkit-scrollbar { display: none; }
	body.es-sub .ebs .standings-list .standings-row { min-width: 600px; padding-left: 0; padding-right: 12px; }
	body.es-sub .ebs .standings-list .standings-row > div:nth-child(4),
	body.es-sub .ebs .standings-list .standings-row > div:nth-child(5),
	body.es-sub .ebs .standings-list .standings-row > div:nth-child(6),
	body.es-sub .ebs .standings-list .standings-row > .goals { display: block !important; }
	body.es-sub .ebs .standings-list .standings-row > .rank { order: -3; position: sticky; left: 0; z-index: 2; flex: 0 0 34px; width: 34px; align-self: stretch; display: flex; align-items: center; padding-left: 12px; }
	body.es-sub .ebs .standings-list .standings-row > .team { order: -2; position: sticky; left: 34px; z-index: 2; flex: 0 0 150px !important; width: 150px; align-self: stretch; display: flex; align-items: center; box-shadow: 8px 0 10px -8px rgba(0, 0, 0, .5); }
	body.es-sub .ebs .standings-list .standings-row > .stat:last-child { order: -1; flex: 0 0 44px; text-align: center; font-weight: 800; }
	body.es-sub .ebs .standings-list .standings-row > .stat,
	body.es-sub .ebs .standings-list .standings-row > .goals { flex: 1 0 48px; text-align: center; }
	body.es-sub .ebs .standings-list .standings-row > .team a,
	body.es-sub .ebs .standings-list .standings-row > .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	/* fasta cellernas täckande ton = radens ton */
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head) > .rank,
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head) > .team { background: #001e26; }
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head):not(.active):nth-child(even) { background: #00323f !important; }
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head):nth-child(even) > .rank,
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head):nth-child(even) > .team { background: #00323f; }
	body.es-sub .ebs .standings-list .standings-row.active > .rank { background: linear-gradient(90deg, #d21b69, #c81b66); }
	body.es-sub .ebs .standings-list .standings-row.active > .team { background: linear-gradient(90deg, #c81b66, #a21c5a); }
	body.es-sub .ebs .standings-list .standings-head > .rank,
	body.es-sub .ebs .standings-list .standings-head > .team { background: #00151a; }
	/* zonstrecket följer med de fasta cellerna */
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head)::before { z-index: 3; position: sticky; left: 0; flex: 0 0 3px; margin-right: -3px; align-self: stretch; order: -4; }
	/* Totalt/Hemma/Borta och lagstatistiken på samma rad */
	body.es-sub .ebs .league-table__bar { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
	body.es-sub .ebs .league-table__bar .stat-subtabs { gap: 14px; padding: 0; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
	body.es-sub .ebs .league-table__bar .league-table__more { justify-content: flex-end; flex: 0 0 auto; white-space: nowrap; }
	body.es-sub .ebs .league-table__bar .league-table__more .ltm-word { display: none; }
}

/* Svepbara tabeller på mobil: det som sveps in under de fasta kolumnerna ska aldrig synas eller krocka.
   Randen blir platt (ingen fade) så att fasta cellernas ton är exakt radens ton i hela svepet,
   alla rubrikrader har fasta celler och kanten markeras med skugga i stället för streck.
   Raderna är täckande (sidans bakgrundsglöd ligger fast i fönstret och skulle annars skilja sig från de fasta cellerna). */
@media (max-width: 768px) {
	body.es-sub .ebs .statlist tbody tr,
	body.es-sub .ebs .statlist tbody tr.is-top { background-color: #001e26; }
	body.es-sub .ebs .standings-list .standings-row:not(.standings-head):not(.active) { background-color: #001e26; }
	body.es-sub .ebs .statlist tbody tr.is-alt { background: #00323f !important; }
	body.es-sub .ebs .statlist tbody .c-pos,
	body.es-sub .ebs .statlist tbody .c-team { background: #001e26; }
	body.es-sub .ebs .statlist tbody tr.is-alt .c-pos,
	body.es-sub .ebs .statlist tbody tr.is-alt .c-team { background: #00323f; }
	body.es-sub .ebs .statlist thead tr > :first-child { position: sticky; left: 0; z-index: 3; background: var(--ebs-head); }
	body.es-sub .ebs .statlist .c-team,
	body.es-sub .ebs .statlist thead tr > :first-child[colspan="2"] { box-shadow: 10px 0 12px -8px rgba(0, 0, 0, .75); }
	body.es-sub .ebs .statlist thead .c-team { z-index: 3; }
	body.es-sub .ebs .statlist .c-team + * { padding-left: 14px; }
	body.es-sub .ebs .table-scroll { overscroll-behavior-x: none; }
}
@media (max-width: 768px) {
	body.es-sub .ebs .table-scroll,
	body.es-sub .ebs .standings-list { scroll-snap-type: x mandatory; }
	body.es-sub .ebs .statlist thead tr:last-child > th,
	body.es-sub .ebs .standings-list .standings-head > * { scroll-snap-align: start; }
	body.es-sub .ebs .statlist .c-team,
	body.es-sub .ebs .statlist thead tr > :first-child[colspan="2"],
	body.es-sub .ebs .standings-list .standings-row > .team { box-shadow: none; transition: box-shadow .15s; }
	body.es-sub .ebs .is-swiped .statlist .c-team,
	body.es-sub .ebs .is-swiped .statlist thead tr > :first-child[colspan="2"],
	body.es-sub .ebs .standings-list.is-swiped .standings-row > .team { box-shadow: 8px 0 10px -4px rgba(0, 0, 0, .55); }
}

/* Lagnamn i tabellen: fullt namn, förkortning bara på tabellsidan i mobil (fälls ut med "Lag" i rubriken) */
.ebs .t-s,
.ebs .lt-names,
.t-s { display: none; }
@media (max-width: 768px) {
	body.es-sub .ebs .standings-list .lt-head { display: none; }
	body.es-sub .ebs .standings-list .lt-names { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
	body.es-sub .ebs .standings-list .lt-names:focus { outline: none; }
	body.es-sub .ebs .standings-list .lt-names:focus-visible { outline: 2px solid #d21b69; outline-offset: 2px; border-radius: 4px; }
	body.es-sub .ebs .standings-list .lt-names__ico { width: 7px; height: 7px; border-right: 2px solid #d21b69; border-bottom: 2px solid #d21b69; transform: rotate(-45deg); transition: transform .2s; }
	body.es-sub .ebs .standings-list.show-names .lt-names__ico { transform: rotate(135deg); }
	body.es-sub .ebs .standings-list:not(.show-names) .standings-row > .team { flex: 0 0 96px !important; width: 96px; }
	body.es-sub .ebs .standings-list:not(.show-names) .t-l { display: none; }
	body.es-sub .ebs .standings-list:not(.show-names) .t-s { display: inline; letter-spacing: .02em; }
	body.es-sub .ebs .standings-list.show-names .standings-row > .team { flex: 0 0 172px !important; width: 172px; }
	body.es-sub .ebs .standings-list .standings-row > .team { transition: flex-basis .2s, width .2s; }
	body.es-sub .ebs .standings-list:not(.show-names) .standings-row { min-width: 520px; }
}
