/* MDNS Lendava - videz po vzoru nzs.si */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --blue-1: #0a93cf;
  --blue-2: #0a6fb5;
  --blue-3: #0b4f8f;
  --blue: var(--blue-2);
  --navy: #082b4c;
  --lime: #b7d334;
  --gold: #f59e0b;
  --ink: #0d2338;
  --text: var(--ink);
  --muted: #5d7285;
  --line: #dbe5ee;
  --border: var(--line);
  --bg: #eef3f8;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 12px;
  --head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', 'Segoe UI', Roboto, Arial, sans-serif;
  --font: var(--body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--bg);
  /* temno modra podlaga z mehkim sijem in finimi diagonalnimi črtami (kot pokošeno igrišče) */
  background-image:
    radial-gradient(900px 420px at 85% -10%, rgba(10,147,207,.55), rgba(10,147,207,0) 70%),
    radial-gradient(700px 380px at 5% 10%, rgba(183,211,52,.14), rgba(183,211,52,0) 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 70px, rgba(255,255,255,0) 70px 140px),
    linear-gradient(180deg, #06223f 0%, #0a3d6e 55%, #0b4f8f 100%);
  background-size: 100% clamp(560px, 34vw + 120px, 820px);
  background-repeat: no-repeat;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: 2100px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 56px); width: 100%; }

/* ---------- glava ---------- */
.utility { display: flex; justify-content: flex-end; gap: 22px; padding: 12px 0 0; font-size: .8rem; color: rgba(255,255,255,.85); }
.utility a:hover { color: #fff; text-decoration: underline; }

.site-header { padding: 14px 0 22px; position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand img { height: 58px; width: auto; }
.brand-text { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: 1.5rem; letter-spacing: .01em; }
.brand-text small { display: block; font-weight: 500; font-size: .78rem; letter-spacing: .08em; opacity: .85; margin-top: 4px; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.12rem; color: #fff; padding: 8px 16px; border-radius: 999px; transition: background .2s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.18); }

.nav-toggle { display: none; background: rgba(255,255,255,.16); border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 13px; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }

/* ---------- hero (kot nzs.si) ---------- */
.hero-grid { display: grid; grid-template-columns: 2.1fr 1fr 1fr; gap: 20px; }
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #fff; min-height: clamp(380px, 32vw, 560px); isolation: isolate;
}
.tile img.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; transition: transform .5s; }
.tile:hover img.tile-img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,20,38,0) 35%, rgba(5,20,38,.9) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.chip {
  display: inline-block; background: #fff; color: var(--blue-3); font-weight: 700; font-size: .78rem;
  padding: 4px 12px; border-radius: 8px; margin-bottom: 12px;
}
.tile h2, .tile h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.tile.big h2 { font-size: 2.7rem; margin-bottom: 12px; }
.tile.big p { font-size: 1rem; color: rgba(255,255,255,.88); max-width: 620px; }
.tile.small h3 { font-size: 1.55rem; }

/* ---------- vsebinski bloki ---------- */
.band { background: var(--bg); padding: 50px 0 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-head h2 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 2rem; color: var(--navy); }
.section-head a { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--blue-2); font-size: 1.05rem; }
.section-head a:hover { text-decoration: underline; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(10,50,90,.06); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10,50,90,.14); }
.card-media { aspect-ratio: 4/3.3; background: var(--navy); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .chip { background: var(--bg); color: var(--blue-3); align-self: flex-start; margin: 0; }
.card-body h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1.1; color: var(--navy); }
.card-body p { color: var(--muted); font-size: .93rem; }

.ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-3), var(--blue-1));
}
.ph img { width: 34%; height: auto; opacity: .9; object-fit: contain; }

.info-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.info-tile { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .2s; }
.info-tile:hover { background: var(--blue-3); }
.info-tile h3 { font-family: var(--head); text-transform: uppercase; font-size: 1.8rem; font-weight: 800; line-height: 1.05; margin-bottom: 8px; }
.info-tile p { color: rgba(255,255,255,.8); font-size: .93rem; }
.info-tile .bar { width: 44px; height: 5px; background: var(--lime); border-radius: 3px; margin-bottom: 16px; }

/* ---------- notranje strani ---------- */
.page-head { padding: 6px 0 34px; color: #fff; }
.page-head h1 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 3.2rem; line-height: 1; }
.page-head p { margin-top: 10px; color: rgba(255,255,255,.88); max-width: 720px; }
.page-head .back { font-family: var(--head); text-transform: uppercase; font-weight: 700; font-size: 1rem; opacity: .9; display: inline-block; margin-bottom: 14px; }
.page-head .back:hover { text-decoration: underline; }

.page-body { background: var(--bg); padding: 0 0 70px; flex: 1; }
.page-body .wrap { margin-top: -10px; }
.panel { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: 0 2px 10px rgba(10,50,90,.06); }
.panel + .panel { margin-top: 24px; }
.grid > .panel,
.grid-2 > .panel,
.split > .panel,
div[style*="grid"] > .panel {
  margin-top: 0;
}
.panel h2 { font-family: var(--head); text-transform: uppercase; font-weight: 800; font-size: 1.9rem; color: var(--navy); margin-bottom: 14px; }
.panel h3 { font-family: var(--head); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; color: var(--navy); margin: 22px 0 8px; }

.article-img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 26px; }
.prose { font-size: 1.04rem; color: #2a3f52; line-height: 1.75; }
.prose p { margin-bottom: 16px; }
.prose img { height: auto !important; max-width: 100%; border-radius: var(--radius-sm); margin: 14px 0; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose a { color: var(--blue-2); text-decoration: underline; }
.prose .float_400 { margin-bottom: 8px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; color: var(--ink);
}
textarea.input { border-radius: var(--radius-sm); }
.input:focus, .select:focus { outline: none; border-color: var(--blue-1); box-shadow: 0 0 0 3px rgba(10,147,207,.18); }
.search-form { display: flex; gap: 10px; flex: 1; max-width: 520px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--blue-2); color: #fff; font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .03em; padding: 10px 24px; border-radius: 999px; transition: background .2s;
}
.btn:hover { background: var(--blue-3); }
.btn.light { background: var(--bg); color: var(--blue-3); }
.btn.light:hover { background: var(--line); }
.btn.danger { background: #fde8e8; color: #a11d1d; }
.btn.danger:hover { background: #f9cfcf; }
.btn.sm { padding: 5px 16px; font-size: .92rem; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; color: var(--blue-3); padding: 12px 16px; border-bottom: 2px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f6f9fc; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #e3f4d3; color: #3b6a12; }
.badge.off { background: #fde8e8; color: #a11d1d; }

.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.doc-ext { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.doc-title { font-weight: 600; word-break: break-word; }
.doc-file { font-size: .8rem; color: var(--muted); word-break: break-all; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.person { background: var(--bg); border-radius: var(--radius-sm); padding: 18px 20px; }
.person small { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2); font-weight: 700; font-size: .95rem; }
.person strong { display: block; font-family: var(--head); text-transform: uppercase; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.person span { color: var(--muted); font-size: .9rem; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; font-weight: 600; color: var(--muted); }

/* ---------- noga ---------- */
.site-footer { background: var(--navy); color: #b9cadb; padding: 56px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { font-family: var(--head); text-transform: uppercase; color: #fff; font-size: 1.3rem; margin-bottom: 14px; letter-spacing: .03em; }
.site-footer p { font-size: .92rem; margin-bottom: 8px; }
.site-footer li { margin-bottom: 7px; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .82rem; color: #7f96ac; }

/* ---------- admin ---------- */
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; flex-wrap: wrap; }
.admin-bar .brand-text { font-size: 1.35rem; }
.admin-bar nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-bar nav a { font-family: var(--head); text-transform: uppercase; font-weight: 700; font-size: 1.05rem; padding: 7px 16px; border-radius: 999px; color: #cfe0ee; }
.admin-bar nav a:hover, .admin-bar nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.admin-page { background: var(--bg); flex: 1; padding: 36px 0 60px; }
.admin-page h1 { font-family: var(--head); text-transform: uppercase; font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.admin-page .sub { color: var(--muted); margin: 6px 0 26px; }
.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.flash-success { background: #e3f4d3; color: #3b6a12; }
.flash-error { background: #fde8e8; color: #a11d1d; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px 26px; }
.stat b { display: block; font-family: var(--head); font-size: 2.8rem; font-weight: 800; color: var(--blue-2); line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.login-page { background: var(--navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 100%; max-width: 420px; padding: 20px; }

/* ---------- odzivnost ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-column: 1 / -1; min-height: 380px; }
  .tile { min-height: 300px; }
  .cards, .info-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .split { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-radius: var(--radius-sm); margin: 8px 24px 0; padding: 12px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; }
  .utility { display: none; }
  .page-head h1 { font-size: 2.4rem; }
  .tile.big h2 { font-size: 2rem; }
}
@media (max-width: 600px) {
  .hero-grid, .cards, .info-tiles { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
}

/* ---------- delegiranje ---------- */
.del-title { font-family: var(--head); text-transform: uppercase; font-weight: 800; font-size: 2rem; color: var(--navy); margin: 8px 0 18px; }
.del-day { margin-bottom: 22px; }
.del-date { font-family: var(--head); text-transform: uppercase; font-weight: 700; font-size: 1.25rem; color: var(--blue-2); margin-bottom: 8px; letter-spacing: .02em; }
.del-panel { padding: 6px 26px; }
.del-row { display: grid; grid-template-columns: 78px 1.1fr minmax(320px, 1.3fr); gap: 20px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.del-row:last-child { border-bottom: 0; }
.del-time { font-family: var(--head); font-weight: 800; font-size: 1.8rem; color: var(--navy); line-height: 1.1; padding-top: 2px; }
.del-match { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.del-match-link { color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.del-match-link:hover { color: var(--blue); text-decoration: underline; }
.del-link-icon { color: var(--blue); transition: transform 0.15s ease; opacity: 0.85; }
.del-match-link:hover .del-link-icon { transform: translate(1px, -1px); opacity: 1; }
.del-liga { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.chip-soft { display: inline-block; background: var(--bg); color: var(--blue-3); font-weight: 700; font-size: .75rem; padding: 2px 10px; border-radius: 8px; margin-right: 6px; }
.del-weather { margin-top: 8px; }
.chip-weather {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .83rem;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.chip-weather .weather-icon { font-size: 1.05rem; line-height: 1; }
.chip-weather .weather-temp { color: var(--navy); font-weight: 800; font-family: var(--head); font-size: .95rem; }
.chip-weather .weather-desc { color: var(--muted); font-size: .8rem; }
.chip-weather .weather-kraj { color: var(--blue-2); font-weight: 700; font-size: .82rem; }
.del-refs { font-size: .92rem; line-height: 1.6; }
.del-ref-item { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; flex-wrap: wrap; }
.del-ref-item.is-nas .del-name { font-weight: 700; color: var(--blue-2); }
.del-role { display: inline-block; min-width: 104px; color: var(--muted); font-size: .82rem; }
.del-name { font-weight: 500; color: var(--text); }
.del-ref-badge { display: inline-block; font-family: var(--head); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
@media (max-width: 800px) {
  .del-row { grid-template-columns: 60px 1fr; gap: 14px; }
  .del-refs { grid-column: 1 / -1; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
}

/* ---------- Člani / NZS referee cards (kot na sliki) ---------- */
.ref-nzs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1200px) {
  .ref-nzs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .ref-nzs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 520px) {
  .ref-nzs-grid { grid-template-columns: 1fr; }
}

.ref-nzs-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.ref-nzs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(10, 40, 75, 0.14);
}
.ref-nzs-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ref-nzs-figure {
  height: 290px;
  background: #f4f6f9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ref-nzs-img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.ref-nzs-img.is-avatar {
  opacity: 0.75;
  padding: 20px 0 0;
  max-height: 90%;
}
.ref-nzs-card:hover .ref-nzs-img {
  transform: scale(1.03);
}

.ref-nzs-banner {
  background: linear-gradient(135deg, #0e567e 0%, #1573a6 100%);
  color: #ffffff;
  padding: 18px 20px;
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(14, 86, 126, 0.18);
}
.ref-nzs-info {
  flex: 1;
  min-width: 0;
}
.ref-nzs-name {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.ref-nzs-rank {
  font-size: 0.88rem;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}
.ref-nzs-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #0e567e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ref-nzs-card:hover .ref-nzs-btn {
  transform: translateX(3px);
  background: #fde68a;
}

/* ---------- Sodnik Profil Hero (kot na sliki) ---------- */
.ref-hero {
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.94) 0%, rgba(16, 75, 114, 0.92) 100%),
              radial-gradient(ellipse at top right, rgba(29, 131, 190, 0.45), transparent 70%);
  color: #ffffff;
  padding: 40px 0 50px;
  border-bottom: 4px solid var(--gold);
}
.ref-hero-top {
  margin-bottom: 24px;
}
.ref-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.ref-back-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.ref-hero-main {
  display: flex;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
}
.ref-hero-avatar-box {
  flex-shrink: 0;
}
.ref-hero-avatar {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 6px solid #ffffff;
  object-fit: cover;
  object-position: 50% 0%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: block;
}
.ref-hero-avatar.is-avatar {
  object-fit: contain;
  padding-top: 15px;
}
.ref-hero-details {
  flex: 1;
  min-width: 300px;
}
.ref-hero-title {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.ref-hero-fn {
  display: block;
  color: #ffffff;
}
.ref-hero-ln {
  display: block;
  color: #ffffff;
}
.ref-hero-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.7;
}
.ref-hero-facts strong {
  color: #fde68a;
  margin-right: 6px;
  font-weight: 700;
}
.ref-hero-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 720px;
}
.form-floating-nzs {
  flex: 1;
  min-width: 220px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 14px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.form-floating-nzs label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.form-select-nzs {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  outline: none;
  padding: 0;
}

/* Statistične kartice */
.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: -30px;
  position: relative;
  z-index: 5;
  margin-bottom: 28px;
}
.stat-box {
  padding: 18px 16px;
  text-align: center;
  border-radius: 14px;
  border-top: 3px solid var(--blue);
}
.stat-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Vloga značke */
.chip-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-role.role-main {
  background: #dbeafe;
  color: #1e40af;
}
.chip-role.role-sub {
  background: #f1f5f9;
  color: #475569;
}

/* Kartoni značke */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
}
.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}
.badge-red {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.card-rect {
  display: inline-block;
  width: 9px;
  height: 12px;
  border-radius: 2px;
}
.card-rect-yellow {
  background: #eab308;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.card-rect-red {
  background: #dc2626;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Paginacija za tekme sodnika */
.ref-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}
.ref-pagination-info {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.ref-pagination-info strong {
  color: var(--navy);
}
.ref-page-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ref-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.ref-page-btn:hover:not(:disabled):not(.active) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--blue);
}
.ref-page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(11, 79, 122, 0.25);
}
.ref-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}
.ref-page-dots {
  padding: 0 4px;
  color: var(--muted);
  font-weight: 700;
}
