/* Sport Magic — boje i duh aplikacije MagicApp */
:root {
	--bg: #0b0e22;
	--surface: #10152f;
	--surface-2: #161c40;
	--border: #2a2f5a;
	--purple: #6a33f0;
	--purple-deep: #3a1a6b;
	--lav: #c4b0ff;
	--cyan: #4ff1fd;
	--gold: #d9b13b;
	--red: #ff4554;
	--text: #fff;
	--muted: rgba(255, 255, 255, .72);
	--grad: linear-gradient(90deg, #6a33f0, #4ff1fd);
	--r: 18px;
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1240px;
	--hdr: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--n { --wrap: 860px; }

h1, h2 { font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); margin-bottom: 22px; }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
h1 em, h2 em { font-style: inherit; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .12em; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.kicker:has(img)::before { display: none; }
.kicker img { border-radius: 50%; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; background: var(--grad); color: #07091a; font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; box-shadow: 0 8px 30px -8px rgba(106, 51, 240, .8); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(79, 241, 253, .55); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1.5px var(--border); backdrop-filter: blur(6px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn--light { background: #fff; color: #0b0e22; box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btns--c { justify-content: center; }

/* Zaglavlje */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .25s, box-shadow .25s; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(11, 14, 34, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); transition: opacity .25s; }
.hdr.is-stuck::before, .hdr.is-open::before { opacity: 1; }
.hdr.is-open::before { background: var(--bg); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__logo img { width: 170px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 4px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; border-radius: 10px; transition: color .2s, background .2s; }
.nav > ul > li > a:hover, .nav li.is-cur > a, .nav a[aria-current] { color: var(--cyan); }
.nav .ic { width: 15px; height: 15px; }
.sub { position: absolute; left: 0; top: 100%; min-width: 250px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 14px; border-radius: 9px; font-weight: 600; font-size: .93rem; }
.sub a:hover { background: var(--surface-2); color: var(--cyan); }
.hdr__cta { min-height: 44px; padding: 8px 20px; font-size: .82rem; }
.nav__cta { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; border-radius: 2px; transition: .25s; }
.hdr.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr.is-open .burger span:nth-child(2) { opacity: 0; }
.hdr.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero (početna) */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; padding: calc(var(--hdr) + 60px) 0 56px; isolation: isolate; overflow: hidden; }
.hero__bg, .phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before, .phero--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 34, .55) 0%, rgba(11, 14, 34, .35) 35%, rgba(11, 14, 34, .88) 78%, var(--bg) 100%), radial-gradient(80% 60% at 85% 10%, rgba(106, 51, 240, .45), transparent 70%); }
.hero h1 { max-width: 15ch; margin-bottom: 22px; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 54px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stats li { background: rgba(16, 21, 47, .82); backdrop-filter: blur(10px); padding: 22px 24px; }
.stats b, .specs b { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; font-style: italic; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span, .specs span { font-size: .86rem; color: var(--muted); font-weight: 500; }

/* Hero (unutrašnje stranice) */
.phero { position: relative; padding: calc(var(--hdr) + 70px) 0 64px; isolation: isolate; overflow: hidden; background: radial-gradient(70% 120% at 90% 0%, rgba(106, 51, 240, .38), transparent 65%), radial-gradient(50% 90% at 0% 100%, rgba(79, 241, 253, .12), transparent 70%), var(--bg); border-bottom: 1px solid var(--border); }
.phero--img { padding-top: calc(var(--hdr) + 130px); min-height: 520px; display: flex; align-items: flex-end; border-bottom: 0; }
.phero__in { width: min(100% - 40px, var(--wrap)); }
.phero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); margin-bottom: 18px; max-width: 20ch; }
.phero--liga { background: linear-gradient(180deg, rgba(11, 14, 34, .5), var(--bg)), url(img/liga-bg.webp) center/cover no-repeat; }
.phero__liga { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.phero__liga img { width: 110px; height: 110px; border-radius: 50%; box-shadow: 0 0 60px rgba(106, 51, 240, .7); flex: none; }
.phero__liga h1 { margin: 0; }
.phero--404 { min-height: 80svh; display: flex; align-items: center; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 22px; font-weight: 500; }
.crumbs a:hover { color: var(--cyan); }
.crumbs .separator { margin: 0 6px; opacity: .5; }

/* Sekcije */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec--alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.sec__head h2 { margin: 0; }
.sec__head > p { max-width: 46ch; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split--top { grid-template-columns: 1.5fr 1fr; align-items: start; }
.split__img { position: relative; }
.split__img img { border-radius: var(--r); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__img--tall img { aspect-ratio: 4/5; }
.split__img::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r); background: var(--grad); z-index: -1; opacity: .5; filter: blur(2px); }
.prose { color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.8em; margin-bottom: 0; }
.prose h3 { color: #fff; margin-top: 1.5em; }
.prose strong { color: #fff; }
.prose a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; border-radius: 2px; background: var(--grad); }
.prose img { border-radius: var(--r); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 26px 0 30px; font-weight: 600; font-size: .95rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--cyan); margin-top: .25em; }

/* Kartice usluga */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.card--liga { background: linear-gradient(160deg, rgba(11, 14, 34, .55), rgba(11, 14, 34, .9)), url(img/liga-bg.webp) center/cover !important; border-color: var(--purple); justify-content: flex-end; min-height: 300px; }
.card--liga img { border-radius: 50%; margin-bottom: 6px; box-shadow: 0 0 40px rgba(106, 51, 240, .8); }
.card--liga .card__body { padding-top: 24px; flex: 0 1 auto; }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.sec:not(.sec--alt) .card { background: var(--surface); }
.card:hover { transform: translateY(-6px); border-color: var(--purple); box-shadow: 0 24px 60px -20px rgba(106, 51, 240, .7); }
.card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { position: relative; padding: 34px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__ic { position: absolute; top: -26px; left: 24px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #07091a; box-shadow: 0 8px 24px rgba(106, 51, 240, .6); }
.card__ic .ic { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .95rem; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); }
.card__more .ic { transition: transform .2s; }
a:hover > .card__more .ic, .card:hover .card__more .ic, .card__more:hover .ic { transform: translateX(4px); }

/* Prednosti */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 36px; }
.feats article { padding: 28px 26px; border: 1px solid var(--border); border-radius: var(--r); background: linear-gradient(160deg, rgba(106, 51, 240, .16), rgba(16, 21, 47, .4) 55%); }
.feats__n { display: block; font-weight: 900; font-style: italic; font-size: 1.6rem; color: var(--lav); opacity: .7; margin-bottom: 10px; }
.feats h3 { margin-bottom: 8px; }
.feats p { color: var(--muted); font-size: .95rem; }

/* Brojke ispod heroja */
.specs { margin-top: -1px; padding: 0 0 8px; }
.specs ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transform: translateY(-32px); margin-bottom: -32px; }
.specs li { background: var(--surface); padding: 22px 24px; }
.phero:not(.phero--img) + .specs ul { transform: translateY(28px); margin-bottom: 0; }

.aside { position: sticky; top: calc(var(--hdr) + 20px); padding: 30px; border-radius: var(--r); border: 1px solid var(--border); background: linear-gradient(160deg, rgba(106, 51, 240, .28), var(--surface) 60%); display: grid; gap: 14px; }
.aside h2 { font-size: 1.5rem; margin: 0; }
.aside p { color: var(--muted); font-size: .95rem; }
.aside ul { display: grid; gap: 10px; font-size: .92rem; color: var(--muted); margin-top: 6px; }
.aside li { display: flex; gap: 10px; }
.aside .ic { color: var(--cyan); margin-top: .2em; }

/* Magic liga */
.sec--liga { background: radial-gradient(60% 50% at 100% 0%, rgba(106, 51, 240, .25), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(79, 241, 253, .1), transparent 70%), var(--bg); }
.liga { transition: opacity .2s; }
.liga.is-loading { opacity: .45; pointer-events: none; }
.liga__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.liga__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.liga__tab { padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 800; font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; transition: .2s; background: rgba(255, 255, 255, .03); }
.liga__tab:hover { border-color: var(--lav); }
.liga__tab.is-on { background: var(--grad); color: #07091a; border-color: transparent; }
.liga__season select { appearance: none; padding: 11px 44px 11px 20px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ff1fd' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center/16px no-repeat; font-weight: 700; font-size: .88rem; cursor: pointer; }
.liga__stats { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; margin-bottom: 20px; }
.liga__stats > div { position: relative; padding: 16px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.liga__stats b { font-size: 1.7rem; font-weight: 900; font-style: italic; line-height: 1; }
.liga__stats b i { font-size: 1rem; color: var(--muted); font-weight: 700; }
.liga__stats span { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.liga__prog em { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--border); border-radius: 0 0 14px 14px; overflow: hidden; }
.liga__prog em::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--grad); }
.liga__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.liga__grid--b { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.liga__grid--b:empty { display: none; }
.liga__side { display: grid; gap: 20px; }
.liga__card { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.liga__card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(106, 51, 240, .28), transparent); }
.liga__card h3 { font-size: 1rem; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .03em; }
.liga__card > header span { font-size: .78rem; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.liga__card--gold { border-color: rgba(217, 177, 59, .5); background: linear-gradient(160deg, rgba(217, 177, 59, .14), var(--surface) 55%); }
.liga__card--gold > header { background: linear-gradient(90deg, rgba(217, 177, 59, .3), transparent); }
.liga__empty { padding: 26px 22px; color: var(--muted); }
.liga__empty--big { text-align: center; padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--r); display: grid; gap: 18px; justify-items: center; }
.liga__more { margin-top: 26px; text-align: center; }
.liga__note { margin-top: 18px; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 8px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tbl td { padding: 11px 8px; text-align: center; border-top: 1px solid rgba(42, 47, 90, .6); }
.tbl .l { text-align: left; }
.tbl td.l a { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tbl td.l a:hover span { color: var(--cyan); }
.tbl td.l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.tbl .pos { width: 46px; font-weight: 800; color: var(--muted); }
.tbl .pts { font-weight: 900; color: var(--cyan); font-size: 1.02rem; }
.tbl tbody tr:hover { background: rgba(106, 51, 240, .1); }
.tbl tbody tr:nth-child(-n+3) .pos { color: #fff; box-shadow: inset 3px 0 0 var(--purple); }
.tbl tbody tr:first-child .pos { box-shadow: inset 3px 0 0 var(--gold); color: var(--gold); }
.crest { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.crest--txt { display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-deep), var(--purple)); font-size: .62rem; font-weight: 800; letter-spacing: .02em; color: #fff; }
.mts { display: grid; }
.mt { display: grid; gap: 6px; padding: 13px 18px; border-top: 1px solid rgba(42, 47, 90, .6); transition: background .2s; }
.mt:first-child { border-top: 0; }
.mt:hover { background: rgba(106, 51, 240, .12); }
.mt__meta { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.mt__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mt__team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; min-width: 0; line-height: 1.2; }
.mt__team--h { justify-content: flex-end; text-align: right; }
.mt__mid { display: grid; justify-items: center; }
.mt__score { display: inline-flex; gap: 5px; align-items: center; padding: 5px 12px; min-width: 62px; justify-content: center; border-radius: 9px; background: var(--bg); border: 1px solid var(--border); font-weight: 900; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.mt__score i { font-style: normal; color: var(--cyan); }
.mt__vs { padding: 5px 12px; border-radius: 9px; font-size: .72rem; font-weight: 800; color: var(--lav); border: 1px dashed var(--border); }
.mt__mid small { font-size: .66rem; color: var(--muted); }
.scorers li { display: flex; align-items: center; gap: 14px; padding: 10px 22px; border-top: 1px solid rgba(42, 47, 90, .6); }
.scorers li:first-child { border-top: 0; }
.scorers__n { width: 26px; font-weight: 900; font-style: italic; color: var(--muted); }
.scorers li:nth-child(-n+3) .scorers__n { color: var(--gold); }
.scorers__p { display: grid; flex: 1; line-height: 1.3; min-width: 0; }
.scorers__p small { color: var(--muted); font-size: .78rem; }
.scorers__g { font-weight: 900; font-size: 1.15rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.podium { display: grid; gap: 8px; padding: 18px 22px 6px; }
.podium li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.podium i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); }
.podium__1 { font-size: 1.25rem; }
.podium__1 i { background: var(--gold); color: #1a1300; border: 0; width: 36px; height: 36px; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px 22px; }
.awards li { display: grid; padding: 12px 14px; border-radius: 12px; background: rgba(11, 14, 34, .6); border: 1px solid var(--border); line-height: 1.3; }
.awards span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.awards small { color: var(--muted); font-size: .78rem; }
.liga--mini + .btns { margin-top: 34px; }
.leagues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 36px; }
.league { position: relative; display: grid; gap: 8px; align-content: end; min-height: 300px; padding: 28px; border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; isolation: isolate; background: var(--surface) center top/cover no-repeat; transition: transform .25s, border-color .25s; }
.league::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 34, 0) 0%, rgba(11, 14, 34, .85) 42%, var(--bg) 100%); }
.league--premier { background-image: url(img/liga-premier.webp); }
.league--prva { background-image: url(img/liga-prva.webp); }
.league--rekreativna { background-image: url(img/liga-rekreativna.webp); }
.league:hover { transform: translateY(-6px); border-color: var(--cyan); }
.league h3 { font-size: 1.5rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.league b { color: var(--cyan); font-size: .95rem; }
.league p { color: var(--muted); font-size: .93rem; }

/* Utisci */
.tst { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 400px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-top: 36px; scrollbar-color: var(--purple) transparent; }
.tst figure { scroll-snap-align: start; padding: 30px 28px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg); display: grid; gap: 20px; align-content: space-between; }
.tst blockquote { position: relative; font-size: 1.05rem; font-weight: 500; padding-top: 34px; }
.tst blockquote::before { content: "“"; position: absolute; top: -18px; left: -4px; font-size: 5rem; line-height: 1; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tst figcaption { display: grid; line-height: 1.35; }
.tst figcaption span { color: var(--muted); font-size: .85rem; }

/* Galerija */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.sec__head + .gal, .wrap > .gal:first-child { margin-top: 0; }
.gal__i { overflow: hidden; border-radius: 14px; aspect-ratio: 4/3; background: var(--surface-2); }
.gal__i img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gal__i:hover img { transform: scale(1.07); filter: brightness(1.12); }
.gal--home .gal__i:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal--3 { grid-template-columns: repeat(3, 1fr); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 16, .95); display: grid; place-items: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb img { max-width: min(100%, 1400px); max-height: 90svh; border-radius: 10px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: var(--purple); }
.lb__x { top: 18px; right: 18px; }
.lb__nav--p { left: 18px; top: 50%; translate: 0 -50%; }
.lb__nav--n { right: 18px; top: 50%; translate: 0 -50%; }

/* Novosti */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.post { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.sec:not(.sec--alt) .post { background: var(--surface); }
.post__img { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--purple-deep), var(--surface-2)); }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 22px 24px 24px; display: grid; gap: 10px; flex: 1; }
.post time { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.post h3 a:hover { color: var(--cyan); }
.post p { color: var(--muted); font-size: .94rem; }
.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; }
.page-numbers.current { background: var(--grad); color: #07091a; border: 0; }

/* Pitanja */
.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq details[open] { border-color: var(--purple); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.02rem; font-weight: 700; }
.faq summary .ic { color: var(--cyan); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Partneri */
.partners { padding: 54px 0; border-top: 1px solid var(--border); }
.partners .kicker { justify-content: center; }
.partners .kicker::before { display: none; }
.partners ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 22px; margin-top: 12px; }
.partners li { display: grid; place-items: center; height: 84px; min-width: 170px; padding: 14px 24px; border-radius: 14px; background: #fff; }
.partners li.is-dark { background: #000; }
.partners img { max-height: 56px; width: auto; max-width: 150px; object-fit: contain; }
.partners span { color: #0b0e22; font-weight: 800; }

/* Poziv */
.cta { padding: 0 0 clamp(64px, 9vw, 110px); }
.sec--alt + .cta, .partners + .cta, .map + .cta { padding-top: clamp(64px, 9vw, 110px); }
.cta__in { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: clamp(32px, 5vw, 60px); border-radius: 28px; background: linear-gradient(120deg, #3a1a6b 0%, #6a33f0 55%, #2bb8d8 130%); box-shadow: 0 30px 80px -30px rgba(106, 51, 240, .9); }
.cta__in::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .07); }
.cta h2 { margin-bottom: 10px; }
.cta h2 em { background: none; color: var(--cyan); }
.cta p { color: rgba(255, 255, 255, .85); max-width: 52ch; }
.cta .btns { margin: 0; position: relative; z-index: 1; }

/* Kontakt */
.kon { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.kon__info { display: grid; gap: 14px; }
.kon__i { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: border-color .2s; }
a.kon__i:hover { border-color: var(--cyan); }
.kon__i > .ic { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--grad); color: #07091a; }
.kon__i span { display: grid; line-height: 1.4; }
.kon__i small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kon__i b { font-size: 1.05rem; overflow-wrap: anywhere; }
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); border: 1px solid var(--border); background: linear-gradient(160deg, rgba(106, 51, 240, .2), var(--surface) 50%); }
.form h2 { font-size: 1.7rem; margin: 0; }
.form > p { color: var(--muted); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--cyan); }
.form .is-bad { border-color: var(--red) !important; }
.form__hp { position: absolute !important; left: -9999px; }
.form__chk { display: flex !important; gap: 10px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--muted); font-size: .88rem !important; }
.form__chk input { width: 20px; height: 20px; accent-color: var(--purple); margin-top: 2px; flex: none; }
.form__chk a { color: var(--cyan); text-decoration: underline; }
.form .btn { justify-self: start; }
.form__msg { font-weight: 700; min-height: 1.4em; }
.form__msg.is-ok { color: var(--cyan); }
.form__msg.is-err { color: var(--red); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Podnožje */
.ftr { border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg), #130d2c 60%, #2a1457 160%); }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 70px 0 50px; }
.ftr__brand p { color: var(--muted); font-size: .93rem; margin: 18px 0; max-width: 34ch; }
.ftr__soc { display: flex; gap: 10px; }
.ftr__soc a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; transition: .2s; }
.ftr__soc a:hover { background: var(--grad); color: #07091a; border-color: transparent; }
.ftr h2 { font-size: .82rem; font-style: normal; letter-spacing: .14em; color: var(--cyan); margin-bottom: 18px; }
.ftr ul { display: grid; gap: 10px; font-size: .94rem; color: var(--muted); }
.ftr li a:hover { color: #fff; }
.ftr__contact li { display: flex; gap: 10px; }
.ftr__contact .ic { color: var(--cyan); margin-top: .25em; }
.ftr__contact small { opacity: .7; }
.ftr__bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--border); font-size: .82rem; color: rgba(255, 255, 255, .55); }
.ftr__bot a:hover { color: #fff; }
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; place-items: center; background: var(--grad); color: #07091a; box-shadow: 0 10px 30px rgba(106, 51, 240, .7); }
.fab .ic { width: 26px; height: 26px; }

/* Pojavljivanje */
@media (prefers-reduced-motion: no-preference) {
	.js [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
	.js [data-rv].is-in { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
	.nav { position: fixed; inset: var(--hdr) 0 0; background: var(--bg); padding: 20px 20px 40px; overflow-y: auto; display: none; margin: 0; }
	.hdr.is-open .nav { display: block; }
	.nav > ul { flex-direction: column; gap: 0; }
	.nav > ul > li > a { padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; justify-content: space-between; }
	.sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 6px 0 6px 14px; }
	.sub a { padding: 10px 6px; color: var(--muted); }
	.nav__cta { display: flex; margin-top: 24px; }
	.burger { display: block; }
	.hdr__cta { margin-left: auto; }
	.ftr__top { grid-template-columns: 1fr 1fr; }
	.liga__grid, .liga__grid--b { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	body { font-size: 16px; }
	.split, .split--top, .kon { grid-template-columns: 1fr; }
	.split__img::after { inset: 12px -8px -12px 8px; }
	.aside { position: static; }
	.stats { grid-template-columns: 1fr 1fr; }
	.gal, .gal--3 { grid-template-columns: 1fr 1fr; }
	.liga__stats { grid-template-columns: 1fr 1fr; }
	.liga__prog { grid-column: 1 / -1; }
	.fab { display: grid; }
	.phero--img { min-height: 440px; }
	.phero__liga img { width: 76px; height: 76px; }
	.cta__in { border-radius: 22px; }
}
@media (max-width: 560px) {
	.wrap { width: min(100% - 32px, var(--wrap)); }
	.hdr__cta span { display: none; }
	.hdr__cta { padding: 8px; width: 46px; }
	.hdr__logo img { width: 140px; }
	.btns .btn { width: 100%; }
	.ticks, .form__row, .awards, .ftr__top { grid-template-columns: 1fr; }
	.hide-s { display: none; }
	.tbl { font-size: .86rem; }
	.tbl th, .tbl td { padding: 10px 5px; }
	.tbl .pos { width: 34px; }
	.tbl td.l span { max-width: 36vw; }
	.mt { padding: 12px; }
	.mt__team { font-size: .8rem; }
	.liga__card > header { padding: 15px 16px; }
	.scorers li { padding: 10px 16px; }
	.stats li, .specs li { padding: 16px; }
	.liga__season, .liga__season select { width: 100%; }
}

/* Mreža lige: kolone smeju da se suze ispod širine tabele */
.liga__grid > *, .liga__side > *, .liga__card, .split > *, .kon > * { min-width: 0; }
.liga__bar > * { min-width: 0; max-width: 100%; }
.phero--img::before { background: linear-gradient(180deg, rgba(11, 14, 34, .78) 0%, rgba(11, 14, 34, .55) 40%, rgba(11, 14, 34, .9) 80%, var(--bg) 100%), radial-gradient(80% 60% at 85% 10%, rgba(106, 51, 240, .4), transparent 70%); }
@media (max-width: 700px) {
	.btn { white-space: normal; text-align: center; max-width: 100%; }
	.hdr__cta { white-space: nowrap; }
}

/* Mobilni meni: ceo ekran ispod zaglavlja */
@media (max-width: 1080px) {
	.nav { top: var(--hdr); bottom: auto; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); padding: 8px 20px calc(110px + env(safe-area-inset-bottom)); background: var(--bg); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; z-index: 60; }
	.nav > ul > li > a { padding: 17px 2px; font-size: 1.1rem; font-weight: 800; letter-spacing: .03em; }
	.nav > ul > li.has-sub > a .ic { display: none; }
	.nav > ul > li.has-sub > a { border-bottom: 0; padding-bottom: 8px; }
	.sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 16px; border-bottom: 1px solid var(--border); border-radius: 0; min-width: 0; }
	.sub a { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.25; height: 100%; display: flex; align-items: center; }
	.sub a[aria-current], .sub a:active { border-color: var(--cyan); color: var(--cyan); }
	.nav__cta { width: 100%; margin-top: 22px; min-height: 56px; font-size: 1rem; }
	.hdr.is-open ~ .fab, body:has(.hdr.is-open) .fab { display: none; }
}
@media (max-width: 360px) { .sub { grid-template-columns: 1fr; } }
