:root {
  --bg: #0a0a0a;
  --panel: #151515;
  --accent: #f5c518;
  --text: #e0e0e0;
  --muted: #999;
}

/* === GLOBAL === */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

.bg-hex {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image: url("../img/honeycomb.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.1;
}


/* === Zgornji meni === */
.topbar {
  background: linear-gradient(180deg, #111, #090909);
  border-bottom: 3px solid #000;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 20px;
}

.logo {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.4));
  transition: transform 0.2s ease-in-out;
  margin-top: 4px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === ManeCave: rumeni gumbi v glavnem meniju === */
.menu a {
  color: #000;
  background: linear-gradient(180deg, #ffcc00, #e6b800);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(255,204,0,0.3);
}

.menu a:hover {
  background: linear-gradient(180deg, #ffe066, #ffcc00);
  box-shadow: 0 0 15px rgba(255,255,150,0.6);
  transform: scale(1.05);
}


.logo-img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.4));
  transition: transform 0.25s ease-in-out, filter 0.25s ease-in-out;
  margin-top: 4px;
}

.logo-img:hover {
  transform: scale(1.12); /* lepo viden zoom */
  filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.8)); /* močan rumen glow */
}


/* === CLOCK === */
#clock {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 15px;
  font-family: 'Consolas', 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
  animation: glowPulse 2s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { text-shadow: 0 0 8px rgba(255,204,0,0.4); }
  to { text-shadow: 0 0 18px rgba(255,204,0,1); }
}

/* === SEARCH === */
.search {
  display: flex;
  align-items: center;
}
.search input {
  background: #111;
  border: 1px solid #222;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px 0 0 6px;
}
.search button {
  background: var(--accent);
  border: none;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}

/* === SIDEBAR === */
.sidebar {
  width: 210px;
  background: var(--panel);
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px;
  height: fit-content;
}
.sidebar h3 {
  color: var(--accent);
  margin-top: 0;
  text-align: center;
  font-size: 1.1em;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  padding: 7px;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}
.sidebar li:hover,
.sidebar li.category.active {
  background: rgba(245, 197, 24, 0.2);
  color: var(--accent);
  font-weight: 600;
}

/* === MAIN CONTAINER === */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  margin: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* === Film grid === */
.main {
  flex: 1;
}

.main h2 {
  color: var(--accent);
  margin-top: 0;
  text-align: center; /* naslov "Novi filmi" v sredino */
}

/* 🟡 Glavna mreža filmov */
.film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr)); /* 4 kartice v eni vrstici */
  justify-content: center; /* centriraj mrežo */
  gap: 28px; /* razmik med karticami */
  padding: 40px 10%; /* prostor levo in desno */
}

/* 🟢 Responsive prilagoditev */
@media (max-width: 1400px) {
  .film-grid {
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    padding: 40px 8%;
  }
}

@media (max-width: 1000px) {
  .film-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    padding: 30px 6%;
  }
}

@media (max-width: 600px) {
  .film-grid {
    grid-template-columns: repeat(1, minmax(230px, 1fr));
    padding: 20px 4%;
  }
}

/* 🎬 Kartice filmov */
.film-card {
  background: var(--panel);
  border: 1px solid #000;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.film-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.5);
}

.film-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.film-card .info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.genre {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-card .title {
  color: var(--accent);
  font-weight: 600;
  font-size: 1em;
}

.film-card .year {
  color: var(--muted);
  font-size: 0.85em;
}

/* === UPLOAD BUTTON === */
.upload-btn {
  background: var(--accent);
  color: #000;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255,204,0,0.4);
  text-transform: uppercase;
  transition: 0.2s;
}
.upload-btn:hover {
  background: #ffda44;
  transform: scale(1.05);
}

/* === PLAYER === */
.watch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-align: center;
}

.video-js {
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  margin: 25px auto;
}

/* === PS4 Simple Player === */
video.ps4-player {
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: #000;
  box-shadow: 0 0 25px rgba(255,204,0,0.25);
}

/* === Alien GIF === */
.alien-gif {
  position: absolute;
  right: 50px;
  top: 120px;
  width: 180px;
  animation: floaty 6s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* === Player ura overlay === */
.player-hour-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  text-shadow: 0 0 10px rgba(255,204,0,1);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 10;
}
.player-hour-overlay.show {
  opacity: 1;
}
.player-hour-overlay.blaze {
  animation: blazeGlow 1s ease-in-out infinite alternate;
}
@keyframes blazeGlow {
  from { text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffaa00; }
  to { text-shadow: 0 0 25px #ffd633, 0 0 40px #ff9900; }
}

/* === MOVIE DESCRIPTION === */
.movie-description {
  margin-top: 25px;
  color: #ddd;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(20, 20, 20, 0.8);
  padding: 18px 22px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.25);
  text-align: left;
}
.movie-description h3 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.movie-description p {
  color: #ccc;
  line-height: 1.4;
  white-space: pre-line;
}

/* === IMDb BOX === */
.imdb-box {
  margin: 25px auto;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(255,204,0,0.25);
  color: #ddd;
  text-align: center;
  max-width: 460px;
}
.imdb-box h3 {
  color: var(--accent);
  font-size: 1.6em;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,204,0,0.8);
  margin-bottom: 10px;
}
.imdb-box img {
  width: 130px;
  border-radius: 8px;
  margin: 10px auto;
  box-shadow: 0 0 12px rgba(255,215,0,0.3);
  display: block;
}
.imdb-box p {
  margin: 6px 0;
  font-size: 0.9em;
  color: #ccc;
  line-height: 1.5;
}

/* === BACK BUTTON === */
.back-button {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(255,204,0,0.4);
  margin-bottom: 20px;
}
.back-button:hover {
  background: #ffd633;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,204,0,0.6);
}

/* === AUTO-NEXT TOAST === */
.auto-next-toast {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 20;
}
.auto-next-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* === THUMBNAIL PREVIEW (LIVE MOVING) === */
.vjs-thumb-box {
  position: absolute;
  bottom: 50px !important;
  width: 240px !important;
  height: 135px !important;
  left: 0;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9999;
}
.vjs-thumb-box.show {
  opacity: 1;
}
.vjs-thumb-img-wrap,
.vjs-thumb-canvas {
  width: 240px !important;
  height: 135px !important;
  border-radius: 8px;
  border: 2px solid var(--accent);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(255,204,0,0.35),
              0 6px 16px rgba(0,0,0,0.45);
}
.vjs-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vjs-thumb-time {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(255,204,0,0.8);
}

/* === THUMBNAIL FOLLOW MOUSE === */
.video-js .vjs-progress-control:hover .vjs-thumb-box.show {
  opacity: 1;
}
.video-js .vjs-progress-control:hover .vjs-thumb-box.show {
  transition: opacity 0.15s ease, transform 0s;
}
/* 🎯 Natančna poravnava thumbnaila s kurzorjem */
.video-js .vjs-progress-control:hover .vjs-thumb-box {
  transform: translateX(calc(var(--hover-x) - 50% + 30px)) !important;
}


/* Skrij privzeti Video.js tooltip */
.vjs-progress-control .vjs-time-tooltip {
  display: none !important;
}

/* === SERIES PAGE === */
.series-page {
  width: 90%;
  margin: 30px auto;
  color: var(--accent);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.series-page h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

.series-card {
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
  max-width: 200px;
}
.series-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
}
.series-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.series-info {
  padding: 10px;
}
.series-info h3 {
  font-size: 16px;
  color: var(--accent);
  margin: 6px 0 3px 0;
}
.series-year {
  font-size: 14px;
  color: #ccc;
}
.series-desc {
  font-size: 13px;
  color: #bbb;
  line-height: 1.3;
  text-align: center;
}

/* === WATCH SERIES === */
.series-player-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.episode-list {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffcc00;
  border-radius: 10px;
  padding: 10px;
  color: #ffcc00;
  max-height: 540px;
  overflow-y: auto;
  width: 220px;
  font-family: 'Poppins', sans-serif;
}

.episode-list h4 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
}

.episode-list select {
  width: 100%;
  background: #111;
  color: #ffcc00;
  border: 1px solid #ffcc00;
  border-radius: 8px;
  padding: 5px;
  height: 480px;
  font-size: 14px;
  cursor: pointer;
}

.episode-list option {
  padding: 4px;
  border-bottom: 1px solid #333;
}

.episode-list option:hover {
  background: rgba(255, 204, 0, 0.2);
}

.movie-description {
  margin-top: 25px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffcc00;
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  font-size: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.poster-small {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ffcc00;
}
/* === WATCH SERIES MULTI-SEASON === */

/* poskrbi da se sezonski in epizodni dropdown lepo zložita */
.episode-list h4 {
  margin: 8px 0 6px 0;
}

.episode-list select {
  height: auto;
  max-height: 230px;
  margin-bottom: 10px;
}

/* barve hover in fokus efekt */
.episode-list select:focus {
  outline: none;
  box-shadow: 0 0 8px #ffcc00;
}

/* === Zgornja vrstica z gumbi in dropdown === */
.episode-topbar {
  display: flex;
  flex-direction: column; /* 🔽 dropdown zgoraj, gumbi spodaj */
  align-items: center;
  gap: 10px; /* razmak med dropdowni in gumbi */
  max-width: 960px;
  margin: 0 auto 10px;
}

/* vrstica z dropdown meniji */
.episode-topbar .center {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* vrstica z gumbi */
.episode-topbar .buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 8px; /* rahlo spuščeno pod dropdown */
}

/* levi in desni gumbi */
.episode-topbar .left,
.episode-topbar .right {
  display: flex;
  gap: 10px;
}

/* gumbi izgledajo enako */
.ep-btn {
  background-color: #ffcc00;
  color: #000;
  font-weight: 700;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.ep-btn:hover {
  background-color: #ffd633;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}


/* === 🕒 Auto-next toast (spodaj desno v playerju) === */
.auto-next-toast {
  position: absolute;
  bottom: 20px;
  right: 25px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffcc00;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
  z-index: 20;
  pointer-events: none;
}

.auto-next-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.imdb-box {
  max-width: 420px;
  margin: 0 auto 25px auto;
  padding: 15px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
  text-align: center;
  color: #ddd;
}

.imdb-box h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.imdb-box img {
  width: 160px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
  margin: 10px auto;
  display: block;
}

.imdb-box p {
  margin: 4px 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.imdb-box .opis {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 204, 0, 0.2);
  padding-top: 8px;
  text-align: left;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: visible;     /* 🔹 prikaže celoten opis */
  max-height: none;      /* 🔹 odstrani omejitev višine */
}

/* === ManeCave: končni popravek IMDb okvirčka za serije === */
.watch-layout {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔹 centriraj vse v sredino */
  justify-content: flex-start;
  text-align: center;
}

.imdb-box {
  margin: 0 auto 25px auto !important;
  text-align: center !important;
  max-width: 460px !important;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.25);
  color: #ddd;
  display: block !important;
}

.imdb-box .opis {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-height: none !important;
  line-height: 1.5em;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 204, 0, 0.25);
  text-align: left !important;
  color: #ccc !important;
}

/* === ManeCave: razmik pod dropdown menijem in premik gumbov === */
.episode-topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 30px;
}

.episode-topbar .center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.episode-topbar .buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.video-container {
  margin-top: 40px !important;
}

/* === ManeCave IFRAME PLAYER === */
.iframe-player-wrap {
  width: 100%;
  text-align: center;
}

#iframeContainer {
  margin: 25px auto;
  width: 95%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid #ffcc00;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.5);
  overflow: hidden;
  position: relative;
}

#iframeContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;         /* 🔹 napolni okvir horizontalno */
  transform: scale(1.1);     /* 🔹 rahlo razširi */
  transform-origin: center;
}
/* === POPRAVEK: iframe na celo širino brez zooma === */
.container.watch-page {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  text-align: center;
}

.watch-layout {
  width: 100% !important;
  max-width: none !important;
}

.iframe-player-wrap {
  width: 100%;
  max-width: none;
}

/* 🎬 IFRAME container – pravilno razmerje in višina */
#iframeContainer {
  width: 96vw !important;
  max-width: 1600px !important;
  aspect-ratio: 16 / 9;          /* 🔹 pravilno 16:9 razmerje */
  height: auto !important;       /* 🔹 višina se računa samodejno */
  margin: 25px auto;
  border: 2px solid #ffcc00;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
  overflow: hidden;
  position: relative;
}

/* 🎥 Notranji iframe – brez zooma, vse se vidi */
#iframeContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;     /* 🔹 prikaže celoten video brez rezanja */
  transform: scale(1);     /* 🔹 brez povečave */
  background-color: #000;
}

/* === Gumbi nad playerjem (pod naslovom) === */
.episode-nav-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 10px auto 20px auto;
}

.episode-nav-top .ep-btn {
  background-color: #ffcc00;
  color: #000;
  font-weight: 700;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.episode-nav-top .ep-btn:hover {
  background-color: #ffd633;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}

/* === UPLOAD PAGE === */
.upload-wrap {
  background: rgba(0,0,0,0.65);
  padding: 20px;
  border: 2px solid var(--accent);
  border-radius: 15px;
  box-shadow: 0 0 15px #000;
  color: var(--accent);
  width: 80%;
  margin: 50px auto;
  max-width: 600px;
  font-family: 'Poppins', sans-serif;
}
.upload-wrap h2 {
  text-align: center;
}
.upload-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
.upload-form input,
.upload-form textarea {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px;
  margin-top: 5px;
}
.upload-form button {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.upload-form button:hover {
  background: #ffdf40;
}
.file-progress {
  margin-top: 8px;
  font-size: 14px;
}
.bar {
  width: 100%;
  background: #222;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
}
.fill {
  height: 8px;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s;
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.6;
}
footer .legal-note {
  color: #ffcc66;
  max-width: 900px;
  margin: 10px auto 0;
  font-size: 0.95em;
}
footer .legal-note.small {
  font-size: 0.9em;
  color: #ffcc66;
  margin-top: 8px;
}
footer .owner-name {
  font-size: 1.4em;
  color: #ffd700;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  font-family: "Cinzel Decorative", "Inter", serif;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .sidebar {
    width: 100%;
    text-align: center;
  }
  .film-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .video-js, video.ps4-player {
    width: 95vw;
  }
  #clock {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .film-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .film-card img {
    height: 190px;
  }
  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu a {
    font-size: 0.9em;
  }
  .player-hour-overlay {
    font-size: 18px;
  }
  .alien-gif {
    display: none;
  }
}

@media (max-width: 400px) {
  .film-grid {
    grid-template-columns: 1fr;
  }
  .film-card img {
    height: 220px;
  }
  .upload-wrap {
    width: 95%;
  }
}

/* === 🎬 Popravek velikosti kartic (kot v prejšnji verziji) === */
.film-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; /* malo širše kartice */
  gap: 22px !important; /* razmak med karticami */
}

.film-card img {
  height: 265px !important; /* višina slike večja kot prej */
}

.film-card {
  border-radius: 10px !important;
  transition: transform 0.25s, box-shadow 0.25s !important;
}

.film-card:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 25px rgba(245, 197, 24, 0.5) !important; /* mehkejši glow */
}

/* === ManeCave: pomanjšan iframe player za posebne serije === */
#iframeContainer.special-small {
  width: 70vw !important;
  max-width: 1000px !important;
  aspect-ratio: 16 / 9;
  margin: 30px auto;
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.5);
  background: #000;
  overflow: hidden;
}

#iframeContainer.special-small iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === Poravnava gumba "Nazaj" ob levem robu video playerja === */
.video-container {
  position: relative;  /* postavi okvir za absolutne elemente */
  display: inline-block; /* da širina sledi playerju */
}

.video-container .back-button {
  position: absolute;
  top: -45px;       /* višina nad playerjem */
  left: 0;          /* poravnano z levim robom playerja */
  margin: 0 !important;
  z-index: 10;
}


/* === 🌐 Mrežna povezava - indikator kakovosti zraven ure === */
#clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #ffcc00;
  font-family: 'Poppins', sans-serif;
}

#net-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 6px;
  display: inline-block;
  background-color: gray;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s ease;
}

/* 💡 Rahlo utripanje LED (fade efekt) glede na signal */
@keyframes netPulse {
  0% { box-shadow: 0 0 5px rgba(255,255,255,0.3); transform: scale(1); }
  50% { box-shadow: 0 0 12px rgba(255,255,255,0.6); transform: scale(1.1); }
  100% { box-shadow: 0 0 5px rgba(255,255,255,0.3); transform: scale(1); }
}

#net-indicator.active {
  animation: netPulse 1.5s infinite ease-in-out;
}

#net-speed {
  color: #ffcc00;
  font-size: 14px;
  font-family: 'Consolas', monospace;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

/* 🔹 Osnovna kartica */
#upcoming-list li,
#upcoming-series-list li {
  position: relative;
  padding: 0;
  margin-bottom: 12px;
  aspect-ratio: 2 / 3;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: scale(0.9); /* 🔸 10 % manjša kartica */
}

/* 🖼️ Slika – v celoti vidna */
.mini-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 1;
}

/* 📄 Informacije – berljiv fade */
.mini-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  padding: 8px 6px;
  line-height: 1.25;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );
  backdrop-filter: blur(4px);
}

.mini-info strong {
  color: #fff;
  font-size: 0.87em;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.upcoming-box .release-date {
  color: #ffcc00;
  font-size: 0.8em;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* ✨ Hover efekt */
#upcoming-list li:hover .mini-thumb,
#upcoming-series-list li:hover .mini-thumb {
  transform: scale(1.06);
  filter: brightness(1.1);
}

#upcoming-list li:hover,
#upcoming-series-list li:hover {
  transform: scale(0.94); /* 🔹 malo večje od začetnega */
  box-shadow: 0 0 14px rgba(255, 204, 0, 0.35);
}


/* === ManeCave POPUP === */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
}

.popup-content {
  background: #0c0c0c;
  border: 2px solid #ffcc00;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.3);
  width: 95%;
  max-width: 360px;        /* 🔹 ohranjena širina */
  max-height: 95vh;        /* 🔹 povečana višina okna */
  overflow-y: auto;
  text-align: center;
  padding: 14px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

/* Slika v popupu – višja, prikaže celo */
.popup-content img {
  width: 100%;
  max-height: 520px;        /* 🔹 povečano iz 330px → 520px */
  object-fit: cover;        /* 🔹 zapolni okvir brez črnih robov */
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Naslov */
.popup-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 5px;
  margin-bottom: 6px;
  text-align: center;
  background: linear-gradient(90deg, #ffe066, #ffcc00, #ffe066);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
  letter-spacing: 0.4px;
}

/* Datum izida */
#popup-date {
  color: #ffcc00;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}

#popup-date::before {
  content: "📅";
  font-size: 1.1rem;
  filter: drop-shadow(0 0 3px rgba(255, 204, 0, 0.6));
}

/* Opis */
#popup-desc {
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: justify;
  padding: 8px 6px 12px 6px;
}

/* Gumb za zapiranje */
.close-popup {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 22px;
  color: #ffcc00;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-popup:hover {
  transform: scale(1.2);
}


/* === 🎥 Trailer Popup za FILME (popolnoma enak kot pri serijah) === */
#trailer-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(8px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

/* Notranji "wrap" za centriranje vsebine */
#trailer-popup .inner-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Glavni okvir trailerja */
#trailer-container {
  position: relative;
  width: 90vw;              /* 🔹 Enaka širina kot pri serijah */
  max-width: 1600px;        /* 🔹 Omejitev za ultra široke monitorje */
  aspect-ratio: 16/9;
  border: 4px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 0 55px rgba(255, 204, 0, 0.9);
  overflow: hidden;
  background: #000;
  transform: scale(0.94);
  opacity: 0;
  animation: popupZoomIn 0.45s ease forwards;
}

/* Iframe video */
#trailer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  display: block;
}

/* Gumb za zapiranje */
#close-trailer-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  background-color: var(--accent);
  color: #000;
  border: none;
  font-weight: 900;
  font-size: 18px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.9);
  transition: all 0.2s ease;
  z-index: 1000;
}

#close-trailer-btn:hover {
  background-color: #fff176;
  transform: scale(1.08);
}

/* ✨ Animacije za prijeten efekt */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupZoomIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



/* 🧩 Popravek – trailer popup za serije čez cel ekran */
#series-trailer-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(8px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

#series-trailer-container {
  position: relative;
  width: 90vw;          /* 🔹 širina skoraj čez cel ekran */
  max-width: 1600px;    /* 🔹 omejitev, če imaš ultra širok monitor */
  aspect-ratio: 16/9;
  border: 4px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 0 55px rgba(255, 204, 0, 0.9);
  overflow: hidden;
}

#series-trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

#close-series-trailer-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  background-color: var(--accent);
  color: #000;
  border: none;
  font-weight: 900;
  font-size: 18px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.9);
  transition: all 0.2s ease;
  z-index: 1000;
}
#close-series-trailer-btn:hover {
  background-color: #fff176;
  transform: scale(1.08);
}

/* --- Serije: Sezona / Epizoda izbirniki --- */
.episode-topbar label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffcc00;
  margin-right: 6px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}

.episode-topbar select {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid #ffcc00;
  background-color: #0c0c0c;
  color: #fff;
  margin-right: 12px;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.episode-topbar select:hover {
  background-color: #1a1a1a;
  transform: scale(1.05);
}


/* === 📱 ManeCave – izboljšan mobilni prikaz (do 768px) === */
@media (max-width: 768px) {

  /* 🔸 Glavni layout */
  .container {
    flex-direction: column;
    align-items: center;
    margin: 10px;
    gap: 15px;
  }

  /* 🔸 Sidebar pod iskalnikom */
  .sidebar {
    width: 95%;
    margin: 0 auto;
    text-align: center;
  }

  /* 🔸 Film grid – 2 kartici v vrstici */
  .film-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
    gap: 16px !important;
    padding: 15px 5% !important;
  }

  .film-card img {
    height: 200px !important;
  }

  .film-card .title {
    font-size: 0.95em;
  }

  /* 🔸 IMDb okvirček – pol širine zaslona */
  .imdb-box {
    width: 92%;
    max-width: none;
    padding: 14px;
    font-size: 0.9rem;
  }

  .imdb-box img {
    width: 110px;
  }


  /* 🔸 Dropdowni in gumbi za epizode – eno pod drugim */
  .episode-topbar {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .episode-topbar .center {
    flex-wrap: wrap;
    justify-content: center;
  }

  .episode-topbar label {
    font-size: 1rem !important;
  }

  .episode-topbar select {
    font-size: 1rem !important;
    padding: 5px 8px;
  }

  .buttons-row {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ep-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  /* 🔸 Opisi filmov / serij */
  .movie-description {
    width: 92%;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 12px 14px;
  }

  /* 🔸 Trailer popup – višina in gumb */
  #close-trailer-btn,
  #close-series-trailer-btn {
    top: 10px;
    right: 15px;
    padding: 8px 12px;
    font-size: 14px;
  }

  /* 🔸 Trailer okvirček */
  #trailer-container,
  #series-trailer-container {
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.7);
  }

  /* 🔸 Alien GIF – manjši in spodaj */
  .alien-gif {
    width: 100px;
    top: auto;
    bottom: 50px;
    right: 20px;
  }

  /* 🔸 IMDb opis – manjši font */
  .imdb-box .opis {
    font-size: 0.85rem;
  }

  /* 🔸 Toasti (avto-next ipd.) – manjši */
  .auto-next-toast {
    bottom: 15px;
    right: 15px;
    font-size: 14px;
    padding: 6px 10px;
  }

  /* 🔸 Popup (trailer, info) – skoraj cel zaslon */
  .popup-content {
    width: 90%;
    max-width: 320px;
    max-height: 90vh;
    padding: 10px;
  }

  .popup-content img {
    max-height: 320px;
  }

  /* 🔸 Topbar – kompaktna */
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 10px;
  }

  .menu a {
    font-size: 0.9em;
    padding: 5px 10px;
  }

  .logo-img {
    height: 45px;
  }

  #clock {
    font-size: 14px;
  }

  /* 🔸 Footer manjši */
  footer {
    font-size: 0.8em;
    padding: 15px;
  }

  /* 🔸 Heks ozadje – manj vidno */
  .bg-hex {
    opacity: 0.05;
  }
}
/* === 📉 Mobilna verzija – prihajajoči filmi/serije na dnu in manjše kartice === */
@media (max-width: 768px) {

  /* 🔹 Celotni seznami naj gredo na dno */
  #upcoming-list,
  #upcoming-series-list {
    order: 999;             /* če je v flex/grid kontejnerju */
    margin-top: 40px;       /* da niso preblizu */
  }

  /* 🔹 Posamezne kartice – veliko manjše */
  #upcoming-list li,
  #upcoming-series-list li {
    width: 90px;
    aspect-ratio: 2 / 3;
    margin-bottom: 10px;
    transform: scale(0.85);   /* rahlo manjše */
  }

  /* 🔹 Sličica v kartici */
  #upcoming-list .mini-thumb,
  #upcoming-series-list .mini-thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

  /* 🔹 Informacije pod sličico */
  #upcoming-list .mini-info,
  #upcoming-series-list .mini-info {
    font-size: 0.7em;
    padding: 3px;
  }

  /* 🔹 Naslov in datum v kartici */
  #upcoming-list .mini-info strong,
  #upcoming-series-list .mini-info strong {
    font-size: 0.8em;
  }

  #upcoming-list .release-date,
  #upcoming-series-list .release-date {
    font-size: 0.7em;
  }

  /* 🔹 Postavitev mreže – 3 kartice v vrstici */
  #upcoming-list,
  #upcoming-series-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    justify-items: center;
  }
}


/* ❄❄❄ WINTER MODE — ManeCave Snow Edition ❄❄❄ */

body.winter-mode {
    --bg: #051019 !important;
    --panel: rgba(10, 20, 35, 0.75) !important;
    --text: #e8f6ff !important;
    --muted: #aac6dd !important;

    background: linear-gradient(180deg, #0a1928, #08131f, #0a1928) !important;
}

/* Ledena textura čez heks ozadje */
.bg-hex.winter-bg {
    background-image: url("../img/honeycomb3.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.17;
}


/* LEDEN ROB NA PANELIH */
body.winter-mode .film-card,
body.winter-mode .series-card,
body.winter-mode .movie-description,
body.winter-mode .imdb-box,
body.winter-mode .episode-list,
body.winter-mode .popup-content,
body.winter-mode .episode-topbar select,
body.winter-mode .ep-btn,
body.winter-mode .menu a,


/* LEDEN GLOW za naslove */
body.winter-mode h1,
body.winter-mode h2,
body.winter-mode h3,
body.winter-mode h4,
body.winter-mode .title,
body.winter-mode .logo-img {
    color: #d9f4ff !important;
    text-shadow: 0 0 12px #9be2ff, 0 0 25px #b6efff !important;
}

/* Zamenjava rumene → ledeno-modra */
body.winter-mode .ep-btn,
body.winter-mode .menu a,
body.winter-mode .upload-btn {
    background: linear-gradient(180deg, #b8e8ff, #8fd4ff) !important;
    color: #012030 !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.5) !important;
}

body.winter-mode .ep-btn:hover,
body.winter-mode .menu a:hover {
    background: linear-gradient(180deg, #d9f2ff, #b8e8ff) !important;
    transform: scale(1.06);
}

/* INTERNETNA LEDICA → modra paleta */
body.winter-mode #net-indicator {
    box-shadow: 0 0 12px rgba(150, 220, 255, 0.9);
}

/* ❄ ANIMACIJA SNEŽINK ❄ */
@keyframes snowfall {
    0% { transform: translateY(-10vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

body.winter-mode .snowflake {
    position: fixed;
    top: -10px;
    z-index: 999999;
    color: #ecf8ff;
    font-size: 18px;
    opacity: 0.8;
    pointer-events: none;
    animation: snowfall linear infinite;
}


/* ===== WINTER MODE: LEDEN TOPBAR ===== */
body.winter-mode .topbar {
    background: linear-gradient(180deg, #6FB9E8, #5098D1) !important;
    border-bottom: 3px solid #2E6FA3 !important;
    box-shadow: 0 0 25px rgba(120, 190, 255, 0.5);
}

/* ❄ Ura – temno modra + ledeni glow */
body.winter-mode #clock,
body.winter-mode #clock span {
    color: #E8F6FF !important; /* zelo svetla ledena modra */
    text-shadow: 
        0 0 10px rgba(180, 230, 255, 0.9),
        0 0 20px rgba(130, 200, 255, 0.7),
        0 0 35px rgba(100, 170, 240, 0.6) !important;
    font-weight: 700;
}


/* ❄ "Network flow" tekst – svetel modri */
body.winter-mode #net-speed {
    color: #D9F1FF !important;
    text-shadow: 0 0 8px rgba(180, 220, 255, 0.5);
}

/* ❄ Gumbi v meniju */
body.winter-mode .menu a {
    background: linear-gradient(180deg, #CDEBFF, #A3D6F5) !important;
    color: #003B66 !important;
    box-shadow: 0 0 10px rgba(150, 210, 255, 0.5) !important;
    font-weight: 700;
}

body.winter-mode .menu a:hover {
    background: linear-gradient(180deg, #E7F6FF, #CDEBFF) !important;
    transform: scale(1.05);
}



/* ❄ IMDb OKVIRČEK — winter style */
body.winter-mode .imdb-box {
    border: 2px solid rgba(150, 210, 255, 0.9) !important;
    box-shadow: 0 0 20px rgba(120, 190, 255, 0.55) !important;
    background: rgba(5, 25, 45, 0.55) !important;
    backdrop-filter: blur(8px);
}



/* ❄ Winter gumbi */
body.winter-mode .trailer-btn,
body.winter-mode .back-btn {
    background: linear-gradient(180deg, #c9e8ff, #9ad4ff) !important;
    color: #003b66 !important;
    border: 2px solid rgba(150, 210, 255, 0.9) !important;
    box-shadow: 0 0 12px rgba(120, 190, 255, 0.5) !important;
    font-weight: 700;
}

body.winter-mode .trailer-btn:hover,
body.winter-mode .back-btn:hover {
    background: linear-gradient(180deg, #e7f6ff, #cceaff) !important;
    transform: scale(1.05);
}


/* ❄ WINTER STYLE za Sezona / Epizoda izbiro */
body.winter-mode .episode-topbar label {
    color: #a9d9ff !important;            /* Svetlo modra pisava */
    text-shadow: 0 0 10px rgba(150, 210, 255, 0.9) !important;
}

body.winter-mode .episode-topbar select {
    border: 2px solid rgba(150, 210, 255, 0.9) !important;
    background: rgba(0, 25, 50, 0.65) !important;
    color: #dff3ff !important;
    box-shadow: 0 0 12px rgba(120, 190, 255, 0.8) !important;
}



/* ❄ WINTER STYLE – FILMI: Poglej trailer gumb */
body.winter-mode #open-trailer-btn {
    background: linear-gradient(180deg, #a3d9ff, #6bbcff) !important;
    color: #002244 !important;
    border: 2px solid rgba(180, 230, 255, 0.8) !important;
    box-shadow: 0 0 25px rgba(150, 210, 255, 0.6) !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

/* hover */
body.winter-mode #open-trailer-btn:hover {
    background: linear-gradient(180deg, #c4e6ff, #8dcaff) !important;
    box-shadow: 0 0 30px rgba(180, 230, 255, 0.9) !important;
}

/* ❄ WINTER STYLE – FILMI: Nazaj gumb */
body.winter-mode .back-button {
    background: linear-gradient(180deg, #a3d9ff, #6bbcff) !important;
    color: #002244 !important;
    border: 2px solid rgba(180, 230, 255, 0.8) !important;
    box-shadow: 0 0 25px rgba(150, 210, 255, 0.6) !important;
    font-weight: 700 !important;
}

/* hover */
body.winter-mode .back-button:hover {
    background: linear-gradient(180deg, #c4e6ff, #8dcaff) !important;
    box-shadow: 0 0 30px rgba(180, 230, 255, 1) !important;
}


/* ❄️ Winter Mode – moder rob OPISA (filmi + serije) */
body.winter-mode .movie-description {
    border: 2px solid rgba(120, 190, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(120, 190, 255, 0.4) !important;
    background: rgba(5, 20, 35, 0.45) !important;
    backdrop-filter: blur(6px);
}


/* ❄ WINTER MODE – moder okvir za thumbnail preview */
body.winter-mode .vjs-thumb-img-wrap,
body.winter-mode .vjs-thumb-canvas {
    border: 2px solid rgba(140, 210, 255, 0.9) !important;
    box-shadow: 0 0 18px rgba(150, 220, 255, 0.7) !important;
}

/* ❄ WINTER MODE – čas pod preview thumbnailem (ledenomodra) */
body.winter-mode .vjs-thumb-time {
    color: #a3d9ff !important;                 /* ledeno modra */
    text-shadow: 0 0 10px rgba(150,210,255,0.9) !important;
}



/* ❄ WINTER MODE – enkratno ManeCave obvestilo */
body.winter-mode .notice-popup {
  background: rgba(5, 25, 45, 0.85) !important;
  color: #c9e8ff !important;
  border: 2px solid rgba(150, 210, 255, 0.9) !important;
  box-shadow: 0 0 25px rgba(150, 210, 255, 0.7) !important;
  text-shadow: 0 0 8px rgba(200, 240, 255, 0.9) !important;
}


/* ❄ WINTER MODE – legal notice footer text */
body.winter-mode footer,
body.winter-mode footer * {
    color: #e8f6ff !important; /* ledeno bela */
    text-shadow: 
        0 0 8px rgba(180, 230, 255, 0.85),
        0 0 16px rgba(130, 200, 255, 0.65) !important;
}


/* ❄ WINTER MODE – Global Admin Broadcast */
body.winter-mode #live-broadcast {
    background: rgba(5, 25, 45, 0.85) !important;
    color: #dff5ff !important;
    border: 2px solid rgba(150, 210, 255, 0.9) !important;
    box-shadow: 0 0 25px rgba(150, 210, 255, 0.7) !important;
    text-shadow: 0 0 10px rgba(200, 240, 255, 0.8) !important;
}


/* ❄ WINTER MODE – Player broadcast prompt */
body.winter-mode #player-live-broadcast {
    background: rgba(5, 25, 45, 0.85) !important;
    color: #dff5ff !important;
    border: 2px solid rgba(120, 190, 255, 0.9) !important;
    box-shadow: 0 0 20px rgba(150, 210, 255, 0.6) !important;
    text-shadow: 0 0 8px rgba(200, 240, 255, 0.8) !important;
}

/* ❄ WINTER: poster okvirček v IMDb boxu (slika filma/serije) */
body.winter-mode .imdb-box .poster-top img,
body.winter-mode .imdb-box .poster-small {
    border: 3px solid rgba(150, 210, 255, 0.9) !important;
    box-shadow: 0 0 20px rgba(120, 190, 255, 0.7) !important;
    border-radius: 10px !important;
}


/* ❄ Winter Mode – TMDB popup border */
body.winter-mode .popup-content {
    border: 2px solid #66ccff !important;
    box-shadow: 0 0 25px rgba(100, 180, 255, 0.7) !important;
}

/* ❄ Winter Mode – slika v popupu */
body.winter-mode .popup-content img {
    border: 2px solid #66ccff !important;
    box-shadow: 0 0 20px rgba(100, 180, 255, 0.6) !important;
}

/* ❄ Winter mode – tekst v popupu */
body.winter-mode .popup-content h3 {
    color: #a7d8ff !important;
    text-shadow: 0 0 12px rgba(150, 210, 255, 0.8);
}

/* ❄ Winter – datum */
body.winter-mode .popup-content #popup-date {
    color: #a7d8ff !important;
    text-shadow: 0 0 10px rgba(120, 190, 255, 0.7);
}

/* ❄ Winter – X gumb za zapiranje */
body.winter-mode .popup-content .close-popup {
    color: #a7d8ff !important;
    text-shadow: 0 0 12px rgba(150, 210, 255, 0.9);
}






/* ❄❄ GLOBAL SNOW TRANSITION ❄❄ */
#snow-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
    display: none;
}

#snow-transition .flake {
    position: absolute;
    top: -50px;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    animation: fall linear forwards;
}

@keyframes fall {
    from { transform: translateY(-50px); }
    to { transform: translateY(110vh); }
}

/* ❄ Ko se zaslon polni (fade-in snega) */
#snow-transition.fill-screen {
    display: block;
    background: rgba(255,255,255,0);
    animation: snowFill 0.9s forwards ease-in;
}

@keyframes snowFill {
    from { background: rgba(255,255,255,0); }
    to { background: rgba(255,255,255,1); }
}

/* ❄ Ko se sneg tali */
#snow-transition.melt {
    display: block;
    background: rgba(255,255,255,1);
    animation: snowMelt 1.2s forwards ease-out;
}

@keyframes snowMelt {
    from { background: rgba(255,255,255,1); }
    to { background: rgba(255,255,255,0); }
}
