/* PadelYoda venue display: the same paper, ink and type as the tournament engine. */
body:has(.tv-board){background:var(--paper);color:var(--navy)}
body:has(.tv-board)>header,body:has(.tv-board) main>footer{display:none}
main.wrap:has(.tv-board){width:100%;max-width:none;padding:0}
.social-game:has(.tv-board),.room-display:has(.tv-board){max-width:none;margin:0}
body:has(.tv-board) .room-connection{margin:0;padding:.35em 3vw;background:#f2f0e3;color:#385169;font-size:.8rem}
body:has(.tv-board) .room-connection[data-status="live"],.tv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tv-board{--ink:var(--navy);--azure:var(--blue);--deep:var(--link);--gutter:clamp(14px,2.5vw,50px);min-height:100vh;background:var(--paper);color:var(--ink);font:550 clamp(15px,.96vw,20px)/1.3 Manrope,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.tv-board,.tv-board *{box-sizing:border-box}
.tv-board :is(h1,h2,h3,h4,p){color:inherit;margin:0;letter-spacing:normal}
.tv-bar,.tv-mast,.tv-section-head,.tv-channel,.tv-identity{display:flex;align-items:center}
.tv-bar{min-height:3.5em;justify-content:space-between;gap:1em;background:var(--ink);color:white;padding:.5em var(--gutter)}
.tv-identity{gap:.58em;flex:none}
.tv-identity img{height:2.45em;width:2.45em;border-radius:4px;object-fit:cover}
.tv-identity strong,.tv-identity small{display:block}
.tv-identity strong{font-size:1.35em;font-weight:800;line-height:1;letter-spacing:-.075em}
.tv-identity strong span{color:var(--blue)}
.tv-identity small{margin-top:.24em;color:#e1e9f1;font-size:.53em;font-weight:800;text-transform:uppercase;letter-spacing:.11em}
.tv-channel{gap:1.35em;font-size:.85em}
.tv-channel span{color:var(--azure);font-weight:750}
.tv-channel time{font-weight:750;color:white;border-left:1px solid #64718a;padding-left:1.35em}
.tv-mast{justify-content:space-between;gap:1.5em;padding:1.15em var(--gutter) 1.1em}
.tv-mast > div:first-child,.tv-channel{min-width:0}
.tv-channel span,.tv-meta,.tv-match h4,.tv-round-state{overflow-wrap:anywhere}
.tv-mast h1{font:800 clamp(42px,4.1vw,84px)/.98 Barlow,system-ui,sans-serif;letter-spacing:-.026em;overflow-wrap:anywhere}
.tv-mast h1 i{color:var(--deep);font-style:normal}
.tv-mast .tv-meta{margin-top:.55em;color:var(--muted);font-size:.92em}
.tv-live{display:grid;gap:.14em;justify-items:end;flex:none}
.tv-live strong{color:var(--deep);font-weight:800}.tv-live>span{font:800 1.42em/1.05 Barlow,system-ui,sans-serif}
.tv-clock{display:flex;align-items:baseline;gap:.5em}.tv-clock small{color:var(--muted)}.tv-clock b{font:800 2em/1 Barlow,sans-serif}
.tv-layout{padding:0 var(--gutter) 1.1em;display:grid;grid-template-columns:minmax(0,2.8fr) minmax(17em,1fr);align-items:start;gap:1.2em}
.tv-rounds,.tv-ranking,.tv-round-label,.tv-match{min-width:0}
.tv-section-head{border-top:3px solid var(--ink);min-height:3em;justify-content:space-between;gap:1em;padding:.46em 0}
.tv-board h2{font:800 1.6em/1.1 Barlow,system-ui,sans-serif}
.tv-section-head>span{font-size:.82em;color:var(--muted);font-weight:650}
.tv-round-grid{border-bottom:1px solid var(--line)}
.tv-round.social-slot{display:grid;grid-template-columns:6.6em minmax(0,1fr);border:0;border-top:1px solid var(--line);border-radius:0;margin:0;padding:0;background:transparent;box-shadow:none}
.tv-round-label{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:.32em;padding:.6em .5em .6em 0}
.tv-round-label h3{font:800 1.48em/1 Barlow,system-ui,sans-serif}
.tv-time{color:var(--muted);font-size:.72em;font-weight:650}
.tv-round-state{font-size:.71em;color:var(--deep);font-weight:800}
.tv-current .tv-round-label{box-shadow:inset 4px 0 var(--azure);padding-left:.7em}
.tv-court-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10.25em),1fr));align-items:stretch}
.tv-match{border-left:1px solid var(--line);background:#fbfaf2;padding:.5em .8em .65em;display:flex;flex-direction:column;justify-content:center;position:relative}
.tv-match h4{font:750 .68em/1.2 Manrope,system-ui,sans-serif;color:var(--deep);letter-spacing:.065em;text-transform:uppercase;margin:0 0 .4em}
.tv-side{display:flex;align-items:baseline;justify-content:space-between;gap:.35em;min-height:1.5em;font-size:.95em;color:#425262}
.tv-duo{overflow-wrap:anywhere}.tv-pair-sep{font-weight:500;color:#78878a}
.tv-points{font:800 1.52em/.98 Barlow,sans-serif}
.tv-winner{font-weight:800;color:var(--ink)}.tv-winner .tv-points{color:var(--deep)}
.tv-round .tv-rest{grid-column:1/-1;padding:.35em .5em;color:var(--muted);font-size:.8em}
.tv-ranking{background:var(--ink);color:#fff;border-top:4px solid var(--azure);padding:.8em .9em .85em}
.tv-ranking h2{color:#fff;margin-bottom:.55em}
.tv-rank-box{width:100%;overflow-x:auto}
.tv-ranking table.social-table{border-collapse:collapse;width:100%;min-width:0;table-layout:auto;margin:0;font-size:.9em;color:#fff}
.tv-rank-box :is(th,td){border:0;border-bottom:1px solid #344258;background:transparent;color:inherit;text-align:right;padding:.45em .16em;font-weight:550;line-height:1.2}
.tv-rank-box thead th{color:#b5c8dc;font-size:.79em;font-weight:700}
.tv-rank-box th:nth-child(2),.tv-rank-box th[scope=row],.tv-rank-box :is(th,td):first-child{text-align:left}
.tv-rank-box th[scope=row]{font-weight:700;overflow-wrap:anywhere}
.tv-place{color:var(--azure);font-weight:800}
.tv-ranking .tv-key,.tv-ranking .tv-rank-empty p{font-size:.76em;color:#c1d0e1;margin-top:.8em}
.tv-rank-empty{padding:.6em 0}
.tv-status-courts{display:grid;grid-template-columns:repeat(auto-fit,minmax(9em,1fr));border-top:1px solid var(--line)}
.tv-status-courts>div{display:grid;gap:.3em;padding:1em;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfaf2}
.tv-status-courts span{font-size:.82em;color:var(--muted)}
.tv-files{padding:.75em clamp(14px,2.5vw,50px);border-top:1px solid #bdc7be;background:#f2f0e3;color:#071633;display:flex;flex-wrap:wrap;align-items:center;gap:.65em 1.35em;font:650 .84rem Manrope,system-ui,sans-serif}
.tv-files a{display:inline-flex;align-items:center;min-height:44px;color:var(--link);text-underline-offset:.16em}.tv-files label{display:flex;align-items:center;gap:.6em;flex-wrap:wrap}
.tv-files select{min-height:44px;min-width:0;max-width:100%;padding:.45em .7em;font:inherit;color:var(--navy);background:white;border:1px solid #769497;border-radius:4px}
.tv-files [data-csv-picker]{max-width:100%}
.tv-files [role=alert]{color:#9c321d}.tv-files [hidden]{display:none}
.tv-file-page .tv-board{min-height:calc(100vh - 60px)}
@media(min-width:1200px){.tv-board{font-size:clamp(16px,min(1.18vw,2.18vh),25px)}}
@media(max-width:1000px){.tv-layout{grid-template-columns:minmax(0,1fr)}.tv-ranking{max-width:100%}.tv-court-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,10em),1fr))}}
@media(max-width:600px){.tv-mast{align-items:flex-start;gap:.7em}.tv-mast h1{font-size:2.6em}.tv-live{font-size:.8em;max-width:10em;text-align:right}.tv-round.social-slot{grid-template-columns:minmax(0,1fr);margin-bottom:.55em}.tv-round-label{flex-direction:row;align-items:baseline;justify-content:flex-start;gap:.7em;padding:.7em 0 .45em}.tv-court-grid{grid-template-columns:1fr}.tv-match{border:0;border-top:1px solid var(--line);padding:.5em .75em}.tv-match h4{margin-bottom:.3em}.tv-identity img{height:2.15em;width:2.15em}.tv-channel{gap:.6em;font-size:.73em}.tv-channel time{padding-left:.6em}.tv-files label{width:100%}}

@media (min-width:1200px){
  .tv-round-grid:not(:has(>.tv-round:nth-child(6))) .tv-match{min-height:clamp(5.3em,12.4vh,7.8em)}
  .tv-side{font-size:1.03em}
  .tv-rank-box :is(th,td){padding-block:.52em}
}
.room-tv-tools{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.5rem;background:var(--paper);padding:.4rem clamp(14px,2.5vw,50px)}
.room-tv-tools .language-choice a{color:#071633;border-color:#586c79}
.room-tv-tools .language-choice a[aria-current=true]{background:var(--blue);color:var(--navy)}
.room-tv-tools .language-choice a:hover{background:#05699f;color:white}
.room-tv-tools .language-choice a:focus-visible{outline:3px solid var(--link);outline-offset:2px}

.tv-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .4em;
  margin: 0 var(--gutter) 1em;
}
.tv-switch button {
  min-height: 44px;
  padding: .5em 1em;
  border: 1px solid #879ba1;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: 750 .87em/1.2 Manrope, system-ui, sans-serif;
}
.tv-switch button:hover { background: var(--mint); border-color: var(--deep); }
.tv-switch button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -3px var(--azure);
}
.tv-switch button:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
}
.tv-layout.tv-single { grid-template-columns: minmax(0, 1fr); }
.tv-single .tv-ranking { padding: clamp(16px, 2.1vw, 35px); }
.tv-single .tv-rank-box table { font-size: 1em; }

/* The names sit above a continuous podium. Equal places have equal step heights. */
.tv-board[data-screen="podium"] .tv-mast h1 { font-size: clamp(32px, 3vw, 60px); }
.tv-awards {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: clamp(20px, 2vw, 38px) clamp(16px, 4.5vw, 84px) 0;
  color: var(--paper);
  border-radius: 8px;
  background: linear-gradient(116deg, var(--ink) 6%, #102940 72%, #0a2133);
}
.tv-awards::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 88%;
  height: 100%;
  bottom: -56%;
  left: 50%;
  transform-origin: center top;
  transform: translateX(-50%) perspective(34rem) rotateX(57deg);
  border: 2px solid rgb(170 216 227 / 13%);
  background: linear-gradient(90deg, transparent 49.9%, rgb(170 216 227 / 13%) 50%, transparent 50.1%),
    linear-gradient(transparent 35%, rgb(170 216 227 / 15%) 35.4%, transparent 36%);
}
.tv-awards > h2 {
  display: flex;
  align-items: center;
  gap: .6em;
  font: 750 clamp(14px, 1vw, 20px)/1.2 Manrope, sans-serif;
  color: #cfe1e7;
}
.tv-awards > h2::before { content: ""; width: 1.75em; height: 3px; background: var(--azure); }
.tv-steps {
  margin: clamp(24px, 4vw, 76px) auto 0;
  padding: 0;
  max-width: 72rem;
  display: flex;
  justify-content: center;
  align-items: end;
  list-style: none;
}
.tv-step { --metal: #c0d5da; --riser: clamp(54px, 6vw, 100px); flex: 1; min-width: 0; max-width: 26rem; text-align: center; }
.tv-step[data-place="1"] { --metal: var(--azure); --riser: clamp(96px, 9.8vw, 152px); }
.tv-step[data-place="3"] { --metal: #dcc0a8; --riser: clamp(36px, 4vw, 66px); }
.tv-centre-winner > :first-child { order: 2; }
.tv-centre-winner > :nth-child(2) { order: 1; }
.tv-centre-winner > :nth-child(3) { order: 3; }
.tv-medallist { min-width: 0; padding: 0 clamp(6px, 1.1vw, 20px) clamp(15px, 1.65vw, 30px); }
.tv-award-label,.tv-award-result { display: block; font-family: Manrope, sans-serif; }
.tv-award-label { color: var(--metal); font-weight: 800; font-size: clamp(14px, 1.1vw, 21px); }
.tv-award-name { display: block; color: #fff; font: 800 clamp(32px, 3.2vw, 65px)/1.03 Barlow, sans-serif; overflow-wrap: anywhere; }
.tv-medallist .tv-award-name { margin: .13em 0 .16em; }
.tv-step[data-place="1"] .tv-award-name { font-size: clamp(40px, 4.7vw, 92px); }
.tv-award-result { color: #d5e1e8; font-size: clamp(13px, 1.03vw, 21px); font-weight: 650; font-variant-numeric: tabular-nums; }
.tv-plinth {
  display: grid;
  place-content: center;
  min-height: var(--riser);
  border-top: 4px solid color-mix(in srgb, var(--metal), white 40%);
  background: var(--metal);
  color: var(--ink);
  font: 800 clamp(30px, 3.4vw, 64px)/1 Barlow, sans-serif;
}
.tv-award-bands { margin: clamp(22px, 3vw, 54px) auto clamp(18px, 2.5vw, 40px); max-width: 80rem; }
.tv-award-band { display: grid; grid-template-columns: minmax(6em, .8fr) minmax(0, 4fr); align-items: start; column-gap: 1.5em; padding: 1em 0; border-top: 1px solid #4a6277; }
.tv-award-band h3 { font: 750 clamp(17px, 1.7vw, 30px)/1.15 Manrope, sans-serif; color: #c0d5da; }
.tv-award-band[data-place="1"] h3 { color: var(--azure); }
.tv-award-band[data-place="3"] h3 { color: #dcc0a8; }
.tv-award-band ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11em), 1fr)); gap: 1em; list-style: none; margin: 0; padding: 0; }
.tv-award-band .tv-award-name { font-size: clamp(25px, 2.4vw, 46px); margin-bottom: .2em; }
.tv-award-totals {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: .45em clamp(18px, 4.5vw, 80px); padding: .9em 0 1.1em; margin: 0;
  border-top: 1px solid #39526a; font-size: clamp(13px, 1.05vw, 21px);
}
.tv-award-totals > div { display: flex; align-items: baseline; gap: .55em; }
.tv-award-totals dt { color: #c4d5df; }
.tv-award-totals dd { margin: 0; color: white; font-weight: 800; }
@media (min-width: 641px) {
  .tv-board[data-screen="podium"] { display: flex; flex-direction: column; min-height: 100svh; }
  .tv-board[data-screen="podium"] .tv-layout { flex: 1; align-items: stretch; }
  .tv-awards:has(.tv-steps) { display: grid; grid-template-rows: auto 1fr auto; }
  .tv-awards > h2 { font: 800 clamp(25px, 2.5vw, 47px)/1 Barlow, sans-serif; }
  .tv-awards > h2::before { width: 1em; }
  .tv-steps { width: 100%; align-self: center; margin: clamp(20px, 2.5vh, 36px) auto; }
  .tv-step { --riser: clamp(62px, 13vh, 170px); }
  .tv-step[data-place="1"] { --riser: clamp(100px, 21vh, 255px); }
  .tv-step[data-place="3"] { --riser: clamp(40px, 8vh, 105px); }
  .tv-steps[data-count="4"] { max-width: 88rem; }
  .tv-steps[data-count="4"] .tv-award-name { font-size: clamp(26px, 2.6vw, 50px); }
  .tv-awards::before { bottom: -45%; }
}
@media (max-width: 640px) {
  .tv-switch { gap: .35em; }
  .tv-switch button { padding-inline: .75em; }
  .tv-awards { padding: 19px 16px 8px; }
  .tv-steps { display: grid; grid-template-columns: minmax(0,1fr); margin-top: 16px; }
  .tv-steps > .tv-step { order: initial; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 14px; width: 100%; max-width: none; text-align: left; padding: 13px 0; border-top: 1px solid #486077; }
  .tv-medallist { grid-column: 2; grid-row: 1; padding: 0; }
  .tv-plinth { grid-column: 1; grid-row: 1; width: 48px; min-height: 52px; border-top-width: 3px; border-radius: 2px; font-size: 34px; }
  .tv-step .tv-award-name,.tv-step[data-place="1"] .tv-award-name { font-size: 32px; }
  .tv-award-band { grid-template-columns: minmax(0,1fr); gap: .6em; }
  .tv-award-band ul { grid-template-columns: minmax(0,1fr); }
  .tv-award-totals { justify-content: start; gap: .35em 1em; padding-block: .9em .55em; }
}

.tv-board[data-accent="mint"]{--azure:#87e0ba}
.tv-board[data-accent="amber"]{--azure:#ffc068}
.tv-attribution{display:flex;align-items:center;flex-wrap:wrap;gap:.6em 1.5em;margin:0 var(--gutter) 1em;padding:.55em 0;border-block:1px solid var(--line);overflow-wrap:anywhere}
.tv-attribution span{color:var(--muted)}
