/* Plexido PL — karuzela TikTok (lekka, bez skryptu TikToka)
   Kandydat 2026-08-30. Wersjonowanie: ?v=20260830-1
   Wyłącznie własne selektory .plx-tt* — nie dotyka stylów motywu PRSADD279_02. */

.plx-tt {
  clear: both;
  margin: 32px 0;
  padding: 0 12px;
}

.plx-tt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto 14px;
}

.plx-tt__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.plx-tt__profile {
  font-size: 14px;
  font-weight: 600;
  color: #1c927a;
  text-decoration: none;
  white-space: nowrap;
}

.plx-tt__profile:hover { text-decoration: underline; }

.plx-tt__viewport {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.plx-tt__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.plx-tt__track::-webkit-scrollbar { display: none; }

.plx-tt__item {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  line-height: 0;
}

.plx-tt__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  opacity: .93;
  transition: opacity .2s ease, transform .2s ease;
}

.plx-tt__item:hover .plx-tt__thumb,
.plx-tt__item:focus-visible .plx-tt__thumb {
  opacity: 1;
  transform: scale(1.02);
}

.plx-tt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(28, 146, 122, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.plx-tt__play::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.plx-tt__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Strzałki */
.plx-tt__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid #cbe3dc;
  border-radius: 50%;
  background: #fff;
  color: #1c927a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.plx-tt__arrow--prev { left: -8px; }
.plx-tt__arrow--next { right: -8px; }
.plx-tt__arrow[hidden] { display: none; }

@media (max-width: 767px) {
  .plx-tt__item { width: 150px; }
  .plx-tt__title { font-size: 18px; }
  .plx-tt__arrow { display: none; }
}

/* Lightbox */
.plx-tt-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.plx-tt-modal__inner {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: min(88vh, 740px);
  background: #000;
  border-radius: 10px;
  overflow: visible;
}

.plx-tt-modal__inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.plx-tt-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
  z-index: 2;
}

body.plx-tt-open { overflow: hidden; }
