/* ===== Hapoel Hadera FC — design system ===== */
:root {
  --red: #D7182A;
  --red-dark: #A81120;
  --red-deep: #7C0C17;
  --ink: #0E1116;
  --ink-2: #171C24;
  --ink-3: #222935;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --gray: #6B7280;
  --line: #E4E7EC;
  --gold: #E8B54A;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 17, 22, .10);
  --shadow-lg: 0 24px 60px rgba(14, 17, 22, .18);
  --font: "Rubik", system-ui, -apple-system, sans-serif;
  /* Display stack: Oswald (DIN-condensed feel) covers Latin & digits;
     Hebrew glyphs fall through to Secular One (BARLEV-like sports display).
     If the club licenses BARLEV / DIN Next Condensed webfonts, add @font-face
     rules named "BARLEV" / "DIN Next Condensed" and prepend them here. */
  --font-display: "Oswald", "Secular One", "Rubik", sans-serif;
}

h1, h2, h3, .section-title, .pos-title, .page-head h1, .article-title,
.hero h1, .brand-text strong, .match-teams, .join-inner h2, .footer-brand .fb-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .2px;
}
html[lang="he"] .hero h1, html[lang="he"] .page-head h1 { line-height: 1.2; }
html[lang="ar"] body { font-family: "Cairo", "Rubik", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: -999px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
.section-title {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.5px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.section-title::before { content: ""; width: 10px; height: 34px; background: var(--red); border-radius: 3px; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--ink); color: #cfd5de; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a { opacity: .85; display: flex; }
.topbar-social a:hover { opacity: 1; color: var(--white); }
.social-icon img { width: 22px; height: 22px; border-radius: 5px; display: block; }
.social-icon:hover img { transform: scale(1.12); transition: transform .15s; }
.footer-social { display: flex; gap: 12px; }
.footer-social .social-icon img { width: 28px; height: 28px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { position: relative; }
.lang-btn {
  background: transparent; border: 1px solid #3a4250; color: #e6e9ee; border-radius: 8px;
  padding: 3px 10px; font-size: 12.5px; display: flex; align-items: center; gap: 6px;
}
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: var(--white); color: var(--ink);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: none; min-width: 140px; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: start; background: none; border: 0; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.lang-menu button:hover { background: var(--paper); }
.lang-menu button.active { color: var(--red); font-weight: 700; }

.auth-area { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  background: transparent; color: #e6e9ee; border: 0; font-size: 13px; padding: 4px 8px; border-radius: 8px;
}
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.08); }
.btn-join {
  background: var(--red); color: var(--white); border: 0; border-radius: 8px; padding: 5px 14px;
  font-size: 13px; font-weight: 700;
}
.btn-join:hover { background: var(--red-dark); }
.auth-hello { color: var(--white); font-weight: 600; font-size: 13px; }

.mainbar { background: var(--red); color: var(--white); box-shadow: 0 4px 24px rgba(124, 12, 23, .35); }
.mainbar-inner { display: flex; align-items: center; gap: 30px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); background: var(--white); border-radius: 50%; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: -.3px; }
.brand-text small { font-size: 11.5px; opacity: .85; }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  padding: 26px 16px; font-weight: 700; font-size: 15.5px; position: relative; opacity: .93;
}
.main-nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.main-nav a.active::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 14px; height: 4px; background: var(--white); border-radius: 3px 3px 0 0;
}
.nav-burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; margin-inline-start: auto; padding: 8px; }
.nav-burger span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; }

/* ===== hero ===== */
.hero {
  position: relative; min-height: min(72vh, 640px); display: flex; align-items: flex-end;
  background: var(--ink) center/cover no-repeat; color: var(--white); isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,12,16,.92) 0%, rgba(10,12,16,.35) 55%, rgba(10,12,16,.15) 100%);
}
.hero-inner { padding: 60px 0 54px; width: min(1200px, 100% - 40px); margin-inline: auto; }
.hero .tag {
  display: inline-block; background: var(--red); padding: 4px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: .4px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 4.6vw, 52px); font-weight: 900; max-width: 18em; text-wrap: balance; }
.hero p { max-width: 44em; font-size: clamp(15px, 1.6vw, 18px); opacity: .9; }
.hero .btn-primary { margin-top: 18px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white);
  border: 0; border-radius: 10px; padding: 12px 26px; font-size: 15.5px; font-weight: 800; transition: .15s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--red);
  border: 2px solid var(--red); border-radius: 10px; padding: 10px 22px; font-size: 15px; font-weight: 800;
}
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ===== next match strip ===== */
.match-strip { background: var(--ink); color: var(--white); padding: 34px 0; }
.match-strip-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.match-label { color: var(--red); font-weight: 900; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.match-teams { display: flex; align-items: center; gap: 18px; font-size: clamp(18px, 2.6vw, 26px); font-weight: 900; flex-wrap: wrap; }
.match-teams .crest { width: 46px; height: 46px; background: var(--white); border-radius: 50%; padding: 3px; }
.match-meta { color: #9aa3b0; font-size: 14px; margin-top: 6px; }
.countdown { display: flex; gap: 12px; }
.countdown .cell {
  background: var(--ink-3); border-radius: 12px; min-width: 74px; padding: 12px 8px; text-align: center;
}
.countdown .num { font-size: 30px; font-weight: 900; font-family: var(--font-display); color: var(--white); }
.countdown .lbl { font-size: 11.5px; color: #9aa3b0; margin-top: 2px; }
.tbd-badge {
  background: var(--ink-3); border: 1px dashed #3a4250; color: #cfd5de; padding: 14px 22px;
  border-radius: 12px; font-weight: 700; font-size: 15px;
}

/* ===== sections / cards ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-grid .lead-card { grid-column: span 2; grid-row: span 2; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.lead-card .thumb { aspect-ratio: auto; height: 100%; min-height: 320px; }
.lead-card { color: var(--white); }
.lead-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,16,.9), rgba(10,12,16,.05) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat {
  display: inline-block; width: fit-content; background: var(--red); color: var(--white);
  font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 6px; letter-spacing: .3px;
}
.card h3 { font-size: 18.5px; font-weight: 800; margin: 4px 0 0; }
.lead-card h3 { font-size: clamp(20px, 2.4vw, 28px); }
.card .excerpt { color: var(--gray); font-size: 14.5px; margin: 0; }
.lead-card .excerpt { color: #d5dae2; }
.card .date { color: var(--gray); font-size: 12.5px; margin-top: auto; }
.lead-card .date { color: #aab2be; }

/* ===== honours ===== */
.honours { background: linear-gradient(135deg, var(--red-deep), var(--red) 70%); color: var(--white); }
.honours .section-title::before { background: var(--white); }
.honours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.honour {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; backdrop-filter: blur(4px);
}
.honour .count { font-size: 46px; font-weight: 900; font-family: var(--font-display); line-height: 1; }
.honour .lbl { font-size: 14px; font-weight: 700; margin-top: 8px; }
.honour .yrs { font-size: 11.5px; opacity: .75; margin-top: 6px; }

/* ===== results ===== */
.results-list { display: grid; gap: 12px; }
.result-row {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 20px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.result-row .score {
  font-family: var(--font-display); font-weight: 900; font-size: 22px; background: var(--ink); color: var(--white);
  border-radius: 8px; padding: 4px 14px; white-space: nowrap;
}
.result-row .score.win { background: #157347; }
.result-row .score.loss { background: var(--red-dark); }
.result-row .who { font-weight: 700; font-size: 15.5px; }
.result-row .sub { color: var(--gray); font-size: 12.5px; }

/* ===== join band ===== */
.join-band { background: var(--ink) url() center/cover; color: var(--white); position: relative; isolation: isolate; overflow: hidden; }
.join-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1200px 500px at 80% 20%, rgba(215, 24, 42, .35), transparent 60%), var(--ink);
}
.join-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 70px 0; }
.join-inner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.join-inner p { color: #c3cad4; font-size: 16.5px; max-width: 36em; }
.join-art { text-align: center; }
.join-art img { width: min(280px, 70%); margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(215,24,42,.4)); }

/* ===== partners ===== */
.partners { padding: 44px 0; background: var(--white); border-top: 1px solid var(--line); }
.partners-row { display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; justify-content: center; }
.partner { text-align: center; color: var(--gray); display: flex; flex-direction: column; align-items: center; }
.partner .p-logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; flex: none; }
.partner .p-name { font-weight: 800; color: var(--ink); font-size: 17px; }
.partner .p-note { font-size: 12px; }
.footer-partner { display: flex !important; align-items: center; gap: 8px; }
.footer-partner img { width: 22px; height: 22px; object-fit: contain; background: var(--white); border-radius: 5px; padding: 1px; }

/* ===== match centre ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 22px;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.tabs button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fixture-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px;
}
.notice {
  background: #FFF7E6; border: 1px solid #F1DFB6; color: #7A5B12; border-radius: 12px;
  padding: 14px 18px; font-size: 14.5px; margin-bottom: 22px;
}
.season-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.stat-box { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 18px; text-align: center; }
.stat-box .v { font-size: 30px; font-weight: 900; font-family: var(--font-display); color: var(--red); }
.stat-box .k { font-size: 12.5px; color: var(--gray); margin-top: 4px; }

/* ===== squad ===== */
.pos-group { margin-bottom: 40px; }
.pos-title { font-size: 20px; font-weight: 900; color: var(--red); border-bottom: 3px solid var(--red); display: inline-block; padding-bottom: 4px; margin-bottom: 20px; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.player-card {
  background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--white); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); transition: transform .18s;
}
.player-card:hover { transform: translateY(-4px); }
.player-card::before {
  content: ""; position: absolute; inset-inline-end: -30px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(closest-side, rgba(215,24,42,.5), transparent); border-radius: 50%;
}
.player-card .num {
  position: absolute; top: 8px; inset-inline-end: 16px; font-family: var(--font-display);
  font-size: 64px; font-weight: 900; color: rgba(255,255,255,.16); line-height: 1;
}
.player-card .p-name { font-weight: 800; font-size: 18px; position: relative; }
.player-card .p-sub { font-size: 12.5px; color: #9aa3b0; position: relative; }
.player-card .p-badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--gold); color: var(--ink); font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.squad-picker { position: relative; margin: 10px 0 32px; }
.picker-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--white); border: 2px solid var(--red); border-radius: 12px; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 800;
  padding: 12px 20px; min-width: min(340px, 100%); cursor: pointer; box-shadow: var(--shadow);
}
.picker-btn .chev { color: var(--red); font-size: 13px; transition: transform .15s; }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.picker-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 40;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 6px;
  min-width: min(340px, 100%); max-height: min(46vh, 380px); overflow-y: auto;
}
.picker-menu button {
  display: block; width: 100%; text-align: start; background: none; border: 0;
  padding: 11px 16px; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.picker-menu button:hover { background: var(--paper); }
.picker-menu button.active { color: var(--red); background: #FFF1F2; }
.player-card.youth-card { min-height: 96px; }
.player-card.youth-card .p-name { font-size: 16.5px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow);
}
.team-league { color: var(--gray); font-size: 13px; margin: -12px 0 14px; }
.sync-note { color: var(--gray); font-size: 13px; margin-top: 30px; }

/* ===== club page ===== */
.club-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.club-hero img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.fact { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; }
.fact .k { color: var(--gray); font-size: 12px; }
.fact .v { font-weight: 800; font-size: 15.5px; }
.timeline { position: relative; margin-top: 30px; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 3px; background: var(--red); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; inset-inline-start: -24px; top: 6px; width: 13px; height: 13px;
  background: var(--white); border: 3.5px solid var(--red); border-radius: 50%;
}
.tl-item .y { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--red); }
.tl-item .tx { font-size: 15.5px; max-width: 46em; }

/* ===== article page ===== */
.article-hero { max-width: 780px; max-height: 440px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-inline: auto; }
.article-hero img { width: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin-inline: auto; font-size: 17.5px; }
.article-body p { margin: 0 0 1.2em; }
.article-title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; max-width: 850px; margin-inline: auto; }
.article-meta { color: var(--gray); font-size: 14px; margin-bottom: 26px; }

/* ===== forms / modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 12, 16, .6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: var(--white); border-radius: 18px; width: min(440px, 100%); box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px; position: relative; max-height: 92vh; overflow: auto;
}
.modal .close { position: absolute; top: 12px; inset-inline-end: 14px; background: none; border: 0; font-size: 22px; color: var(--gray); }
.modal h2 { font-size: 24px; font-weight: 900; }
.modal .sub { color: var(--gray); font-size: 14px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px;
  font-family: inherit; background: var(--paper); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--red); }
.form-err { color: var(--red-dark); font-size: 13.5px; font-weight: 700; min-height: 18px; margin-bottom: 6px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-wrap .eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--gray); padding: 4px; display: flex; cursor: pointer;
}
.pw-wrap .eye:hover { color: var(--ink); }
.pw-wrap .eye.eye-off { color: var(--red); }
.pw-wrap .eye.eye-off svg { opacity: .75; }
.switch-mode { text-align: center; margin-top: 14px; font-size: 14px; }
.switch-mode button { background: none; border: 0; color: var(--red); font-weight: 800; font-size: 14px; }
.w100 { width: 100%; justify-content: center; }

/* ===== toast ===== */
.toast {
  position: fixed; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: 12px 24px; border-radius: 12px; font-weight: 700;
  box-shadow: var(--shadow-lg); z-index: 200; font-size: 14.5px;
}
html[dir="rtl"] .toast { transform: translateX(50%); }

/* ===== footer ===== */
.site-footer { background: var(--ink); color: #aab2be; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 40px; }
.footer-grid h4 { color: var(--white); font-size: 15px; margin: 0 0 14px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 62px; background: var(--white); border-radius: 50%; padding: 3px; }
.footer-brand .fb-name { color: var(--white); font-weight: 900; font-size: clamp(12.5px, 1.15vw, 16px); white-space: nowrap; }
.footer-brand .fb-sub { font-size: 13px; }
.footer-legal { border-top: 1px solid #232a35; padding: 18px 0; font-size: 12.5px; }
.footer-legal-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== admin ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.admin-nav { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; position: sticky; top: 130px; }
.admin-nav button {
  display: block; width: 100%; text-align: start; background: none; border: 0; padding: 11px 14px;
  border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.admin-nav button.active { background: var(--red); color: var(--white); }
.admin-nav button:hover:not(.active) { background: var(--paper); }
.admin-panel { min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.chart-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px; }
.chart-wrap h3 { font-size: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 8px; }
.bar-col .bar-r { background: var(--red); border-radius: 3px 3px 0 0; }
.bar-col .bar-l { background: #3a4250; border-radius: 3px 3px 0 0; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--gray); margin-top: 10px; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; }
.bar-chart.labeled { height: auto; align-items: flex-end; }
.bar-chart.labeled .bar-col { justify-content: flex-end; gap: 0; min-width: 10px; }
.bar-chart.labeled .bar-stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 122px; }
.bar-num { font-size: 10px; color: var(--gray); text-align: center; line-height: 1.2; min-height: 13px; }
.bar-day { font-size: 9.5px; color: var(--gray); text-align: center; white-space: nowrap; min-height: 13px; margin-top: 3px; }
.chart-sub { font-size: 13.5px; color: var(--ink); margin: 2px 0 10px; }
.user-search { flex: 1; min-width: 220px; max-width: 420px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: var(--white); }
.user-search:focus { outline: none; border-color: var(--red); }
table.users-compact { min-width: 0; font-size: 12.5px; }
.users-compact th { padding: 8px 6px; font-size: 11px; white-space: nowrap; }
.users-compact td { padding: 7px 6px; white-space: nowrap; }
.users-compact td:nth-child(3) { max-width: 165px; overflow: hidden; text-overflow: ellipsis; }
.users-compact .icon-btn { padding: 3px 7px; font-size: 13px; line-height: 1; }
.sync-spin { display: inline-block; width: 14px; height: 14px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: syncspin .8s linear infinite; vertical-align: -2px; margin-inline-end: 6px; }
@keyframes syncspin { to { transform: rotate(360deg); } }
button:disabled { opacity: .75; cursor: default; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.users-compact .btn-small { padding: 3px 8px; font-size: 11px; }
.users-compact .role-pill { font-size: 10.5px; padding: 2px 8px; }
.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.admin-table th { text-align: start; background: var(--paper); padding: 12px 16px; font-size: 12.5px; color: var(--gray); }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
table.standings { min-width: 520px; }
table.standings td, table.standings th { text-align: center; }
table.standings td:nth-child(2), table.standings th:nth-child(2) { text-align: start; }
.us-row { background: #FFF1F2; }
.us-row td:nth-child(2) { color: var(--red); font-weight: 800; }
.us-row td:first-child { font-weight: 800; }
.role-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.role-owner { background: var(--gold); color: var(--ink); }
.role-admin { background: var(--red); color: var(--white); }
.role-fan { background: var(--paper); color: var(--gray); }
.btn-small { background: var(--ink); color: var(--white); border: 0; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
.btn-small.danger { background: var(--red-dark); }
.btn-small.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.editor-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.lang-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.lang-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.lang-tabs button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.media-item { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.media-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-item .m-actions { padding: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.key-image-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.key-image-row img { width: 130px; border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.drop-hint { font-size: 12.5px; color: var(--gray); }

/* page header band */
.page-head { background: linear-gradient(120deg, var(--ink), var(--ink-3)); color: var(--white); padding: 46px 0 40px; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin: 0; }
.page-head .crumb { color: #9aa3b0; font-size: 13.5px; margin-bottom: 6px; }

/* ===== responsive ===== */
@media (max-width: 1020px) {
  .news-grid .lead-card { grid-column: span 2; grid-row: auto; }
  .join-inner { grid-template-columns: 1fr; text-align: center; }
  .join-inner p { margin-inline: auto; }
  .club-hero { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; width: auto; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--red-dark);
    flex-direction: column; padding: 8px 0; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 24px; }
  .main-nav a.active::after { display: none; }
  .nav-burger { display: flex; }
  .match-strip-inner { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .lead-card { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .countdown .cell { min-width: 60px; }
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  /* top bars */
  .topbar-inner { min-height: 34px; gap: 8px; }
  .topbar-actions { gap: 8px; }
  .topbar-social { gap: 8px; }
  .social-icon img { width: 19px; height: 19px; }
  .auth-area .btn-ghost { padding: 3px 5px; font-size: 12px; }
  .btn-join { padding: 4px 10px; font-size: 12px; }
  .lang-btn { padding: 3px 7px; font-size: 11.5px; }
  .mainbar-inner { min-height: 60px; gap: 12px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { display: none; }

  /* sections & hero */
  .section { padding: 42px 0; }
  .section-title { margin-bottom: 18px; }
  .hero { min-height: 62vh; }
  .hero-inner { padding: 38px 0 34px; }
  .page-head { padding: 32px 0 28px; margin-bottom: 26px; }

  /* match strip & cards */
  .match-strip { padding: 26px 0; }
  .countdown { justify-content: flex-start; flex-wrap: wrap; }
  .countdown .cell { min-width: 62px; padding: 9px 6px; }
  .countdown .num { font-size: 24px; }
  .fixture-card { grid-template-columns: 1fr; padding: 18px; }
  .fixture-card .tbd-badge { justify-self: start; }
  .result-row { padding: 12px 14px; gap: 12px; }
  .result-row .score { font-size: 18px; padding: 3px 10px; }
  .result-row .who { font-size: 14px; }

  /* squad & partners */
  .players-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .player-card { min-height: 120px; padding: 14px; }
  .player-card .num { font-size: 44px; }
  .player-card .p-name { font-size: 15.5px; }
  .chip { padding: 7px 13px; font-size: 13px; }
  .partners-row { gap: 22px; }
  .partner .p-logo { width: 52px; height: 52px; }
  .partner .p-name { font-size: 14.5px; }

  /* join band & footer */
  .join-inner { padding: 46px 0; gap: 24px; }
  .join-art img { width: min(180px, 55%); }
  .footer-grid { gap: 22px; padding: 36px 0 26px; }
  .footer-brand { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand .fb-name { white-space: normal; font-size: 15px; }
  .footer-legal-inner { justify-content: center; text-align: center; }

  /* tables & admin */
  table.standings { min-width: 460px; font-size: 13px; }
  .admin-table th, .admin-table td { padding: 9px 10px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .editor-card { padding: 16px; }

  /* article */
  .article-body { font-size: 16px; }
}
