/* Contenitore tabella */
.contenitore-tabella {
  max-width: 1000px;
  margin: 20px auto;
  padding: 10px;
}

/* Tabella desktop */
.tabella-elenco {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tabella-elenco th,
.tabella-elenco td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.tabella-elenco th {
  background: #0099ff;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.tabella-elenco tr:nth-child(even) {
  background: #f0f8ff;
}

.tabella-elenco tr:hover {
  background: #d0eaff;
}

/* Pulsante dettagli */
.btn-dettagli {
  display: inline-block;
  padding: 6px 12px;
  background: #4d6fae;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-dettagli:hover {
  background: #0056b3;
}

.btn-highlights {
  display: inline-block;
  padding: 6px 12px;
  background: #c50000;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-highlights:hover {
  background: #a70000;
}
.no-video {
  color: #999;
  font-style: italic;
}

/* Messaggio nessuna partita */
.no-match {
  margin: 20px;
  color: #fff;
  font-style: italic;
  text-align: center;
  font-size: 16px;
}

/* RESPONSIVE: mobile */
@media screen and (max-width: 768px) {
  .tabella-elenco, .tabella-elenco thead, .tabella-elenco tbody, 
  .tabella-elenco th, .tabella-elenco td, .tabella-elenco tr {
    display: block;
  }

  .tabella-elenco thead tr {
    display: none;
  }

  .tabella-elenco tr {
    background: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }

  .tabella-elenco td {
    text-align: right;
    padding: 8px 10px;
    position: relative;
    border: none;
  }

  .tabella-elenco td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    text-align: left;
    font-weight: bold;
    color: #0099ff;
  }
}

/* Titolo con effetto centrato */
header h1 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0 0 0;
}

/* Logo centrato sopra il titolo */
.logo-container img {
    display: block;
    margin: 0 auto 10px auto;
    height: 80px;
}

/* Centrare contenitore principale */
.contenitore-tabella {
    max-width: 500px;
    margin: 0 auto 30px auto;  /* centro + margine sotto */
    padding: 10px;
}
/* Header */
header {
  background-color: rgba(0,64,128,0.9); /* blu scuro con trasparenza */
  color: #fff;
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 60px;
}
h1 {
  margin: 0;
  font-size: 1.4em;
  flex: 1;
  text-align: center;
}
.btn-back {
  background: #ffb451;
  color: #000000;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.btn-back:hover {
  background: #e6b800;
}