/* ==========================================================================
   Naše technika v praxi – karusel videí (fotoveci.cz)
   Samostatná komponenta, nezávislá na starých stylech webu (nic nepřepisuje
   a nic z existujícího CSS na ni nemá vliv, takže nehrozí konflikt jako
   u banneru).
   ========================================================================== */

.tvp-section {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.tvp-heading {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 20px;
  text-align: center;
}

.tvp-carousel {
  position: relative;
}

.tvp-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  list-style: none;
}
.tvp-track::-webkit-scrollbar {
  display: none;
}

.tvp-card {
  position: relative;
  flex: 0 0 auto;
  width: calc((100% - 5 * 14px) / 6);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .tvp-card {
    width: calc((100% - 2 * 14px) / 2.4);
  }
}

.tvp-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.tvp-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.tvp-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.tvp-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.tvp-chip {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 5px 10px 5px 5px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.tvp-chip:hover {
  background: #fff;
}

.tvp-chip-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eee;
}

.tvp-chip-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.tvp-chip-plus {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary, #e30613);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.tvp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tvp-arrow:hover {
  background: #f2f2f2;
}
.tvp-arrow-prev {
  left: -8px;
}
.tvp-arrow-next {
  right: -8px;
}

@media (max-width: 900px) {
  .tvp-arrow {
    display: none;
  }
}
