 /* ========================================
     HOME SINGLE VIDEO - Scoped Styles
     ======================================== */

.pitt-video-tour {
  width: 100%;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.pitt-video-tour__container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Video Player */
.pitt-video-tour__player-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pitt-video-tour__player-wrapper video,
.pitt-video-tour__player-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Large Play Button Overlay - hidden by default, shown when paused */
.pitt-video-tour__play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pitt-video-tour__play-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pitt-video-tour__play-big {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: scale(1.5);
  transition: transform 0.2s ease;
}

.pitt-video-tour__play-big:hover {
  transform: scale(1.7);
}

.pitt-video-tour__play-bg {
  fill: #CC0000;
  transition: fill 0.2s ease;
}

.pitt-video-tour__play-big:hover .pitt-video-tour__play-bg {
  fill: #FF0000;
}

/* Timer Overlay */
.pitt-video-tour__timer-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pitt-video-tour__timer-overlay.is-visible {
  opacity: 1;
}

.pitt-video-tour__countdown {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.pitt-video-tour__mega-time {
  margin-top: 10px;
  font-size: clamp(14px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Controls Bar */
.pitt-video-tour__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  z-index: 15;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pitt-video-tour__container:not(:hover):not(.is-paused) .pitt-video-tour__controls {
  opacity: 0.6;
}

/* Progress Bar */
.pitt-video-tour__progress-container {
  margin-bottom: 16px;
}

.pitt-video-tour__progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.pitt-video-tour__progress-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.1s linear;
}

.pitt-video-tour__time-display {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Controls Row */
.pitt-video-tour__controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Spacer for balanced layout */
.pitt-video-tour__spacer {
  flex: 1;
}

/* Play/Pause Button */
.pitt-video-tour__play-pause {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pitt-video-tour__play-pause:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pitt-video-tour__play-pause svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.pitt-video-tour__icon-pause {
  display: none;
}

.pitt-video-tour.is-playing .pitt-video-tour__icon-play {
  display: none;
}

.pitt-video-tour.is-playing .pitt-video-tour__icon-pause {
  display: block;
}

/* Fullscreen Button */
.pitt-video-tour__fullscreen {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.2s ease;
}

.pitt-video-tour__fullscreen:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pitt-video-tour__fullscreen svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.pitt-video-tour__icon-close {
  display: none;
}

.pitt-video-tour:fullscreen .pitt-video-tour__icon-expand {
  display: none;
}

.pitt-video-tour:fullscreen .pitt-video-tour__icon-close {
  display: block;
}

/* Fullscreen Styles */
.pitt-video-tour:fullscreen {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pitt-video-tour:fullscreen .pitt-video-tour__container {
  border-radius: 0;
  height: 100vh;
  aspect-ratio: unset;
}

/* Responsive */
@media (max-width: 768px) {
  .pitt-video-tour {
    margin: 20px auto;
    padding: 0 16px;
  }

  .pitt-video-tour__controls {
    padding: 40px 16px 16px;
  }
}