/* Layout général */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  margin: 0;
  background: #f4f4f7;
  color: #222;
}

/* Header */
.lt-header {
  background: linear-gradient(120deg, #1b3b73, #274b8f);
  color: #fff;
  padding: 18px 24px; /* plus de hauteur */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;          /* espace entre gauche et droite */
  flex-wrap: wrap;    /* permet de passer en 2 lignes sur petits écrans */
}

/* Bloc gauche : logo + textes */
.lt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto; /* prend la place disponible */
  min-width: 0;   /* évite des débordements bizarres */
}

/* Titre / sous-titre */
.lt-title {
  margin: 0;
  font-size: 24px; /* un peu plus gros */
  letter-spacing: 0.03em;
}

.lt-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

/* Bloc droit : saison / division */
.lt-header-right {
  text-align: right;
  font-size: 13px;
  flex: 0 0 auto;    /* ne s’étire pas, reste compact */
  max-width: 40%;    /* évite de pousser hors écran */
  white-space: nowrap; /* garde sur une ligne tant que possible */
}

.lt-info-select {
  padding: 2px 6px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccd3e0;
  background: #fff;
}
.lt-info-select:focus {
  outline: none;
  border-color: #2b6cb0;
}

.lt-season-name {
  font-weight: 600;
}
.lt-season-division {
  opacity: 0.9;
}

/* Responsive : centrer tout en pile sur petits écrans */
@media (max-width: 600px) {
  .lt-header {
    justify-content: center;
  }
  .lt-header-left,
  .lt-header-right {
    text-align: center;
    justify-content: center;
  }
  .lt-header-right {
    max-width: 100%;
    white-space: normal;
  }
}


/* Main layout */
.lt-main {
  max-width: 1200px;
  margin: 18px auto 32px;
  padding: 0 12px;
}

.lt-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

/* Sidebar */
.lt-sidebar-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.lt-sidebar-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e6f0;
}

.lt-sidebar-label {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.lt-sidebar-value {
  font-size: 14px;
  font-weight: 600;
}

.lt-sidebar-help {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}

/* Content */
.lt-content {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e6f0;
}

/* Tabs */
.lt-tabs {
  display: flex;
  border-bottom: 1px solid #dde2ee;
  margin-bottom: 10px;
}

.lt-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: #555;
}

.lt-tab-btn-active {
  border-bottom-color: #1b3b73;
  color: #1b3b73;
  font-weight: 600;
}

.lt-tab-panel {
  display: none;
}

.lt-tab-panel-active {
  display: block;
}

.lt-panel-title {
  margin: 8px 0 10px;
  font-size: 18px;
}

/* Cards & home grid */
.lt-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.lt-card {
  background: #fafbff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e1e5f2;
}

.lt-card-full {
  margin-top: 4px;
}

.lt-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lt-card-badge {
  background: #f0d600;
  color: #333;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Lists */
.lt-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 13px;
}

.lt-list li {
  padding: 4px 0;
  border-bottom: 1px dashed #e0e4f0;
}

.lt-list li:last-child {
  border-bottom: none;
}

/* Tables */
.lt-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.lt-table th,
.lt-table td {
  border: 1px solid #e0e3ef;
  padding: 6px 8px;
}

.lt-table th {
  background: #f0f2f7;
  text-align: left;
}

.lt-table tr:nth-child(even) td {
  background: #fafbff;
}

/* Status badges */
.status-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
}

.status-scheduled {
  background: #e3f2fd;
  color: #1b3b73;
}

.status-final {
  background: #e8f5e9;
  color: #1b5e20;
}

/* States */
.lt-loading {
  font-size: 13px;
  opacity: 0.8;
}

.lt-error {
  color: #c62828;
  margin-top: 6px;
  font-size: 13px;
}

.lt-empty {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.8;
}

/* Filters */
.lt-filters {
  margin-bottom: 8px;
  font-size: 13px;
}

.lt-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rivalry box */
.lt-rivalry {
  font-size: 13px;
}

.lt-rivalry-main {
  font-weight: 600;
}

.lt-rivalry-secondary {
  margin-top: 4px;
  opacity: 0.8;
}

/* Players grid */
.lt-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.lt-player-card {
  border-radius: 8px;
  border: 1px solid #e1e5f2;
  padding: 8px 10px;
  background: #fafbff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lt-player-name {
  font-size: 14px;
  font-weight: 600;
}

.lt-player-meta {
  font-size: 11px;
  opacity: 0.8;
}

.lt-player-stats {
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.lt-player-btn {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: none;
  background: #1b3b73;
  color: #fff;
  cursor: pointer;
}

/* Player detail */
.lt-player-detail {
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid #e1e5f2;
  padding: 10px 12px;
  background: #fdfdfd;
}

.lt-player-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lt-player-detail-name {
  margin: 0;
  font-size: 16px;
}

.lt-player-detail-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lt-player-detail-stats {
  margin-top: 6px;
  font-size: 13px;
}

.lt-player-detail-matches-title {
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.lt-player-detail-table th,
.lt-player-detail-table td {
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .lt-layout {
    grid-template-columns: 1fr;
  }
  .lt-home-grid {
    grid-template-columns: 1fr;
  }
}
