/* Individual matches (ind.js). Sizes in vh so the TV always shows the same; phones at the end in px. */
.flag { vertical-align: -.1em; }
.sd { font-size: .62em; font-weight: 800; color: var(--lime); margin-left: .25em; vertical-align: .45em; }
.lose .sd { color: var(--dim); }
.pl { display: flex; align-items: center; gap: .45vw; min-width: 0; white-space: nowrap; }
.pl .pn-t { overflow: hidden; text-overflow: ellipsis; }

/* side block: players left, sets right */
.sb { display: flex; align-items: center; gap: .6vw; min-width: 0; }
.sb .pls { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb .ss { display: flex; gap: .4vw; flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb .ss i { font-style: normal; min-width: 1.2vw; text-align: center; color: var(--mute); }
.sb .ss i.w { color: #fff; }
.sb.win .pls { color: #fff; font-weight: 800; }
.sb.lose .pls { color: var(--dim); }

/* ---------- header line and rows ---------- */
.d-wrap { height: 100%; display: flex; flex-direction: column; gap: .8vh; }
.d-h { display: flex; align-items: center; gap: 1.2vw; font-size: 1.6vh; color: var(--mute); font-weight: 700; }
.d-h b { color: #fff; font-size: 2.2vh; font-weight: 900; }
.d-h .ag { display: inline-flex; align-items: center; gap: .3vw; }
.d-h .ag::before { content: ""; width: 1.2vh; height: 1.2vh; border-radius: .3vh; background: var(--age); }
.d-h .pn { margin-left: auto; display: flex; gap: .4vw; }
.d-h .pn i { width: 1vh; height: 1vh; border-radius: 50%; background: rgba(255,255,255,.25); }
.d-h .pn i.on { background: #fff; }
/* page dots and label can be clicked: bigger target, no change in look */
.d-h .pn i, .col h2 .pn i { cursor: pointer; padding: .5vh; background-clip: content-box; }
.d-h .pgl { cursor: pointer; }
.r { display: grid; grid-template-columns: 3.7vw 2.5vw minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .3vw; background: var(--panel); border-radius: .6vh; padding: 0 .5vw 0 0; border-left: .45vh solid var(--age); min-height: 0; overflow: hidden; font-size: 1.35vh; }
.r.play { background: #1d4a3a; box-shadow: inset 0 0 0 .18vh var(--lime); }
.r.done { background: #0f2a33; }
.r-m { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; padding-left: .4vw; min-width: 0; }
.r-m b { font-size: 1.45vh; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-m small { font-size: 1.15vh; color: var(--mute); font-weight: 500; white-space: nowrap; }
.r.play .r-m b { color: var(--lime); }
.r-e { display: flex; flex-direction: column; line-height: 1.1; font-weight: 900; font-size: 1.3vh; color: var(--age); }
.r-e small { font-size: 1.1vh; color: var(--mute); font-weight: 700; }

/* ---------- F ---------- */
.board.lay-f { display: block; }
.f-area { flex: 1; min-height: 0; display: flex; }
.board.lay-f .list.paged { flex: 1; display: flex; min-height: 0; }
.board.lay-f .list.paged .pg { flex: 1; }
.f-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6vw; align-items: start; }
.f-col { display: flex; flex-direction: column; gap: .5vh; min-width: 0; }
.r.f { grid-template-columns: 3.9vw 2.7vw minmax(0, 1fr); padding: .45vh .6vw .45vh 0; flex: none; }
.r.f .r-m, .r.f .r-e { align-self: center; }
.r-st { display: flex; flex-direction: column; justify-content: center; min-width: 0; height: 100%; }
.r-st .sb { font-size: 1.5vh; font-weight: 600; flex: 1; }
.r-st .sb + .sb { border-top: 1px solid var(--line); }
.r-st .sb .pls { line-height: 1.2; }
.r-st .sb .ss { font-size: 1.5vh; gap: .35vw; }
.r-st .sb .ss i { min-width: 1vw; }
.d-h .pgl { margin-left: auto; color: #fff; font-weight: 800; }
.d-h .pgl + .pn { margin-left: 0; }
.sb .ss i.ph { color: var(--dim); font-weight: 500; opacity: .6; }

/* ---------- live stream panel (right column of the last page) ---------- */
.f-info { grid-column: 4; align-self: stretch; background: var(--panel); border-radius: 1vh; border-top: .5vh solid var(--lime); padding: 2.4vh 1.1vw; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6vh; text-align: center; }
.li-h { display: flex; align-items: center; justify-content: center; gap: .7vw; font-size: 3.55vw; line-height: 1; font-weight: 900; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.li-dot { flex: none; width: 1.2vw; height: 1.2vw; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 .5vh rgba(255,59,48,.25); animation: li-pulse 1.6s ease-in-out infinite; }
@keyframes li-pulse { 50% { opacity: .35; } }
.li-courts { display: flex; flex-direction: column; align-items: flex-start; gap: 1vh; margin: 0 auto; font-size: 2.4vh; font-weight: 800; color: #fff; }
.li-courts span { display: flex; align-items: center; gap: .6vw; }
.li-tag { font-style: normal; font-size: 1.3vh; font-weight: 900; letter-spacing: .08em; color: #fff; background: #e5332a; border-radius: .5vh; padding: .35vh .45vw; }
.li-card { background: var(--bg); border-radius: 1.2vh; padding: 2vh 1.2vw; display: flex; flex-direction: column; align-items: center; gap: 1.2vh; }
.li-card p { color: var(--mute); font-size: 2.1vh; line-height: 1.3; font-weight: 700; }
.li-qr { position: relative; width: 26vh; aspect-ratio: 1; background: #fff; padding: 1.4vh; border-radius: 1vh; }
.li-qr img { width: 100%; height: 100%; display: block; }
.li-qr b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--ink, #0f1e24); font-size: 1.5vh; font-weight: 900; letter-spacing: .08em; padding: .5vh .6vw; border-radius: .5vh; }
.li-qr b { display: flex; align-items: center; gap: .35vw; }
.li-qr b svg { width: 1.9vh; height: 1.9vh; fill: currentColor; }
.li-url { font-size: 1.25vw; font-weight: 900; color: var(--lime); text-decoration: none; white-space: nowrap; }

/* the QR card is white; the QR code sits on it without its own white box */
.li-card.qr { background: #fff; }
.li-card.qr p { color: #4d6670; }
.li-card.qr .li-qr { padding: .6vh; }

/* "or" between the web address and the QR code */
.li-or { display: flex; align-items: center; gap: .8vw; color: var(--mute); font-size: 2vh; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: -.4vh 0; }
.li-or::before, .li-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.li-card:not(.qr) { padding-left: 2vw; padding-right: 2vw; }


/* ---------- phones: one list, sizes in px ---------- */
@media (max-width: 900px) {
  .board.lay-f { height: auto; }
  .d-wrap { height: auto; gap: 10px; }
  .d-h { flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
  .d-h b { font-size: 17px; }
  .d-h .ag::before { width: 10px; height: 10px; border-radius: 3px; }
  .f-area { display: block; }
  .f-mob { display: flex; flex-direction: column; gap: 8px; }
  .r.f { grid-template-columns: 64px 46px minmax(0, 1fr); gap: 6px; padding: 8px 10px 8px 0; border-left-width: 4px; border-radius: 10px; font-size: 13px; }
  .r-m { padding-left: 8px; }
  .r-m b { font-size: 15px; }
  .r-m small { font-size: 11px; white-space: normal; }
  .r-e { font-size: 14px; }
  .r-e small { font-size: 11px; }
  .r-st .sb { font-size: 15px; gap: 8px; padding: 3px 0; }
  .r-st .sb .ss { font-size: 15px; gap: 8px; }
  .r-st .sb .ss i { min-width: 14px; }
  .pl { gap: 5px; }
  .f-info { grid-column: auto; gap: 12px; margin-top: 6px; padding: 18px 14px; border-radius: 10px; border-top-width: 4px; }
  .li-h { font-size: 26px; gap: 8px; }
  .li-courts span { gap: 8px; }
  .li-tag { font-size: 10px; padding: 3px 5px; border-radius: 4px; }
  .li-dot { width: 10px; height: 10px; box-shadow: 0 0 0 3px rgba(255,59,48,.25); }
  .li-courts { font-size: 15px; gap: 2px; }
  .li-card { padding: 14px; gap: 6px; border-radius: 10px; }
  .li-card p { font-size: 14px; }
  .li-url { font-size: 18px; }
}
