.table-wrap {
  width: 100%;
  overflow-x: auto; /* scroll only if needed */
}

.fixtures-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  table-layout: auto;
}

.fixtures-table th,
.fixtures-table td {
  padding: 6px 8px;
  border: 1px solid #ccc;
  text-align: center;
  white-space: nowrap;
}

.fixtures-table th { background: #1f2933; color: white; }
.team-name { font-weight: 600; }
.score { font-weight: 700; }

.upcoming { background: #f0f9ff; }
.home     { background: #ecfeff; }
.away     { background: #fefce8; }

.focused { outline: 2px solid #16a34a; font-weight: bold; }

/* ---------- TABLET (<=1024px) hide Venue WITHOUT scroll ---------- */
@media (max-width: 1024px) {
  .fixtures-table th:nth-child(6),
  .fixtures-table td:nth-child(6) { display: none; }
  .table-wrap { overflow-x: visible; }
}

/* ---------- MOBILE (<=600px) essentials only ---------- */
@media (max-width: 600px) {
  /* hide Competition + Venue */
  .fixtures-table th:nth-child(5),
  .fixtures-table td:nth-child(5),
  .fixtures-table th:nth-child(6),
  .fixtures-table td:nth-child(6) { display: none; }

  .table-wrap { overflow-x: visible; }

  .fixtures-table { font-size: 12px; }
  .fixtures-table th,
  .fixtures-table td { padding: 4px; }

  /* wrap long team names */
  .fixtures-table td.team-name .team-wrap {
    display: inline-block;
    max-width: 80px; 
    white-space: normal;
    word-break: break-word;
  }

  /* Sticky Home HEADER only */
  .fixtures-table th:nth-child(2) {
    position: sticky;
    left: 0;
    background: #1f2933; /* header dark */
    color: #fff;
    z-index: 3;
  }

  /* Sticky Home CELLs */
  .fixtures-table td.team-name:nth-child(2) {
    position: sticky;
    left: 0;
    background: inherit; /* keep .home/.away colors */
    color: inherit;
    z-index: 2;
  }

  /* Sticky Away HEADER only */
  .fixtures-table th:nth-child(4) {
    position: sticky;
    left: 120px; /* adjust based on Home column width */
    background: #1f2933;
    color: #fff;
    z-index: 2;
  }

  /* Sticky Away CELLs */
  .fixtures-table td.team-name:nth-child(4) {
    position: sticky;
    left: 120px;
    background: inherit;
    color: inherit;
    z-index: 1;
  }
}
