:root {
  --ink: #081510;
  --forest: #0c3d2e;
  --pitch: #0e6b3c;
  --sea: #0a3d5c;
  --paper: #f3f6f4;
  --card: #ffffff;
  --text: #14241c;
  --muted: #5d6f66;
  --line: #e1e8e3;
  --gold: #c6a15b;
  --live: #d3122a;
  --shadow: 0 16px 40px rgba(8, 21, 16, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; line-height: 1.05; font-weight: 700; margin: 0; }
p { margin: 0 0 .7rem; }
a { color: var(--sea); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #b7ebc9; color: var(--ink); }
:focus-visible { outline: 2px solid var(--pitch); outline-offset: 2px; }

.sr, .hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 80; border-radius: 10px;
}
.skip:focus { top: 8px; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.page { padding: 28px 0 64px; }
.kicker { font-family: Outfit, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--pitch); text-decoration: none; }
.kicker.light, .meta-line.light { color: #d9fbe8; }
.fine-print { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }

.topbar { background: var(--forest); color: rgba(255,255,255,.86); font-size: .8rem; }
.topbar-inner, .header-inner, .ticker-inner, .section-head, .footer-bottom, .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { min-height: 36px; }
.top-links, .socials { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(8,21,16,.06); }
.accent-line { height: 3px; background: linear-gradient(90deg, var(--pitch) 0 50%, var(--sea) 50% 100%); }
.header-inner { min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand strong { display: block; font-size: 1.9rem; letter-spacing: .01em; color: var(--ink); }
.brand strong span { color: var(--pitch); }
.brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; margin-top: 1px; }
.mark { width: 42px; height: 42px; flex: none; }
.primary-nav { display: flex; gap: 2px; margin-left: auto; }
.primary-nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .94rem; padding: 8px 10px; border-radius: 999px; }
.primary-nav a.is-active, .primary-nav a:hover { background: #e7f6ee; color: var(--forest); }
.header-tools { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 12px 0 16px; }
.search-form { display: flex; gap: 8px; }
.search-form input, .form input, .form select, .form textarea, .admin-content input, .admin-content select, .admin-content textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #d5ddd8; background: #fff;
}
.search-form input { flex: 1; }
.ticker { background: var(--ink); color: #fff; }
.ticker-inner { min-height: 42px; }
.ticker-label { flex: none; color: #b6f2cb; font-size: .72rem; letter-spacing: .08em; text-transform: none; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: tick 48s linear infinite; }
.ticker-track a { color: rgba(255,255,255,.88); text-decoration: none; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.demo-banner { background: #f6f1e4; color: #5c4a22; font-size: .84rem; border-bottom: 1px solid #e7dcc3; }
.demo-banner .container { padding: 8px 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .86fr); gap: 18px; padding: 22px 0 8px; }
.feature { position: relative; min-height: 520px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.feature > a { color: #fff; text-decoration: none; display: block; min-height: 520px; position: relative; }
.visual {
  position: relative; aspect-ratio: 16/10; overflow: hidden; background-color: var(--tone, var(--pitch));
  background-image: radial-gradient(120px 90px at 90% 12%, rgba(255,255,255,.24), transparent 62%), linear-gradient(155deg, var(--tone, var(--pitch)), #07140f 78%);
}
.visual img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.visual::after {
  content: ""; position: absolute; right: -28px; top: -36px; width: 140px; height: 140px;
  border: 14px solid rgba(255,255,255,.14); border-radius: 50%; z-index: 0;
}
.visual-hero { position: absolute; inset: 0; aspect-ratio: auto; }
.visual-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(8,21,16,.05) 15%, rgba(8,21,16,.88));
}
.feature-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px; }
.feature-copy h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin: 8px 0 10px; max-width: 22ch; }
.feature-copy p { max-width: 58ch; color: rgba(255,255,255,.86); font-size: 1.02rem; }
.meta-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.agenda, .panel, .news-card, .team-card, .player-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.agenda { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.section-head { margin-bottom: 14px; }
.section-head.tight { margin-bottom: 8px; }
.section-head h2 { font-size: 1.7rem; }
.section-head a, .text-link { color: var(--pitch); font-weight: 700; text-decoration: none; font-size: .92rem; }
.section-head.light h2, .section-head.light a { color: #fff; }
.agenda-match { display: block; text-decoration: none; color: inherit; background: #f4faf6; border-radius: 16px; padding: 14px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 8px 0; }
.versus strong { font-size: .95rem; }
.versus em, .score-line em, .mid { font-family: "Barlow Condensed", sans-serif; font-style: normal; font-size: 1.6rem; font-weight: 700; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda-list a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; text-decoration: none; color: inherit; align-items: start; }
.agenda-list span { color: var(--pitch); font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; }
.agenda-match small, .score-card small { color: var(--muted); }

.scoreband { background: radial-gradient(600px 180px at 8% 0%, rgba(31,168,90,.28), transparent 70%), radial-gradient(500px 180px at 100% 100%, rgba(20,119,168,.28), transparent 70%), var(--ink); color: #fff; padding: 26px 0 30px; margin-top: 22px; }
.score-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.score-card { flex: 0 0 280px; scroll-snap-align: start; text-decoration: none; color: inherit; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.score-card small { color: rgba(255,255,255,.68); }
.score-card.status-live { border-color: rgba(211,18,42,.7); }
.score-top, .score-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.score-line { display: grid; grid-template-columns: 1fr auto 1fr; }
.score-line strong:last-child { text-align: right; }
.score-line em { color: #fff; }
.st { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 700; background: #e7eef2; color: var(--sea); }
.st-live, .pill-live { background: var(--live); color: #fff; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 700; }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.st-finished { background: #eef2ef; color: #526158; }
.st-postponed { background: #f8f1de; color: #7a5b12; }
@keyframes pulse { 50% { opacity: .35; } }

.section { padding: 42px 0; }
.band { background: #fff; border-block: 1px solid var(--line); }
.home-grid, .split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.home-news, .card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.sidebar { display: grid; gap: 16px; position: sticky; top: 92px; }
.news-card { overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover, .team-card:hover, .player-card:hover, .branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-body { padding: 14px 14px 16px; }
.news-card h3, .shot strong, .team-card strong, .player-card strong { font-size: 1.35rem; margin: 6px 0; }
.news-card p { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.panel { padding: 16px; }
.panel.flush { padding: 16px 16px 8px; }
.panel h2 { font-size: 1.45rem; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 6px; border-bottom: 1px solid #f0f3f1; }
.table .num, .table th.num { text-align: center; font-variant-numeric: tabular-nums; }
.table .points { font-weight: 800; }
.table a { color: inherit; text-decoration: none; font-weight: 650; }
.table tr.is-hot { background: linear-gradient(90deg, rgba(14,107,60,.14), transparent 75%); }
.table tr.is-hot td:first-child { box-shadow: inset 3px 0 0 var(--pitch); }
.team-cell { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--pitch)); flex: none; }
.is-compact { font-size: .92rem; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.branch-card {
  min-height: 148px; border-radius: 20px; padding: 16px; color: #fff; text-decoration: none;
  background: radial-gradient(90px 70px at 100% 0%, rgba(255,255,255,.2), transparent 60%), linear-gradient(160deg, var(--tone), #07140f);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; position: relative; overflow: hidden;
}
.branch-card.wide { grid-column: span 2; grid-row: span 2; min-height: 280px; }
.branch-card .ico { width: 34px; height: 34px; margin-bottom: auto; }
.branch-card strong { font-size: 1.7rem; }
.branch-card span { color: rgba(255,255,255,.82); font-size: .9rem; }
.team-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.team-rail.full { grid-template-columns: repeat(4, 1fr); }
.team-card { padding: 16px; text-decoration: none; color: inherit; display: grid; gap: 8px; justify-items: start; }
.team-card small, .player-card small { color: var(--muted); }
.crest { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--tone, var(--pitch)); color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; overflow: hidden; }
.crest img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid { columns: 3; gap: 12px; }
.shot { break-inside: avoid; margin: 0 0 12px; min-height: 230px; border-radius: 18px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.62)), linear-gradient(145deg, var(--tone), #081510); display: flex; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: relative; z-index: 1; margin-top: auto; padding: 16px; }
.shot span { display: block; color: rgba(255,255,255,.8); font-size: .88rem; }
.cta { background: linear-gradient(90deg, var(--forest), var(--sea)); color: #fff; }
.cta-inner { padding: 28px 0; }
.cta p { color: rgba(255,255,255,.82); margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pitch); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.footer { background: var(--ink); color: rgba(255,255,255,.82); padding-top: 42px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 28px; }
.footer h2 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-grid a { display: block; margin: 6px 0; }
.brand-light strong { color: #fff; }
.brand-light small { color: rgba(255,255,255,.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; min-height: 58px; font-size: .85rem; }
.socials a { display: inline; margin: 0; }

.page-head { margin-bottom: 18px; max-width: 70ch; }
.page-head h1, .article-title, .miss h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 6px 0 8px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pills a, .pager a, .pager span { text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: .88rem; }
.pills a.is-on, .pager .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pager a, .pager span { min-width: 40px; text-align: center; border-radius: 12px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.crumbs a { color: inherit; }
.article { max-width: 760px; }
.lead { font-size: 1.18rem; color: #24362c; }
.byline { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin: 10px 0 16px; }
.visual-article { border-radius: 22px; margin-bottom: 18px; min-height: 240px; }
.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-body p { margin: 0 0 1rem; }
.article-body h2, .article-body h3 { margin: 1.4rem 0 .5rem; font-size: 2rem; }
.article-body blockquote { margin: 1rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--pitch); color: var(--sea); font-weight: 650; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.related, .fixture-group, .page section { margin-top: 28px; }
.fixture-list { display: grid; }
.fixture { display: grid; grid-template-columns: 110px 1fr auto 1fr minmax(120px, 180px); gap: 10px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.fixture .home { text-align: right; }
.fixture .mid { text-align: center; min-width: 72px; }
.fixture .venue, .when { color: var(--muted); font-size: .82rem; }
.when { display: grid; gap: 4px; }
.match-hero { padding: 22px; }
.big-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 16px 0; }
.big-score > div { display: grid; justify-items: center; gap: 8px; text-align: center; }
.big-score .mid em { font-size: clamp(2.4rem, 6vw, 4rem); display: block; }
.meta-inline { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 12px 0 0; }
.meta-inline li { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 10px; }
.meta-inline.dark li { background: #fff; border: 1px solid var(--line); }
.team-hero, .branch-hero { color: #fff; background: linear-gradient(120deg, var(--tone), #081510 72%); }
.team-hero { padding: 34px 0; }
.team-hero-inner, .branch-hero, .player-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.branch-hero { border-radius: 24px; padding: 22px; margin-bottom: 18px; }
.branch-hero .ico { width: 54px; height: 54px; }
.team-hero .crest { width: 84px; height: 84px; font-size: 2rem; background: rgba(255,255,255,.14); }
.team-hero h1, .branch-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 4px 0; }
.team-hero p { color: rgba(255,255,255,.84); max-width: 62ch; }
.mini-matches { display: grid; gap: 8px; }
.mini-matches a { display: grid; text-decoration: none; color: inherit; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mini-matches span { color: var(--muted); font-size: .78rem; }
.player-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.player-card { overflow: hidden; text-decoration: none; color: inherit; }
.jersey { font-family: "Barlow Condensed", sans-serif; font-size: 4rem; color: rgba(255,255,255,.88); line-height: 1; padding: 18px; display: block; }
.player-hero { align-items: start; margin-top: 8px; }
.visual-player { border-radius: 24px; min-height: 280px; }
.prose { font-size: 1.05rem; line-height: 1.7; }
.form { display: grid; gap: 14px; }
.form-grid, .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 650; font-size: .92rem; }
textarea { min-height: 140px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; background: #e9f8ef; color: var(--forest); margin-bottom: 12px; }
.alert-error { background: #fdecec; color: #8f1d1d; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 18px; padding: 22px; }
.empty p { color: var(--muted); margin: 6px 0 0; }
.kunye { display: grid; gap: 10px; margin: 0; }
.kunye div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.kunye dt { color: var(--muted); }
.kunye dd { margin: 0; }
.miss { min-height: 46vh; }
.miss-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); margin: 0; }
  .site-header.is-open .primary-nav { display: flex; }
  .primary-nav a { padding: 12px 8px; }
  .hero, .home-grid, .split, .footer-grid, .player-hero { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .bento, .team-rail, .team-rail.full, .player-grid { grid-template-columns: 1fr 1fr; }
  .branch-card.wide { grid-column: span 2; grid-row: auto; min-height: 180px; }
  .card-grid, .home-news { grid-template-columns: 1fr 1fr; }
  .feature, .feature > a { min-height: 440px; }
  .gallery-grid { columns: 2; }
}
@media (max-width: 680px) {
  .container { width: min(1180px, calc(100% - 22px)); }
  .top-links a:last-child, .brand small { display: none; }
  .card-grid, .home-news, .bento, .team-rail, .team-rail.full, .player-grid, .form-grid { grid-template-columns: 1fr; }
  .branch-card.wide { grid-column: auto; }
  .gallery-grid { columns: 1; }
  .fixture { grid-template-columns: 1fr auto 1fr; grid-template-areas: "when when when" "home mid away" "venue venue venue"; }
  .when { grid-area: when; grid-template-columns: auto auto; align-items: center; }
  .home { grid-area: home; }
  .mid { grid-area: mid; }
  .away { grid-area: away; }
  .venue { grid-area: venue; }
  .cta-inner, .footer-bottom, .big-score { display: grid; justify-items: start; }
  .big-score { justify-items: stretch; }
  .feature-copy { padding: 18px; }
  .feature, .feature > a { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; }
}
@media print {
  .topbar, .site-header, .ticker, .demo-banner, .footer, .share, .sidebar, .cta { display: none !important; }
  body { background: #fff; }
}
