/* Shared styles for index.html and all.html */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #333; padding: 12px; }
h1 { font-size: 1.2em; margin-bottom: 8px; }
.meta { font-size: 0.85em; color: #666; margin-bottom: 12px; }
.error { color: #c62828; font-weight: 600; }

/* Desktop table */
.fights { width: 100%; border-collapse: collapse; font-size: 0.85em; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.fights th { background: #1a1a2e; color: #fff; padding: 8px 6px; text-align: left; position: sticky; top: 0; white-space: nowrap; }
.fights td { padding: 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.fights tr:hover { background: #f0f7ff; }
.fights tr.finished { background: #f5f5f5; color: #999; }
.fights tr.assigned { background: #fffde7; }
.status-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.75em; font-weight: 600; }
.status-finished { background: #e8f5e9; color: #2e7d32; }
.status-assigned { background: #fff3e0; color: #e65100; }
.round { font-size: 0.8em; color: #555; }

/* Shared text styles */
.loser { color: #999; text-decoration: line-through; }
.winner { font-weight: 600; }
.team { font-size: 0.8em; color: #666; }

/* Mobile cards */
.cards { display: none; }
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 8px; display: flex; overflow: hidden; border-left: 8px solid #ccc; }
.card.finished { opacity: 0.55; }
.card.belt-white { border-left-color: #e0e0e0; }
.card.belt-blue { border-left-color: #1565c0; }
.card.belt-purple { border-left-color: #7b1fa2; }
.card.belt-brown { border-left-color: #795548; }
.card.belt-black { border-left-color: #212121; }
.card-left { padding: 10px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; flex-shrink: 0; background: #f8f8f8; white-space: nowrap; }
.card-mat { font-size: 1.1em; font-weight: 700; color: #1a1a2e; text-transform: uppercase; }
.card-time { font-size: 1.1em; font-weight: 700; color: #333; }
.card-fnum { font-size: 0.7em; color: #999; }
.card-right { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.card-competitor { line-height: 1.3; }
.card-competitor .name { font-size: 0.95em; }
.card-competitor .team { font-size: 0.75em; }
.card-division { font-size: 0.7em; color: #888; }
.card-vs { font-size: 0.65em; color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 700px) {
  .fights { display: none; }
  .cards { display: block; }
}
