/* Administrace Afrodita – jednoduchý, čitelný vzhled */
:root {
	--bg: #f3f4f6; --box: #fff; --text: #1f2937; --muted: #6b7280; --line: #e5e7eb;
	--accent: #6fae2f; --accent-dark: #4d8a17; --danger: #dc2626; --link: #1d6fb8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
h1 small { font-size: 15px; color: var(--muted); font-weight: 400; }
h2 { font-size: 16px; margin: 0 0 12px; }
h2:not(:first-child) { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
h3 { font-size: 14px; margin: 20px 0 8px; }
code { font-size: 12px; background: #f1f1f1; padding: 1px 4px; border-radius: 3px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* horní lišta */
.bar { display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 52px; background: #1f2937; color: #d1d5db; }
.bar a { color: #e5e7eb; }
.bar__logo { font-weight: 800; font-size: 17px; color: #fff !important; }
.bar__logo span { color: var(--accent); font-weight: 600; }
.bar__nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.bar__nav a { padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.bar__nav a.active, .bar__nav a:hover { background: #374151; text-decoration: none; }
.bar__user { white-space: nowrap; font-size: 13px; }

.main { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
.box { background: var(--box); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.box--narrow { max-width: 460px; margin: 40px auto; }
.crumbs { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tiles .box { margin: 0; }
.tiles + .box { margin-top: 18px; }
.links { margin: 0; padding-left: 18px; }
.links li { margin: 4px 0; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.flash--error { background: #fef2f2; border-color: #fecaca; }
.errors { margin: 0 0 14px; padding: 10px 14px 10px 30px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; color: #991b1b; }
.error { color: var(--danger); display: block; }

/* formuláře */
input[type=text], input[type=search], input[type=password], input[type=url], input[type=number], input[type=email], select, textarea {
	width: 100%; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; background: #fff; color: inherit;
}
input[type=color] { width: 60px; height: 34px; padding: 2px; border: 1px solid #d1d5db; border-radius: 6px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: #60a5fa; }
label { font-weight: 600; font-size: 13px; }
.field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.field--check { flex-direction: row; align-items: center; margin-bottom: 6px; }
.field--check label { font-weight: 400; }
.field--error input, .field--error select { border-color: var(--danger); }
.grid2, .grid3 { display: grid; gap: 0 14px; }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: 1fr 1fr 1fr; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.checklist label { font-weight: 400; }
.inline { display: flex; gap: 8px; }
.btn { display: inline-block; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.btn:hover { background: var(--accent-dark); }
.btn--light { background: #fff; color: var(--text); border: 1px solid #d1d5db; }
.btn--light:hover { background: #f9fafb; }
.btn--danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.btn--danger:hover { background: #fef2f2; }
.btn--small { padding: 3px 8px; font-size: 12px; font-weight: 500; }
.sticky-save { position: sticky; bottom: 0; margin: 20px -18px -18px; padding: 12px 18px; background: rgba(255,255,255,.95); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.secret { font: 600 20px/1.4 ui-monospace, Consolas, monospace; letter-spacing: 1px; padding: 10px; margin: 8px 0; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 6px; text-align: center; user-select: all; }

/* filtry */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }

/* tabulky */
.table { width: 100%; border-collapse: collapse; }
.table.box { padding: 0; display: table; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 10px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table--games tbody tr:hover { background: #f9fafb; }
.thumb-cell { width: 110px; }
.thumb-cell img { display: block; width: 98px; height: 35px; object-fit: cover; border-radius: 4px; background: #eee; }
.table--log td { vertical-align: top; font-size: 12px; }
.changes del { color: #b91c1c; } .changes ins { color: #15803d; text-decoration: none; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 4px; border: 1px solid #ccc; }

/* štítky */
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #e5e7eb; color: #374151; white-space: nowrap; }
.badge--published, .badge--check-ok { background: #dcfce7; color: #166534; }
.badge--draft { background: #e0e7ff; color: #3730a3; }
.badge--hidden { background: #f3f4f6; color: #6b7280; }
.badge--broken, .badge--check-error, .badge--check-not_loading, .badge--check-missing_file { background: #fee2e2; color: #991b1b; }
.badge--replaced, .badge--check-suspect, .badge--check-blocks_embed { background: #fef3c7; color: #92400e; }

/* úprava hry */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.media-list { display: grid; gap: 10px; }

@media (max-width: 1100px) {
	.cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.main { padding: 16px 16px 40px; }
	.grid2, .grid3 { grid-template-columns: 1fr; }
	.bar { gap: 12px; padding: 0 12px; }
	.bar__user { display: none; }
	.table--games th:nth-child(5), .table--games td:nth-child(5), .table--games th:nth-child(7), .table--games td:nth-child(7) { display: none; }
}
.qr { display: block; margin: 10px auto; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 6px; image-rendering: pixelated; }
.role { font-size: 12px; color: var(--muted); }
.box--link { background: #fffbeb; border-color: #fde68a; }
.box--link .inline { margin: 8px 0; }
.box--danger { border-color: #fecaca; }
.box--link input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.inline.wrap { flex-wrap: wrap; }

/* obrázky hry: bod zájmu a náhledy variant */
.media { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.media--main { border-color: var(--accent); background: #f7fbf2; }
.media__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.media__video { display: block; width: 200px; border-radius: 4px; }
.media__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.media .inline select { width: auto; flex: 1; }
.focus-pick { position: relative; cursor: crosshair; line-height: 0; }
.focus-pick img { width: 100%; height: auto; border-radius: 4px; background: #eee; }
.focus-pick__dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #fff; border-radius: 50%; background: rgba(220, 38, 38, .85); box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.media__previews { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.media__previews figure { margin: 0; text-align: center; font-size: 11px; color: var(--muted); }
.media__previews img { display: block; border-radius: 3px; background: #333; }
.pv-card { width: 196px; height: auto; } /* výška podle formátu varianty (web ho může mít jiný, např. Cwapa 16 : 10) */
.pv-promo { width: 102px; height: auto; }
.pv-mini { width: 48px; height: auto; }
.pv-social { width: 105px; height: auto; }
.media--dirty .btn[name=crop] { box-shadow: 0 0 0 3px #fde68a; }
.schedule-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 18px; }
.badge--scheduled { background: #e0f2fe; color: #075985; }
.calendar { width: 100%; border-collapse: collapse; }
.calendar td { padding: 6px 10px; border-bottom: 1px solid #f1f1f1; vertical-align: top; }
.calendar tr.gap td { background: #fef2f2; }
.calendar tr.weekend td:first-child { color: #b45309; }
.stats td, .stats th { text-align: right; white-space: nowrap; }
.stats td:first-child, .stats th:first-child { text-align: left; }
.stats .zero { color: #d1d5db; }
.stats tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.controls-editor { border-collapse: collapse; width: 100%; }
.controls-editor td { padding: 3px 4px 3px 0; }
.controls-editor td:nth-child(2) { width: 80px; }
.controls-editor select, .controls-editor input { padding: 5px 6px; }
.import-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; margin-bottom: 18px; }
.import-item { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px; cursor: pointer; font-weight: 400; }
.import-item:has(input:checked) { border-color: var(--accent); background: #f7fbf2; }
.import-item img { flex: none; border-radius: 4px; background: #eee; object-fit: cover; }
.import-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.import-item__text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.import-similar { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 6px 8px; border-left: 3px solid #f59e0b; background: #fffbeb; border-radius: 4px; }
.import-similar__item { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bar__nav { overflow: visible; }
.bar__more { position: relative; }
.bar__more summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 6px; color: #e5e7eb; white-space: nowrap; }
.bar__more summary::-webkit-details-marker { display: none; }
.bar__more summary.active, .bar__more summary:hover, .bar__more[open] summary { background: #374151; }
.bar__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 190px; padding: 6px; background: #1f2937; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.bar__menu a { padding: 7px 10px; border-radius: 6px; }
.box--medium { max-width: 760px; }
form.inline { display: inline; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.word { border: 1px solid var(--line); background: #f9fafb; border-radius: 12px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.word:hover { border-color: var(--danger); color: var(--danger); }
.monster-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); text-decoration: none !important; }
.monster-tile img { object-fit: contain; }

/* kontrola her */
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.review__shot { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #111; border-radius: 6px; overflow: hidden; }
.review__shot img { width: 100%; height: 100%; object-fit: contain; }
.review__play { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.review__shot:hover .review__play { background: var(--accent); }
.review__info { display: flex; flex-direction: column; gap: 3px; min-height: 60px; }
.review__info .small { word-break: break-word; }
.review__form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.review__repl { flex: 1; min-width: 110px; padding: 4px 8px; font-size: 12px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* nahrávání po kouscích */
.upload-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.upload-progress progress { width: 220px; height: 12px; }
.upload-progress--error { color: #c0392b; }
.upload-progress--error progress { display: none; }
