/* Табло «Ліги звитяги» — стиль A «стадіонне табло». Сцена 1920×1080, масштабується під екран.
   Лише ВЕЛИКІ літери: малі кириличні у Sofia Sans мають болгарські форми. */
:root { --or: #EF8822; --bg: #07090b; --cell: #14181d; --line: #1d2126; --tx: #f4f1ea; --mut: #9a958b; --dim: #6d685f; }
* { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden }
body { font-family: 'Sofia Sans Condensed', sans-serif; color: var(--tx); -webkit-font-smoothing: antialiased; cursor: default }
body.idle { cursor: none }
.xc { font-family: 'Sofia Sans Extra Condensed', sans-serif }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--bg); overflow: hidden; text-transform: uppercase }

/* шапка */
.top { position: absolute; left: 0; right: 0; top: 0; height: 120px; display: flex; align-items: center; padding: 0 64px; gap: 26px; border-bottom: 3px solid var(--or) }
.top img { height: 72px }
.top .t { font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: 56px; letter-spacing: .02em }
.top .s { font-weight: 700; font-size: 30px; color: var(--or); letter-spacing: .12em; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 1100px }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 22px }
.top .clk { font-family: 'Sofia Sans Extra Condensed'; font-weight: 800; font-size: 72px; color: #cfcac0 }
.dot { width: 16px; height: 16px; border-radius: 50%; background: #2bb673; opacity: .0 }
.dot.off { background: var(--or); opacity: 1 }
.dot .tip { display: none }

/* основна зона */
.main { position: absolute; left: 64px; right: 64px; top: 150px; bottom: 140px }
.ttl { font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: 64px; letter-spacing: .03em; margin-bottom: 22px; display: flex; align-items: baseline; gap: 22px }
.ttl small { font-family: 'Sofia Sans Condensed'; font-size: 30px; font-weight: 700; color: var(--or); letter-spacing: .12em }

/* матчі зараз */
.rows .row { display: grid; grid-template-columns: calc(190px * var(--k)) 1fr calc(290px * var(--k)) 1fr calc(240px * var(--k)); align-items: center; height: var(--h); border-bottom: 2px solid var(--line) }
.fld { font-weight: 800; font-size: calc(34px * var(--k)); color: #8c877d; letter-spacing: .1em; line-height: 1 }
.fld b { display: block; font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: calc(110px * var(--k)); color: var(--tx); line-height: .9; letter-spacing: 0 }
.tm { display: flex; align-items: center; gap: calc(22px * var(--k)); font-weight: 900; font-size: calc(70px * var(--k)); letter-spacing: .02em; min-width: 0 }
.tm.r { justify-content: flex-end; text-align: right }
.tm > i { width: calc(16px * var(--k)); height: calc(120px * var(--k)); border-radius: 3px; flex: none }
.tm .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.02 }
.tm small { display: block; font-weight: 600; font-size: calc(28px * var(--k)); color: var(--mut); letter-spacing: 0; margin-top: calc(6px * var(--k)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.card { width: calc(18px * var(--k)); height: calc(25px * var(--k)); border-radius: 3px; display: inline-block; vertical-align: -3px; margin: 0 4px 0 10px }
.card.y { background: #ffd21f } .card.r { background: #e5322d }
.sc { display: flex; justify-content: center; gap: calc(14px * var(--k)) }
.dg { width: calc(118px * var(--k)); height: calc(160px * var(--k)); background: var(--cell); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: calc(168px * var(--k)); line-height: 1; color: #fff }
.dg.wide { width: calc(150px * var(--k)) }
.time { text-align: right; font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: calc(96px * var(--k)); color: var(--or); line-height: 1; white-space: nowrap }
.time.stop { color: var(--mut) }
.time small { display: block; font-family: 'Sofia Sans Condensed'; font-size: calc(28px * var(--k)); font-weight: 700; color: var(--mut); letter-spacing: .1em }
.time small b { color: var(--or) }
.row.done .dg { color: #cfcac0 }

/* таблиці груп */
.groups { display: grid; gap: 36px 56px }
.gt { width: 100% ; border-collapse: collapse; font-size: var(--fs) }
.gt th { font-weight: 700; color: var(--mut); font-size: calc(var(--fs) * .6); letter-spacing: .1em; text-align: center; padding-bottom: 8px }
.gt th:nth-child(2) { text-align: left }
.gt td { height: var(--rh); border-top: 2px solid var(--line); text-align: center; font-family: 'Sofia Sans Extra Condensed'; font-weight: 800 }
.gt td.n { text-align: left; font-family: 'Sofia Sans Condensed'; font-weight: 900; white-space: nowrap; max-width: 0; overflow: hidden; text-overflow: ellipsis }
.gt td.n i { display: inline-block; width: 10px; height: calc(var(--rh) * .55); vertical-align: middle; margin-right: 14px; border-radius: 2px }
.gt td.p { color: var(--mut); width: 1.4em; position: relative }
.gt tr.adv td.p { color: var(--or) }
.gt tr.adv td.p::before { content: ''; position: absolute; left: -16px; top: 18%; bottom: 18%; width: 6px; background: var(--or); border-radius: 2px }
.gt td.pts { color: #fff; font-weight: 900; font-size: 1.12em }
.gt .l5 { display: flex; gap: 6px; justify-content: center }
.gt .l5 i { width: calc(var(--rh) * .34); height: calc(var(--rh) * .34); border-radius: 50%; display: inline-block }
.l5 .W { background: #2bb673 } .l5 .D { background: #7d7d7d } .l5 .L { background: #e5322d }
.gname { font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: calc(var(--fs) * 1.1); color: var(--or); letter-spacing: .04em; margin-bottom: 4px }

/* розклад / результати */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px }
.lst .it { display: grid; grid-template-columns: 120px 90px 1fr 150px 1fr; align-items: center; height: 84px; border-bottom: 2px solid var(--line); font-weight: 900; font-size: 40px }
.lst .it .tt { font-family: 'Sofia Sans Extra Condensed'; color: var(--or); font-size: 46px }
.lst .it .ff { color: var(--mut); font-size: 26px; letter-spacing: .08em }
.lst .it .h { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lst .it .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lst .it .s { text-align: center; font-family: 'Sofia Sans Extra Condensed'; font-size: 54px; color: #fff }
.lst .it .s.vs { color: var(--dim); font-size: 34px }
.lst .it .live { color: var(--or) }
.sub { font-weight: 800; font-size: 32px; color: var(--mut); letter-spacing: .14em; margin-bottom: 10px }

/* сітка */
.br { display: flex; gap: 48px; height: 100%; align-items: stretch }
.br .col { flex: 1; display: flex; flex-direction: column; justify-content: space-around }
.br .col h3 { font-weight: 800; font-size: 30px; color: var(--or); letter-spacing: .14em; text-align: center; margin-bottom: 10px }
.bm { background: var(--cell); border-radius: 10px; overflow: hidden; margin: 12px 0 }
.bm .r { display: flex; align-items: center; height: 70px; padding: 0 20px; gap: 16px; font-weight: 900; font-size: 36px }
.bm .r + .r { border-top: 2px solid var(--bg) }
.bm .r i { width: 10px; height: 40px; border-radius: 2px; flex: none }
.bm .r .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bm .r .g { font-family: 'Sofia Sans Extra Condensed'; font-size: 46px; color: #fff }
.bm .r.ph { color: var(--dim); font-size: 26px; font-weight: 700 }
.bm .r.win { background: #1f262d } .bm .r.win .g { color: var(--or) }
.bm .meta { font-size: 22px; color: var(--mut); padding: 6px 20px; letter-spacing: .08em; font-weight: 700 }

/* рейтинги */
.rank .it { display: grid; grid-template-columns: 90px 1fr 520px 160px; align-items: center; height: 76px; border-bottom: 2px solid var(--line); font-weight: 900; font-size: 44px }
.rank .it .pos { font-family: 'Sofia Sans Extra Condensed'; color: var(--mut) }
.rank .it .tmn { color: var(--mut); font-size: 32px; display: flex; align-items: center; gap: 14px; white-space: nowrap; overflow: hidden }
.rank .it .tmn i { width: 10px; height: 36px; border-radius: 2px; flex: none }
.rank .it .v { text-align: right; font-family: 'Sofia Sans Extra Condensed'; font-size: 64px; color: var(--or) }
.rank .it:first-child .pos, .rank .it:first-child .v { color: var(--or) }
.rank.sm .it { grid-template-columns: 60px minmax(0, 1fr) 230px 100px 100px 100px; height: 70px; font-size: 34px }
.rank .it > div:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.rank.sm .it .v2 { text-align: right; font-family: 'Sofia Sans Extra Condensed'; font-size: 48px; color: #cfcac0 }
.rank .hd { display: grid; color: var(--mut); font-size: 22px; font-weight: 800; letter-spacing: .1em; padding-bottom: 6px }

/* партнер / заставка / переможець */
.center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px }
.center .k { font-weight: 800; font-size: 40px; letter-spacing: .2em; color: var(--mut) }
.center .big { font-family: 'Sofia Sans Extra Condensed'; font-weight: 900; font-size: 190px; line-height: .9; letter-spacing: .01em }
.center .or { color: var(--or) }

/* низ: «далі» або «ГОЛ!» */
.bot { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: #0d0f12; display: flex; align-items: center; padding: 0 64px; gap: 26px; font-weight: 800; font-size: 34px; color: var(--mut); border-top: 2px solid var(--line) }
.bot .tag { background: var(--or); color: var(--bg); font-weight: 900; padding: 4px 22px; letter-spacing: .08em }
.bot b { color: var(--tx) }
.bot .nx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 }
.bot .ptn { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 22px; letter-spacing: .14em }
.bot .ptn img { height: 66px }
.goal { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: var(--or); color: var(--bg); display: flex; align-items: center; padding: 0 64px; gap: 30px; font-weight: 900; font-size: 50px; transform: translateY(110%); transition: transform .45s cubic-bezier(.2, .9, .2, 1) }
.goal.on { transform: none }
.goal b { font-family: 'Sofia Sans Extra Condensed'; font-size: 92px; letter-spacing: .03em }
.goal .sc2 { margin-left: auto; white-space: nowrap }
.goal .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* вхід і кнопка «на весь екран» */
.login { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; z-index: 10; font-family: 'Sofia Sans', sans-serif }
.login form { background: #15181c; padding: 40px; border-radius: 16px; width: 420px; display: flex; flex-direction: column; gap: 14px; color: #fff }
.login h2 { font-family: 'Sofia Sans Extra Condensed'; font-size: 40px; text-transform: uppercase }
.login input { font-size: 22px; padding: 14px; border-radius: 10px; border: 1px solid #333; background: #0c0e10; color: #fff }
.login button { font-size: 22px; font-weight: 800; padding: 14px; border: 0; border-radius: 10px; background: var(--or); color: #111; cursor: pointer }
.login .err { color: #ff8a80; min-height: 1.2em }
.fs { position: fixed; right: 18px; bottom: 18px; z-index: 9; font: 700 16px 'Sofia Sans', sans-serif; padding: 10px 16px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: opacity .3s }
body.idle .fs, body.full .fs { opacity: 0; pointer-events: none }
