/* ==========================================================================
   AdriaZone — dizajn sistem i osnova teme
   Boje, fontovi i razmaci prate dizajn sa platna (claude/redizajn-plan.md).
   ========================================================================== */

/* ---------- 1. Tokeni ---------- */
:root {
	/* Pozadine */
	--az-bg: #0b0e14;
	--az-bg-deep: #080a0f;
	--az-surface: #121722;
	--az-surface-2: #182030;
	--az-surface-3: #0e1219;
	--az-band: #10141c;

	/* Ivice */
	--az-border: #232c3d;
	--az-border-soft: #1a2130;
	--az-border-strong: #2b3649;

	/* Tekst (svi parovi prolaze WCAG AA na --az-bg i --az-surface) */
	--az-text: #e8edf4;
	--az-text-2: #c7d2e0;
	--az-text-3: #b4c0cf;
	--az-muted: #8a97a8;

	/* Akcenti */
	--az-accent: #d6334d;        /* pozadina dugmića, beli tekst preko nje */
	--az-accent-hover: #bf2a42;
	--az-accent-text: #ff6b7d;   /* crveni tekst na tamnom */
	--az-live: #ff4d63;
	--az-info: #7fb2ff;
	--az-gold: #e9c46a;
	--az-gold-soft: #f4d58d;
	--az-gold-border: #3d3420;
	--az-gold-bg: #15140f;

	/* Tipografija */
	--az-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--az-font-disp: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
	--az-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	/* Raspored */
	--az-wrap: 1320px;
	--az-gutter: 24px;
	--az-radius-sm: 6px;
	--az-radius: 10px;
	--az-radius-lg: 14px;
	--az-header-h: 68px;
	--az-ease: .18s ease;
}

/* ---------- 2. Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
	margin: 0;
	background: var(--az-bg);
	color: var(--az-text);
	font-family: var(--az-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--az-text); text-decoration: none; transition: color var(--az-ease); }
a:hover { color: var(--az-accent-text); }

:focus-visible { outline: 2px solid var(--az-info); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--az-accent); color: #fff; }

/* ---------- 3. Pomoćne klase ---------- */
.az-wrap { max-width: var(--az-wrap); margin-inline: auto; padding-inline: var(--az-gutter); }
.az-disp { font-family: var(--az-font-disp); text-transform: uppercase; letter-spacing: .02em; }
.az-mono { font-family: var(--az-font-mono); font-variant-numeric: tabular-nums; }
.az-muted { color: var(--az-muted); }
.az-gold { color: var(--az-gold); }
.az-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.az-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--az-text); color: var(--az-bg); padding: 10px 16px; border-radius: var(--az-radius-sm); font-weight: 600;
}
.az-skip:focus { top: 12px; color: var(--az-bg); }
.az-icon { flex: none; }

/* ---------- 4. Komponente ---------- */

/* Tag / oznaka regiona */
.az-tag {
	display: inline-flex; align-items: center;
	font-family: var(--az-font-mono); font-size: 11px; font-weight: 700; line-height: 1.4;
	padding: 2px 6px; border-radius: 4px;
	background: #1c2536; color: var(--az-text-2); border: 1px solid var(--az-border-strong);
}
.az-tag--accent { background: var(--az-accent); color: #fff; border-color: transparent; }
.az-tag--live { background: #2a141a; color: var(--az-accent-text); border-color: #5a2430; }
.az-tag--gold { background: #1c1a12; color: var(--az-gold); border-color: var(--az-gold-border); }
a.az-tag:hover { color: #fff; }

/* Dugmad */
.az-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
	font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap;
	transition: background var(--az-ease), border-color var(--az-ease), color var(--az-ease);
}
.az-btn--primary { background: var(--az-accent); color: #fff; }
.az-btn--primary:hover { background: var(--az-accent-hover); color: #fff; }
.az-btn--ghost { background: #171a21; color: var(--az-text); border-color: var(--az-border-strong); }
.az-btn--ghost:hover { border-color: var(--az-text-3); color: #fff; }
.az-btn--gold { background: var(--az-gold); color: var(--az-bg); }
.az-btn--gold:hover { background: var(--az-gold-soft); color: var(--az-bg); }

/* Kartica */
.az-card {
	background: var(--az-surface); border: 1px solid var(--az-border);
	border-radius: var(--az-radius); overflow: hidden;
}
.az-card__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-bottom: 1px solid var(--az-border);
}
.az-card__head h2 { font-size: 18px; }
.az-card__more { font-size: 12px; font-weight: 600; color: var(--az-text-3); }

/* Kartica vesti */
.az-card--post .az-card__link { display: flex; flex-direction: column; height: 100%; }
.az-card__media { aspect-ratio: 16 / 9; background: var(--az-surface-2); overflow: hidden; }
.az-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.az-card--post:hover .az-card__media img { transform: scale(1.03); }
.az-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.az-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--az-muted); }
.az-card__comments { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.az-card__title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--az-text); }
.az-card--post:hover .az-card__title { color: var(--az-accent-text); }

.az-grid { display: grid; gap: 20px; }
.az-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.az-empty { padding: 40px 24px; text-align: center; }
.az-empty h2 { font-size: 26px; margin-bottom: 8px; }

/* Forme */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="number"], input[type="date"], select, textarea {
	min-height: 44px; width: 100%;
	background: var(--az-surface-3); border: 1px solid var(--az-border-strong);
	border-radius: 8px; padding: 10px 12px; color: var(--az-text); font-size: 14px;
	transition: border-color var(--az-ease), box-shadow var(--az-ease);
}
input:focus, select:focus, textarea:focus {
	outline: none; border-color: var(--az-accent);
	box-shadow: 0 0 0 3px rgba(214, 51, 77, .2);
}
::placeholder { color: var(--az-muted); opacity: 1; }
label { font-size: 13px; font-weight: 600; color: var(--az-text-3); }

/* Pretraga */
.az-search { position: relative; display: flex; align-items: center; }
.az-search__input { padding-right: 44px; min-width: 0; }
.az-search__btn {
	position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; display: grid; place-items: center;
	background: transparent; border: 0; color: var(--az-text-3); cursor: pointer; border-radius: 6px;
}
.az-search__btn:hover { color: #fff; }
.az-search--block { max-width: 520px; margin: 0 auto 20px; }

/* Breadcrumbs */
.az-breadcrumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--az-muted); }
.az-breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.az-breadcrumbs li + li::before { content: "/"; color: var(--az-border-strong); }
.az-breadcrumbs a { color: var(--az-text-3); }
.az-breadcrumbs [aria-current] { color: var(--az-text); }

/* Paginacija */
.az-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.az-pagination .page-numbers, .az-pagination > a, .az-pagination > span {
	min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--az-surface); border: 1px solid var(--az-border); border-radius: 8px; font-weight: 600; font-size: 14px;
}
.az-pagination .current { background: var(--az-text); color: var(--az-bg); border-color: var(--az-text); }

/* Društvene mreže */
.az-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; }
.az-social a {
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 1px solid var(--az-border-strong); border-radius: 8px; color: var(--az-text-3);
}
.az-social a:hover { color: #fff; border-color: var(--az-text-3); }

/* ---------- 5. Traka sa mečevima ---------- */
.az-ticker { background: var(--az-bg-deep); border-bottom: 1px solid var(--az-border-soft); }
.az-ticker__inner { display: flex; align-items: stretch; }
.az-ticker__label {
	display: flex; align-items: center; padding-right: 16px; flex: none;
	font-size: 13px; font-weight: 700; color: var(--az-muted);
}
.az-ticker__list {
	list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0;
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.az-ticker__list::-webkit-scrollbar { display: none; }
.az-ticker__item { flex: none; scroll-snap-align: start; }
.az-ticker__item a {
	display: flex; flex-direction: column; gap: 3px; width: 196px; padding: 8px 14px;
	background: #0e1219; border-left: 1px solid var(--az-border-soft); color: var(--az-text);
}
.az-ticker__item a:hover { background: #121826; color: var(--az-text); }
.az-ticker__item--live a { background: #160f15; }
.az-ticker__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--az-muted); }
.az-ticker__event { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-ticker__status { font-weight: 700; flex: none; }
.az-ticker__item--live .az-ticker__status { color: var(--az-accent-text); }
.az-ticker__item--live .az-ticker__status::before {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; vertical-align: 1px;
	border-radius: 50%; background: var(--az-live); animation: az-pulse 1.6s ease-in-out infinite;
}
.az-ticker__item--upcoming .az-ticker__status { color: var(--az-text-3); }
.az-ticker__team { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.az-ticker__item--finished .az-ticker__team { color: var(--az-muted); font-weight: 500; }
.az-ticker__item--finished .az-ticker__team.is-winner { color: #fff; font-weight: 700; }
.az-ticker__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-ticker__all {
	display: flex; align-items: center; padding-left: 16px; flex: none;
	font-size: 12px; font-weight: 600; color: var(--az-text-3);
}
@keyframes az-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
	.az-ticker__item--live .az-ticker__status::before { animation: none; }
	.az-card__media img { transition: none; }
}

/* ---------- 6. Zaglavlje ---------- */
.az-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(11, 14, 20, .92); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--az-border);
}
.admin-bar .az-header { top: 32px; }
.az-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--az-header-h); }

.az-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--az-accent); }
.az-logo:hover { color: var(--az-accent-hover); }
.az-logo__text {
	font-family: var(--az-font-disp); font-size: 26px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .01em; color: var(--az-text);
}
.az-logo__text span { color: var(--az-accent-text); }
.custom-logo-link img { max-height: 40px; width: auto; }

.az-nav { flex: 1; min-width: 0; }
.az-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.az-nav__list > li { position: relative; }
.az-nav__list a {
	display: flex; align-items: center; min-height: 44px; padding: 0 12px;
	border-radius: var(--az-radius-sm); font-weight: 600; font-size: 14px; color: var(--az-text-2);
}
.az-nav__list a:hover { background: var(--az-surface-2); color: #fff; }
.az-nav__list .current-menu-item > a,
.az-nav__list .current-menu-ancestor > a,
.az-nav__list .current_page_item > a { background: var(--az-surface-2); color: #fff; }
.az-nav__list .az-menu-vault > a { color: var(--az-gold); }
.az-nav__list .az-menu-vault > a:hover,
.az-nav__list .az-menu-vault.current-menu-item > a { background: var(--az-gold); color: var(--az-bg); }

/* Padajući podmeni */
.az-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: all var(--az-ease);
}
.az-nav__list li:hover > .sub-menu,
.az-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.az-nav__mobile-search { display: none; }
.az-nav__mobile-search .az-search--block { margin: 0; max-width: none; }
.az-header__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.az-header .az-search__input { width: 240px; height: 40px; min-height: 40px; background: var(--az-surface); }
.az-user { padding: 0 12px 0 6px; gap: 8px; }
.az-user__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.az-user__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.az-user { position: relative; }
.az-user__badge {
	position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
	display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--az-bg);
	background: var(--az-accent); color: #fff; font-family: var(--az-font-mono); font-size: 10px; font-weight: 700;
}

.az-header__toggle {
	display: none; width: 44px; height: 44px; place-items: center; margin-left: auto;
	background: transparent; border: 1px solid var(--az-border-strong); border-radius: 8px; color: var(--az-text); cursor: pointer;
}

/* ---------- 7. Glavni sadržaj i stranice ---------- */
.az-main { display: block; min-height: 60vh; }
.az-main:focus { outline: none; }
.az-page { padding-top: 20px; padding-bottom: 64px; }
.az-page--wide { max-width: 1400px; }
.az-page__head { margin-bottom: 24px; }
.az-page__title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1; }
.az-page__lead { margin-top: 8px; color: var(--az-text-3); font-size: 16px; max-width: 720px; }

/* Članak */
.az-article-grid { display: grid; grid-template-columns: minmax(0, 780px) 340px; justify-content: space-between; gap: 32px; align-items: start; }
.az-article-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; position: sticky; top: 16px; }
.az-article { min-width: 0; }
.az-article__tags { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.az-article__title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1; overflow-wrap: anywhere; }
.az-article__lead { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--az-text-2); }
.az-article__byline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 20px; padding: 18px 0; border-top: 1px solid var(--az-border); border-bottom: 1px solid var(--az-border);
}
.az-article__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.az-article__avatar { border-radius: 50%; flex: none; }
.az-article__author { font-weight: 700; }
.az-article__date { font-size: 12px; color: var(--az-muted); }
/* Deljenje — svojstva zadata eksplicitno da ih CSS drugih plugina ne pregazi */
.az-share { display: flex; align-items: center; gap: 6px; position: relative; }
.az-share__label { font-size: 12px; font-weight: 600; color: var(--az-muted); margin-right: 4px; }
.az-share .az-share__btn, .az-share .az-share__native {
	-webkit-appearance: none; appearance: none; box-shadow: none; margin: 0; text-decoration: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	height: 38px; min-width: 38px; padding: 0; border-radius: 8px;
	background: var(--az-surface) !important; border: 1px solid var(--az-border-strong) !important; color: var(--az-text-2) !important;
	font: 600 13px/1 var(--az-font);
	transition: color .15s, border-color .15s, background .15s;
}
.az-share .az-share__btn:hover, .az-share .az-share__native:hover { color: #fff !important; border-color: var(--az-muted) !important; background: var(--az-surface-2) !important; }
.az-share .az-share__btn:focus-visible, .az-share .az-share__native:focus-visible { outline: 2px solid var(--az-info); outline-offset: 2px; }
.az-share .az-share__native { display: none; padding: 0 14px; }
.az-share__ok { position: absolute; right: 0; top: calc(100% + 6px); font-size: 12px; color: var(--az-text-2); white-space: nowrap; }

/* Avatar u stilu sajta (slika iz profila ili inicijali) */
.az-avatar { border-radius: 50%; flex: none; object-fit: cover; }
.az-avatar--initials {
	display: inline-grid; place-items: center; font-weight: 700; letter-spacing: .02em;
	background: #1c2536; border: 1px solid var(--az-border-strong); color: var(--az-text-2);
}
.az-article__figure { margin: 24px 0; }
.az-article__figure img { width: 100%; height: auto; border-radius: var(--az-radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--az-surface-2); }
.az-article__figure figcaption { font-size: 12px; color: var(--az-muted); margin-top: 8px; }
.az-article__body { margin-top: 24px; }
.az-article__figure + .az-article__body { margin-top: 0; }
.az-prose a.az-ent { color: var(--az-text); font-weight: 600; border-bottom: 1px dashed var(--az-muted); }
.az-prose a.az-ent:hover { color: var(--az-accent-text); border-bottom-color: currentColor; }
.az-article__taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.az-article__taglist a {
	font-family: var(--az-font-mono); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px;
	background: #1c2536; border: 1px solid var(--az-border-strong); color: var(--az-text-2);
}
.az-article__taglist a::before { content: "#"; color: var(--az-muted); }
.az-article__taglist a:hover { color: #fff; }
.az-article .az-comments { margin-top: 0; }

/* Bočna kolona članka */
.az-ents { list-style: none; margin: 0; padding: 0; }
.az-ents li + li { border-top: 1px solid var(--az-border-soft, #1a2130); }
.az-ents__row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--az-text); }
.az-ents__row:hover { background: var(--az-surface-2); }
.az-ents__row:hover .az-ents__name { color: var(--az-accent-text); }
.az-ents__pic {
	width: 40px; height: 40px; flex: none; overflow: hidden; display: grid; place-items: center;
	background: #1c2536; border: 1px solid var(--az-border-strong); color: var(--az-text-2); font-size: 11px; font-weight: 700;
}
.az-ents__pic--team { border-radius: 8px; }
.az-ents__pic--player { border-radius: 50%; }
.az-ents__pic img { width: 100%; height: 100%; object-fit: cover; }
.az-ents__pic--team img { object-fit: contain; padding: 3px; }
.az-ents__txt { flex: 1; min-width: 0; }
.az-ents__name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-ents__sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--az-muted); }
.az-ents__go { color: var(--az-muted); }
.az-nextm { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--az-text); }
.az-nextm:hover { background: var(--az-surface-2); }
.az-nextm__ev { font-size: 12px; color: var(--az-muted); }
.az-nextm__teams { font-weight: 700; font-size: 15px; }
.az-nextm__when { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--az-text-3); }
.az-nextm__when.is-live { color: var(--az-accent-text); font-weight: 700; text-transform: uppercase; }
.az-topn { margin: 0; padding: 0; list-style: none; }
.az-topn li { display: flex; gap: 12px; padding: 12px 16px; }
.az-topn li + li { border-top: 1px solid var(--az-border-soft, #1a2130); }
.az-topn__n { font-size: 24px; font-weight: 800; color: #3a4558; line-height: 1; width: 18px; flex: none; }
.az-topn a { font-weight: 500; font-size: 14px; color: var(--az-text); }
.az-topn a:hover { color: var(--az-accent-text); }
@media (max-width: 1000px) {
	.az-article-grid { grid-template-columns: minmax(0, 1fr); }
	.az-article-side { position: static; }
}
@media (max-width: 600px) {
	.az-article__lead { font-size: 17px; }
	/* Telefon: jedno jasno dugme „Podeli" (sistemski meni: Viber, WhatsApp, Messenger…) */
	.az-share__label, .az-share .az-share__btn { display: none; }
	.az-share .az-share__native { display: inline-flex; }
	.az-article__byline { padding: 14px 0; }
	.az-prose { font-size: 16px; }
}

/* Tekst članka / stranice */
.az-prose { font-size: 17px; line-height: 1.75; color: #d5dde8; }
.az-prose > * + * { margin-top: 1.1em; }
.az-prose p { margin-bottom: 0; }
.az-prose h2, .az-prose h3 { font-family: var(--az-font-disp); text-transform: uppercase; letter-spacing: .02em; color: var(--az-text); margin-top: 1.6em; }
.az-prose h2 { font-size: 28px; }
.az-prose h3 { font-size: 22px; }
.az-prose a { color: var(--az-accent-text); border-bottom: 1px solid rgba(255, 107, 125, .35); }
.az-prose a:hover { border-bottom-color: currentColor; }
.az-prose img { border-radius: var(--az-radius); }
.az-prose blockquote {
	margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--az-accent);
	font-size: 20px; color: var(--az-text); font-style: italic;
}
.az-prose ul, .az-prose ol { padding-left: 1.3em; }
.az-prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.az-prose th, .az-prose td { padding: 8px 12px; border-bottom: 1px solid var(--az-border); text-align: left; }
.az-prose code { font-family: var(--az-font-mono); font-size: .9em; background: var(--az-surface-2); padding: 2px 6px; border-radius: 4px; }
.az-prose iframe { width: 100%; border: 0; border-radius: var(--az-radius); }

/* Komentari */
.az-comments { margin-top: 32px; }
.az-comments__body { padding: 16px; }
.az-comments__list { list-style: none; margin: 0 0 16px; padding: 0; }
.az-cmt { padding: 12px 0; border-bottom: 1px solid var(--az-border-soft, #1a2130); }
.az-comments__list > .az-cmt:first-child { padding-top: 0; }
.az-comments__list .children { list-style: none; padding-left: 24px; margin: 12px 0 0; border-left: 2px solid var(--az-border); }
.az-comments__list .children .az-cmt:last-child { border-bottom: 0; padding-bottom: 0; }
.az-cmt__box { display: flex; gap: 10px; }
.az-cmt__avatar { border-radius: 50%; flex: none; width: 36px; height: 36px; background: var(--az-surface-2); }
.az-cmt__main { min-width: 0; flex: 1; }
.az-cmt__meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--az-muted); }
.az-cmt__author { font-weight: 700; font-size: 14px; color: var(--az-text); }
.az-cmt__time { color: var(--az-muted); }
.az-cmt__text { font-size: 15px; line-height: 1.6; color: var(--az-text-2); overflow-wrap: anywhere; }
.az-cmt__text p { margin: 4px 0 0; }
.az-cmt__wait { font-size: 12px; color: var(--az-gold); margin: 4px 0 0; }
.az-cmt__reply { margin-top: 4px; }
.az-cmt__reply a { font-size: 12px; font-weight: 600; color: var(--az-text-3); }
.az-cmt__reply a:hover { color: var(--az-accent-text); }
.comment-form textarea {
	width: 100%; background: var(--az-surface-3); border: 1px solid var(--az-border-strong); border-radius: 8px;
	padding: 12px; color: var(--az-text); font: 15px var(--az-font); resize: vertical;
}
.comment-form textarea:focus { outline: 2px solid var(--az-info); outline-offset: 1px; border-color: transparent; }
.comment-form .form-submit { display: flex; justify-content: flex-end; }
.comment-reply-title { font-family: var(--az-font-disp); text-transform: uppercase; font-size: 20px; margin: 16px 0 8px; }
.comment-form p { margin: 0 0 12px; }

/* 404 */
.az-404 { text-align: center; padding-top: 64px; }
.az-404__code { font-size: 96px; font-weight: 700; color: var(--az-border-strong); margin: 0; line-height: 1; }
.az-404 .az-page__lead { margin: 12px auto 24px; }

/* ---------- 8. Podnožje ---------- */
.az-footer { background: var(--az-bg-deep); border-top: 1px solid var(--az-border); margin-top: 32px; }
.az-footer__grid {
	display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 32px; padding-top: 40px; padding-bottom: 32px;
}
.az-footer__brand p { margin: 12px 0 0; color: var(--az-text-3); font-size: 13px; max-width: 360px; }
.az-footer__title { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--az-text); }
.az-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.az-footer__list a { display: inline-flex; min-height: 32px; align-items: center; font-size: 13px; color: var(--az-text-3); }
.az-footer__list a:hover { color: #fff; }
.az-footer__bottom { border-top: 1px solid var(--az-border-soft); }
.az-footer__bottom-inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	padding-top: 16px; padding-bottom: 24px; font-size: 12px; color: var(--az-muted);
}

/* ---------- 9. Odzivnost ---------- */
@media (max-width: 1180px) {
	.az-header .az-search__input { width: 180px; }
}

@media (max-width: 980px) {
	:root { --az-gutter: 16px; --az-header-h: 60px; }
	.az-header__inner { flex-wrap: wrap; gap: 12px; }
	.az-header__toggle { display: grid; }
	.az-header__tools { order: 2; }
	.az-header .az-search { display: none; }
	.az-user__name { display: none; }

	.az-nav {
		order: 3; flex-basis: 100%; display: none;
		padding: 8px 0 16px; border-top: 1px solid var(--az-border);
	}
	.az-nav.is-open { display: block; }
	.az-nav__list { flex-direction: column; gap: 0; }
	.az-nav__list a { min-height: 48px; font-size: 16px; }
	.az-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px;
	}
	.az-nav__mobile-search { display: block; margin-top: 8px; }
	.az-header .az-nav__mobile-search .az-search { display: flex; }
	.az-header .az-nav__mobile-search .az-search__input { width: 100%; flex: 1; }

	.az-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.az-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .az-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .az-header { top: 0; }
	.az-ticker__label, .az-ticker__all { display: none; }
	.az-ticker__inner { padding-inline: 0; }
	.az-ticker__item a { width: 168px; }
	.az-logo__text { font-size: 22px; }
	.az-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10. Kompatibilnost sa starim modulima (hltv-*) ---------- */
/* Stari moduli su pravljeni za Astru; ovo im daje istu tamnu podlogu i širinu. */
.az-builder-page .az-main { background: var(--az-bg); }
.az-page--wide > [class^="hltv-"], .az-page--wide > [class*=" hltv-"] { max-width: 100%; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--az-wrap); }

/* ==========================================================================
   11. Početna strana
   ========================================================================== */
.az-home { padding-top: 24px; padding-bottom: 56px; }
.az-home__grid {
	display: grid; grid-template-columns: 260px minmax(0, 1fr) 330px; gap: 24px; align-items: start;
}
.az-home__left, .az-home__main, .az-home__right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Zajedničko */
.az-tag--info { background: #121d30; color: var(--az-info); border-color: #24406a; }
.az-btn--block { width: 100%; }
.az-card--gold { border-color: var(--az-gold-border); }
.az-card--gold .az-card__head { border-color: var(--az-gold-border); }
.az-logo-box {
	width: 28px; height: 28px; flex: none; border-radius: 6px; overflow: hidden;
	display: grid; place-items: center; font-size: 10px; font-weight: 700;
	background: #1c2536; color: var(--az-text-2); border: 1px solid var(--az-border-strong);
}
.az-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.az-livedot {
	width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--az-live);
	box-shadow: 0 0 0 4px rgba(255, 77, 99, .18); animation: az-pulse 1.6s ease-in-out infinite;
}
.az-list { list-style: none; margin: 0; padding: 0; }
.az-list li + li { border-top: 1px solid var(--az-border-soft); }
.az-list__item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 44px; }
.az-list__item:hover { background: #151b27; color: var(--az-text); }
.az-list__item--stack { flex-direction: column; align-items: stretch; gap: 2px; }
.az-list__title { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; }
.az-list__meta { font-size: 12px; color: var(--az-muted); }
.az-empty-note { margin: 0; padding: 16px; font-size: 13px; color: var(--az-muted); }
.az-home__ad .az-ad, .az-home__ad img { border-radius: var(--az-radius); width: 100%; }
.az-home__ad--side { text-align: center; }

/* Istaknuti turnir */
.az-ft__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.az-ft__top { display: flex; gap: 12px; align-items: center; }
.az-ft__logo {
	width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
	background: var(--az-surface-2); border: 1px solid var(--az-border-strong); font-weight: 800; color: var(--az-text-2);
}
.az-ft__logo img { width: 100%; height: 100%; object-fit: contain; }
.az-ft__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.az-ft__dates { font-size: 12px; color: var(--az-muted); margin-top: 2px; }
.az-ft__stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.az-ft__stats div { background: var(--az-surface-3); border-radius: var(--az-radius-sm); padding: 8px 4px; }
.az-ft__stats dt { font-size: 11px; color: var(--az-muted); order: 2; }
.az-ft__stats dd { margin: 0; font-size: 16px; font-weight: 700; }
.az-ft__stats div { display: flex; flex-direction: column-reverse; }
.az-ft__progress { height: 4px; border-radius: 2px; background: #1c2536; overflow: hidden; }
.az-ft__progress span { display: block; height: 100%; background: var(--az-accent); }

/* Top 10 */
.az-rank__list { list-style: none; margin: 0; padding: 0; }
.az-rank__row { display: flex; align-items: center; gap: 10px; padding: 7px 16px; }
.az-rank__row + .az-rank__row { border-top: 1px solid var(--az-border-soft); }
.az-rank__pos { width: 20px; font-weight: 700; color: var(--az-muted); }
.az-rank__name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Glavna vest */
.az-lead__link { display: block; position: relative; }
.az-lead__media { aspect-ratio: 2 / 1; background: var(--az-surface-2); }
.az-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.az-lead__body {
	position: absolute; inset: auto 0 0 0; padding: 24px;
	background: linear-gradient(0deg, rgba(8, 10, 15, .96) 10%, rgba(8, 10, 15, .7) 60%, rgba(8, 10, 15, 0));
}
.az-lead__tags { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.az-lead__time { font-size: 12px; color: var(--az-text-3); }
.az-lead__title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.02; color: #fff; }
.az-lead__excerpt { margin: 10px 0 0; color: var(--az-text-2); font-size: 15px; max-width: 640px; }
.az-lead__link:hover .az-lead__title { color: var(--az-accent-text); }
.az-subleads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Najnovije vesti */
.az-news__head { flex-wrap: wrap; }
.az-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.az-filter__btn {
	min-height: 32px; min-width: 40px; padding: 0 10px; border-radius: 6px; cursor: pointer;
	font: 600 12px var(--az-font); background: var(--az-surface); color: var(--az-text-2); border: 1px solid var(--az-border-strong);
}
.az-filter__btn:hover { color: #fff; border-color: var(--az-text-3); }
.az-filter__btn[aria-pressed="true"] { background: var(--az-text); color: var(--az-bg); border-color: var(--az-text); }
.az-news__day {
	margin: 0; padding: 10px 16px 6px; background: #0f141d;
	font-size: 12px; font-weight: 700; color: var(--az-muted); text-transform: uppercase; letter-spacing: .06em;
}
.az-news__list { list-style: none; margin: 0; padding: 0; }
.az-news__item a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--az-border-soft); color: var(--az-text); }
.az-news__item a:hover { background: #151b27; }
.az-news__item a:hover .az-news__title { color: var(--az-accent-text); }
.az-news__time { width: 40px; flex: none; font-size: 12px; color: var(--az-muted); }
.az-news__cc { width: 22px; flex: none; display: flex; }
.az-news__title { flex: 1; min-width: 0; font-weight: 500; }
.az-news__comments { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; color: var(--az-muted); }
.az-news__empty { margin: 0; padding: 20px 16px; color: var(--az-muted); font-size: 13px; }
.az-news__more { padding: 12px 16px; }
.az-news__item[hidden], .az-news__group[hidden] { display: none; }

/* CS Vault najava */
.az-vault-teaser { background: var(--az-gold-bg); }
.az-vault-teaser__grid { padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.az-vault-teaser__era {
	display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 8px;
	background: #1c1a12; border: 1px solid var(--az-gold-border);
}
.az-vault-teaser__era:hover { border-color: var(--az-gold); color: var(--az-text); }
.az-vault-teaser__era .az-mono { font-size: 12px; font-weight: 700; }
.az-vault-teaser__desc { font-weight: 600; font-size: 13px; line-height: 1.35; }

/* Match centar */
.az-mc__label {
	margin: 0; padding: 10px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; color: var(--az-muted);
}
.az-mc__label + * { }
.az-mc > .az-mc__label ~ .az-mc__label { border-top: 1px solid var(--az-border-soft); }
.az-mc__label--live { color: var(--az-accent-text); }
.az-mc__live {
	display: flex; flex-direction: column; gap: 6px; margin: 4px 12px 10px; padding: 12px;
	border-radius: 8px; background: #1a1219; border: 1px solid #4a2230; color: var(--az-text);
}
.az-mc__live:hover { border-color: var(--az-accent); color: var(--az-text); }
.az-mc__event { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: #c7a9b0; }
.az-mc__team { display: flex; align-items: center; gap: 10px; }
.az-mc__name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-mc__score { font-size: 18px; font-weight: 700; }
.az-mc__when { width: 64px; flex: none; font-size: 12px; color: var(--az-text-3); }
.az-mc__res { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--az-muted); }
.az-mc__res.is-winner { color: #fff; font-weight: 700; }

/* Igrač nedelje */
.az-potw__body { display: flex; gap: 14px; align-items: center; padding: 16px; color: var(--az-text); }
.az-potw__body:hover { color: var(--az-text); }
.az-potw__body:hover .az-potw__name { color: var(--az-gold); }
.az-potw__photo {
	width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden;
	background: var(--az-surface-2); border: 1px solid var(--az-gold-border);
}
.az-potw__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.az-potw__name { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.az-potw__team { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--az-text-3); }
.az-potw__stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--az-gold-border); }
.az-potw__stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: 10px 4px; }
.az-potw__stats div + div { border-left: 1px solid var(--az-border); }
.az-potw__stats dt { font-size: 11px; color: var(--az-muted); }
.az-potw__stats dd { margin: 0; font-weight: 700; color: var(--az-gold); }

/* Strimovi */
.az-streams__viewers { font-size: 12px; }

/* Odzivnost početne */
@media (max-width: 1180px) {
	.az-home__grid { grid-template-columns: minmax(0, 1fr) 320px; }
	.az-home__left { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 820px) {
	/* Na telefonu kolone „nestaju" i blokovi se slažu po važnosti:
	   glavna vest → mečevi → ostale vesti → igrač/strimovi → Vault → turniri i rang. */
	.az-home__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.az-home__left, .az-home__main, .az-home__right { display: contents; }
	.az-lead { order: 1; }
	.az-mc { order: 2; }
	.az-subleads { order: 3; }
	.az-home__ad { order: 4; }
	.az-news { order: 5; }
	.az-potw { order: 6; }
	.az-streams { order: 7; }
	.az-vault-teaser { order: 8; }
	.az-ft { order: 9; }
	.az-rank { order: 10; }
	.az-rank--players { order: 11; }
	.az-tourneys { order: 12; }
	.az-home__ad--side { order: 13; }
	.az-subleads { grid-template-columns: minmax(0, 1fr); }
	.az-vault-teaser__grid { grid-template-columns: minmax(0, 1fr); }
	.az-lead__media { aspect-ratio: 4 / 3; }
	.az-lead__body { padding: 16px; }
	.az-news__comments { display: none; }
}
@media (prefers-reduced-motion: reduce) { .az-livedot { animation: none; } }

/* Zastavice */
.az-flag {
	display: inline-block; flex: none; vertical-align: middle; border-radius: 3px; object-fit: cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.az-filter__btn .az-flag { margin: 0; }
.az-filter__btn--flag { padding: 0 8px; display: inline-grid; place-items: center; }
.az-filter__btn--flag[aria-pressed="true"] { background: #2b3649; border-color: var(--az-text); }

/* Top 10 igrača */
.az-rank__name--player { display: flex; flex-direction: column; line-height: 1.25; }
.az-rank__name--player small { font-size: 11px; font-weight: 500; color: var(--az-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-rank__val { font-size: 12px; font-weight: 700; color: var(--az-text-2); }
.az-rank--players .az-rank__row:first-child .az-rank__val { color: var(--az-gold); }
.az-rank__note { margin: 0; padding: 8px 16px 12px; font-size: 11px; color: var(--az-muted); border-top: 1px solid var(--az-border-soft); }

/* ==========================================================================
   Zaštita od CSS-a drugih plugina (npr. „ol { list-style: decimal }")
   — naše liste nikad ne prikazuju automatske brojeve/tačke.
   ========================================================================== */
.az-topn, .az-topn > li,
.az-mveto__list, .az-mveto__list > li,
.az-mhero__maps, .az-mhero__maps > li,
.az-breadcrumbs ol, .az-breadcrumbs li,
.az-comments__list, .az-comments__list li,
.az-list, .az-list > li, .az-mlist, .az-mlist > li,
.az-ents, .az-ents > li, .az-mroster__list, .az-mroster__list > li,
.az-rank__list, .az-rank__list > li {
	list-style: none !important;
}
.az-topn > li::marker, .az-mveto__list > li::marker, .az-mhero__maps > li::marker,
.az-breadcrumbs li::marker, .az-comments__list li::marker, .az-list > li::marker,
.az-mlist > li::marker, .az-ents > li::marker, .az-rank__list > li::marker { content: none; }
.az-topn, .az-mveto__list, .az-mhero__maps, .az-ents, .az-mlist, .az-list { margin-left: 0 !important; }
.az-topn, .az-ents, .az-mlist, .az-mhero__maps { padding-left: 0 !important; }

/* AdSense: prazan (nepopunjen) oglas ne ostavlja beli prostor */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.az-home__ad:empty { display: none; }

/* SportsPress Sponzori: traka sponzora iznad podnožja — u bojama sajta; prazna se ne prikazuje */
.sp-footer-sponsors { background: var(--az-bg) !important; border-top: 1px solid var(--az-border); }
.sp-footer-sponsors .sp-sponsors { padding: 32px 0 !important; }
.sp-footer-sponsors .sp-sponsors-title { color: var(--az-text-2) !important; font-family: var(--az-font-disp); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.sp-footer-sponsors .sportspress, .sp-footer-sponsors .sp-sponsors, .sp-footer-sponsors .sp-sponsors-wrapper { background: transparent !important; }
.sp-footer-sponsors:not(:has(.sponsor img)) { display: none !important; }
.sp-header-sponsors:not(:has(.sponsor)) { display: none !important; }
