/* =====================================================
   BASE STYLES
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.back-button {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.back-icon {
  width: 24px;
  height: 24px;
}

.carousel-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  transition: all 0.7s ease-in-out;
}

/* Base image size for standard laptops/desktops */
.carousel-slide img {
  width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-drag: none;
}

.navigation-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 40;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.dot.active {
  width: 32px;
  background: #fff;
}

audio {
  display: block;
}

.loading-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  z-index: 10;
}

.music-control {
  position: absolute;
  bottom: 82px;
  right: 32px;
  z-index: 50;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-control:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   MOBILE & TABLET RESPONSIVENESS
===================================================== */
@media (max-width: 768px) {
  .carousel-slide img {
    width: 90vw;
    height: 50vh;
  }
  
  .music-control {
    bottom: 115px !important;
  }
}

/* =========================================================
   LARGE SCREENS (1600px+) — Large Laptops & Monitors
========================================================= */
@media (min-width: 1600px) {
  .carousel-slide img {
    width: 840px;
    height: 560px;
    border-radius: 12px;
  }
  
  .dot {
    width: 14px;
    height: 14px;
  }
  
  .dot.active {
    width: 38px;
  }
}

/* =========================================================
   2K & 32-INCH WIDE SCREENS (2560px+)
========================================================= */
@media (min-width: 2560px) {
  .carousel-slide img {
    width: 1140px;
    height: 760px;
    border-radius: 16px;
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.9);
  }
  
  .back-button {
    top: 48px;
    left: 48px;
    padding: 12px 24px;
    font-size: 20px;
  }
  
  .back-icon {
    width: 28px;
    height: 28px;
  }
  
  .music-control {
    bottom: 100px;
    right: 48px;
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
  
  .navigation-dots {
    bottom: 64px;
    gap: 16px;
  }
  
  .dot {
    width: 16px;
    height: 16px;
  }
  
  .dot.active {
    width: 48px;
  }
}

/* =========================================================
   4K ULTRA-WIDE SCREENS (3840px+)
========================================================= */
@media (min-width: 3840px) {
  .carousel-slide img {
    width: 1650px;
    height: 1100px;
    border-radius: 24px;
  }
  
  .back-button {
    top: 64px;
    left: 64px;
    padding: 16px 32px;
    font-size: 28px;
  }
  
  .back-icon {
    width: 36px;
    height: 36px;
  }
  
  .music-control {
    bottom: 120px;
    right: 64px;
    width: 90px;
    height: 90px;
    font-size: 42px;
  }
  
  .navigation-dots {
    bottom: 80px;
    gap: 24px;
  }
  
  .dot {
    width: 22px;
    height: 22px;
  }
  
  .dot.active {
    width: 64px;
  }
}