/* ==========================================================
   VITKOV OPEN GAME — administrace
   ========================================================== */

.admin-nav ul { align-items: center; }

.login-box {
  max-width: 380px; margin: 40px auto;
  background: var(--white); padding: 30px;
  border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.login-box .page-title { font-size: 32px; margin-bottom: 20px; }

/* — Řádek zápasu v adminu — */
.adm-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-50);
}
.adm-row:last-child { border-bottom: none; }
.adm-row:hover { background: #fbfcfe; }
.adm-row--urgent { background: #fff8f8; }

.adm-row-time { display: flex; flex-direction: column; line-height: 1.2; }
.adm-row-time strong { font-family: 'Bebas Neue', sans-serif; font-size: 21px; color: var(--navy); }
.adm-row-time span { font-size: 11px; color: var(--gray-400); }

.adm-row-teams { font-size: 15px; font-weight: 600; }
.adm-row-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray-400); margin-top: 3px;
}
.adm-row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* — Editor skóre — */
.score-editor {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 14px; align-items: start; margin-bottom: 24px;
}
.score-side { text-align: center; }
.score-team {
  font-weight: 700; font-size: 15px; color: var(--navy);
  margin-bottom: 12px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.score-colon {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 34px;
  color: var(--gray-200); align-self: center; padding-top: 34px;
}

.stepper { display: flex; align-items: center; gap: 8px; justify-content: center; }
.step-btn {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: var(--radius); background: var(--navy); color: var(--white);
  font-size: 26px; line-height: 1; font-weight: 700;
  display: grid; place-items: center;
  transition: background var(--transition);
  -webkit-user-select: none; user-select: none;
}
.step-btn:hover { background: var(--navy-light); }
.step-btn:active { background: var(--gold); color: var(--navy); }

.step-value {
  width: 84px; height: 62px; text-align: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--navy);
  border: 2px solid var(--gray-100); border-radius: var(--radius); background: var(--white);
  -moz-appearance: textfield;
}
.step-value::-webkit-outer-spin-button,
.step-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-value:focus { outline: none; border-color: var(--gold); }

.shootout {
  padding: 16px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 18px;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-block; padding: 9px 17px; border-radius: 100px;
  border: 1px solid var(--gray-100); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  transition: all var(--transition);
}
.radio-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15,30,82,.15); }

.court-picks { display: flex; flex-wrap: wrap; gap: 8px; }

.quick-shift { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

/* — Editovatelné řádky (týmy, hřiště) — */
.edit-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--gray-50);
}
.edit-row:last-child { border-bottom: none; }
.edit-row .input { flex: 1 1 150px; min-width: 0; }
.edit-row .hint { font-size: 12px; color: var(--gray-400); }

.court-admin {
  padding: 12px 0; border-bottom: 1px solid var(--gray-50);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.court-admin:last-child { border-bottom: none; }
.court-admin .edit-row { flex: 1 1 480px; border: none; padding: 0; }

@media (max-width: 720px) {
  .adm-row { grid-template-columns: 64px 1fr; }
  .adm-row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .adm-row-actions .btn { flex: 1; }
  .adm-row-actions form { flex: 1; display: flex; }
  .adm-row-actions form .btn { width: 100%; }
  .score-editor { grid-template-columns: 1fr; gap: 8px; }
  .score-colon { display: none; }
  .score-team { min-height: 0; margin-bottom: 8px; }
  .score-side + .score-side { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--gray-100); }
  .step-btn { width: 60px; height: 60px; flex: 0 0 60px; font-size: 30px; }
  .step-value { width: 100px; height: 68px; font-size: 44px; }
}
