
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 18px;
  background: #f5f7fa;
  color: #111;
}
/*
.container {
  max-width: 1350px;
  margin: 0 auto;
  background: #fff;
  padding: 14px;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  box-sizing: border-box;
}
*/
.container {
  width: 96%; /* Kontener zajmuje 96% ekranu, ale nadal ma bezpieczny limit na szerokich monitorach */
  max-width: 1680px; 
  margin: 0 auto;
  background: #fff;
  padding: 14px;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  box-sizing: border-box;
}
nav {
  margin-bottom: 12px;
  flex-wrap: wrap;
  display: flex;
  gap: 6px;
}

a.btn {
  display: inline-flex; /* flex ułatwia wyrównanie */
  align-items: center;  /* wyrównanie w pionie */
  justify-content: center; /* opcjonalnie, wyrównanie w poziomie */
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #cfcfcf;
  text-decoration: none;
  background: #fff;
  color: #111;
  font-size: 0.95em;
  line-height: 1; /* redukuje nadmiar wysokości */
  transition: background 0.2s, box-shadow 0.2s;
}

a.btn svg,
a.btn img {
  display: inline-block;
  vertical-align: middle; /* wyrównanie w środku przycisku */
  height: 1em; /* dopasowanie wysokości do tekstu */
  width: auto;
  margin-right: 4px; /* odstęp między ikoną a tekstem */
}


a.btn:hover {
  background: #f2f2f2;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

h1, h2 {
  margin: 6px 0;
  word-break: break-word;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 5px 0;
  font-size: 0.95em;
}

th, td {
  padding: 6px 4px;
  border: 1px solid #e1e6ef;
  text-align: left;
  word-break: break-word;
}

.small {
  font-size: 0.9em;
  color: #666;
}

.btn.save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: #d5f5d0;
  border: 1px solid #9cd89a;
  color: #111;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn.save:hover {
  background-color: #b9f0b1;
  box-shadow: 0 0 4px rgba(100, 200, 100, 0.4);
}

.btn.save:active {
  background-color: #a4e89a;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn.save .icon {
  font-size: 1.1em;
}
.btn.reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  /* Pastelowy czerwony/łososiowy */
  background-color: #f5d0d0; 
  border: 1px solid #d89a9a;
  color: #111;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn.reset:hover {
  /* Nieco ciemniejszy przy najechaniu */
  background-color: #f0b1b1;
  box-shadow: 0 0 4px rgba(200, 100, 100, 0.4);
}

.btn.reset:active {
  /* Jeszcze ciemniejszy przy kliknięciu */
  background-color: #e89a9a;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn.reset .icon {
  font-size: 1.1em;
}
.prediction {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: bold;
  flex-wrap: wrap;
}

.prediction label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.prediction input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
}

.prediction input[type="radio"]:checked {
  accent-color: #0078d7;
}

.prediction label:hover {
  background: #f5f5f5;
}

/* --- LOGA DRUŻYN --- */
img.team-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
  border-radius: 3px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  body {
    margin: 8px;
    font-size: 15px;
  }

  .container {
    padding: 10px;
    border-radius: 4px;
  }

  table, th, td {
    font-size: 0.9em;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    padding: 5px 3px;
  }

  /* przycisk ZAPISZ może być szeroki */
  .btn.save {
    width: 100%;
    justify-content: center;
  }

  /* przyciski w nawigacji — nie pełna szerokość */
  nav {
    justify-content: flex-start;
  }
  nav a.btn {
    flex: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  th, td {
    font-size: 0.85em;
  }

  h2 {
    font-size: 1.1em;
  }

  .prediction {
    flex-direction: row !important; /* wymuszenie w jednej linii */
    flex-wrap: wrap; /* jeśli zabraknie miejsca, przełamuje wiersz */
  }

  .prediction label {
    margin: 0 6px 0 0; /* odstęp między radio */
  }

  img.team-logo {
    height: 16px;
    margin: 0 2px;
  }

  td {
    white-space: nowrap;
  }
}
/* --- INFO.PHP RWD --- */

.profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    font-size: 6em;  /* większy rozmiar emoji */
    line-height: 1;
    text-align: center; /* opcjonalnie, aby było wyśrodkowane */
}


.profile-username {
    font-size: 1.4em;
    font-weight: bold;
}

.stats-box {
    background:#f9f9f9; 
    padding:8px 10px; 
    border-radius:6px;
}

.stats-grid {
    display:grid; 
    grid-template-columns:repeat(2, 1fr); 
    gap:6px 12px;
}

@media (max-width: 600px) {

    .profile-row {
        flex-direction: column;
        text-align:center;
        margin-bottom: 10px;
    }

    .profile-avatar {
        font-size: 3.2em;
    }

    .profile-username {
        font-size: 1.3em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    textarea, select, input[type=email] {
        width: 100% !important;
    }

    table td:first-child {
        width: 40%;
        max-width: 40%;
        white-space: normal;
    }
}
/* z treści przed main-nav*/
/* Kontener "Wizytówki" */
.brand-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 15px auto 20px auto;
}

.app-brand {
    /* Zmiana na flex + fit-content pozwala na margin: auto */
    display: flex; 
    width: fit-content; 
    max-width: 100%;
    min-width: 0;
    margin: 0;
    
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 8px 20px 8px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efekt najechania */
.app-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 204, 0.15);
    border-color: #dbeafe;
}

a.nav-link.nav-facebook-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    border: 1px solid rgba(24, 119, 242, 0.2);
    box-shadow: 0 3px 10px rgba(24, 119, 242, 0.18);
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: 800;
    gap: 0;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.nav-link.nav-facebook-link:hover {
    background: #166fe5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(24, 119, 242, 0.24);
}

a.nav-link.nav-facebook-link:focus-visible {
    outline: 2px solid #90cdf4;
    outline-offset: 3px;
}

/* Kontener na obrazek */
.logo-container {
    background: #f4f7fa;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e6ef;
}

.logo-container img {
    height: 24px;
    width: auto;
    display: block;
}

/* Styl tekstu */
.app-name {
    font-size: 1.4em;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RWD */
@media (max-width: 480px) {
    .brand-strip {
        gap: 6px;
        margin: 10px auto 15px auto;
    }
    .app-brand {
        padding: 6px 15px 6px 8px;
        min-width: 0;
    }
    a.nav-link.nav-facebook-link {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
    .logo-container {
        width: 36px;
        height: 36px;
    }
    .logo-container img {
        height: 20px;
    }
    .app-name {
        font-size: 1.2em;
    }
}
/* =========================================
   TRYB CIEMNY (GLOBALNY INVERT) - WERSJA ŁAGODNA
========================================= */

html[data-theme="dark"] {
    filter: invert(88%) hue-rotate(180deg);
    background-color: #fff; /* Zmienione na białe, żeby invert przerobił to na ciemne! */
}

/* Reszta Twojego kodu bez zmian... */
html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] iframe,
html[data-theme="dark"] .round-icon-small,
html[data-theme="dark"] .nav-facebook-link,
html[data-theme="dark"] .avatar-class {
    filter: invert(100%) hue-rotate(180deg);
}
/* =========================================
   TRYB CIEMNY - POPRAWKI DLA WIDOKU MOBILNEGO
========================================= */
@media (max-width: 768px) {
    html[data-theme="dark"] body {
        margin: 0; /* Usuwamy wszelkie marginesy body, które mogłyby prześwitywać */
        padding: 0;
    }
    
    html[data-theme="dark"] .container {
        border: none !important; /* Wymuszamy brak ramki */
        box-shadow: none !important; /* Wyłączamy cień, który po odwróceniu świeci na jasno */
        border-radius: 0; /* Opcjonalnie: na mobile często lepiej wygląda brak zaokrągleń */
    }
}

/* logo_napisy_01 layout */
.brand-strip {
    width: 100%;
    justify-content: center;
    margin: 12px auto 18px auto;
}

.app-brand {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
}

.app-brand:hover {
    transform: translateY(-1px);
    box-shadow: none;
    border-color: transparent;
}

.logo-container {
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.logo-container img {
    height: 100px;
    width: auto;
    max-width: 92vw;
    object-fit: contain;
}

@media (max-width: 480px) {
    .brand-strip {
        margin: 8px auto 12px auto;
    }

    .app-brand {
        padding: 0;
    }

    .logo-container {
        width: auto;
        height: auto;
    }

    .logo-container img {
        height: clamp(58px, 17vw, 74px);
        max-width: 92vw;
    }
}

@media (max-width: 360px) {
    .logo-container img {
        height: 54px;
    }
}