body {
  background-color: whitesmoke;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  color: darkorange;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.main-div {
  text-align: center;
  max-width: 600px;
  padding: 30px;
  border: 2px solid #ffa500;
  border-radius: 16px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header img {
  max-width: 100%;
  height: auto;
}

.player-container {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 3px 0px 15px 10px rgb(255 140 0 / 34%);
}

/* Status mesajı stilleri */
#status {
    min-height: 48px; /* 2 satır için yaklaşık yükseklik */
    height: 48px;
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#status.error {
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

#status.success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

#status.warning {
    background-color: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

#controls {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.control-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Play butonu stilleri */
#playButton {
  background-color: #ffa500;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  min-width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#playButton:hover {
  background-color: #ff8c00;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#playButton:active {
  transform: scale(0.98);
  background-color: #ff7000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#playButton i {
  font-size: 18px;
  color: #ffffff;
}

.volume-control {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  position: relative;
}

#volume-slider {
  width: 100%;
  min-width: 200px;
  height: 4px;
  -webkit-appearance: none;
  background: #e0e0e0;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

#volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #ffa500 var(--value-percent, 0%), #e0e0e0 var(--value-percent, 0%));
}

#volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #ffa500 var(--value-percent, 0%), #e0e0e0 var(--value-percent, 0%));
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #ffa500;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

#volume-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #ffa500;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
  background: #ff8c00;
  transform: scale(1.1);
}

#volume-slider::-moz-range-thumb:hover {
  background: #ff8c00;
  transform: scale(1.1);
}

#volume-value {
  position: absolute;
  margin-top: 10px;
  background: #ffa500;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 12px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  min-width: 24px;
  text-align: center;
  top: -20px;
}

.volume-control:hover #volume-value {
  opacity: 1;
}

#elapsed-time {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 15px;
  font-weight: bold;
  color: #ffa500;
  font-family: monospace;
}

.buffering {
  animation: buffering 1.5s infinite ease-in-out;
}

@keyframes buffering {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.text-center {
    text-align: center;
}

@media (min-width: 1200px) {
  .main-div {
    max-width: 800px;
    padding: 40px;
  }

  .player-container {
    max-width: 800px;
    padding: 40px;
  }

  #playButton {
    padding: 25px 50px;
    font-size: 20px;
    min-width: 300px;
  }

  #status {
    font-size: 2rem;
  }

  #volume-slider {
    min-width: 300px;
  }
}