html { background: #211d29; }
body { perspective: none; padding: 12px; isolation: isolate; }
#page-depth { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html.embedded-view #page-depth { display: none; }
.layout-wrapper { max-width: 1100px; position: relative; z-index: 1; }
.player-container { margin-bottom: 0; transform: none; }
.match-panel { --panel: #28242d; --line: #ffffff22; margin: 0 0 12px; padding: 0; background: linear-gradient(132deg, #254c3f88, #30223d99 53%, #5b254b88); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: #fff; transform: none; }
.match-panel:hover { transform: none; }
.match-panel-header { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 12px; min-height: 28px; background: #ffffff06; font-size: 10px; }
.match-state-pill,.match-panel-meta { display: none; }
#match-minute { color: #f94c60; font-size: 10px; direction: ltr; }
#match-channel-name { overflow-wrap: anywhere; }
.match-panel-teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; justify-content: center; gap: 14px; min-height: 64px; padding: 8px max(12px, calc((100% - 460px) / 2)); background: #00000012; direction: ltr; }
.match-panel-team { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 4px 8px; font-size: 12px; min-width: 0; }
.match-panel-team:first-child { text-align: start; grid-template-columns: 28px minmax(0,1fr); }
.match-panel-team:first-child img { grid-column: 1; grid-row: 1 / span 2; }
.match-panel-team:last-child { text-align: end; grid-template-columns: minmax(0,1fr) 28px; }
.match-panel-team:last-child img { grid-column: 2; grid-row: 1 / span 2; }
.match-panel-team > span { font-weight: 800; overflow-wrap: anywhere; }
.match-panel-team > small { color: #8993ad; font-size: 10px; }
.match-panel-team img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }
.match-panel-score { text-align: center; min-width: 82px; padding: 0 14px; border-inline: 1px solid #2b3044; }
.match-panel-score strong { display: block; font-size: 24px; font-weight: 900; direction: ltr; color: #ffd166; }
.match-panel-score span { display: block; color: #f94c60; font-size: 10px; margin-top: 3px; }
.match-panel-stats { display: none; }
.match-panel-team > small:empty { display: none; }
.match-panel-team > small span { display: inline-flex; align-items: center; gap: 3px; margin-inline-end: 5px; }
.match-panel-stats span { display: inline-flex; align-items: center; gap: 4px; }
.card-dot { width: 6px; height: 9px; border-radius: 1px; display: inline-block; }
.card-dot.yellow,.player-card.yellow { background: #ffd43b; }
.card-dot.red,.player-card.red { background: #ef4358; }
.match-api-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; padding: 0 24px; border-block: 1px solid var(--line); }
.match-api-node { min-width: 0; min-height: 42px; padding: 8px 2px; font: inherit; font-size: 11px; font-weight: 700; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #929eb9; cursor: pointer; }
.match-api-node::after { display: none; }
.match-api-node[aria-selected="true"] { color: #13d977; border-bottom-color: #13d977; outline: none; }
.match-api-node:hover { color: #fff; transform: none; }
.match-api-node:focus-visible,.lineup-team-switch button:focus-visible { outline: 2px solid #95a9f5; outline-offset: -3px; }
.match-api-detail { padding: 18px 6px 12px; min-height: 350px; background: #0000000a; text-align: start; }
.empty-match-data { color: #969db8; text-align: center; font-size: 12px; line-height: 1.8; padding: 14px; margin: 0; }
.match-statistics-section,.match-information,.match-events-section { border: 1px solid var(--line); border-radius: 8px; padding: 16px 12px; margin-bottom: 10px; background: #ffffff06; }
.stats-inner,.match-info-list { max-width: 505px; margin-inline: auto; }
.match-possession { padding: 10px; background: #ffffff09; border-radius: 6px; font-size: 11px; }
.match-possession > small { display: block; text-align: center; color: #a2b8d9; margin-bottom: 6px; }
.possession-track { height: 7px; background: #a6a1e7; border-radius: 4px; overflow: hidden; direction: ltr; }
.possession-track i { display: block; height: 100%; background: #4bb15f; }
.match-possession > div:last-child { display: flex; justify-content: space-between; margin-top: 6px; direction: ltr; }
.match-possession b:first-child { color: #59ce68; }
.match-possession b:last-child { color: #b7b4ff; }
.match-stat-row { display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #1c2138; font-size: 11px; direction: ltr; text-align: center; }
.match-stat-row b:first-child { justify-self: start; padding: 2px 9px; border-radius: 10px; background: #389449; }
.match-stat-row b:last-child { justify-self: end; color: #c1e6ff; }
.match-stat-row span { color: #a2b0ce; direction: rtl; font-size: 10px; }
.match-information h3,.match-events-section h3 { text-align: center; margin: 0 0 12px; padding: 2px 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.match-info-list { display: grid; gap: 7px; }
.match-info-item { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 58px; background: #00000020; border-radius: 8px; }
.match-info-item > span:last-child { display: grid; gap: 5px; min-width: 0; }
.match-info-item small,.lineup-coach small { color: #98aac8; font-size: 9px; }
.match-info-item strong { font-size: 12px; overflow-wrap: anywhere; }
.match-info-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid #ffffff26; border-radius: 8px; background: #ffffff09; }
.match-info-icon img,.player-contact > img { filter: invert(1); opacity: .9; }
.live-match-events { display: grid; gap: 5px; max-width: 740px; margin: auto; }
.match-event { display: grid; grid-template-columns: 55px minmax(0,1fr); gap: 10px; padding: 10px; background: #00000020; border-radius: 5px; }
.match-event time { direction: ltr; color: #ffd46d; font-size: 12px; font-weight: 800; }
.match-event span { display: grid; gap: 4px; min-width: 0; }
.match-event b { font-size: 12px; overflow-wrap: anywhere; }
.match-event small { font-size: 10px; color: #97a4bf; overflow-wrap: anywhere; }
.match-goals { display: none; }
.lineup-team-switch { display: flex; width: min(100%,320px); margin: 0 auto 10px; padding: 3px; background: #00000020; border-radius: 8px; }
.lineup-team-switch button { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 0; padding: 8px 4px; border: 0; border-radius: 6px; color: #bfd4f5; font: inherit; font-size: 10px; font-weight: 700; background: transparent; cursor: pointer; }
.lineup-team-switch button[aria-pressed="true"] { background: #225942; color: #fff; box-shadow: 0 0 8px #65d6a222; }
.lineup-team-switch img { width: 15px; height: 15px; object-fit: contain; }
.lineup-layout-scroll { max-width: 100%; overflow-x: auto; direction: ltr; }
.lineup-layout { display: grid; width: 100%; max-width: 416px; margin-inline: auto; gap: 12px; align-items: start; direction: ltr; }
.lineup-layout.has-bench { max-width: 668px; min-width: 540px; grid-template-columns: minmax(0,416px) minmax(180px,240px); }
.lineup-field { min-width: 0; direction: rtl; }
.lineup-layout > .lineup-bench { width: 100%; min-width: 0; margin: 0; direction: rtl; }
.lineup-layout > .lineup-coach { grid-column: 1; width: 100%; margin: 0; direction: rtl; }
.lineup-field .lineup-pitch { margin-bottom: 0; }
.lineup-pitch { position: relative; width: min(100%,416px); aspect-ratio: 1 / 1; height: auto; min-height: 0; margin: 0 auto 12px; border: 10px solid #1a3b2e; border-radius: 8px; background: repeating-linear-gradient(180deg,#214a3b 0%,#214a3b 20%,#1e4436 20%,#1e4436 40%); overflow: hidden; }
.pitch-lines { position: absolute; inset: 0; border: 1px solid #89a79a; pointer-events: none; }
.pitch-lines::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #89a79a; }
.pitch-circle { position: absolute; width: 19%; height: 19%; left: 50%; top: 50%; border: 1px solid #89a79a; border-radius: 50%; transform: translate(-50%,-50%); }
.pitch-box { position: absolute; width: 46%; height: 13%; left: 27%; border: 1px solid #89a79a; }
.pitch-box.top { top: -1px; }
.pitch-box.bottom { bottom: -1px; }
.pitch-box::after { content: ''; position: absolute; width: 48%; height: 38%; left: 26%; border: 1px solid #89a79a; }
.pitch-box.top::after { top: -1px; }
.pitch-box.bottom::after { bottom: -1px; }
.pitch-formation { position: absolute; bottom: 3px; right: 0; padding: 3px 10px; background: #fff; color: #153424; border-radius: 12px; font-size: 10px; font-weight: 800; }
.lineup-positioned { position: absolute; width: 19%; transform: translate(-50%,-50%); }
.lineup-player { z-index: 1; display: grid; justify-items: center; gap: 3px; color: #fff; text-align: center; font-size: 9px; min-width: 0; }
.player-portrait { position: relative; }
.lineup-player img,.lineup-player-placeholder { display: grid; place-items: center; width: 38px; height: 38px; object-fit: cover; border: 2px solid #fff; border-radius: 50%; background: #e8eceb; color: #163b2d; font-weight: 800; }
.player-portrait b,.bench-portrait b { position: absolute; top: -4px; right: -6px; min-width: 14px; height: 14px; padding: 1px 3px; border-radius: 50%; color: #fff; background: #101827; font-size: 8px; }
.player-rating { position: absolute; bottom: 0; right: -8px; border-radius: 8px; padding: 1px 3px; background: #ffd43b; color: #111; font-size: 8px; font-style: normal; font-weight: 900; }
.player-card { position: absolute; top: 0; left: -7px; height: 13px; width: 8px; border-radius: 1px; }
.lineup-player > span:last-child { max-width: 100%; font-size: 9px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.lineup-bench,.lineup-coach { width: min(100%,416px); margin: 0 auto 10px; border: 1px solid var(--line); padding: 10px; border-radius: 8px; background: #00000020; }
.lineup-bench h4 { display: flex; justify-content: space-between; font-size: 10px; margin: 0 0 7px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.lineup-bench h4 small { color: #8f9bb1; font-weight: 400; }
.bench-player { display: flex; align-items: center; gap: 8px; padding: 5px 8px; min-height: 36px; background: #10252b; border-radius: 6px; margin-top: 4px; }
.bench-portrait { position: relative; }
.bench-portrait img,.bench-initials,.lineup-coach img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; display: grid; place-items: center; background: #283450; font-size: 9px; }
.bench-player > span:nth-child(2),.lineup-coach span { display: grid; gap: 3px; min-width: 0; }
.bench-player strong,.lineup-coach strong { font-size: 10px; overflow-wrap: anywhere; }
.bench-player small { color: #fa6572; font-size: 9px; }
.bench-player time { margin-inline-start: auto; font-size: 9px; color: #17e58a; background: #103d32; border-radius: 12px; padding: 3px 6px; direction: ltr; }
.lineup-coach { display: flex; align-items: center; gap: 10px; }
.fixture-players { margin-top: 16px; min-width: 0; }
.fixture-players h4 { margin: 0 0 10px; font-size: 13px; }
.fixture-players-scroll { max-width: 100%; overflow-x: auto; }
.fixture-players table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.fixture-players th,.fixture-players td { padding: 9px 8px; border-bottom: 1px solid #ffffff18; text-align: center; }
.fixture-players th:first-child { text-align: start; }
.fixture-players tbody th { font-weight: 500; }
.fixture-players th img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-inline-end: 7px; }
.fixture-players thead { color: #70dbba; }
.lineup-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(72px,1fr)); gap: 10px; max-width: 416px; margin: 12px auto; }
.knockout-view { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 10px; }
.knockout-trophy { filter: invert(83%) sepia(97%) saturate(1138%) hue-rotate(353deg); }
.knockout-view h4 { font-size: 12px; margin: 8px 0; color: #ffd13d; }
.bracket-rounds { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.bracket-round { min-width: 110px; max-width: 180px; }
.bracket-fixture { display: grid; gap: 7px; width: 160px; max-width: 100%; margin-top: 8px; padding: 9px; border: 1px solid #39415d; border-radius: 6px; background: #161d30; text-align: center; font-size: 11px; }
.bracket-fixture b { color: #70dbba; }
.final-four { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: center; width: min(100%,440px); }
.final-four > section { min-width: 0; text-align: center; }
.final-four .bracket-fixture { width: 100%; font-size: 10px; }
.final-four .bracket-fixture span { display: flex; gap: 5px; align-items: center; text-align: start; }
.final-four .bracket-fixture img { width: 15px; height: 15px; object-fit: contain; border-radius: 50%; }
.final-four .bracket-fixture b { margin-inline-start: auto; }
.final-four small { color: #93a0bd; font-size: 9px; }
.current-fixture { border-color: #1ec878; box-shadow: 0 0 8px #1ec87822; }
.bracket-pending { border-style: dashed; border-color: #988547; color: #919bb0; }
.player-contact { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 12px; border: 1px solid #ffffff22; border-radius: 8px; background: #30223d66; font-size: 11px; }
.player-contact a { color: #fff; padding: 8px 12px; border: 1px solid #65d6a255; border-radius: 6px; background: #174233; text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
html.embedded-view .player-contact { display: none; }
@media (max-width: 620px) {
  .lineup-layout.has-bench { max-width: 416px; min-width: 0; grid-template-columns: minmax(0,1fr); }
  .match-panel-teams { padding: 9px; gap: 8px; }
  .match-panel-team { font-size: 10px; gap: 3px 5px; }
  .match-panel-score { padding-inline: 8px; min-width: 65px; }
  .match-panel-score strong { font-size: 21px; }
  .match-panel-meta { display: none; }
  .match-api-map { padding-inline: 10px; }
  .match-api-detail { padding-inline: 5px; }
  .match-statistics-section,.match-information,.match-events-section { padding: 12px 7px; }
  .lineup-pitch { border-width: 7px; }
  .lineup-player img,.lineup-player-placeholder { width: 30px; height: 30px; }
  .lineup-player > span:last-child { font-size: 8px; }
  .player-contact { font-size: 10px; gap: 8px; }
  .knockout-view { min-height: 420px; }
  .final-four { gap: 8px; }
  .final-four .bracket-fixture { padding: 6px; font-size: 9px; }
}
