/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
}

/* Hero Section with Gradient Overlay */
header .hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4081, #3f51b5);
}
header .hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.hero-text h1 {
  font-size: 3rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hero-text p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 10px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  background: linear-gradient(90deg, #3f51b5, #ff4081);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  max-width: 900px;
}
nav ul li {
  margin: 0 20px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 8px 15px;
}
nav ul li a:hover {
  background-color: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* Layout */
.container {
  display: flex;
  padding: 20px;
}
main {
  width: 70%;
  padding: 20px;
}
aside.sidebar {
  width: 30%;
  padding: 20px;
  background-color: #1e1e1e;
  /* Sidebar text in blue palette */
  color: #3f51b5;
  margin-left: 20px;
}
/* Sidebar ad spot styling (each with its own background) */
.ad-spot {
  background-color: #2a2a2a;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 4px;
}
.ad-spot a {
  color: #3f51b5;
  text-decoration: none;
  font-weight: bold;
}

/* Section 1: Today's Releases */
#today {
  background-color: rgba(255, 64, 129, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 40px;
}
#today h2 {
  background: linear-gradient(90deg, #3f51b5, #ff4081);
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  margin-bottom: 15px;
}
/* Row 1: Full-size Cards */
.today-row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
/* Row 2: Mini Cards */
.today-row2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Full-Size Song Card Styles (used in Today's row1) */
.song-card {
  background-color: #1e1e1e;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #333;
  transition: transform 0.2s;
}
.song-card:hover {
  transform: scale(1.03);
}
.song-card img {
  width: 100%;
  border-radius: 4px;
}
.song-info {
  margin-top: 10px;
  text-align: center;
}
.song-info h3 {
  margin: 5px 0;
  font-size: 1.1rem;
  color: #ff4081;
}
.song-info p {
  font-size: 0.9rem;
  margin: 3px 0;
  color: #ddd;
}

/* Mini Song Card Styles (used in Today's row2, and Sections 2 & 3) */
.mini-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 5px;
}
.audio-player.mini-player {
  width: 80%;
  height: 30px;
  /* Visible by default in mini cards */
  display: block;
}

/* Section 2: Last 7 Days */
#last7days {
  background-color: rgba(63, 81, 181, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 40px;
}
#last7days h2 {
  background: linear-gradient(90deg, #3f51b5, #ff4081);
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  margin-bottom: 15px;
}
/* Section 3: Last 30 Days */
#last30days {
  background-color: rgba(76, 175, 80, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 40px;
}
#last30days h2 {
  background: linear-gradient(90deg, #3f51b5, #ff4081);
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  margin-bottom: 15px;
}

/* Mini Rows for Sections 2 & 3 */
.mini-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
/* Utility class to hide an element */
.hidden {
  display: none;
}

/* Toggle Button Styles */
button {
  background: linear-gradient(90deg, #3f51b5, #4caf50);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 1rem;
}
button:hover {
  background: linear-gradient(90deg, #4caf50, #3f51b5);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #1e1e1e;
  border-top: 2px solid #ff4081;
  margin-top: 20px;
}

/* Responsive Styles for Mobile Devices */
@media screen and (max-width: 768px) {
  .container {
	flex-direction: column;
  }
  main, aside.sidebar {
	width: 100%;
	padding: 10px;
	margin-left: 0;
  }
  .today-row1 {
	grid-template-columns: repeat(2, 1fr);
  }
  .today-row2, .mini-row {
	grid-template-columns: repeat(2, 1fr);
  }
}
