/* ========== MEDIA PLAYER BUTTON ========== */
.media-player {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px;
  gap: 12px;
  isolation: isolate;
  position: fixed;
  width: 120px;
  height: 48px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  background: rgba(38, 38, 38, 0.9);
  background: color(display-p3 0.149 0.149 0.149 / 0.9);
  backdrop-filter: blur(4px);
  border-radius: 32px;
  border: none;
  cursor: default;
  z-index: 1002;
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, background 0.3s ease;
}

.media-player:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(38, 38, 38, 1);
}

.media-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: opacity 0.3s ease;
}

.media-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

/* Previous and Next buttons - 33% opacity by default */
.prev-btn,
.next-btn {
  flex-grow: 0;
}

.prev-btn {
  order: 0;
  z-index: 2;
}

.play-btn {
  order: 1;
  z-index: 1;
  flex-grow: 0;
}

.next-btn {
  order: 2;
  z-index: 0;
}

.prev-btn img,
.next-btn img {
  opacity: 0.33; /* 33% opacity for navigation buttons */
}

.prev-btn:hover img,
.next-btn:hover img {
  opacity: 1; /* Full opacity on hover */
}

.play-btn img {
  opacity: 1; /* Play button always full opacity */
}

/* ========== ADAPTIVE BREAKPOINTS ========== */

/* Desktop: 1441px+ */
@media (min-width: 1441px) {
  .media-player {
    width: 120px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
  }
}

/* Desktop: 1024px to 1440px */
@media (min-width: 1024px) and (max-width: 1440px) {
  .media-player {
    width: 120px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
  }
}

/* Tablet: 800px to 1023px */
@media (min-width: 800px) and (max-width: 1023px) {
  .media-player {
    width: 108px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 32px;
    gap: 10px;
  }
  
  .media-btn img {
    width: 20px;
    height: 20px;
  }
}

/* Mobile: 600px to 799px */
@media (min-width: 600px) and (max-width: 799px) {
  .media-player {
    width: 96px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    top: auto;
    gap: 8px;
    height: 44px;
    padding: 10px;
  }
  
  .media-btn {
    width: 20px;
    height: 20px;
  }
  
  .media-btn img {
    width: 20px;
    height: 20px;
  }
}

/* Mobile: 420px to 599px */
@media (min-width: 420px) and (max-width: 599px) {
  .media-player {
    width: 84px;
    left: 50%;
    transform: translateX(-50%);
    top: 28px;
    bottom: auto;
    gap: 6px;
    height: 40px;
    padding: 8px;
  }
  
  .media-btn {
    width: 18px;
    height: 18px;
  }
  
  .media-btn img {
    width: 18px;
    height: 18px;
  }
}

/* Mobile: 320px to 419px */
@media (max-width: 419px) {
  .media-player {
    width: 72px;
    left: 50%;
    transform: translateX(-50%);
    top: 26px;
    bottom: auto;
    gap: 4px;
    height: 40px;
    padding: 6px;
  }
  
  .media-btn {
    width: 16px;
    height: 16px;
  }
  
  .media-btn img {
    width: 16px;
    height: 16px;
  }
} 