:root { --accent: #ff0a45; --accent2: #00e1ff; --ink: #07070b; --glass: rgba(9, 9, 14, .93); --line: rgba(255, 255, 255, .1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: transparent; }
body.preview { background: radial-gradient(1200px 700px at 50% 35%, #2c5a3a 0%, #173524 45%, #0a1510 100%); }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; font-family: Inter, system-ui, sans-serif; color: #fff; overflow: hidden; }
.cond { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.el { position: absolute; opacity: 0; pointer-events: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.el.show { opacity: 1; transform: none !important; }

/* Team badge: coloured disc with the short code (no club crests) */
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: #fff; border: 2px solid rgba(255, 255, 255, .85); flex: none; }

/* Score bug */
.score { left: 60px; top: 50px; transform: translateY(-40px); display: flex; align-items: stretch; height: 64px; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.score .comp { background: var(--accent); padding: 0 18px; display: flex; flex-direction: column; justify-content: center; }
.score .comp b { font-size: 22px; line-height: 1; font-weight: 800; }
.score .comp span { font-size: 15px; font-weight: 600; opacity: .9; }
.score .side { background: var(--glass); display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 30px; font-weight: 700; }
.score .side .badge { width: 40px; height: 40px; font-size: 15px; }
.score .num { background: #fff; color: var(--ink); min-width: 62px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; }
.score .num + .num { border-left: 2px solid #d5d5dc; }

/* Topic strap */
.topic { left: 60px; top: 134px; transform: translateX(-60px); border-left: 8px solid var(--accent2); background: var(--glass); padding: 12px 26px 14px 20px; border-radius: 0 8px 8px 0; max-width: 760px; }
.topic.noscore { top: 50px; }
.topic h2 { font-size: 40px; line-height: 1; font-weight: 800; }
.topic p { font-size: 20px; margin-top: 6px; color: #c9ccd6; }

/* Sponsor */
.sponsor { right: 60px; top: 50px; transform: translateY(-40px); background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 10px 20px 12px; text-align: right; min-width: 260px; }
.sponsor small { display: block; font-size: 13px; letter-spacing: .14em; color: var(--accent2); font-weight: 600; }
.sponsor b { display: block; font-size: 30px; line-height: 1.05; font-weight: 800; }
.sponsor span { font-size: 15px; color: #c9ccd6; }
.sponsor img { max-height: 56px; max-width: 240px; display: block; margin-left: auto; }

/* Right panel: player card or league table */
.panelR { right: 60px; top: 150px; width: 520px; transform: translateX(80px); background: var(--glass); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.phead { background: linear-gradient(100deg, var(--accent), #b00030); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.phead h3 { font-size: 34px; line-height: 1; font-weight: 800; }
.phead span { font-size: 18px; font-weight: 600; opacity: .9; }

.pc-top { display: flex; gap: 20px; padding: 20px 22px 16px; align-items: center; }
.pc-photo { width: 132px; height: 132px; border-radius: 10px; background: linear-gradient(160deg, #1b1d28, #0d0e14); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 68px; font-weight: 800; color: var(--accent2); flex: none; overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-name { font-size: 46px; line-height: .95; font-weight: 800; }
.pc-pos { font-size: 22px; color: var(--accent2); font-weight: 600; margin-top: 6px; }
.pc-bio { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-bio div { padding: 10px 6px; text-align: center; border-right: 1px solid var(--line); }
.pc-bio div:last-child { border-right: 0; }
.pc-bio small, .pc-stats small { display: block; font-size: 12px; letter-spacing: .1em; color: #9aa0b0; text-transform: uppercase; }
.pc-bio b { font-size: 18px; font-weight: 600; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.pc-stats div { background: #0c0d13; padding: 12px 8px; text-align: center; }
.pc-stats b { font-size: 36px; line-height: 1; font-weight: 800; }
.pc-stats .hot b { color: var(--accent2); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 13px; letter-spacing: .1em; color: #9aa0b0; padding: 10px 6px; text-align: center; font-weight: 600; }
.tbl td { padding: 9px 6px; text-align: center; font-size: 19px; border-top: 1px solid var(--line); }
.tbl td.t { text-align: left; font-weight: 600; }
.tbl td.pos { width: 44px; color: #9aa0b0; font-weight: 700; }
.tbl td.pts { font-weight: 800; font-size: 22px; }
.tbl tr.hl td { background: rgba(0, 225, 255, .13); }
.tbl tr.hl td.pos { color: var(--accent2); box-shadow: inset 4px 0 0 var(--accent2); }

/* Compare */
.center { left: 50%; top: 248px; width: 1040px; margin-left: -520px; transform: translateY(50px) scale(.97); background: var(--glass); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.cmp-head { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; padding: 22px 30px; background: linear-gradient(180deg, #14151d, #0b0c12); border-bottom: 3px solid var(--accent); }
.cmp-head .who { display: flex; align-items: center; gap: 16px; }
.cmp-head .who.r { flex-direction: row-reverse; text-align: right; }
.cmp-head .ph { width: 84px; height: 84px; border-radius: 10px; background: #1b1d28; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; flex: none; overflow: hidden; }
.cmp-head .ph img { width: 100%; height: 100%; object-fit: cover; }
.cmp-head .who.l .ph { color: var(--accent); }
.cmp-head .who.r .ph { color: var(--accent2); }
.cmp-head h3 { font-size: 40px; line-height: .95; font-weight: 800; }
.cmp-head p { font-size: 17px; color: #9aa0b0; margin-top: 4px; }
.cmp-head .vs { text-align: center; font-size: 44px; font-weight: 800; color: #5d6170; }
.cmp-row { display: grid; grid-template-columns: 1fr 220px 1fr; align-items: center; padding: 11px 30px; border-top: 1px solid var(--line); }
.cmp-row .lab { text-align: center; font-size: 19px; color: #c9ccd6; font-weight: 600; }
.cmp-row .v { display: flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 800; }
.cmp-row .v.l { flex-direction: row-reverse; }
.cmp-row .v span { min-width: 76px; }
.cmp-row .v.l span { text-align: left; }
.cmp-row .v.r span { text-align: right; }
.cmp-row .bar { flex: 1; height: 10px; background: #1b1d28; border-radius: 5px; overflow: hidden; display: flex; }
.cmp-row .v.l .bar { justify-content: flex-end; }
.cmp-row .bar i { display: block; height: 100%; border-radius: 5px; transition: width .6s ease; }
.cmp-row .v.l .bar i { background: var(--accent); }
.cmp-row .v.r .bar i { background: var(--accent2); }
.cmp-row .v.lose { color: #7b8090; }

/* Lower third */
.lower { left: 60px; bottom: 150px; transform: translateX(-80px); display: flex; align-items: stretch; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); border-radius: 8px; overflow: hidden; }
.lower.nohead { bottom: 96px; }
.lower.bare { bottom: 50px; }
.lower .tag { background: var(--accent); width: 14px; }
.lower .txt { background: var(--glass); padding: 12px 34px 14px 20px; }
.lower h3 { font-size: 44px; line-height: 1; font-weight: 800; }
.lower p { font-size: 20px; color: var(--accent2); font-weight: 500; margin-top: 4px; }

/* Headline bar */
.headline { left: 0; right: 0; bottom: 56px; height: 62px; transform: translateY(40px); display: flex; align-items: stretch; background: rgba(255, 255, 255, .96); color: var(--ink); }
.headline.noticker { bottom: 0; }
.headline .cat { background: var(--ink); color: #fff; display: flex; align-items: center; padding: 0 26px 0 60px; font-size: 28px; font-weight: 800; flex: none; }
.headline .cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 12px; }
.headline .slide { display: flex; align-items: center; padding: 0 26px; font-size: 32px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: slideIn .5s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Ticker */
.ticker { left: 0; right: 0; bottom: 0; height: 56px; transform: translateY(56px); display: flex; align-items: stretch; background: var(--ink); border-top: 3px solid var(--accent); }
.ticker .lab { background: var(--accent); display: flex; align-items: center; padding: 0 22px 0 60px; font-size: 26px; font-weight: 800; flex: none; z-index: 2; }
.ticker .run { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker .track { display: inline-flex; white-space: nowrap; animation: marquee linear infinite; will-change: transform; }
.ticker .track span { font-size: 23px; font-weight: 500; padding: 0 30px; display: inline-flex; align-items: center; }
.ticker .track span::after { content: ""; width: 8px; height: 8px; background: var(--accent2); transform: rotate(45deg); margin-left: 60px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Centre panel variants */
.center.narrow { width: 760px; margin-left: -380px; top: 150px; }
.cmp-head .tm { display: flex; align-items: center; gap: 16px; font-size: 44px; font-weight: 800; }
.cmp-head .tm.r { flex-direction: row-reverse; }
.cmp-head .tm .badge { width: 64px; height: 64px; font-size: 22px; }
.cmp-head .sc { text-align: center; font-size: 52px; font-weight: 800; }
.imgbox { padding: 14px; text-align: center; }
.imgbox img { max-width: 100%; max-height: 560px; border-radius: 8px; display: block; margin: 0 auto; }
.imgbox p { font-size: 24px; font-weight: 600; padding: 12px 6px 4px; }
.pitch { position: relative; height: 640px; margin: 14px; border-radius: 10px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .75);
  background: repeating-linear-gradient(180deg, #1f7a3f 0 80px, #1b6e39 80px 160px); }
.pitch::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid rgba(255, 255, 255, .6); }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border: 3px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.pitch .box { position: absolute; left: 50%; width: 320px; height: 100px; margin-left: -160px; border: 3px solid rgba(255, 255, 255, .6); }
.pitch .box.t { top: -3px; } .pitch .box.b { bottom: -3px; }
.pitch .pl { position: absolute; width: 150px; margin-left: -75px; margin-top: -34px; text-align: center; z-index: 2; }
.pitch .pl i { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 auto; border-radius: 50%; border: 3px solid #fff; font: 800 24px "Barlow Condensed", sans-serif; font-style: normal; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.pitch .pl b { display: inline-block; margin-top: 4px; background: rgba(7, 7, 11, .85); padding: 1px 9px 2px; border-radius: 4px; font: 700 19px "Barlow Condensed", sans-serif; text-transform: uppercase; white-space: nowrap; }

/* Fixtures rows in the right panel */
.fx { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; }
.fx .h { text-align: right; } .fx .i { text-align: center; font: 700 20px "Barlow Condensed", sans-serif; color: var(--accent2); }

/* Camera layouts: a branded backdrop with windows for the video feeds */
.backdrop { inset: 0; z-index: 0; background: radial-gradient(900px 600px at 20% 10%, rgba(255, 10, 69, .28), transparent 60%), radial-gradient(900px 600px at 85% 95%, rgba(0, 225, 255, .22), transparent 60%), #08080d; }
.cams { inset: 0; z-index: 1; }
.cam { position: absolute; border: 3px solid rgba(255, 255, 255, .9); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .45); }
.cam iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.cam .nm { position: absolute; left: 0; bottom: 0; background: var(--accent); padding: 4px 16px 5px; font: 700 24px "Barlow Condensed", sans-serif; text-transform: uppercase; border-radius: 0 8px 0 0; }
.cam .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .35); font: 600 18px Inter, sans-serif; }
body:not(.preview) .cam .ph { display: none; }
.score, .topic, .sponsor, .panelR, .lower, .headline, .ticker { z-index: 3; }
.center { z-index: 4; }

/* Full-screen scenes */
.scene { inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(1000px 700px at 50% 30%, rgba(255, 10, 69, .35), transparent 65%), radial-gradient(900px 600px at 50% 110%, rgba(0, 225, 255, .25), transparent 60%), #07070b; }
.scene .br { font: 800 40px "Barlow Condensed", sans-serif; letter-spacing: .3em; color: var(--accent2); }
.scene h1 { font: 800 150px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 10px 0; }
.scene p { font-size: 32px; color: #c9ccd6; }
.scene .cd { font: 800 110px "Barlow Condensed", sans-serif; color: var(--accent); margin-top: 26px; font-variant-numeric: tabular-nums; }

/* Alert sting */
.alert { left: 50%; top: 360px; width: 1100px; margin-left: -550px; z-index: 9; transform: scale(.6); text-align: center; }
.alert .a1 { display: inline-block; background: var(--accent); padding: 6px 60px 12px; font: 800 190px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: skewX(-6deg); }
.alert .a2 { display: block; margin: 16px auto 0; background: #fff; color: var(--ink); padding: 8px 30px; font: 700 44px "Barlow Condensed", sans-serif; text-transform: uppercase; border-radius: 8px; width: max-content; max-width: 100%; }
