/* -------------------------------
   RESET + FONTS
----------------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 🌍 pridany riadok */
/* 🌍 Globálny font a farby */
body, select, input, button, table, th, td, h1, h2, h3, p, div, span {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #eaf9ff;
  letter-spacing: 0.3px;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #001f33 0%, #000814 100%);
  color: #f2f6f8;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding: 1rem;
}

/* -------------------------------
   HLAVIČKA
----------------------------------*/
h1 {
  text-align: center;
  color: #00b7ff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0,183,255,0.6);
}

header h1 {
  text-align: center;
  font-size: 2.8rem;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.7),
               0 0 20px rgba(0, 234, 255, 0.5),
               0 0 30px rgba(0, 234, 255, 0.3);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

#matches-section h2 {
  text-align: center;
  font-size: 0.85rem;
  color: #00eaff;
  text-shadow: 0 0 8px rgba(0, 183, 255, 0.6);
  margin-top: 1rem;
}

/* -------------------------------
   SEKCIE
----------------------------------*/
.section {
  background: #161b22;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0,183,255,0.3);
}

#mobileSelect {
  display: block;
  margin: 0 auto 1rem auto;
  text-align: center;
  font-size: 1.1rem;
  color: #00eaff;
  background: rgba(0, 183, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align-last: center; /* 🔹 toto centrovanie textu v <select> */
  box-shadow: 0 0 8px rgba(0, 234, 255, 0.2);
}

#mobileSelect option {
  text-align: center;
}

/* -------------------------------
   TABUĽKY
----------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

th {
  background: #0f1419;
  color: #00b7ff;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover td {
  background: rgba(0,183,255,0.05);
  cursor: pointer;
}

/* zvýraznenie kôl */
tr td[colspan="4"] b {
  display: block;
  background: linear-gradient(90deg, #00b7ff44, transparent);
  padding: 0.4rem;
  border-radius: 6px;
  text-transform: uppercase;
  color: #00b7ff;
}

/* -------------------------------
   TLAČIDLÁ
----------------------------------*/
button {
  background: #00b7ff;
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.7rem;
  font-weight: normal;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #00e0ff;
  transform: scale(1.05);
}

/* -------------------------------
   MANTINGAL SEKCIÁ
----------------------------------*/
#mantingal {
  margin-top: 1rem;
}

#mantingal th {
  background: #1b242f;
  color: #00eaff;
}

#mantingal-summary-pc, 
#mantingal-summary-mobile {
  background: #10161d;
  border: 1px solid rgba(0,183,255,0.3);
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 1rem;
}

#mantingal-summary-pc p, 
#mantingal-summary-mobile p {
  margin: 0.3rem 0;
}

/* -------------------------------
   DETAILY ZÁPASU
----------------------------------*/
.details-box {
  background: #10161d;
  border-left: 3px solid #00b7ff;
  padding: 0.7rem;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #ddd;
}

/* -------------------------------
   RESPONSIVE
----------------------------------*/
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  table {
    font-size: 0.85rem;
  }

  .section {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 1.3rem;
  }
}

/* -------------------------------
   NAVIGAČNÉ MENU POD NADPISOM
----------------------------------*/

#mobileSelect {
  display: block;
  margin: 0.8rem auto 1.5rem auto;   /* centrovanie */
  padding: 0.7rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(135deg, #00b7ff, #00eaff);
  color: #0c1015;
  border: none;
  box-shadow: 0 0 10px rgba(0,183,255,0.4);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 240px;   /* šírka menu */
}

#mobileSelect:hover {
  background: linear-gradient(135deg, #00eaff, #00b7ff);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,183,255,0.6);
}

#mobileSelect:focus {
  outline: 2px solid #00eaff;
  outline-offset: 3px;
}

/* Nadpis kola v tabuľke zápasov */
#matches tbody tr td[colspan="4"] {
  text-align: center;
  background: linear-gradient(90deg, rgba(0,183,255,0.15), rgba(0,234,255,0.15));
  color: #00eaff;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 0.6rem 0;
  border-radius: 6px;
}

/* Vycentrovanie nadpisu kola (napr. 9. kolo (2025-10-05)) */
#matches tbody tr td[colspan="4"] {
  text-align: center !important;
  background: linear-gradient(90deg, rgba(0,183,255,0.15), rgba(0,234,255,0.15));
  color: #00eaff;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 0.6rem 0;
  border-radius: 6px;
}

/* Vycentrovanie rating timov a rating hracov */
#teamRatings-section h2,
#playerRatings-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #00eaff;
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.6);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Rolovacie menu */
#mobileSelect {
  display: block;
  margin: 0.5rem auto 1.2rem auto;
  text-align-last: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #00eaff;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.6);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

#mobileSelect:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
}

#mobileSelect:focus {
  outline: none;
  border-color: #00eaff;
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
}

#mobileSelect option {
  background: #001f33;
  color: #00eaff;
  text-align: center;
  font-weight: 500;
}

/* BONUS - Jemny glow */
#teamRatings table,
#playerRatings table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 1rem;
  color: #e6faff;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
  backdrop-filter: blur(3px);
}

/* Skry nadpisy v sekciách Rating tímov a Rating hráčov */
#teamRatings-section h2,
#playerRatings-section h2 {
  display: none;
}

#teamRatings h2,
#playerRatings h2 {
  display: none;

}

.corner-note {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.3rem;

  font-family: "Permanent Marker", cursive !important;
  font-size: clamp(20px, 2.5vw, 32px);
  color: #ffd400;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5), 0 0 15px rgba(255, 208, 0, 0.4);
  transform: rotate(-1deg);
}

/* 💫 Žltý nápis hore v strede */
#corner-note {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  font-family: "Permanent Marker", cursive;
  font-size: clamp(20px, 2.5vw, 30px);
  color: #ffd400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
  pointer-events: none;
  z-index: 1000;
}

/* 🏒 Logo vľavo s podnadpisom */
.logo-container {
  position: fixed;
  top: 50px;      /* posunuté nižšie pod žltý text */
  left: 20px;
  text-align: center;
  z-index: 900;
}

.nhl-logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.logo-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: #00eaff;
  text-shadow: 0 0 6px rgba(0, 234, 255, 0.6);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* -------------------------------
   HLAVIČKA / HEADER
----------------------------------*/
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,15,30,0.9), rgba(0,10,25,0.95));
  padding: 1rem 2rem;
  border-bottom: 2px solid rgba(0,234,255,0.2);
  box-shadow: 0 4px 20px rgba(0, 234, 255, 0.15);
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.nhl-logo {
  width: 80px;
  filter: drop-shadow(0 0 8px rgba(0,234,255,0.5));
}

.season-text {
  color: #00eaff;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(0,234,255,0.4);
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-title {
  font-family: "Permanent Marker", cursive;
  color: #ffd400;
  font-size: clamp(22px, 3vw, 34px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255,212,0,0.6);
  margin: 0;
  transform: rotate(-2deg);
}

/* -------------------------------
   NAVIGÁCIA PRE PC
----------------------------------*/
.desktop-nav {
  display: none;
  justify-content: center;
  background: rgba(0,20,40,0.8);
  border-top: 1px solid rgba(0,234,255,0.25);
  border-bottom: 1px solid rgba(0,234,255,0.25);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.desktop-nav li {
  color: #00eaff;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.desktop-nav li:hover {
  color: #ffd400;
  text-shadow: 0 0 8px rgba(255,212,0,0.8);
  transform: translateY(-2px);
}

.desktop-nav li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ffd400;
  transition: width 0.3s ease;
}

.desktop-nav li:hover::after {
  width: 100%;
}

/* Zobraziť navigáciu len na PC */
@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }
}

/* -------------------------------
   MOBILNÉ ZOBRAZENIE HEADERA
----------------------------------*/
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
  }

  .nhl-logo {
    width: 60px;
  }

  .season-text {
    font-size: 0.9rem;
  }

  .header-title {
    font-size: 1.4rem;
  }
}

/* ======= MOBILE FIX: iba v mobile ======= */
@media (max-width: 768px) {

  /* skryť iba nápis NHL 2025 – 2026 vľavo (nie žltý text!) */
  .header-left span,
  .header-left h1 {
    display: none !important;
    visibility: hidden !important;
  }

  /* skryť malé logo vľavo – použijeme ho ako pozadie */
  .header-left img {
    display: none !important;
  }

  /* header s pozadím loga */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: linear-gradient(90deg, rgba(0, 40, 70, 0.8), rgba(0, 10, 25, 0.9));
  border-bottom: 1px solid rgba(0, 183, 255, 0.3);
  position: relative;
  height: 100px;
}

.header-left img {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 183, 255, 0.6));
}

  /* žltý nápis – vždy zobraz a vycentruj */
  .header-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block !important;
    z-index: 2;
    font-family: "Permanent Marker", cursive;
    color: #ffd400;
    font-size: clamp(22px, 6vw, 30px);
    text-shadow: 0 3px 8px rgba(0,0,0,.7), 0 0 15px rgba(255,215,0,.5);
    white-space: nowrap;
    text-align: center;
  }
}

/* 📱 Mobilné zobrazenie – zobraz iba rolovacie menu */
@media (max-width: 768px) {
  nav {
    display: none !important; /* skry horizontálne menu */
  }
  .mobile-menu {
    display: block !important; /* zobraz rolovacie menu */
    margin: 1rem auto;
    text-align: center;
  }
}

/* 💻 Desktop zobrazenie – zobraz horizontálne menu, skry rolovacie */
@media (min-width: 769px) {
  nav {
    display: flex !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------------------
   HEADER / HLAVIČKA (už hotová)
----------------------------------*/
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0, 40, 70, 0.8), rgba(0, 10, 25, 0.9));
  border-bottom: 1px solid rgba(0, 183, 255, 0.3);
  padding: 1rem 2rem;
  overflow: hidden;
  z-index: 10; /* aby bolo nad pozadím, ale pod menu */
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.header-left img {
  width: 80px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 183, 255, 0.5));
}

.header-left span {
  margin-top: 0.4rem;
  color: #00b7ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 183, 255, 0.4);
}

.header-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  font-family: "Permanent Marker", cursive;
  font-size: clamp(22px, 2.5vw, 32px);
  color: #ffd400;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5), 0 0 15px rgba(255, 208, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
  z-index: 1;
}

/* -------------------------------
   MENU POD HEADEROM
----------------------------------*/
/* 🔹 Navigácia – nezmenený layout */
nav {
  display: flex;
  justify-content: center;
  background: rgba(0, 20, 35, 0.9);
  border-top: 1px solid rgba(0, 183, 255, 0.3);
  border-bottom: 1px solid rgba(0, 183, 255, 0.3);
  padding: 12px 0;
  gap: 20px;
  position: relative;
  z-index: 50;
}

/* 🔹 Tlačidlá v menu – nový štýl písma */
nav button {
  background: rgba(0, 183, 255, 0.08);
  color: #00eaff;
  border: 1px solid rgba(0, 183, 255, 0.25);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family:  'Poppins', sans-serif; /* 🔹 tenšie a elegantné */
  font-weight: 150; /* výrazne tenšie písmo */
  font-size: 2rem;
  letter-spacing: 0.4px;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.4); /* jemný svietiaci tieň */
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

nav button:hover {
  background: rgba(0, 234, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.35);
  transform: scale(1.05);
  color: #bffaff;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
}

/* 📱 Mobilné zobrazenie – len rolovacie menu */
@media (max-width: 768px) {
  nav {
    display: none !important;
  }
  .mobile-menu {
    display: block !important;
    margin: 1rem auto;
    text-align: center;
  }

  header::before {
    background: url("public/nhl_logo.png") center/contain no-repeat;
    opacity: 0.08;
  }

  .header-left img,
  .header-left span {
    display: none !important;
  }

  .header-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    text-align: center;
    font-size: clamp(22px, 6vw, 30px);
  }
}

/* 💻 Desktop zobrazenie */
@media (min-width: 769px) {
  nav {
    display: flex !important;
  }

  .mobile-menu {
    display: none !important;
  }

  header::before {
    background: none;
    opacity: 0;
  }
}

/* -------------------------------
   HORIZONTÁLNE MENU POD HEADEROM
----------------------------------*/
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  background: rgba(0, 20, 35, 0.9);
  border-top: 1px solid rgba(0, 183, 255, 0.3);
  border-bottom: 1px solid rgba(0, 183, 255, 0.3);
  padding: 14px 0;
  position: relative;
  z-index: 50;
}

/* základný vzhľad tlačidiel – teraz ako text */
nav button {
  background: none;
  border: none;
  color: #00eaff;
  font-size: 0.95rem;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  position: relative;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* animované žlté čiary hore a dole */
nav button::before,
nav button::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffd400;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  opacity: 0.9;
}

nav button::before {
  top: 0;
  transform-origin: left;
}

nav button::after {
  bottom: 0;
  transform-origin: right;
}

/* efekt pri hover */
nav button:hover {
  color: #ffd400;
  transform: translateY(-2px);
}

nav button:hover::before {
  transform: scaleX(1);
  transform-origin: right;
}

nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -------------------------------
   SEKCIÁ PREDIKCIE – KURZY
----------------------------------*/
#predictions-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.prediction-card {
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

.prediction-card .matchup {
  font-weight: 600;
  color: #00eaff;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.odds-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.bookmaker {
  background: rgba(0, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  text-align: center;
  min-width: 150px;
  color: #eaf9ff;
  font-size: 0.9rem;
}

.bookmaker .provider {
  display: block;
  color: #ffd400;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.odds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.odds-item {
  background: linear-gradient(90deg, rgba(0, 30, 60, 0.7), rgba(0, 15, 30, 0.9));
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.odds-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0,183,255,0.4);
}

.match-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  color: #eaf9ff;
}

.team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0,183,255,0.5));
}
/* ====== PREDICTIONS TABUĽKA ====== */
.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(0, 20, 35, 0.8);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.odds-table th, .odds-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.odds-table th {
  color: #00eaff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.odds-table td {
  color: #eaf9ff;
  font-size: 1rem;
}

.odds-table tr:hover {
  background: rgba(0, 234, 255, 0.1);
  transition: 0.3s ease;
}

/* ======== BLOKY PREDIKCIÍ ======== */
.odds-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.odds-match {
  background: rgba(0, 10, 25, 0.7);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.15);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.odds-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.odds-cell {
  background: rgba(0, 234, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  min-width: 50px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.odds-cell:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd400;
}

.odds-cell b {
  color: #ffd400;
  font-size: 1.1rem;
}

.team-name {
  color: #00eaff;
  font-weight: 500;
}

/* --- Jednotný štýl nadpisov pre všetky sekcie --- */
.section h2 {
  text-align: center;
  color: #00ffff; /* tyrkysová */
  font-size: 0.85rem;
  font-weight: normal;
  margin: 10px 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* voliteľne, ak chceš presne ako "Výsledky" */
#teamRatings-section h2,
#playerRatings-section h2 {
  text-align: center;
  color: #00ffff;
}

/* ===== Vylepšenie vzhľadu tabuliek Ratingov a Výsledkov ===== */

/* Tímové a hráčske ratingy */
#teamRatings td,
#playerRatings td {
  font-size: 0.85rem;          /* jemne väčšie písmo */
  font-family: "Poppins", sans-serif;  /* moderný font, elegantný a čitateľný */
  font-weight: 400;
  color: #e6faff;              /* jemne tyrkysová farba ako pri nadpisoch */
  text-shadow: 1px 1px 3px rgba(0, 255, 255, 0.4); /* svetlý tieň */
  letter-spacing: 0.3px;
}

/* Názvy tímov vo Výsledkoch */
#matches td {
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 255, 255, 0.3);
}

/* Hlavičky tabuliek (napr. TÍM, RATING, HOSTIA, SKÓRE...) */
#matches th,
#teamRatings th,
#playerRatings th {
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #00ffff;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
}

/* ===== Vodoznak "Powered by AI-Logic" ===== */
.ai-watermark {
  position: absolute;
  top: 8px;
  right: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 255, 255, 0.35);
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
  letter-spacing: 0.5px;
  user-select: none;
  pointer-events: none;
}

/* Zvýraznenie slova AI-Logic */
.ai-watermark span {
  font-family: "Orbitron", sans-serif;
  color: rgba(0, 255, 255, 0.55);
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.7);
}

/* 🔹 Optimalizácia pre mobilné zariadenia */
@media (max-width: 768px) {
  .ai-watermark {
    top: 4px;
    right: 10px;
    font-size: 0.75rem;
    opacity: 0.6;
  }

  .ai-watermark span {
    font-size: 0.8rem;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
  }
}

/* === Lepšie zobrazenie tabuliek na mobiloch (bez posúvania) === */
@media (max-width: 768px) {
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 👈 dôležité – všetky stĺpce sa zmenšia rovnomerne */
  }

  th, td {
    font-size: 0.75rem; /* 👈 menšie písmo */
    padding: 4px 6px;
    text-align: center;
    word-wrap: break-word;
  }

  /* Nadpisy sekcií (napr. VÝSLEDKY, RATING TÍMOV...) */
  h2 {
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 1px;
  }

  /* Tímové a hráčske mená mierne menšie, ale čitateľné */
  table td:first-child,
  table td:nth-child(2) {
    font-weight: 400;
    font-size: 0.8rem;
  }

  /* Ak by text presahoval, zalom ho */
  td {
    white-space: normal;
  }
}

/* === Lepšie zobrazenie tabuliek na mobiloch (bez posúvania) === */
@media (max-width: 768px) {
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 👈 dôležité – všetky stĺpce sa zmenšia rovnomerne */
  }

  th, td {
    font-size: 0.75rem; /* 👈 menšie písmo */
    padding: 4px 6px;
    text-align: center;
    word-wrap: break-word;
  }

  /* Nadpisy sekcií (napr. VÝSLEDKY, RATING TÍMOV...) */
  h2 {
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 1px;
  }

  /* Tímové a hráčske mená mierne menšie, ale čitateľné */
  table td:first-child,
  table td:nth-child(2) {
    font-weight: 400;
    font-size: 0.8rem;
  }

  /* Ak by text presahoval, zalom ho */
  td {
    white-space: normal;
  }
}

/* === Optimalizácia pre mobily – kompaktný vzhľad === */
@media (max-width: 768px) {
  /* Všetky sekcie */
  body {
    font-size: 0.7rem;
  }

  /* Nadpisy sekcií (VÝSLEDKY, RATING TÍMOV...) */
  h2 {
    font-size: 1rem;
    margin: 8px 0;
    letter-spacing: 1px;
    text-align: center;
    color: #00eaff;
    text-shadow: 0 0 6px #00eaff;
  }

  /* Tabuľky */
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  th, td {
    font-size: 0.7rem;
    padding: 3px 4px;
    text-align: center;
    word-wrap: break-word;
  }

  th {
    color: #00eaff;
    text-shadow: 0 0 4px #00eaff;
    font-weight: 500;
  }

  td {
    color: #eafcff;
    text-shadow: 0 0 2px #00aaff;
  }

  /* Tímy */
  table td:first-child,
  table td:nth-child(2) {
    font-weight: 500;
    font-size: 0.75rem;
  }

  /* Dátum (napr. 21.10.2025) */
  tr td[colspan="4"] b {
    display: block;
    text-align: center;
    color: #00d4ff;
    text-shadow: 0 0 6px #00d4ff;
    font-size: 0.85rem;
    margin: 4px 0;
  }

  /* Header vodoznak */
  .ai-watermark {
    font-size: 0.75rem;
    opacity: 0.85;
    top: 4px;
    right: 10px;
  }
}

/* --- Mobilné zlepšenia čitateľnosti --- */
@media (max-width: 768px) {
  /* menšie a čitateľnejšie názvy tímov */
  table td {
    font-size: 13px;           /* zmenšené písmo */
    white-space: nowrap;       /* zabráni zalomeniu názvu */
    text-overflow: ellipsis;   /* ak by sa nezmestil, zobrazí „…“ */
    overflow: hidden;          /* skryje pretečený text */
  }

  /* menej žiarivé nadpisy (DOMÁCI, HOSTIA, SKÓRE...) */
  table th {
    font-size: 12px;
    text-shadow: 0 0 4px rgba(0,255,255,0.5); /* jemnejší tieň */
    letter-spacing: 1px;
  }

  /* hlavičky sekcií ako “VÝSLEDKY”, “TIPOVACIE STRATÉGIE” */
  h2 {
    font-size: 18px;
    text-shadow: 0 0 6px rgba(0,255,255,0.4); /* menej kontrastný */
  }

  /* prispôsobenie tabuľky - menšie okraje */
  table {
    width: 100%;
    border-spacing: 0;
  }

  /* odstráni horizontálne posúvanie */
  .section {
    overflow-x: hidden;
  }
}

/* === Mobilné zobrazenie – oprava tabuliek tímov === */
@media (max-width: 768px) {
  /* bunky v tabuľkách */
  table td {
    font-size: 13px;       /* menšie písmo */
    font-weight: 400;      /* nie tučné */
    white-space: normal;   /* umožní zalomenie, ale celé slovo */
    text-overflow: clip;   /* žiadne skratky */
    overflow: visible;     /* zobrazí celý text */
    text-shadow: none;     /* odstráni svietiaci tieň */
    line-height: 1.4;
  }

  /* názvy stĺpcov DOMÁCI / HOSTIA / SKÓRE / STATUS */
  table th {
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(0,255,255,0.3); /* jemný efekt, nie oslepujúci */
  }

  /* zmenšený a čitateľný názov sekcie (napr. VÝSLEDKY, TIPOVACIE STRATÉGIE) */
  h2 {
    font-size: 18px;
    text-shadow: 0 0 4px rgba(0,255,255,0.4);
    margin-bottom: 10px;
  }

  /* aby sa všetko vošlo na obrazovku */
  table {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0;
  }

  .section {
    overflow-x: hidden;
  }
}

/* === Optimalizácia tabuliek pre mobil === */
@media (max-width: 768px) {
  table {
    width: 100%;
    table-layout: auto; /* prispôsobí šírku obsahu */
    border-spacing: 0;
  }

  table th, table td {
    font-size: 12px;          /* menšie písmo */
    font-weight: 400;         /* tenké písmo */
    white-space: nowrap;      /* nezalomí text na viac riadkov */
    overflow: hidden;
    text-overflow: ellipsis;  /* ak by bolo extrémne dlhé slovo, skráti ho tromi bodkami */
    text-shadow: none;        /* odstránený tieň */
    padding: 6px 4px;
  }

  table th {
    font-size: 11px;
    font-weight: 400;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.3); /* jemné svetlo, čitateľné */
  }

  /* dátumový riadok (21. 10. 2025) – nech má priestor */
  table tr td[colspan="4"] {
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    padding: 8px 0;
  }

  /* sekčný nadpis – menší pre mobil */
  h2 {
    font-size: 17px;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
    margin-bottom: 10px;
  }

  /* kontajner sekcie – nech nepovoľuje horizontálny scroll */
  .section {
    overflow-x: hidden;
  }
}

/* === Oprava mobilného zobrazenia tabuliek === */
@media (max-width: 768px) {
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* pevné rozdelenie stĺpcov */
  }

  table th, table td {
    font-size: 12px;
    font-weight: 400;
    padding: 5px 3px;
    white-space: nowrap; /* nezalomí text */
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
    vertical-align: middle;
  }

  /* nech sa celé názvy tímov zmestia a neprebíjajú rozloženie */
  table td:nth-child(1),
  table td:nth-child(2) {
    width: 36%;
  }
  table td:nth-child(3) {
    width: 18%;
  }
  table td:nth-child(4) {
    width: 10%;
    text-align: center;
  }

  /* hlavička tabuľky */
  table th {
    font-size: 11px;
    font-weight: 400;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.2);
  }

  /* dátumové riadky */
  table tr td[colspan="4"] {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: linear-gradient(90deg, rgba(0,255,255,0.1), rgba(0,255,255,0.05));
    color: #44eaff;
    border-radius: 4px;
    padding: 8px 0;
  }

  /* nadpis sekcie */
  h2 {
    font-size: 17px;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
    margin-bottom: 10px;
  }

  /* zabráni horizontálnemu posúvaniu */
  body, .section {
    overflow-x: hidden;
  }
}

/* === Oprava pre mobil: zobraz celé názvy tímov === */
@media (max-width: 768px) {
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  table th, table td {
    font-size: 12px;
    font-weight: 400;
    padding: 5px 3px;
    white-space: nowrap;
    overflow: visible !important; /* ← zobrazí celý text */
    text-overflow: unset !important; /* ← žiadne „…“ */
    text-shadow: none;
    vertical-align: middle;
  }

  table td:nth-child(1),
  table td:nth-child(2) {
    width: 35%;
  }

  table td:nth-child(3) {
    width: 20%;
    text-align: center;
  }

  table td:nth-child(4) {
    width: 10%;
    text-align: center;
  }

  table th {
    font-size: 11px;
    font-weight: 400;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.2);
  }

  /* Hlavička stĺpcov (DOMÁCI / HOSTIA / SKÓRE / STATUS) */
  table thead th {
    white-space: nowrap;
    text-overflow: clip;
  }

  h2 {
    font-size: 17px;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.3);
  }

  body, .section {
    overflow-x: hidden;
  }
}

/* === MOBILNÁ OPRAVA PRE TABUĽKU ZÁPASOV === */
@media (max-width: 768px) {
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  table th, table td {
    font-size: 12px; /* menšie, ale stále čitateľné */
    font-weight: 400;
    padding: 5px 4px;
    text-shadow: none;
    line-height: 1.2;
    word-break: keep-all;      /* nezlomí jednoslovné */
    white-space: normal;       /* ale dovolí viacslovné pod seba */
    text-align: left;
    vertical-align: middle;
  }

  /* DOMÁCI / HOSTIA menšie a čitateľnejšie */
  table th {
    font-size: 11px;
    font-weight: 400;
    padding: 6px 2px;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.25);
  }

  /* Stĺpce rozložené rozumne */
  table td:nth-child(1) { width: 38%; } /* domáci */
  table td:nth-child(2) { width: 38%; } /* hostia */
  table td:nth-child(3) { width: 14%; text-align: center; } /* skóre */
  table td:nth-child(4) { width: 10%; text-align: center; } /* status */

  /* Nadpis (napr. VÝSLEDKY) */
  h2 {
    font-size: 16px;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.3);
  }

  body, .section {
    overflow-x: hidden;
  }
}

/* === Fix tabuliek pre mobily (VÝSLEDKY aj STRATÉGIE) === */
@media (max-width: 768px) {
  /* pevné rozloženie stĺpcov a žiadny horizontálny scroll */
  #matches table,
  #strategiesTable,
  .section table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  /* hlavička – menšia, nezalamovať */
  #matches thead th,
  #strategiesTable thead th,
  .section table thead th {
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 0 2px rgba(0,255,255,.25);
  }

  /* bunky – menšie písmo, žiadne agresívne tieňe */
  #matches tbody td,
  #strategiesTable tbody td,
  .section table tbody td {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    padding: 8px 6px;
    text-shadow: none;
    overflow: hidden;
  }

  /* rozdelenie stĺpcov v “VÝSLEDKY”: domáci / hostia / skóre / status */
  #matches tbody td:nth-child(1) { width: 42%; } /* domáci */
  #matches tbody td:nth-child(2) { width: 38%; } /* hostia */
  #matches tbody td:nth-child(3) { width: 12%; text-align:center; } /* skóre */
  #matches tbody td:nth-child(4) { width: 8%;  text-align:center; } /* status */

  /* rozdelenie stĺpcov v tabuľke stratégií (ak používaš 5 stĺpcov) */
  #strategiesTable tbody td:nth-child(1) { width: 22%; } /* dátum */
  #strategiesTable tbody td:nth-child(2) { width: 44%; } /* zápas */
  #strategiesTable tbody td:nth-child(3) { width: 12%; text-align:center; } /* 2+ góly */
  #strategiesTable tbody td:nth-child(4) { width: 12%; text-align:center; } /* výsledok */
  #strategiesTable tbody td:nth-child(5) { width: 10%; text-align:right;  } /* zisk */

  /* ====== KĽÚČOVÉ: správanie názvov tímov ====== */
  /* jednoslovné nikdy nelám – viacslovné môžu na MEDZERE */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2),
  #strategiesTable tbody td:nth-child(2) {
    white-space: normal;         /* umožní zalomenie na medzere */
    overflow-wrap: normal;       /* neláma uprostred slova */
    word-break: keep-all;        /* drž spolu jednoslovné názvy */
  }

  /* dátumový pás – nech sa text nezalamuje do dvoch riadkov */
  .day-row, .round-row, .date-row {
    white-space: nowrap;
    font-size: 13px !important;
  }

  /* pre istotu – žiadny horizontálny scroll tela */
  html, body { overflow-x: hidden; }
}

/* === Final mobilný layout tabuliek (vysledky, strategie) === */
@media (max-width: 768px) {
  #matches table,
  #strategiesTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  #matches thead th,
  #strategiesTable thead th {
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 0 2px rgba(0,255,255,0.25);
    letter-spacing: 0.5px;
  }

  #matches tbody td,
  #strategiesTable tbody td {
    font-size: 0.85rem;
    font-weight: 400;
    padding: 6px 4px;
    line-height: 1.2;
    text-shadow: none;
  }

  /* ===== Rozloženie stĺpcov pre výsledky ===== */
  #matches tbody td:nth-child(1) { 
    width: 40%; 
    text-align: right; 
    padding-right: 6px;
  } /* domáci */

  #matches tbody td:nth-child(2) { 
    width: 40%; 
    text-align: left; 
    padding-left: 6px;
  } /* hostia */

  #matches tbody td:nth-child(3) { 
    width: 12%; 
    text-align: right; 
    padding-right: 4px;
  } /* skóre */

  #matches tbody td:nth-child(4) { 
    width: 8%; 
    text-align: right;
    padding-right: 2px;
  } /* status */

  /* === aby názvy tímov sedeli vedľa seba a nelámali sa uprostred === */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  /* Dátumový riadok */
  .day-row, .round-row {
    font-size: 13px !important;
    white-space: nowrap;
    text-align: center;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* === Finálne zarovnanie a rozostupy v mobilnom zobrazení === */
@media (max-width: 768px) {
  #matches table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  /* Nadpisy tabuľky */
  #matches thead th {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 0 2px rgba(0,255,255,0.25);
    letter-spacing: 0.5px;
    padding: 8px 4px;
    text-align: center;
  }

  /* Bunky tabuľky */
  #matches tbody td {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 4px;
    line-height: 1.3;
    text-shadow: none;
    border-bottom: 1px solid rgba(0,255,255,0.05);
    vertical-align: middle;
  }

  /* Stĺpce - presné zarovnanie */
  #matches tbody td:nth-child(1) {
    width: 37%;
    text-align: right;
    padding-right: 8px;
  } /* DOMÁCI */

  #matches tbody td:nth-child(2) {
    width: 37%;
    text-align: left;
    padding-left: 8px;
  } /* HOSTIA */

  #matches tbody td:nth-child(3) {
    width: 16%;
    text-align: center;
  } /* SKÓRE */

  #matches tbody td:nth-child(4) {
    width: 10%;
    text-align: center;
  } /* STATUS */

  /* Zákaz zalamovania názvov tímov */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Väčší odstup medzi zápasmi */
  #matches tbody tr:not(.round-row):not(.day-row) {
    border-spacing: 0 10px;
  }

  /* Dátumový riadok */
  .day-row {
    font-size: 13px !important;
    white-space: nowrap;
    text-align: center;
    padding: 6px 0 !important;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* === Finálne mobilné zarovnanie výsledkov === */
@media (max-width: 768px) {
  #matches table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  #matches thead th {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.3px;
    padding: 6px 2px;
    white-space: nowrap;
    text-shadow: 0 0 2px rgba(0,255,255,0.3);
  }

  #matches tbody td {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: middle;
    text-shadow: none;
    padding: 8px 3px;
  }

  /* DOMÁCI */
  #matches tbody td:nth-child(1) {
    width: 35%;
    text-align: right;
    padding-right: 6px;
  }

  /* HOSTIA */
  #matches tbody td:nth-child(2) {
    width: 35%;
    text-align: left;
    padding-left: 6px;
  }

  /* SKÓRE */
  #matches tbody td:nth-child(3) {
    width: 18%;
    text-align: center;
  }

  /* STATUS */
  #matches tbody td:nth-child(4) {
    width: 12%;
    text-align: center;
  }

  /* Názvy tímov – nech sa nezalomujú jednoslovné a dvojslovné len ak treba */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Väčšie vertikálne rozostupy medzi zápasmi */
  #matches tbody tr:not(.day-row) {
    border-bottom: 1px solid rgba(0,255,255,0.08);
  }

  /* Riadok s dátumom */
  .day-row td {
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    white-space: nowrap;
  }

  html, body {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  #matches table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* ✅ nech sa šírka prispôsobí obsahu */
  }

  #matches thead th {
    font-size: 12px;
    font-weight: 400;
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
  }

  #matches tbody td {
    font-size: 13px;
    padding: 6px 4px;
    line-height: 1.3;
    white-space: normal; /* ✅ povolí dvojslovné zalomenie */
    word-break: keep-all; /* ✅ nerozdelí jednoslovné názvy */
    overflow: visible;
  }

  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    width: 38%; /* viac miesta pre názvy tímov */
  }

  #matches tbody td:nth-child(3) {
    width: 14%;
    text-align: center;
  }

  #matches tbody td:nth-child(4) {
    width: 10%;
    text-align: center;
  }

  /* Lepšie zarovnanie textu */
  #matches tbody td:nth-child(1) {
    text-align: right;
    padding-right: 8px;
  }

  #matches tbody td:nth-child(2) {
    text-align: left;
    padding-left: 8px;
  }

  /* Väčšie medzery medzi riadkami */
  #matches tbody tr:not(.day-row) {
    border-bottom: 1px solid rgba(0,255,255,0.1);
  }

  .day-row td {
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* === Mobilná úprava výsledkov – fix názvov tímov a zarovnania === */
@media (max-width: 768px) {
  #matches table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  #matches thead th {
    font-size: 12px;
    font-weight: 400;
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
  }

  #matches tbody td {
    font-size: 13px;
    padding: 6px 6px;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow: visible;
  }

  /* viac miesta pre názvy tímov */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    width: 33%;
  }

  /* zarovnanie a rozloženie */
  #matches tbody td:nth-child(1) {
    text-align: right;
    padding-right: 8px;
  }

  #matches tbody td:nth-child(2) {
    text-align: left;
    padding-left: 8px;
  }

  #matches tbody td:nth-child(3) {
    width: 18%;
    text-align: center;
  }

  #matches tbody td:nth-child(4) {
    width: 10%;
    text-align: center;
  }

  /* fix zlievania textu pri dlhých názvoch */
  #matches td {
    word-break: keep-all;
    white-space: nowrap;
  }

  /* dvojslovné názvy tímov sa môžu zalomiť pod seba */
  #matches td:has(span) span {
    display: inline-block;
    white-space: normal;
    word-break: keep-all;
  }

  /* menšie medzery medzi riadkami */
  #matches tbody tr:not(.day-row) {
    border-bottom: 1px solid rgba(0,255,255,0.15);
  }

  .day-row td {
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
  }

  /* zabráni horizontálnemu posunu */
  html, body {
    overflow-x: hidden;
  }
}

/* === Mobilný FIX: zarovnanie a čitateľnosť výsledkov === */
@media (max-width: 768px) {
  #matches table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
  }

  #matches thead th {
    font-size: 12px;
    font-weight: 400;
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
  }

  #matches tbody td {
    font-size: 13px;
    padding: 8px 6px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
  }

  /* menšie písmo pre dlhé názvy tímov */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    font-size: 12px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ak sú názvy dlhé, nech sa zalomia pod seba len pri dvoj-slovných */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    white-space: normal;
    word-break: keep-all;
  }

  #matches tbody td:nth-child(3) {
    width: 15%;
    text-align: center;
    padding: 6px 0;
  }

  #matches tbody td:nth-child(4) {
    width: 12%;
    text-align: center;
    padding: 6px 0;
  }

  /* vizuálne oddelenie riadkov */
  #matches tbody tr {
    border-bottom: 1px solid rgba(0,255,255,0.1);
  }

  /* väčšie medzery medzi zápasmi */
  #matches tbody tr td {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* dátumové hlavičky */
  .day-row td {
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
    background: rgba(0, 255, 255, 0.08);
    border-radius: 4px;
    color: #32e0ff;
    font-weight: 600;
  }

  /* zabráni zlievaniu písmen */
  html, body {
    overflow-x: hidden;
    word-spacing: 1px;
    letter-spacing: 0.2px;
  }
}

/* === Mobilná úprava vzhľadu výsledkov === */
@media (max-width: 768px) {
  /* Dátumové bloky – tenšie a kompaktnejšie */
  .day-row td {
    font-size: 13px;
    text-align: center;
    padding: 5px 0;
    background: linear-gradient(90deg, rgba(0,255,255,0.05), rgba(0,255,255,0.1));
    border-radius: 4px;
    color: #32e0ff;
    font-weight: 400;
    margin: 0;
  }

  /* Riadky zápasov – o niečo vyššie a čitateľnejšie */
  #matches tbody tr {
    border-bottom: 1px solid rgba(0,255,255,0.05);
    background: linear-gradient(90deg, rgba(0,255,255,0.02), rgba(0,255,255,0.03));
    transition: background 0.2s ease;
  }

  #matches tbody tr:hover {
    background: linear-gradient(90deg, rgba(0,255,255,0.08), rgba(0,255,255,0.1));
  }

  #matches tbody td {
    font-size: 13px;
    padding: 10px 6px; /* vyšší riadok */
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
  }

  /* názvy tímov – mierne viac miesta a plynule zarovnanie */
  #matches tbody td:nth-child(1),
  #matches tbody td:nth-child(2) {
    font-size: 12.5px;
    white-space: normal;
    word-break: keep-all;
    text-align: left;
    padding-left: 8px;
  }

  #matches tbody td:nth-child(3) {
    width: 15%;
    text-align: center;
  }

  #matches tbody td:nth-child(4) {
    width: 12%;
    text-align: center;
  }

  /* jemné oddelenie medzi zápasmi */
  #matches tbody tr + tr td {
    border-top: 1px solid rgba(0,255,255,0.07);
  }

  /* väčší kontrast pre prehľadnosť */
  #matches {
    border-radius: 6px;
    overflow: hidden;
  }
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #e8f7ff;
  background: rgba(0, 20, 30, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

.players-table th, .players-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  vertical-align: middle;
}

.players-table th {
  background: rgba(0, 60, 80, 0.8);
  color: #00ffff;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 13px;
}

.players-table tr:hover {
  background: rgba(0, 255, 255, 0.08);
}

.flag {
  width: 24px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* 🔹 Mobilná verzia – tabuľka sa nezväčší mimo obrazovku */
@media (max-width: 768px) {
  .players-table {
    font-size: 13px;
  }
  .players-table th:nth-child(1),
  .players-table td:nth-child(1) {
    width: 30px;
  }
  .players-table th:nth-child(3),
  .players-table td:nth-child(3) {
    width: 120px;
  }
  .players-table th:nth-child(4),
  .players-table td:nth-child(4) {
    width: 100px;
  }
  .players-table th:nth-child(2),
  .players-table td:nth-child(2) {
    white-space: normal;
  }
}

/* === DÁTUM NAD ZÁPASMI – jemné, elegantné === */
.date-header {
  font-family: "Poppins", "Segoe UI", sans-serif !important;
  font-weight: 400; /* jemnejšie písmo */
  font-size: clamp(16px, 1.8vw, 20px);
  color: #ffd400 !important;
  text-align: center;
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.4px;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

/* --- jemné tenké čiary nad a pod dátumom --- */
.date-header::before,
.date-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px; /* tenká ako vlas */
  background: rgba(255, 212, 0, 0.6);
  box-shadow: 0 0 3px rgba(255, 212, 0, 0.3);
}

.date-header::before {
  top: 0;
}

.date-header::after {
  bottom: 0;
}

/* 📱 Mobilná verzia */
@media (max-width: 768px) {
  .date-header {
    font-size: 17px;
    padding: 6px 0;
  }
  .date-header::before,
  .date-header::after {
    height: 0.8px;
    opacity: 0.8;
  }
}

#mantingal-history table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .5rem;
}
#mantingal-history th, #mantingal-history td {
  padding: .4rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
#mantingal-history tr.win { background: rgba(0,255,0,0.05); }
#mantingal-history tr.loss { background: rgba(255,0,0,0.05); }
#mantingal-history tr.skip { background: rgba(255,255,0,0.05); }
#mantingal-history h2 { margin-bottom: .3rem; }

/* === Logá v sekcii Rating tímov === */
#teamRatings img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(1.25) contrast(1.1);
  transition: transform 0.25s ease, filter 0.25s ease;
}

#teamRatings img:hover {
  transform: scale(1.1);
  filter: brightness(1.4) contrast(1.2);
}

/* Zarovnanie loga a názvu tímu */
#teamRatings td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Čísla ratingov vpravo vycentruj a vyrovnaj s hlavičkou */
#teamRatings th:last-child,
#teamRatings td:last-child {
  text-align: center;
  width: 80px;
}

/* Hlavička tabuľky */
#teamRatings thead th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 6px;
}

/* Menší vertikálny spacing pre jednotný vzhľad */
#teamRatings tbody tr td {
  padding-top: 4px;
  padding-bottom: 4px;
}
/* === Rating tímov – zarovnanie v strede === */
#teamRatings {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#teamRatings th,
#teamRatings td {
  padding: 10px 15px;
  font-size: 15px;
}

/* Nadpis „Tím“ bude zarovnaný do stredu nad stĺpcom tímov */
#teamRatings th:first-child {
  text-align: center;
  width: 55%;               /* trochu širší priestor pre názov tímu */
}

/* „Rating“ bude bližšie k tímu – nie úplne vpravo */
#teamRatings th:last-child,
#teamRatings td:last-child {
  text-align: left;         /* zľava, nie doprava */
  width: 25%;               /* nech nie je úplne pri okraji */
  padding-left: 50px;       /* posun bližšie k tímom */
}

/* Jemný efekt pre prehľadnosť */
#teamRatings tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
#teamRatings tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* === Hlavička s pozadím === */
header {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Pozadie headeru */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/pozadie.png");
  background-size: cover;
  background-position: center;
  opacity: 0.27;      /* jemná viditeľnosť obrázka */
  z-index: 0;
}

/* Texty a logá nech sú nad pozadím */
header * {
  position: relative;
  z-index: 1;
}

/* === Rating tímov – presné zarovnanie stĺpcov === */
#teamRatings {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: center;
}

/* Hlavička tabuľky */
#teamRatings thead th {
  color: #00ffff;
  font-weight: 400;
  padding: 10px 0;
  text-align: center;
}

/* Riadky dát */
#teamRatings tbody td {
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🟢 Stĺpec Tím – posunutý tak, aby text začínal za logom */
#teamRatings tbody td:first-child {
  text-align: left;
  padding-left: 115px; /* zarovnáva pod nadpis "Tím" */
  width: 60%;
}

/* 🟢 Nadpis Tím – presne nad názvami, nie nad logami */
#teamRatings thead th:first-child {
  text-align: left;
  padding-left: 177px;
}

/* 🟢 Stĺpec Rating – zarovnaný presne nad číslami */
#teamRatings tbody td:last-child {
  text-align: center;
  padding-right: 33px;
  width: 40%;
}

#teamRatings thead th:last-child {
  text-align: right;
  padding-right: 176px;
}

/* Hover efekt pre riadky */
#teamRatings tbody tr:hover {
  background-color: rgba(0, 255, 255, 0.08);
  transition: 0.2s;
}

/* Mobilná verzia */
@media (max-width: 768px) {
  #teamRatings {
    width: 100%;
  }

  #teamRatings tbody td:first-child,
  #teamRatings thead th:first-child {
    padding-left: 20px;
  }

  #teamRatings tbody td:last-child,
  #teamRatings thead th:last-child {
    padding-right: 20px;
  }
}

/* === Rating hráčov – vizuálne zjednotenie s ratingom tímov === */
#playerRatings {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: center;
}

/* Hlavička tabuľky */
#playerRatings thead th {
  color: #00ffff;
  font-weight: 400;
  padding: 10px 0;
  text-align: center;
}

/* Riadky dát */
#playerRatings tbody td {
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stĺpec Hráč – zarovnanie doľava, ale bližšie k stredu */
#playerRatings tbody td:first-child {
  text-align: left;
  padding-left: 115px;
  width: 60%;
}

/* Nadpis Hráč */
#playerRatings thead th:first-child {
  text-align: left;
  padding-left: 170px;
}

/* Stĺpec Rating – zarovnanie presne nad čísla */
#playerRatings tbody td:last-child {
  text-align: right;
  padding-right: 115px;
  width: 40%;
}

#playerRatings thead th:last-child {
  text-align: right;
  padding-right: 110px;
}

/* Hover efekt */
#playerRatings tbody tr:hover {
  background-color: rgba(0, 255, 255, 0.08);
  transition: 0.2s;
}

/* 📱 Mobilné zarovnanie */
@media (max-width: 768px) {
  #playerRatings {
    width: 100%;
  }

  #playerRatings tbody td:first-child,
  #playerRatings thead th:first-child {
    padding-left: 20px;
  }

  #playerRatings tbody td:last-child,
  #playerRatings thead th:last-child {
    padding-right: 20px;
  }
}

/* === Strelecká úspešnosť – tabuľka === */
.shooting-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

.shooting-table th,
.shooting-table td {
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap; /* nezalamuj text */
}

.shooting-table td img.player-headshot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}

/* 🔹 hráč – nech je meno zarovnané doľava */
.shooting-table td:first-child,
.shooting-table td:nth-child(2) {
  text-align: left;
}

/* 🔹 vizuálne oddelenie tímového kódu */
.shooting-table td:nth-child(3) {
  padding-left: 20px;
}

/* === Zabali tabuľku do posúvateľného kontajnera === */
#shooting-section {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

#shooting-section table {
  min-width: 700px; /* širšia tabuľka pre mobilný posuvník */
}

/* Na menších displejoch */
@media (max-width: 768px) {
  .shooting-table th,
  .shooting-table td {
    font-size: 13px;
    padding: 6px 8px;
  }

  .shooting-table td img.player-headshot {
    width: 32px;
    height: 32px;
  }

  /* 🟩 Zarovnanie mena viac doľava, aby sa neprekrývalo */
  .shooting-table td:nth-child(2) {
    text-align: left;
    padding-left: 4px;
  }

  .shooting-table td:nth-child(3) {
    padding-left: 16px;
  }
}

/* --- Mobile tweak: posun hráča bližšie k poradovému číslu --- */
@media (max-width: 768px) {
  /* celková posuvná tabuľka */
  .shooting-table {
    width: 760px; /* umožní horizontálny scroll bez zalamovania mien */
    border-collapse: collapse;
  }

  /* poradové číslo: pevná šírka (vľavo) */
  .shooting-table td:first-child,
  .shooting-table th:first-child {
    width: 40px;
    text-align: center;
    padding: 8px 6px;
    vertical-align: middle;
  }

  /* bunka s hráčom: flex, bez veľkého paddingu, posunutá mierne doľava */
  .shooting-table td:nth-child(2),
  .shooting-table th:nth-child(2) {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 4px !important;      /* menej vnútorného odsadenia */
    transform: translateX(-6px);       /* posunie celé meno + foto mierne doľava */
  }

  /* fotka hráča */
  .shooting-table .player-headshot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0,255,255,0.25);
  }

  /* tím - nech má svoj priestor, aby sa neprekrýval s menom */
  .shooting-table td:nth-child(3),
  .shooting-table th:nth-child(3) {
    min-width: 56px;
    padding-left: 8px;
    text-align: center;
  }

  /* zjednotený text: neprerušovať, ukázať elipsu ak treba */
  .shooting-table td,
  .shooting-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    padding: 8px 10px;
  }
}

#strategies-section h2,
#strategies-section p {
  text-align: center;
}

.recent-row-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 6px;
  scrollbar-width: thin;
}

.recent-box {
  flex: 0 0 auto;
  width: 100px;
  background: rgba(0, 25, 40, 0.6);
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 10px;
  text-align: center;
  padding: 8px;
  color: #bff;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.1);
}

.recent-box .logos {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.recent-box img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}

.recent-box .score {
  font-size: 15px;
  font-weight: 700;
  color: #e0faff;
  margin-bottom: 4px;
}

.game-result {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.game-result.win { color: #3cff92; }
.game-result.loss { color: #ff5757; }

@media (max-width: 768px) {
  .recent-box {
    width: 80px;
    padding: 6px;
  }
  .recent-box img {
    width: 28px;
    height: 28px;
  }
}

/* === Posledné zápasy (po kliknutí na tím) === */
.recent-row-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: #00eaff40 transparent;
}

.recent-box {
  flex: 0 0 auto;
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 8px;
  width: 70px;
  text-align: center;
  color: #00eaff;
  font-weight: 600;
  padding: 6px 4px;
  box-shadow: 0 0 8px rgba(0, 183, 255, 0.25);
  transition: transform 0.2s ease;
}

.recent-box:hover {
  transform: scale(1.08);
}

.recent-box .teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.recent-box .teams img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.recent-box .score {
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 0 4px #00eaff;
}

.game-result {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.game-result.win {
  color: limegreen;
}
.game-result.loss {
  color: red;
}

#teamRatings tbody tr {
  position: relative;
  background-color: rgba(0, 0, 0, 0.3); /* alebo tvoj tmavý odtieň */
  background-blend-mode: lighten;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

#teamRatings tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.01);
}

#teamRatings tbody tr {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 150px auto !important;
  opacity: 0.95;
}
@media (max-width: 768px) {
  #teamRatings tbody tr {
    background-size: 90px auto !important;
  }
}

#teamRatings tbody tr::before {
  background-image: attr(data-logo url);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stats-table {
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.stats-table h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #00eaff;
}

.stats-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stats-table th,
.stats-table td {
  text-align: center;
  padding: 6px 8px;
}

.stats-table tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

.player-headshot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* === HLAVNÁ MREŽA ŠTATISTÍK === */
#stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  justify-items: center;
  align-items: center;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 40px;
  box-sizing: border-box;
}

/* === HLAVNÁ MREŽA ŠTATISTÍK === */
#stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  justify-items: center;
  align-items: center;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 40px;
  box-sizing: border-box;
}

/* === BOX ŠTATISTIKY === */
.stat-box {
  position: relative;
  width: 240px;
  height: 140px;
  background: linear-gradient(145deg, #001a2b, #00334d);
  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  color: #00eaff;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.6),
    inset 0 2px 3px rgba(255, 255, 255, 0.1),
    inset 0 -2px 5px rgba(0, 234, 255, 0.15);
  transition: all 0.25s ease;
}

/* Hover efekt – jemné žiarenie a zdvihnutie */
.stat-box:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #00415c, #005675);
  box-shadow:
    0 8px 16px rgba(0, 234, 255, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 234, 255, 0.4);
  color: #aaf7ff;
}

/* === VNÚTORNÝ OBSAH === */
.stat-box h4 {
  margin: 0;
  padding: 0;
  width: 100%;
  color: #00eaff;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Text “Top 50” hore */
.stat-box h4 p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Jemná zlatá deliaca čiara */
.stat-box h4::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffd700, transparent);
  margin: 6px 0 8px 0;
  border-radius: 2px;
  opacity: 0.9;
}

/* Text pod čiarou */
.stat-box h4 span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #eaf9ff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  #stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  #stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px auto;
    padding: 10px 20px;
  }

  .stat-box {
    width: 90%;
    height: 120px;
  }
}

/* === GRID === */
#stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  justify-items: center;
  align-items: center;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 40px;
  box-sizing: border-box;
}

/* === BOX === */
.stat-box {
  width: 240px;
  height: 140px;
  background: linear-gradient(145deg, #001a2b, #00334d);
  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  color: #00eaff;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.6),
    inset 0 2px 3px rgba(255, 255, 255, 0.1),
    inset 0 -2px 5px rgba(0, 234, 255, 0.15);
  transition: all 0.25s ease;
}

/* Hover efekt */
.stat-box:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #00415c, #005675);
  box-shadow:
    0 8px 16px rgba(0, 234, 255, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 234, 255, 0.4);
  color: #aaf7ff;
}

/* === Texty v boxe === */
.stat-box h4 {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-box .top {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

/* ZLATÁ ČIARA medzi top a spodným textom */
.stat-box .divider {
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffd700, transparent);
  border-radius: 2px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.stat-box .bottom {
  font-size: 0.95rem;
  font-weight: 400;
  color: #eaf9ff;
  letter-spacing: 0.6px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  #stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-box {
    width: 90%;
    height: 120px;
  }
}

/* Nadpis sekcie ŠTATISTIKY HRÁČOV NHL */
.stat-players {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.stat-players h4 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 380;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid rgba(0, 234, 255, 0.5);
  padding-bottom: 4px;
}

/* === 🌌 GLOBÁLNY LAYOUT PRE DOMOV === */
body {
  background: radial-gradient(circle at 20% 20%, #07121f, #03080f 70%);
  color: #e6f1ff;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#home-section {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s ease-in-out;
}

/* === 🏠 HLAVNÝ KONTEJNER – 3 PANELY === */
.home-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.8rem;
  margin: 1rem auto;
  max-width: 1300px;
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

/* === 🧊 VŠETKY PANELY === */
.home-panel {
  flex: 0 0 430px;
  min-height: 260px;
  background: linear-gradient(145deg, rgba(10, 20, 35, 0.9), rgba(5, 10, 20, 0.95));
  border: 1px solid rgba(0, 234, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.home-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 234, 255, 0.2), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-panel:hover::before {
  opacity: 1;
}

.home-panel:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 234, 255, 0.4);
}

.home-panel h3 {
  color: #00eaff;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* === 🏒 ZÁPASY PANEL === */
.matches-panel {
  background: linear-gradient(160deg, rgba(5, 25, 45, 0.9), rgba(3, 15, 25, 0.95));
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.4rem 0.3rem;
  color: #d7eaff;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.match-row:hover {
  background: rgba(0, 234, 255, 0.05);
  border-radius: 10px;
}

.match-row .team-logo {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  filter: drop-shadow(0 0 2px rgba(0, 234, 255, 0.3));
}

.match-row .time {
  font-size: 0.75rem;
  color: #999;
}

/* === 🎯 AI TIP PANEL === */
.ai-panel {
  background: linear-gradient(160deg, rgba(10, 25, 40, 0.95), rgba(0, 0, 0, 0.95));
  text-align: center;
}

.ai-panel p {
  margin: 0.3rem 0;
}

.ai-panel .ai-prediction {
  color: #00eaff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

/* === 📊 ŠTATISTIKY PANEL === */
.stats-panel {
  background: linear-gradient(160deg, rgba(15, 25, 45, 0.9), rgba(5, 10, 25, 0.9));
}

.top-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0;
  color: #cdefff;
  background: rgba(0, 234, 255, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.top-player:hover {
  background: rgba(0, 234, 255, 0.1);
  transform: scale(1.02);
}

.top-player img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.25);
  box-shadow: 0 0 8px rgba(0, 234, 255, 0.25);
}

/* === 🧠 FOOTER === */
.home-footer {
  text-align: center;
  margin-top: 2rem;
  color: #7ba0b8;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* === 💫 ANIMÁCIE === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 📱 RESPONSIVE === */
@media (max-width: 900px) {
  .home-container {
    flex-direction: column;
    align-items: center;
  }

  .home-panel {
    width: 90%;
    margin: 0 auto;
  }
}

/* === Dekoratívny nápis vo veľkom písanom štýle pre box "Top štatistiky hráčov" === */
.stat-label {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Pacifico", cursive; /* alebo môžeš použiť napr. 'Satisfy' */
  font-size: 1.1rem;
  color: #eeff00; /* jemne žltá ako v slogane */
  text-shadow: 0 2px 4px rgba(244, 255, 193, 0.5);
  pointer-events: none;
  opacity: 0.6;
}
.top-player {
  position: relative;
}

.highlight-link {
  color: #ffcc00;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.highlight-link:hover {
  color: #fff176;
  text-shadow: 0 0 6px #ffcc00;
}

.highlight-cell {
  min-width: 100px;
}

/* === Dnešné zápasy v domovskom boxe === */
.matches-panel {
  display: flex;
  flex-direction: column;
  gap: 10px; /* medzera medzi zápasmi */
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.match-row:hover {
  background: rgba(0, 234, 255, 0.1);
}

.match-row img.team-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  vertical-align: middle;
}

.match-row span {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 400;
  font-size: 0.9rem;
}

/* čas zápasu vpravo menším písmom */
.match-row .time {
  color: #00eaff;
  font-size: 0.8rem;
  font-weight: 300;
  min-width: 55px;
  text-align: right;
}

/* === Mobilné opravy zarovnania a overflow textu pre dnešné zápasy === */
@media (max-width: 768px) {
  .matches-panel {
    padding: 14px;
    box-sizing: border-box;
  }

  .match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
  }

  .match-row span {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px; /* nech sa dlhé názvy nepretlačia */
  }

  .match-row img.team-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .match-row .time {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #ccc;
    margin-left: auto;
    text-align: right;
    min-width: 45px;
  }
}

/* Pre horizontálne posúvanie tabuľky v mobile */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #00eaff66;
  border-radius: 4px;
}

/* Zarovnanie skóre, suffix nalepený hneď vedľa */
.score-cell {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 1px;
}

.score-value {
  font-weight: 600;
  letter-spacing: 1px;
  min-width: 52px; /* drží pekné zarovnanie */
}

.score-suffix {
  font-size: 0.8rem;
  color: #aaa;
  text-transform: lowercase;
  margin-left: -2px; /* odstráni vizuálnu medzeru */
}

/* ===== MOBILNÉ TABUĽKY – NHLPRO.SK ===== */
.shooting-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;         /* 💥 kľúčové – stĺpce majú fixnú šírku a prispôsobia sa */
  font-size: 14px;
}

.shooting-table th,
.shooting-table td {
  padding: 6px 4px;            /* malé odsadenie podobne ako profi appky */
  white-space: nowrap;         /* údaje sa nezalomia */
  overflow: hidden;            /* ak je niečo príliš dlhé… */
  text-overflow: ellipsis;     /* …urobí sa „…“ presne ako v profi tabuľkách */
}

.shooting-table th:nth-child(1),
.shooting-table td:nth-child(1) {
  width: 28px;                 /* # */
  text-align: center;
}

.shooting-table th:nth-child(2),
.shooting-table td:nth-child(2) {
  width: 130px;                /* hráč – zmestí sa aj meno + ikona */
}

.shooting-table th:nth-child(3),
.shooting-table td:nth-child(3) {
  width: 80px;                 /* tím */
  text-align: left;
}

.shooting-table th:nth-child(4),
.shooting-table td:nth-child(4) {
  width: 60px;
  text-align: center;
}

.shooting-table th:nth-child(5),
.shooting-table td:nth-child(5) {
  width: 60px;
  text-align: center;
}

/* ikona hráča */
.shooting-table img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: middle;
}

/* Mobil špeciál */
@media (max-width: 480px) {
  .shooting-table {
    font-size: 12px;
  }
  .shooting-table img {
    width: 18px;
    height: 18px;
  }
}

.ai-panel {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}


.ai-today-box {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 12px;
}

.ai-history-list {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 15px;
  padding-right: 6px;
}

.ai-scorer-box, .ai-history-list {
  width: 100%;
  overflow: hidden;
}

.ai-history-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 2px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.ai-hit {
  color: #00ff7f;
  font-weight: bold;
}

.ai-miss {
  color: #ff4d4d;
  font-weight: bold;
}

.ai-success {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  opacity: 0.9;
}

/* 🔧 AI história – správne zobrazenie aj v mobile */
.ai-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ai-history-row:last-child {
  border-bottom: none;
}

.ai-date {
  font-size: 0.9rem;
  color: #aaa;
  flex: 0 0 auto;
}

.ai-player {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
  padding: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-result {
  font-size: 1.2rem;
  flex: 0 0 auto;
}

/* 📱 Mobilné úpravy */
@media (max-width: 480px) {
  .ai-history-row {
    padding: 6px 6px;
  }

  .ai-date {
    font-size: 0.75rem;
  }

  .ai-player {
    font-size: 0.8rem;
    max-width: 120px;
  }

  .ai-result {
    font-size: 1rem;
  }
}

.ai-history-box {
  max-height: 120px;
  overflow-y: auto;
  margin-top: 15px;
  padding-right: 6px;
}

.ai-scorer-box, .ai-history-box {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 480px) {
  .ai-history-row {
    font-size: 0.78rem;
    padding: 4px 4px;
  }

  .ai-player {
    max-width: 95px;
  }
}

/* 📱 MOBILNÁ VERZIA */
@media (max-width: 768px) {

  /* box s AI strelcom musí mať minimálnu výšku aby panel neskočil */
  .ai-today-box {
    min-height: 120px;
  }

  /* história tipov musí mať vlastný scroll */
  @media (max-width: 768px) {
  
  .ai-history-list {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-bottom: 4px;
  }
}
}

@media (max-width: 768px) {

  .home-container {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .home-panel {
    width: 92% !important;
    margin-bottom: 22px !important;
    overflow: visible !important;
  }

  .ai-history-list {
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto !important;
  }
}

.rating-info-btn {
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 10px;
  opacity: 0.8;
  transition: 0.2s;
}

.rating-info-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* === MODERNÝ STYL MODALU === */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

/* Moderný box */
.modal-content {
  background: linear-gradient(165deg, #0c1b29, #061018);
  border-radius: 20px;
  padding: 30px 30px 35px 30px;
  width: 90%;
  max-width: 580px;
  color: #d9f3ff;
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.25);
  animation: modalUp 0.35s ease;
  max-height: 80vh;
  overflow-y: auto;
  line-height: 1.55;
  border: 1px solid rgba(0,255,255,0.15);
}

/* Nadpis */
.modal-content h2 {
  font-size: 1.65rem;
  margin-bottom: 18px;
  color: #00eaff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Podnadpisy sekcií */
.modal-content h3 {
  font-size: 1.25rem;
  color: #ffdd55;
  margin-top: 25px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Odrážky */
.modal-content ul {
  padding-left: 22px;
  margin: 8px 0 15px 0;
}

.modal-content ul li {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* Telo textu */
.modal-content p {
  margin: 10px 0 18px 0;
  font-size: 1rem;
}

/* Zavrieť */
.close-modal-btn {
  margin-top: 25px;
  background: #00eaff;
  font-size: 1.05rem;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s;
  box-shadow: 0 0 10px rgba(0,255,255,0.4);
}

.close-modal-btn:hover {
  background: #39ffff;
  box-shadow: 0 0 14px rgba(0,255,255,0.6);
  transform: translateY(-2px);
}

/* Animácie */
@keyframes modalUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { background: rgba(0,0,0,0.30); }
  to   { background: rgba(0,0,0,0.80); }
}
#mantingale-section {
  padding: 20px;
  margin-top: 40px;
  background: #0f172a;
  border-radius: 10px;
  color: white;
}

.mantingale-table,
.mantingale-history {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}

.mantingale-table th,
.mantingale-table td,
.mantingale-history th,
.mantingale-history td {
  border-bottom: 1px solid #334155;
  padding: 8px;
  text-align: center;
}

.mantingale-history {
  margin-top: 30px;
}

.hidden {
  display: none;
}

#mtg-back-btn {
  margin-top: 20px;
  padding: 8px 15px;
  background: #1e293b;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

/* 📱 Mobilné zobrazenie – len rolovacie menu, bez tohto štýlu */
@media (max-width: 768px) {
  nav {
    display: none !important;
  }
  .mobile-menu {
    display: block !important;
    margin: 1rem auto;
    text-align: center;
  }
}






