* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 2rem;
  background: #1c1c1c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fefefe;
}

header p {
  color: #aaa;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  padding: 2rem;
  flex-grow: 1;
}

.station-card.small {
  background: #1f1f1f;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.station-card.small:hover {
  transform: scale(1.05);
  background: #2a2a2a;
}

.station-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.station-card h3 {
  font-size: 1rem;
  color: #fff;
}

.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-top: 2px solid #333;
  transition: transform 0.3s ease;
  z-index: 9999;
  transform: translateY(85%);
}

.audio-player.expanded {
  transform: translateY(0);
}

.player-header {
  padding: 0.5rem 1rem;
  background: #181818;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
}

.album-art img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.album-art img.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.track-info {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

.track-info p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.controls button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.controls button:hover {
  background: #444;
}

.controls input[type='range'] {
  width: 100px;
}

#socialLinks a {
  margin: 0 5px;
  color: #1db954;
  text-decoration: none;
  font-size: 0.9rem;
}

#socialLinks a:hover {
  text-decoration: underline;
}

/* Media query for smaller screens */
@media screen and (max-width: 600px) {
  .player-content {
    flex-direction: column;
  }
  .track-info {
    text-align: center;
  }
  .album-art img {
    width: 100px;
    height: 100px;
  }
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

form label {
  font-weight: bold;
  color: #fff;
}

form input, form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

form button {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background: #0097a7;
}

#statusMessage {
  margin-top: 1rem;
  font-weight: bold;
}
