/* Version: 2025-09-13 11:10 */
:root {
  --bg: #fff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --thead: #f3f4f6;
  --row-alt: #fafafa;
  --club: #111827;
  --win: #065f46;
  --draw: #1e3a8a;
}

html, body {
  background: transparent;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hcc-container {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.hcc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  font-size: 14px;
  white-space: normal;
}

.hcc-table th,
.hcc-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.hcc-table thead {
  background: var(--thead);
  font-weight: 600;
}

@media (min-width: 601px) {
  .hcc-table thead th {
    position: sticky;
    top: 0;
    background: var(--thead);
    z-index: 2;
  }
}

.hcc-table tbody tr:nth-child(even) {
  background: var(--row-alt);
}

td.win { color: var(--win); }
td.draw { color: var(--draw); }
.is-club { font-weight: 700; }

@media (max-width: 600px) {
  .hcc-container {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .hcc-table,
  .hcc-table thead,
  .hcc-table tbody,
  .hcc-table th,
  .hcc-table td,
  .hcc-table tr {
    display: block;
    width: 100%;
    border: none;
    box-sizing: border-box;
  }

  .hcc-table thead { display: none; }

  .hcc-table tr {
    background: var(--bg);
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid var(--border);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .hcc-table td {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
  }

  .hcc-table td:first-child { font-weight: 600; }
  .hcc-table td:last-child { text-align: right; }

  .with-icon {
    justify-content: flex-start !important;
    gap: 4px;
    display: flex;
    align-items: center;
  }

  .with-icon.date::before {
    content: "📅";
    color: #6b7280;
    font-size: 0.9em;
  }

  .with-icon.location::before {
    content: "📍";
    color: #6b7280;
    font-size: 0.9em;
  }

  .hcc-table td.score::before {
    content: "Score: ";
    color: #6b7280;
    margin-right: 4px;
  }
  .hcc-table td.score {
    justify-content: flex-start !important;
  }
}
