/* MFK Bytca - design system v2 (per MFK Website.dc design) */
:root {
  --navy: #0b1230;
  --navy-2: #0d1436;
  --card-navy: #111a44;
  --indigo: #4b5bd6;
  --indigo-deep: #26307f;
  --indigo-hover: #3646bd;
  --gold: #f1c33d;
  --gold-deep: #d4a41f;
  --text: #12173a;
  --text-muted: #5b6478;
  --line: #e4e8f0;
  --bg: #f4f5f8;
  --white: #fff;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Bitter", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.12; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.07); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; color: #fff !important; }
.brand-crest { height: 54px; width: auto; filter: drop-shadow(0 4px 14px rgba(38,48,127,.5)); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .05em; display: block; line-height: 1.1; color: #fff; }
.brand-sub { font-family: var(--font-head); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); display: block; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.main-nav > a, .main-nav .dropbtn {
  font-family: var(--font-head); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .11em;
  color: #cfd4e8; padding: 9px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.main-nav > a:hover, .main-nav .dropbtn:hover, .nav-dropdown:hover .dropbtn { color: #fff; background: rgba(255,255,255,.07); }
.main-nav > a.active, .nav-dropdown.active .dropbtn { color: #fff; background: rgba(255,255,255,.1); }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--navy-2); min-width: 190px; padding: 8px; border-radius: 12px; box-shadow: 0 16px 34px rgba(5,8,25,.5); border: 1px solid rgba(255,255,255,.08); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: #cfd4e8; font-family: var(--font-head); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav > a.nav-fanshop { background: var(--gold); color: var(--navy); font-weight: 600; padding: 9px 18px; margin-left: 6px; }
.main-nav > a.nav-fanshop:hover { background: #f6cf5a; }
.header-social { display: flex; gap: 4px; margin-left: 4px; }
.header-social a { color: #8891b8; padding: 8px; border-radius: 8px; display: flex; }
.header-social a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
@keyframes mfkRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; background: var(--navy); background-size: cover; background-position: center 30%; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,18,48,.94) 0%, rgba(11,18,48,.78) 42%, rgba(11,18,48,.35) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%; padding: 70px 32px 60px; color: #fff; }
.hero-content > * { max-width: 760px; }
.hero-content { animation: mfkRise .5s ease both; }
.hero-badge { display: inline-block; background: var(--gold); color: var(--navy); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: 14px; padding: 8px 16px; border-radius: 4px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; line-height: .98; letter-spacing: .01em; text-wrap: balance; margin-bottom: 18px; }
.hero p { font-size: 19px; line-height: 1.55; color: #d6dbec; max-width: 560px; margin-bottom: 30px; }
.btn { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; padding: 15px 32px; border-radius: 9px; transition: .15s; }
.btn-primary { background: var(--indigo); color: #fff !important; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff !important; margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Section scaffolding ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section-head h2 { display: flex; align-items: center; gap: 16px; font-size: 36px; font-weight: 700; color: var(--text); }
.section-head h2::before { content: ""; width: 6px; height: 34px; background: var(--indigo); border-radius: 2px; flex: none; }
.section-head .more { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; letter-spacing: .14em; font-size: 15px; white-space: nowrap; }

/* ---------- Next match band ---------- */
.match-band { background: var(--navy-2); padding: 56px 0; color: #fff; }
.match-band .label { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.match-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1100px; margin: 0 auto; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.match-team img { height: 88px; width: auto; }
.opp-crest { width: 78px; height: 88px; background: linear-gradient(160deg, #586074, #2c3040); border-radius: 14px 14px 20px 20px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.18); font-family: var(--font-head); font-size: 19px; font-weight: 700; color: #dfe3ee; }
.match-team .name { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.match-vs { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--indigo); letter-spacing: .1em; }
.match-meta { text-align: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 16px; color: #aeb6d6; }
.match-meta strong { color: #fff; font-weight: 600; }

/* ---------- Table section (dark card) ---------- */
.table-band { background: var(--navy); padding: 10px 0 70px; }
.table-card { max-width: 1100px; margin: 0 auto; background: var(--card-navy); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 30px 34px; }
.table-card .label { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.table-scroll { overflow-x: auto; }
.league-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.league-table th { text-align: center; padding: 10px 6px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8891b8; }
.league-table th.team, .league-table td.team { text-align: left; padding-left: 12px; padding-right: 12px; }
.league-table td { text-align: center; padding: 13px 6px; font-size: 14px; color: #aeb6d6; border-top: 1px solid rgba(255,255,255,.07); font-family: var(--font-body); }
.league-table td.team { font-size: 15px; color: #e8ebf6; font-weight: 500; }
.league-table td.pts { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff; }
.league-table .pos-chip { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; font-family: var(--font-head); font-weight: 700; font-size: 13px; background: rgba(255,255,255,.06); color: #aeb6d6; }
.league-table tr.bytca { background: rgba(75,91,214,.16); }
.league-table tr.bytca td.team { color: #cbd2ff; font-weight: 800; }
.league-table tr.bytca .pos-chip { background: var(--indigo); color: #fff; }
.table-empty { color: #aeb6d6; font-size: 16px; }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(115deg, #3742a8, #4b5bd6 55%, #5866e0); padding: 64px 0; color: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: 1; }
.stat .lbl { font-family: var(--font-head); font-weight: 500; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; color: #dfe3ff; margin-top: 8px; }
.stats-band .stat:nth-child(2) { border-left: 1px solid rgba(255,255,255,.22); border-right: 1px solid rgba(255,255,255,.22); }

/* ---------- News cards ---------- */
.news-band { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .18s, transform .18s; }
.news-card:hover { box-shadow: 0 14px 34px rgba(16,24,64,.12); transform: translateY(-3px); }
.news-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.news-card .thumb { aspect-ratio: 16/10; background: #e7ecf5 url('/assets/img/mfk_by_official_logo.png') center/56px auto no-repeat; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card .meta { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
.news-card h3 { font-size: 22px; font-weight: 600; line-height: 1.18; letter-spacing: .015em; color: var(--text); }
.news-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Vertical timeline ---------- */
.history-band { background: #fff; }
.timeline { position: relative; padding-left: 34px; max-width: 1000px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--indigo); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--indigo); }
.tl-item .year { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--indigo); letter-spacing: .04em; }
.tl-item .what { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); margin: 4px 0 6px; }
.tl-item p { font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 640px; }
.tl-item.final::before { left: -36px; top: 4px; width: 20px; height: 20px; background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tl-item.final .year { color: var(--gold-deep); }

/* ---------- Partners ---------- */
.partners-band { background: var(--bg); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.partners-grid .partner { background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px; filter: grayscale(1) opacity(.75); transition: filter .2s, box-shadow .2s; }
.partners-grid .partner:hover { filter: none; box-shadow: 0 8px 22px rgba(16,24,64,.09); }
.partners-grid img { max-height: 64px; max-width: 160px; width: auto; }
.partners-grid .partner-text { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); text-align: center; }

/* ---------- Roster ---------- */
.pos-group { margin-bottom: 44px; }
.pos-group h3 { font-size: 24px; color: var(--text); border-bottom: 3px solid var(--indigo); display: inline-block; padding-bottom: 5px; margin-bottom: 22px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.player-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: center; transition: box-shadow .18s, transform .18s; }
.player-card:hover { box-shadow: 0 10px 26px rgba(16,24,64,.1); transform: translateY(-2px); }
.player-photo { aspect-ratio: 4/5; background: linear-gradient(180deg, #e7ecf5, #fff); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-photo svg { width: 60%; height: auto; color: #c3cbe4; margin-bottom: -6px; }
.player-info { padding: 14px 12px 18px; position: relative; }
.player-num { position: absolute; top: -22px; right: 12px; font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--indigo); text-shadow: 0 1px 0 #fff; }
.player-name { font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.player-pos { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.player-meta { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 13px; color: var(--text-muted); margin-top: 7px; }
.player-meta img { height: 12px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* team crests in tables and match rows */
.team-crest { height: 22px; width: 22px; object-fit: contain; display: inline-block; vertical-align: -5px; margin-right: 9px; }
.match-row .team-crest { height: 24px; width: 24px; vertical-align: -6px; }

/* aligned match teams: home | crest | vs | crest | away */
.mm-row { display: grid; grid-template-columns: 1fr 26px 40px 26px 1fr; align-items: center; gap: 10px; }
.mm-home { text-align: right; }
.mm-away { text-align: left; }
.mm-home strong, .mm-away strong { color: var(--indigo); }
.mm-x { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.mm-crest { width: 26px; height: 26px; object-fit: contain; display: inline-block; }
.match-row { grid-template-columns: 170px 1fr 130px; }
.match-row .result, .match-row .result.upcoming { text-align: center; }
.match-row .result.upcoming strong { color: var(--text); font-family: var(--font-head); font-size: 17px; }
@media (max-width: 560px) {
  .mm-row { grid-template-columns: 1fr 22px 32px 22px 1fr; gap: 6px; }
  .match-row .teams { font-size: 17px; }
}

/* ---------- Article ---------- */
.article-hero { background: var(--navy); color: #fff; padding: 56px 0 42px; }
.article-hero .cat { color: var(--gold); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 52px); max-width: 980px; margin: 12px 0 14px; }
.article-hero .meta { color: #aeb6d6; font-size: 15px; }
.article-layout { max-width: 860px; margin: 0 auto; padding: 44px 32px 70px; }
.article-image { border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.article-body p { margin-bottom: 1.35em; font-size: 17px; }
.article-body strong { color: var(--text); }
.article-source { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; padding: 9px 18px; border-radius: 8px; color: #fff !important; }
.share-btn:hover { filter: brightness(1.1); }
.share-fb { background: #1877f2; }
.share-x { background: #14171c; }

/* ---------- Match list (sezona) ---------- */
.match-list { display: flex; flex-direction: column; gap: 14px; }
.match-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; display: grid; grid-template-columns: 170px 1fr auto; gap: 18px; align-items: center; }
.match-row .comp { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.match-row .teams { font-family: var(--font-head); font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.match-row .result { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--indigo); }
.match-row .result.upcoming { font-size: 15px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

/* ---------- Static page ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 52px 0 42px; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 58px); }
.page-hero p { color: #aeb6d6; max-width: 720px; margin-top: 10px; font-size: 17px; }
.prose { max-width: 860px; }
.prose p { margin-bottom: 1.35em; font-size: 17px; }
.prose h2 { color: var(--text); font-size: 30px; margin: 1.4em 0 .5em; }

/* light league table (sezona page) */
.table-light-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 24px; overflow-x: auto; }
.table-light { width: 100%; border-collapse: collapse; min-width: 620px; }
.table-light th { text-align: center; padding: 13px 8px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7a8296; }
.table-light th.team, .table-light td.team { text-align: left; padding-left: 12px; }
.table-light td { text-align: center; padding: 13px 8px; font-size: 14.5px; color: var(--text-muted); border-top: 1px solid #eef1f6; }
.table-light td.team { font-size: 15px; color: var(--text); font-weight: 500; }
.table-light td.pts { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); }
.table-light tr.bytca { background: #eef0fb; }
.table-light tr.bytca td.team { color: var(--indigo); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6dbec; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 60px 32px 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { height: 64px; }
.footer-brand strong { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; color: #fff; letter-spacing: .04em; display: block; }
.footer-brand .sub { font-size: 15px; color: #aeb6d6; }
.footer-col h4 { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .18em; color: var(--gold); margin-bottom: 14px; }
.footer-col p { font-size: 16px; line-height: 1.7; }
.footer-links a { display: block; color: #d6dbec; padding: 4px 0; font-size: 16px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 32px; max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8891b8; }
.footer-bottom a { color: #8891b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-social { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-2); flex-direction: column; align-items: stretch; padding: 10px 12px 16px; gap: 2px; box-shadow: 0 18px 30px rgba(5,8,25,.5); }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .dropbtn { padding: 14px 16px; font-size: 17px; width: 100%; text-align: left; justify-content: space-between; border-radius: 10px; }
  .main-nav > a.active, .nav-dropdown.active .dropbtn { background: var(--indigo); color: #fff; }
  .main-nav > a.nav-fanshop { margin: 8px 0 0; justify-content: center; }
  .nav-dropdown .dropdown-menu { position: static; display: none; box-shadow: none; background: rgba(0,0,0,.25); border: 0; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding-left: 34px; }
  .hero { min-height: 480px; }
  .match-grid { grid-template-columns: 1fr; gap: 18px; }
  .match-vs { text-align: center; }
  .table-card { padding: 22px 18px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-band .container { grid-template-columns: 1fr; gap: 34px; }
  .stats-band .stat:nth-child(2) { border: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 1fr; gap: 6px; }
  .brand-name { font-size: 17px; }
  .brand-crest { height: 46px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
