.fcs-football {
  --fcs-border: #e7e7e7;
  --fcs-bg: #ffffff;
  --fcs-soft: #f7f7f7;
  --fcs-text: #1f2933;
  --fcs-muted: #687385;
  --fcs-accent: #d71920;
  color: var(--fcs-text);
}

.fcs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--fcs-soft);
  border: 1px solid var(--fcs-border);
  border-radius: 12px;
}

.fcs-filter label {
  display: grid;
  gap: .35rem;
  min-width: 220px;
  margin: 0;
  font-weight: 600;
}

.fcs-filter span {
  font-size: .9rem;
  color: var(--fcs-muted);
}

.fcs-filter select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--fcs-border);
  border-radius: 10px;
  background: #fff;
}

.fcs-loading {
  margin: .5rem 0;
  color: var(--fcs-muted);
}

.fcs-match-list {
  display: grid;
  gap: .7rem;
}

.fcs-date-group {
  margin-top: .4rem;
}

.fcs-date-heading {
  margin: .7rem 0 .2rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--fcs-text);
}

.fcs-match-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--fcs-bg);
  border: 1px solid var(--fcs-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.fcs-match-time {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: .15rem;
  color: var(--fcs-muted);
  font-weight: 700;
}

.fcs-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
  font-weight: 800;
}

.fcs-teams span:last-child {
  text-align: right;
}

.fcs-teams strong {
  min-width: 50px;
  text-align: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--fcs-soft);
  font-size: .95rem;
}

.fcs-teams strong.is-fixture {
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--fcs-muted);
}

.fcs-competition {
  margin-top: .45rem;
  color: var(--fcs-muted);
  font-size: .93rem;
}

.fcs-match-location {
  margin-top: .35rem;
  font-weight: 700;
  color: var(--fcs-text);
  font-size: .95rem;
}

.fcs-status {
  margin-top: .25rem;
  color: var(--fcs-muted);
  font-size: .9rem;
}

.fcs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fcs-border);
  border-radius: 14px;
}

.fcs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.fcs-table th,
.fcs-table td {
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--fcs-border);
  text-align: left;
  white-space: nowrap;
}

.fcs-table th {
  background: var(--fcs-soft);
  font-weight: 700;
}

.fcs-table tr:last-child td {
  border-bottom: 0;
}

.fcs-table .is-fcs-selected td {
  background: rgba(215, 25, 32, .08);
  font-weight: 700;
}

.fcs-standing-title {
  margin: 1rem 0 .75rem;
}

.fcs-empty,
.fcs-error {
  padding: 1rem;
  border: 1px solid var(--fcs-border);
  border-radius: 12px;
  background: var(--fcs-soft);
}

.fcs-error {
  border-color: rgba(215, 25, 32, .35);
}

@media (max-width: 640px) {
  .fcs-match-card {
    grid-template-columns: 1fr;
  }

  .fcs-match-time {
    justify-content: flex-start;
  }

  .fcs-teams {
    grid-template-columns: 1fr;
  }

  .fcs-teams span:last-child,
  .fcs-teams strong {
    text-align: left;
  }

  .fcs-teams strong {
    width: fit-content;
  }
}

.fcs-day-nav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .15rem .05rem .7rem;
  margin: 0 0 .4rem;
  scroll-snap-type: x proximity;
}

.fcs-day-button {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--fcs-border);
  background: #fff;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-weight: 700;
  color: var(--fcs-muted);
  cursor: pointer;
  scroll-snap-align: start;
}

.fcs-day-button:hover,
.fcs-day-button.is-active {
  color: #fff;
  background: var(--fcs-accent);
  border-color: var(--fcs-accent);
}

.fcs-status.is-important {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    background: #fff4e5;
    color: #9a4b00;
}

.fcs-table.footable {
    width: 100%;
}

/* v2.0: kompaktere FooTable-Tabelle mit sichtbaren Punkten und Details unter + */
.fcs-standing .fcs-table-wrap {
  overflow: hidden;
  background: #fff;
}

.fcs-standings-table {
  margin: 0 !important;
  table-layout: auto;
}

.fcs-standings-table th,
.fcs-standings-table td {
  padding: .55rem .65rem;
}

.fcs-standings-table th:nth-child(1),
.fcs-standings-table td:nth-child(1) {
  width: 70px;
}

.fcs-standings-table th:nth-child(3),
.fcs-standings-table td:nth-child(3),
.fcs-standings-table th:nth-child(4),
.fcs-standings-table td:nth-child(4),
.fcs-standings-table th:nth-child(5),
.fcs-standings-table td:nth-child(5) {
  width: 58px;
  text-align: center;
}

.fcs-standings-table .footable-detail-row td,
.fcs-standings-table tr.footable-detail-row td {
  background: #fafafa;
  white-space: normal;
}

.fcs-standings-table .footable-details {
  width: 100%;
  margin: .25rem 0;
}

.fcs-standings-table .footable-details th,
.fcs-standings-table .footable-details td {
  padding: .3rem .5rem;
  border-bottom: 1px solid var(--fcs-border);
}

.fcs-standings-table .footable-details tr:last-child th,
.fcs-standings-table .footable-details tr:last-child td {
  border-bottom: 0;
}


/* v2.1: keep Pkt visible in the first FooTable view */
.fcs-standing .fcs-table-wrap {
  overflow: hidden;
  background: #fff;
}

.fcs-standings-table {
  width: 100% !important;
  table-layout: fixed;
  font-size: .92rem;
}

.fcs-standings-table th,
.fcs-standings-table td {
  padding: .48rem .42rem;
}

.fcs-standings-table th:nth-child(1),
.fcs-standings-table td:nth-child(1) {
  width: 48px;
}

.fcs-standings-table th:nth-child(2),
.fcs-standings-table td:nth-child(2) {
  width: auto;
  white-space: normal;
}

.fcs-standings-table th:nth-child(3),
.fcs-standings-table td:nth-child(3),
.fcs-standings-table th:nth-child(4),
.fcs-standings-table td:nth-child(4),
.fcs-standings-table th:nth-child(5),
.fcs-standings-table td:nth-child(5) {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.fcs-standings-table th:nth-child(n+6),
.fcs-standings-table td:nth-child(n+6) {
  width: 0;
}

.fcs-standings-table .footable-toggle,
.fcs-standings-table .fooicon,
.fcs-standings-table .footable-toggle.fooicon {
  margin-right: .25rem;
}

@media (max-width: 480px) {
  .fcs-standings-table {
    font-size: .86rem;
  }

  .fcs-standings-table th,
  .fcs-standings-table td {
    padding: .42rem .32rem;
  }

  .fcs-standings-table th:nth-child(1),
  .fcs-standings-table td:nth-child(1) {
    width: 42px;
  }

  .fcs-standings-table th:nth-child(3),
  .fcs-standings-table td:nth-child(3),
  .fcs-standings-table th:nth-child(4),
  .fcs-standings-table td:nth-child(4),
  .fcs-standings-table th:nth-child(5),
  .fcs-standings-table td:nth-child(5) {
    width: 36px;
    min-width: 36px;
  }
}

/* v2.2: force compact standing columns so Pkt remains visible */
.fcs-standing .fcs-table-wrap {
  overflow: visible !important;
  background: #fff;
}

.fcs-standings-table,
.fcs-standings-table.footable {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

.fcs-standings-table *,
.fcs-standings-table *::before,
.fcs-standings-table *::after {
  box-sizing: border-box;
}

.fcs-standings-table col.fcs-col-rank { width: 56px !important; }
.fcs-standings-table col.fcs-col-sp { width: 38px !important; }
.fcs-standings-table col.fcs-col-td { width: 42px !important; }
.fcs-standings-table col.fcs-col-pkt { width: 44px !important; }
.fcs-standings-table col.fcs-col-team { width: auto !important; }
.fcs-standings-table col.fcs-col-detail { width: 0 !important; }

.fcs-standings-table th,
.fcs-standings-table td {
  padding: .48rem .32rem !important;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcs-standings-table th:nth-child(1),
.fcs-standings-table td:nth-child(1) {
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  white-space: nowrap;
}

.fcs-standings-table th:nth-child(2),
.fcs-standings-table td:nth-child(2) {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap;
}

.fcs-standings-table th:nth-child(3),
.fcs-standings-table td:nth-child(3) {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  text-align: center !important;
}

.fcs-standings-table th:nth-child(4),
.fcs-standings-table td:nth-child(4) {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  text-align: center !important;
}

.fcs-standings-table th:nth-child(5),
.fcs-standings-table td:nth-child(5) {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
  display: table-cell !important;
  visibility: visible !important;
}

.fcs-standings-table th:nth-child(n+6),
.fcs-standings-table td:nth-child(n+6) {
  display: none !important;
}

.fcs-standings-table tr.footable-detail-row td,
.fcs-standings-table .footable-detail-row td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
}

.fcs-standings-table .footable-toggle,
.fcs-standings-table .fooicon,
.fcs-standings-table .footable-toggle.fooicon {
  margin-right: .18rem !important;
}

@media (max-width: 480px) {
  .fcs-standings-table {
    font-size: .84rem !important;
  }
  .fcs-standings-table col.fcs-col-rank { width: 48px !important; }
  .fcs-standings-table col.fcs-col-sp { width: 34px !important; }
  .fcs-standings-table col.fcs-col-td { width: 38px !important; }
  .fcs-standings-table col.fcs-col-pkt { width: 40px !important; }
  .fcs-standings-table th,
  .fcs-standings-table td {
    padding: .44rem .24rem !important;
  }
  .fcs-standings-table th:nth-child(1),
  .fcs-standings-table td:nth-child(1) {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
  .fcs-standings-table th:nth-child(3),
  .fcs-standings-table td:nth-child(3) {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
  }
  .fcs-standings-table th:nth-child(4),
  .fcs-standings-table td:nth-child(4) {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }
  .fcs-standings-table th:nth-child(5),
  .fcs-standings-table td:nth-child(5) {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }
}


/* v2.3: rounded FooTable container fix */
.fcs-standing .fcs-table-wrap {
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--fcs-border) !important;
}

.fcs-standing .fcs-table-wrap .fcs-standings-table,
.fcs-standing .fcs-table-wrap .footable,
.fcs-standing .fcs-table-wrap table {
  border-radius: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.fcs-standing .fcs-table-wrap .fcs-standings-table tbody tr:last-child td,
.fcs-standing .fcs-table-wrap .footable tbody tr:last-child td {
  border-bottom: 0 !important;
}

.fcs-standing .fcs-table-wrap .footable-detail-row td {
  border-bottom: 1px solid var(--fcs-border) !important;
}

.fcs-standing .fcs-table-wrap .footable-detail-row:last-child td {
  border-bottom: 0 !important;
}
