/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background-color: #111;
  color: #fff;
  line-height: 1.6;
}

/* Header */
.main-header {
  background-color: #000;
  padding: 10px;
  border-bottom: 1px solid #222;
}

.social-icon {
  fill: white;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand-logo img.small-logo {
  height: 80px;
  width: 250px;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #f54;
}

/* Social Icons and Sign-up */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
}

.social-icons .social-icon {
  width: 28px;
  height: 28px;
  fill: white;
}

.social-icons a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.social-icons a:hover img {
  opacity: 0.7;
}

.btn-signup {
  background-color: #f54;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-signup:hover {
  background-color: #c43;
}

/* Hero Grid */
.hero-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item:hover .artist-name-overlay {
  opacity: 1;
}

.grid-item-wide {
  grid-column: span 2;
}

.grid-item-tall {
  grid-row: span 2;
}

/* Overlay for artist names */
.artist-name-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  pointer-events: none;
}

/* Central Brand Logo Overlay */
.central-brand-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  text-align: center;
}

.central-brand-overlay img {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.large-logo {
  max-width: 400px;
  width: 100%;
}

/* Footer */
.main-footer {
  background-color: #000;
  padding: 30px 20px;
  border-top: 1px solid #222;
  text-align: center;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* Album block and playlist */
.album-block {
  margin-bottom: 40px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
}

.album-block h2 {
  margin-bottom: 10px;
  color: #ff5722;
}

.playlist {
  list-style: none;
  padding: 0;
}

.playlist li {
  cursor: pointer;
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
  transition: background 0.2s;
}

.playlist li:hover {
  background-color: #eee;
}

.playlist li.playing {
  background-color: #222;
  color: #fff;
  font-weight: bold;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-logo,
  .main-nav,
  .header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .social-icons {
    justify-content: center;
    margin-left: 0;
  }

  .hero-grid-container {
    padding: 20px 10px;
  }

  .grid-item-wide,
  .grid-item-tall {
    grid-column: span 1;
    grid-row: auto;
  }

  .large-logo {
    max-width: 200px;
  }

  .central-brand-overlay {
    display: none;
  }
}