.thc-game-plan {
  --thc-bg: #f3f4f6;
  --thc-card: #ffffff;
  --thc-text: #111827;
  --thc-muted: #6b7280;
  --thc-border: #e5e7eb;
  --thc-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--thc-text);
  font-family: Arial, Helvetica, sans-serif;
}

.thc-game-plan,
.thc-game-plan *,
.thc-game-plan *::before,
.thc-game-plan *::after {
  box-sizing: border-box;
}

.thc-game-plan .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 10px;
  background: var(--thc-bg);
  border-radius: 4px;
}

.thc-game-plan .wrap > h1 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
  color: #000000 !important;
}

.thc-game-plan .toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 246, 0.94);
  backdrop-filter: blur(8px);
  padding: 0 0 12px;
  margin-bottom: 12px;
}

.thc-game-plan .toolbar.hidden {
  display: none;
}

.thc-game-plan .toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.thc-game-plan .filter-toggle {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #cfd6df;
  background: #ffffff;
  color: #111827;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.thc-game-plan .result-info {
  margin-top: 0;
  font-size: 13px;
  color: var(--thc-muted);
}

.thc-game-plan .toolbar.is-collapsed .filter-panel {
  display: none;
}

.thc-game-plan .toolbar.is-collapsed {
  padding-bottom: 6px;
}

.thc-game-plan .filter-panel,
.thc-game-plan .filter-group {
  display: grid;
  gap: 12px;
}

.thc-game-plan .filter-group {
  gap: 8px;
}

.thc-game-plan .filter-title {
  font-size: 13px;
  font-weight: 700;
}

.thc-game-plan .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thc-game-plan .chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
}

.thc-game-plan .chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.thc-game-plan .chip span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #cfd6df !important;
  font-size: 13px;
  line-height: 1.1;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  box-shadow: none;
}

.thc-game-plan .chip.active span {
  transform: scale(1.03);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.18) !important;
}

.thc-game-plan .chip.active:not(.team-chip) span {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #111827 !important;
}

.thc-game-plan .chip.is-unavailable {
  cursor: not-allowed;
}

.thc-game-plan .chip.is-unavailable span {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  box-shadow: none;
  transform: none;
}

.thc-game-plan .filter-actions button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #cfd6df;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.thc-game-plan .table-card {
  background: var(--thc-card);
  border-radius: 20px;
  box-shadow: var(--thc-shadow);
  border: 1px solid var(--thc-border);
  overflow: hidden;
}

.thc-game-plan .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.thc-game-plan table {
  width: 100%;
  border-collapse: collapse;
}

@media (min-width: 761px) {
  .thc-game-plan table {
    min-width: 760px;
  }
}

.thc-game-plan thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  text-align: left;
  padding: 14px 16px;
  background: linear-gradient(to bottom, #ffffff, #f3f4f6);
  border-bottom: 1px solid var(--thc-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #374151;
}

.thc-game-plan tbody tr {
  border-bottom: 1px solid #edf0f3;
}

.thc-game-plan tbody tr:last-child {
  border-bottom: 0;
}

.thc-game-plan tbody tr.hidden {
  display: none;
}

.thc-game-plan tbody td {
  padding: 14px 16px;
  vertical-align: top;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.4;
}

.thc-game-plan tbody tr:hover td {
  background: #fafbfc;
}

.thc-game-plan .col-date {
  white-space: nowrap;
  width: 150px;
}

.thc-game-plan .date-main {
  font-weight: 700;
}

.thc-game-plan .date-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--thc-muted);
}

.thc-game-plan .col-date.is-grouped-time {
  padding-top: 10px;
}

.thc-game-plan .col-date.is-grouped-time .date-sub {
  margin-top: 0;
}

.thc-game-plan .time-badge,
.thc-game-plan .type-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.thc-game-plan .time-badge.is-missing {
  background: #fff8db;
  color: #7c5d00;
}

.thc-game-plan .type-badge.type-home {
  background: #e9f7ef;
  color: #166534;
}

.thc-game-plan .type-badge.type-away {
  background: #eff6ff;
  color: #1d4ed8;
}

.thc-game-plan .type-badge.type-event {
  background: #f3e8ff;
  color: #6b21a8;
}

.thc-game-plan .match-cell {
  display: grid;
  gap: 8px;
}

.thc-game-plan .match-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.thc-game-plan .team-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.thc-game-plan a.team-pill {
  color: inherit;
  text-decoration: none;
}

.thc-game-plan .fixture {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.thc-game-plan .fixture a,
.thc-game-plan .place a {
  color: inherit;
  text-decoration: none;
}

.thc-game-plan .fixture a:hover,
.thc-game-plan .fixture a:focus-visible,
.thc-game-plan .place a:hover,
.thc-game-plan .place a:focus-visible {
  text-decoration: underline;
}

.thc-game-plan .team-name-short {
  display: none;
}

.thc-game-plan .team-side {
  display: inline;
}

.thc-game-plan .fixture-separator {
  display: inline;
}

.thc-game-plan .competition {
  font-size: 13px;
  color: var(--thc-muted);
}

.thc-game-plan .place {
  font-weight: 700;
}

.thc-game-plan .place-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.thc-game-plan .place-row-inline {
  margin-top: 8px;
}

.thc-game-plan .weather-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 24px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe1e8;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.thc-game-plan .weather-icon {
  font-size: 14px;
  line-height: 1;
}

.thc-game-plan .weather-temp {
  font-size: 0.8em;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  padding-left: 0.5em;
}

.thc-game-plan .muted {
  color: var(--thc-muted);
}

.thc-game-plan .weather-attribution {
  margin-top: 8px;
  font-size: 12px;
  color: var(--thc-muted);
}

.thc-game-plan .weather-attribution a {
  color: inherit;
}

.thc-game-plan .status,
.thc-game-plan .no-results {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: var(--thc-muted);
}

.thc-game-plan .status.hidden,
.thc-game-plan .no-results.hidden {
  display: none;
}

.thc-game-plan .c-default { background: #e9ecef; color: #111827; }
.thc-game-plan .c-u8 { background: #00b050; color: #111827; }
.thc-game-plan .c-wu10 { background: #f8cbad; color: #111827; }
.thc-game-plan .c-mu10 { background: #d9d9d9; color: #111827; }
.thc-game-plan .c-wu12 { background: #fa8072; color: #111827; }
.thc-game-plan .c-mu12 { background: #00b0f0; color: #ffffff; }
.thc-game-plan .c-wu14 { background: #ffd6ff; color: #111827; }
.thc-game-plan .c-mu14 { background: #ffc000; color: #111827; }
.thc-game-plan .c-wu16 { background: #c6e0b4; color: #111827; }
.thc-game-plan .c-mu16 { background: #9be89b; color: #111827; }
.thc-game-plan .c-mu18 { background: #7cc7ff; color: #111827; }
.thc-game-plan .c-wu18 { background: #ff99ff; color: #111827; }
.thc-game-plan .c-herren { background: #0070c0; color: #111827; }
.thc-game-plan .c-damen { background: #ff7b7b; color: #111827; }

.thc-game-plan .chip.team-chip.c-default.active span { background: #e9ecef !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-u8.active span { background: #00b050 !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-wu10.active span { background: #f8cbad !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-mu10.active span { background: #d9d9d9 !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-wu12.active span { background: #fa8072 !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-mu12.active span { background: #00b0f0 !important; color: #ffffff !important; }
.thc-game-plan .chip.team-chip.c-wu14.active span { background: #ffd6ff !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-mu14.active span { background: #ffc000 !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-wu16.active span { background: #c6e0b4 !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-mu16.active span { background: #9be89b !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-mu18.active span { background: #7cc7ff !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-wu18.active span { background: #ff99ff !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-herren.active span { background: #0070c0 !important; color: #111827 !important; }
.thc-game-plan .chip.team-chip.c-damen.active span { background: #ff7b7b !important; color: #111827 !important; }

@media (max-width: 620px) {
  .thc-game-plan .toolbar-head {
    flex-direction: column;
    align-items: stretch;
  }

  .thc-game-plan .wrap {
    padding-left: 4px;
    padding-right: 4px;
  }

  .thc-game-plan table {
    min-width: 0;
  }

  .thc-game-plan thead {
    display: none;
  }

  .thc-game-plan tbody,
  .thc-game-plan td {
    display: block;
    width: 100%;
  }

  .thc-game-plan tbody tr {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 2px;
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #edf0f3;
  }

  .thc-game-plan tbody td {
    width: auto;
    min-width: 0;
    padding: 2px 0;
    border-bottom: 0;
  }

  .thc-game-plan tbody td:first-child {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding-top: 0;
  }

  .thc-game-plan tbody td:last-child {
    padding-bottom: 0;
  }

  .thc-game-plan tbody tr + tr td:first-child {
    border-top: 0;
  }

  .thc-game-plan tbody td::before {
    display: none;
  }

  .thc-game-plan .col-date {
    width: auto;
  }

  .thc-game-plan tbody td[data-label="Spiel"] {
    grid-column: 2;
    grid-row: 1;
  }

  .thc-game-plan tbody td[data-label="Wettbewerb / Spielklasse"] {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
    padding-left: 8px;
  }

  .thc-game-plan tbody td[data-label="Ort"] {
    grid-column: 2 / span 2;
    grid-row: 2;
  }

  .thc-game-plan .col-date .date-main {
    font-size: 13px;
    line-height: 1.2;
  }

  .thc-game-plan .col-date .date-sub {
    margin-top: 4px;
    font-size: 11px;
  }

  .thc-game-plan .time-badge,
  .thc-game-plan .type-badge,
  .thc-game-plan .team-pill {
    padding: 4px 7px;
    font-size: 11px;
  }

  .thc-game-plan .team-pill {
    min-height: 24px;
  }

  .thc-game-plan .match-cell {
    gap: 5px;
  }

  .thc-game-plan .match-top {
    gap: 6px;
  }

  .thc-game-plan .fixture {
    font-size: 13px;
    line-height: 1.2;
  }

  .thc-game-plan .team-name-full {
    display: none;
  }

  .thc-game-plan .team-name-short {
    display: inline;
  }

  .thc-game-plan tbody td[data-label="Wettbewerb / Spielklasse"] > div:first-child {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #374151;
  }

  .thc-game-plan tbody td[data-label="Wettbewerb / Spielklasse"] .competition {
    display: none;
  }

  .thc-game-plan .muted,
  .thc-game-plan .place {
    display: inline;
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .thc-game-plan .filter-options {
    gap: 6px;
  }

  .thc-game-plan .chip span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .thc-game-plan tbody tr {
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
    padding: 8px 8px;
  }

  .thc-game-plan .col-date .date-main {
    font-size: 12px;
  }

  .thc-game-plan tbody td[data-label="Spiel"] {
    grid-column: 2;
    grid-row: 1;
  }

  .thc-game-plan tbody td[data-label="Wettbewerb / Spielklasse"] {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    white-space: normal;
    padding-left: 0;
  }

  .thc-game-plan tbody td[data-label="Ort"] {
    grid-column: 2;
    grid-row: 3;
  }

  .thc-game-plan .fixture {
    font-size: 13px;
  }

  .thc-game-plan .fixture a,
  .thc-game-plan .fixture {
    display: block;
  }

  .thc-game-plan .team-side {
    display: block;
  }

  .thc-game-plan .fixture-separator {
    display: none;
  }

  .thc-game-plan tbody td[data-label="Wettbewerb / Spielklasse"] > div:first-child {
    font-size: 11px;
  }
}
