/* Filmoteka public CSS — automatski izdvojeno pri pakovanju. */
.movie-card::before,
    .reel-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 9;
      pointer-events: none;
      border-radius: inherit;
      padding: var(--gradient-border-width, 3px);
      background: var(--poster-bg, linear-gradient(160deg, #f3c66b, #89b8ff));
      opacity: .94;
      -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

.mini-card {
      position: absolute;
      width: 19px;
      height: 25px;
      border-radius: 6px;
      border: 2px solid #1b1308;
      background: #ffe2a0;
      box-shadow: 0 4px 10px rgba(0,0,0,.22);
      z-index: 1;
    }

.mini-card.back {
      transform: translateX(-5px) rotate(-10deg);
      opacity: .72;
    }

.mini-card.front {
      transform: translateX(5px) rotate(10deg);
    }

.big-action.is-card-swipe .mini-card.front {
      animation: miniCardSwipeFront .78s cubic-bezier(.16,.86,.25,1) both;
    }

.big-action.is-card-swipe .mini-card.back {
      animation: miniCardSwipeBack .78s cubic-bezier(.16,.86,.25,1) both;
    }

@keyframes miniCardSwipeFront {
      0% { transform: translateX(5px) rotate(10deg); opacity: 1; }
      45% { transform: translateX(20px) rotate(18deg); opacity: .95; }
      72% { transform: translateX(-18px) rotate(-12deg); opacity: .45; }
      100% { transform: translateX(5px) rotate(10deg); opacity: 1; }
    }

@keyframes miniCardSwipeBack {
      0% { transform: translateX(-5px) rotate(-10deg); opacity: .72; }
      55% { transform: translateX(3px) rotate(4deg); opacity: 1; }
      100% { transform: translateX(-5px) rotate(-10deg); opacity: .72; }
    }

.mini-card,
    .dice-face {
      will-change: transform, opacity;
      backface-visibility: hidden;
      transform-style: preserve-3d;
    }

body.reel-lock {
      overflow: hidden !important;
      height: 100dvh !important;
      touch-action: none;
      overscroll-behavior: none;
    }

.reel-modal {
      position: fixed;
      inset: 0;
      display: none;
      z-index: 90;
      color: var(--text);
      background:
        radial-gradient(circle at 50% 0%, rgba(243,198,107,.09), transparent 24rem),
        #05060a;
      overflow: hidden;
      overscroll-behavior: none;
    }

.reel-modal.open {
      display: block;
    }

.reel-shell {
      width: min(100vw, 540px);
      height: 100dvh;
      margin: 0 auto;
      padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
      display: grid;
      grid-template-rows: minmax(0, 1fr);
      position: relative;
      box-sizing: border-box;
      overflow: hidden;
    }

.reel-close {
      position: fixed;
      z-index: 110;
      top: max(12px, env(safe-area-inset-top));
      right: max(12px, env(safe-area-inset-right));
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 999px;
      background: rgba(0,0,0,.42);
      color: var(--text);
      backdrop-filter: blur(14px);
      box-shadow: 0 12px 40px rgba(0,0,0,.38);
      touch-action: manipulation;
    }

.reel-close:hover {
      background: rgba(255,255,255,.12);
    }

.reel-stage {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 0;
      display: grid;
      place-items: center;
      overflow: hidden;
      contain: layout paint style;
      user-select: none;
      -webkit-user-select: none;
      overscroll-behavior: contain;
      touch-action: pan-y;
    }

.reel-card {
      --gradient-border-width: 4px;
      position: relative;
      z-index: 2;
      width: var(--reel-card-width, min(100%, 500px));
      height: var(--reel-card-height, 100%);
      min-height: 0;
      border-radius: var(--reel-card-radius, clamp(24px, 6vw, 34px));
      border: 1px solid rgba(255,255,255,.10);
      overflow: hidden;
      background-color: #11151f;
      background-image: var(--poster-img), var(--poster-fallback-img), var(--poster-bg);
      background-size: cover;
      background-position: center;
      box-shadow: 0 28px 110px rgba(0,0,0,.76), inset 0 0 0 1px rgba(255,255,255,.08);
      transform: translate3d(var(--drag-x, 0px), 0, 0) rotate(var(--drag-rot, 0deg)) scale(var(--drag-scale, 1));
      transform-origin: 50% 86%;
      transition: transform .18s cubic-bezier(.18,.88,.24,1), opacity .18s ease;
      will-change: transform, opacity;
      backface-visibility: hidden;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: pan-y;
      contain: layout paint style;
      cursor: pointer;
    }

.reel-card.is-dragging {
      transition: none;
      cursor: grabbing;
    }

.reel-card.enter-next {
      animation: reelEnterNext .18s cubic-bezier(.16,.96,.3,1) both;
    }

.reel-card.enter-back {
      animation: reelEnterBack .18s cubic-bezier(.16,.96,.3,1) both;
    }

.reel-poster {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background-image: var(--poster-img), var(--poster-fallback-img), var(--poster-bg);
      background-size: cover;
      background-position: center;
      transform: translateZ(0) scale(1.01);
      backface-visibility: hidden;
    }

.reel-poster::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(to bottom, rgba(5,6,10,.04) 0%, rgba(5,6,10,.10) 34%, rgba(5,6,10,.66) 64%, rgba(5,6,10,.96) 100%),
        radial-gradient(circle at 50% 15%, rgba(255,255,255,.08), transparent 20rem);
    }

.reel-poster-img {
      z-index: 1;
      transform: scale(1.012);
      filter: saturate(1.03) contrast(1.02);
    }

.reel-content {
      position: absolute;
      z-index: 2;
      left: clamp(10px, 3vw, 16px);
      right: clamp(10px, 3vw, 16px);
      bottom: clamp(10px, 2.6vh, 18px);
      max-height: var(--reel-content-max-height, 64%);
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      gap: var(--reel-content-gap, clamp(6px, 1vh, 9px));
      transform: translateZ(0);
    }

.reel-title-block,
    .reel-data-panel {
      flex: 0 0 auto;
      margin: 0;
    }

.reel-title-block {
      align-self: flex-start;
      width: -moz-fit-content;
      width: fit-content;
      max-width: 100%;
      box-sizing: border-box;
      overflow: hidden;
      padding: clamp(10px, 1.55vh, 14px) clamp(12px, 3vw, 16px) clamp(9px, 1.4vh, 13px);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: clamp(16px, 4.4vw, 22px);
      background: linear-gradient(135deg, rgba(8,10,17,.84), rgba(8,10,17,.62));
      -webkit-backdrop-filter: blur(17px) saturate(1.08);
      backdrop-filter: blur(17px) saturate(1.08);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 48px rgba(0,0,0,.32);
    }

.reel-data-panel {
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(5,7,12,.74);
      backdrop-filter: blur(16px);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }

.reel-content h3 {
      margin: 0;
      max-width: 100%;
      font-family: var(--serif);
      font-size: clamp(1.16rem, min(6vw, 4.8vh), var(--reel-title-size, 2.34rem));
      line-height: 1.08;
      letter-spacing: -.035em;
      color: #fff8ea;
      text-shadow: 0 12px 36px rgba(0,0,0,.84), 0 2px 10px rgba(0,0,0,.74);
      display: -webkit-box;
      -webkit-line-clamp: var(--reel-title-lines, 2);
      -webkit-box-orient: vertical;
      overflow: hidden;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: auto;
      padding-bottom: .08em;
      text-wrap: balance;
    }

.reel-original {
      display: block;
      margin-top: clamp(5px, .85vh, 8px);
      max-width: 100%;
    }

.reel-original-title {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      overflow-wrap: break-word;
      word-break: normal;
      margin-top: 5px;
      color: rgba(240,231,212,.78);
      font-size: clamp(.70rem, min(2.35vw, 1.8vh), .84rem);
      font-weight: 640;
      line-height: 1.28;
      padding-bottom: .06em;
      text-shadow: 0 6px 18px rgba(0,0,0,.62);
    }

.reel-data-panel {
      padding: clamp(7px, 1.25vh, 11px);
      border-radius: clamp(15px, 4vw, 20px);
      overflow: hidden;
    }

.reel-info-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-bottom: clamp(5px, .9vh, 8px);
      max-height: 70px;
      overflow: hidden;
      align-items: flex-start;
    }

.reel-info-chips .tag {
      min-height: 22px;
      padding: 4px 7px 5px;
      font-size: clamp(.64rem, 1.45vh, .74rem);
      line-height: 1.24;
      background: rgba(255,255,255,.07);
      overflow-wrap: break-word;
      word-break: normal;
    }

.reel-data-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(5px, .9vh, 8px);
    }

.reel-data-item {
      min-height: clamp(50px, 7.2vh, 70px);
      border: 1px solid rgba(255,255,255,.11);
      border-radius: clamp(12px, 3.4vw, 16px);
      padding: clamp(7px, 1.05vh, 10px) clamp(8px, 1.3vw, 11px);
      background: rgba(255,255,255,.062);
      overflow: hidden;
    }

.reel-data-item small,
    .reel-rating-mini small {
      display: block;
      font-size: var(--reel-rating-label-size, clamp(.54rem, 1.35vh, .68rem));
      text-transform: uppercase;
      letter-spacing: .06em;
      line-height: 1.22;
      padding-bottom: .04em;
      overflow-wrap: break-word;
      word-break: normal;
    }

.reel-data-item small {
      color: var(--muted);
    }

.reel-data-item b {
      display: -webkit-box;
      -webkit-line-clamp: var(--reel-box-value-lines, 2);
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-top: 3px;
      color: var(--text);
      font-size: var(--reel-box-value-size, clamp(.70rem, min(2.2vw, 1.85vh), .90rem));
      line-height: 1.24;
      padding-bottom: .06em;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: auto;
      text-wrap: balance;
    }

.reel-ratings-mini {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(4px, .8vh, 6px);
      margin-top: clamp(5px, .8vh, 7px);
    }

.reel-rating-mini {
      border-radius: clamp(10px, 3vw, 14px);
      padding: clamp(6px, .9vh, 8px) clamp(7px, 1.2vw, 9px);
      color: #17120b;
      background: linear-gradient(145deg, var(--gold-2), #c99538);
      overflow: hidden;
    }

.reel-rating-mini small {
      color: rgba(23,18,11,.72);
      font-weight: 850;
    }

.reel-rating-mini b {
      display: block;
      margin-top: 3px;
      font-size: var(--reel-rating-value-size, clamp(.74rem, 1.85vh, .96rem));
      line-height: 1.18;
      font-weight: 950;
      padding-bottom: .04em;
      overflow-wrap: break-word;
      word-break: normal;
    }

.reel-cast {
      flex: 0 0 auto;
      display: grid;
      gap: 4px;
      margin: 0;
      color: #efe4cf;
      font-size: clamp(.74rem, min(2.45vw, 1.95vh), .88rem);
      line-height: 1.23;
      text-shadow: 0 8px 22px rgba(0,0,0,.72);
    }

.reel-cast > span {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-weight: 500;
      line-height: 1.32;
      padding-bottom: .06em;
      overflow-wrap: break-word;
      word-break: normal;
    }

.reel-cast b {
      color: var(--gold-2); font-weight: 950;
    }

.reel-cast-pair {
      display: inline; white-space: normal;
    }

.reel-actor-name {
      display: inline; color: #fff3d7; font-weight: 900;
    }

.reel-role {
      display: inline; color: #d8d2c8; font-weight: 500;
    }

.reel-counter {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--gold-2);
      font-size: .86rem;
    }

.reel-counter::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--gold);
      box-shadow: 0 0 16px var(--gold);
    }

@media (max-width: 430px) {
.reel-shell {
      padding-left: 8px; padding-right: 8px;
    }

.reel-card {
      --reel-card-width: 100%;
      --reel-card-radius: 26px;
    }

.reel-content {
      --reel-content-max-height: 66%;
    }

.reel-data-grid {
      gap: 5px;
    }

.reel-data-item {
      min-height: 43px;
    }
}

@media (max-height: 720px) {
.reel-content {
      --reel-content-max-height: 70%;
      --reel-content-gap: 6px;
    }

.reel-content h3 {
      font-size: clamp(1.05rem, min(5.6vw, 4.2vh), var(--reel-title-size, 2rem));
      line-height: 1.10;
    }

.reel-original-title {
      font-size: .70rem;
    }

.reel-info-chips {
      max-height: 58px;
    }

.reel-data-item {
      min-height: 44px; padding: 6px 7px 7px;
    }

.reel-data-item small,
      .reel-rating-mini small {
      font-size: .56rem;
    }

.reel-data-item b {
      font-size: var(--reel-box-value-size, .70rem);
      line-height: 1.22;
      -webkit-line-clamp: 2;
    }

.reel-ratings-mini {
      grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
    }

.reel-rating-mini {
      padding: 4px 5px;
    }

.reel-rating-mini b {
      font-size: .72rem;
    }

.reel-cast {
      font-size: .70rem;
    }

.reel-cast > span {
      -webkit-line-clamp: 1;
    }
}

@media (max-height: 635px) {
.reel-content {
      --reel-content-max-height: 70%;
    }

.reel-data-panel {
      padding: 6px;
    }

.reel-info-chips .tag {
      min-height: 18px; padding: 2px 5px; font-size: .62rem;
    }
}

@media (min-width: 1024px) {
.reel-shell {
      width: min(100vw, 760px);
        padding: 18px;
    }

.reel-card {
      --reel-card-width: min(100%, 620px);
      --reel-card-height: min(100%, 860px);
    }

.reel-content {
      --reel-content-max-height: 54%;
    }
}

@media (prefers-reduced-motion: reduce) {
.reel-card,
      .reel-card.enter-next,
      .reel-card.enter-back {
      animation: none;
        transition: none;
    }
}

.movie-card,
.reel-card {
  isolation: isolate;
}

.reel-card {
  background-clip: padding-box;
}

.reel-poster {
  overflow: hidden;
  border-radius: inherit;
}

.reel-card {
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 34px 130px rgba(0,0,0,.82),
    0 10px 34px rgba(0,0,0,.46),
    inset 0 0 0 1px rgba(255,255,255,.075);
}

.reel-card::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 10px;
  z-index: 4;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,238,188,.60), rgba(255,255,255,.32), transparent);
  opacity: .66;
}

@media (hover: hover) and (pointer: fine) {
.reel-card:not(.is-dragging):hover {
    transform: translate3d(var(--drag-x, 0px), -3px, 0) rotate(var(--drag-rot, 0deg)) scale(calc(var(--drag-scale, 1) * 1.006));
    box-shadow:
      0 38px 145px rgba(0,0,0,.86),
      0 14px 42px rgba(0,0,0,.52),
      inset 0 0 0 1px rgba(255,255,255,.10);
  }
}

.reel-poster::after {
  background:
    linear-gradient(to bottom,
      rgba(4,5,9,.02) 0%,
      rgba(4,5,9,.04) 30%,
      rgba(4,5,9,.24) 49%,
      rgba(4,5,9,.76) 73%,
      rgba(4,5,9,.97) 100%),
    radial-gradient(circle at 48% 16%, rgba(255,255,255,.10), transparent 21rem),
    linear-gradient(115deg, rgba(243,198,107,.09), transparent 34%, rgba(137,184,255,.075));
}

.reel-content {
  gap: clamp(7px, 1.05vh, 11px);
}

.reel-title-block {
  max-width: min(100%, 88%);
  padding: clamp(9px, 1.35vh, 13px) clamp(12px, 2.8vw, 17px) clamp(8px, 1.25vh, 12px);
  border-color: rgba(255,226,157,.22);
  background:
    linear-gradient(135deg, rgba(9,11,18,.88), rgba(9,11,18,.66)),
    linear-gradient(120deg, rgba(243,198,107,.09), transparent 55%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 46px rgba(0,0,0,.38);
}

.reel-content h3 {
  line-height: 1.10;
  letter-spacing: -.032em;
  padding-bottom: .10em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.reel-original-title {
  margin-top: 4px;
  color: rgba(240,231,212,.70);
  font-size: clamp(.68rem, min(2.1vw, 1.65vh), .80rem);
  line-height: 1.24;
}

.reel-data-panel {
  padding: clamp(8px, 1.25vh, 12px);
  border-color: rgba(255,255,255,.13);
  background:
    linear-gradient(145deg, rgba(5,7,12,.80), rgba(8,10,17,.66)),
    linear-gradient(115deg, rgba(243,198,107,.06), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 16px 44px rgba(0,0,0,.28);
}

.reel-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(7px, 1.3vw, 10px);
  margin-bottom: clamp(7px, 1vh, 10px);
}

.reel-info-chips {
  flex: 1 1 auto;
  margin: 0;
  max-height: none;
  gap: 5px;
}

.reel-info-chips .tag {
  min-height: 20px;
  padding: 3px 7px 4px;
  font-size: clamp(.61rem, 1.32vh, .72rem);
  line-height: 1.18;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.075);
}

.reel-average-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: clamp(58px, 11.5vw, 74px);
  min-height: clamp(46px, 6.6vh, 58px);
  padding: 6px 9px;
  border-radius: clamp(13px, 3.6vw, 18px);
  color: #1a1309;
  border: 1px solid rgba(255,255,255,.24);
  background:
    linear-gradient(145deg, #ffe8a7, var(--gold-2) 47%, #b87c25),
    var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.54),
    0 12px 30px rgba(0,0,0,.35),
    0 0 24px rgba(243,198,107,.16);
}

.reel-average-badge small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: clamp(.52rem, 1.18vh, .62rem);
  line-height: 1;
  color: rgba(26,19,9,.70);
  font-weight: 950;
}

.reel-average-badge strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.02rem, 2.5vh, 1.34rem);
  line-height: 1;
  font-weight: 1000;
}

.reel-data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, .95vh, 9px);
}

.reel-data-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(46px, 6.25vh, 60px);
  border-color: rgba(255,255,255,.105);
  background: rgba(255,255,255,.055);
}

.reel-data-item small {
  font-size: clamp(.52rem, 1.16vh, .64rem);
  letter-spacing: .07em;
}

.reel-data-item b {
  font-size: var(--reel-box-value-size, clamp(.68rem, min(2.05vw, 1.72vh), .86rem));
  line-height: 1.25;
  hyphens: none;
}

.reel-cast {
  margin-top: 1px;
  padding: 0 3px;
  font-size: clamp(.70rem, min(2.25vw, 1.76vh), .82rem);
  line-height: 1.25;
  color: rgba(239,228,207,.86);
}

.reel-cast b {
  color: rgba(255,222,138,.96);
}

@media (max-height: 720px) {
.reel-title-block {
    padding: 8px 11px 7px;
  }

.reel-panel-head {
    margin-bottom: 6px;
  }

.reel-average-badge {
    min-width: 54px;
    min-height: 43px;
    padding: 5px 7px;
  }

.reel-average-badge strong {
    font-size: 1rem;
  }

.reel-data-item {
    min-height: 42px;
  }
}

@media (max-width: 430px) {
.reel-title-block {
    max-width: min(100%, 92%);
  }

.reel-panel-head {
    gap: 6px;
  }

.reel-average-badge {
    min-width: 56px;
  }
}

.reel-ratings-mini {
  margin: 0 0 clamp(6px, .95vh, 9px);
}

.reel-rating-mini {
  min-height: clamp(38px, 5.25vh, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(255,255,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 10px 24px rgba(0,0,0,.22);
}

.reel-rating-mini small {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.reel-rating-mini b {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-height: 760px) {
.reel-ratings-mini {
    gap: 4px;
    margin-bottom: 6px;
  }

.reel-rating-mini {
    min-height: 36px;
    padding: 5px 6px;
  }

.reel-rating-mini small {
    font-size: clamp(.48rem, 1.02vh, .58rem);
    letter-spacing: .045em;
  }

.reel-rating-mini b {
    margin-top: 2px;
    font-size: clamp(.68rem, 1.55vh, .84rem);
  }

.reel-data-item {
    min-height: 40px;
  }
}

.reel-data-item b {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
