/* KK Plama-pur — spletna stran
   Smer: dvorana v Ilirski Bistrici. Parket, semafor, modro-beli dresi.
   Signatura: rumeno-oranžne številke semaforja (samo za odštevanje in rezultate). */

/* Pisave, gostovane na strani, vse vsebujejo č, š, ž, ć, đ:
   Tanker (ITF, Fontshare, ITF Free Font License) za naslove in številke,
   General Sans (ITF, Fontshare, ITF Free Font License) za besedilo, gumbe in meni,
   Caveat Brush (Google Fonts, SIL Open Font License) za pripise z markerjem. */
@font-face { font-family: "DSEG7"; src: url("../fonts/dseg7-classic-bold.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; } /* DSEG (keshikan), SIL OFL, LED semafor */
@font-face { font-family: "Tanker"; src: url("../fonts/tanker-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../fonts/caveat-brush-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat Brush"; src: url("../fonts/caveat-brush-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* znamka */
  /* znamka — barve z obstoječe strani */
  --blue: #394ea1;
  --blue-700: #2e3f86;
  --blue-50: #eceff8;
  --sky: #17baec;

  /* temna površina — barva noge obstoječe strani */
  --night-950: #1b222e;
  --night-900: #262f3e;
  --night-800: #303a4b;
  --night-line: rgba(238, 240, 245, 0.1);
  --grey: #848992; /* siva z obstoječe strani, samo na temnem */

  /* svetla nevtralna lestvica (obstoječa #f4f4f4 / #eeeeee) */
  --bg: #f4f4f4;
  --card: #ffffff;
  --raised: #eeeeee;
  --line: rgba(22, 32, 46, 0.09);
  --text: #16202e;
  --text-2: #3f4652;
  --muted: #626873;

  /* semafor */
  --led: #ffb21e;

  --win: #15803d;
  --win-bg: #e7f5ec;
  --loss: #c42727;
  --loss-bg: #fbeaea;

  --font-display: "Tanker", "Arial Narrow", sans-serif;
  --font-hand: "Caveat Brush", cursive;
  --font-led: "DSEG7", var(--font-display);
  --font-body: "General Sans", system-ui, sans-serif;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: #fff; padding: 8px 12px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-16 { width: 16px; height: 16px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- tipografija ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}

.h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: 0.95; letter-spacing: 0.01em; margin: 0; }
.h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 8px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 38rem; margin: 0; }
.muted { color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }

/* ---------- gumbi: nalepke s trdo senco, kot izrezane iz plakata ---------- */

.btn {
  --sh: #262f3e;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 3px 26px 0;
  border: 2px solid var(--sh); border-radius: 10px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 22px; letter-spacing: 0.03em; line-height: 1;
  box-shadow: 4px 4px 0 var(--sh);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; margin-top: -3px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline { background: #fff; color: #262f3e; }
.btn-light { --sh: var(--sky); background: #fff; color: #262f3e; border-color: #fff; }
.btn-light:hover { background: #fff; }
.btn-ghost-dark { --sh: rgba(255,255,255,0.35); color: #fff; border-color: #fff; background: transparent; }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); }
.btn-s { height: 44px; padding: 3px 18px 0; font-size: 19px; box-shadow: 3px 3px 0 var(--sh); }
.btn-s:hover { box-shadow: 5px 5px 0 var(--sh); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blue); }
.link-arrow .icon { transition: transform 160ms var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- glava ---------- */

:root { --header-h: 84px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 40px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 58px; height: 58px; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 0.9; text-transform: uppercase; color: var(--blue); letter-spacing: 0.01em; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 12px;
  font-weight: 600; font-size: 16px; color: var(--text);
  background: no-repeat center bottom 2px / 0 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 14 2, 24 7, 38 4 S 62 2, 78 5' fill='none' stroke='%2317baec' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: background-size 220ms var(--ease), color 160ms var(--ease);
}
.nav a:hover { background-size: calc(100% - 16px) 8px; }
.nav a[aria-current="page"] { color: var(--blue); background-size: calc(100% - 16px) 8px; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .quiet { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.header-actions .quiet .icon { color: var(--blue); }
.header-actions .quiet:hover { color: var(--text); }

.menu-btn { display: none; height: 44px; padding: 0 14px; border-radius: 10px; align-items: center; gap: 8px; margin-left: auto; border: 2px solid #262f3e; font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: 0.03em; }
.menu-btn .icon { width: 20px; height: 20px; }

.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu[data-open="true"] {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: #f4f4f4; padding: 16px var(--gutter) 32px; overflow-y: auto;
    animation: menu-in 220ms var(--ease);
  }
  .mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .mobile-menu a.m-link .icon { color: var(--blue); }
  .mobile-menu a.m-link[aria-current="page"] { color: var(--blue); }
  .mobile-menu .m-actions { display: grid; gap: 14px; margin-top: 28px; }
  .mobile-menu .m-social { display: flex; gap: 8px; margin-top: 24px; }
}
@media (max-width: 760px) { :root { --header-h: 72px; } .brand img { width: 48px; height: 48px; } .brand-name { font-size: 28px; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.social { display: flex; gap: 4px; }
.social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); border: 1px solid var(--line); background: #fff; }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--night-950); color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(27,34,46,0.6) 0%, rgba(27,34,46,0.25) 40%, rgba(27,34,46,0) 60%),
    linear-gradient(to bottom, rgba(27,34,46,0.86) 0%, rgba(27,34,46,0.7) 30%, rgba(27,34,46,0.2) 50%, rgba(27,34,46,0) 60%),
    linear-gradient(to top, rgba(27,34,46,0.7) 0%, rgba(27,34,46,0) 22%);
}
.hero-inner { min-height: clamp(600px, calc(100svh - var(--header-h)), 880px); display: flex; flex-direction: column; padding-top: 56px; padding-bottom: 136px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.82); margin: 0 0 16px; }
.hero-kicker .bar { width: 32px; height: 3px; background: var(--sky); border-radius: 2px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 88px); }
.hero h1 .line2 { color: var(--sky); }
.hero .lead { color: rgba(255,255,255,0.86); margin-top: 20px; font-size: 19px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 112px; font-size: 12px; color: rgba(255,255,255,0.64); }

@media (max-width: 760px) {
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; order: 2; }
  .hero-media img { object-position: 50% 60%; }
  .hero-media::after { background: linear-gradient(to bottom, var(--night-950) 0%, rgba(27,34,46,0) 18%); }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: 0; padding-top: 40px; padding-bottom: 32px; }
  .hero h1 { font-size: 64px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-caption { display: none; }
}

/* ---------- semafor: naslednja tekma ---------- */

.next-match-wrap { position: relative; z-index: 2; margin-top: -88px; }
@media (max-width: 760px) { .next-match-wrap { margin-top: 0; padding-inline: 0; } }

.scoreboard {
  background: var(--night-900);
  color: #fff;
  border-radius: var(--radius-l);
  border: 1px solid var(--night-line);
  box-shadow: 0 24px 48px -24px rgba(27,34,46,0.55);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
}
.sb-label { display: grid; gap: 4px; padding-right: 32px; border-right: 1px solid var(--night-line); }
.sb-label strong { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.sb-label span { font-size: 13px; color: rgba(238,240,245,0.66); }

.sb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-width: 0; }
.sb-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sb-team.away { justify-content: flex-end; text-align: right; }
.sb-team.away .crest { order: 2; }
.sb-team .name { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-team .crest { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 4px; flex: none; }
.sb-vs { font-size: 13px; color: rgba(238,240,245,0.5); font-weight: 600; }
.sb-when { display: grid; gap: 6px; font-size: 14px; color: rgba(238,240,245,0.8); padding-left: 32px; border-left: 1px solid var(--night-line); }
.sb-when div { display: flex; align-items: center; gap: 8px; }
.sb-when .icon { color: rgba(238,240,245,0.5); }

.countdown { display: flex; gap: 6px; }
.countdown .cell { background: var(--night-950); border: 1px solid var(--night-line); border-radius: 8px; width: 60px; padding: 8px 0 6px; text-align: center; }
.countdown .num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--led); font-variant-numeric: tabular-nums; }
.countdown .unit { display: block; font-size: 11px; color: rgba(238,240,245,0.55); margin-top: 4px; }
.sb-actions { display: flex; gap: 8px; margin-top: 12px; }
.sb-actions .btn { height: 36px; font-size: 13px; padding: 0 12px; }

@media (max-width: 1180px) {
  .scoreboard { grid-template-columns: 1fr auto; gap: 20px 24px; }
  .sb-label { grid-column: 1 / -1; border-right: 0; padding-right: 0; display: flex; justify-content: space-between; align-items: baseline; }
  .sb-teams { grid-column: 1 / -1; }
  .sb-when { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .scoreboard { border-radius: 0; border-inline: 0; grid-template-columns: 1fr; padding: 24px 16px; box-shadow: none; }
  .sb-label { display: grid; }
  .sb-teams { grid-template-columns: 1fr; gap: 12px; }
  .sb-team.away { justify-content: flex-start; text-align: left; }
  .sb-team.away .crest { order: 0; }
  .sb-team .name { font-size: 26px; }
  .sb-vs { display: none; }
  .countdown .cell { flex: 1; width: auto; }
  .sb-actions .btn { flex: 1; }
}

/* ---------- sekcije ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-white { background: var(--card); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head p.lead { margin-top: 12px; }
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- tekme ---------- */

.match-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .match-grid { grid-template-columns: 1fr; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }

.tabs { display: inline-flex; gap: 4px; background: var(--raised); padding: 4px; border-radius: var(--radius); }
.tab { height: 32px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(15,23,41,0.08); }

.match-list { list-style: none; margin: 0; padding: 0; }
.match-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease);
}
.match-row:last-child { border-bottom: 0; }
.m-date { text-align: center; line-height: 1; }
.m-date .d { font-family: var(--font-display); font-weight: 400; font-size: 34px; display: block; font-variant-numeric: tabular-nums; }
.m-date .mo { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.m-body { min-width: 0; display: grid; gap: 6px; }
.m-teams { display: grid; gap: 6px; }
.m-team { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 0; }
.m-team .t-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-team.us { font-weight: 700; }
.m-team .crest { width: 24px; height: 24px; flex: none; object-fit: contain; }
.m-team .score { margin-left: auto; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--muted); }
.m-team.winner .score { color: var(--text); }
.m-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.m-meta span { display: inline-flex; align-items: center; gap: 4px; }
.m-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
.m-time { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-s); font-size: 12px; font-weight: 600; }
.badge-win { background: var(--win-bg); color: var(--win); }
.badge-loss { background: var(--loss-bg); color: var(--loss); }
.badge-home { background: var(--blue-50); color: var(--blue); }
.badge-away { background: var(--raised); color: var(--text-2); }
.m-go { color: var(--muted); display: inline-flex; }

.crest-fallback { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: none; }

@media (max-width: 560px) {
  .match-row { grid-template-columns: 48px minmax(0,1fr) auto; padding: 14px 16px; gap: 12px; }
  .m-go { display: none; }
  .m-date .d { font-size: 26px; }
}

/* lestvica */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table th.l, .table td.l { text-align: left; }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table .pos { width: 40px; color: var(--muted); font-weight: 600; text-align: left; }
.table .team-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.table .team-cell img { width: 24px; height: 24px; object-fit: contain; }
.table .pts { font-weight: 700; color: var(--text); }
.table tr.us td { background: var(--blue-50); }
.table tr.us td:first-child { box-shadow: inset 3px 0 0 var(--blue); color: var(--blue); }
.table tr.us .team-cell { font-weight: 700; color: var(--blue); }
.table .hide-s { }
@media (max-width: 560px) { .table .hide-s { display: none; } .table { font-size: 14px; } }

.source-note { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.source-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--led); }
.source-note.live .dot { background: var(--win); }

.empty { padding: 32px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.skeleton-row { height: 76px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--card) 0%, var(--bg) 50%, var(--card) 100%); }

/* ---------- šola košarke ---------- */

.academy { background: var(--blue); color: #fff; overflow: hidden; }
.academy .container { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; align-items: stretch; padding-inline: 0; max-width: none; }
.academy-img { min-height: 480px; position: relative; }
.academy-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.academy-body { padding: 96px max(var(--gutter), calc((100vw - var(--container)) / 2)) 96px 64px; display: flex; flex-direction: column; justify-content: center; }
.academy .eyebrow { color: rgba(255,255,255,0.8); }
.academy h2 { font-size: clamp(44px, 5vw, 72px); }
.academy p.lead { color: rgba(255,255,255,0.86); margin-top: 16px; }
.academy-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.academy-list li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.academy-list li::before { content: ""; width: 12px; height: 2px; background: var(--sky); flex: none; transform: translateY(-4px); }
.academy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 900px) {
  .academy .container { grid-template-columns: 1fr; }
  .academy-img { min-height: 0; aspect-ratio: 16 / 10; }
  .academy-body { padding: 48px var(--gutter) 64px; }
}

/* ---------- sponzorji ---------- */

.gen-sponsor { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); margin-bottom: 24px; }
.gen-sponsor img { width: 360px; max-width: 100%; }
.gen-sponsor p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .gen-sponsor { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }

.logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.logo-grid.tier-silver { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1000px) { .logo-grid, .logo-grid.tier-silver { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 620px) { .logo-grid, .logo-grid.tier-silver { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.logo-tile { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-tile img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 200ms var(--ease), opacity 200ms var(--ease); }
.logo-tile:hover img { filter: none; opacity: 1; }
.tier-silver .logo-tile { aspect-ratio: 4 / 3; padding: 20px; }
.tier-silver .logo-tile img, .logo-tile.full img { filter: none; opacity: 1; }
.tier-title { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 16px; }
.tier-title h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1; margin: 0; }

/* ---------- podstrani ---------- */

.page-hero { background: var(--night-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .container { padding-top: 72px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(60px, 8.4vw, 120px); }
.page-hero .lead { color: rgba(238,240,245,0.78); margin-top: 16px; }
.page-hero .crumbs { font-size: 14px; color: rgba(238,240,245,0.6); margin-bottom: 16px; display: flex; gap: 8px; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .ph-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--night-900) 25%, rgba(38,47,62,0.55)); }
/* talna črta igrišča */
.court-line { height: 6px; background: linear-gradient(to right, var(--blue) 0 60%, var(--sky) 60% 100%); }

.prose { max-width: 44rem; font-size: 18px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 36px; line-height: 1; margin: 1.6em 0 0.6em; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); }
.timeline li.key::before { background: var(--blue); }
.timeline .year { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--blue); }
.timeline p { margin: 6px 0 0; color: var(--text-2); max-width: 36rem; }

.two-col { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.people { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.people.two { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .people, .people.two { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 620px) { .people, .people.two { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; } }
.person .img { aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; background: var(--raised); }
.person .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.person h3 { font-size: 18px; font-weight: 600; margin: 12px 0 2px; }
.person p { margin: 0; font-size: 14px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.gallery button { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--raised); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease), opacity 200ms var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(27,34,46,0.94); display: none; align-items: center; justify-content: center; padding: 64px 24px; }
.lightbox[data-open="true"] { display: flex; animation: fade 200ms var(--ease); }
.lightbox img { max-height: 100%; max-width: min(1400px, 100%); border-radius: var(--radius); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color 160ms var(--ease); }
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 14px; font-variant-numeric: tabular-nums; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); display: grid; gap: 8px; align-content: start; }
.contact-card .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.contact-card h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0; }
.contact-card a, .contact-card p { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.35; }
.contact-card a:hover { color: var(--blue); }
.contact-card small { font-size: 14px; color: var(--muted); }

.cta-band { background: var(--night-900); color: #fff; border-radius: var(--radius-l); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { font-size: clamp(40px, 4.4vw, 60px); }
.cta-band p { margin: 8px 0 0; color: rgba(238,240,245,0.75); max-width: 36rem; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }



.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.select { height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687185' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font: inherit; font-size: 15px; color: var(--text); appearance: none; }

.month-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 26px; padding: 20px 20px 8px; margin: 0; color: var(--muted); }

/* ---------- noga ---------- */

.site-footer { background: #262f3e; color: rgba(255,255,255,0.74); font-size: 15px; line-height: 1.6; }
.site-footer a { transition: color 160ms var(--ease); }
.site-footer a:hover { color: #fff; }

.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 80px 0 64px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-cta .kick { display: inline-block; margin: 0 0 8px; font-family: var(--font-hand); font-weight: 400; font-size: 28px; color: var(--sky); transform: rotate(-2deg); }
.footer-cta h2 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 6.4vw, 96px); line-height: 0.92; letter-spacing: 0.01em; color: #fff; }
.footer-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 48px; padding: 56px 0; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .id { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.footer-brand .id b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1.1; color: #fff; letter-spacing: 0.01em; }
.footer-brand .id span { display: block; font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-brand p { margin: 0; max-width: 22rem; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.18); color: #fff; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.foot-social a:hover { background: #fff; color: #262f3e; border-color: #fff; }
.site-footer h4 { margin: 0 0 16px; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-contact li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 12px; align-items: start; }
.foot-contact .icon { color: var(--sky); margin-top: 3px; }
.foot-contact small { display: block; font-size: 13px; color: rgba(255,255,255,0.55); }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; }
.to-top:hover { color: #fff; }
.to-top .icon { transform: rotate(-90deg); }

@media (max-width: 1000px) {
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 64px 0 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-cta .actions .btn { flex: 1 1 100%; }
}

/* ---------- vstop ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 480ms var(--ease) both; }
  .rise-2 { animation-delay: 60ms; }
  .rise-3 { animation-delay: 120ms; }
  .rise-4 { animation-delay: 180ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.table abbr { text-decoration: none; }
.panel-foot { flex-wrap: wrap; gap: 8px 16px; }
.link-arrow { white-space: nowrap; }


/* ================= v2 ================= */

/* zona tekem: semafor + trak + tekme na temni podlagi */
.match-zone { position: relative; background: var(--night-900); color: #fff; isolation: isolate; }
.court-wrap { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.match-zone .scoreboard { background: var(--night-950); }
.court { position: absolute; right: -6%; top: 120px; width: min(980px, 80vw); height: auto; fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 2; pointer-events: none; }
.match-zone .section { padding-top: 72px; }
.match-zone .h2 { color: #fff; }
.match-zone .eyebrow { color: var(--sky); }
.match-zone .link-arrow { color: #fff; }
.match-zone .link-arrow:hover { color: var(--sky); }
.match-zone .panel { color: var(--text); border-color: transparent; box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.match-zone .panel .link-arrow { color: var(--blue); }

/* trak rezultatov */
.ticker { margin-top: 32px; border-block: 1px solid var(--night-line); background: var(--night-950); overflow: hidden; }
.tk-track { display: flex; width: max-content; }
.tk-run { display: flex; flex: none; }
.tk-item { display: inline-flex; align-items: baseline; gap: 12px; padding: 14px 32px; border-right: 1px solid var(--night-line); white-space: nowrap; }
.tk-comp { font-size: 12px; color: var(--grey); align-self: center; }
.tk-team { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.tk-team.us { color: #fff; }
.tk-score { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--led); font-variant-numeric: tabular-nums; }
.tk-score i { font-style: normal; opacity: 0.6; margin: 0 2px; }
.tk-item.lost .tk-score { color: rgba(255,178,30,0.6); }
@media (prefers-reduced-motion: no-preference) {
  .tk-track { animation: ticker 60s linear infinite; }
  .ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .tk-run[aria-hidden] { display: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* klub v številkah */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.number { padding: 32px 32px 0 0; }
.number + .number { padding-left: 32px; border-left: 1px solid var(--line); }
.number b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 9vw, 128px); line-height: 0.85; color: var(--blue); font-variant-numeric: tabular-nums; }
.number p { margin: 16px 0 0; color: var(--text-2); max-width: 22rem; }
@media (max-width: 760px) {
  .numbers { grid-template-columns: 1fr; }
  .number, .number + .number { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* instagram */
.ig-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.ig-handle { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--blue); margin-top: 12px; }
.ig-intro p { color: var(--text-2); margin: 12px 0 0; max-width: 26rem; }
.ig-links { display: grid; gap: 8px; margin-top: 28px; max-width: 320px; }
.ig-links a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-weight: 600; transition: border-color 160ms var(--ease), color 160ms var(--ease); }
.ig-links a:hover { border-color: var(--blue); color: var(--blue); }
.ig-links a .icon { color: var(--blue); }
.ig-links a .go { margin-left: auto; color: var(--muted); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ig-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-l); overflow: hidden; background: var(--raised); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.ig-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; color: #fff; background: rgba(27,34,46,0.82); opacity: 0; transition: opacity 200ms var(--ease); }
.ig-cap { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.7); }
.ig-tile:hover .ig-over, .ig-tile:focus-visible .ig-over { opacity: 1; }
.ig-tile:hover img { transform: scale(1.03); }
@media (max-width: 900px) {
  .ig-layout { grid-template-columns: 1fr; gap: 28px; }
  .ig-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .ig-tile { flex: 0 0 78%; scroll-snap-align: start; }
  .ig-links { max-width: none; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ig-links a { justify-content: center; padding: 0 8px; }
  .ig-links a .go { display: none; }
}
@media (max-width: 480px) { .ig-links a span.lbl { display: none; } }

/* noga: obris imena */
.footer-mark-unused { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 15.2vw, 220px); line-height: 0.8; letter-spacing: 0.01em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.16); white-space: nowrap; user-select: none; padding-top: 8px; }
@media (max-width: 620px) { .section .logo-grid:not(.tier-silver) { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; } .logo-tile { padding: 10px; } }
.menu-btn { flex: none; }
@media (max-width: 440px) { .brand-sub { display: none; } .site-header .container { gap: 16px; } }

/* ---------- starševski portal: posebna oznaka v meniju ---------- */
.portal-cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 5px; border: 2px solid #262f3e; border-radius: 26px; background: #d9f2fb; color: #262f3e; box-shadow: 3px 3px 0 #262f3e; transition: transform 140ms var(--ease), box-shadow 140ms var(--ease); }
.portal-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #262f3e; }
.portal-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #262f3e; }
.pc-ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; flex: none; }
.pc-txt { display: grid; line-height: 1.1; font-weight: 600; font-size: 14px; }
.pc-txt small { font-family: var(--font-hand); font-weight: 400; font-size: 15px; color: var(--blue); line-height: 1; }
.portal-cta.wide { height: 60px; padding: 0 18px 0 8px; border-radius: 14px; }
.portal-cta.wide .pc-ico { width: 40px; height: 40px; }
.portal-cta.wide .pc-txt { font-size: 18px; }
.portal-cta.wide .pc-go { margin-left: auto; }
.header-actions { gap: 14px; }

/* ---------- obvestilo o piškotkih: listek na tabli ---------- */
.cookie-note { position: fixed; z-index: 60; left: 20px; bottom: 20px; width: min(340px, calc(100vw - 40px)); padding: 26px 22px 18px; background: #fff8d6; color: #262f3e; box-shadow: 0 18px 30px -16px rgba(38,47,62,0.55), 0 1px 3px rgba(38,47,62,0.15); transform: rotate(-1.5deg); animation: rise 420ms var(--ease) both; }
.cookie-note .tape { position: absolute; top: -14px; left: calc(50% - 50px); width: 100px; height: 28px; background: rgba(214,208,186,0.8); transform: rotate(3deg); }
.cookie-note p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie-note .cn-title { font-family: var(--font-hand); font-size: 24px; line-height: 1.1; color: var(--blue); margin-bottom: 6px; }
.cn-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.cn-actions a { font-size: 14px; font-weight: 600; color: var(--blue); border-bottom: 2px solid currentColor; }
