.ps-carousel,
.ps-carousel *,
.ps-carousel *::before,
.ps-carousel *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ps-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ps-carousel__video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1e;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.ps-carousel__video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
}

.ps-carousel__video-frame video.ps-visible {
  opacity: 1;
}

.ps-carousel__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ps-carousel__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  opacity: 0;
  animation: ps-spin 0.8s linear infinite, ps-fade-in 0.4s ease 0.5s forwards;
}

@keyframes ps-fade-in {
  to { opacity: 1; }
}

@keyframes ps-spin {
  to { transform: rotate(360deg); }
}

.ps-carousel__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ps-carousel__overlay-text {
  flex: 1;
  min-width: 0;
}

.ps-carousel__name {
  font-size: clamp(18px, 3.5vw, 26px) !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
  font-style: italic;
}

.ps-carousel__name.ps-show {
  opacity: 1;
  transform: translateY(0);
}

.ps-carousel__role {
  font-size: clamp(12px, 2vw, 14px) !important;
  color: rgba(255,255,255,0.65) !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.ps-carousel__role.ps-show {
  opacity: 1;
  transform: translateY(0);
}

.ps-carousel__watch {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  padding: 0 !important;
}

.ps-carousel__watch:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.4) !important;
  transform: scale(1.08);
}

.ps-carousel__watch:active {
  transform: scale(0.95);
}

.ps-carousel__watch svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
}

.ps-carousel__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ps-carousel__watch:hover .ps-carousel__tip {
  opacity: 1;
}

.ps-carousel__nav {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 100px !important;
  padding: 5px !important;
  width: auto !important;
  flex-wrap: nowrap !important;
}

.ps-carousel__arrow {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: rgba(0,0,0,0.4) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, color 0.2s;
  padding: 0 !important;
}

.ps-carousel__arrow:hover {
  background: rgba(0,0,0,0.08) !important;
  color: #111 !important;
}

.ps-carousel__arrow:active {
  transform: scale(0.92);
}

.ps-carousel__arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-carousel__dots {
  display: flex !important;
  flex-direction: row !important;
  gap: 3px !important;
  padding: 0 6px !important;
  align-items: center !important;
}

.ps-carousel__dot {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.ps-carousel__dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s ease, border-radius 0.3s ease;
}

.ps-carousel__dot:hover::before {
  background: rgba(0,0,0,0.35);
}

.ps-carousel__dot.ps-active::before {
  width: 18px;
  border-radius: 3px;
  background: #111;
}

.ps-carousel__counter {
  font-size: 11px !important;
  color: rgba(0,0,0,0.3) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  padding: 0 8px 0 4px !important;
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (max-width: 768px) {
  .ps-carousel__nav {
    display: none !important;
  }
}
