:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --surface: #1a1a1c;
  --surface-2: #232326;
  --line: #2b2b2f;
  --text: #f5f5f7;
  --muted: #a3a3ad;
  --accent: #ece6da;
  --accent-ink: #111114;
  --gold: #d9c39a;
  --ok: #46d369;
  --danger: #ff5c5c;
  --radius: 12px;
  --shadow: 0 24px 70px rgba(0,0,0,.65);
  --display: 'Outfit', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; }
.icon-btn svg, .btn svg, .ctl svg, .send svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[hidden] { display: none !important; }

/* ---------- top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(10,10,14,.92), rgba(10,10,14,0));
  transition: background .25s;
}
.topbar.solid { background: rgba(10,10,14,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.06); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font: 700 13px/1 var(--display); color: var(--accent-ink);
  background: var(--gold); object-fit: cover;
}

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 20px; cursor: pointer;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .12s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; }
.btn-light { background: var(--text); color: #111; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255,107,107,.35); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- views */
.view { min-height: 100vh; }
.page { padding: 96px clamp(16px, 4vw, 48px) 120px; max-width: 1400px; margin: 0 auto; }
.page h1 { font: 800 clamp(28px, 4vw, 44px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }
.center-msg { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 96px 24px; }
.center-msg p { color: var(--muted); }

/* ---------- hero */
.hero { position: relative; min-height: min(78vh, 760px); overflow: hidden; display: grid; }
/* Slajdovi stoje jedan preko drugog; vidi se samo aktivni */
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end;
  padding: 120px clamp(16px, 4vw, 48px) clamp(56px, 8vh, 96px);
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s;
}
.hero-slide.active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero-art {
  position: absolute; inset: 0; background-size: cover; transform: scale(1.04); transition: transform 9s ease-out;
  background-image: var(--art-wide); background-position: var(--art-pos, center 35%);
}
.hero-slide.active .hero-art { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(10,10,14,.55) 40%, rgba(10,10,14,.15) 70%),
    linear-gradient(to right, rgba(10,10,14,.85), rgba(10,10,14,0) 65%);
}
.hero-dots { position: absolute; z-index: 3; left: clamp(16px, 4vw, 48px); bottom: clamp(20px, 3vh, 36px); display: flex; gap: 8px; }
.hero-dot { width: 26px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.hero-dot.active { background: var(--accent); width: 40px; }
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.kicker { font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero h1 { font: 800 clamp(40px, 7vw, 84px)/.95 var(--display); letter-spacing: -.04em; margin: 0 0 14px; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.meta span + span::before { content: "•"; margin-right: 10px; opacity: .6; }
.hero p.desc { margin: 0 0 24px; color: #d6d3cf; font-size: 16px; max-width: 56ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- rows */
.rows { padding: 0 0 120px; position: relative; z-index: 2; }
.row { margin-bottom: 36px; }
.row h2 { font: 700 20px/1 var(--display); letter-spacing: -.01em; margin: 0 clamp(16px, 4vw, 48px) 14px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 200px);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px clamp(16px, 4vw, 48px) 16px; scrollbar-width: thin;
}
.card {
  position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; cursor: pointer;
  scroll-snap-align: start; border: 0; padding: 0; background: var(--surface);
  transition: transform .2s, box-shadow .2s;
}
.card:hover, .card:focus-visible { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow); outline: none; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .card-label {
  position: absolute; inset: auto 0 0 0; padding: 30px 10px 10px; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  font: 600 13px/1.25 var(--body);
}
.poster-fallback {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; text-align: left;
}
.poster-fallback b { font: 800 clamp(18px, 2vw, 24px)/1 var(--display); letter-spacing: -.02em; }
.poster-fallback small { color: rgba(255,255,255,.7); margin-top: 6px; }

/* ---------- modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.5); color: #fff; }
.film-detail .art { aspect-ratio: 16/8; background-size: cover; background-position: center; position: relative; }
.film-detail .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2), transparent 60%); }
.film-detail .body { padding: 0 28px 28px; margin-top: -60px; position: relative; }
.film-detail h2 { font: 800 clamp(28px, 4vw, 40px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.film-detail p { color: #d6d3cf; }
.trailer-frame { aspect-ratio: 16/9; width: 100%; display: block; border: 0; background: #000; }

/* ---------- forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; outline: none; transition: border-color .2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ---------- login */
.login-card {
  width: min(420px, 100%); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; text-align: left; box-shadow: var(--shadow);
}
.login-card h1 { font: 800 32px/1 var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.login-card .or { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0; }
#g-btn { min-height: 44px; display: flex; justify-content: center; }

/* ---------- admin */
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 28px; align-items: start; }
.admin-list { display: grid; gap: 10px; }
.admin-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.admin-item .thumb { width: 52px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; }
.admin-item h3 { margin: 0; font: 700 16px/1.2 var(--display); }
.admin-item small { color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.pill.ok { background: rgba(79,209,139,.15); color: var(--ok); }
.pill.no { background: rgba(255,255,255,.08); color: var(--muted); }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel h2 { font: 700 20px/1 var(--display); margin: 0 0 18px; }
.imdb-field { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.imdb-row { display: flex; gap: 8px; }
.imdb-row input { flex: 1; min-width: 0; }
.img-preview { display: grid; grid-template-columns: 90px 1fr; gap: 10px; margin-bottom: 14px; align-items: start; }
.img-preview > div { display: grid; gap: 4px; }
.img-preview small { color: var(--muted); font-size: 11px; }
.pv-poster img { width: 90px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; background: var(--surface); }
.pv-backdrop img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--surface); }
.files { margin-top: 12px; font-size: 13px; background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.files li { margin: 2px 0; }
.files .chosen { color: var(--gold); font-weight: 600; }

/* ---------- room */
.room { padding: 72px clamp(0px, 2vw, 24px) 140px; max-width: 1500px; margin: 0 auto; }
.stage {
  position: relative; background: #000; border-radius: clamp(0px, 1vw, 14px); overflow: hidden;
  aspect-ratio: 16/9; max-height: calc(100vh - 220px); width: 100%; margin: 0 auto;
}
.stage video { width: 100%; height: 100%; display: block; background: #000; }
.stage video::cue { background: rgba(0,0,0,.65); font-family: var(--body); }
.net-info {
  position: absolute; top: calc(50% + 34px); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); padding: 5px 12px; border-radius: 999px; font-size: 13px; color: #ddd;
  white-space: nowrap; pointer-events: none;
}
.prep-info { display: block; margin-top: 10px; color: var(--gold); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.embed-host { position: absolute; inset: 0; background: #000; }
.embed-host iframe, .embed-host > div { width: 100%; height: 100%; border: 0; display: block; }
.click-catch { position: absolute; inset: 0 0 76px 0; cursor: pointer; }
.stage.frame .controls { display: none; }
.countdown {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5;
  font: 800 clamp(80px, 18vw, 220px)/1 var(--display); color: #fff; letter-spacing: -.04em;
  text-shadow: 0 6px 40px rgba(0,0,0,.8), 0 0 60px rgba(255,90,74,.6);
}
.countdown.tick { animation: cd .9s ease-out; }
@keyframes cd { from { transform: scale(1.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: .85; } }
.stage-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(10,10,14,.65), rgba(10,10,14,.92)); padding: 24px;
}
.stage-overlay h2 { font: 800 clamp(24px, 3.5vw, 40px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.stage-overlay p { color: var(--muted); margin: 0 0 20px; max-width: 46ch; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.buffering { position: absolute; top: 50%; left: 50%; margin: -21px 0 0 -21px; pointer-events: none; }

.controls {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  display: grid; gap: 8px; opacity: 0; transition: opacity .25s;
}
.stage:hover .controls, .stage.show-ui .controls, .stage.paused .controls { opacity: 1; }
.seek { position: relative; height: 18px; cursor: pointer; display: flex; align-items: center; }
.seek-track { position: relative; width: 100%; height: 4px; background: rgba(255,255,255,.22); border-radius: 4px; overflow: hidden; transition: height .15s; }
.seek:hover .seek-track { height: 6px; }
.seek-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; }
.seek-hover { position: absolute; bottom: 20px; transform: translateX(-50%); background: rgba(0,0,0,.8); padding: 3px 7px; border-radius: 6px; font-size: 12px; pointer-events: none; }
.ctl-row { display: flex; align-items: center; gap: 6px; }
.ctl { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 8px; }
.ctl:hover { background: rgba(255,255,255,.12); }
.ctl svg { width: 22px; height: 22px; }
.ctl.fill svg { fill: currentColor; stroke: none; }
.time { font-variant-numeric: tabular-nums; font-size: 13px; color: #ddd; margin-left: 6px; white-space: nowrap; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
.spacer { flex: 1; }

.roombar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 16px clamp(16px, 2vw, 8px); border-bottom: 1px solid var(--line);
}
.roombar h1 { font: 800 clamp(20px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.roombar small { color: var(--muted); }
.members { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.member { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 5px 12px 5px 5px; border-radius: 999px; font-size: 13px; }
.member .avatar { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px var(--surface); transition: box-shadow .12s; }
.member.speaking .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ok), 0 0 14px 2px rgba(79,209,139,.6); }
button.member { border: 1px solid transparent; cursor: pointer; color: inherit; font: inherit; }
button.member:hover { border-color: var(--line); background: var(--surface-2); }
.member .spk { display: flex; color: var(--muted); opacity: 0; transition: opacity .15s; }
.member .spk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.member:hover .spk, .member.silenced .spk { opacity: 1; }
.member.silenced { opacity: .55; }
.member.silenced .spk { color: var(--danger); }
.member.silenced span:not(.spk):not(.mic):not(.avatar) { text-decoration: line-through; }
.silence-all.on { background: rgba(255,107,107,.15); color: var(--danger); }
.member .mic { color: var(--muted); display: flex; }
.member .mic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.member .mic.off { color: var(--danger); }

.voicebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 14px clamp(16px, 2vw, 8px);
}
.mic-btn { min-width: 170px; }
.mic-btn.live { background: var(--ok); color: #04170c; }
.mic-btn.muted { background: rgba(255,107,107,.15); color: var(--danger); }
.slider { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.slider input { width: 120px; accent-color: var(--accent); }
.invite { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.invite input { width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--muted); }
.tip { font-size: 12px; color: var(--muted); padding: 0 clamp(16px, 2vw, 8px); }

body.theater .topbar { display: none; }
body.theater .room { padding: 0; max-width: none; }
body.theater .stage { max-height: 100vh; height: 100vh; height: 100dvh; max-height: 100dvh; aspect-ratio: auto; border-radius: 0; }
body.theater .roombar, body.theater .voicebar, body.theater .tip { display: none; }

/* ---------- chat */
.chat {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 360px; height: 440px; display: flex; flex-direction: column;
  background: rgba(18,18,24,.94); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: width .2s, height .2s;
}
.chat[data-size="large"] { width: min(560px, calc(100vw - 32px)); height: min(78vh, 760px); }
.chat[data-size="min"] { height: 48px; width: 240px; }
.chat[data-size="min"] .chat-body { display: none; }
.chat-head { display: flex; align-items: center; padding: 6px 6px 6px 8px; border-bottom: 1px solid var(--line); }
.chat[data-size="min"] .chat-head { border-bottom: 0; }
.chat-title { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 6px; font-weight: 600; text-align: left; }
.chat-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chat-title .dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.chat-actions { display: flex; }
.chat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-list { flex: 1; overflow-y: auto; margin: 0; padding: 12px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.msg { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.msg .avatar { width: 28px; height: 28px; font-size: 11px; }
.msg .name { font-size: 12px; font-weight: 600; color: var(--gold); }
.msg .name time { color: var(--muted); font-weight: 400; margin-left: 6px; }
.msg .text { word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mine .name { color: var(--accent); }
.sys { text-align: center; font-size: 12px; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.send { width: 40px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.send svg { width: 18px; height: 18px; }
.chat-locked { padding: 24px; text-align: center; color: var(--muted); margin: auto; }

/* ---------- toasts */
.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; }
.toast { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; animation: pop .2s ease-out; }
.toast.err { border-color: rgba(255,107,107,.5); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* Sadržaj ne smije ostati ispod chata */
body[data-chat="normal"] .page { padding-bottom: 500px; }
body[data-chat="large"] .page { padding-bottom: 82vh; }

/* U sobi na širokom ekranu chat je bočna traka (kao Twitch), pa ne prekriva film */
@media (min-width: 1100px) {
  body.in-room .room { max-width: none; margin-right: 372px; transition: margin .2s; }
  body.in-room .chat:not([data-size="min"]) { top: 76px; bottom: 16px; height: auto; width: 340px; }
  body.in-room[data-chat="large"] .room { margin-right: 492px; }
  body.in-room .chat[data-size="large"] { width: 460px; }
  body.in-room[data-chat="min"] .room { margin-right: auto; max-width: 1500px; }
  body.in-room.theater .chat:not([data-size="min"]) { top: 16px; }
  body.in-room.theater[data-chat="min"] .room { max-width: none; }
}

/* ---------- responsive */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .invite { margin-left: 0; width: 100%; }
  .invite input { flex: 1; width: auto; }
}
@media (max-width: 640px) {
  .topbar { gap: 12px; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .brand span { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: 50vh; }
  body.in-room .chat[data-size="normal"] { height: 36vh; }
  body.in-room[data-chat="normal"] .room { padding-bottom: 40vh; }
  .chat[data-size="large"] { width: auto; height: 80vh; }
  .chat[data-size="min"] { width: auto; left: auto; }
  .stage { max-height: none; }
  .slider input { width: 90px; }
  .film-detail .body { padding: 0 18px 22px; }
}

/* ---------- titlovi u admin panelu */
.subs-status { color: var(--muted); font-size: 13px; margin: -20px 0 24px; }
.subs-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.subs-box h3 { font: 700 16px/1 var(--display); margin: 0 0 10px; }
.subs-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.subs-list li { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 8px; padding: 6px 6px 6px 10px; }
.subs-list li small { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subs-list li.muted { color: var(--muted); font-size: 13px; background: none; padding: 0; }
.subs-list .icon-btn { width: 28px; height: 28px; }
.cc-pill { font-size: 10px; font-weight: 700; border: 1px solid var(--muted); border-radius: 3px; padding: 0 3px; }

/* ---------- instalacija aplikacije */
.install-btn .install-short { display: none; }
.install-modal { padding: 32px 28px 28px; text-align: left; }
.install-modal img { border-radius: 16px; display: block; margin-bottom: 16px; }
.install-modal h2 { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.install-modal p { color: var(--muted); margin: 0 0 18px; }
.install-modal ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
@media (max-width: 640px) {
  .install-btn .install-long { display: none; }
  .install-btn .install-short { display: inline; }
}
@media (display-mode: standalone) {
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); }
}

/* Telefon, cijeli ekran: smanjeni chat ide gore, da ne prekriva kontrole playera */
@media (max-width: 900px) {
  body.theater .chat[data-size="min"] { bottom: auto; top: max(8px, env(safe-area-inset-top)); right: 8px; left: auto; opacity: .85; }
}

/* ---------- gledanje bez ometanja: UI se skloni nakon 3 s neaktivnosti dok film ide */
.topbar, .chat, .controls, .roombar, .voicebar, .tip { transition: opacity .5s ease; }
body.idle { cursor: none; }
body.idle .topbar, body.idle .chat, body.idle .roombar, body.idle .voicebar, body.idle .tip,
body.idle .stage .controls, body.idle .net-info {
  opacity: 0 !important; pointer-events: none !important;
}
/* U cijelom ekranu chat lebdi preko filma (ne oduzima širinu), pa slika ostaje preko cijelog ekrana */
@media (min-width: 1100px) {
  body.in-room.theater .room { margin-right: 0 !important; }
  body.in-room.theater .chat:not([data-size="min"]) { background: rgba(18,18,24,.82); }
}
.chat-peek {
  position: fixed; left: 24px; bottom: 32px; z-index: 55; max-width: min(420px, calc(100vw - 48px));
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px;
  background: rgba(10,10,14,.78); backdrop-filter: blur(8px); border-radius: 14px;
  box-shadow: var(--shadow); font-size: 14px; opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s; pointer-events: none;
}
.chat-peek.show { opacity: 1; transform: none; }
.chat-peek .avatar { width: 28px; height: 28px; font-size: 11px; }
.chat-peek .peek-name { display: block; color: var(--gold); font-size: 12px; }
.chat-peek .peek-text { overflow-wrap: anywhere; }
.stage .chat-peek { position: absolute; left: 16px; bottom: 20px; }

/* ---------- admin: početna (hero) */
.hero-admin { margin-bottom: 28px; }
.hero-admin-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.hero-admin-head h2 { margin: 0 0 6px; }
.hero-admin .hint { color: var(--muted); font-size: 13px; margin: 0; }
.hero-slides { display: grid; gap: 12px; }
.hero-slide-edit { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.hs-preview { position: relative; aspect-ratio: 16/9; border-radius: 8px; background-size: cover; background-position: center; }
.hs-num { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.7); border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: 13px; }
.hs-tag { position: absolute; bottom: 6px; left: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.hs-fields { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hs-fields select, .hs-fields input { width: 100%; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; outline: none; }
.hs-fields select:focus, .hs-fields input:focus { border-color: var(--accent); }
.hs-row { display: flex; gap: 8px; align-items: center; }
.hs-row input { flex: 1; }
.hs-row select { width: auto; }
.hs-row .icon-btn { font-size: 16px; }
.hs-row .icon-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 700px) { .hero-slide-edit { grid-template-columns: 1fr; } }

/* ---------- sobe: pridruživanje kodom, vrsta sobe */
.nav-join {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent;
  color: var(--text); padding: 5px 12px; border-radius: 999px; font-weight: 500; cursor: pointer;
}
.nav-join:hover { border-color: var(--gold); color: var(--gold); }
.nav-join svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.live-badge { margin-left: 4px; background: var(--ok); color: #04170c; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.join-modal { padding: 32px 28px 28px; }
.join-modal h2 { font: 800 28px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.join-modal p { color: var(--muted); margin: 0 0 18px; }
.code-input {
  width: 100%; margin-bottom: 14px; text-align: center; letter-spacing: .3em; text-transform: uppercase;
  font: 800 30px/1 var(--display); padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); outline: none;
}
.code-input:focus { border-color: var(--accent); }
.room-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.pill-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill-kind.public { background: rgba(79,209,139,.14); color: var(--ok); }
.pill-kind svg, .room-code svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room-code { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--gold); background: rgba(243,194,107,.08); color: var(--text); padding: 3px 10px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.room-code b { letter-spacing: .14em; color: var(--gold); }
.hero-interval { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hero-interval input { width: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); }
@media (max-width: 640px) {
  .nav-join span { display: none; }
  .nav-join { padding: 7px; }
}

/* Telefon uspravno: uspravna slika (poster) preko cijelog bannera, tekst pri dnu */
@media (max-width: 700px) and (orientation: portrait) {
  .hero { min-height: min(88vh, 760px); min-height: min(88svh, 760px); }
  .hero-art { background-image: var(--art-tall, var(--art-wide)); background-position: center top; }
  .hero-slide { padding-bottom: 64px; }
  .hero-slide::after {
    background: linear-gradient(to top, var(--bg) 4%, rgba(10,10,14,.75) 32%, rgba(10,10,14,.1) 60%, rgba(10,10,14,.35) 100%);
  }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero p.desc { -webkit-line-clamp: 2; font-size: 15px; }
  .hero .actions .btn { padding: 10px 14px; }
}
.hs-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hs-tall { position: absolute; right: 6px; bottom: 6px; width: 38px; aspect-ratio: 2/3; border-radius: 4px; background-size: cover; background-position: center; box-shadow: 0 0 0 2px rgba(0,0,0,.6); }

/* ---------- meni na telefonu */
.menu-btn, .who-join { display: none; }
.menu-btn, .who-join {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06);
  color: var(--text); place-items: center; cursor: pointer; flex: none;
}
.menu-btn svg, .who-join svg, .mobile-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn.open { background: var(--surface-2); border-color: var(--gold); }
.mobile-menu {
  position: fixed; z-index: 45; top: 64px; right: 8px; left: 8px; max-height: calc(100vh - 80px); overflow: auto;
  display: grid; gap: 4px; padding: 10px;
  background: rgba(18,18,24,.98); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .15s ease-out;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a, .mobile-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 0; background: transparent; color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px; cursor: pointer; text-align: left;
}
.mobile-menu a:hover, .mobile-menu button:hover, .mobile-menu a.active { background: rgba(255,255,255,.06); }
.mobile-menu .mm-danger { color: var(--danger); }
.mobile-menu .mm-primary { background: var(--accent); justify-content: center; }
.mm-user { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mm-user b { display: block; }
.mm-user small { color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .topbar { gap: 8px; }
  .topbar .nav, .topbar .install-btn, .who .logout-btn { display: none !important; }
  .brand { margin-right: auto; }
  .brand span { display: inline; font-size: 20px; }
  .who { gap: 8px; }
  .who .avatar { width: 36px; height: 36px; }
  .menu-btn, .who-join { display: grid; }
}
@media (min-width: 641px) { .mobile-menu { display: none !important; } }

/* ---------- soba na telefonu: dugmad za ulazak moraju stati */
@media (max-width: 640px) {
  .stage:has(.stage-overlay:not([hidden])) { aspect-ratio: auto; min-height: 300px; }
  .stage-overlay { padding: 16px; }
  .stage-overlay h2 { font-size: 22px; margin-bottom: 6px; }
  .stage-overlay p { font-size: 13px; margin-bottom: 14px; }
  .stage-overlay .actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .stage-overlay .actions .btn { padding: 10px 14px; }
}

/* ---------- telefon: ništa ne smije biti šire od ekrana */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .stage:has(.stage-overlay:not([hidden])) .controls { display: none; }
  .ctl { width: 34px; height: 34px; }
  .ctl svg { width: 20px; height: 20px; }
  .ctl-row { gap: 2px; }
  .time { font-size: 12px; margin-left: 2px; }
  .invite { flex-wrap: wrap; }
  .invite input { min-width: 0; flex: 1 1 140px; }
  .invite .btn { flex: 1 1 auto; }
  .voicebar { gap: 12px 16px; }
  .voicebar .slider { flex: 1 1 140px; }
  .voicebar .slider input { flex: 1; width: auto; min-width: 0; }
  .roombar { padding-left: 16px; padding-right: 16px; }
  .voicebar, .tip { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) { #c-back, #c-fwd { display: none; } }

/* ---------- društvo: online prijatelji, poruke, profil */
.friends-btn, .msg-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex: none;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text);
  height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 500; font-size: 14px;
}
.friends-btn:hover, .msg-btn:hover, .friends-btn[aria-expanded="true"] { border-color: var(--ok); }
.friends-btn svg, .msg-btn svg, .member-add svg, .wish-btn svg, .av-edit svg, .search-box svg, .profile-row h2 svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.friends-btn svg, .msg-btn svg { width: 18px; height: 18px; }
.msg-btn { width: 36px; padding: 0; justify-content: center; }
.fb-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ok); color: #04170c; font: 700 12px/20px var(--body); text-align: center; }
.fb-count.zero { background: var(--surface-2); color: var(--muted); }
.fb-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.badge-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--body); }
.msg-btn .badge-dot { position: absolute; top: -5px; right: -5px; box-shadow: 0 0 0 2px var(--bg); }
.me-link { display: flex; border-radius: 50%; }
.me-link:hover .avatar, .me-link:focus-visible .avatar { box-shadow: 0 0 0 2px var(--gold); }
.mobile-menu .badge-dot { margin-left: auto; }

.av-wrap { position: relative; display: inline-flex; flex: none; }
.presence { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); display: inline-block; }
.av-wrap .presence { position: absolute; right: -1px; bottom: -1px; box-shadow: 0 0 0 2.5px var(--bg-2); }
.presence.on { background: var(--ok); }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatar.xxl { width: 120px; height: 120px; font-size: 40px; }

.friends-pop {
  position: fixed; z-index: 46; top: 64px; right: clamp(16px, 4vw, 48px); width: min(380px, calc(100vw - 16px));
  max-height: calc(100vh - 84px); overflow: auto; padding: 8px;
  background: rgba(18,18,24,.98); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .15s ease-out;
}
.fp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px 10px; }
.fp-head b { font: 700 17px/1 var(--display); }
.fp-head span { color: var(--muted); font-size: 13px; }
.fp-sec { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fp-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; }
.fp-row:hover { background: rgba(255,255,255,.04); }
.fp-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fp-who .avatar { width: 38px; height: 38px; }
.fp-text { min-width: 0; display: grid; }
.fp-text b, .fp-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-text small { color: var(--muted); font-size: 12.5px; }
.fp-text small.watching { color: var(--gold); }
.fp-actions { display: flex; gap: 4px; align-items: center; flex: none; }
.fp-empty { color: var(--muted); font-size: 14px; padding: 6px 10px 12px; margin: 0; }
.fp-foot { display: flex; gap: 8px; padding: 10px 6px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.fp-foot .btn { flex: 1; }

/* ---- poruke */
.dm-panel {
  position: fixed; z-index: 58; top: 0; right: 0; bottom: 0; width: min(400px, 100vw);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  animation: slide-in .2s ease-out;
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.dm-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); min-height: 64px; }
.dm-head > b { flex: 1; font: 700 20px/1 var(--display); }
.dm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dm-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-who small { color: var(--muted); font-size: 12px; }
.dm-who small.online { color: var(--ok); }
.dm-body { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.dm-convos { display: grid; padding: 0 8px; }
.dm-convo { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; width: 100%; }
.dm-convo:hover { background: rgba(255,255,255,.05); }
.dm-convo .avatar { width: 42px; height: 42px; }
.dm-cv-text { flex: 1; min-width: 0; display: grid; }
.dm-cv-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-convo.unread .dm-cv-text small { color: var(--text); font-weight: 600; }
.dm-cv-meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 11px; }
.dm-sec { padding: 16px 16px 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dm-empty { color: var(--muted); text-align: center; padding: 24px 20px; margin: auto; list-style: none; }
.dm-list { flex: 1; overflow-y: auto; margin: 0; padding: 14px; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dm-day { align-self: center; font-size: 11px; color: var(--muted); padding: 10px 0 4px; }
.dm-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; }
.dm-msg .bubble { background: var(--surface-2); padding: 8px 12px; border-radius: 16px 16px 16px 4px; overflow-wrap: anywhere; white-space: pre-wrap; }
.dm-msg.mine .bubble { background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 4px 16px; }
.dm-msg time { font-size: 10.5px; color: var(--muted); margin: 2px 6px 4px; }
.dm-form { display: flex; gap: 8px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.dm-form input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; outline: none; }
.dm-form input:focus { border-color: var(--accent); }
.dm-form .send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.dm-form .send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dm-locked { color: var(--muted); margin: 4px auto; font-size: 14px; }
@media (min-width: 1100px) { body.dm-open.in-room .chat:not([data-size="min"]) { right: 416px; } }
.dm-toast { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; border: 1px solid var(--line); max-width: min(360px, calc(100vw - 32px)); }
.dm-toast .avatar { width: 30px; height: 30px; font-size: 11px; }
.dm-toast span { display: grid; min-width: 0; }
.dm-toast small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- lista želja */
.wish-btn.on { color: var(--accent); }
.wish-btn.on svg { fill: currentColor; }
.wish-btn.compact { padding-left: 13px; padding-right: 13px; }
.wish-btn.compact span { display: none; }
.card .card-label small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; margin-top: 2px; }

/* ---- ime u chatu, kartica osobe */
.name-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.name-link:hover { color: var(--gold); text-decoration: underline; }
.user-card { padding: 36px 28px 28px; text-align: center; display: grid; justify-items: center; min-height: 120px; }
.modal-card:has(.user-card), .modal-card:has(.join-modal) { width: min(440px, 100%); }
.user-card h2 { font: 800 26px/1.1 var(--display); margin: 14px 0 2px; }
.uname { color: var(--muted); margin: 0 0 8px; }
.ustatus { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.ustatus.online { color: var(--ok); }

/* ---- soba: dodaj osobu za prijatelja */
.member-wrap { display: inline-flex; align-items: center; gap: 4px; }
.member-add {
  width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--line); background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.member-add svg { width: 15px; height: 15px; }
button.member-add:hover { border-color: var(--ok); color: var(--ok); border-style: solid; }
.member-add.accept { border: 1px solid var(--ok); color: var(--ok); background: rgba(79,209,139,.12); }
.member-add.sent { border-style: solid; color: var(--ok); cursor: default; }

/* ---- profil */
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.profile-av { position: relative; }
.profile-av .avatar.xxl { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line); }
.av-edit { position: absolute; right: 0; bottom: 2px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.av-edit svg { width: 18px; height: 18px; }
.profile-info { min-width: 0; flex: 1; }
.profile-info h1 { margin-bottom: 2px; overflow-wrap: anywhere; }
.profile-info .actions { margin-top: 14px; gap: 8px; }
.profile-page .row h2 { margin-left: 0; display: flex; align-items: center; gap: 8px; }
.profile-row h2 svg { width: 18px; height: 18px; color: var(--accent); }
.profile-page .strip { margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); }
.profile-empty { color: var(--muted); margin: 0 0 8px; }
.pe-av { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.pe-av > div { display: flex; gap: 8px; flex-wrap: wrap; }
.at-input { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding-left: 12px; }
.at-input:focus-within { border-color: var(--accent); }
.at-input span { color: var(--muted); }
.at-input input { border: 0 !important; background: transparent !important; padding-left: 4px !important; }

/* ---- prijatelji */
.friends-page { max-width: 820px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 15px 0; font-size: 16px; }
.people-list { display: grid; gap: 8px; }
.sec-title { font: 700 18px/1 var(--display); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title .count { font: 600 12px/1 var(--body); color: var(--muted); background: var(--surface-2); padding: 4px 8px; border-radius: 999px; }
.person { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
.person-who { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.person-who .avatar { width: 44px; height: 44px; }
.person-who b { display: block; }
.person-who small { color: var(--muted); font-size: 13px; }
.person-who .online { color: var(--ok); }
.person-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .friends-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .friends-btn .fb-label, .msg-btn { display: none; }
  .friends-btn .fb-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 4px; box-shadow: 0 0 0 2px var(--bg); }
  .friends-btn .fb-dot { top: auto; bottom: -3px; right: -3px; }
  .friends-pop { top: 64px; right: 8px; left: 8px; width: auto; }
  .dm-panel { width: 100vw; border-left: 0; }
  .profile-head { flex-direction: column; text-align: center; gap: 16px; }
  .profile-info .actions { justify-content: center; }
  .avatar.xxl { width: 104px; height: 104px; }
  .person-actions { width: 100%; }
  .person-actions .btn { flex: 1; }
}
@media (max-width: 380px) { .brand span { display: none !important; } }

/* ---------- smajliji */
.chat-form, .dm-form { position: relative; align-items: center; }
.emoji-btn {
  width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.emoji-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.emoji-btn:hover, .emoji-btn.on { color: var(--gold); background: rgba(243,194,107,.1); }
.chat-form .emoji-btn { margin-right: -4px; }
.emoji-pop {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 5;
  max-height: min(260px, 40vh); overflow-y: auto; padding: 6px 8px 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: pop .12s ease-out; overscroll-behavior: contain;
}
.ep-title { position: sticky; top: -6px; background: var(--bg-2); padding: 6px 2px 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.ep-grid button { height: 38px; border: 0; background: none; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.ep-grid button:hover { background: rgba(255,255,255,.08); transform: scale(1.12); }
.msg .text, .dm-msg .bubble { font-family: var(--body), 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }

/* ---------- chat: zahtjev za prijateljstvo pored imena */
.msg .name { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.msg .name time { order: 3; margin-left: 0; }
.chat-add {
  order: 2; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 5px;
  border: 1px solid rgba(79,209,139,.4); border-radius: 999px; background: rgba(79,209,139,.08); color: var(--ok);
  font: 600 11px/1 var(--body); cursor: pointer;
}
.chat-add svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chat-add:hover { background: rgba(79,209,139,.2); border-color: var(--ok); }
.chat-add:disabled { opacity: .5; }

/* ---------- izbor avatara */
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.av-pick { aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: none; position: relative; transition: transform .12s; }
.av-pick img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.av-pick:hover { transform: scale(1.07); }
.av-pick.on { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--accent); }
.av-pick.on::after {
  content: "✓"; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 12px/20px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--bg-2);
}
.profile-edit { max-height: calc(100vh - 40px); }
.pe-av > div { flex: 1; }
.chat-form .send { height: 38px; flex: none; }

/* ---------- TV */
.tv-modal h2 { display: flex; align-items: center; gap: 10px; }
.tv-modal h2 svg, .tv-opt .btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-modal h2 svg { width: 28px; height: 28px; color: var(--gold); }
.tv-opt { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 10px; }
.tv-opt > div { min-width: 0; flex: 1; display: grid; gap: 6px; justify-items: start; }
.tv-opt small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tv-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tv-addr { font: 700 18px/1.2 var(--body); color: var(--text); background: var(--bg-2); padding: 6px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.tv-code { font: 800 34px/1 var(--display); letter-spacing: .3em; color: var(--gold); padding: 6px 0 2px; min-height: 40px; }

.tv-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.tv-card { width: min(560px, 100%); text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px; box-shadow: var(--shadow); }
.tv-logo { display: flex; align-items: center; justify-content: center; gap: 12px; font: 800 30px/1 var(--display); margin-bottom: 14px; }
.tv-logo svg { width: 40px; height: 40px; }
.tv-card p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.tv-card .code-input { font-size: 46px; padding: 18px; }
.tv-card .btn { width: 100%; font-size: 20px; padding: 16px; }
.tv-card .btn svg { width: 22px; height: 22px; }
.tv-card :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
body.tv-mode .topbar, body.tv-mode .chat, body.tv-mode .chat-peek { display: none !important; }
.tv-player { position: fixed; inset: 0; background: #000; z-index: 40; }
.tv-player video, .tv-player iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.tv-info { position: absolute; left: 24px; top: 20px; right: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; opacity: .85; transition: opacity .4s; pointer-events: none; }
.tv-info b { font: 700 22px/1 var(--display); text-shadow: 0 2px 8px #000; }
.tv-info span { color: #ddd; text-shadow: 0 2px 8px #000; }
.tv-keys { display: flex; gap: 6px; margin-left: auto; pointer-events: auto; }
.tv-player:hover .tv-info { opacity: 1; }

/* ---------- iskačuće obavijesti (zahtjev za pridruživanje) */
.notify-stack { position: fixed; z-index: 90; top: 76px; right: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
:fullscreen .notify-stack, :-webkit-full-screen .notify-stack { position: absolute; top: 16px; }
.notify {
  position: relative; overflow: hidden; pointer-events: auto; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 40px 14px 14px; border-radius: 16px; background: rgba(23,23,31,.97); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: nt-in .25s ease-out;
}
.notify.out { opacity: 0; transform: translateX(20px); transition: .25s; }
@keyframes nt-in { from { opacity: 0; transform: translateX(30px); } }
.notify .avatar { width: 42px; height: 42px; }
.nt-body { min-width: 0; display: grid; gap: 3px; }
.nt-body b { font-size: 15px; line-height: 1.3; }
.nt-body small { color: var(--muted); font-size: 13px; }
.nt-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.nt-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; }
.nt-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: nt-bar linear forwards; }
@keyframes nt-bar { to { transform: scaleX(0); } }
@media (max-width: 640px) { .notify-stack { top: 64px; right: 8px; left: 8px; width: auto; } }

/* ---------- soba: ＋ na ikonici osobe koja ti nije prijatelj */
.member-wrap { position: relative; display: inline-flex; }
.member-wrap .member-add {
  position: absolute; left: 22px; top: -7px; z-index: 2; width: 21px; height: 21px; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--ok); color: #04170c; display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .12s;
}
.member-wrap .member-add svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.member-wrap button.member-add:hover { transform: scale(1.18); border-color: var(--bg); color: #04170c; }
.member-wrap .member-add.accept { background: var(--gold); animation: pulse-add 1.4s ease-in-out infinite; }
@keyframes pulse-add { 50% { box-shadow: 0 0 0 5px rgba(243,194,107,.3); } }
.member-wrap .member-add.sent { background: var(--surface-2); color: var(--ok); cursor: default; }
.member-wrap .member-add.sent svg { stroke-width: 3; }

/* ---------- TV: titlovi koje crta stranica (veliki, čitljivi sa kauča) */
.tv-subs {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 3; max-width: 86%;
  padding: .15em .5em; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; text-align: center; white-space: pre-line;
  font: 600 clamp(22px, 3.3vw, 52px)/1.3 var(--body); text-shadow: 0 2px 4px #000, 0 0 2px #000; pointer-events: none;
}
.tv-subs[hidden], .tv-subs:empty { display: none; }
.tv-keys .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }


/* =====================================================================
   REDIZAJN "Noir": tamno, mirno, filmski. Banner sa trailerom,
   kartice sa naslovom ispod slike, mala zaobljena dugmad.
   ===================================================================== */
body { background: var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* gornja traka: znak lijevo, meni u sredini */
.topbar { padding: 16px var(--pad); gap: 20px; background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0)); }
.topbar.solid { background: rgba(11,11,12,.9); backdrop-filter: blur(16px) saturate(130%); border-bottom: 1px solid rgba(255,255,255,.05); }
.brand { gap: 0; }
.brand svg { display: none; }
.brand span { font: 400 26px/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: #f4f1ea; }
.nav { justify-content: center; gap: 4px; }
.nav a { position: relative; font-size: 13.5px; font-weight: 500; color: rgba(244,241,234,.6); padding: 6px 12px; border-radius: 0; background: transparent !important; transition: color .2s; }
.nav a:hover { color: #f4f1ea; }
.nav a.active { color: #f4f1ea; }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1.5px; background: #f4f1ea; border-radius: 2px; }

/* dugmad: mala, zaobljena */
.btn { border-radius: 999px; font-weight: 600; font-size: 14px; padding: 10px 20px; }
.btn-sm { border-radius: 999px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.18); }
.mobile-menu .mm-primary { color: var(--accent-ink); }

/* ---------- banner */
.hero { min-height: min(90vh, 900px); min-height: min(90svh, 900px); background: #000; isolation: isolate; }
.hero-slide { padding: 120px var(--pad) clamp(170px, 26vh, 270px); align-items: flex-end; transition: opacity 1s ease, visibility 0s 1s; }
.hero-slide.active { transition: opacity 1s ease; }
.hero-art { transform: scale(1.05); transition: transform 14s ease-out, opacity 1.2s ease; filter: saturate(.85) contrast(1.05); }
.hero-slide.active .hero-art { transform: scale(1); }
.hero-video { position: absolute; inset: 0; overflow: hidden; container-type: size; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; background: #000; }
.hero-video iframe, .hero-video video {
  position: absolute; top: 50%; left: 50%; border: 0; display: block; object-fit: cover;
  /* video uvijek pokriva cijeli banner (malo uvećan da se ne vide YouTube natpisi) */
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.18);
}
.hero-slide.playing .hero-video { opacity: 1; }
.hero-slide.playing .hero-art { opacity: 0; }
.hero-slide::after {
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11,11,12,.75) 14%, rgba(11,11,12,0) 45%),
    linear-gradient(80deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 22%);
}
.hero-inner { z-index: 2; max-width: 560px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: rgba(244,241,234,.75); font: 500 11.5px/1 var(--body); letter-spacing: .26em; margin-bottom: 18px; }
.kicker i { width: 22px; height: 1px; background: currentColor; }
.hero h1 { font: 400 clamp(42px, 6vw, 86px)/.95 var(--serif); letter-spacing: -.01em; margin: 0 0 16px; text-shadow: 0 4px 30px rgba(0,0,0,.5); text-wrap: balance; }
.hero .meta { color: rgba(244,241,234,.7); font-size: 13px; font-weight: 500; align-items: center; margin-bottom: 12px; }
.meta-ok { color: #f4f1ea; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.hero p.desc { color: rgba(244,241,234,.78); font-size: 14.5px; line-height: 1.6; max-width: 46ch; max-height: 8em; margin-bottom: 22px; transition: opacity .6s ease, max-height .8s ease, margin .8s ease; }
/* dok trailer svira, opis se skloni */
.hero-slide.playing p.desc { opacity: 0; max-height: 0; margin: 0 0 6px; }
.hero .actions { gap: 10px; }
.hero .actions .btn { padding: 10px 20px; font-size: 14px; }
.hero .actions .btn-primary svg { fill: currentColor; stroke: none; width: 15px; height: 15px; }
.hero .actions .wish-btn.compact span { display: none; }
.hero .actions .wish-btn.compact { padding: 10px 12px; }

/* desna strana: zvuk + tačkice */
.hero-side { position: absolute; z-index: 4; right: var(--pad); bottom: clamp(170px, 26vh, 270px); display: flex; align-items: center; gap: 16px; }
.hero-sound {
  width: 40px; height: 40px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); background: rgba(0,0,0,.3);
  color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s;
}
.hero-sound:hover { background: rgba(255,255,255,.16); }
.hero-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-dots { position: static; display: flex; gap: 6px; }
.hero-dot { width: 16px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.3); }
.hero-dot.active { width: 34px; background: #f4f1ea; }

/* ---------- trake s filmovima */
.rows { margin-top: clamp(-170px, -20vh, -100px); padding-bottom: 140px; }
.row { margin-bottom: clamp(30px, 4.5vh, 52px); }
.row h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 600 15px/1.2 var(--body); letter-spacing: .01em; margin: 0 var(--pad) 12px; color: #f4f1ea; }
.row-count { font: 500 12px var(--body); color: var(--muted); }
.strip-wrap { position: relative; }
.rows .strip {
  grid-auto-columns: clamp(200px, calc((100vw - 2 * clamp(16px, 4vw, 56px) - 4 * 14px) / 5.3), 330px);
  gap: 14px; padding: 10px var(--pad) 12px; margin: -10px 0 -12px;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.rows .strip::-webkit-scrollbar { display: none; }
.strip-nav {
  position: absolute; z-index: 5; top: 38%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20,20,22,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(8px);
}
.strip-nav.prev { left: max(8px, calc(var(--pad) - 22px)); } .strip-nav.next { right: max(8px, calc(var(--pad) - 22px)); }
.strip-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip-nav:hover { background: rgba(244,241,234,.95); color: #111; }
.row:hover .strip-nav { opacity: 1; }
.strip-wrap.at-start .prev, .strip-wrap.at-end .next { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .strip-nav { display: none; } }

.tile { position: relative; display: grid; gap: 9px; align-content: start; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: #f4f1ea; scroll-snap-align: start; }
.tile-media { position: relative; display: block; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.tile-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease, filter .3s; filter: saturate(.9); }
.tile-img.tall { background-position: center 22%; }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); opacity: 0; transition: opacity .3s; }
.tile-play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(244,241,234,.95); color: #111;
  display: grid; place-items: center; opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .25s, transform .25s;
}
.tile-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.tile-live { position: absolute; top: 8px; left: 8px; z-index: 1; font: 600 10.5px/1 var(--body); letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(6px); }
.tile-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; vertical-align: 1px; }
.tile-bar { display: block; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: -3px; }
.tile-bar::after { content: ""; display: block; height: 100%; width: 0; background: #f4f1ea; transition: width .5s ease; }
.tile-cap { display: grid; gap: 2px; min-width: 0; padding: 0 2px; }
.tile-cap b { font: 600 13.5px/1.3 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-cap small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover .tile-media, .tile:focus-visible .tile-media { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.tile:focus-visible { outline: none; }
.tile:hover .tile-img { transform: scale(1.05); }
.tile:hover .tile-shade, .tile.selected .tile-shade { opacity: 1; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tile.selected .tile-media { box-shadow: 0 0 0 2px #f4f1ea; }
.tile.selected .tile-bar::after { width: 100%; }

/* modal i ostalo */
.modal-backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.modal-card { border-radius: 14px; background: #141416; border-color: rgba(255,255,255,.06); }
.film-detail .art::after { background: linear-gradient(to top, #141416, transparent 60%); }
.film-detail h2, .page h1, .login-card h1 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.modal-x { border-radius: 50%; background: rgba(20,20,22,.85); }
.chat, .panel { border-radius: 14px; }

/* telefon */
@media (max-width: 700px) {
  .brand span { font-size: 22px; }
  .hero-slide { padding-bottom: 130px; }
  .hero-side { bottom: 138px; }
  .hero-dots { display: none; }
  .rows { margin-top: -80px; }
  .rows .strip { grid-auto-columns: 60vw; gap: 10px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .hero { min-height: min(84vh, 740px); min-height: min(84svh, 740px); }
  .hero-slide::after { background: linear-gradient(to top, var(--bg) 6%, rgba(11,11,12,.85) 34%, rgba(11,11,12,.05) 62%, rgba(0,0,0,.45) 100%); }
  /* na uspravnom telefonu trailer ide preko gornjeg dijela, u punom 16:9 kadru */
  .hero-video { inset: 64px 0 auto 0; height: auto; aspect-ratio: 16/9; container-type: normal; }
  .hero-video iframe, .hero-video video { width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.02); }
  .hero-slide.playing .hero-art { opacity: .3; filter: blur(16px); }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .tile-media, .tile-img { transition: none !important; }
}
/* u banneru se trailer pušta sam, pa dugme "Trailer" nije potrebno */
.hero .actions [data-trailer] { display: none; }

/* admin: automatski embed */
.embed-admin { margin-bottom: 28px; display: grid; gap: 12px; }
.embed-admin h2 { margin: 0 0 6px; }
.embed-admin .hint { color: var(--muted); font-size: 13px; margin: 0; }
.embed-admin code { background: var(--surface); padding: 1px 6px; border-radius: 5px; font-size: 12px; word-break: break-all; }
.embed-admin-row { display: flex; gap: 8px; }
.embed-admin-row input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); outline: none; }
.embed-admin-row input:focus { border-color: var(--accent); }

/* admin: meni (tabovi) i pretraga */
.admin-tabs { display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { background: var(--accent); color: var(--accent-ink); }
.admin-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-n { font-size: 12px; font-weight: 600; opacity: .7; }
.tab-n:empty:not(.dot) { display: none; }
.tab-n.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .6; }
.tab-n.dot.on { background: var(--ok); opacity: 1; box-shadow: 0 0 6px var(--ok); }
.admin-col { min-width: 0; }
.admin-search { position: sticky; top: 72px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0; background: var(--bg); }
.a-searchbox { position: relative; flex: 1 1 260px; min-width: 0; }
.a-searchbox svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.a-searchbox input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 38px; color: var(--text); outline: none; }
.a-searchbox input:focus { border-color: var(--accent); }
.admin-search select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--text); outline: none; }
.admin-count { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
@media (min-width: 1000px) {
  .admin-layout > form.panel { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
@media (max-width: 560px) {
  .admin-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .admin-tabs button { justify-content: center; padding: 9px 6px; font-size: 13px; gap: 6px; }
  .admin-tabs button svg { display: none; }
}

/* gledanje nasamo bez prijave */
.solo { padding: 80px clamp(0px, 2vw, 24px) 140px; max-width: 1400px; margin: 0 auto; }
.solo-stage { position: relative; aspect-ratio: 16/9; width: min(100%, calc((100vh - 230px) * 16 / 9)); min-width: min(100%, 320px); margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.solo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.solo-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.solo-empty h2 { font: 400 clamp(28px, 4vw, 44px)/1.05 var(--serif); margin: 0 0 8px; }
.solo-empty p { color: var(--muted); margin: 0 0 18px; }
.solo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px clamp(16px, 2vw, 8px) 6px; }
.solo-info h1 { font: 400 clamp(26px, 3vw, 38px)/1.1 var(--serif); margin: 0 0 6px; }
.solo-info .meta { margin: 0; }
.solo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.solo-actions .btn svg { width: 17px; height: 17px; }
.solo-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 8px clamp(16px, 2vw, 8px) 0; }
.solo-note svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.solo-desc { color: rgba(244,241,234,.75); max-width: 70ch; line-height: 1.6; margin: 16px clamp(16px, 2vw, 8px) 0; }
@media (max-width: 700px) { .solo { padding-top: 64px; } .solo-stage { border-radius: 0; } .solo-actions .btn { flex: 1 1 auto; } }

/* informacije o filmu: ocjene, činjenice, glumci */
.film-info { display: grid; gap: 16px; }
.film-info.under { margin: 26px clamp(16px, 2vw, 8px) 0; padding-top: 24px; border-top: 1px solid var(--line); }
.film-info.in-modal { margin-top: 4px; }
.fi-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fi-rates { display: flex; flex-wrap: wrap; gap: 8px; }
.fi-rates:empty { display: none; }
.rate { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 14px; }
.rate b { font: 800 11px/1 var(--body); letter-spacing: .02em; padding: 5px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.rate span { font-weight: 700; }
.rate small { color: var(--muted); font-weight: 500; margin-left: 1px; }
.rate.imdb b { background: #f5c518; color: #000; }
.rate.imdb span { color: #f5c518; }
a.rate.imdb:hover { box-shadow: inset 0 0 0 1px #f5c518; }
.rate.rt b { background: #fa320a; color: #fff; }
.rate.meta b { background: #66cc33; color: #000; }
.fi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fi-chips span { font-size: 12.5px; color: rgba(244,241,234,.8); padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.fi-chips .g { background: rgba(255,255,255,.06); box-shadow: none; }
.fi-tag { margin: 0; font: italic 400 clamp(17px, 1.5vw, 21px)/1.35 var(--serif); color: rgba(244,241,234,.85); }
.fi-desc { margin: 0; color: rgba(244,241,234,.78); line-height: 1.65; max-width: 75ch; }
.fi-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.fi-facts div { min-width: 0; }
.fi-facts dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.fi-facts dd { margin: 0; font-size: 14px; }
.fi-h { font: 600 15px/1.2 var(--body); margin: 4px 0 -4px; }
.fi-cast { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cast { display: grid; gap: 3px; justify-items: center; text-align: center; min-width: 0; }
.cast-ph { width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2) center 20% / cover; display: grid; place-items: center; font: 600 20px var(--display); color: var(--muted); margin-bottom: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.cast b { font-size: 12.5px; font-weight: 600; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast small { font-size: 11.5px; color: var(--muted); line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fi-imdb-link { justify-self: start; font-size: 13px; color: var(--muted); text-decoration: none; }
.fi-imdb-link:hover { color: #f5c518; }
.fi-loading { display: flex; gap: 6px; padding: 6px 0; }
.fi-loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: fi-dot 1s infinite ease-in-out; }
.fi-loading span:nth-child(2) { animation-delay: .15s; } .fi-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes fi-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

a.cast { text-decoration: none; color: inherit; cursor: pointer; }
a.cast:hover .cast-ph { box-shadow: 0 0 0 2px #f4f1ea; }
a.cast:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cast-ph { transition: box-shadow .2s; }
/* preporuke */
.fi-related { display: grid; gap: 18px; margin-top: 10px; }
.fi-h.big { font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); margin: 6px 0 0; }
.fi-row h4 { margin: 0 0 10px; font: 600 14px/1.2 var(--body); color: rgba(244,241,234,.85); }
.fi-row h4 a { color: #f4f1ea; text-underline-offset: 3px; }
.fi-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 18vw, 250px); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.tile.rel .tile-cap b { font-size: 13px; }
.in-modal .fi-strip { grid-auto-columns: 200px; }
/* stranica glumca */
.person-head { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; margin-bottom: 40px; }
.person-photo { aspect-ratio: 2/3; border-radius: 14px; background: var(--surface-2) center / cover; box-shadow: var(--shadow); display: grid; place-items: center; font: 400 64px var(--serif); color: var(--muted); }
.person-main { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.person-main h1 { margin: 0; font: 400 clamp(38px, 5vw, 68px)/1 var(--serif); }
.person-main .kicker { margin: 0; }
.person-bio { max-height: 9.6em; overflow: hidden; position: relative; color: rgba(244,241,234,.8); line-height: 1.6; max-width: 75ch; }
.person-bio p { margin: 0 0 .8em; }
.person-bio:not(.open)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(transparent, var(--bg)); }
.person-bio.open { max-height: none; }
.person-bio.open::after { display: none; }
.person-lang { margin: -6px 0 0; font-size: 12px; color: var(--muted); }
.person-sec { margin-bottom: 40px; }
.person-sec h2 { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); margin: 0 0 16px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.pcard { display: grid; gap: 8px; align-content: start; border: 0; padding: 0; background: none; color: inherit; text-align: left; min-width: 0; }
.pcard .pc-poster { position: relative; aspect-ratio: 2/3; border-radius: 8px; background: var(--surface) center / cover; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.05); transition: transform .25s, box-shadow .25s; }
.pcard .pc-poster > b { font: 400 18px/1.1 var(--serif); }
.pcard:not(.in) .pc-poster { filter: saturate(.75) brightness(.85); }
.pcard.in { cursor: pointer; }
.pcard.in:hover .pc-poster { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.6), 0 0 0 2px #f4f1ea; }
.pc-badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px/1 var(--body); padding: 6px 10px; border-radius: 999px; background: #f4f1ea; color: #111; }
.pc-badge svg { width: 11px; height: 11px; fill: currentColor; }
.pc-rate { position: absolute; top: 8px; right: 8px; font: 700 11px/1 var(--body); padding: 4px 7px; border-radius: 999px; background: rgba(0,0,0,.65); color: #f5c518; backdrop-filter: blur(4px); }
.pc-cap { display: grid; gap: 2px; min-width: 0; }
.pc-cap b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cap small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .person-head { grid-template-columns: 1fr; }
  .person-photo { width: 58%; max-width: 240px; justify-self: center; }
  .person-main { justify-items: center; text-align: center; }
  .person-main .fi-chips { justify-content: center; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 12px; }
}

/* =====================================================================
   Stranica gledanja: manji player, mjesta za bannere, poster sa informacijama
   ===================================================================== */
.watch-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 24px; max-width: 1480px; margin: 0 auto; padding: 0 clamp(0px, 2vw, 24px); container-type: inline-size; }
.watch-layout > .ad-side.left { grid-column: 1; grid-row: 1; }
.watch-layout > .watch-main { grid-column: 2; grid-row: 1; }
.watch-layout > .ad-side.right { grid-column: 3; grid-row: 1; }
.watch-layout > .watch-main { padding: 76px 0 140px; max-width: 980px; width: 100%; margin: 0 auto; min-width: 0; }
.watch-main .stage, .watch-main .solo-stage { max-height: min(calc(100vh - 230px), 552px); width: 100%; }
.watch-main .solo-stage { width: min(100%, calc((100vh - 230px) * 16 / 9)); }
.ad-side { display: none; }
/* bočni banneri samo kad ima mjesta (računa se širina bez chata) */
@container (min-width: 1180px) {
  .ad-side { display: block; position: sticky; top: 84px; align-self: start; margin-top: 76px; width: 160px; min-height: 600px; }
  .ad-side.empty { visibility: hidden; }
}
.ad-slot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.ad-top { margin: 0 auto 14px; max-width: 728px; min-height: 90px; display: grid; place-items: center; }
.ad-top.empty { display: none; }
.ad-top .ad-frame { width: 100%; max-width: 728px; height: 90px; border: 0; display: block; }
.ad-side .ad-frame { width: 160px; height: 600px; border: 0; display: block; }
.ad-ph { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; min-height: inherit; text-align: center; text-decoration: none;
  border: 1.5px dashed rgba(255,255,255,.18); border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px; }
.ad-top .ad-ph { min-height: 90px; }
.ad-side .ad-ph { height: 600px; }
.ad-ph small { font-weight: 400; font-size: 11.5px; opacity: .8; }
.ad-ph:hover { border-color: rgba(255,255,255,.4); color: var(--text); }

/* uspravni poster sa informacijama pored (ispod filma) */
.fi-headgrid { display: grid; grid-template-columns: clamp(120px, 18vw, 190px) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.fi-poster { aspect-ratio: 2/3; border-radius: 10px; background: var(--surface) center / cover; box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  display: flex; align-items: flex-end; padding: 12px; }
.fi-poster b { font: 400 20px/1.1 var(--serif); }
.fi-headinfo { display: grid; gap: 14px; min-width: 0; }
.fi-title { margin: 0; font: 400 clamp(28px, 3.4vw, 44px)/1.05 var(--serif); }
.fi-title span { color: var(--muted); font-size: .6em; }
.film-info.under { margin-top: 18px; padding-top: 22px; }
.solo-bar { padding-top: 14px; justify-content: flex-start; }
@media (max-width: 560px) {
  .fi-headgrid { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .fi-headinfo .fi-desc { grid-column: 1 / -1; }
  .fi-title { font-size: 26px; }
}

/* admin: banneri oko filma */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ad-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 0; min-width: 0; }
.ad-edit legend { padding: 0 6px; font-weight: 600; }
.ad-edit legend small { color: var(--muted); font-weight: 400; margin-left: 4px; }
@media (max-width: 560px) { .admin-tabs { grid-template-columns: repeat(2, 1fr); border-radius: 18px; } }

/* tekst koji server upiše za pretraživače (dok se aplikacija ne učita) */
.seo-pre { padding-top: 110px; color: rgba(244,241,234,.75); max-width: 900px; }
.seo-pre h1 { color: var(--text); }
.seo-pre a { color: var(--text); }

/* soba: chat je bočna traka, pa se cijeli raspored pomjeri lijevo od njega */
@media (min-width: 1100px) {
  body.in-room .watch-layout > .room { margin: 0 auto; max-width: 980px; }
  body.in-room .watch-layout { margin-right: 372px; transition: margin .2s; }
  body.in-room[data-chat="large"] .watch-layout { margin-right: 492px; }
  body.in-room[data-chat="min"] .watch-layout { margin-right: auto; }
}
.fi-top > * { min-width: 0; }
.fi-chips { flex: 1 1 auto; }
.film-info { grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (max-width: 1100px) { .watch-layout { column-gap: 0; } } @media (max-width: 700px) { .watch-layout { padding: 0; } .watch-layout > .watch-main { padding-top: 64px; } }

/* =====================================================================
   Serije
   ===================================================================== */
a.tile { text-decoration: none; color: #f4f1ea; }
.tile-kind { position: absolute; top: 8px; right: 8px; font: 700 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #f4f1ea; backdrop-filter: blur(6px); }
.row-link { color: inherit; text-decoration: none; }
.row-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.series-list h1 { font: 400 clamp(36px, 5vw, 60px)/1 var(--serif); }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; }

.film-info.under.first { margin-top: 4px; border-top: 0; padding-top: 6px; }
.ep-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px clamp(16px, 2vw, 8px) 0; }
.ep-nav > a { text-decoration: none; }
.ep-nav .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ep-now { display: grid; gap: 2px; text-align: center; min-width: 0; }
.ep-now small { color: var(--muted); font-size: 12.5px; }
.ep-now small a { color: inherit; }
.ep-now b { font: 400 clamp(20px, 2.2vw, 28px)/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; }
.ep-overview { margin: 12px clamp(16px, 2vw, 8px) 0; color: rgba(244,241,234,.78); line-height: 1.6; max-width: 80ch; }

.seasons { margin: 28px clamp(16px, 2vw, 8px) 0; }
.season-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.season-head h2 { margin: 0; font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); }
.season-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tabs button { flex: none; border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-weight: 600; font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.season-tabs button:hover { color: var(--text); }
.season-tabs button.active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ep-list { display: grid; gap: 6px; }
.ep { display: grid; grid-template-columns: clamp(130px, 22%, 200px) minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .2s; }
.ep:hover { background: rgba(255,255,255,.05); }
.ep.on { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ep-still { position: relative; aspect-ratio: 16/9; border-radius: 8px; background: var(--surface) center / cover; overflow: hidden; }
.ep-num { position: absolute; left: 8px; bottom: 6px; font: 400 26px/1 var(--serif); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.ep:hover .tile-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ep-playing { position: absolute; top: 8px; right: 8px; font: 700 10.5px/1 var(--body); padding: 4px 8px; border-radius: 999px; background: #f4f1ea; color: #111; }
.ep-txt { display: grid; gap: 4px; min-width: 0; padding-top: 2px; }
.ep-txt b { font-size: 15px; font-weight: 600; }
.ep-txt small { color: var(--muted); font-size: 12.5px; }
.ep-ov { color: rgba(244,241,234,.7); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .ep { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
  .ep-ov { -webkit-line-clamp: 3; }
  .ep-nav { grid-template-columns: 1fr 1fr; }
  .ep-now { grid-column: 1 / -1; grid-row: 1; }
}

/* admin: podmeni Filmovi / Serije u Prefixu */
.sub-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.sub-tabs button { border: 0; background: transparent; color: var(--muted); padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.sub-tabs button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.series-admin .embed-admin-row { flex-wrap: wrap; }
.series-admin .a-searchbox { max-width: 420px; }
@media (max-width: 560px) { .admin-tabs { grid-template-columns: repeat(3, 1fr); } }
