* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: /*-- linear-gradient(to bottom, rgba(29, 38, 51, 0.8), rgba(0, 0, 0, 0.9)), --*/
              url("background.jpg") no-repeat center center/cover;
  min-height: 100vh;
  color: #f0f0f0;
  text-align: center;
  padding: 20px;
}

.title {
  margin-top: 20px;
  margin-bottom: 50px;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #000;
  text-shadow: 0 0 8px rgba(97, 97, 97, 0.7);
}

h2 {
  margin: 10px 0;
  font-weight: 400;
  letter-spacing: 1px;
}

.sound-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* --- Frosted Glass Effect) --- */
.card {
  /* Key properties for the glass effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* For Safari */
  
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  padding: 25px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.play-btn {
  background: transparent;
  border: 2px solid #00aaff;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  width: 80%;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: #5d9ebd;
  color: #ffffff;
  box-shadow: 0 0 15px #00aaff;
}

.play-btn.playing {
  background: #00aaff;
  color: #111;
  box-shadow: 0 0 15px #00aaff;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  outline: none;
  margin: 15px 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #00aaff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: background 0.2s ease;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #00aaff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.slider:hover::-webkit-slider-thumb {
  background: #33bbff;
}

/* --- Header Layout & Mode Switch --- */
.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: 50px;
}

.mode-switch {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mode-label {
  font-weight: 600;
  font-size: 1rem;
  color: #302f2f;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #00aaff;
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.slider:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}