/**
 * Hypnosonica Spotify Discography Player Styles
 */

.hypnosonica-spotify-discography-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Header & Album Selector Pills */
.spotify-discography-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.spotify-discography-title {
  position: relative;
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.spotify-discography-title span {
  background: linear-gradient(90deg, #1db954, #64ffda);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotify-discography-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Album Selection Tabs / Grid Bar */
.spotify-album-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.spotify-album-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spotify-album-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #1db954;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.25);
}

.spotify-album-tab.active {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.2), rgba(100, 255, 218, 0.15));
  border-color: #1db954;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(29, 185, 84, 0.4), inset 0 0 12px rgba(29, 185, 84, 0.2);
}

.spotify-album-tab-icon {
  color: #1db954;
  font-size: 1.1rem;
}

.spotify-album-tab-year {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  color: #94a3b8;
}

.spotify-album-tab.active .spotify-album-tab-year {
  background: rgba(29, 185, 84, 0.3);
  color: #64ffda;
}

/* Main Spotify Player Card Container */
.spotify-player-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.spotify-embed-card {
  background: rgba(13, 13, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(29, 185, 84, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.spotify-embed-card:hover {
  border-color: rgba(29, 185, 84, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(29, 185, 84, 0.2);
}

/* Top Visualizer & Status Header */
.spotify-player-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.spotify-badge-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.spotify-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid rgba(29, 185, 84, 0.5);
  color: #1db954;
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.25);
}

.spotify-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1db954;
  box-shadow: 0 0 8px #1db954;
  animation: spotifyPulse 2s infinite ease-in-out;
}

@keyframes spotifyPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.spotify-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64ffda;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.spotify-open-link:hover {
  color: #ff66c4;
  text-shadow: 0 0 10px rgba(255, 102, 196, 0.5);
  transform: translateX(2px);
}

/* Dynamic iframe wrapper */
.spotify-iframe-holder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121212;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 382px;
}

.spotify-iframe-holder iframe {
  display: block;
  width: 100%;
  height: 382px;
  border: 0;
}

/* Album metadata details strip */
.spotify-album-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .spotify-album-selector {
    gap: 0.6rem;
  }
  .spotify-album-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .spotify-embed-card {
    padding: 1.2rem;
  }
  .spotify-player-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
