:root {
  --bg: #fbfaf8;
  --text: #17181a;
  --muted: #6c6f74;
  --line: #e7e4df;
  --card: #ffffff;
  --accent: #b9852a;
  --accent-ink: #fff;
  --gap: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1011; --text: #ecebe8; --muted: #9a9ea3; --line: #26282b; --card: #17181a; --accent: #e9b44c; --accent-ink: #1a1405; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.small { font-size: 13px; color: var(--muted); }

/* naslov */
.hero { position: relative; padding: 70px 22px 46px; text-align: center; overflow: hidden; }
.hero.has-cover { color: #fff; padding: 120px 22px 64px; min-height: 52vh; display: flex; align-items: flex-end; justify-content: center; }
.hero.has-cover::before { content: ""; position: absolute; inset: 0; background: var(--cover) center/cover no-repeat; transform: scale(1.04); filter: saturate(1.05); }
.hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.78) 100%); }
.hero-in { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.by { font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5.4vw, 58px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -.5px; }
.when { font-size: 16px; opacity: .88; }
.actions { margin-top: 24px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.count { font-size: 14px; opacity: .85; }
.cbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.cbtn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.has-cover .cbtn.primary { background: #fff; border-color: #fff; color: #111; }
.cbtn:hover { transform: translateY(-1px); }
.live { margin-top: 18px; display: inline-flex; gap: 9px; align-items: center; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.06); }
.has-cover .live { background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }

.toolbar { display: flex; justify-content: center; padding: 18px 16px 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; font: 600 13px var(--font); }
.seg button.on { background: var(--text); color: var(--bg); }

/* poravnana mreža */
.jgrid { padding: 6px var(--gap) 40px; max-width: 2200px; margin: 0 auto; }
.jrow { display: flex; gap: var(--gap); margin-bottom: var(--gap); }
.jitem { position: relative; overflow: hidden; background: var(--line); cursor: zoom-in; border-radius: 2px; }
.jitem img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s ease, transform .6s ease; }
.jitem img.ld { opacity: 1; }
.jitem:hover img { transform: scale(1.015); }
.jitem.fresh { animation: fresh 1.4s ease; }
@keyframes fresh { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.jitem .dl { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; transition: .15s; font-size: 16px; }
.jitem:hover .dl { opacity: 1; }
@media (hover: none) { .jitem .dl { opacity: .9; } }
.emptymsg { text-align: center; padding: 60px 20px 90px; color: var(--muted); }
.newbar { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 40; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 50px; border-top: 1px solid var(--line); }

/* ogled */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,9,.97); color: #fff; display: none; }
.lb.on { display: block; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 3; font-size: 14px; color: rgba(255,255,255,.8); padding-top: env(safe-area-inset-top); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; text-decoration: none; display: inline-flex; align-items: center; font: 600 14px var(--font); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-stage { position: absolute; inset: 58px 0 52px; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-stage img { width: calc(100% - 24px); height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 54px; height: 80px; border: 0; background: transparent; color: rgba(255,255,255,.75); font-size: 42px; cursor: pointer; }
.lb-nav:hover { color: #fff; }
.lb-nav.prev { left: 4px; } .lb-nav.next { right: 4px; }
@media (max-width: 700px) { .lb-nav { display: none; } }
.lb-cap { position: absolute; bottom: 0; left: 0; right: 0; min-height: 52px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255,255,255,.78); font-size: 14px; }

/* strani s sporočilom */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.msg { text-align: center; max-width: 460px; }
.msg h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 16px 0 8px; }
.msg p { color: var(--muted); }
.logo-mark { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd98a, #e9b44c 45%, #8a5a12); box-shadow: 0 0 0 6px rgba(233,180,76,.15); }
.pwform { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pwform input { height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 18px; font: 15px var(--font); min-width: 220px; }
.err { color: #d4483f; }
