/* Shift TV – novi izgled (Faza 3): gornja traka, lijevi izbornik, kartice */
:root { --v2-bg: #0c0916; --v2-side: #110c1f; --v2-card: #1b1430; --v2-line: rgba(255,255,255,.08); --v2-muted: #a9a3ba;
        --v2-red: #ff0015; --v2-red-dark: #d31027; --v2-top: 64px; --v2-side-w: 236px; }
body.v2 { background: var(--v2-bg); padding-top: var(--v2-top); }

/* Gornja traka */
.v2-topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--v2-top); z-index: 1030; display: flex; align-items: center; gap: 14px;
  padding: 0 18px; background: rgba(12, 9, 22, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--v2-line); }
.v2-burger { background: none; border: 0; color: #fff; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; }
.v2-burger:hover { background: rgba(255,255,255,.08); }
.v2-logo img { height: 34px; width: auto; display: block; }
.v2-search { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.v2-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--v2-muted); }
.v2-search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border-radius: 21px; border: 1px solid var(--v2-line);
  background: #1a1428; color: #fff; outline: none; font-size: 15px; }
.v2-search input:focus { border-color: rgba(255,0,21,.6); background: #1f182f; }
.v2-search-output { display: none; position: absolute; top: 48px; left: 0; right: 0; max-height: 70vh; overflow: auto; background: #1a1428;
  border: 1px solid var(--v2-line); border-radius: 12px; padding: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.v2-search-output.open { display: block; }
.v2-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.v2-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.v2-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.v2-btn-ghost:hover { color: #fff; border-color: #fff; }
.v2-btn-red { background: var(--v2-red); color: #fff; }
.v2-btn-red:hover { background: var(--v2-red-dark); color: #fff; }
.v2-user-menu { position: relative; }
.v2-avatar { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font-weight: 700; }
.v2-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.v2-user-menu ul { display: none; position: absolute; right: 0; top: 46px; min-width: 200px; list-style: none; margin: 0; padding: 8px;
  background: #1a1428; border: 1px solid var(--v2-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.v2-user-menu.open ul { display: block; }
.v2-user-menu li a { display: block; padding: 9px 12px; border-radius: 8px; color: #e8e4f1; }
.v2-user-menu li a:hover { background: rgba(255,255,255,.07); color: #fff; }
.v2-user-menu li i { width: 18px; color: var(--v2-muted); }

/* Lijevi izbornik */
.v2-sidebar { position: fixed; top: var(--v2-top); bottom: 0; left: 0; width: var(--v2-side-w); z-index: 1020; overflow-y: auto;
  padding: 12px 10px 24px; background: var(--v2-side); border-right: 1px solid var(--v2-line); scrollbar-width: thin; }
.v2-nav { list-style: none; margin: 0 0 6px; padding: 0; }
.v2-nav a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; color: #e8e4f1; font-weight: 600; font-size: 15px; }
.v2-nav a i { width: 20px; text-align: center; color: var(--v2-muted); font-size: 16px; }
.v2-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.v2-nav a.active { background: rgba(255,0,21,.14); color: #fff; }
.v2-nav a.active i { color: var(--v2-red); }
.v2-nav-small a { padding: 7px 14px 7px 48px; font-size: 14px; font-weight: 500; color: var(--v2-muted); }
.v2-live-dot { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--v2-red); color: #fff; font-style: normal;
  font-size: 12px; line-height: 22px; text-align: center; }
.v2-nav-title { margin: 14px 14px 6px; padding-top: 14px; border-top: 1px solid var(--v2-line); color: var(--v2-muted);
  font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.v2-social { display: flex; gap: 8px; padding: 10px 14px; }
.v2-social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; }
.v2-social a:hover { background: var(--v2-red); color: #fff; }
.v2-copy { padding: 6px 14px; color: #6f6984; font-size: 12px; }
.v2-backdrop { display: none; }

/* Sadržaj */
.v2-main { margin-left: var(--v2-side-w); min-height: calc(100vh - var(--v2-top)); }
.v2-main .container-fluid { padding-left: 28px; padding-right: 28px; }
body.v2 .eupopup-container { left: var(--v2-side-w); }

/* Desktop: izbornik se može sakriti */
@media (min-width: 1200px) {
  body.v2.v2-nav-open .v2-sidebar { transform: translateX(-100%); }
  body.v2.v2-nav-open .v2-main { margin-left: 0; }
}
/* Tablet i mobitel: izbornik kao ladica */
@media (max-width: 1199px) {
  .v2-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(0,0,0,.5); }
  body.v2.v2-nav-open .v2-sidebar { transform: none; }
  body.v2.v2-nav-open .v2-backdrop { display: block; position: fixed; inset: var(--v2-top) 0 0 0; z-index: 1010; background: rgba(0,0,0,.55); }
  .v2-main { margin-left: 0; }
  body.v2 .eupopup-container { left: 0; }
}
.v2-search-btn, .v2-search-close { display: none; background: none; border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 17px; }
@media (max-width: 767px) {
  .v2-topbar { gap: 8px; padding: 0 10px; }
  .v2-logo img { height: 28px; }
  /* Mobitel: pretraga se otvara ikonom preko cijele gornje trake */
  .v2-search { display: none; }
  .v2-search-btn { display: inline-flex; align-items: center; justify-content: center; }
  body.v2-search-open .v2-search { display: flex; align-items: center; position: fixed; top: 0; left: 0; right: 0; height: var(--v2-top);
    margin: 0; max-width: none; padding: 0 8px 0 10px; gap: 6px; background: #0c0916; z-index: 1040; }
  body.v2-search-open .v2-search > i { left: 24px; }
  body.v2-search-open .v2-search-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .v2-search input { height: 40px; font-size: 16px; }
  .v2-search-output { left: 8px; right: 8px; top: var(--v2-top); position: fixed; }
  .v2-btn-ghost, .v2-avatar span, .v2-avatar .fa-angle-down { display: none; }
  .v2-btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .v2-main .container-fluid { padding-left: 14px; padding-right: 14px; }
}

/* Kartice videa i serija (naslovnica, serije) */
.v2-row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 14px; }
.v2-row-head h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0; }
.v2-row-head a { color: var(--v2-red); font-weight: 700; font-size: 14px; }
.v2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
@media (max-width: 575px) { .v2-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; } }
.v2-card { display: block; color: inherit; }
.v2-card:hover { color: inherit; }
.v2-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--v2-card); }
.v2-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.v2-card:hover .v2-thumb img { transform: scale(1.04); }
.v2-thumb .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 700; }
.v2-card h3 { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; margin: 10px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-card .meta { color: var(--v2-muted); font-size: 13px; }
@media (max-width: 575px) { .v2-card h3 { font-size: 13px; } .v2-card .meta { font-size: 12px; } }

.v2-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.v2-chips::-webkit-scrollbar { display: none; }
.v2-chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 18px; background: rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.v2-chip:hover, .v2-chip.active { background: #fff; color: #111; }

.v2-series-card .v2-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.v2-series-card .v2-thumb .label { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; }
.v2-series-card .v2-thumb .label b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.v2-series-card .v2-thumb .label small { color: #d8d3e4; font-size: 13px; }

.v2-series-hero { position: relative; border-radius: 14px; overflow: hidden; margin-top: 22px; aspect-ratio: 21 / 6; min-height: 180px; background: var(--v2-card); }
.v2-series-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.v2-series-hero .txt { position: absolute; left: 28px; right: 28px; bottom: 22px; }
.v2-series-hero h1 { color: #fff; font-size: 34px; font-weight: 800; margin: 0 0 6px; }
.v2-series-hero p { color: #e1dcec; margin: 0; max-width: 820px; }
@media (max-width: 767px) { .v2-series-hero { aspect-ratio: 16 / 9; } .v2-series-hero h1 { font-size: 24px; } .v2-series-hero .txt { left: 16px; right: 16px; bottom: 14px; } }

/* Prijedlozi pretrage (gornja traka) */
.v2-sugg { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; color: #fff; }
.v2-sugg:hover { background: rgba(255,255,255,.07); color: #fff; }
.v2-sugg .img { flex: 0 0 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--v2-card); }
.v2-sugg .img img { width: 100%; height: 100%; object-fit: cover; }
.v2-sugg .txt { min-width: 0; }
.v2-sugg b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sugg small { color: var(--v2-muted); font-size: 12px; }
.v2-sugg-all { display: block; margin-top: 6px; padding: 9px 8px; border-top: 1px solid var(--v2-line); color: var(--v2-red); font-weight: 700; font-size: 14px; }
.v2-sugg-empty { padding: 10px 8px; color: var(--v2-muted); }

/* Stranica pretrage */
.v2-search-page { padding-top: 22px; }
.v2-search-big { position: relative; display: flex; gap: 10px; max-width: 820px; }
.v2-search-big > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--v2-muted); }
.v2-search-big input { flex: 1; min-width: 0; height: 48px; padding: 0 16px 0 44px; border-radius: 24px; border: 1px solid var(--v2-line); background: #1a1428; color: #fff; font-size: 16px; outline: none; }
.v2-search-big input:focus { border-color: rgba(255,0,21,.6); }
.v2-search-big .v2-btn { height: 48px; border-radius: 24px; padding: 0 22px; border: 0; }
.v2-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.v2-filters select { height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--v2-line); background: #1a1428; color: #fff; max-width: 100%; }
.v2-search-hint { color: var(--v2-muted); margin: 12px 0 0; }
/* Follow gumb */
.v2-follow-form { display: inline-block; margin: 0; }
.v2-follow { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 18px; border: 0; cursor: pointer;
  background: #fff; color: #111 !important; font-weight: 800; font-size: 14px; margin: 6px 0; }
.v2-follow:hover { background: #e9e6f0; }
.v2-follow.is-following { background: rgba(255,255,255,.14); color: #fff !important; }
.v2-filters + .nice-select, .v2-filters .nice-select { display: none !important; }
.v2-filters select { display: inline-block !important; }
