/* Карточка турнира: дерево кругов слева направо, линии между матчами. */
.ti { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 8px 0 28px; }
.ti-facts { display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ti-f { flex: 1 1 170px; background: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.ti-f span { font: 600 11px/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ti-f b { font: 600 15px/1.3 Inter, sans-serif; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.ti-text { font: 400 16px/1.6 Inter, sans-serif; color: var(--ink-2); max-width: 820px; }
.ti-text p { margin: 0 0 10px; }
.ti-extra { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.ti-site { color: var(--court); font-weight: 600; text-decoration: none; }
.ti-sub { font: 700 13px/1 'Inter Tight', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ti-past table { border-collapse: collapse; width: 100%; max-width: 620px; font: 400 14px/1.4 Inter, sans-serif; }
.ti-past th { text-align: left; font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ti-past td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.ti-past td a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ti-past .ti-y { font-family: 'JetBrains Mono', monospace; color: var(--muted); width: 60px; }
.ti-past .ti-d { color: var(--ink-2); }
.ti-past .fl, .ti-f .fl, .t-head .label .fl { display: inline-block; width: 18px; height: 13px; margin-right: 6px; vertical-align: -1px; }

.br-scroll { overflow-x: auto; margin: 16px 0 32px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.br { display: flex; min-width: max-content; }
.br-col { display: flex; flex-direction: column; width: 272px; flex: none; }
.br-col--champ { width: 200px; }
.br-h { font: 700 11px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 0 16px 12px; white-space: nowrap; }
.br-cells { flex: 1; display: flex; flex-direction: column; }
.br-pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.br-slot { flex: 1; display: flex; align-items: center; padding: 5px 16px; position: relative; }

/* линии: от матча вправо, вертикаль пары, в следующий круг слева */
.br-slot::after { content: ''; position: absolute; right: 0; top: 50%; width: 16px; border-top: 1px solid #c9cfc0; }
.br-pair::after { content: ''; position: absolute; right: 0; top: 25%; bottom: 25%; border-right: 1px solid #c9cfc0; }
.br-col:not(.br-col--first) .br-slot::before { content: ''; position: absolute; left: 0; top: 50%; width: 16px; border-top: 1px solid #c9cfc0; }
.br-pair--one::after { display: none; }
.br-col--last:not(:has(+ .br-col--champ)) .br-slot::after { display: none; }
.br-col--champ .br-slot::after { display: none; }

.br-m { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.br-m--live { border-color: #e0584f; box-shadow: 0 0 0 1px #e0584f inset; }
.br-st { position: absolute; top: -8px; right: 8px; background: #fff; padding: 0 5px;
  font: 600 10px/16px 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.br-st--live { color: #d23a31; }
.br-p { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; font: 500 13px/1 Inter, sans-serif; color: var(--ink); }
.br-p + .br-p { border-top: 1px solid var(--line-soft); }
.br-p .fl { width: 16px; height: 12px; flex: none; border-radius: 2px; }
.br-noflag { width: 16px; flex: none; }
.br-name { color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
a.br-name:hover { color: var(--court); }
.br-seed { font: 500 10px/1 'JetBrains Mono', monospace; color: var(--muted); font-style: normal; flex: none; }
.br-tbd { color: #b8bdb0; }
.br-p--win { font-weight: 700; }
.br-p--lose .br-name { color: var(--muted); }
.br-sets { margin-left: auto; display: flex; gap: 2px; flex: none; }
.br-g { width: 17px; text-align: center; font: 500 13px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--muted); }
.br-g--win { color: var(--ink); font-weight: 700; }
.br-g--now { color: var(--court); font-weight: 700; }
.br-g sup { font-size: 9px; }
.br-champ { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 600 14px/1.2 Inter, sans-serif; }
.br-champ .fl { width: 18px; height: 13px; }

.t-logo { display: block; max-height: 72px; max-width: 220px; width: auto; margin: 4px 0 14px; object-fit: contain; }
.ti-tbl { overflow-x: auto; }
.ti-past table { max-width: 980px; }
.ti-past td { white-space: nowrap; }
.ti-past .ti-w a { font-weight: 700; }
.ti-past td:not(.ti-w) a { font-weight: 500; color: var(--ink-2); }
.ti-past .ti-sc { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ti-past .ti-d { font-size: 13px; line-height: 1.6; }
.ti-past .ti-d .fl, .ti-past td .fl { display: inline-block; width: 18px; height: 13px; margin-right: 6px; vertical-align: -1px; }

.t-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 18px; overflow-x: auto; }
.t-tabs a { padding: 12px 18px; font: 600 15px/1 Inter, sans-serif; color: var(--muted); text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.t-tabs a:hover { color: var(--ink); }
.t-tabs a.is-on { color: var(--ink); border-bottom-color: var(--court); }
.t-sub .f-group { display: inline-flex; margin-bottom: 16px; }
.en table { border-collapse: collapse; width: 100%; max-width: 760px; font: 400 14px/1.4 Inter, sans-serif; }
.en th { text-align: left; font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.en td { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.en .en-n, .en .en-s { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.en .en-s { color: var(--ink); font-weight: 700; }
.en .en-p a { color: var(--ink); text-decoration: none; font-weight: 600; }
.en .en-p .fl { display: inline-block; width: 18px; height: 13px; margin-right: 8px; vertical-align: -1px; }
.en .en-e { width: 70px; font: 600 12px/1 'JetBrains Mono', monospace; color: var(--court); }
.en .en-st { width: 100px; color: var(--muted); font-size: 13px; }
.en tr.en-out .en-p a { color: var(--muted); font-weight: 500; }
.en-legend { margin-top: 12px; line-height: 1.8; }
.rs { margin-bottom: 22px; }
.rs-m { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; background: #fff; position: relative; max-width: 760px; }
.rs-note { position: absolute; top: 6px; right: 12px; font: 600 10px/1 'JetBrains Mono', monospace; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .en .en-st, .en .en-n { display: none; } .t-tabs a { padding: 10px 12px; font-size: 14px; } }
