/* Homepage-only My CVSL fixture table. The full table.css remains shared by
   result, standings and history pages that use their other table variants. */
.card-container { width: 100%; max-width: 100%; }

.cvsl-table {
  --cvsl-row-accent: var(--color-border-strong);
  width: 100%; min-width: 100%; border-collapse: separate; border-spacing: 0;
  table-layout: auto; color: var(--color-text); background: var(--color-surface);
  font-size: clamp(0.78rem, 0.72rem + 0.3vw, 1rem); line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.cvsl-table th, .cvsl-table td {
  min-width: 0; padding: clamp(0.65rem, 0.55rem + 0.35vw, 0.9rem) clamp(0.35rem, 0.25rem + 0.4vw, 0.75rem);
  border: 0; border-bottom: 1px solid var(--color-border); vertical-align: middle;
}
.cvsl-table thead th {
  position: relative; color: var(--color-white); background: var(--color-navy);
  border-bottom-color: var(--color-gold); font-size: clamp(0.72rem, 0.68rem + 0.25vw, 0.92rem);
  font-weight: 700; letter-spacing: 0.025em; text-align: center; text-transform: uppercase; white-space: nowrap;
}
.cvsl-table thead th:first-child { border-top-left-radius: calc(var(--radius-md) - 1px); }
.cvsl-table thead th:last-child { border-top-right-radius: calc(var(--radius-md) - 1px); }
.cvsl-table tbody tr:last-child td { border-bottom: 0; }

.cvsl-table--fixtures {
  width: 100% !important; max-width: none !important; table-layout: fixed; display: table; border-collapse: collapse;
}
.cvsl-table--fixtures tbody, .cvsl-table--fixtures thead { width: 100%; }
.cvsl-table--fixtures th:first-child, .cvsl-table--fixtures td:first-child { width: 38%; text-align: right; }
.cvsl-table--fixtures th:nth-child(2), .cvsl-table--fixtures td:nth-child(2) { width: 24%; text-align: center; }
.cvsl-table--fixtures th:nth-child(3), .cvsl-table--fixtures td:nth-child(3) { width: 38%; text-align: left; }
.cvsl-table--fixtures th:last-child, .cvsl-table--fixtures td:last-child { width: 5%; text-align: center; }
.cvsl-table--fixtures tbody tr.cvsl-row { background: var(--color-white); }
.cvsl-table--fixtures tbody tr.cvsl-row > td { border-top: 1px solid var(--color-border-strong); border-bottom: 1px solid var(--color-border-strong); }
.cvsl-table--fixtures tbody tr.cvsl-row > td:first-child {
  border-left: 0.25rem solid var(--cvsl-row-accent); border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}
.cvsl-table--fixtures tbody tr.cvsl-row > td:last-child {
  border-right: 1px solid var(--color-border-strong); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.cvsl-table--fixtures tbody tr.cvsl-row:has(.bg-win, .bg-emerald, .bg-green) { --cvsl-row-accent: var(--color-snooker-green); }
.cvsl-table--fixtures tbody tr.cvsl-row:has(.bg-lost, .bg-red) { --cvsl-row-accent: var(--color-ball-red); }
.cvsl-table--fixtures tbody tr.cvsl-row:has(.bg-black) { --cvsl-row-accent: var(--color-navy); }
.cvsl-table--fixtures tbody tr.cvsl-row > td:first-child > [class^="bg-"],
.cvsl-table--fixtures tbody tr.cvsl-row > td:first-child > [class*=" bg-"] { display: none; }
.cvsl-table--fixtures .cvsl-spacer { height: 0.25rem; padding: 0; border: 0; background: var(--color-white); }
.cvsl-table--fixtures .my-cvsl-fixture-action { padding-block: clamp(0.45rem, 0.35rem + 0.3vw, 0.7rem); }
.my-cvsl-fixture-date { display: block; margin-bottom: 0.35rem; color: var(--color-muted); font-size: 0.78em; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.cvsl-table--fixtures a.my-cvsl-enter-results {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2rem; padding: 0.38rem 0.65rem;
  border-radius: 999px; color: var(--color-white); background: var(--color-navy);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--color-navy) 65%, black); font-size: 0.82em; font-weight: 800;
  line-height: 1; text-decoration: none; transition: transform var(--duration-fast), background-color var(--duration-fast), box-shadow var(--duration-fast);
}
.cvsl-table--fixtures a.my-cvsl-enter-results:hover { color: var(--color-navy); background: var(--color-gold); box-shadow: 0 3px 0 color-mix(in srgb, var(--color-gold) 60%, var(--color-navy)); transform: translateY(-1px); }
.cvsl-table--fixtures a.my-cvsl-enter-results:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.cvsl-table tbody .cvsl-row--empty { --cvsl-row-accent: var(--color-gold); color: var(--color-muted); background: var(--color-surface-muted); }
.cvsl-table tbody .cvsl-row--empty > td { width: auto; padding: clamp(1rem, 0.85rem + 0.75vw, 1.5rem); text-align: center; }

@media (min-width: 48rem) { .cvsl-table th, .cvsl-table td { padding-block: 0.35rem; } }
