html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding-top: 10px;
  background-color: #00a36a;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("https://www.transparenttextures.com/patterns/football-no-lines.png");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
}

.player-container {
  background-color: rgba(44, 47, 63, 0.95);
  border-radius: 15px; 
  width: 100%;
  max-width: 420px;
  padding: 25px 20px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  margin-top: 5px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 420px;
  margin-top: 10px;
}

.header {
  width: 100%;
  margin-bottom: 5px;
  position: relative;
}

.header h2 {
  text-align: center;
  font-size: 24px;
  margin: 0;
  font-family: 'Cairo Play', sans-serif;
  color: white;
  background-color: rgba(0, 0, 0, 0.3); 
  padding: 10px 20px;
  border-radius: 20px; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.2);
  position: relative;
  transition: all 0.3s ease;
}

.header h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(to right, transparent, #ff5722, transparent);
  transition: all 0.3s ease;
}

.player-container .header {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: row-reverse;
}

.logo {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  background-color: #fff;
  overflow: hidden;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.text-block h2 {
  font-size: 15px;
  margin: 0;
  font-family: 'Cairo Play', sans-serif;
}

.text-block span {
  font-size: 15px;
  color: #ccc;
  transition: color 0.3s ease;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.main-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  position: relative;
}

.play-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.play-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.play-btn .icon {
  width: 40px;
  height: 40px;
  transition: fill 0.3s ease;
}

.station-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-grow: 1;
  flex-wrap: nowrap;
}

.dropdown {
  background-color: #3c3f4f;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  flex: 1 0 auto;
  max-width: 180px;
  transition: all 0.3s ease;
}

/* Volume Control Styles */
.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #555 0%, #4CAF50 100%);
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

/* Track styles */
.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 5px;
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 5px;
}

/* Thumb styles */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -5px;
  transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-control button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.social-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.social-btn.telegram {
  background-color: #0088cc;
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.other {
  background-color: #ff5722;
}

.social-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.clock-container {
  display: flex;
  justify-content: left;
  margin: 10px 0;
}

.clock {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #3c3f4f;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.clock-face {
  width: 100%;
  height: 100%;
  position: relative;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  background-color: #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hour-hand {
  width: 4px;
  height: 25px;
  margin-left: -2px;
}

.minute-hand {
  width: 3px;
  height: 35px;
  margin-left: -1.5px;
}

.second-hand {
  width: 2px;
  height: 35px;
  margin-left: -1px;
  background-color: #ff5722;
  transition: all 0.3s ease;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}

#listener-count {
  background-color: #111d57; 
  color: white; 
  font-size: 16px; 
  padding: 10px 20px; 
  border-radius: 20px; 
  margin: 5px 0 10px 0;
  text-align: center; 
  width: 100%; 
  max-width: 420px; 
  box-sizing: border-box; 
  transition: all 0.3s ease;
}

.schedule-btn {
  background-color: #175c26;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  margin: 10px 0;
  text-align: center;
  transition: background-color 0.3s;
}

.schedule-btn:hover {
  background-color: #218838;
}

.play-spinner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s, border-color 0.3s ease, border-top-color 0.3s ease;
  pointer-events: none;
}

.play-spinner.active {
  opacity: 1;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.theme-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: all 0.3s;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Day Mode Styles */
.day-mode .header h2 {
  color: #2c3e50;
  background-color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.day-mode .header h2::after {
  background: linear-gradient(to right, transparent, #4CAF50, transparent);
}

.day-mode .player-container {
  background-color: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.day-mode #listener-count {
  background-color: #e3f2fd;
  color: #2c3e50;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day-mode .schedule-btn {
  background-color: #4CAF50;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.day-mode #linksButton {
  background-color: #7e57c2;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.day-mode .play-btn {
  border-color: #2c3e50;
  color: #2c3e50;
}

.day-mode .play-btn:hover {
  background-color: rgba(44, 62, 80, 0.1);
}

.day-mode .play-btn .icon {
  fill: #2c3e50;
}

.day-mode .play-spinner {
  border: 3px solid rgba(44, 62, 80, 0.1);
  border-top-color: #2c3e50;
}

.day-mode .dropdown {
  background-color: #f5f5f5;
  color: #2c3e50;
  border: 1px solid #ddd;
}

.day-mode .volume-slider {
  background: linear-gradient(to right, #b0bec5 0%, #4CAF50 100%);
}

.day-mode .volume-control button {
  color: #2c3e50;
}

.day-mode .volume-slider::-webkit-slider-thumb {
  background: #2c3e50;
}

.day-mode .volume-slider::-moz-range-thumb {
  background: #2c3e50;
}

.day-mode .clock {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.day-mode .hand {
  background-color: #2c3e50;
}

.day-mode .second-hand {
  background-color: #4CAF50;
}

.day-mode .center-circle {
  background-color: #2c3e50;
}

.day-mode .text-block span {
  color: #546e7a;
}

.day-mode .theme-toggle {
  background-color: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day-mode .theme-toggle:hover {
  background-color: white;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .schedule-btn {
    padding: 10px 15px;
    font-size: 18px;
  }

  .player-container .header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .logo {
    width: 60px;
    height: 60px;
    margin-left: 0;
    margin-right: 0;
  }

  .clock {
    width: 60px;
    height: 60px;
  }

  .hour-hand {
    height: 20px;
  }

  .minute-hand, .second-hand {
    height: 28px;
  }

  .text-block {
    text-align: center;
    width: 100%;
  }

  .main-controls {
    flex-wrap: nowrap;
  }

  .station-controls {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .dropdown {
    max-width: 130px;
    font-size: 13px;
  }

  .volume-slider {
    width: 80px;
  }

  .volume-control {
    gap: 8px;
  }

  .theme-toggle {
    left: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
/* Button Row Styles */
.button-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 10px 0;
}

.action-btn {
  flex: 1;
  background-color: #175c26;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background-color: #218838;
}

.action-btn.purple {
  background-color: #6f42c1;
}

.action-btn.purple:hover {
  background-color: #7e57c2;
}

/* PayPal Container */
.paypal-container {
  width: 100%;
  max-width: 420px;
  margin: 10px 0 20px;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
}

/* Day Mode Adjustments */
.day-mode .action-btn {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.day-mode .action-btn.purple {
  background-color: #7e57c2;
}

.day-mode .paypal-container {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness for new elements */
@media (max-width: 480px) {
  .button-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .paypal-container {
    padding: 10px;
  }
}
