#slpm-wrap {
  pointer-events: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

#slpm-track {
  width: 100%;
  height: 100%;
  position: relative;
  transform: none !important;
  transition: none !important;
}

.slpm-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  z-index: 1;
  transform: translateY(100%);
}

.slpm-slide.is-active {
  z-index: 2;
  transform: translateY(0);
}

.slpm-slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
}

.slpm-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 0;
}

.slpm-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: none;
}

.slpm-video video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
}

.slpm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 25%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.68) 100%);
  z-index: 1;
}

.slpm-content {
  position: absolute;
  bottom: 48px; left: 0; right: 0;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.76,0,0.24,1) 0.3s;
  pointer-events: none;
}

.slpm-slide.is-active .slpm-content {
  opacity: 1;
  transform: translateY(0);
}

.slpm-title {
  font-family: inherit;
  font-size: clamp(13px, 2vw, 19px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 5px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.slpm-subtitle {
  font-family: inherit;
  font-size: clamp(10px, 1.3vw, 13px);
  font-weight: 400;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

.slpm-slide.is-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: #fff;
}

/* ── SIDE NAV MENU ── */
#slpm-nav {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: auto;
}

.slpm-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  opacity: 0.35;
  transition: opacity 0.4s ease;
  pointer-events: auto;
  text-align: right;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.slpm-nav-item:focus,
.slpm-nav-item:active {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.slpm-nav-item:hover {
  opacity: 0.7;
  background: transparent;
  color: inherit;
}

.slpm-nav-item.active {
  opacity: 1;
}

.slpm-nav-label {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  transition: letter-spacing 0.3s ease;
}

.slpm-nav-item.active .slpm-nav-label {
  letter-spacing: 0.28em;
}

.slpm-nav-line {
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  transition: width 0.4s ease, background 0.4s ease;
  flex-shrink: 0;
}

.slpm-nav-item.active .slpm-nav-line {
  width: 32px;
  background: #fff;
}

.slpm-nav-item:hover .slpm-nav-line {
  width: 28px;
  background: rgba(255,255,255,0.8);
}

/* ── COUNTER ── */
#slpm-counter {
  display: none !important;
}

/* ── Cand slide-ul activ e Footer: ascunde nav + hint, arata back-to-top ── */
#slpm-wrap.footer-active #slpm-nav,
#slpm-wrap.footer-active #slpm-hint {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ── BACK TO TOP ── */
#slpm-backtotop {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#slpm-wrap.footer-active #slpm-backtotop {
  display: flex;
}

#slpm-backtotop:hover {
  opacity: 1;
  transform: translateY(-2px);
}

#slpm-backtotop:focus,
#slpm-backtotop:active {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.slpm-backtotop-arrow {
  font-size: 16px;
  line-height: 1;
  color: #111;
}

.slpm-backtotop-label {
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
}

@media (max-width: 768px) {
  #slpm-backtotop {
    right: 14px;
    bottom: 18px;
  }
}

/* ── HINT ── */
#slpm-hint {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#slpm-hint.hidden { opacity: 0; pointer-events: none; }

#slpm-hint-line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: slpmHintPulse 2s ease-in-out infinite;
}

#slpm-hint span {
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

@keyframes slpmHintPulse {
  0%,100%{ opacity:0.3; } 50%{ opacity:1; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  #slpm-nav {
    right: 12px;
    gap: 0;
  }

  .slpm-nav-item {
    padding: 7px 0;
    gap: 7px;
  }

  .slpm-nav-label {
    font-size: 8px;
    letter-spacing: 0.15em;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slpm-nav-line {
    width: 12px;
  }

  .slpm-nav-item.active .slpm-nav-line {
    width: 20px;
  }

  #slpm-counter { left: 14px; bottom: 16px; }
  .slpm-content { bottom: 48px; }
}

/* ── Re-enable pointer events ── */
#slpm-track,
.slpm-slide,
#slpm-nav,
.slpm-nav-item,
#slpm-hint,
#slpm-counter {
  pointer-events: auto;
}
