/* Bowling Centrum – liga na webu. Barvy jdou přepsat proměnnými na .bc-league (např. v Mioweb vlastním CSS). */
.bc-league {
	--bc-accent: #d6001c;
	--bc-accent-soft: #fdeced;
	--bc-ink: #1f2430;
	--bc-line: #e7e8ec;
	--bc-soft: #f6f7f9;
	--bc-muted: #6b7080;
	--bc-win: #1f9d55;
	--bc-gold: #f5b301;
	--bc-silver: #a8b0bd;
	--bc-bronze: #c7834a;
	--bc-radius: 14px;
	max-width: 980px;
	margin: 0 auto;
	color: var(--bc-ink);
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}
.bc-league *, .bc-league *::before, .bc-league *::after { box-sizing: border-box; }

/* ---- Tabulky ---- */
.bc-league .bc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 24px;
	background: #fff;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	box-shadow: 0 1px 2px rgba(20, 24, 35, .04), 0 8px 24px rgba(20, 24, 35, .05);
}
.bc-league-table { width: 100%; border-collapse: collapse; font-size: .95em; margin: 0; border: 0; }
.bc-league-table th, .bc-league-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--bc-line); text-align: left; vertical-align: middle; background: none; }
.bc-league-table thead th {
	background: var(--bc-soft);
	color: var(--bc-muted);
	font-size: .74em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.bc-league-table tbody tr:last-child td { border-bottom: 0; }
.bc-league-table tbody tr { transition: background .15s; }
.bc-league-table tbody tr:hover { background: var(--bc-soft); }
.bc-league-table .num { text-align: right; white-space: nowrap; }
.bc-league-table small { color: var(--bc-muted); }
.bc-league-table .bc-col-name { font-weight: 600; }
.bc-league-table .bc-col-muted { color: var(--bc-muted); }
.bc-league-table .bc-col-points { font-weight: 800; font-size: 1.05em; }
.bc-league-table td.bc-col-points { color: var(--bc-ink); }
.bc-league-table .bc-col-rank { width: 56px; text-align: center; }
.bc-rank {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 30px; height: 30px; padding: 0 6px;
	border-radius: 999px;
	background: var(--bc-soft);
	color: var(--bc-muted);
	font-weight: 700; font-size: .9em;
}
.bc-rank.is-top { color: #fff; }
.bc-rank.is-1 { background: var(--bc-gold); }
.bc-rank.is-2 { background: var(--bc-silver); }
.bc-rank.is-3 { background: var(--bc-bronze); }
.bc-standings tbody tr:nth-child(-n+3) .bc-col-name { color: var(--bc-ink); }
.bc-ok { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: #e7f6ee; color: var(--bc-win); font-size: .8em; font-weight: 800; }

/* rozpis */
.bc-league-round { display: flex; align-items: center; gap: 12px; margin: 32px 0 12px; font-size: 1.15em; }
.bc-league-round::after { content: ""; flex: 1; height: 1px; background: var(--bc-line); }
.bc-schedule .bc-col-when strong { display: block; white-space: nowrap; }
.bc-schedule .bc-col-when small { display: block; text-transform: capitalize; }
.bc-schedule tr.is-idle td { color: var(--bc-muted); font-style: italic; background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--bc-soft) 8px 16px); }
.bc-schedule tr.is-cancelled td { text-decoration: line-through; color: var(--bc-muted); }
.bc-schedule tr.is-played td.num strong { display: inline-block; padding: 3px 10px; border-radius: 8px; background: var(--bc-accent-soft); color: var(--bc-accent); }
.bc-match-detail-row:hover { background: none !important; }
.bc-match-detail-row td { padding-top: 0; }
.bc-match-detail-row summary { cursor: pointer; color: var(--bc-accent); font-size: .88em; font-weight: 600; list-style: none; }
.bc-match-detail-row summary::-webkit-details-marker { display: none; }
.bc-match-detail-row summary::before { content: "▸ "; }
.bc-match-detail-row details[open] summary::before { content: "▾ "; }
.bc-match-detail-row .bc-table-wrap { margin: 10px 0 4px; box-shadow: none; }

/* detail zápasu */
.bc-match td.is-win { color: var(--bc-win); font-weight: 800; }
.bc-match .bc-game-sum td { background: var(--bc-soft); font-weight: 700; }
.bc-match .bc-match-sum td { font-weight: 800; border-top: 2px solid var(--bc-accent); }

/* ---- Družstva v kartách ---- */
.bc-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 0 0 28px; }
.bc-team {
	display: flex; flex-direction: column; gap: 14px;
	background: #fff;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	padding: 20px 22px 16px;
	box-shadow: 0 1px 2px rgba(20, 24, 35, .04), 0 8px 24px rgba(20, 24, 35, .05);
}
.bc-team h4 { margin: 0; font-size: 1em; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.bc-members { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bc-member { margin: 0; padding: 5px 10px; border-radius: 7px; background: #f1f4f8; font-size: .86em; line-height: 1.3; }
.bc-member.is-f { background: #fdf0f5; }
.bc-team-empty { margin: 0; color: var(--bc-muted); font-style: italic; font-size: .9em; }
.bc-team footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bc-line); color: var(--bc-muted); font-size: .84em; }
.bc-team footer span:last-child { white-space: nowrap; }
.bc-team footer a { color: var(--bc-accent); font-weight: 600; text-decoration: none; }

/* ---- Záložky (liga dvojic) – bez JavaScriptu ---- */
.bc-tabs { margin: 0 0 24px; }
.bc-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.bc-tab-nav { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; background: var(--bc-soft); border: 1px solid var(--bc-line); border-radius: 12px; }
.bc-tab-nav label { padding: 9px 18px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--bc-muted); transition: background .15s, color .15s; }
.bc-tab-nav label:hover { color: var(--bc-ink); }
.bc-tab-pane { display: none; }
.bc-tab-radio:nth-of-type(1):checked ~ .bc-tab-nav label:nth-child(1),
.bc-tab-radio:nth-of-type(2):checked ~ .bc-tab-nav label:nth-child(2),
.bc-tab-radio:nth-of-type(3):checked ~ .bc-tab-nav label:nth-child(3) { background: #fff; color: var(--bc-ink); box-shadow: 0 1px 3px rgba(20, 24, 35, .12); }
.bc-tab-radio:nth-of-type(1):focus-visible ~ .bc-tab-nav label:nth-child(1),
.bc-tab-radio:nth-of-type(2):focus-visible ~ .bc-tab-nav label:nth-child(2),
.bc-tab-radio:nth-of-type(3):focus-visible ~ .bc-tab-nav label:nth-child(3) { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
.bc-tab-radio:nth-of-type(1):checked ~ .bc-tab-panes .bc-tab-pane:nth-child(1),
.bc-tab-radio:nth-of-type(2):checked ~ .bc-tab-panes .bc-tab-pane:nth-child(2),
.bc-tab-radio:nth-of-type(3):checked ~ .bc-tab-panes .bc-tab-pane:nth-child(3) { display: block; }
.bc-tab-empty { padding: 28px; border: 1px dashed var(--bc-line); border-radius: var(--bc-radius); color: var(--bc-muted); text-align: center; }
.bc-pairs-group + .bc-pairs-group { margin-top: 8px; }
.bc-pairs-group .bc-group-title { margin-top: 0; }
.bc-ind { margin: -12px 0 24px; }
.bc-ind summary { cursor: pointer; color: var(--bc-accent); font-weight: 600; font-size: .9em; margin-bottom: 10px; }

/* ---- Ostatní ---- */
.bc-league-note, .bc-league-empty { color: var(--bc-muted); font-size: .92em; }
.bc-history-select { margin: 0 0 16px; }
.bc-history-select select { padding: 9px 12px; font: inherit; border: 1px solid var(--bc-line); border-radius: 10px; background: #fff; }
.bc-group-title { display: flex; align-items: center; gap: 10px; margin: 32px 0 12px; font-size: 1.15em; }
.bc-group-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--bc-accent); }
.bc-league h4 { margin: 4px 0 10px; }

@media (max-width: 600px) {
	.bc-league-table th, .bc-league-table td { padding: 10px 8px; }
	.bc-league-table .bc-col-rank { width: 40px; }
	.bc-rank { min-width: 26px; height: 26px; }
	.bc-teams { grid-template-columns: 1fr; }
	.bc-tab-nav { display: flex; }
	.bc-tab-nav label { flex: 1; text-align: center; padding: 9px 8px; }
}
