/* Shift TV – moderni izgled (v3): uski izbornik s ikonama, prozirna gornja traka, velika naslovnica, vodoravni redovi */
:root { --v3-bg: #08070d; --v3-rail: 76px; --v3-top: 64px; --v3-red: #ff0015; --v3-muted: #a8a3b5; --v3-line: rgba(255,255,255,.07); }
body.v3 { background: var(--v3-bg); padding-top: var(--v3-top); }
body.v3.v3-home { padding-top: 0; }
body.v3 .v2-main { margin-left: var(--v3-rail); }

/* Gornja traka */
.v3-top { position: fixed; top: 0; left: 0; right: 0; height: var(--v3-top); z-index: 1030; display: flex; align-items: center; gap: 18px;
  padding: 0 24px 0 calc(var(--v3-rail) + 8px); transition: background .25s ease, box-shadow .25s ease;
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.v3-top.solid, body.v3:not(.v3-home) .v3-top { background: rgba(8,7,13,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--v3-line); }
.v3-logo img { height: 32px; width: auto; display: block; }
.v3-search { position: relative; margin-left: auto; width: 300px; transition: width .2s ease; }
.v3-search:focus-within { width: 420px; }
.v3-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #fff; opacity: .8; }
.v3-search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; outline: none; font-size: 14px; }
.v3-search input::placeholder { color: rgba(255,255,255,.65); }
.v3-search input:focus { background: rgba(20,17,30,.95); border-color: rgba(255,255,255,.35); }
.v3-search .v2-search-output { top: 46px; }
.v3-user { display: flex; align-items: center; }
.v3-user .v2-avatar img { width: 36px; height: 36px; }
.v3-login { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-weight: 700; font-size: 14px; }
.v3-login:hover { background: #fff; color: #111; }

/* Uski izbornik s ikonama (računalo) */
.v3-rail { position: fixed; top: 0; bottom: 0; left: 0; width: var(--v3-rail); z-index: 1031; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: calc(var(--v3-top) + 8px) 0 16px; background: rgba(8,7,13,.92); border-right: 1px solid var(--v3-line); }
.v3-rail a { position: relative; width: 64px; padding: 10px 0 8px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--v3-muted); }
.v3-rail a i { font-size: 19px; }
.v3-rail a span { font-size: 10.5px; font-weight: 700; letter-spacing: .2px; }
.v3-rail a:hover { background: rgba(255,255,255,.07); color: #fff; }
.v3-rail a.on { color: #fff; }
.v3-rail a.on i { color: var(--v3-red); }
.v3-rail a em, .v3-tabbar a em { position: absolute; top: 4px; right: 12px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--v3-red); color: #fff; font-style: normal; font-size: 10.5px; line-height: 17px; text-align: center; }
.v3-rail-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.v3-rail-bottom a { padding: 8px 0; }
.v3-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--v3-red); animation: live-pulse 1.2s infinite; }

/* Donja traka (mobitel) */
.v3-tabbar { display: none; }

/* Velika naslovnica */
.v3-hero { position: relative; height: 74vh; min-height: 440px; max-height: 780px; overflow: hidden; }
.v3-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,7,13,.92) 0%, rgba(8,7,13,.55) 38%, rgba(8,7,13,0) 70%), linear-gradient(0deg, var(--v3-bg) 0%, rgba(8,7,13,0) 38%); }
.v3-hero-txt { position: absolute; z-index: 1; left: 48px; right: 40%; bottom: 120px; }
.v3-hero-kicker { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; letter-spacing: .3px; }
.v3-hero-kicker i { color: var(--v3-red); margin-right: 6px; }
.v3-hero .v3-hero-title { color: #fff; font-size: clamp(30px, 4vw, 58px); font-weight: 900; line-height: 1.05; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v3-hero p { color: #e0dce9; font-size: 16px; margin: 0 0 22px; }
.v3-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.v3-btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 26px; border-radius: 10px; font-weight: 800; font-size: 16px; }
.v3-btn-red { background: var(--v3-red); color: #fff; }
.v3-btn-red:hover { background: #d31027; color: #fff; }
.v3-btn-glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }
.v3-btn-glass:hover { background: rgba(255,255,255,.26); color: #fff; }

/* Vodoravni redovi */
.v3-rows { position: relative; z-index: 2; padding: 8px 0 30px; }
body.v3-home .v3-rows { margin-top: -86px; }
.v3-row { position: relative; margin: 0 0 30px; }
.v3-row-head { display: flex; align-items: baseline; gap: 16px; padding: 0 48px; margin-bottom: 12px; }
.v3-row-head h2 { color: #fff; font-size: 21px; font-weight: 800; margin: 0; }
.v3-row-head a { color: var(--v3-muted); font-weight: 700; font-size: 13px; }
.v3-row-head a:hover { color: #fff; }
.v3-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 96px - 4 * 16px) / 4.25); gap: 16px; overflow-x: auto;
  padding: 4px 48px 6px; scroll-padding: 0 48px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v3-scroller::-webkit-scrollbar { display: none; }
.v3-cell { scroll-snap-align: start; min-width: 0; }
.v3-arrow { position: absolute; top: 44px; bottom: 50px; width: 44px; border: 0; z-index: 3; color: #fff; font-size: 20px; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(90deg, rgba(8,7,13,.95), rgba(8,7,13,0)); }
.v3-arrow.v3-next { right: 0; background: linear-gradient(270deg, rgba(8,7,13,.95), rgba(8,7,13,0)); }
.v3-arrow.v3-prev { left: 0; }
.v3-row:hover .v3-arrow { opacity: 1; }
@media (min-width: 1700px) { .v3-scroller { grid-auto-columns: calc((100% - 96px - 5 * 16px) / 5.25); } }

/* Shift TV 24/7 (Live TV kanali) na naslovnici */
.v3-tv-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff0015; margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(255,0,21,.6); animation: v3pulse 1.6s infinite; }
@keyframes v3pulse { 70% { box-shadow: 0 0 0 8px rgba(255,0,21,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,21,0); } }
.v3-tv-wrap { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; padding: 0 48px; }
.v3-tv-player { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.v3-tv-player > img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s ease; }
.v3-tv-player:hover > img { opacity: .85; }
.v3-tv-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.v3-tv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  border: 0; border-radius: 40px; padding: 14px 26px; background: #ff0015; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.v3-tv-play:hover { background: #d31027; color: #fff; }
.v3-tv-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v3-tv-list a { display: flex; align-items: center; gap: 12px; background: #15111f; border-radius: 10px; padding: 8px; color: #fff; flex: 1; min-height: 0; }
.v3-tv-list a:hover { background: #211a31; color: #fff; }
.v3-tv-list img { width: 42%; max-width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.v3-tv-list b { display: block; font-size: 15px; }
.v3-tv-list small { color: var(--v3-muted); font-size: 12px; }
@media (max-width: 1199px) { .v3-tv-wrap { padding: 0 32px; } }
@media (max-width: 991px) { .v3-tv-wrap { grid-template-columns: 1fr; } .v3-tv-list { flex-direction: row; overflow-x: auto; } .v3-tv-list a { flex: 0 0 240px; } }
@media (max-width: 767px) { .v3-tv-wrap { padding: 0 14px; } .v3-tv-play { padding: 11px 18px; font-size: 14px; } }

/* Oglasi (Faza 5): mobilna slika do 767 px, iznad toga slika za računalo */
.ad-slot { position: relative; max-width: 970px; margin: 0 auto 26px; }
.ad-slot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ad-slot a { display: block; }
.ad-label { display: block; text-align: right; color: var(--v3-muted, #a9a3ba); font-size: 11px; letter-spacing: .04em; margin-bottom: 4px; }
.v3-rows > .ad-slot { margin: 0 48px 30px; max-width: none; }
.v3-rows > .ad-slot img { max-width: 970px; margin: 0 auto; }
.v3-rows > .ad-slot .ad-label { max-width: 970px; margin: 0 auto 4px; }
.live-event-hero + .ad-slot { margin: 14px 0 6px; max-width: none; }
.live-grid > .ad-live_list, .live-grid > .ad-past_feed { margin: 0; max-width: none; }
.live-grid > .ad-live_list img, .live-grid > .ad-past_feed img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.live-section + .ad-live_between { margin: 6px auto 30px; }
.live-grid > .ad-live_list .ad-label, .live-grid > .ad-past_feed .ad-label { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(8,7,13,.75); color: #fff; padding: 3px 9px; border-radius: 20px; margin: 0; }
/* Traka na dnu (samo mobitel, iznad donjeg izbornika) */
.ad-mobile_sticky { display: none; }
@media (max-width: 767px) {
  .ad-mobile_sticky { display: block; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 900; margin: 0; max-width: none;
    background: #08070d; padding: 4px 34px 4px 8px; box-shadow: 0 -4px 18px rgba(0,0,0,.45); }
  .ad-mobile_sticky img { max-height: 54px; width: auto; max-width: 100%; margin: 0 auto; border-radius: 6px; }
  .ad-mobile_sticky .ad-label { position: absolute; left: 8px; top: -17px; background: #08070d; padding: 1px 6px; border-radius: 4px 4px 0 0; margin: 0; font-size: 10px; }
  .ad-close { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; font-size: 18px; line-height: 26px; padding: 0; }
  body.v3:has(.ad-mobile_sticky) { padding-bottom: 130px; }
  .v3-rows > .ad-slot { margin: 0 14px 24px; }
}
@media (max-width: 1199px) and (min-width: 768px) { .v3-rows > .ad-slot { margin: 0 32px 28px; } }

/* Mini player (TV 24/7): pri pomicanju stranice player ide u donji desni kut */
.v3-tv-slot { min-width: 0; }
.v3-tv-player.mini { position: fixed; right: 12px; bottom: var(--mini-bottom, 20px); width: min(58vw, 400px); height: auto; aspect-ratio: 16 / 9;
  z-index: 950; border-radius: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.7); animation: v3mini .2s ease-out; }
@keyframes v3mini { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.v3-tv-player.mini .sc-bar { display: none; }
.v3-mini-close { display: none; position: absolute; top: 5px; right: 5px; z-index: 25; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(8,7,13,.82); color: #fff; font-size: 20px; line-height: 28px; padding: 0; cursor: pointer; }
.v3-tv-player.mini .v3-mini-close { display: block; }

/* Stranica /livetv: Shift TV 24/7 na vrhu, ostali kanali ispod */
.v3-tv-page { padding: 24px 32px 40px; max-width: 1500px; }
.v3-tv-page h1 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 14px; }
.v3-tv-page h1 small { color: #ff0015; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; vertical-align: 4px; }
.v3-tv-page h2 { color: #fff; font-size: 21px; font-weight: 800; margin: 30px 0 12px; }
.v3-tv-main { max-width: calc(68vh * 16 / 9); }   /* na širokom ekranu ostaju vidljivi i kanali ispod */
.v3-tv-main .v3-tv-player { border-radius: 14px; }
.v3-tv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v3-tv-grid a { color: #fff; }
.v3-tv-grid a:hover { color: #fff; }
.v3-tv-grid .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #15111f; }
.v3-tv-grid .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.v3-tv-grid a:hover .thumb img { transform: scale(1.04); }
.v3-tv-grid b { display: block; margin-top: 8px; font-size: 15px; }
.v3-tv-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(8,7,13,.8); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
@media (max-width: 991px) { .v3-tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .v3-tv-page { padding: 16px 14px 30px; } .v3-tv-page h1 { font-size: 22px; } }

/* Ostale stranice u v3: malo više zraka */
body.v3 .v2-main > .container-fluid, body.v3 .v2-main .container-fluid { padding-left: 32px; padding-right: 32px; }

/* Tablet */
@media (max-width: 1199px) {
  .v3-scroller { grid-auto-columns: calc((100% - 64px - 2 * 14px) / 2.3); padding: 4px 32px 6px; gap: 14px; }
  .v3-row-head { padding: 0 32px; }
  .v3-hero-txt { left: 32px; right: 22%; }
}
/* Mobitel: bez uskog izbornika, donja traka s ikonama */
@media (max-width: 767px) {
  :root { --v3-top: 56px; }
  body.v3 { padding-bottom: 64px; }
  .v3-rail { display: none; }
  body.v3 .v2-main { margin-left: 0; }
  .v3-top { padding: 0 14px; gap: 10px; }
  .v3-logo img { height: 26px; }
  .v3-search { width: auto; flex: 1; max-width: 220px; }
  .v3-search:focus-within { width: auto; }
  .v3-search input { height: 36px; font-size: 16px; }
  .v3-login span { display: none; }
  .v3-login { width: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .v3-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: 62px; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8,7,13,.97); border-top: 1px solid var(--v3-line); backdrop-filter: blur(10px); }
  .v3-tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--v3-muted); }
  .v3-tabbar a i { font-size: 19px; }
  .v3-tabbar a span { font-size: 10.5px; font-weight: 700; }
  .v3-tabbar a.on { color: #fff; }
  .v3-tabbar a.on i { color: var(--v3-red); }
  .v3-tabbar a em { right: calc(50% - 22px); }
  .v3-hero { height: 68vh; min-height: 380px; }
  .v3-hero::after { background: linear-gradient(0deg, var(--v3-bg) 2%, rgba(8,7,13,.5) 45%, rgba(8,7,13,.15) 100%); }
  .v3-hero-txt { left: 18px; right: 18px; bottom: 96px; }
  .v3-hero p { font-size: 14px; margin-bottom: 16px; }
  .v3-btn { height: 44px; padding: 0 18px; font-size: 15px; }
  body.v3-home .v3-rows { margin-top: -64px; }
  .v3-row-head { padding: 0 16px; }
  .v3-row-head h2 { font-size: 18px; }
  .v3-scroller { grid-auto-columns: 72%; padding: 4px 16px 6px; gap: 12px; scroll-padding: 0 16px; }
  .v3-arrow { display: none; }
  body.v3 .v2-main .container-fluid { padding-left: 14px; padding-right: 14px; }
  body.v3 .eupopup-container { bottom: 62px; }
}

/* Stare stranice (popisi, detalji) usklađene s modernim izgledom */
body.v3 .filter-list-area { background: transparent !important; padding: 18px 0 6px !important; border: 0 !important; }
body.v3 .filter-list-area .page-title-item { display: inline-block !important; background: none !important; padding: 0 18px 0 0 !important;
  font-size: 28px !important; font-weight: 900 !important; text-transform: none !important; color: #fff !important; vertical-align: middle; }
body.v3 .custom_select_filter .nice-select { background: rgba(255,255,255,.08) !important; border: 0 !important; border-radius: 18px !important;
  color: #fff !important; font-weight: 700; height: 36px; line-height: 36px; }
body.v3 .custom_select_filter .nice-select:after { border-color: #fff !important; }
body.v3 .custom_select_filter .nice-select .list { background: #17131f !important; border-radius: 12px; }
body.v3 .custom_select_filter .nice-select .option:hover, body.v3 .custom_select_filter .nice-select .option.selected { background: rgba(255,255,255,.1) !important; }
body.v3 .single-video .video-img { border-radius: 10px; overflow: hidden; }
body.v3 .breadcrumb-section { background: none !important; padding: 26px 0 6px !important; }
body.v3 .breadcrumb-section h2 { font-size: 28px; font-weight: 900; }
body.v3 .page-content-area, body.v3 .view-all-video-area { background: transparent !important; }
@media (max-width: 767px) { body.v3 .filter-list-area .page-title-item { display: block !important; font-size: 22px !important; margin-bottom: 8px; } }