/* Veřejný detail týmu — FishMaraton */

.fm-team-msg {
	margin: 1rem 0;
}

.fm-team-msg--error {
	color: #b42318;
}

.fm-team-root {
	position: relative;
	margin: 1.5rem 0;
	font-size: 1rem;
	line-height: 1.5;
}

.fm-team-inner {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.fm-team-heading {
	margin: 0;
	padding: 0.85rem 1.25rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #101828;
	border-bottom: 1px solid #e4e7ec;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.fm-team-loading,
.fm-team-error {
	margin: 0;
	padding: 1rem 1.25rem;
}

.fm-team-error {
	color: #b42318;
	background: #fef3f2;
}

.fm-team-content {
	padding: 1rem 1.25rem 1.25rem;
}

.fm-team-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	color: #344054;
}

.fm-team-meta strong {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #667085;
	margin-bottom: 0.15rem;
}

.fm-team-empty {
	margin: 0;
	color: #667085;
	font-size: 0.9375rem;
}

.fm-team-catches-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #1d2939;
}

.fm-team-catch {
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	margin-bottom: 0.75rem;
	background: #fcfcfd;
}

.fm-team-catch-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #101828;
}

.fm-team-catch-time {
	font-variant-numeric: tabular-nums;
}

.fm-team-catch-weight {
	font-variant-numeric: tabular-nums;
	color: #1570ef;
}

.fm-team-catch-note {
	margin: 0 0 0.65rem;
	font-size: 0.875rem;
	color: #475467;
}

.fm-team-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fm-team-gallery button {
	padding: 0;
	border: 2px solid #e4e7ec;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	line-height: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fm-team-gallery button:hover,
.fm-team-gallery button:focus-visible {
	border-color: #1570ef;
	box-shadow: 0 0 0 2px rgba(21, 112, 239, 0.2);
	outline: none;
}

.fm-team-gallery img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

/* Lightbox */
.fm-team-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.fm-team-lb[hidden] {
	display: none !important;
}

.fm-team-lb-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	margin: 0;
	padding: 0;
	background: rgba(15, 23, 42, 0.82);
	cursor: pointer;
}

.fm-team-lb-box {
	position: relative;
	z-index: 1;
	max-width: min(96vw, 1100px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-team-lb-img {
	max-width: 100%;
	max-height: 85vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.fm-team-lb-close,
.fm-team-lb-prev,
.fm-team-lb-next {
	position: absolute;
	z-index: 2;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
	color: #101828;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease;
}

.fm-team-lb-close:hover,
.fm-team-lb-prev:hover,
.fm-team-lb-next:hover {
	background: #fff;
}

.fm-team-lb-close {
	top: -0.25rem;
	right: -0.25rem;
	width: 2.5rem;
	height: 2.5rem;
}

.fm-team-lb-prev,
.fm-team-lb-next {
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	font-size: 2rem;
	padding-bottom: 0.15rem;
}

.fm-team-lb-prev {
	left: 0.5rem;
}

.fm-team-lb-next {
	right: 0.5rem;
}

@media (max-width: 520px) {
	.fm-team-gallery img {
		width: 64px;
		height: 64px;
	}

	.fm-team-lb-prev {
		left: 0.25rem;
	}

	.fm-team-lb-next {
		right: 0.25rem;
	}
}
