/* Pokalansicht in Tabelle */
.tt-cup-view{--cup-blue:#086bb5;--cup-navy:#12365c;--cup-line:#c9d9e9;color:var(--cup-navy);display:grid;gap:16px;margin-top:18px}
.tt-cup-view *{box-sizing:border-box}
.tt-cup-view__overview,.tt-cup-view__panel{background:#fff;border:1px solid var(--cup-line);border-radius:9px;box-shadow:0 3px 12px rgba(19,67,110,.08)}
.tt-cup-view__overview{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:13px 18px}
.tt-cup-view__overview>strong{font-size:18px}.tt-cup-view__overview>strong i{color:#d9a213;margin-right:7px}
.tt-cup-view__overview nav{display:flex;gap:5px;align-items:center}.tt-cup-view__class,.tt-cup-view__filters button{border:1px solid var(--cup-line);border-radius:6px;background:#f8fbff;color:var(--cup-navy);font-weight:600;text-align:center;text-decoration:none;cursor:pointer}
.tt-cup-view__class{min-width:130px;padding:8px 16px}.tt-cup-view__class.is-active,.tt-cup-view__filters button.is-active{background:linear-gradient(180deg,#0788d1,#0560ac);border-color:#0670bd;color:#fff;box-shadow:0 2px 5px #0b5b9b33}
.tt-cup-view__state{justify-self:end;white-space:nowrap;border-radius:20px;padding:5px 12px;background:#e9f8eb;color:#197337;font-size:12px;font-weight:700}.tt-cup-view__state i{font-size:9px;margin-right:5px}
.tt-cup-view__panel{padding:14px 16px}.tt-cup-view__panel h2{font-size:18px;font-weight:700;margin:0 0 12px;color:#142d4a}.tt-cup-view__panel h2 i{color:var(--cup-blue);margin-right:7px}
.tt-cup-view__bracket{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:18px;overflow-x:auto;padding:0 2px 3px}
.tt-cup-view__round{min-width:180px}.tt-cup-view__round--4{grid-column:4;grid-row:2}.tt-cup-view__round--5{grid-column:4;grid-row:1}
.tt-cup-view__round h3{background:linear-gradient(90deg,#e1f0fc,#c5e0f7);border-radius:5px;padding:6px 10px;margin:0 0 9px;text-align:center;color:#102c4e;font-size:14px;font-weight:700}.tt-cup-view__round h3.is-final{background:linear-gradient(90deg,#075dad,#0788cf);color:#fff}.tt-cup-view__round h3.is-final i{color:#f4c441}
.tt-cup-view__round-games{display:flex;flex-direction:column;gap:8px}.tt-cup-view__match{border:1px solid #c5d4e2;border-radius:6px;background:linear-gradient(110deg,#fff,#f3f8ff);padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:50px}.tt-cup-view__teams{display:flex;flex-direction:column;min-width:0;line-height:1.3;font-size:13px}.tt-cup-view__teams span{overflow-wrap:anywhere}.tt-cup-view__teams .is-winner{font-weight:700}.tt-cup-view__score{display:inline-block;white-space:nowrap;border-radius:5px;padding:4px 7px;background:#e4eef9;color:#12375c;font-weight:700;font-size:13px}.tt-cup-view__score--empty,.tt-cup-view__score--bye{color:#536b81;font-weight:500}.tt-cup-view__pending{color:#718398;font-size:13px;font-style:italic;margin:8px 0}
.tt-cup-view__filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.tt-cup-view__filters button{padding:7px 12px;min-width:95px;font-size:13px}
.tt-cup-view__table-wrap{overflow-x:auto}.tt-cup-view__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--cup-line);border-radius:6px;overflow:hidden;font-size:13px}.tt-cup-view__table th{background:#dceefa;color:#12365c;text-transform:uppercase;font-size:11px;padding:8px 10px}.tt-cup-view__table td{padding:7px 10px;border-top:1px solid #e4edf5}.tt-cup-view__table tbody tr:nth-child(even){background:#f4f8fd}.tt-cup-view__table th:last-child,.tt-cup-view__table td:last-child{text-align:center}.tt-cup-view__table tr[hidden]{display:none}
@media(max-width:800px){.tt-cup-view__overview{grid-template-columns:1fr auto}.tt-cup-view__overview nav{grid-column:1/-1;grid-row:2;justify-content:center}.tt-cup-view__state{grid-column:2;grid-row:1}.tt-cup-view__bracket{grid-template-columns:repeat(4,220px)}}
@media(max-width:520px){.tt-cup-view__overview{grid-template-columns:1fr}.tt-cup-view__state{grid-column:1;grid-row:2;justify-self:start}.tt-cup-view__overview nav{grid-row:3;justify-content:stretch}.tt-cup-view__class{min-width:0;flex:1}.tt-cup-view__panel{padding:12px}.tt-cup-view__table th,.tt-cup-view__table td{padding:7px 6px;font-size:11px}.tt-cup-view__table th{font-size:10px}}
/* Keep wide bracket content inside its own scroll area on narrow screens. */
.tt-cup-view,.tt-cup-view__overview,.tt-cup-view__panel,.tt-cup-view__bracket,.tt-cup-view__table-wrap{min-width:0;max-width:100%}
.tt-cup-view__overview,.tt-cup-view__panel{width:100%}
.tt-cup-view__bracket{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
@media(max-width:800px){
  .tt-cup-view__overview{grid-template-columns:minmax(0,1fr) auto}
  .tt-cup-view__overview nav{min-width:0;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
  .tt-cup-view__class{min-width:0;width:100%;padding-inline:8px}
  .tt-cup-view__bracket{grid-template-columns:repeat(4,minmax(200px,75vw));scroll-snap-type:x proximity}
  .tt-cup-view__round{min-width:0;scroll-snap-align:start}
}
@media(max-width:520px){
  .tt-cup-view__overview{grid-template-columns:minmax(0,1fr)}
  .tt-cup-view__overview>strong{overflow-wrap:anywhere}
  .tt-cup-view__overview nav{grid-column:1;grid-row:3}
  .tt-cup-view__bracket{grid-template-columns:repeat(4,minmax(190px,78vw));gap:12px}
}
/* Mobile layout: all rounds and results stay in the page width. */
@media (max-width: 800px) {
  #sp-main-body [data-bkv-table],
  #sp-main-body .tt-cup-view,
  #sp-main-body .tt-cup-view__overview,
  #sp-main-body .tt-cup-view__panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  #sp-main-body .tt-cup-view__bracket {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    gap: 16px;
    scroll-snap-type: none;
  }
  #sp-main-body .tt-cup-view__round {
    width: 100%;
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
  }
  #sp-main-body .tt-cup-view__round-games,
  #sp-main-body .tt-cup-view__match { min-width: 0; max-width: 100%; }
  #sp-main-body .tt-cup-view__table-wrap { overflow: visible; width: 100%; }
  #sp-main-body .tt-cup-view__table,
  #sp-main-body .tt-cup-view__table tbody,
  #sp-main-body .tt-cup-view__table tr,
  #sp-main-body .tt-cup-view__table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  #sp-main-body .tt-cup-view__table { border: 0; background: transparent; }
  #sp-main-body .tt-cup-view__table thead { display: none; }
  #sp-main-body .tt-cup-view__table tr {
    padding: 8px 10px;
    margin: 0 0 9px;
    border: 1px solid var(--cup-line);
    border-radius: 7px;
    background: #f8fbff;
  }
  #sp-main-body .tt-cup-view__table tr[hidden] { display: none; }
  #sp-main-body .tt-cup-view__table td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    border: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  #sp-main-body .tt-cup-view__table td::before {
    content: attr(data-label);
    flex: 0 0 75px;
    color: #526b82;
    font-weight: 600;
    text-align: left;
  }
}
.tt-cup-view__pending{display:flex;flex-direction:column;gap:5px;margin:2px 0;padding:9px 10px;border:1px dashed var(--cup-line);border-radius:6px;background:#f7fbff;font-style:normal}
.tt-cup-view__pending>span:first-child{font-weight:600;color:#516a83}
.tt-cup-view__week{font-size:12px;line-height:1.35;color:#24557e}
.tt-cup-view__week i{margin-right:3px}
.tt-cup-view__match{flex-wrap:wrap}
.tt-cup-view__match-date{flex:0 0 100%;border-top:1px solid #e3edf6;padding-top:5px;color:#526c83;font-size:11px;line-height:1.3}
.tt-cup-view__match-date i{margin-right:3px;color:#4b789c}
.tt-cup-view__final-rounds{grid-column:4;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0}
.tt-cup-view__final-rounds .tt-cup-view__round--4,
.tt-cup-view__final-rounds .tt-cup-view__round--5{grid-column:auto;grid-row:auto;width:100%;min-width:0}
@media(max-width:800px){#sp-main-body .tt-cup-view__final-rounds{width:100%;min-width:0}}
