/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/* ===== Player Wrapper ===== */
.player-wrapper {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* ===== Loading Spinner ===== */
.player-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 50;
  pointer-events: none;
}

.player-loader .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.player-wrapper.fullscreen {
  max-width: 100%;
  width: 100vw;
  height: 100vh;
  aspect-ratio: unset;
}

/* ===== Video ===== */
#videoPlayer {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ===== Big Play Button ===== */
.big-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.big-play-btn i {
  color: #fff;
  font-size: 28px;
  margin-left: 4px;
}

.big-play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) scale(1.1);
}

.big-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Custom Controls ===== */
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: opacity 0.3s;
}

.custom-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Progress Bar ===== */
.progress-bar-container {
  width: 100%;
  padding: 0 12px;
  cursor: pointer;
  height: 18px;
  display: flex;
  align-items: center;
}

.progress-bar-bg {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: visible;
  transition: height 0.15s;
}

.progress-bar-container:hover .progress-bar-bg {
  height: 5px;
}

.progress-bar-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  width: 0%;
}

.progress-bar-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: white;
  border-radius: 2px;
  width: 0%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.progress-thumb {
  width: 12px;
  height: 12px;
  background: #e91e63;
  border-radius: 50%;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.progress-bar-container:hover .progress-thumb {
  opacity: 1;
}

/* ===== Bottom Bar ===== */
.controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px 18px 30px;
}

/* Left */
.controls-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Center */
.controls-center {
  flex: 1;
  text-align: center;
  overflow: hidden;
}

.title-label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

/* Right */
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ===== Buttons ===== */
.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  outline: none;
}

.ctrl-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== Volume Slider ===== */
.volume-slider-wrap {
  width: 70px;
  display: flex;
  align-items: center;
}

#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

/* ===== Live Badge ===== */
.live-badge {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #e91e63;
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.2s infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ===== Settings / Audio Menu ===== */
.settings-menu {
  position: absolute;
  bottom: 56px;
  right: 12px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 8px;
  min-width: 180px;
  padding: 8px 0;
  z-index: 30;
  display: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-menu.active {
  display: block;
}

.audio-menu {
  right: 52px;
}

.settings-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px 4px;
}

.settings-list {
  list-style: none;
}

.settings-list li {
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-list li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-list li.active {
  color: #e91e63;
}

.settings-list li.active::before {
  content: '●';
  font-size: 8px;
  color: #e91e63;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .title-label {
    font-size: 11px;
  }

  .ctrl-btn {
    font-size: 14px;
  }

  .volume-slider-wrap {
    width: 50px;
  }

  .big-play-btn {
    width: 55px;
    height: 55px;
  }

  .big-play-btn i {
    font-size: 22px;
  }
}