:root {
  --bg: #f2f4f7; --card: #fff; --ink: #0f1b2a; --muted: #5d6b7c; --line: #e2e7ee;
  --navy: #0b1f33; --navy2: #12304d; --green: #1fb865; --green-ink: #0b7a41; --yellow: #f5c400;
  --radius: 14px; --shadow: 0 1px 2px rgba(10,30,50,.06), 0 6px 18px rgba(10,30,50,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a121c; --card: #111c29; --ink: #e8eef5; --muted: #93a3b5; --line: #1e2c3c;
          --green-ink: #3fdc8a; --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, .brand { font-family: "Roboto Condensed", "Noto Sans", sans-serif; letter-spacing: -.01em; }

/* header */
.top { background: linear-gradient(180deg, var(--navy), var(--navy2)); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.brand b { color: var(--green); font-weight: 800; }
.links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.links a { padding: 7px 12px; border-radius: 999px; font-size: .92rem; color: #cfe0f0; white-space: nowrap; }
.links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.clubs { background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.06); }
.clubs-row { display: flex; gap: 6px; padding-top: 7px; padding-bottom: 7px; overflow-x: auto; scrollbar-width: none; }
.clubs-row a { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; transition: transform .15s; }
.clubs-row a:hover { transform: translateY(-2px) scale(1.06); }
.clubs-row img { width: 28px; height: 28px; object-fit: contain; }

main { padding-top: 22px; padding-bottom: 40px; min-height: 60vh; }

/* thumbnail = club colours + logo (no photos) */
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(255,255,255,.18) 17.4% 18.2%, transparent 18.6%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.18) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 10%, transparent 10% 20%),
    linear-gradient(135deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 55%, #000) 100%); }
.thumb::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 90%; border-radius: 50%;
  background: var(--c2); opacity: .22; filter: blur(2px); }
.thumb img { position: relative; z-index: 1; height: auto; width: 34%; max-width: 160px; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); background: rgba(255,255,255,.92); border-radius: 50%; padding: 5%; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,30,50,.12); }
.card > a { display: flex; flex-direction: column; height: 100%; }
.card-body { padding: 12px 14px 16px; }
.card h3 { margin: 6px 0 0; font-size: 1.12rem; line-height: 1.3; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.tag, .cat { display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-ink); font-weight: 600; }
a.tag:hover { background: var(--green); color: #fff; }
.cat { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

.lead-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.card.lead h3 { font-size: 1.7rem; }
.card.lead .thumb img { width: 26%; }
.side { display: grid; gap: 12px; }
.card.mini > a { flex-direction: row; }
.card.mini .thumb { width: 38%; flex: 0 0 38%; aspect-ratio: auto; min-height: 100px; }
.card.mini .thumb img { width: 64px; height: 64px; max-width: none; }
.card.mini h3 { font-size: 1rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 0; color: var(--muted); }
.pager a { background: var(--card); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--green); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.page-title { margin: 0 0 16px; }

/* team page */
.team-head { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); margin-bottom: 18px; color: #fff;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 50%, #000)); }
.team-head img { background: #fff; border-radius: 50%; padding: 8px; width: 84px; height: 84px; object-fit: contain; }
.team-head h1 { margin: 0; font-size: 2rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.team-head p { margin: 0; opacity: .9; }

/* article */
.story { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.thumb.hero { aspect-ratio: 21/8; }
.thumb.hero img { width: 20%; }
.story-title { padding: 22px 28px 0; }
.story-title h1 { font-size: 2.1rem; line-height: 1.15; margin: 10px 0 10px; }
.dek { font-size: 1.1rem; color: var(--muted); margin: 0 0 8px; }
.story-title time { color: var(--muted); font-size: .88rem; }
.story-body { padding: 8px 28px 26px; font-size: 1.08rem; }
.story-body p { margin: 0 0 1em; }
.source { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px !important; font-size: .9rem; color: var(--muted); }
.source a { color: var(--green-ink); font-weight: 600; }
.related { max-width: 860px; margin: 28px auto 0; }
.related .grid { grid-template-columns: repeat(2, 1fr); }
.prose { background: var(--card); border-radius: var(--radius); padding: 24px 28px; max-width: 800px; margin: 0 auto; border: 1px solid var(--line); }
.prose a { color: var(--green-ink); text-decoration: underline; }

.foot { background: var(--navy); color: #a9bccf; padding: 24px 0; font-size: .9rem; }
.foot a { color: #fff; }
.foot p { margin: 4px 0; }

@media (max-width: 900px) {
  .lead-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid, .related .grid { grid-template-columns: 1fr; gap: 14px; }
  .brand { font-size: 1.25rem; }
  .links a:not(:first-child):not(:nth-child(2)) { display: none; }
  .card.lead h3 { font-size: 1.35rem; }
  .story-title, .story-body { padding-left: 16px; padding-right: 16px; }
  .story-title h1 { font-size: 1.55rem; }
  .thumb.hero { aspect-ratio: 16/8; }
  .thumb.hero img { width: 28%; }
  .team-head h1 { font-size: 1.5rem; }
}

/* club colours (generated from app/config.php CLUBS) */
.club-apoel { --c1: #f5c400; --c2: #1d4fa0; }
.club-omonoia { --c1: #0f8a3c; --c2: #ffffff; }
.club-ael { --c1: #f5c400; --c2: #1d4fa0; }
.club-apollon { --c1: #1d4fa0; --c2: #ffffff; }
.club-aris { --c1: #101820; --c2: #20a050; }
.club-anorthosis { --c1: #1d4fa0; --c2: #ffffff; }
.club-aek { --c1: #f5c400; --c2: #0f8a3c; }
.club-pafos { --c1: #1d3f7a; --c2: #ffffff; }
.club-krasava { --c1: #101820; --c2: #e2231a; }
.club-olympiakos { --c1: #101820; --c2: #20a050; }
.club-omonia29m { --c1: #0f8a3c; --c2: #ffffff; }
.club-omonia-aradippou { --c1: #0f8a3c; --c2: #ffffff; }
.club-karmiotissa { --c1: #e2231a; --c2: #101820; }
.club-nea-salamis { --c1: #e2231a; --c2: #ffffff; }
.club-ethnikos { --c1: #e2231a; --c2: #ffffff; }
.club-enp { --c1: #1d4fa0; --c2: #ffffff; }
.club-akritas { --c1: #e2231a; --c2: #ffffff; }
.club-doxa { --c1: #e2231a; --c2: #101820; }
.club-ethniki { --c1: #d35400; --c2: #ffffff; }
.club-kop { --c1: #1d4fa0; --c2: #ffffff; }
