/* Tournament Live : pages publiques et grand ecran. */

.live-main { max-width: 1480px; margin: 0 auto; padding: 20px clamp(14px, 3vw, 32px) 120px; }
.live-nav { position: sticky; top: 60px; z-index: 20; display: flex; gap: 6px; padding: 8px clamp(14px, 3vw, 32px); overflow-x: auto; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.live-nav a { padding: 8px 14px; border-radius: 99px; font-weight: 700; color: var(--text-2); white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
.live-nav a.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; text-decoration: none; }
.live-nav a:hover { text-decoration: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 26px; border-radius: var(--dm-radius-l); margin-bottom: 20px; color: #f2f5ff;
  background: radial-gradient(1200px 300px at 10% -40%, rgba(43, 227, 139, .35), transparent 60%), radial-gradient(900px 300px at 100% 0%, rgba(83, 216, 255, .28), transparent 55%), linear-gradient(135deg, #0c1018, #11151f 60%, #1a2030);
  box-shadow: var(--shadow-l); }
.hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 6px; }
.hero .sub { color: #b6bdd4; font-weight: 600; }
.hero .stats { display: flex; gap: 22px; flex-wrap: wrap; }
.hero .stat .v { font-size: 1.9rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.hero .stat .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8e97b3; font-weight: 800; }
.hero .progress { margin-top: 14px; background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

.section { margin: 26px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.section h2 { margin: 0; }
.section .count { color: var(--text-3); font-weight: 700; }
.section > a { margin-left: auto; }

.stations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.station-card { position: relative; border-radius: var(--dm-radius); border: 1px solid var(--line); background: var(--surface); padding: 14px; box-shadow: var(--shadow); min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.station-card .head { display: flex; align-items: center; gap: 10px; }
.station-card .no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.station-card.busy .no { background: var(--magenta); color: #fff; }
.station-card.stage .no { background: var(--gold); color: #1d1b18; }
.station-card .comp { font-size: .78rem; font-weight: 750; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.station-card .players { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-weight: 750; }
.station-card .players .sc { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.station-card .players .rem { color: var(--text-3); font-weight: 700; font-size: .85rem; text-align: right; }
.station-card .turn { color: var(--accent); }
.station-card .next { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--text-2); }
.station-card .free { color: var(--ok); font-weight: 800; }

.upcoming { display: flex; flex-direction: column; gap: 8px; }
.up { display: grid; grid-template-columns: 86px 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.up .t { font-weight: 900; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.up .t small { display: block; font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.up .t.estimated small { color: var(--violet); }
.up .t.confirmed small { color: var(--ok); }
.up .st { font-weight: 850; text-align: center; padding: 6px 8px; border-radius: 10px; background: var(--surface-3); }
.up .who { min-width: 0; }
.up .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .who span { font-size: .8rem; color: var(--text-3); }
@media (max-width: 640px) { .up { grid-template-columns: 70px minmax(0, 1fr); } .up .st, .up .badge { display: none; } }

.comp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.comp-card { cursor: pointer; transition: transform .15s var(--dm-ease), box-shadow .2s; }
.comp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.comp-card .winner { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); font-weight: 850; }

/* Scoreboards */
.scoreboard { border-radius: var(--dm-radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-l); }
.scoreboard .sb-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.scoreboard .sb-row:last-child { border-bottom: 0; }
.scoreboard .sb-row.turn { background: var(--accent-soft); box-shadow: inset 6px 0 0 var(--accent); }
.scoreboard .sb-name { font-size: 1.35rem; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreboard .sb-legs { font-size: 2.2rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.scoreboard .sb-rem { font-size: 2.6rem; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; color: var(--cyan); }
.cricket { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cricket th, .cricket td { padding: 10px; text-align: center; border-bottom: 1px solid var(--line); }
.cricket td.target { font-weight: 900; font-size: 1.2rem; background: var(--surface-2); }
.cricket .mark { font-size: 1.5rem; font-weight: 900; letter-spacing: -.05em; }
.cricket .mark.m3 { color: var(--accent); }
.cricket .pts { font-size: 1.6rem; font-weight: 900; }
.visits { display: flex; flex-wrap: wrap; gap: 6px; }
.visits span { padding: 4px 10px; border-radius: 8px; background: var(--surface-3); font-weight: 800; font-variant-numeric: tabular-nums; }
.visits span.bust { text-decoration: line-through; color: var(--danger); }
.visits span.hi { background: var(--gold-soft); color: var(--gold); }

/* Ticker (appels) */
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 52px; overflow: hidden; display: flex; align-items: center; background: #0c1018; color: #f2f5ff; border-top: 2px solid var(--accent); }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; padding-left: 100%; animation: ticker 40s linear infinite; font-weight: 750; font-size: 1.05rem; }
.ticker-track span b { color: #2be38b; margin-right: 8px; }
.ticker-track span.call b { color: #ff5470; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: 16px; overflow-x: auto; } }

/* Grand ecran (TV) */
body.tv { font-size: 18px; }
body.tv .dm-topbar { min-height: 70px; }
body.tv .live-main { max-width: none; padding: 22px 32px 90px; }
body.tv .live-nav { display: none; }
body.tv .station-card { min-height: 180px; }
body.tv .station-card .players { font-size: 1.2rem; }
body.tv .up .t { font-size: 1.35rem; }
body.tv .tv-clock { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.tv-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 50; transition: width linear; }
.tv-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tv-title h2 { font-size: 2rem; margin: 0; }

.unlock { max-width: 440px; margin: 40px auto; }
.alerts-topics { display: grid; gap: 8px; }
.cap-table td.ok { color: var(--ok); font-weight: 800; }
.cap-table td.ko { color: var(--danger); }
.stale-banner { position: sticky; top: 112px; z-index: 15; margin-bottom: 12px; }
