.liga-wrapper {
  padding-bottom: 15px;
}
.liga-wrapper .content {
  /*max-width:500px;*/
  margin: 0 auto;    /* automatyczne marginesy po bokach → centrowanie */
  background-color:#eff1f6;
  padding:6px;
  border: 2px solid #B1B1CB;
  border-radius:6px;


}

.liga-wrapper .item-content {
  margin: initial !important;
}

.liga-wrapper .category-title {

  font-size: 28px;
  font-weight: bold;
}

.liga-wrapper .separator {
  margin-top:15px;
  border-bottom: 10px solid #3f61a1;
}

.lshadow {
  box-shadow: 5px 5px 5px #555;
}


/* =========== FLEX - LEFT/RIGHT COLUMNS ================ */

.columns {
  display:flex;
  flex-wrap: wrap;
  gap: 20px;
}

.column {
  border: 3px solid #777;
  background-color: #ddd;
  border-radius: 5px;
}

.left-column {
  flex: 1 1 400px;
  min-width: 0px;
}

.right-column {
  flex: 1 1 400px;
  min-width: 0px;
}

.timetable-title {
  font-size: 22px;
  font-weight: bold;
  color: #5f5865;
  margin-top: 18px;
}

/* ================== KOMPONENT TABELI ================== */
.league-table {
    margin: 15px 0;
    font-family: Tahoma, Verdana, Arial, sans-serif;
}

.league-table table {
    background-color: #9db7e1;
    border-radius: 5px;
    border-collapse: separate;
    border-spacing: 0px 0px;
    border: 3px solid #88A;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 5px 5px 5px #555;
    padding: 3px;
}

/* ===== NAGŁÓWKI ===== */
.league-table thead th {
    background-color: #eee;
  color: black;
  font-weight: bold;
  font-size: 9pt;
  padding: 1px;
  text-align: center;
}

/* ===== WIERSZE ===== */
.league-table tbody tr.bold td {
  font-weight:bold;

}

/* ===== KOMÓRKI ===== */

.league-table tbody td {
  padding: 1px;
  font-size: 12px;
  backgroundx: linear-gradient(rgb(232, 250, 250), rgb(190,201,209));
  background: linear-gradient(to top, rgb(190, 201, 209) 34%, rgb(232, 250, 250) 87%);
  border: 1px solid #9fb0c9;
  /*box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);*/
}

/* ===== WYRÓWNANIA ===== */
.league-table .left   { text-align: left; }
.league-table .center { text-align: center; }
.league-table .right  { text-align: right; }

/* ===== HOVER ===== */
.league-table tbody tr:hover td {
    filter: brightness(1.05);
}

.league-table .small {
  font-size:8pt;
  font-style:italic;
}

/* ================== STATUSY ================== */
.league-table tr.awans1 td {
    background: linear-gradient(to top, rgb(3, 48, 175) 34%, rgb(102, 123, 245) 87%);
    color: #fff;
    font-weight: bold;
}

.league-table tr.awans2 td {
   background: linear-gradient( to top, rgb(0, 201, 31) 34%, rgb(30, 242, 63) 87% );
    color: #171515;
    font-weight: bold;
}

.league-table tr.spadek2 td {
    background: linear-gradient( to top, #d2bb04 34%, #f2e414 87% );
    color: #7b6800;

}

.league-table tr.spadek1 td {
    background: linear-gradient(#f44b4b, #a11e1e);
    color: #fff;
    xfont-weight: bold;
}

/* ====================== STATUSY MECZÓW =============== */
.league-table tr.today td {
  background: #02e702;
}
.league-table tr.yesterday td {
  background: #cdb3d6;
}
.league-table tr.trwa td {
  background: #f2ee0b;;
}

.league-table tr td.trwa {
  color:red;
  font-weight:bold;
}


/* ============ INFO POD TABELĄ ============= */
.league-table div.info {
  color: #274917;
  padding: 8px;
  margin: 10px;
  font-style: italic;
  background-color: #CCCCCC;
  border: #792C44 2px solid;
  border-radius: 6px;
  font-size: 12px;
}

.league-table .parent {
  padding-left:5px;
}

.league-table .parent::before{
  content: "⬆ ";
}

.league-table .brother {
  padding-left:15px;
}

.league-table .brother::before {
  content: "⬌ ";
}

.league-table .children {
  padding-left:25px;
}

.league-table .children::before{
  content: "⬇ ";
}

/* === ŁADNY TOOLTIP === */
.tooltip .tooltip-inner {
  background-color: #fff8c6;
  color: #000;
  border: 1px solid #c9b458;
  padding: 8px 12px;
  max-width: 280px;
  text-align: left;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.tooltip .tooltip-arrow::before {
  border-top-color: #c9b458;
}


/* ==== AJAX - MATCH DETAILS ==== */
.match-container {
    width: 100%;
    font-family: sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

/* Nagłówek */
.header-section {
display: flex;
  align-items: center;
  gap: 5px;
  color: rgb(69, 64, 58);
  background-color: #11ec52;
  border: #792C44 3px solid;
  border-radius: 6px;
}

.league-logo {
    width: 50px;
    height: auto;
}

.league-info h4 {
    margin: 0;
    line-height: 1.2;
}

.line {
  border: 1px;
  border-top: 2px solid #3f2d0a;
  margin: 10px 0;
  opacity: 0.8;
}

/* Główny wiersz wyniku - zastępuje tabelę */
.match-rowA {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: rgb(42, 80, 106);
}

.team-home {
    flex: 0 0 27%; /* Szerokość 27% jak w oryginale */
    text-align: right;
    font-size: 150%;
    font-weight: bold;
}

.match-score {
    flex: 1; /* Zajmuje resztę miejsca na środku */
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #733;
}

.team-away {
    flex: 0 0 27%; /* Szerokość 27% jak w oryginale */
    text-align: left;
    font-size: 150%;
    font-weight: bold;
}

.match-date {
    text-align: center;
    /*font-size: 0.85em;*/
    margin-top: 5px;
}
