/* Video stranica: traka kratkih (uspravnih) videa, mreža po temama i pregled preko cijelog ekrana */
.vid-page { padding-top: 0; overflow-x: clip; }
.vid-head { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; }
.vid-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.vid-head small { color: var(--muted); font-weight: 700; }
.vid-empty { display: grid; place-items: center; gap: 10px; padding: 60px 16px; color: var(--muted); text-align: center; }
.vid-empty .ic { width: 42px; height: 42px; opacity: .5; }

/* Kratki video: horizontalna traka 9:16 */
.vid-reels { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19vw, 220px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin-bottom: 30px; scrollbar-width: thin; }
.vid-reel { position: relative; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--navy); cursor: pointer; scroll-snap-align: start; text-align: left; color: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.vid-reel:hover, .vid-reel:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.vid-reel:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.vid-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 43, 0) 45%, rgba(8, 30, 43, .85)); }
.vid-reel-play { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy); display: grid; place-items: center; }
.vid-reel-play .ic { width: 18px; height: 18px; }
.vid-reel-txt { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; }
.vid-reel-txt strong { font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vid-reel-txt small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

/* Glavni player + Sljedeće — tamna traka s „ambijentalnim” sjajem iz sličice videa */
.vh-band { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw) 44px; padding: 28px calc(50vw - 50%) 34px; background: #07161f; color: #fff; overflow: hidden; }
.vh-band::before { content: ''; position: absolute; inset: -80px; z-index: -1; background: var(--vh-bg) center / cover no-repeat; filter: blur(70px) saturate(1.4); opacity: .45; transform: scale(1.1); transition: background-image .4s ease; }
.vh-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 30% 20%, rgba(7, 22, 31, .15), rgba(7, 22, 31, .85) 70%); }
.vh { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: stretch; max-width: var(--wrap); margin: 0 auto; }
.vh-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.vh-stage > .vp, .vh-stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vh-facade { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; color: #fff; }
.vh-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.vh-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55)); }
.vh-facade:hover img { transform: scale(1.025); }
.vh-big { position: absolute; z-index: 1; inset: 0; margin: auto; width: 82px; height: 82px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(10px); transition: transform .25s ease, background .25s ease; }
.vh-big svg { margin-left: 4px; }
.vh-facade:hover .vh-big, .vh-facade:focus-visible .vh-big { transform: scale(1.08); background: var(--teal); border-color: var(--teal); }
.vh-cta { position: absolute; z-index: 1; left: 50%; top: calc(50% + 56px); transform: translateX(-50%); font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .9; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.vh-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 20px 2px 0; }
.vh-copy { min-width: 0; }
.vh-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.vh-band .vid-badge { background: rgba(63, 184, 196, .18); color: #7fd6df; }
.vh-info h2 { margin: 0; font-family: var(--sans); font-weight: 750; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -.01em; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-actions { display: flex; gap: 8px; flex: none; }
.vh-act { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s ease, border-color .2s ease; max-width: 280px; }
.vh-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-act:hover { background: rgba(255, 255, 255, .16); }
.vh-act-main { background: var(--teal); border-color: var(--teal); }
.vh-act-main:hover { background: #0f6f79; }
.vh-act.is-done { border-color: #7fd6df; }
.vh-next { display: flex; flex-direction: column; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(12px); height: 0; min-height: 100%; overflow: hidden; box-sizing: border-box; }
.vh-next-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.vh-next h3 { margin: 0; font-family: var(--sans); font-size: .95rem; font-weight: 800; color: #fff; }
.vh-next h3 small { margin-left: 6px; font-weight: 600; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.vh-auto { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .75); cursor: pointer; }
.vh-auto input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .22); position: relative; cursor: pointer; transition: background .2s ease; margin: 0; }
.vh-auto input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.vh-auto input:checked { background: var(--teal); }
.vh-auto input:checked::after { transform: translateX(14px); }
.vh-auto input:focus-visible { outline: 2px solid #7fd6df; outline-offset: 2px; }
.vh-next ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; mask-image: linear-gradient(180deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); }
.vh-item { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; width: 100%; border: 0; background: transparent; color: #fff; text-align: left; padding: 8px; border-radius: 12px; cursor: pointer; font: inherit; transition: background .15s ease; }
.vh-item:hover, .vh-item:focus-visible { background: rgba(255, 255, 255, .08); }
.vh-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0c2a3b; }
.vh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vh-item:hover .vh-thumb img { transform: scale(1.06); }
.vh-txt { display: grid; gap: 4px; min-width: 0; }
.vh-txt strong { font-size: .86rem; font-weight: 700; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-txt small { font-size: .74rem; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vid-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.vid-mini-play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(5, 18, 26, .72); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .2s ease, transform .2s ease; }
.vid-mini-play svg { margin-left: 2px; }

/* Naslov + filter u istom redu */
.vid-head-row { justify-content: space-between; flex-wrap: wrap; align-items: center; }
.vid-head-row > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.vid-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-chip { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.vid-chip:hover { border-color: var(--teal); }
.vid-chip.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Mreža */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 20px; }
.vid-card[hidden] { display: none; }
.vid-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--navy); cursor: pointer; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, filter .3s ease; }
.vid-thumb .vid-badge { position: absolute; left: 10px; top: 10px; background: rgba(5, 18, 26, .7); color: #fff; backdrop-filter: blur(4px); }
.vid-thumb:hover img, .vid-thumb:focus-visible img { transform: scale(1.04); }
.vid-thumb:hover .vid-mini-play { background: var(--teal); transform: scale(1.1); }
.vid-thumb:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.vid-now { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5, 18, 26, .62); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.vid-card.is-playing .vid-now { display: grid; }
.vid-card.is-playing .vid-thumb { outline: 3px solid var(--teal); outline-offset: 3px; }
.vid-card h3 { margin: 12px 0 4px; font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.vid-card h3 button { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-card h3 button:hover { color: var(--teal); }
.vid-card h3 button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.vid-card p { margin: 0; font-size: .86rem; color: var(--muted); }
.vid-card p a { color: inherit; font-weight: 600; text-decoration: none; }
.vid-card p a:hover { color: var(--teal); text-decoration: underline; }

@media (max-width: 1000px) {
  .vh { grid-template-columns: 1fr; gap: 18px; }
  .vh-info { flex-direction: column; align-items: stretch; }
  .vh-next { height: auto; min-height: 0; }
  .vh-next ol { grid-auto-flow: column; grid-auto-columns: 210px; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; mask-image: none; -webkit-mask-image: none; }
  .vh-item { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .vh-band { padding-top: 16px; padding-bottom: 24px; }
  .vh-stage { border-radius: 14px; }
  .vh-big { width: 64px; height: 64px; }
  .vh-cta { display: none; }
  .vh-act { flex: 1; justify-content: center; max-width: none; }
}

/* Pregled preko cijelog ekrana (reels) */
html.vr-open { overflow: hidden; }
.vr { position: fixed; inset: 0; z-index: 1000; background: #05121a; color: #fff; }
.vr[hidden] { display: none; }
.vr-list { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.vr-list::-webkit-scrollbar { display: none; }
.vr-slide { position: relative; height: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.vr-frame { position: relative; height: min(100dvh - 24px, 92vh); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 18px; overflow: hidden; background: #0c2a3b center / cover no-repeat; }
.vr-frame iframe, .vr-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.vr-info { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(100% - 32px, calc((100dvh - 24px) * 9 / 16) - 28px); display: grid; gap: 6px; pointer-events: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.vr-info strong { font-size: 1rem; line-height: 1.3; }
.vr-info a { pointer-events: auto; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; background: rgba(19, 128, 139, .9); padding: 7px 12px; border-radius: 999px; justify-self: start; text-shadow: none; }
.vr-slide.is-on .vr-info { bottom: 74px; } /* iznad kontrola playera */
.vr-close, .vr-nav { position: absolute; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.vr-close:hover, .vr-nav:hover { background: rgba(255, 255, 255, .26); }
.vr-close { top: 16px; right: 16px; }
.vr-nav { right: 20px; }
.vr-up { top: calc(50% - 56px); }
.vr-down { top: calc(50% + 10px); }
.vr-nav:disabled { opacity: .3; cursor: default; }
@media (max-width: 640px) {
  .vr-frame { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; }
  .vr-nav { display: none; }
  .vr-info { width: calc(100% - 32px); }
  .vid-reels { grid-auto-columns: 42vw; }
}

/* Traka s naslovom i filterom (kompaktna, ljepi se ispod zaglavlja dok se lista) */
.vid-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin: 0 0 22px; padding: 12px 0; }
.vid-bar-sticky { position: sticky; top: var(--header-h, 76px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.vid-bar-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--sans); font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.vid-bar-title .ic { width: 22px; height: 22px; color: var(--teal); }
.vid-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vid-bar .vid-chips { margin: 0; }
.vid-bar .vid-chip { padding: 6px 13px; font-size: .85rem; }
@media (max-width: 760px) {
  .vid-bar .vid-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .vid-bar .vid-chips::-webkit-scrollbar { display: none; }
  .vid-bar .vid-chip { flex: none; }
}
