/* --- FIREBLADE NEWS STYLE --- */

/* ... (Twój poprzedni blok z .news-container, .news-title, .news-content itd. zostaje) ... */

/* WRAPPER TABELKI W ARTYKULE */


/* --- STYL "HERO" NAZWA WYŚCIGU (podobny do weather) --- */

/* kontener napisu w stylu motogp.com */
.results__container {
  margin: 2.4rem 0 1.2rem;
  padding: 0 1.2rem;
}

.results__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.6rem;
  background: #222;
  border-radius: 6px;
  border: 1px solid #333;
  text-align: center;
}

.c-dark-mode {
  background: #222;
  border: 1px solid #333;
}

.results__hero-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.025em;
  margin: 0 0 0.4rem 0;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.results__hero-details-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results__hero-details-location,
.results__hero-details-dates {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* dla małych ekranów – mniejsze czcionki i mniejsze wcięcia */
@media (max-width: 768px) {
  .results__hero-container {
    padding: 1rem 1.2rem;
  }

  .results__hero-text {
    font-size: 1.5rem;
  }

  .results__hero-details-container {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .results__hero-text {
    font-size: 1.3rem;
  }
}


.results-table {
  margin: 2.4rem 0 2.4rem;
  padding: 0 1.2rem;
}

@media (min-width: 768px) {
  .results-table {
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 740px;
    width: 100%;
  }
}

/* WARUNKI POGODY – minimalne */
.results-table__weather {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: #222;
  border-radius: 4px;
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
  color: #ccc;
}

.results-table__weather-header {
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.results-table__weather-cell {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px;
}

/* WRAPPER TABELI */
.results-table__table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* SAMY KOSTKA Z TABELĄ */
.results-table__table {
  width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  background: #222;
  font-size: 0.88rem;
  border-radius: 4px;
}

.results-table__table th,
.results-table__table td {
  padding: 0 4px 0 0;
  /* border-bottom: 1px solid #3c3c3c; */
}

/* NAGŁÓWKI KOLUMN */
.results-table__header-cell {
  color: #fff;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #444;
}

.results-table__header-cell--pos {
  width: 3.5rem;
  text-align: center;
}

.results-table__header-cell--points {
  width: 4rem;
  text-align: right;
}

.results-table__header-cell--rider {
  text-align: left;
  width: 190px; /* lekko ograniczone, żeby nie przesuwało tabeli */
}

.results-table__header-cell--team {
  color: #aaa;
  width: 100px;
  max-width: 100px;
  text-align: left;
}

.results-table__header-cell--time {
  text-align: right;
  width: 7.5rem;
}

/* WIERSZE TABELI */
.results-table__body-row {
  border-bottom: 1px solid #3c3c3c;
}

.results-table__body-row:nth-child(even) {
  background: #222;
}

/* KOMÓRKI */
.results-table__body-cell {
  color: #eee;
  /* border-bottom: 1px solid #3c3c3c; */
}

.results-table__body-cell--pos {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
}

.results-table__body-cell--points {
  text-align: right;
  font-size: 1.05rem;
  font-weight: 700;
}

/* RIDER – imię + numer + flaga obok */
.results-table__rider-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-table__body-cell--rider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-table__body-cell--number {
  display: inline-block;
  min-width: 1.9rem;
  padding: 0 0.35rem;
  background: #c00;
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.results-table__body-cell--full-name {
  font-weight: 700;
  font-size: 0.98rem;
}

/* BIAŁE LINKI RIDERA */
.results-table__body-cell--full-name a {
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
}

.results-table__body-cell--full-name a:hover {
  text-decoration: underline;
}

/* FLAGA – zaraz po nazwie ridera (obok), nie pod spodem */
.results-table__body-cell-flag {
  width: 24px;
  height: 9px;
  border-radius: 1px;
  margin-left: 0.3rem;
}

/* KOLUMNA TEAM – widoczna, ale zwijana i zwężona */
.results-table__body-cell--team {
  font-size: 0.8rem;
  color: #aaa;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100px;
}

/* czas */
.results-table__body-cell--time {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

/* GROUP HEADER (Not Classified) */
.results-table__group-header {
  background: #222;
  border-left: 2px solid #fff;
}

.results-table__group-header th {
  color: #aaa;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}

/* RESPONSYWNOŚĆ – MOBILE (Team wciąż, ale bardziej ciasna) */
@media (max-width: 768px) {
  .results-table__table {
    font-size: 0.8rem;
    min-width: 480px;
  }

  .results-table__header-cell {
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
  }

  .results-table__body-cell {
    padding: 0.4rem 0.5rem;
  }

  .results-table__body-cell--time {
    font-size: 0.78rem;
  }

  .results-table__body-cell--full-name {
    font-size: 0.9rem;
  }

  .results-table__body-cell--number {
    min-width: 1.8rem;
    font-size: 0.8rem;
  }

  .results-table__header-cell--rider {
    width: 160px;
  }

  .results-table__header-cell--team,
  .results-table__body-cell--team {
    width: 75px;
    max-width: 75px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .results-table__table {
    font-size: 0.75rem;
    min-width: 420px;
  }

  .results-table__header-cell {
    font-size: 0.7rem;
    padding: 0.3rem 0.45rem;
  }

  .results-table__body-cell--team {
    width: 65px;
    max-width: 65px;
    font-size: 0.7rem;
  }
}
