/* Base and Typography */
:root {
  --primary-color: #141414;
  --primary-dark: #141414;
  --text-dark: #141414;
  --text-medium: #666;
  --text-light: #999;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-medium: 0 8px 24px rgba(0,0,0,0.2);
}

body {
  font-family: 'Montserrat', sans-serif !important;
  padding-bottom: 90px;
  background-color: #ffffff;
  margin: 0;
}

.container {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 40px 20px 100px;
  color: white;
  margin-bottom: 0;
}

.hero-flex-container {
  display: none;
}

.hero-logo {
  width: 300px;
  text-align: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* Now Playing Section (reverting pill background) */
.now-playing-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  background-color: transparent;
  border-radius: 0;
  padding: 20px 30px;
  box-shadow: none;
  color: white;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.hero-artwork {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.hero-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-artwork:hover .hero-play-button,
.hero-play-button.playing {
  opacity: 1;
}

.hero-play-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-track-info {
  flex: 1;
  color: white;
}

.hero-track-info h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
  color: white;
}

.hero-track-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: white;
}

.hero-track-artist {
  font-size: 24px;
  opacity: 0.9;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* Wave Separator */
.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
  margin-bottom: -1px;
}

/* Section Headers */
.section-header {
  padding: 20px 0;
  text-align: center;
  margin-top: -1px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-medium);
  margin: 8px 0 0;
}

/* Tracks Grid */
.tracks-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 0 40px;
  max-width: 100%;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px;
  margin-left: 0;
  justify-content: flex-start;
}

.tracks-wrapper::-webkit-scrollbar {
  display: none;
}

.track-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s;
}

.track-card:hover {
  transform: translateY(-4px);
}

.track-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.track-info {
  padding: 16px;
}

.track-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-dark);
}

.track-artist {
  font-size: 14px;
  color: var(--text-medium);
}

.track-timestamp {
  color: var(--text-light) !important;
  font-size: 12px !important;
}

.spotify-icon {
  color: var(--primary-color);
}

/* Footer Player */
.footer-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary-dark);
}

.footer-player-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-player-artwork {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.footer-player-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-player-info {
  color: white;
  min-width: 280px;
  text-align: left;
}

.footer-player-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-player-artist {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.footer-player-button {
  background: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  border: none;
  transition: all 0.2s;
}

.footer-player-button i {
    font-size: 1em;
    padding-left: 2px;
}

.footer-player-button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

#volumeSlider {
  width: 100px;
  -webkit-appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Studio Message Button */
.studio-message-btn {
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.studio-message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.8);
}

.studio-message-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.studio-message-btn i {
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .tracks-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .tracks-wrapper {
    display: flex;
    gap: 16px;
    grid-template-columns: unset;
    padding: 0 0 20px;
  }

  .track-column {
    flex: 0 0 260px;
  }

  .track-card {
    height: 100%;
  }

  .section-header {
    padding: 15px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .hero-track-title {
    font-size: 36px;
  }
  
  .hero-artwork {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  .hero-track-info {
    text-align: center;
    flex: 0 0 100%;
  }
  
  .now-playing-hero {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 30px 15px 80px;
  }

  .now-playing-hero {
    gap: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .hero-track-info {
    width: 100%;
    padding: 0 20px;
  }

  .hero-track-info h1 {
    font-size: 20px;
  }

  .hero-track-title {
    font-size: 28px;
  }

  .hero-track-artist {
    font-size: 20px;
  }

  .footer-player-container {
    padding: 0 15px;
    gap: 15px;
  }

  .footer-player-info {
    min-width: 200px;
  }

  .footer-player {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  .tracks-wrapper {
    padding-bottom: 20px;
  }

  .hero-artwork {
    width: 180px;
    height: 180px;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-logo {
    width: 240px;
    margin: 0 auto;
  }

  .track-column {
    flex: 0 0 220px;
  }

  .track-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .track-title {
    font-size: 14px;
  }

  .track-artist {
    font-size: 12px;
  }

  .listeners-count {
    margin: 15px auto 0 auto;
    display: block;
  }
}

@media (max-width: 576px) {
  .tracks-wrapper {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
    padding: 0 0 20px;
    gap: 16px;
  }

  .hero-artwork {
    width: 160px;
    height: 160px;
    border-radius: 8px;
  }

  .hero-play-button {
    width: 50px;
    height: 50px;
  }

  .hero-play-button i {
    font-size: 1.5em;
  }

  .track-card {
    border-radius: 6px;
    max-width: 320px;
    margin: 0;
  }

  .footer-player-container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 15px;
  }

  .footer-player-controls {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .volume-control {
    display: none;
  }

  .footer-player {
    height: auto;
    min-height: 90px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-track-info {
    padding: 0 15px;
  }
  
  .studio-message-btn {
    width: 90%;
    max-width: 280px;
  }

  .track-column {
    flex: 0 0 180px;
  }

  .track-info {
    padding: 12px !important;
  }
  
  .now-playing-hero {
    border-radius: 25px;
    padding: 12px;
  }
}

.listeners-count i {
    padding-right: 5px;
}

.listeners-count {
    max-width: fit-content;
    background: white;
    border-radius: 50px;
    margin: 10px auto 0 auto;
    padding: 5px 20px;
    color: var(--primary-dark);
    display: inline-block;
}