/* Munich Open 2026 · estilo Matchday: retransmision deportiva, fondo oscuro, amarillo de la bola de Klask */
:root { --bg: #0b0d10; --panel: #14181e; --panel2: #1b2028; --line: #262c36; --ink: #f3f5f8; --muted: #8a93a3; --hi: #ffd400; --red: #ff3b3b; --dot: #262c36; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font: 16px/1.5 Barlow, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .cond { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
a { color: inherit; }
img.fl { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
button { font: inherit; color: inherit; }

/* rotulo que pasa */
.ticker { background: var(--hi); color: #000; overflow: hidden; white-space: nowrap; font: 700 14px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; }
.ticker div { display: inline-block; padding: 8px 0; animation: run 50s linear infinite; }
.ticker span { margin: 0 26px; }
@keyframes run { to { transform: translateX(-50%); } }

/* menu */
nav.top { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 52px; overflow-x: auto; scrollbar-width: none; }
nav.top .wrap::-webkit-scrollbar { display: none; }
nav.top b { font: 900 italic 20px 'Barlow Condensed'; text-transform: uppercase; white-space: nowrap; }
nav.top b span { color: var(--hi); }
nav.top a { text-decoration: none; color: var(--muted); font: 600 15px 'Barlow Condensed'; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
nav.top a:hover { color: var(--ink); }

header.hero { padding: 44px 0 30px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.kick { color: var(--hi); font: 700 15px 'Barlow Condensed'; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { font-size: clamp(64px, 12vw, 148px); line-height: .82; font-weight: 900; font-style: italic; margin: 10px 0 14px; }
.hero h1 span { color: var(--hi); }
.hero p { color: var(--muted); max-width: 44ch; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.lab { font: 600 12px 'Barlow Condensed'; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.digits { display: flex; gap: 8px; margin-top: 8px; }
.digits div { background: #000; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; min-width: 72px; }
.digits b { display: block; font: 700 44px/1 'JetBrains Mono'; color: var(--hi); }
.digits small { font: 600 11px 'Barlow Condensed'; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.board .cal { display: inline-block; margin-top: 12px; font: 600 14px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; color: var(--hi); text-decoration: none; }

.nn { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nn > div { background: var(--panel); padding: 20px 22px; }
.nn .lab { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.nn .on .lab { color: var(--red); }
.nn .on .lab::before { content: ''; width: 9px; height: 9px; background: var(--red); border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.nn h3 { font-size: 34px; font-weight: 800; line-height: 1; margin: 6px 0; }
.nn small { color: var(--muted); }
.nn a { color: var(--hi); font-weight: 600; font-size: 14px; text-decoration: none; }

section { padding: 64px 0 8px; }
.sh { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 2px solid var(--hi); padding-bottom: 10px; }
.sh h2 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; font-style: italic; line-height: 1; }
.sh span { color: var(--muted); font-size: 15px; }

/* programa */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { font: 700 15px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tabs button.sel { background: var(--hi); color: #000; border-color: var(--hi); }
.daytitle { font: 800 italic 22px 'Barlow Condensed'; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fx { width: 100%; border-collapse: collapse; }
.fx td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fx td:first-child { width: 130px; color: var(--hi); white-space: nowrap; }
.fx b { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; }
.fx tr.big b { color: var(--hi); font-size: 28px; }
.fx tr.on { background: rgba(255,59,59,.12); }
.fx tr.on td:first-child::after { content: ' LIVE'; color: var(--red); font: 700 12px 'Barlow Condensed'; letter-spacing: .1em; }
.fx tr.past { opacity: .45; }
.fx small { color: var(--muted); }
.fx small a { color: var(--muted); }

/* mapa */
.mapbox { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.map { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; }
.map svg { display: block; width: 100%; height: auto; }
.map .land { stroke: #2b323d; }
.map .lit { stroke: rgba(255,212,0,.42); }
.map .arc { fill: none; stroke: var(--hi); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; opacity: .85; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.map .hub { fill: var(--hi); }
.map .bub { fill: #000; stroke: var(--hi); stroke-width: 2; }
.map .num { fill: var(--hi); font: 700 17px 'JetBrains Mono'; text-anchor: middle; dominant-baseline: central; }
.map .home { fill: var(--hi); }
.map .ring { fill: none; stroke: var(--hi); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map .tag { fill: var(--ink); font: 800 italic 26px 'Barlow Condensed'; text-transform: uppercase; }
.map .sub { fill: var(--muted); font: 600 15px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; }
.map .usa { fill: var(--hi); font: 700 16px 'Barlow Condensed'; letter-spacing: .08em; }
.ctry { display: grid; gap: 8px; }
.ctry .total { background: var(--hi); color: #000; border-radius: 14px; padding: 16px 18px; }
.ctry .total b { display: block; font: 700 40px/1 'JetBrains Mono'; }
.ctry .total span { font: 700 14px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; }
.crow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: default; }
.crow b { font: 700 19px 'Barlow Condensed'; text-transform: uppercase; }
.crow .n { font: 700 20px 'JetBrains Mono'; color: var(--hi); }
.crow .km { color: var(--muted); font: 500 13px 'JetBrains Mono'; min-width: 72px; text-align: right; }
.crow.sel { border-color: var(--hi); }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* jugadores */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input { flex: 1; min-width: 180px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--ink); font: 500 16px Barlow; }
.filters input:focus { outline: 2px solid var(--hi); border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 14px 'Barlow Condensed'; letter-spacing: .06em; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chips button.sel { border-color: var(--hi); color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tc { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 220px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tc::after { content: attr(data-c); position: absolute; right: -6px; bottom: -24px; font: 900 110px/1 'Barlow Condensed'; color: rgba(255,255,255,.04); text-transform: uppercase; pointer-events: none; }
.tc .c { font: 700 13px 'JetBrains Mono'; color: var(--muted); display: flex; gap: 8px; align-items: center; text-transform: uppercase; }
.tc h3 { font-size: 28px; font-weight: 800; line-height: .95; margin-top: auto; padding-top: 26px; }
.tc .club { color: var(--muted); font-size: 14px; min-height: 21px; }
.tc .pw { margin-top: 12px; align-self: flex-start; background: var(--hi); color: #000; font: 700 13px 'Barlow Condensed'; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.tc .line { color: #c4cad4; font-size: 14px; margin-top: 8px; line-height: 1.35; position: relative; z-index: 1; }
.tc.debut, .tc.rising { border-style: dashed; }
.tc.debut .pw, .tc.rising .pw { background: transparent; color: var(--hi); border: 1px solid var(--hi); }
.empty { color: var(--muted); padding: 20px 0; }

/* cara a cara */
.pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.pick select { width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: 700 20px 'Barlow Condensed'; text-transform: uppercase; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hi) 50%), linear-gradient(135deg, var(--hi) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.pick select:focus { outline: 2px solid var(--hi); }
.pick > span { font: 900 italic 26px 'Barlow Condensed'; color: var(--hi); }
.vsres { display: grid; grid-template-columns: 1fr 170px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 26px; }
.vsres > div { padding: 22px; }
.vsres .a, .vsres .b { font: 800 28px/1 'Barlow Condensed'; text-transform: uppercase; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.vsres .b { text-align: right; }
.vsres .a small, .vsres .b small { font: 500 14px Barlow; color: var(--muted); text-transform: none; }
.vsres .m { background: #000; text-align: center; display: grid; align-content: center; gap: 4px; }
.vsres .m b { font: 700 40px/1 'JetBrains Mono'; color: var(--hi); }
.vsres .m small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.vsres .m.first b { font: 800 22px 'Barlow Condensed'; letter-spacing: .08em; text-transform: uppercase; }
.vsres .last { grid-column: 1 / -1; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 12px 22px; text-align: center; }
.sub3 { font: 800 italic 24px 'Barlow Condensed'; text-transform: uppercase; margin: 6px 0 12px; }
.riv { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.rv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; text-align: left; }
.rv:hover { border-color: var(--hi); }
.rv span { font: 700 18px 'Barlow Condensed'; text-transform: uppercase; }
.rv span:last-child { text-align: right; }
.rv em { font: 700 15px 'JetBrains Mono'; font-style: normal; color: var(--hi); }
.firsts { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 12px; }
.firsts b { font: 700 42px/1 'JetBrains Mono'; color: var(--hi); }
.firsts span { color: var(--muted); }

/* formato */
.brk { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: center; }
.brk .st { background: var(--panel); border-left: 4px solid var(--hi); border-radius: 8px; padding: 16px 18px; }
.brk .st.lo { border-left-color: var(--muted); margin-top: 10px; }
.brk b { font: 800 24px 'Barlow Condensed'; text-transform: uppercase; display: block; }
.brk small { color: var(--muted); }
.brk .fin { background: var(--hi); color: #000; } .brk .fin small { color: #333; }
.newbie { margin-top: 14px; color: var(--muted); }
.newbie a { color: var(--hi); }

/* carrera por el n.o 1 */
.stake { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.stake .n { font: 700 clamp(56px, 9vw, 104px)/1 'JetBrains Mono'; color: var(--hi); }
.stake p { color: var(--muted); margin-top: 8px; }
.stake ol { list-style: none; padding: 0; }
.stake li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 24px 'Barlow Condensed'; text-transform: uppercase; }
.stake li::before { content: '?'; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: #000; color: var(--hi); font: 700 16px 'JetBrains Mono'; flex: none; }
.stake li .fl { margin-left: auto; }

/* directo y resumen */
.livebox { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.livebox h3 { font-size: 30px; font-weight: 800; }
.livebox p { color: var(--muted); }
.livebox iframe { width: 100%; height: 620px; border: 0; border-radius: 12px; margin-top: 16px; background: #fff; }
.btn { display: inline-block; margin-top: 14px; background: var(--hi); color: #000; text-decoration: none; font: 700 16px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 64px; }
footer .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  header.hero, .stake, .two { grid-template-columns: 1fr; }
  .mapbox { grid-template-columns: 1fr; }
  .nn { grid-template-columns: 1fr; }
  .brk { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .digits div { min-width: 0; flex: 1; padding: 8px 4px; } .digits b { font-size: 32px; }
  .pick { grid-template-columns: 1fr; } .pick > span { text-align: center; }
  .vsres { grid-template-columns: 1fr; text-align: center; } .vsres .b { text-align: center; } .vsres .a, .vsres .b { align-items: center; } .vsres .m { padding: 14px; }
  .fx td:first-child { width: 92px; font-size: 13px; }
  .stake { padding: 22px; }
  .riv { grid-template-columns: 1fr; }
  .livebox iframe { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker div, .map .arc, .map .ring, .nn .on .lab::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* fotos (de klaskranking.com) */
.tc .ph { position: absolute; top: 14px; right: 14px; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); background: var(--panel2); }
.tc.hasph h3 { padding-top: 70px; }
.vsres .ph2 { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hi); }
.vsres .b .ph2 { align-self: flex-end; }
.stake li .ph3 { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.stake li .ph3 + * { margin-left: 0; }
@media (max-width: 560px) { .vsres .b .ph2 { align-self: center; } }

/* formato: suizo -> doble eliminacion (cuadro de arriba y de abajo) -> gran final */
.flow { display: grid; grid-template-columns: 1fr 40px 1.25fr 40px 1fr; align-items: center; }
.fs { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; position: relative; }
.fs .t { position: absolute; top: 14px; right: 16px; color: var(--hi); font-size: 13px; }
.fs b { display: block; font: 800 26px/1 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 8px; padding-right: 50px; }
.fs p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.fs.up { border-color: var(--hi); }
.fs.lo { border-style: dashed; }
.fs.fin { background: var(--hi); border-color: var(--hi); }
.fs.fin b, .fs.fin .t { color: #000; } .fs.fin p { color: #2a2a2a; }
.fplay { display: grid; gap: 0; }
.drop { height: 44px; display: grid; place-items: center; position: relative; }
.drop::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 50%; border-left: 2px dashed var(--muted); }
.drop span { position: relative; background: var(--bg); color: var(--muted); font: 600 12px 'Barlow Condensed'; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; }
.drop span::after { content: ' ↓'; }
.fa { height: 2px; background: var(--hi); position: relative; margin: 0 6px; }
.fa::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: var(--hi); border-right: 0; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .fa { width: 2px; height: 28px; margin: 6px auto; }
  .fa::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top-color: var(--hi); border-bottom: 0; }
}
