.film-page {
  padding: 32px 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.film-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.film-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.film-poster-large {
  width: 100%;
  position: relative;
  padding-top: 150%;
  border-radius: 12px;
  background: linear-gradient(160deg, #1e2a3a, #0d1520);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.film-poster-large img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.film-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.film-naslov {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.film-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.film-dot {
  opacity: 0.3;
}

.meta-link,
.glumac-link {
  text-decoration: none;
}

.meta-link:hover,
.glumac-link:hover {
  color: #e8692a;
}

.meta-link {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.meta-link:visited {
  color: rgba(255,255,255,0.45);
}

.film-badges-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.film-badges-row {
  display: flex;
  gap: 8px;
}

.film-views-bar {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.4);
}

.film-rating-big {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  width: fit-content;
  margin: 0;
}

.film-badges-row .film-rating-big {
  justify-content: center;
}

.rating-broj {
  font-size: 16px;
  font-weight: 700;
  color: #f5c518;
}

.rating-label {
  font-size: 11px;
  color: rgba(245,197,24,0.6);
}

.like-btn {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  cursor: pointer;
  transition: all 0.15s;
}

.like-btn:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.5);
}

.like-btn .rating-broj {
  color: #818cf8;
}

.like-btn .rating-label {
  color: rgba(129,140,248,0.6);
}

.like-btn svg {
  stroke: #818cf8;
}

.like-btn.liked {
  background: rgba(99,102,241,0.25);
  border-color: rgba(99,102,241,0.6);
}

.like-btn.liked svg {
  fill: rgba(99,102,241,0.4);
}

.komentari-badge-btn {
  background: #e8692a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.komentari-badge-btn:hover {
  background: #d05a20;
}

.film-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.film-player {
  border-radius: 12px;
  background: #111318;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.player-video-area {
  aspect-ratio: 16/9;
  position: relative;
  width: 100%;
  cursor: pointer;
}

.film-akcije {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.server-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  transition: background 0.15s, color 0.15s;
}
.server-btn.active {
  background: #e8692a;
  color: #fff;
}
.server-btn:not(.active):hover {
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.8);
}

.film-spremi-btn {
  padding: 7px 32px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #6366f1;
  color: #fff;
  transition: background 0.15s;
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
}
.film-spremi-btn:hover { background: #4f46e5; }
.film-spremi-btn.saved { background: #4f46e5; }

.cam-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.45);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(239,68,68,0.12);
  color: #f87171;
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.cam-badge:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.65);
}

.cam-popup {
  display: none;
  position: fixed;
  background: #1e1f2b;
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: 10px;
  padding: 14px 16px;
  width: 260px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.cam-popup.open { display: block; }
.cam-popup-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 8px;
}
.cam-popup p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0;
}

.greska-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.5);
  transition: border-color 0.15s, color 0.15s;
}
.greska-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

.greski-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.greski-modal-box {
  background: #1a1b23;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
}
.greski-modal-box p {
  color: rgba(255,255,255,0.7);
  margin: 0 0 12px;
  font-size: 14px;
}
.greski-modal-box textarea {
  width: 100%;
  min-height: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
}
.greski-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-end;
}
.greski-modal-actions button {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #e8692a;
  color: #fff;
}
.greski-modal-actions button.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}

.player-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.player-placeholder p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.film-detalji {
  background: #13141a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px;
  flex: 1;
}

.film-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 10px 0;
}

.film-opis p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.film-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 24px 0;
}

.film-crew {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crew-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}

.crew-label {
  color: rgba(255,255,255,0.35);
  min-width: 80px;
  font-size: 13px;
  flex-shrink: 0;
}

.crew-value {
  color: rgba(255,255,255,0.85);
}

.glumac-link {
  color: rgba(255,255,255,0.85);
  transition: color 0.15s;
}

.glumci-vise-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  padding: 2px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.glumci-vise-btn:hover {
  color: #e8692a;
  border-color: rgba(232,105,42,0.4);
}

.film-tagovi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.film-tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: all 0.15s;
}

.film-tag:hover {
  color: #e8692a;
  border-color: rgba(232,105,42,0.4);
  background: rgba(232,105,42,0.08);
}

.film-komentari {
  background: #13141a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px;
}

.komentari-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.komentari-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: #e8692a;
  border-radius: 2px;
}

.komentar-forma {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.komentar-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.komentar-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: #fff;
  outline: none;
  font-family: system-ui, sans-serif;
  width: 100%;
}

.komentar-input:focus {
  border-color: rgba(232,105,42,0.5);
}

.komentar-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.komentar-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: #fff;
  outline: none;
  min-height: 100px;
  resize: vertical;
  font-family: system-ui, sans-serif;
  width: 100%;
}

.komentar-textarea:focus {
  border-color: rgba(232,105,42,0.5);
}

.komentar-textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.komentar-toggle-btn {
  background: #e8692a;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: block;
  transition: all 0.15s;
}

.komentar-toggle-btn:hover {
  background: #d05a20;
}

.komentar-btn {
  background: #e8692a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: all 0.15s;
}

.komentar-btn:hover {
  background: #d05a20;
}

.komentari-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.komentar-item {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.komentar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.komentar-ime {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.komentar-datum {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
}

.komentar-tekst {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.nema-komentara {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 24px 0;
}

@media (max-width: 768px) {
  .film-top {
    grid-template-columns: 1fr;
  }

  .film-right {
    order: -1;
  }
}
.film-badges-row .film-rating-big {
  width: 110px;
  height: 36px;
  box-sizing: border-box;
  justify-content: center;
}

.film-views-bar {
  width: 228px;
  height: 36px !important;
  box-sizing: border-box;
  justify-content: center;
}

/* Reply sustav */
.komentar-akcije {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}

.komentar-odgovori-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.komentar-odgovori-btn:hover { color: #e8692a; }

.komentar-toggle-replies {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.komentar-toggle-replies:hover { color: #e8692a; }

.komentar-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(232,105,42,0.3);
}

.komentar-reply-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.komentar-reply-item:last-of-type { border-bottom: none; }

.komentar-reply-forma-wrap {
  margin-top: 10px;
}

.komentar-reply-forma {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-forma-header {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.reply-forma-header strong { color: #e8692a; }

.reply-textarea {
  min-height: 70px !important;
  font-size: 13px;
}

.reply-forma-btnovi {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reply-submit-btn {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

.komentar-cancel-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.komentar-cancel-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
