/* mvplab-panel — Κατεύθυνση Α «Γήπεδο τη νύχτα» (art-direction.md v1.5 §3). Χωρίς gradients, χωρίς blur. */
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans Extra Condensed"; src: url(../fonts/fira-sans-xcond-700.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Anton"; src: url(../fonts/anton-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #151412; --surface: #1C1A17; --card: #24211D; --line: #3A362F; --field-border: #7A7265;
  --text: #EDEAE3; --muted: #A39D92; --gold: #DBAA0F; --on-gold: #151412; --gold-hover: #E9BE3A;
  --link: #7FA8FF; --warn: #FF8A3D; --danger: #FF6B5B; --success: #4CC38A;
  --cond: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 12px; --r-btn: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0 0 12px; }
p { margin: 0 0 12px; }
code { font-family: ui-monospace, monospace; background: var(--surface); padding: 1px 6px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 16px; border-radius: var(--r-btn); z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.4; }
.warn { color: var(--warn); }
.em { font-weight: 500; color: var(--text); }
.tabular { font-variant-numeric: tabular-nums; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.label { font: 500 14px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
.h-screen { font: 700 32px/1.05 var(--cond); margin: 0 0 16px; }
.h-section { font: 700 22px/1.15 var(--cond); margin: 24px 0 8px; }
.h1 { font: 700 36px/1.05 var(--cond); margin: 0 0 8px; }
.h2 { font: 700 24px/1.15 var(--cond); margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.h3 { font: 700 20px/1.2 var(--cond); margin: 24px 0 8px; }
.icon { vertical-align: -2px; flex: none; }
.empty { color: var(--muted); padding: 24px 0; }
.stack > * + * { margin-top: 12px; }
.narrow { max-width: 560px; margin: 0 auto; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Κουμπιά */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-btn);
  font: 700 18px/1 var(--cond); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 80ms, background-color 120ms; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--field-border); }
.btn-secondary:hover { background: #26231F; }
.btn-ghost { background: transparent; color: var(--link); border-color: transparent; padding: 0 8px; font: 500 15px/1 var(--sans); text-decoration: underline; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-lg { min-height: 56px; font-size: 20px; }
.btn-block { width: 100%; }
.btn-icon { min-height: 44px; min-width: 44px; padding: 0; background: var(--surface); color: var(--text); border-color: var(--field-border); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* Πεδία */
.field-group { margin: 0 0 20px; }
.field-label { display: block; font: 500 15px/1.3 var(--sans); margin: 0 0 6px; }
.req { font: 400 14px var(--sans); color: var(--muted); }
.help { font-size: 14px; color: var(--muted); margin: -2px 0 8px; }
.field { display: block; width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--field-border);
  border-radius: var(--r-btn); font: 400 17px/1.4 var(--sans); }
select.field { appearance: auto; }
.field:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field-lg { min-height: 56px; }
.textarea { min-height: 104px; resize: vertical; max-height: 18em; }
.is-invalid, .field.is-invalid { border: 2px solid var(--danger); }
.field-error { color: var(--danger); font-size: 14px; margin: 6px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.check { display: flex; gap: 10px; align-items: center; min-height: 48px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); }
.error-summary { background: var(--surface); border-left: 3px solid var(--danger); padding: 12px 16px; border-radius: 6px; margin: 0 0 20px; }
.error-summary ul { margin: 4px 0 0; padding-left: 20px; }
.hint { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border-left: 3px solid var(--warn); padding: 10px 12px;
  font-size: 14px; line-height: 1.4; margin: 8px 0 0; border-radius: 4px; }
.hint .icon { color: var(--warn); margin-top: 2px; }
.counter { text-align: right; font-size: 14px; color: var(--muted); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.counter.is-warn { color: var(--warn); }
.counter.is-over { color: var(--danger); }

/* Chips, toast */
.chip { display: inline-flex; gap: 6px; align-items: center; font: 500 14px/1 var(--sans); padding: 6px 10px; border: 1px solid var(--field-border);
  border-radius: 999px; color: var(--text); white-space: nowrap; min-width: 4.2em; justify-content: center; }
.chip-done { border-color: var(--success); }
.chip-done .icon { color: var(--success); }
.chip-todo { border-color: var(--warn); color: var(--warn); }
.toast { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--success);
  padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; }
.toast > .icon { color: var(--success); }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }

/* ===== Ασκούμενος (mobile first, max 560) ===== */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px;
  padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-home { display: flex; align-items: center; min-height: 44px; }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--text); text-decoration: none; font: 500 15px/1 var(--sans); padding: 14px 8px; }
.topnav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.t-main { max-width: 560px; margin: 0 auto; padding: 24px 20px 120px; }
.t-main:focus { outline: none; }
.card { background: var(--card); border-radius: var(--r-card); padding: 20px; margin: 0 0 16px; }
.crumbs { font-size: 15px; margin: 0 0 12px; }
.crumbs a { color: var(--link); }
.progress-wrap { margin: 0 0 20px; }
.progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--card); overflow: hidden; display: block; margin: 0 0 6px; }
.progress::-webkit-progress-bar { background: var(--card); }
.progress::-webkit-progress-value { background: var(--gold); transition: width 300ms; }
.progress::-moz-progress-bar { background: var(--gold); }
.done-banner { font: 700 24px/1.1 var(--cond); padding: 16px 20px; border-left: 6px solid var(--gold); background: var(--card); border-radius: 8px; }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-card { display: block; background: var(--card); border-radius: var(--r-card); padding: 20px; margin: 0 0 12px; color: var(--text); text-decoration: none; }
.ex-card:hover { background: #2A2722; }
.ex-title { display: block; font: 700 26px/1.1 var(--cond); margin: 4px 0 8px; }
.ex-title-lg { font: 700 30px/1.08 var(--cond); margin: 4px 0 12px; overflow-wrap: anywhere; }
.numbers { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.numbers .num { font: 700 40px/1 var(--cond); font-variant-numeric: tabular-nums; }
.meta { color: var(--muted); font-size: 15px; }
.prose { margin: 0 0 16px; overflow-wrap: anywhere; }
.instructions { border-left: 3px solid var(--line); padding-left: 12px; }
.login { max-width: 420px; margin: 0 auto; padding-top: 24px; }
.login-title { font: 700 28px/1.1 var(--cond); text-align: center; margin: 0 0 20px; }
.login-logo { display: flex; justify-content: center; margin: 0 0 32px; }
.wordmark-text { font-family: "Anton", var(--cond); }

/* Βίντεο §3.14 */
.video { margin: 0 0 20px; }
.video-link { font-size: 17px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.video-frame { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9;
  background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--r-card); color: var(--text); font: 500 17px/1.3 var(--sans); cursor: pointer; padding: 0; }
.video-frame:hover { border-color: var(--gold); }
.video-play { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; transition: transform 160ms; }
.video-play .icon { width: 26px; height: 26px; margin-left: 4px; }
.video-frame:hover .video-play { transform: scale(1.06); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-card); background: #000; }
.video-note { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; }
.video-small { max-width: 320px; }

/* Επιλογέας 1–10 §3.9.1 */
.rate-form { margin-top: 24px; }
.rating { border: 0; margin: 0 0 20px; padding: 0 0 8px; min-width: 0; scroll-margin-bottom: 112px; }
/* QA 375px: η sticky «Αποθήκευση» (~80px) να μην καλύπτει τη 2η σειρά/ετικέτα της κλίμακας */
html:has(.sticky-save) { scroll-padding-bottom: 112px; }
.rate-form { padding-bottom: 8px; }
.rating-opt input { scroll-margin-bottom: 112px; }
.rating.is-invalid { border: 2px solid var(--danger); border-radius: var(--r-card); padding: 12px; }
.rating legend { font: 700 22px/1.2 var(--cond); padding: 0; margin: 0 0 8px; scroll-margin: 80px 0 120px; }
.rating legend:focus { outline: none; }
.rating .field-error { margin: 0 0 8px; }
.rating-end { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.rating-end-stop { text-align: right; margin: 6px 0 0; }
.rating-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-opt { position: relative; display: block; cursor: pointer; }
.rating-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; clip: rect(0 0 0 0); }
.rating-box { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--card); border: 1px solid var(--field-border);
  border-radius: var(--r-btn); transition: background-color 160ms cubic-bezier(.2, 0, 0, 1); }
.rating-num { font: 700 26px/1 var(--cond); font-variant-numeric: tabular-nums; }
.rating-box .icon { position: absolute; top: 5px; right: 5px; display: none; }
.rating-opt input:checked + .rating-box { background: var(--gold); color: var(--on-gold); border: 2px solid var(--gold); }
.rating-opt input:checked + .rating-box .icon { display: block; }
.rating-opt input:checked + .rating-box .rating-num { animation: pop 200ms; }
.rating-opt input:focus-visible + .rating-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.rating-opt:hover .rating-box { background: #2A2722; }
.rating-opt:hover input:checked + .rating-box { background: var(--gold-hover); }
@keyframes pop { 50% { transform: scale(1.12); } }
@media (min-width: 560px) {
  .rating-grid { grid-template-columns: repeat(10, 1fr); gap: 6px; }
  .rating-box { min-height: 56px; }
}
.sticky-save { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--card); margin: 0 -20px -20px; padding-left: 20px; padding-right: 20px;
  border-top: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
.rating-locked { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.history-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ===== Admin ===== */
.a-app { --sidebar: 248px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-word { font: 400 20px/1 "Anton", var(--cond); letter-spacing: .02em; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { color: var(--text); text-decoration: none; padding: 12px; border-radius: 8px; font: 500 16px/1 var(--sans); }
.sidenav a:hover { background: var(--card); }
.sidenav a[aria-current="page"] { color: var(--gold); background: var(--card); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-logout { margin-top: auto; }
.bottomnav { display: none; }
.a-main { margin-left: var(--sidebar); padding: 32px 40px 64px; max-width: calc(1440px + var(--sidebar)); font-size: 15px; }
.a-main:focus { outline: none; }
.a-main .field { font-size: 15px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.lead { max-width: 70ch; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin: 0 0 20px; }
.panel-warn { border-left: 3px solid var(--warn); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form { max-width: 640px; }
.inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.inline-form .field { width: auto; min-width: 220px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 16px; }
.filters .field { width: auto; min-width: 180px; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; }
.filters-grid .field { width: 100%; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; }
.tabs a { color: var(--text); text-decoration: none; padding: 14px 16px; font: 500 15px/1 var(--sans); white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.table th { position: sticky; top: 0; background: var(--bg); text-align: left; font: 500 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); height: 52px; vertical-align: middle; }
.table tr.subrow td { padding-top: 0; height: auto; }
.table tr:has(+ .subrow) td { border-bottom: 0; }
.comment { font-size: 15px; margin: 0; color: var(--text); }
.comment-empty { font-size: 14px; font-style: italic; color: var(--muted); margin: 0; }
.comment-details summary { cursor: pointer; list-style: none; }
.comment-details summary::-webkit-details-marker { display: none; }
.comment-details .more { color: var(--link); font-size: 14px; white-space: nowrap; }
.comment-details[open] summary .comment { display: none; }
.comment-details[open] .more::after { content: " ▴"; }
.comment-details:not([open]) .more::after { content: " ▾"; }
.after-table { margin-top: 16px; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 0 0 12px; }
.stats dt { font: 500 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 700 32px/1 var(--cond); }
.editor-list { list-style: none; padding: 0; margin: 0 0 16px; }
.editor-item { background: var(--card); border-radius: var(--r-card); padding: 16px; margin: 0 0 12px; }
.editor-head { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.editor-title { font: 700 20px/1.2 var(--cond); color: var(--text); flex: 1; }
.editor-move { display: flex; gap: 6px; }
.editor-move form { margin: 0; }
.item-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.item-fields .mini-wide, .item-fields .actions, .item-fields .field-error { grid-column: 1 / -1; }
.item-del { margin-top: 8px; }
.admin-preview { margin: -8px 0 20px; }
.chart { width: 100%; max-width: 720px; height: auto; display: block; margin: 8px 0 0; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font: 400 12px var(--sans); }
.chart-line { fill: none; stroke: var(--text); stroke-width: 2; }
.chart-dot { fill: var(--gold); }
.dialog { background: var(--surface); color: var(--text); border: 1px solid var(--field-border); border-radius: var(--r-card); padding: 24px; max-width: 480px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(10, 10, 9, .8); }

@media (max-width: 767px) {
  .sidebar { display: none; }
  .bottomnav { display: flex; position: fixed; inset: auto 0 0 0; height: 64px; background: var(--surface); border-top: 1px solid var(--line); z-index: 5; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; font: 500 14px/1 var(--sans); }
  .bottomnav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }
  .a-main { margin-left: 0; padding: 20px 16px 96px; }
  .grid-2 { grid-template-columns: 1fr; }
  .item-fields { grid-template-columns: 1fr 1fr; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--card); border-radius: var(--r-card); padding: 12px 14px; margin: 0 0 10px; }
  .table tr.subrow { margin-top: -18px; border-radius: 0 0 var(--r-card) var(--r-card); padding-top: 0; }
  .table td { border: 0; padding: 4px 0; height: auto; }
  .table td[data-label]::before { content: attr(data-label); display: block; font: 500 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .inline-form .field, .filters .field { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
