/* LKK Bezmaksas spēles — front end lobby */
.lkk-lobby {
	--lkk-brand: #a80038;
	--lkk-accent: #a80038;
	--lkk-tile: 150px;
	color: #333;
}

/* Controls */
.lkk-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	background: #f9f9f9;
	padding: 15px;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 12px;
}

.lkk-search,
.lkk-select {
	padding: 8px 20px;
	border: 1px solid #ddd;
	border-radius: 30px;
	font-size: 13px;
	background: #fff;
	outline: none;
	height: 40px;
	box-sizing: border-box;
	transition: all 0.3s ease;
}

.lkk-search { flex-grow: 1; min-width: 200px; }
.lkk-select { cursor: pointer; padding-right: 34px; }
.lkk-search:focus, .lkk-select:focus { border-color: var(--lkk-brand); }

.lkk-providers-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.lkk-providers {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 4px 2px;
	scrollbar-width: thin;
	flex: 1 1 auto;
}

.lkk-provider {
	flex: 0 0 auto;
	height: 52px;
	min-width: 110px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.lkk-provider img { max-height: 34px; max-width: 130px; width: auto; height: auto; object-fit: contain; display: block; }
.lkk-provider--text { font-size: 13px; font-weight: 600; color: #444; }
.lkk-provider:hover { border-color: var(--lkk-brand); transform: translateY(-1px); }
.lkk-provider.active { border-color: var(--lkk-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lkk-brand) 25%, #fff); }

/* Jump nav */
.lkk-jump {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 12px;
	scrollbar-width: thin;
}

.lkk-jump a {
	flex: 0 0 auto;
	font-size: 13px;
	text-decoration: none;
	color: #555;
	background: #f2f2f2;
	border-radius: 30px;
	padding: 7px 14px;
	white-space: nowrap;
	transition: all 0.25s ease;
}

.lkk-jump a:hover { background: var(--lkk-brand); color: #fff; }

/* Sections */
.lkk-section {
	position: relative;
	margin: 0 0 10px;
	padding: 10px 12px 12px;
	border-radius: 18px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--lkk-accent) 7%, #fff) 0%, #fff 70%);
	border: 1px solid color-mix(in srgb, var(--lkk-accent) 14%, #fff);
}

.lkk-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.lkk-section-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	color: #222;
	border-left: 4px solid var(--lkk-accent);
	padding-left: 10px;
}

.lkk-section-icon { font-size: 20px; }

.lkk-section-tools { display: flex; gap: 6px; align-items: center; }
.lkk-select--sort { height: 34px; font-size: 12px; padding: 0 30px 0 14px; }

.lkk-arrow {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #555;
	transition: all 0.2s ease;
}

.lkk-arrow:hover { background: var(--lkk-accent); color: #fff; border-color: var(--lkk-accent); }

.lkk-expand,
.lkk-loadmore {
	border: 1px solid var(--lkk-accent);
	background: #fff;
	color: var(--lkk-accent);
	border-radius: 30px;
	padding: 7px 16px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lkk-expand:hover,
.lkk-loadmore:hover { background: var(--lkk-accent); color: #fff; }

/* Track: rail vs grid */
.lkk-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--lkk-tile);
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding-bottom: 6px;
	scrollbar-width: thin;
}

.lkk-track > .lkk-game { scroll-snap-align: start; }

.lkk-section--grid .lkk-track,
.lkk-section.is-expanded .lkk-track,
.lkk-track--grid {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(var(--lkk-tile), 1fr));
	grid-auto-columns: auto;
	overflow-x: visible;
	justify-items: center;
}

/* Tile */
.lkk-game { width: var(--lkk-tile); text-align: center; }
.lkk-game[hidden] { display: none; }

.lkk-game-link { display: block; text-decoration: none; }

.lkk-thumb-wrap {
	display: block;
	position: relative;
	width: var(--lkk-tile);
	height: var(--lkk-tile);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
	margin: 0 auto 8px;
	background: #eee;
}

.lkk-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.lkk-game-link:hover .lkk-thumb-wrap img { transform: scale(1.12); }

.lkk-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--lkk-brand);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 30px;
}

.lkk-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(20, 0, 8, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lkk-game-link:hover .lkk-play,
.lkk-game-link:focus-visible .lkk-play { opacity: 1; }

.lkk-game-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
	padding: 0 5px;
	word-wrap: break-word;
}

.lkk-game-link:hover .lkk-game-title { color: #750027; }

/* Results / load more */
.lkk-results-title { font-size: 20px; margin: 0 0 14px; }
.lkk-results-count { color: #888; font-size: 14px; font-weight: 400; }
.lkk-loadmore-wrap { display: flex; justify-content: center; margin-top: 16px; }
.lkk-empty { text-align: center; color: #888; padding: 30px 0; }

@media (max-width: 600px) {
	.lkk-lobby { --lkk-tile: 130px; }
	.lkk-controls { gap: 10px; padding: 12px; }
	.lkk-search { width: 100%; flex-grow: 0; }
	.lkk-arrow--edge { display: none; }
	.lkk-provider { height: 46px; min-width: 92px; }
	.lkk-track { gap: 12px; }
	.lkk-section { margin-bottom: 8px; padding: 10px 8px 10px; }
	.lkk-section-title { font-size: 17px; }
	.lkk-play { opacity: 1; background: linear-gradient(transparent 55%, rgba(20, 0, 8, 0.65)); align-items: flex-end; padding-bottom: 8px; font-size: 11px; }
}
