/* ==========================================================================
   Glavni stil sajta — redizajn 2026
   Crna + narandžasta. Jedan stylesheet za sve stranice sajta.
   Stari styles.pure.css ostaje u folderu (nije više uključen) radi povratka.
   ========================================================================== */

:root {
  --black: #000000;
  --surface: #141414;
  --raised: #1f1f1f;
  --line: #2c2c2c;
  --line-soft: #202020;
  --orange: #ff9900;
  --orange-hot: #ffb547;
  --orange-deep: #b86e00;
  --text: #f3eee5;
  --dim: #a29c92;
  --faint: #6f6a63;
  --danger: #e5484d;
  --ok: #3fb97a;

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", "DejaVu Sans Condensed", Impact, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --page-max: 1440px;
  --gutter: clamp(14px, 3vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hot); }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
td { font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--text);
  margin: 0 0 .5em;
  text-shadow: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--orange); color: #000; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #000;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #000; }

/* scrollbar (desktop) */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; border: 2px solid var(--black); }
  ::-webkit-scrollbar-thumb:hover { background: var(--orange-deep); }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .bar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  flex: none;
  position: relative;
  padding-bottom: 3px;
}
.brand::after {
  /* svetlo projektora ispod logotipa */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 55%, rgba(255,153,0,0) 100%);
}
.brand:hover { color: #fff; }
.brand--small { font-size: 26px; justify-self: start; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav li { flex: none; }
.main-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--dim);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.main-nav a b { font-weight: 600; }
.main-nav a:hover { color: var(--text); background: var(--raised); }
.main-nav a.is-accent { color: var(--orange); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--raised); box-shadow: inset 0 -2px 0 var(--orange); }
.main-nav a.is-accent:hover { background: rgba(255,153,0,.12); color: var(--orange-hot); }

/* pretraga */
.site-search { flex: 0 1 340px; position: relative; }
.site-search form { margin: 0; }
.search-field {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .15s, background-color .15s;
}
.search-field:focus-within { border-color: var(--orange); background: #0c0c0c; }
.search-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  padding: 10px 4px 10px 18px;
}
.search-field input::placeholder { color: var(--faint); }
.search-field button {
  flex: none;
  width: 40px; height: 40px;
  margin: 1px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s;
}
.search-field button:hover { background: var(--orange-hot); }
.search-field button svg { width: 18px; height: 18px; }


/* ==========================================================================
   Stranica i raspored
   ========================================================================== */
.page {
  display: block;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) var(--gutter) 40px;
  text-align: left;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.content { min-width: 0; }

/* ---------- Sidebar ---------- */
.side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.side-box { margin-bottom: 26px; }

.side-title {
  font-size: 22px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

.side-title::first-letter { text-transform: uppercase; }
.cats-toggle { text-transform: capitalize; }

.cats-toggle {
  all: unset;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  color: inherit;
  cursor: default;
}
.cats-toggle .chev { display: none; }

#ul_categories,
#ul_categories ul { list-style: none; margin: 0; padding: 0; }

#ul_categories > li > a {
  display: block;
  padding: 7px 10px;
  margin: 1px 0;
  border-radius: var(--radius-sm);
  color: var(--dim);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.3;
  transition: color .12s, background-color .12s;
}
#ul_categories > li > a:hover { color: var(--text); background: var(--surface); }

#ul_categories li.selectedcat > a,
#ul_categories li.selectedsubcat > a {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--orange);
}

#ul_categories li ul { display: none; padding: 2px 0 6px 12px; }
#ul_categories li ul.visible_li { display: block; }
#ul_categories li ul a {
  display: block;
  padding: 5px 10px;
  font-size: 13.5px;
  color: var(--faint);
  border-radius: var(--radius-sm);
}
#ul_categories li ul a:hover { color: var(--text); }


.tag-cloud a,
#tags a {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--dim);
}
.tag-cloud a:hover,
#tags a:hover { color: var(--text); border-color: var(--orange); }

/* ==========================================================================
   Naslovi sekcija
   ========================================================================== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}
.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.section-more:hover { color: var(--orange); border-bottom-color: var(--orange); }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.page-title {
  font-size: clamp(32px, 4.4vw, 54px);
  margin: 0;
  max-width: 22ch;
}
.page-title .muted { color: var(--dim); }
.page-sub {
  width: 100%;
  margin: 0;
  color: var(--dim);
  max-width: 70ch;
}

.shelf { margin: 0 0 clamp(34px, 5vw, 56px); }

/* ==========================================================================
   Filmska traka sa godinama (jedini "glasni" element)
   ========================================================================== */
.filmstrip {
  --hole: 7px;
  position: relative;
  margin: 0 0 clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 50% 50%, var(--black) 0 calc(var(--hole) / 2), transparent calc(var(--hole) / 2 + .5px)) 0 7px / 22px 14px repeat-x,
    radial-gradient(circle at 50% 50%, var(--black) 0 calc(var(--hole) / 2), transparent calc(var(--hole) / 2 + .5px)) 0 calc(100% - 7px) / 22px 14px repeat-x,
    #1a1a1a;
  border-radius: var(--radius-sm);
  padding: 22px 0;
}
.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
.filmstrip::before { left: 0; background: linear-gradient(90deg, var(--black), rgba(0,0,0,0)); }
.filmstrip::after { right: 0; background: linear-gradient(270deg, var(--black), rgba(0,0,0,0)); }

.filmstrip-label {
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--black);
  padding: 0 12px;
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}

.filmstrip-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 36px;
}
.filmstrip-track::-webkit-scrollbar { display: none; }

.filmstrip-track a {
  flex: none;
  scroll-snap-align: start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: #8e877c;
  padding: 12px 20px;
  background: #0a0a0a;
  border-left: 3px solid #1a1a1a;
  transition: color .15s, background-color .15s;
}
.filmstrip-track a:first-child { border-left: 0; }
.filmstrip-track a:hover {
  color: #000;
  background: var(--orange);
}

/* ==========================================================================
   Poster grid (li.video iz PHP-a)
   ========================================================================== */
.poster-grid { width: 100%; }
.poster-grid ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 26px 18px;
}
.poster-grid ul > br { display: none; }

li.video {
  position: relative;
  container-type: inline-size;
  float: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  height: auto !important;
  min-width: 0;
}

.video_i {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.video_i > a { color: var(--text); display: block; }

.video_i > a:first-child {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.video_i > a:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  pointer-events: none;
  z-index: 2;
  transition: box-shadow .2s var(--ease);
}

.video_i .imag,
#top_videos .imag {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  box-shadow: none !important;
  transition: transform .45s var(--ease), filter .3s;
}

@media (hover: hover) {
  .video_i > a:first-child:hover .imag { transform: scale(1.045); }
  .video_i > a:first-child:hover::after { box-shadow: inset 0 0 0 2px var(--orange); }
  li.video:hover .video_i > a > .artist_name,
  li.video:hover .video_i > .song_name { color: var(--orange); }
}
.video_i > a:first-child:focus-visible::after { box-shadow: inset 0 0 0 3px var(--orange); }

/* bedževi: NOVO / HD / HOT + broj komentara */
.video_i .tag {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  height: auto !important;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  pointer-events: none;
}
.video_i .tag .tag { position: static !important; display: contents; }

.video_i .tag span {
  display: inline-block;
  margin: 0 !important;
  padding: 3px 7px !important;
  border-radius: 3px !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.video_i .tag span b { font-weight: 600; }
.video_i .tag span.new { background: var(--orange) !important; color: #000 !important; }
.video_i .tag span.featured { background: rgba(0,0,0,.78) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.video_i .tag span.hot { background: var(--text) !important; color: #000 !important; }

.video_i .tag > .comm-count {
  order: 10;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,.72);
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 11px;
  line-height: 1.2;
}
.video_i .tag > .comm-count::before {
  content: "";
  width: 11px; height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.video_i .tag > .comm-count b { font-weight: 600; }

/* "Bez prevoda" traka preko dna postera */
li.video > .tops4 {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  top: calc(150cqw - 26px);
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.82);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  pointer-events: none;
}
li.video > .tops4 b { font-weight: 600; }

/* naslovi ispod postera */
.video_i > a > .artist_name,
.video_i > .song_name {
  order: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: auto !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  color: var(--text) !important;
  text-align: left !important;
  text-shadow: none !important;
  transition: color .15s;
}
.video_i > .artist_name {
  order: 2;
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--faint);
}
.video_i > a:not(:first-child) { order: 1; }

/* ==========================================================================
   Horizontalna traka postera (Top video / slični)
   ========================================================================== */
.rail { margin: 0 0 clamp(30px, 4vw, 48px); }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(132px, 13vw, 176px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
  margin: 0 -2px;
}
.rail-track > br { display: none; }

.rail-track .item {
  scroll-snap-align: start;
  float: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--dim);
  font-size: 0; /* sakrij zalutali tekst iz PHP-a */
}
.rail-track .item > a:first-child {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.rail-track .item > a:first-child::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow .2s var(--ease);
}
.rail-track .item .imag {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  transition: transform .45s var(--ease);
}
.rail-track .item .song_name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: auto !important;
  margin-top: 9px;
  padding: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1.3 !important;
  color: var(--text) !important;
  text-align: left !important;
  text-transform: none !important;
  text-shadow: none !important;
  background: none !important;
}
.rail-track .item .artist_name,
.rail-track .item .artist_name_1 {
  font-size: 12.5px;
  color: var(--faint) !important;
  order: 2;
  background: none !important;
  width: auto !important;
  text-transform: none !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
}
.rail-track .item .artist_name:empty { display: none; }
@media (hover: hover) {
  .rail-track .item > a:first-child:hover .imag { transform: scale(1.045); }
  .rail-track .item > a:first-child:hover::after { box-shadow: inset 0 0 0 2px var(--orange); }
  .rail-track .item:hover .song_name { color: var(--orange) !important; }
}

/* ==========================================================================
   Sortiranje, podkategorije, paginacija
   ========================================================================== */
.sorting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dim);
  float: none !important;
  padding: 0 !important;
  margin: 0;
}
.sorting ul {
  list-style: none;
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.sorting li a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 600;
}
.sorting li a:hover { color: var(--text); }
.sorting li a.selectedli { background: var(--orange); color: #000; }

.select-wrap { position: relative; display: inline-block; }
.select-wrap select,
.sorting select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff9900' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  padding: 8px 40px 8px 16px;
  cursor: pointer;
}

#list_subcats { margin: 0 0 30px; }
#list_subcats h4 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--dim);
}
.subcats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 14px;
}
.subcats a { display: block; color: var(--text); }
.subcats a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 95 / 116;
  object-fit: cover;
  border-radius: var(--radius) !important;
  background: var(--surface);
}
.subcats a p {
  height: auto !important;
  margin: 7px 0 0;
  color: var(--dim) !important;
  font-size: 13px;
  line-height: 1.3;
}
.subcats a:hover p { color: var(--orange) !important; }

.pager {
  display: flex;
  justify-content: center;
  margin: 38px 0 10px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  color: var(--dim);
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  margin: 0 !important;
  line-height: 1 !important;
}
.pagination a:hover { color: var(--text); border-color: var(--orange); }
.pagination span.current { background: var(--orange); border-color: var(--orange); color: #000; }
.pagination span.disabled { opacity: .35; visibility: visible !important; }

.cat-intro { color: var(--dim); margin: -6px 0 22px; max-width: 75ch; }

/* ==========================================================================
   Tabele (Top video, Novi video, članovi, favoriti)
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table td {
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  background: transparent !important;
  text-transform: none !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr.heading td {
  background: var(--raised) !important;
  color: var(--dim);
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 11px 14px;
}
.data-table tr.heading strong { font-weight: 600; }
.data-table tr:not(.heading):hover td { background: #1a1a1a !important; }
.data-table a,
.data-table .row1 a,
.data-table .row2 a {
  color: var(--text);
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 14.5px !important;
}
.data-table a:hover { color: var(--orange); text-decoration: none; }
.data-table .tinythumb,
.data-table .imag {
  display: block;
  float: none !important;
  width: 48px !important;
  height: 72px !important;
  object-fit: cover;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  background: var(--raised) !important;
}
.data-table td:has(> a > .tinythumb) { width: 76px; }
.data-table .tinythumb { min-width: 48px; }
.data-table td[align="center"]:first-child { color: var(--faint); font-family: var(--font-display); font-weight: 800; font-size: 20px !important; width: 48px; }

#topvideos_results,
#newvideos_results { overflow-x: auto; -webkit-overflow-scrolling: touch; }



/* ==========================================================================
   Paneli i forme
   ========================================================================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 32px);
}
.panel + .panel { margin-top: 24px; }
.panel-title { font-size: clamp(26px, 3vw, 34px); margin: 0 0 18px; }
.panel--narrow { max-width: 520px; }
.panel--form { max-width: 720px; }

.form-row { margin: 0 0 16px; }
.form-row label,
.form-label {
  display: block;
  margin: 0 0 6px;
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 600;
}
.form-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px 20px; align-items: start; }
.form-grid > .form-label { margin: 10px 0 0; }

.inputtext,
.panel input[type="text"],
.panel input[type="password"],
.panel input[type="email"],
.panel textarea,
.panel select {
  width: 100%;
  max-width: 100%;
  background: var(--black) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  transition: border-color .15s;
}
.inputtext:hover,
.panel input:hover,
.panel textarea:hover,
.panel select:hover { border-color: #444 !important; }
.inputtext:focus,
.panel input:focus,
.panel textarea:focus,
.panel select:focus { outline: 0; border-color: var(--orange) !important; background: #050505 !important; }
.panel textarea { min-height: 160px; resize: vertical; }
.panel select { appearance: none; -webkit-appearance: none; padding-right: 36px !important; background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff9900' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center !important; }

.inputbutton,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--orange) !important;
  color: #000 !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
  width: auto;
  height: auto;
}
.inputbutton:hover,
.btn:hover { background: var(--orange-hot) !important; color: #000 !important; }
.inputbutton:active,
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: var(--raised) !important; color: var(--text) !important; }

.check { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--orange); }


.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* poruke */
.confirm_send,
.error_msg2,
.alert {
  display: block;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 400;
  text-align: left;
  text-shadow: none;
  line-height: 1.5;
}
.confirm_send { background: rgba(63,185,122,.12); color: #bdf0d4; border: 1px solid rgba(63,185,122,.35); }
.confirm_send a { color: #fff; text-decoration: underline; }
.error_msg2,
.alert--error { background: rgba(229,72,77,.12); color: #ffc9ca; border: 1px solid rgba(229,72,77,.35); }
.error_msg { color: #ff8d90; font-size: 13.5px; margin: 6px 0 0; background: none; border: 0; padding: 0; }
.error_msg:empty { display: none; }
#browse_main > .error_msg { font-size: 15px; color: var(--dim); margin: 0 0 20px; }
#browse_main > .error_msg center { text-align: left; }
#browse_main > .error_msg br { display: none; }
.error_msg ul, .error_msg2 ol { padding-left: 20px; margin: 6px 0 0; }
.small-warning { color: #ff8d90; font-size: 13px; }
.small-warning:empty { display: none; }

/* ==========================================================================
   Stranica filma / epizode (detail.tpl)
   ========================================================================== */
.watch-page { max-width: 1240px; margin: 0 auto; }

/* IMDB blok iz baze */
.movie-hero {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,153,0,.10) 0%, rgba(255,153,0,0) 45%),
    var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.movie-hero:empty { display: none; }
.movie-hero > div {
  position: relative;
  min-height: 250px;
  padding-left: 192px;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.9;
}
.movie-hero > div > h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--text);
}
.movie-hero > div > span:first-of-type:has(img),
.movie-hero > div > span:first-of-type {
  position: absolute;
  left: 0;
  top: 0;
}
.movie-hero > div img {
  float: none !important;
  margin: 0 !important;
  width: 166px !important;
  height: 249px !important;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.55);
  display: block;
}
.movie-hero .impre { color: var(--faint); font-weight: 400; }
.movie-hero .imrezultat { color: var(--text); }
.movie-hero .imrezultat a {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}
.movie-hero .imrezultat a:hover { border-color: var(--orange); color: var(--orange); }
.movie-hero .imrezultat a[href="#"] { pointer-events: none; }

.watch-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 14px;
}
.watch-title { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--dim);
  padding: 0 !important;
  text-shadow: none !important;
}
.watch-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.watch-meta a { color: var(--text) !important; }
.watch-meta a:hover { color: var(--orange) !important; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 16px;
}
.stage.stage--solo { grid-template-columns: minmax(0, 1fr); }

.player-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--line-soft);
  min-height: 0;
}
/* slika sa uputstvom pre prvog play-a */
.player-start {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 24px clamp(18px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
  color: var(--dim);
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(255,153,0,.16) 0%, rgba(255,153,0,0) 70%),
    #050505;
  isolation: isolate;
}
@supports not (aspect-ratio: 1) { .player-start { min-height: 360px; } }
.player-start-bg {
  position: absolute;
  inset: -30px;
  z-index: -1;
  background-size: cover;
  background-position: center 30%;
  filter: blur(22px) brightness(.35) saturate(1.2);
  transform: scale(1.1);
}
.player-start::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 80% at 50% 50%, rgba(0,0,0,.1) 0%, rgba(0,0,0,.75) 100%);
}
.player-start-play {
  width: clamp(66px, 9vw, 96px);
  height: clamp(66px, 9vw, 96px);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23000'/%3E%3C/svg%3E") 56% 50% / 42% no-repeat,
    var(--orange);
  box-shadow: 0 0 0 10px rgba(255,153,0,.16), 0 14px 44px rgba(255,153,0,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.player-start-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  color: var(--text);
}
.player-start-note { font-size: clamp(12.5px, 1.3vw, 14px); line-height: 1.5; max-width: 46ch; color: var(--dim); }
.player-start:hover { color: var(--dim); }
.player-start:hover .player-start-play { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(255,153,0,.2), 0 18px 54px rgba(255,153,0,.5); }
.player-start:focus-visible { outline-offset: -4px; }
@media (max-width: 640px) {
  .player-start { gap: 10px; }
  .player-start-note br { display: none; }
}
.player-frame iframe { width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; border: 0; display: block; }

/* iframe plejer (embed.php) */
.player-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
@supports not (aspect-ratio: 1) {
  .player-embed { height: 0; padding-top: 56.25%; }
}
.player-frame .player-embed iframe {
  position: absolute;
  inset: 0;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
  border: 0;
  display: block;
  background: #000;
}
.player-embed--msg {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(255,153,0,.10) 0%, rgba(255,153,0,0) 70%),
    #050505;
}
.player-embed--msg p { margin: 0; color: var(--dim); font-size: 15px; max-width: 42ch; }
@supports not (aspect-ratio: 1) {
  .player-embed--msg p { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
}
.player-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}
.player-host { color: var(--faint); white-space: nowrap; }

.episodes {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 0;
}
.episodes-title {
  font-size: 22px;
  margin: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.episodes-body { position: relative; flex: 1 1 auto; min-height: 0; }
.episodes .scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 6px;
}
.episodes .scroll .item { display: block; padding: 0; margin: 0; height: auto; border: 0; }
.episodes .scroll .song_name {
  display: block;
  padding: 8px 12px 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: inset 2px 0 0 transparent;
  transition: background-color .12s;
}
.episodes .scroll .song_name:hover { background: var(--raised); }
.episodes .scroll .ep-odd   { color: var(--text); box-shadow: inset 2px 0 0 #3a3a3a; }
.episodes .scroll .ep-even  { color: #cfc6b8; box-shadow: inset 2px 0 0 #6b4a1c; }
.episodes .scroll .ep-other { color: var(--text); }
.episodes .scroll .ep-current {
  color: #000;
  background: var(--orange);
  font-weight: 600;
}
.episodes .scroll .ep-current:hover { background: var(--orange-hot); }
.episodes-body > :not(.scroll) { padding: 12px; }

/* izbor plejera */
.player-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0 !important;
}
.player-switch-label { color: var(--dim); font-size: 14px; margin-right: 6px; }
.player-btn,
.player-switch .control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  width: auto;
  padding: 0 18px;
  margin: 0;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  text-shadow: none;
}
.player-btn:hover { border-color: var(--orange); color: var(--orange); }
.player-btn.is-active,
.player-btn[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
}
.player-btn.is-active::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #000;
}
.player-switch .control.admin-edit { border-style: dashed; color: var(--dim); }

.watch-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.watch-desc,
#enclosed {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.7;
  text-shadow: none;
  padding: 0;
  margin: 0 0 8px;
  max-width: 80ch;
}
#enclosed p { margin: 0; }


/* slični (show_more) */
#detail_show_more { width: auto; border: 0; background: none; padding: 0; line-height: 1.4; }
#detail_show_more.rail-track .item .artist_name { display: none; }

/* komentari */
.comments { margin-top: 10px; }
.comment_box ol { list-style: none; margin: 0; padding: 0; }
.comment_box ol li,
.comment_box li {
  display: block !important;
  width: auto !important;
  margin: 0 0 12px !important;
  padding: 16px 18px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  overflow: hidden;
}
.comment_box li:empty { display: none !important; }
.comment_box li:hover { color: var(--text) !important; }
.comment_box .comment-head {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: auto !important;
  height: auto !important;
  margin: 0 0 4px !important;
  background: none !important;
}
.comment_box .comment-head + br { display: none; }
.comment_box .avatar_img {
  width: 40px !important;
  height: 40px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  background: var(--raised) !important;
}
.comment_box .comment-author { font-weight: 600; font-size: 15px; line-height: 1.2; }
.comment_box .comment-author a { color: var(--text) !important; font-size: 15px !important; }
.comment_box .comment-date { font-size: 13px; color: var(--faint) !important; font-style: normal; }
.comment_box .row_actions {
  float: none !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 !important;
}
.vote {
  display: inline-grid;
  place-items: center;
  color: var(--dim);
}
.vote a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line-soft);
  color: var(--dim);
  transition: color .15s, border-color .15s;
}
.vote--up a:hover { color: var(--orange); border-color: var(--orange); }
.vote--down a:hover { color: #ff8d90; border-color: rgba(229,72,77,.6); }
.vote a .icon { width: 16px; height: 16px; }
.vote > .icon { width: 34px; height: 16px; opacity: .45; } /* već glasao: ikonica bez linka */
.vote-count {
  min-width: 26px;
  padding: 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.vote-count.is-negative { color: #ff8d90; }
.comment_box .ban_user,
.comment_box .delete_comment {
  display: inline-flex !important;
  align-items: center;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: var(--raised) !important;
  color: var(--dim) !important;
  font-size: 13px !important;
}
.comment_box .delete_comment:hover { background: rgba(229,72,77,.2) !important; color: #ffc9ca !important; }
#be_the_first { color: var(--dim); padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); }
.must-sign-in { color: var(--dim); margin-top: 12px; }
.must-sign-in a { text-decoration: underline; text-underline-offset: 3px; }
.count-muted { color: var(--faint); }

/* forma za komentar */
.comment-form-wrap {
  margin: 0 0 26px;
  padding: clamp(16px, 2.4vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.comment-form-title {
  font-size: 22px;
  margin: 0 0 14px;
}
.comment-form-row { margin: 0 0 14px; }
.comment-form textarea,
.comment-form .inputtext {
  display: block;
  width: 100%;
  background: var(--black) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.55;
  padding: 11px 13px !important;
  box-shadow: none !important;
  transition: border-color .15s;
}
.comment-form textarea { min-height: 112px; resize: vertical; }
.comment-form textarea::placeholder { color: var(--faint); }
.comment-form textarea:hover,
.comment-form .inputtext:hover { border-color: #444 !important; }
.comment-form textarea:focus,
.comment-form .inputtext:focus { outline: 0; border-color: var(--orange) !important; }
#c_username { max-width: 320px; }

.comment-form .captcha-row { margin: 0; gap: 8px; }
.captcha-row img { display: block; height: 44px; width: auto; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--line); }
.captcha-reload {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--dim);
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .3s var(--ease);
}
.captcha-reload:hover { color: var(--orange); border-color: var(--orange); }
.captcha-reload:active { transform: rotate(-90deg); }
.comment-form .captcha-input { width: 150px !important; max-width: 150px; display: inline-block; }

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.char-count { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--orange); }
.comment-form .inputbutton[disabled] { opacity: .55; cursor: wait; }
.comment-notice { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }

.mycommentspan {
  display: none;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14.5px;
}
.mycommentspan.is-loading { display: flex; align-items: center; gap: 10px; color: var(--dim); background: var(--raised); }
.mycommentspan.is-ok { color: #bdf0d4; background: rgba(63,185,122,.12); border: 1px solid rgba(63,185,122,.35); }
.mycommentspan.is-error { color: #ffc9ca; background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.35); }
.mycommentspan a { color: inherit; text-decoration: underline; }
#myform + .mycommentspan.is-ok { margin-top: 0; }
.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  animation: ft-spin .7s linear infinite;
}
@keyframes ft-spin { to { transform: rotate(360deg); } }

.comment-locked {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--dim);
  font-size: 14.5px;
}
#preview_comment:empty { display: none !important; }

@media (max-width: 640px) {
  .comment-form-foot { flex-direction: row-reverse; }
  .comment-form-foot .inputbutton { flex: 1 1 auto; }
  .comment-form .captcha-input { width: 100% !important; max-width: none; flex: 1 1 100%; }
}

#tags { background: none !important; padding: 0; margin-top: 30px; color: var(--faint); font-size: 0; }
#tags a { font-size: 13px; }

/* ==========================================================================
   Profil
   ========================================================================== */
.icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }




/* ==========================================================================
   Tekstualne stranice
   ========================================================================== */
.prose { color: var(--dim); font-size: 16px; line-height: 1.75; max-width: 75ch; }
.prose h1 { font-size: clamp(34px, 4vw, 52px); color: var(--text); margin-bottom: 18px; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }

.about {
  margin: clamp(30px, 5vw, 60px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.7;
  columns: 2 340px;
  column-gap: 44px;
}
.about h2 { font-size: 20px; color: var(--dim); column-span: all; margin-bottom: 12px; }
.about p { break-inside: avoid; }
.about strong { color: var(--dim); font-weight: 600; }

/* ==========================================================================
   Reklame
   ========================================================================== */
.ad-slot { margin: 26px 0; text-align: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-slot--tall { min-height: 245px; }
.ad-slot--tall:empty { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  background: var(--black);
  color: var(--faint);
  font-size: 14px;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 34px var(--gutter) 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 40px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--orange); }
.footer-contact { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer-contact img { display: block; border-radius: 3px; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--faint); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.to-top:hover { border-color: var(--orange); color: var(--orange); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .episodes-body { height: 340px; flex: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }

  .site-header .bar {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 10px;
    padding-bottom: 0;
  }
  .brand { font-size: 28px; }
  .site-search { flex: 1 1 200px; order: 2; }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    margin: 0 calc(var(--gutter) * -1);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { padding: 0 var(--gutter) 8px; }
  .main-nav a { padding: 7px 12px; font-size: 14px; background: var(--surface); }

  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .side-box:not(.cats-box) { display: none; }

  .cats-box {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
  }
  .cats-box .side-title { margin: 0; padding: 0; border: 0; font-size: 20px; }
  .cats-toggle { padding: 13px 16px; cursor: pointer; }
  .cats-toggle .chev {
    display: block;
    width: 12px; height: 12px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s var(--ease);
  }
  .cats-box.open .cats-toggle .chev { transform: translateY(2px) rotate(-135deg); }
  .cats-box #list_cats { display: none; padding: 0 10px 12px; }
  .cats-box.open #list_cats { display: block; }
  .cats-box #ul_categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 6px; }

  .page-head { align-items: flex-start; }
  .filmstrip::before, .filmstrip::after { width: 28px; }
  .filmstrip-track { padding: 0 28px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .poster-grid ul { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
  .video_i > a > .artist_name,
  .video_i > .song_name { font-size: 13px !important; margin-top: 8px !important; }
  .video_i .tag { top: 6px !important; left: 6px !important; right: 6px !important; }
  .video_i .tag span { font-size: 10px !important; padding: 2px 5px !important; }
  .video_i .tag { flex-wrap: nowrap; }
  .video_i .tag > .comm-count { display: none !important; }
  li.video > .tops4 { font-size: 11px; height: 22px; top: calc(150cqw - 22px); }

  .rail-track { grid-auto-columns: 118px; gap: 12px; }

  .filmstrip-track a { font-size: 24px; padding: 10px 14px; }

  .section-head { flex-wrap: wrap; }

  /* na telefonu plejer ide odmah ispod naslova, IMDB podaci ispod plejera */
  .watch-page { display: flex; flex-direction: column; }
  .watch-page > .watch-title-row { order: 1; }
  .watch-page > .stage { order: 2; }
  .watch-page > .player-switch { order: 3; }
  .watch-page > .movie-hero { order: 4; }
  .watch-page > #detail_page { order: 6; }
  .player-note { font-size: 12px; padding: 8px 12px; }
  .movie-hero > div { padding-left: 0; min-height: 0; }
  .movie-hero > div > span:first-of-type:has(img),
  .movie-hero > div > span:first-of-type { position: static; float: left; margin: 4px 14px 8px 0; }
  .movie-hero > div img { width: 104px !important; height: 156px !important; }
  .movie-hero > div > h2 { font-size: 30px; }

  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .form-grid > .form-label { margin: 10px 0 0; }

  .data-table td { padding: 8px 10px; }
  .data-table tr.heading { display: none; }
  #topvideos_results .data-table td:nth-child(3),
  #newvideos_results .data-table td:nth-child(2) { display: none; }
  .data-table td[align="center"]:first-child { width: 32px; font-size: 16px !important; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .about { columns: 1; }
  .sorting { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
