/* Live (js/live.js) – Petrol-profilen: en petrolton i olika styrkor, rosa som enda accent, inga linjer */
#es-live { --lv-s: rgba(0, 98, 125, .28); --lv-s2: rgba(0, 98, 125, .45); --lv-pink: #d21b69; --lv-ice: #b1dae1; max-width: 1170px; margin: 0 auto; padding: 8px 16px 96px; color: #fff; font-family: Inter, sans-serif; }
#es-live button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.lv-main { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.lv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lv-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--lv-pink); font-size: 12px; font-weight: 800; letter-spacing: .72px; }
.lv-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lv-pulse 1.4s infinite; }
@keyframes lv-pulse { 50% { opacity: .25; } }
.lv-top__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--lv-s); color: var(--lv-ice) !important; font-size: 12px !important; font-weight: 700 !important; }
.lv-tool.is-on { background: var(--lv-pink); color: #fff !important; }
.lv-tool--sel { position: relative; }
.lv-tool--sel select { appearance: none; border: 0; background: transparent; color: #fff; font: 700 12px/1 Inter, sans-serif; padding: 0 2px; max-width: 150px; cursor: pointer; }
.lv-tool--sel select option { color: #000; }

/* Andra matcher */
.lv-strip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lv-strip__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding: 2px 0; }
.lv-strip__chips::-webkit-scrollbar { display: none; }
.lv-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--lv-s) !important; color: var(--lv-ice) !important; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lv-chip b { color: #fff; font-weight: 800; }
.lv-chip.is-on { background: #00627d !important; color: #fff !important; }
.lv-chip__t { color: #ffb3cf; font-weight: 700; }
.lv-star { color: #ffb3cf; }
.lv-strip__more { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--lv-s2) !important; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.lv-all { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lv-all__row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 28px 64px; grid-template-areas: "teams score t" "last last last"; gap: 4px 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--lv-s) !important; text-align: left; }
.lv-all__row.is-on { background: #00627d !important; }
.lv-all__teams { grid-area: teams; display: grid; gap: 2px; font-size: 14px; font-weight: 700; }
.lv-all__score { grid-area: score; display: grid; gap: 2px; text-align: right; font: 900 18px/1.1 "trade-gothic-next-condensed", "Tourney", sans-serif; }
.lv-all__t { grid-area: t; text-align: right; color: #ffb3cf; font-size: 12px; font-weight: 700; }
.lv-all__last { grid-area: last; color: var(--lv-ice); font-size: 12px; }

/* Resultatrutan */
.lv-head { position: relative; padding: 18px 16px 16px; border-radius: 18px; background: linear-gradient(160deg, #00627d 0%, #003a4a 100%); transition: box-shadow .3s; }
.lv-goalflash .lv-head { animation: lv-goal 1.6s ease-out; }
@keyframes lv-goal { 0%, 30% { box-shadow: 0 0 0 4px var(--lv-pink), 0 0 40px rgba(210, 27, 105, .8); } 100% { box-shadow: none; } }
.lv-head__meta { text-align: center; color: var(--lv-ice); font-size: 11px; font-weight: 700; letter-spacing: .72px; }
.lv-head__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 14px; }
.lv-head__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 15px; }
.lv-crest { width: 60px; height: 60px; object-fit: contain; }
.lv-code { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #00151a; font-weight: 800; font-size: 13px; }
.lv-head__mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lv-score { font: 900 64px/1 "trade-gothic-next-condensed", "Tourney", sans-serif; letter-spacing: 1px; }
.lv-clock { padding: 5px 12px; border-radius: 999px; background: rgba(0, 21, 26, .45); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-clock.is-live { background: var(--lv-pink); }
.lv-head__scorers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; color: #d8eef2; font-size: 11px; line-height: 1.6; }
.lv-head__scorers span:first-child { text-align: right; }
.lv-head__exp { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.lv-head__exp span { padding: 5px 12px; border-radius: 999px; background: rgba(0, 21, 26, .45); color: #ffb3cf; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-head__link { position: absolute; top: 14px; right: 14px; color: var(--lv-ice) !important; font-size: 11px; font-weight: 700; text-decoration: none; }
.lv-head__link:hover { color: #fff !important; }

/* Filter */
.lv-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-filters button { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--lv-s) !important; color: var(--lv-ice) !important; font-size: 12px; font-weight: 600; }
.lv-filters button.is-on { background: var(--lv-pink) !important; color: #fff !important; font-weight: 700; }

/* Händelser: hemmalaget till vänster, bortalaget till höger, minuten i mitten */
.lv-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); align-items: center; gap: 6px; }
.lv-row > .lv-ev:first-child { justify-self: end; text-align: right; }
.lv-row > .lv-ev:last-child { justify-self: start; }
.lv-row__t { justify-self: center; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-ev { display: flex; flex-direction: column; gap: 2px; max-width: 100%; padding: 9px 12px; border-radius: 12px; background: var(--lv-s); }
.lv-ev__k { font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.lv-ev__who { font-size: 14px; font-weight: 700; }
.lv-ev__sub { font-size: 11px; color: var(--lv-ice); }
.lv-ev--mini { padding: 7px 12px; }
.lv-ev--mini .lv-ev__k { font-size: 12px; font-weight: 600; letter-spacing: 0; color: #d8eef2; }
.lv-ev--goal.lv-ev--h { background: var(--lv-pink); }
.lv-ev--goal.lv-ev--h .lv-ev__sub { color: #ffe0ec; }
.lv-ev--goal.lv-ev--a { background: #fff; color: #00151a; }
.lv-ev--goal.lv-ev--a .lv-ev__k { color: var(--lv-pink); }
.lv-ev--goal.lv-ev--a .lv-ev__sub { color: #00627d; }
.lv-ev--exp { background: var(--lv-s2); }
.lv-fact { display: block; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 21, 26, .45); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.45; text-align: left; }
.lv-ev--goal.lv-ev--a .lv-fact { background: #e6f2f5; color: #00151a; }
.lv-mark { justify-self: center; padding: 7px 16px; border-radius: 999px; background: var(--lv-s); color: var(--lv-ice); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-align: center; }
.lv-mark.is-strong { background: #00627d; color: #fff; font-weight: 800; }
.lv-mark--text { border-radius: 12px; max-width: 520px; font-weight: 500; letter-spacing: 0; }

/* Statistik och tabell */
.lv-side { display: grid; gap: 12px; align-content: start; }
.lv-card { padding: 16px; border-radius: 16px; background: var(--lv-s); }
.lv-h { margin: 0 0 10px; color: #fff; font: 900 20px/1 "trade-gothic-next-condensed", "Tourney", sans-serif; text-transform: uppercase; }
.lv-h-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lv-note { color: var(--lv-ice); font-size: 11px; }
.lv-stat + .lv-stat { margin-top: 12px; }
.lv-stat__n { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-stat__l { color: var(--lv-ice); font-weight: 600; }
.lv-stat__bar { display: flex; gap: 4px; margin-top: 6px; }
.lv-stat__bar span { height: 6px; border-radius: 999px; background: var(--lv-pink); }
.lv-stat__bar span + span { background: #fff; }
.lv-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.lv-table li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 24px 34px 28px; gap: 6px; padding: 6px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.lv-table li > span:nth-child(n+3), .lv-table li b { text-align: right; }
.lv-table li.is-hot { background: #00627d; font-weight: 700; }
.lv-table i { font-style: normal; font-size: 11px; }
.lv-up { color: #ffb3cf; }
.lv-down { color: var(--lv-ice); }
.lv-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lv-pink); vertical-align: middle; }
.lv-empty { padding: 40px 0; text-align: center; color: var(--lv-ice); }

/* Mål i andra matcher */
.lv-toasts { position: fixed; z-index: 1100; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); }
.lv-toast { padding: 12px 16px; border-radius: 14px; background: var(--lv-pink) !important; color: #fff; font-size: 13px; text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: lv-in .35s ease-out; }
@keyframes lv-in { from { transform: translateY(16px); opacity: 0; } }

/* Demoraden */
.lv-demo { position: fixed; z-index: 1090; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; width: min(96vw, 760px); padding: 10px 12px; border-radius: 18px; background: rgba(0, 21, 26, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lv-demo__tag { padding: 4px 10px; border-radius: 999px; background: #ffb3cf; color: #00151a; font-size: 11px; font-weight: 800; letter-spacing: .72px; }
.lv-demo__t { color: var(--lv-ice); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-demo button { min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--lv-s2) !important; font-size: 12px; font-weight: 700; }
.lv-demo button.is-on { background: var(--lv-pink) !important; }
.lv-demo input[type="range"] { flex: 1 1 200px; accent-color: #d21b69; }

.lv-cols { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.lv-colmain { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 992px) {
	.lv-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
	.lv-head { padding: 22px 28px; }
	.lv-crest { width: 76px; height: 76px; }
	.lv-score { font-size: 84px; }
	.lv-head__team { font-size: 18px; }
	.lv-row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.lv-pulse, .lv-goalflash .lv-head, .lv-toast { animation: none; }
}
.lv-head__link { position: static; display: block; margin-top: 12px; text-align: center; }
@media (max-width: 575.98px) {
	#es-live { padding: 4px 12px 120px; }
	.lv-top { flex-wrap: nowrap; }
	.lv-top__tools { flex-wrap: nowrap; gap: 6px; min-width: 0; }
	.lv-tool { padding: 0 10px; }
	.lv-tool[data-act="sound"] { font-size: 0 !important; gap: 0; width: 36px; justify-content: center; padding: 0; }
	.lv-tool--sel select { max-width: 96px; }
	.lv-head { padding: 16px 12px 12px; }
	.lv-head__meta { font-size: 10px; }
	.lv-crest { width: 48px; height: 48px; }
	.lv-head__team { font-size: 13px; }
	.lv-score { font-size: 52px; }
	.lv-row { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 4px; }
	.lv-ev { padding: 8px 10px; }
	.lv-demo { bottom: 8px; gap: 4px; padding: 8px; border-radius: 14px; }
	.lv-demo button { min-height: 30px; padding: 0 9px; font-size: 11px; }
	.lv-demo [data-speed="1"] { display: none; }
	.lv-demo input[type="range"] { flex-basis: 100%; }
	.lv-toasts { top: 10px; bottom: auto; }
	.lv-toast:not(:last-child) { display: none; }
	.lv-demo__t { font-size: 11px; }
	.lv-demo__tag { padding: 3px 7px; font-size: 10px; }
}

/* Inställningar (följ lag, ljud, fördröjning) */
.lv-tool--team .lv-tool__txt { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-tool__delay { padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-size: 10px; }
.lv-noscroll { overflow: hidden; }
.lv-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 10, 14, .7); }
.lv-sheet[hidden] { display: none; }
.lv-sheet__box { width: min(100%, 460px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; border-radius: 20px; background: #032a33; color: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); font-family: Inter, sans-serif; }
.lv-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lv-sheet__head .lv-h { margin: 0; }
.lv-sheet__x { width: 36px; height: 36px; border-radius: 50%; background: var(--lv-s) !important; color: #fff; font-size: 20px; line-height: 1; }
.lv-field { display: block; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.lv-field__l { display: block; margin-bottom: 8px; padding: 0; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.lv-field small { display: block; margin: 6px 0 8px; color: var(--lv-ice); font-size: 12px; line-height: 1.45; }
.lv-field select { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(0, 98, 125, .45); color: #fff; font: 600 14px Inter, sans-serif; }
.lv-field select option { background: #032a33; color: #fff; }
.lv-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--lv-s); cursor: pointer; }
.lv-opt input { margin-top: 3px; accent-color: #d21b69; }
.lv-opt b { display: block; font-size: 14px; font-weight: 700; }
.lv-opt small { margin: 2px 0 0; }
.lv-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--lv-pink); }
.lv-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-seg label { position: relative; cursor: pointer; }
.lv-seg input { position: absolute; opacity: 0; }
.lv-seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--lv-s); color: var(--lv-ice); font-size: 13px; font-weight: 700; }
.lv-seg input:checked + span { background: var(--lv-pink); color: #fff; }
.lv-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.lv-sheet__note { margin: 0 0 12px; color: var(--lv-ice); font-size: 12px; }
.lv-sheet__ok { width: 100%; min-height: 44px; border-radius: 999px; background: var(--lv-pink) !important; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .72px; text-transform: uppercase; }
.lv-toast { position: relative; padding-right: 44px !important; }
.lv-toast__x { position: absolute; top: 50%; right: 8px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: rgba(0, 0, 0, .2); font-size: 16px; line-height: 28px; text-align: center; }
@media (max-width: 575.98px) {
	.lv-sheet { align-items: flex-end; padding: 0; }
	.lv-sheet__box { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding-bottom: 28px; }
	.lv-tool--team .lv-tool__txt { max-width: 70px; }
}
@media (min-width: 768px) {
	.lv-toasts { left: auto; right: 20px; bottom: 90px; transform: none; width: 380px; }
}
.lv-toast:nth-last-child(n+3) { display: none; }

/* Matchsidan: samma delar som Live, i matchsidans kort */
#es-live[data-embed], #es-live-side, .lv-statcard, .lv-tablecard, .lv-points { --lv-s: rgba(0, 98, 125, .28); --lv-s2: rgba(0, 98, 125, .45); --lv-pink: #d21b69; --lv-ice: #b1dae1; }
#es-live[data-embed] { max-width: none; margin: 0; padding: 4px 20px 20px; }
#es-live[data-embed] .lv-filters { margin-top: 4px; }
#es-live[data-embed] .lv-empty { padding: 16px 0; }
#es-live-side { gap: 0; }
#es-live-side:empty { display: none; }
.lv-statbody { padding: 14px 20px 18px; color: #fff; font-family: Inter, sans-serif; }
.lv-tablecard .lv-table { padding: 8px 12px 14px; color: #fff; }
.lv-tablecard .lv-h-row { align-items: center; }
@media (max-width: 575.98px) { #es-live[data-embed] { padding: 4px 12px 16px; } .lv-statbody { padding: 12px 14px 16px; } }
@media (max-width: 575.98px) {
	.lv-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
	.lv-filters::-webkit-scrollbar { display: none; }
	.lv-filters button { flex: none; }
}

/* Matchsidan = Live-vyn för en match */
#es-live[data-single] { max-width: 1170px; margin: 0 auto; padding: 8px 16px 96px; }
.lv-head__dyn { display: contents; }
.lv-head__name { color: #fff !important; text-decoration: none !important; }
.lv-head__name:hover { text-decoration: underline !important; }
.lv-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.lv-act { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(0, 21, 26, .45) !important; color: #fff !important; font: 700 12px/1 Inter, sans-serif; letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important; cursor: pointer; }
.lv-act:hover { background: rgba(0, 21, 26, .7) !important; }
.lv-act--tv { background: #d21b69 !important; }
.lv-act--tv:hover { background: #b0155a !important; }
.lv-act--live { background: #fff !important; color: #00151a !important; }
.lv-act--live .lvs__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d21b69; }
.lv-slot, .lv-below { display: grid; gap: 16px; align-content: start; }
.lv-slot:empty { display: none; }
.lv-slot > *, .lv-below > *, .lv-tlcard > * { margin: 0 !important; }
.lv-below { margin-top: 16px; }
.lv-below:empty { display: none; }
.lv-cols--match { margin-top: 16px; }
.lv-cols--match .lv-colmain { display: grid; gap: 16px; align-content: start; min-width: 0; }
.lv-tlcard:empty { display: none; }
.lv-tlbody { padding: 4px 20px 20px; }
.ebs-match--live .lv-news { margin-top: 8px; margin-bottom: 48px; }
.ebs-match--live .lv-head { margin-top: 8px; }
@media (max-width: 575.98px) {
	#es-live[data-single] { padding: 4px 12px 110px; }
	.lv-tlbody { padding: 4px 12px 16px; }
	.lv-act { min-height: 36px; padding: 0 12px; font-size: 11px; }
}

/* Resultatrutan utan platta: direkt på sidans bakgrund, som en sidrubrik (Live och matchsidan) */
.lv-head { padding: 8px 0 24px; border-radius: 0; background: none; }
.lv-goalflash .lv-head { animation: none; }
.lv-goalflash .lv-score { animation: lv-goal-sc 1.6s ease-out; }
@keyframes lv-goal-sc { 0%, 35% { color: #ff5c9d; text-shadow: 0 0 28px rgba(210, 27, 105, .9); transform: scale(1.06); } 100% { color: #fff; text-shadow: none; transform: none; } }
.lv-head__team { font: 900 18px/1.1 "trade-gothic-next-condensed", "Tourney", sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.lv-head__scorers { column-gap: 48px; }
@media (min-width: 992px) {
	.lv-head { padding: 16px 0 32px; }
	.lv-crest { width: 104px; height: 104px; }
	.lv-score { font-size: 120px; }
	.lv-head__team { font-size: 26px; gap: 14px; }
	.lv-head__row { gap: 24px; }
	.lv-head__scorers { column-gap: 200px; font-size: 12px; }
}
@media (max-width: 575.98px) {
	.lv-head { padding: 4px 0 18px; }
	.lv-crest { width: 56px; height: 56px; }
	.lv-score { font-size: 60px; }
	.lv-head__team { font-size: 15px; }
	.lv-head__scorers { column-gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lv-goalflash .lv-score { animation: none; } }
.lv-head__ht { margin-top: 10px; color: var(--lv-ice); font-size: 11px; font-weight: 700; letter-spacing: .72px; text-align: center; text-transform: uppercase; }

/* Profilens matchrubrik i Live och på matchsidan */
#es-live[data-single] { max-width: none; margin: 0; padding: 0 0 96px; }
body.es-sub .match-hero.lv-hero { border-bottom: 0; padding: 40px 0 8px; }
body.es-sub #es-live:not([data-single]) .match-hero.lv-hero { padding: 12px 0 24px; }
.lv-hero .lv-head__exp { margin-top: 16px; }
.lv-goalflash .mh__score { animation: lv-goal-sc 1.6s ease-out; }
.lv-hero .mh__actions:empty { display: none; }
.lv-wrap { margin-top: 32px; }
.lv-cols--match { margin-top: 0; }
body.es-sub .match-jump.lv-jump { margin-top: 24px; }
.lv-jump[hidden] { display: none !important; }
@media (min-width: 768px) { body.es-sub .match-jump.lv-jump { display: none; } }
@media (max-width: 767.98px) {
	body.es-sub .match-hero.lv-hero { padding: 24px 0 4px; }
	.lv-wrap { margin-top: 16px; }
	body.lvs-stuck.es-sub .match-jump.lv-jump { top: 46px; }
	.lv-jump .match-jump__inner { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
	.lv-jump .match-jump__inner::-webkit-scrollbar { display: none; }
	.lv-jump .match-jump__inner .tab { flex: none; }
}
.lv-hero .mh__board, .lv-hero .mh__scorers { width: 100%; }
.lv-hero .team-hero__inner { align-items: center; }
/* Dela och länken till matchsidan: diskreta, inte huvudknappar */
body.es-sub .match-hero .mh__act.mh__act--share { min-height: 32px; padding: 0 10px; gap: 6px; background: transparent !important; box-shadow: none !important; color: #b1dae1 !important; font-size: 11px; }
body.es-sub .match-hero .mh__act.mh__act--share:hover { color: #fff !important; background: rgba(0, 98, 125, .28) !important; }
body.es-sub .match-hero.lv-hero .mh__actions { margin-top: 18px; }
/* /live/: matchen i fokus är matchsidan; länken till Live behövs inte där */
#es-live:not([data-single]) .mh__act--live { display: none !important; }
.lv-single .lv-wrap { padding: 0; }
.lv-hold { display: none !important; }
/* Live-raden: samma knappar som remsan på övriga sidor */
.lv-chip { min-height: 32px; font-size: 12px; }
.lv-chip .es-st--pre, .lv-chip .es-st--end { background: rgba(0, 21, 26, .35); }
/* Live-raden: samma knappar som remsan på övriga sidor */
.lv-chip { min-height: 32px; font-size: 12px; }
.lv-chip .es-st--pre, .lv-chip .es-st--end { background: rgba(0, 21, 26, .35); }

/* Avstånd: rubriken tätare mot innehållet, filtren fria från första händelsen */
body.es-sub .match-hero.lv-hero { padding: 36px 0 0; }
body.es-sub #es-live:not([data-single]) .match-hero.lv-hero { padding: 28px 0 0; }
body.es-sub .match-hero.lv-hero .mh__meta { margin-bottom: 24px; }
body.es-sub .match-hero.lv-hero .mh__scorers { margin-top: 14px; }
body.es-sub .match-hero.lv-hero .mh__actions { margin-top: 20px; }
body.es-sub .match-hero.lv-hero .mh__actions[hidden] { display: none; }
body.es-sub .match-hero.lv-hero .mh__countdown { margin-top: 22px; }
.lv-wrap { margin-top: 28px; }
#es-live:not([data-single]) .lv-single .lv-wrap { margin-top: 24px; }
.lv-tlbody { padding: 16px 20px 20px; }
.lv-tlbody .lv-filters, #es-live .lv-filters { margin: 0 0 16px; }
@media (max-width: 767.98px) {
	body.es-sub .match-hero.lv-hero { padding: 24px 0 0; }
	body.es-sub #es-live:not([data-single]) .match-hero.lv-hero { padding: 20px 0 0; }
	body.es-sub .match-hero.lv-hero .mh__meta { margin-bottom: 18px; }
	.lv-wrap { margin-top: 20px; }
	.lv-tlbody { padding: 14px 12px 16px; }
	.lv-tlbody .lv-filters { margin-bottom: 12px; }
}
/* Pilarna i Live-tabellen: samma toner som resten */
.lv-up { color: var(--es-win-hi, #3fd1bd); }
.lv-down { color: var(--es-loss-hi, #e8839b); }

/* Profilen: samma funktion, samma värde – mål ser likadana ut på båda sidor; accent bara för det viktigaste; inga linjer */
.lv-ev--goal.lv-ev--h, .lv-ev--goal.lv-ev--a { background: #fff; color: #00151a; }
.lv-ev--goal.lv-ev--h .lv-ev__k, .lv-ev--goal.lv-ev--a .lv-ev__k { color: var(--lv-pink); }
.lv-ev--goal.lv-ev--h .lv-ev__sub, .lv-ev--goal.lv-ev--a .lv-ev__sub { color: #00627d; }
.lv-ev--goal.lv-ev--h .lv-fact, .lv-ev--goal.lv-ev--a .lv-fact { background: #e6f2f5; color: #00151a; }
.lv-ev--exp .lv-ev__k { color: var(--es-loss-hi, #e8839b); }
.lv-stat__bar span { background: var(--lv-ice); }
.lv-stat__bar span + span { background: #00627d; }
.lv-table li.is-hot { background: linear-gradient(90deg, #d21b69, rgba(210, 27, 105, 0)); }
.lv-head__exp span { background: var(--es-loss, #a8364f); color: #fff; }
.lv-opt:has(input:checked) { box-shadow: none; background: linear-gradient(90deg, rgba(210, 27, 105, .55), rgba(210, 27, 105, .12)); }
/* Långa ord (utvisningsminuter, Broberg/Söderhamn) får aldrig trycka korten utanför skärmen */
.lv-row > * { min-width: 0; }
.lv-ev, .lv-fact, .lv-mark { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
/* Kolumnerna får aldrig bli bredare än skärmen (filterraden och långa namn har stort min-innehåll) */
.lv-colmain, .lv-side, .lv-slot, .lv-below, .lv-tlcard, .lv-tl { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.lv-tlcard > *, .lv-slot > *, .lv-below > * { min-width: 0; max-width: 100%; }
.lv-filters { min-width: 0; max-width: 100%; }

/* Raden med matcher: en rad som sveps, eller alla på så många rader som behövs. Grupperna Pågår · Senare idag · Slut */
.lv-strip { align-items: flex-start; }
.lv-strip__chips { align-items: center; }
.lv-strip.is-open .lv-strip__chips { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
.lv-grp { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px 0 6px; color: var(--lv-ice); font: 700 10px/1 Inter, sans-serif; letter-spacing: .72px; text-transform: uppercase; }
.lv-grp:first-child { padding-left: 0; }
.lv-grp--live { color: #ffb3cf; }
.lv-strip.is-open .lv-grp { flex-basis: 100%; min-height: 18px; padding: 4px 0 0; }
.lv-strip.is-open .lv-grp:first-child { padding-top: 0; }
.lv-strip__more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px !important; }
.lv-chip.es-end, .lv-chip:has(.es-st--end) { opacity: .8; }
@media (max-width: 575.98px) { .lv-strip__more { padding: 0 10px !important; font-size: 0 !important; gap: 0; } .lv-strip__more svg { width: 16px; height: 16px; } }
/* Utfällt: en rad per grupp, rubriken först på raden */
.lv-br { display: none; }
.lv-strip.is-open .lv-br { display: block; flex-basis: 100%; height: 0; }
.lv-strip.is-open .lv-grp { flex-basis: auto; min-height: 32px; padding: 0 4px 0 0; min-width: 84px; }

/* ── Mobil under match (skiss A): kompakt rubrik, händelserna direkt ── */
@media (max-width: 767.98px) {
	.lv-st-live .match-hero.lv-hero { padding: 12px 0 0 !important; }
	.lv-st-live .lv-hero .mh__meta { margin-bottom: 10px !important; font-size: 10px; }
	.lv-st-live .lv-hero .mh__meta-a { display: none !important; }
	.lv-st-live .lv-hero .mh__meta-b::before { content: none !important; }
	.lv-st-live .lv-hero .mh__board { gap: 10px; }
	.lv-st-live .lv-hero .mh__team { flex-direction: row; justify-content: flex-start; gap: 8px; }
	.lv-st-live .lv-hero .mh__board > .mh__team:first-child { flex-direction: row-reverse; justify-content: flex-start; }
	.lv-st-live .lv-hero .mh__team .crest { width: 30px !important; height: 30px !important; }
	.lv-st-live .lv-hero .mh__name { display: none !important; }
	.lv-st-live .lv-hero .mh__code { display: inline !important; font: 900 20px/1 "trade-gothic-next-condensed", "Tourney", sans-serif; letter-spacing: .5px; }
	.lv-st-live .lv-hero .mh__center { gap: 6px; }
	.lv-st-live .lv-hero .mh__score { font-size: 44px !important; gap: 6px !important; }
	.lv-st-live .lv-hero .mh__status { padding: 3px 9px; font-size: 10px; }
	.lv-st-live .lv-hero .mh__ht { display: none; }
	.lv-st-live .lv-hero .mh__scorers { margin-top: 8px !important; gap: 0 60px !important; }
	.lv-st-live .lv-hero .mh__goals { font-size: 11px !important; line-height: 1.4 !important; }
	.lv-st-live .lv-hero .lv-head__exp { margin-top: 8px; }
	.lv-st-live .lv-hero .mh__actions, .lv-st-live .lv-jump { display: none !important; }
	.lv-st-live .lv-wrap, #es-live:not([data-single]) .lv-st-live .lv-wrap { margin-top: 10px !important; }
	/* filtren: bara Viktigast / Allt som en växel */
	.lv-st-live .lv-filters { display: inline-flex; gap: 4px; margin: 0 0 12px !important; padding: 3px; border-radius: 999px; background: var(--lv-s); width: auto; overflow: visible; }
	.lv-st-live .lv-filters button { min-height: 30px; padding: 0 12px; background: transparent !important; }
	.lv-st-live .lv-filters button.is-on { background: var(--lv-pink) !important; }
	.lv-st-live .lv-filters button:not([data-filter="key"]):not([data-filter="all"]) { display: none; }
	.lv-st-live .lv-tlbody { padding-top: 12px; }
	/* raden med matcher: inga grupprubriker på en rad */
	.lv-strip:not(.is-open) .lv-grp { display: none; }
}
@media (max-width: 767.98px) {
	body.es-sub .lv-st-live .match-hero.lv-hero .mh__team { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px; }
	body.es-sub .lv-st-live .match-hero.lv-hero .mh__board > .mh__team:first-child { flex-direction: row-reverse; }
	body.es-sub .lv-st-live .match-hero.lv-hero .mh__code { white-space: nowrap; }
}
@media (max-width: 575.98px) {
	.lv-strip.is-open .lv-grp { flex-basis: 100%; min-width: 0; min-height: 0; padding: 6px 0 0; }
	.lv-strip.is-open .lv-grp:first-child { padding-top: 2px; }
	.lv-strip.is-open .lv-br { display: none; }
}
/* Raden med matcher: knappen sist, med text även på mobil */
.lv-strip { display: block; }
.lv-strip[hidden] { display: none; }
.lv-strip__chips { width: 100%; }
.lv-strip__more { flex: none; font-size: 12px !important; gap: 6px !important; padding: 0 12px !important; }
.lv-strip__more span { display: inline; }
/* Mobil: flikar i kortets rubrikrad (Händelser · Poäng · Statistik · Alla) */
.lv-mtabs { display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.lv-mtabs::-webkit-scrollbar { display: none; }
#es-live .lv-mtabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none !important; color: var(--lv-ice) !important; font: 700 11px/1.2 Inter, sans-serif; letter-spacing: .72px; text-transform: uppercase; }
#es-live .lv-mtabs button[aria-selected="true"] { color: #fff !important; }
#es-live .lv-mtabs button[aria-selected="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lv-pink); }
.lv-tlbody--tab { padding: 4px 0 8px !important; }
.lv-tlbody--tab .lv-statbody { padding: 12px 14px 16px; }
@media (max-width: 767.98px) { .lv-mtab .lv-sidedyn { display: none; } }
/* Mobil under och efter match: en del i taget i kortet, flikarna sveps */
@media (max-width: 767.98px) {
	.lv-mtab .lv-side, .lv-mtab .lv-below, .lv-mtab .lv-colmain > .lv-slot { display: none !important; }
	.lv-mtabs { gap: 18px; padding-right: 16px !important; }
	.lv-tabhost > section { margin: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
	.lv-tabhost > section > .stat-card__head { display: none !important; }
	.lv-tabhost .mclip { margin: 12px 14px 4px; }
}

/* Kalenderknappen bara på telefon/surfplatta – på dator laddar den bara ner en fil */
@media (hover: hover) and (pointer: fine) { .mh__act--ics { display: none !important; } }

/* Flikraden på mobil: sista valet lämnar sidan (Expressen) */
#es-live .lv-mtabs__ext { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; color: var(--es-live-hi, #ff5fa2) !important; font: 700 11px/1.2 Inter, sans-serif; letter-spacing: .72px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
#es-live .lv-mtabs__ext svg { flex: none; }

/* 50/50 (Clubmate) */
.lv-lotto__body { padding: 4px 16px 16px; }
#es-live .lv-tlbody .lv-lotto__body, .lv-tlbody--tab .lv-lotto__body { padding: 14px 4px 6px; }
.lv-lotto__lab { font: 700 11px/1.3 Inter, sans-serif; letter-spacing: .72px; text-transform: uppercase; color: var(--lv-ice, #b1dae1); }
.lv-lotto__pot { margin-top: 4px; font: 900 48px/1 'Barlow Condensed', sans-serif; letter-spacing: .5px; color: #fff; font-variant-numeric: tabular-nums; }
.lv-lotto__txt { margin: 8px 0 0; font: 500 13px/1.45 Inter, sans-serif; color: var(--lv-ice, #b1dae1); }
.lv-lotto__prizes { list-style: none; margin: 12px 0 0; padding: 0; }
.lv-lotto__prizes li { display: flex; justify-content: space-between; padding: 8px 0; font: 600 13px/1.3 Inter, sans-serif; color: var(--lv-ice, #b1dae1); }
.lv-lotto__prizes b { color: #fff; }
#es-live .lv-lotto__buy, .lv-lotto__buy { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 14px; border-radius: 999px; background: var(--lv-pink, #d21b69); color: #fff !important; font: 800 12px/1 Inter, sans-serif; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.lv-lotto__buy.is-demo { opacity: .75; }
#es-live .lv-lotto__link, .lv-lotto__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: #ff5fa2 !important; font: 700 12px/1.3 Inter, sans-serif; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; }
.lv-lotto__fine { margin: 12px 0 0; font: 500 11px/1.45 Inter, sans-serif; color: var(--lv-ice, #b1dae1); }
.lv-lotto__fine a { color: inherit !important; text-decoration: underline; }
