/* dodekatos.gr — κοινό stylesheet */
:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: #EFF6FF;
  --accent-soft-2: #DBEAFE;
  --coach: #F59E0B;
  --coach-soft: #FEF3C7;
  --coach-text: #78350F;
  --live: #DC2626;
  --live-soft: #FEE2E2;
  --live-text: #B91C1C;
  --good: #15803D;
  --pitch: #15803D;
  --pitch-line: #4ADE80;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Roboto Condensed', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; }

/* ---------- Shared app nav (sidebar + drawer) ---------- */
:root { --app-sidebar-w: 220px; }
body.has-app-nav { --app-nav-offset: 0px; }
@media (min-width: 901px) {
  body.has-app-nav { --app-nav-offset: var(--app-sidebar-w); padding-left: var(--app-sidebar-w); }
}
.app-sidebar {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--app-sidebar-w);
  background: var(--ink);
  color: var(--white);
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  overflow-y: auto;
}
.app-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  padding: 8px 10px 16px;
}
.app-sidebar-brand:hover { color: var(--white); }
.app-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.app-sidebar-nav a {
  color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 12px; border-radius: 10px;
}
.app-sidebar-nav a[aria-current="page"],
.app-sidebar-nav a:hover { color: var(--white); background: var(--ink-2); }
.app-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  z-index: 50; border: 0;
}
.app-drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(300px, 86vw);
  max-width: 100%;
  background: var(--ink); color: var(--white);
  z-index: 60;
  transform: translate3d(-100%, 0, 0);
  transition: transform .2s ease;
  display: flex; flex-direction: column;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  visibility: hidden;
}
.app-drawer.is-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
}
body.nav-open { overflow: hidden; }
.app-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 4px 4px 12px;
}
.app-drawer-head strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.app-drawer .icon-btn { color: var(--white); }
.app-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.app-drawer-nav a {
  color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 12px; border-radius: 10px;
}
.app-drawer-nav a[aria-current="page"],
.app-drawer-nav a:hover { color: var(--white); background: var(--ink-2); }
.nav-toggle { display: none; }
@media (min-width: 901px) {
  .app-sidebar { display: flex; }
  .nav-toggle { display: none !important; }
  .app-drawer, .app-drawer-backdrop { display: none !important; }
  body.has-app-nav .site-header .container,
  body.has-app-nav .app-header .container,
  body.has-app-nav .hero .container,
  body.has-app-nav .page > .container,
  body.has-app-nav .site-footer .container,
  body.has-app-nav .app-main,
  body.has-app-nav .app-footer .inner {
    max-width: calc(1200px + 0px);
  }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header .nav-toggle { color: var(--white); margin-right: 4px; }
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: #1E3A8A; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
.display { font-family: var(--font-display); font-weight: 800; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.points-pill { display: none; align-items: center; gap: 8px; background: var(--ink-2); padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border-radius: 12px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-primary[disabled] { background: #94A3B8; cursor: not-allowed; }
.btn-ghost-dark { color: var(--white); border: 1px solid var(--ink-3); background: transparent; }
.btn-ghost-dark:hover { color: var(--white); background: var(--ink-2); }
.btn-outline { color: var(--ink); border: 1.5px solid var(--ink); background: var(--white); }
.btn-outline:hover { color: var(--ink); background: var(--bg); }
.btn-block { width: 100%; }
.btn-cta { min-height: 50px; font-size: 16px; padding: 14px 22px; }
.btn-sm { min-height: 36px; padding: 8px 12px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 28px 0 40px; }
.hero .container { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: #93C5FD; background: #172554; padding: 6px 10px; border-radius: 999px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 54px); line-height: 1.05; }
.hero p { margin: 0; font-size: 18px; color: #CBD5E1; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.scoreboard { flex: 1 1 320px; max-width: 420px; background: var(--ink-2); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.scoreboard .label { font-size: 13px; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: .8px; }
.scoreboard .row { display: flex; align-items: flex-end; justify-content: space-between; }
.scoreboard .side { display: flex; flex-direction: column; gap: 4px; }
.scoreboard .side.right { align-items: flex-end; }
.scoreboard .who { font-size: 14px; font-weight: 600; }
.scoreboard .who.crowd { color: #93C5FD; }
.scoreboard .who.coach { color: #FCD34D; }
.scoreboard .num { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1; }
.split-bar { height: 10px; border-radius: 999px; background: var(--coach); overflow: hidden; }
.split-bar > span { display: block; height: 100%; background: #3B82F6; }
.scoreboard p { margin: 0; font-size: 14px; color: #CBD5E1; }

/* ---------- Sections ---------- */
main.page { padding: 22px 0 48px; }
main.page > .container { display: flex; flex-direction: column; gap: 28px; }
.section { display: flex; flex-direction: column; gap: 12px; }
.section-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex-shrink: 0; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--ink-3); border: 1px solid var(--line); }
.chip[aria-current="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: #CBD5E1; color: var(--ink); }
.card.featured { border: 2px solid var(--accent); }

/* Featured PAOK match: compact horizontal strip (not a tall stretched grid cell) */
.featured-match { padding: 12px 14px; gap: 0; }
.featured-match-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.featured-match-main {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.featured-match-actions {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: min(100%, 240px);
}
.featured-match-actions .btn-cta {
  width: 100%;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.match-kick { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.empty-note { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 14px; }

/* Ticket strip: verdict + leaderboard in one compact horizontal component */
.home-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.home-ticket-pane {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  justify-content: flex-start; /* top-align labels across columns (center misaligned unequal panes) */
}
.home-ticket-pane + .home-ticket-pane {
  border-left: 1px dashed #CBD5E1;
  position: relative;
}
.home-ticket-pane + .home-ticket-pane::before,
.home-ticket-pane + .home-ticket-pane::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.home-ticket-pane + .home-ticket-pane::before { top: -7px; }
.home-ticket-pane + .home-ticket-pane::after { bottom: -7px; }
.home-ticket-match {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-ticket-match strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-ticket-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.home-ticket-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-dark);
}
.home-ticket-link:hover { color: #1E3A8A; }
.home-ticket-top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-ticket-top li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.home-ticket-top .rank {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--muted);
}
.home-ticket-top .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.home-ticket-top .pts {
  font-family: var(--font-display);
  font-weight: 800;
}

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.badge-live { color: var(--live-text); background: var(--live-soft); }
.badge-crowd { color: #1E3A8A; background: var(--accent-soft-2); }
.badge-coach { color: var(--coach-text); background: var(--coach-soft); }
.badge-draw { color: var(--ink-2); background: var(--line); }

.crest { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest-text { border-radius: 50%; color: var(--white); font-family: var(--font-display); font-weight: 800; }
.crest-lg { width: 44px; height: 44px; font-size: 13px; }
.crest-md { width: 34px; height: 34px; font-size: 11px; }
.crest-sm { width: 30px; height: 30px; font-size: 10px; }

.match-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-teams-compact {
  justify-content: flex-start;
  gap: 12px 18px;
}
.match-teams-compact .match-team {
  flex: 0 1 auto;
  flex-direction: row;
  gap: 8px;
  font-size: 17px;
  text-align: left;
}
.match-team { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-align: center; }
.match-score { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.match-vs {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar { height: 8px; border-radius: 999px; background: var(--accent-soft-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar-lg { height: 10px; background: var(--line); }

.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #EEF2F6;
}
/* .card on a list-row previously forced column layout + extra padding (root cause of fixture whitespace) */
.list-row.card {
  flex-direction: row;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
}
.list-row:last-child { border-bottom: 0; }
.list-row .time { font-family: var(--font-display); font-size: 18px; font-weight: 700; width: 52px; flex-shrink: 0; }
.list-row .teams { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.list-row .teams > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .teams .vs-sep { color: #64748B; flex-shrink: 0; overflow: visible; }
.list-row .note { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: auto; white-space: nowrap; }
.list-row .soon-label {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
}
.is-disabled-club { opacity: 0.72; }
.is-disabled-club .btn { pointer-events: none; }

.board { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; }
.board-page { gap: 14px; }
.rewards-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  background: rgba(254, 243, 199, .55);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 6px 10px;
}
.board-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  min-width: 0;
}
.board-filters .field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.board-filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.coach-month {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.coach-month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.coach-month-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.coach-month-head .meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.coach-month-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.coach-month-head .badge { flex-shrink: 0; }
.top3 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top3 li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F8FAFC;
}
.top3 .rank { font-family: var(--font-display); font-weight: 800; color: var(--muted); }
.top3 strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top3 .empty {
  display: block;
  color: var(--muted);
  font-weight: 500;
  background: transparent;
  padding: 4px 0;
  line-height: 1.4;
}
.board-card { overflow: hidden; }
.board-empty {
  margin: 0;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.board-empty[hidden] { display: none !important; }
.board-empty strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }
.board-empty span { font-size: 14px; max-width: 28ch; line-height: 1.4; }
.board-empty .btn { margin-top: 8px; }
.board-foot { margin: 8px 16px 16px; font-size: 14px; font-weight: 600; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.board-row .rank { font-family: var(--font-display); font-weight: 800; font-size: 18px; width: 24px; color: var(--muted); }
.board-row .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.board-row .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.board-row .who span:first-child { font-weight: 600; font-size: 15px; }
.board-row .who span:last-child { font-size: 13px; color: var(--muted); }
.board-row .pts { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.board-row .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .score-col { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.board-row .score-col .hit { font-size: 12px; color: var(--muted); white-space: nowrap; }
.board-foot { padding: 8px 16px 12px; font-weight: 600; font-size: 14px; }

.how-steps { align-items: stretch; }
.step { position: relative; overflow: hidden; padding: 16px 16px 20px; gap: 10px; }
.step::after { content: attr(data-n); position: absolute; right: -4px; bottom: -36px; font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1; letter-spacing: -4px; color: var(--accent-soft-2); pointer-events: none; }
.step > * { position: relative; z-index: 1; }
.step-top { display: flex; align-items: center; gap: 8px; }
.step .clock { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .3px; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 9px; border-radius: 6px; }
.step .clock-live { color: var(--live-text); background: var(--live-soft); }
.step h3 { font-size: 18px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

.sponsor-slot { border: 1.5px dashed #CBD5E1; border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

.site-footer { background: var(--ink); color: #94A3B8; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: #CBD5E1; }

/* ---------- App screens (lineup / live / verdict) ---------- */
.app-header { background: var(--ink); color: var(--white); }
.app-header .container { max-width: 720px; padding-top: 10px; padding-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.app-bar { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); border-radius: 10px; background: transparent; border: 0; text-decoration: none; }
.icon-btn:hover { background: var(--ink-2); color: var(--white); }
.app-bar .titles { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.app-bar .titles strong { font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.app-bar .titles span { font-size: 13px; color: #CBD5E1; }
.dev-mode-badge { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #92400E; background: rgba(254, 243, 199, .85); border: 1px solid rgba(245, 158, 11, .45); border-radius: 999px; padding: 4px 10px; }
.app-main { max-width: 720px; margin: 0 auto; padding: 16px 20px 120px; display: flex; flex-direction: column; gap: 14px; }
.app-footer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.app-footer .inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.app-footer .summary { font-size: 14px; color: var(--ink-3); text-align: center; }

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--ink-2); border-radius: 12px; padding: 4px; }
.segmented.segmented-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented button { border: 0; border-radius: 9px; padding: 10px 6px; background: transparent; color: #E2E8F0; font-weight: 600; font-size: 14px; min-width: 0; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--ink); font-weight: 700; }

.deadline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid var(--line);
}
.deadline-bar.closed {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}
.deadline-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.deadline-bar.closed .deadline-label { color: #991B1B; }
.deadline-count { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.deadline-meta { font-size: 12px; color: var(--muted); margin-left: auto; }
.deadline-bar.closed .deadline-meta { color: #B91C1C; }
.community-formation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 8px 2px;
}
.community-formation-bar[hidden] { display: none !important; }
.community-formation-bar small { font-size: 12px; font-weight: 600; color: var(--muted); }
.community-formation-bar strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.community-formation-bar span { font-size: 13px; color: var(--muted); font-weight: 600; }
.formation-picker { display: flex; flex-direction: column; gap: 8px; }
.formation-picker.crowd-hidden { display: none; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { border: 1px solid #CBD5E1; border-radius: 999px; padding: 10px 14px; background: var(--white); color: var(--ink-3); font-weight: 600; font-size: 14px; min-height: 44px; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700; }
.pill-more { border-style: dashed; color: var(--accent-dark); }
.pill-more[aria-expanded="true"] { background: var(--accent-soft); border-style: solid; border-color: var(--accent); color: var(--accent-dark); }
.pill-toggle { border-style: dashed; color: var(--ink-3); margin-left: auto; }
.pill-toggle[aria-pressed="true"],
.pill-toggle.on { background: var(--accent-soft); border-style: solid; border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.formation-extra { padding-top: 2px; }
.formation-extra[hidden] { display: none !important; }

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 68 / 105;
  min-height: 390px;
  max-height: min(560px, 68vh);
  height: auto;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, #16a34a 0%, var(--pitch) 45%, #166534 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.pitch.selecting { box-shadow: inset 0 0 0 2px rgba(147, 197, 253, .55); }
.pitch::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--pitch-line); border-radius: 6px; pointer-events: none; }
.pitch::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 2px solid var(--pitch-line); pointer-events: none; }
.pitch .circle { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 2px solid var(--pitch-line); border-radius: 50%; pointer-events: none; }
.pitch .box { position: absolute; left: 50%; bottom: 10px; width: 140px; height: 52px; margin-left: -70px; border: 2px solid var(--pitch-line); border-bottom: 0; pointer-events: none; }

/* Player marker — optional local preview portrait (.has-photo); number always visible */
.slot {
  position: absolute;
  width: 76px;
  margin-left: -38px;
  margin-top: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 1;
  cursor: pointer;
  transition: left .25s, top .25s, transform .15s;
}
.slot:focus-visible { outline: none; }
.slot .marker {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.28));
}
.slot .avatar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot .avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: none; /* API-Football photos not used; local placeholders only via .has-photo */
}
.slot.has-photo .avatar-photo { display: block; }
.slot .shirt {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  pointer-events: none;
}
.slot.has-photo .shirt {
  inset: auto;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--white);
  font-size: 9px;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.slot.gk .avatar { background: #FDE047; }
.slot.gk:not(.has-photo) .shirt { color: #111827; text-shadow: none; }
.slot.diff .avatar { background: var(--coach); }
.slot.diff:not(.has-photo) .shirt { color: #111827; text-shadow: none; }
.slot.selected { z-index: 3; transform: translateY(-2px); }
.slot.selected .marker {
  filter: drop-shadow(0 0 0 3px #93C5FD) drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.slot.selected .avatar { border-color: #BFDBFE; box-shadow: 0 0 0 3px rgba(59, 130, 246, .55); }
.slot .name {
  max-width: 78px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  background: rgba(5, 46, 22, .88);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  position: relative;
  z-index: 1;
}
/* Portrait mode: keep markers compact; stagger name chips so neighbors don't collide */
.pitch.show-portraits .slot .marker { width: 40px; height: 40px; }
.pitch.show-portraits .slot .name { max-width: 64px; font-size: 10px; }
.pitch.show-portraits .slot[data-slot="1"] .name,
.pitch.show-portraits .slot[data-slot="3"] .name,
.pitch.show-portraits .slot[data-slot="5"] .name,
.pitch.show-portraits .slot[data-slot="7"] .name,
.pitch.show-portraits .slot[data-slot="9"] .name {
  transform: translateY(8px);
}
.pitch.readonly .slot { cursor: default; }
.pitch.readonly .slot.selected { transform: none; }
.slot .pct-chip {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, .88);
  background: rgba(15, 23, 42, .45);
  padding: 1px 4px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  letter-spacing: .01em;
}
.pitch-empty {
  position: absolute;
  inset: 18% 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--white);
  background: rgba(5, 46, 22, .55);
  border: 1px dashed rgba(255,255,255,.45);
  border-radius: 14px;
  padding: 16px;
  z-index: 2;
}
.pitch-empty strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.pitch-empty span { font-size: 13px; font-weight: 500; opacity: .92; max-width: 28ch; }
.pitch.community-empty { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

.notice { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 500; }
.notice-warn { background: rgba(254, 243, 199, .7); color: #92400E; }
.notice-info { background: rgba(239, 246, 255, .75); color: #1E3A8A; }
.notice-muted { background: #F8FAFC; color: var(--muted); border: 1px solid var(--line); }
.notice .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coach); flex-shrink: 0; }
#lu-confirm { font-size: 12px; padding: 6px 10px; }
#lu-reload { min-height: 40px; font-size: 14px; font-weight: 600; }

.bench-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.eyebrow .hint { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--accent-dark); }
.beta-paok-banner {
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.notice-live-blocked {
  background: var(--coach-soft);
  color: var(--coach-text);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.bench {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.bench::-webkit-scrollbar { height: 4px; }
.bench::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; }
.bench-card {
  flex: 0 0 auto;
  width: 118px;
  scroll-snap-align: start;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.bench-card .marker {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.bench-card .avatar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1.5px solid #E2E8F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bench-card .avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: none;
}
.bench-card.has-photo .avatar-photo { display: block; }
.bench-card .shirt {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  pointer-events: none;
}
.bench-card.has-photo .shirt {
  inset: auto;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--white);
  font-size: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.bench-card .meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bench-card .pname {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bench-card .ppos {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bench.armed .bench-card {
  border-color: #93C5FD;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .12);
}
.bench.armed .bench-card:hover,
.bench.armed .bench-card:focus-visible {
  border-color: var(--accent);
  background: #DBEAFE;
}
.bench-card:disabled { opacity: .55; cursor: not-allowed; }

.live-score { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.live-score .team { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-align: center; }
.live-score .score { font-family: var(--font-display); font-size: 44px; font-weight: 800; }
.live-tag { font-size: 13px; font-weight: 700; color: var(--white); background: var(--live); padding: 5px 10px; border-radius: 6px; }

.heading-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.heading-row h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.countdown { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option { border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 10px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); text-align: left; }
.option.stack { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.option small { font-size: 12px; font-weight: 500; color: var(--muted); }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.rating { font-family: var(--font-display); font-weight: 800; font-size: 13px; padding: 3px 6px; border-radius: 5px; color: var(--white); }
.rating.low { background: #C2410C; }
.rating.mid { background: var(--muted); }
.rating.high { background: var(--good); }

.results { display: flex; flex-direction: column; gap: 12px; }
.result-row .top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.result-row.mine .top span:first-child { font-weight: 800; }
.result-row .pct { font-family: var(--font-display); font-weight: 800; }
.result-row .bar-lg > span { background: var(--accent); }

.verdict-hero { background: var(--ink); color: var(--white); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.verdict-hero .brand-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #94A3B8; }
.verdict-hero .brand-line strong { font-family: var(--font-display); font-size: 15px; color: var(--white); }
.verdict-hero h1 { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.15; margin: 0; }
.verdict-hero .meta { font-size: 13px; color: #CBD5E1; margin: 0; }
.demo-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #78350F;
  background: #FDE68A;
}
.demo-chip[hidden] { display: none !important; }
.compare-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, .35);
}
.compare-score[hidden] { display: none !important; }
.compare-pct .num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.compare-pct .label { font-size: 12px; color: #94A3B8; font-weight: 600; }
.compare-count { font-size: 14px; font-weight: 700; color: #E2E8F0; }
.compare-formations { display: flex; flex-direction: column; gap: 8px; }
.formation-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.formation-pair small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.formation-pair strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.formation-pair .right { text-align: right; }
.formation-pair .vs { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.formation-note { margin: 0; font-size: 13px; color: var(--muted); }
.compare-block { display: flex; flex-direction: column; gap: 8px; }
.compare-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compare-block-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.compare-diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.player-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.player-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.player-chips .shirt-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
  min-width: 1.25em;
}
.player-chips.empty { color: var(--muted); font-size: 13px; font-weight: 500; }
.decision .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.decision .top strong { font-size: 15px; }
.decision .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.decision .cols span:first-child { display: block; font-weight: 700; }
.decision .cols .c-crowd span:first-child { color: #1E40AF; }
.decision .cols .c-coach span:first-child { color: #92400E; }
.decision p { margin: 0; font-size: 13px; color: var(--muted); }
.stats-row { display: flex; justify-content: space-between; align-items: center; }
.stats-row .big { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.stats-row small { font-size: 13px; color: var(--muted); display: block; }
.up { color: var(--good); font-size: 15px; }
.footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
.toast.show { opacity: 1; }

@media (min-width: 901px) {
  body.has-app-nav .site-header .brand { display: none; }
}

/* Πώς παίζεται: οι 3 κάρτες γεμίζουν όλο το πλάτος */
#how .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Featured match: one compact full-width strip (avoid tall stretched single grid cell) */
#live-grid { grid-template-columns: 1fr; gap: 12px; }
#live.section { gap: 14px; }
#live .section-title {
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  gap: 12px;
}
#live .live-dot { width: 12px; height: 12px; }
.featured-match .demo-chip { align-self: flex-start; }

@media (max-width: 720px) {
  .header-actions .btn { display: none; }
  .points-pill { display: inline-flex; }
  .hero { padding: 20px 0 28px; }
  .hero p { font-size: 16px; }
  .scoreboard { max-width: none; }
  .section-title { font-size: 22px; }
  .match-score { font-size: 32px; }
  .compare-diff-grid { grid-template-columns: 1fr; }
  .verdict-hero h1 { font-size: 24px; }
  .compare-pct .num { font-size: 36px; }
  .sponsor-slot { padding: 16px; }
  .app-main { padding: 12px 14px 120px; gap: 12px; }
  .pitch { min-height: 360px; max-height: min(520px, 62vh); }
  .slot { width: 64px; margin-left: -32px; gap: 3px; }
  .slot .marker { width: 38px; height: 38px; }
  .slot .shirt { font-size: 13px; }
  .slot.has-photo .shirt { width: 15px; height: 15px; font-size: 8px; right: -3px; bottom: -3px; }
  .slot .name { max-width: 60px; font-size: 10px; padding: 2px 4px; }
  .pitch.show-portraits .slot { width: 56px; margin-left: -28px; }
  .pitch.show-portraits .slot .marker { width: 34px; height: 34px; }
  .pitch.show-portraits .slot .name { max-width: 52px; font-size: 9px; padding: 1px 4px; }
  .pitch.show-portraits .slot[data-slot="1"] .name,
  .pitch.show-portraits .slot[data-slot="3"] .name,
  .pitch.show-portraits .slot[data-slot="5"] .name,
  .pitch.show-portraits .slot[data-slot="7"] .name,
  .pitch.show-portraits .slot[data-slot="9"] .name {
    transform: translateY(10px);
  }
  .pill-toggle { margin-left: 0; width: 100%; }
  .bench-card { width: 108px; padding: 7px; min-height: 58px; }
  .featured-match-actions { flex: 1 1 100%; }
  .featured-match-actions .btn-cta { width: 100%; }
  .match-teams-compact { justify-content: space-between; width: 100%; }
  .match-teams-compact .match-team { font-size: 16px; }
  .match-head { font-size: 13px; gap: 6px; flex-wrap: wrap; }
  #live .section-title { font-size: 26px; }
  .home-ticket { grid-template-columns: 1fr; }
  .home-ticket-pane + .home-ticket-pane {
    border-left: 0;
    border-top: 1px dashed #CBD5E1;
  }
  .home-ticket-pane + .home-ticket-pane::before,
  .home-ticket-pane + .home-ticket-pane::after {
    top: -7px;
    bottom: auto;
    left: auto;
  }
  .home-ticket-pane + .home-ticket-pane::before { left: -7px; }
  .home-ticket-pane + .home-ticket-pane::after { right: -7px; left: auto; }
  .list-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .list-row .time { width: auto; font-size: 16px; }
  .list-row .teams { flex: 1 1 auto; font-size: 14px; }
  .list-row .soon-label { margin-left: 0; font-size: 12px; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .featured-match-actions { flex: 0 1 260px; }
}
