/* Wrapper – no custom background, just center the card on the page */
.polaris-playlist-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;      /* keeps things tidy if the content column is very wide */
  margin: 0 auto;

  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 88px 16px 72px;
}

/* Frosted glass card */
.polaris-now-playing {
  max-width: 720px;
  width: 100%;
  background: rgba(255, 255, 255, 0.356); /* your translucency */
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header text */
.polaris-header {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 18px;
}

/* Album art */
.polaris-album-art-wrap {
  width: 320px;
  max-width: 100%;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 26px;
}

.polaris-album-art {
  width: 100%;
  height: auto;
  display: block;
}

/* Track meta */
.polaris-track-meta {
  text-align: center;
  margin-bottom: 26px;
}

.polaris-track-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 4px;
}

.polaris-track-artist {
  font-size: 14px;
  color: #6b7280;
}

/* Progress bar */
.polaris-progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.polaris-time {
  font-size: 12px;
  color: #414141;
}

.polaris-progress {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(209, 213, 219, 0.9);
  outline: none;
}

.polaris-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  cursor: pointer;
  margin-top: -6px;
}

.polaris-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  cursor: pointer;
}

/* Controls */
.polaris-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Unmute / Mute button */
.polaris-btn-unmute {
  border: none;
  border-radius: 999px;
  padding: 11px 34px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.15s;

}

.polaris-btn-unmute:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.polaris-btn-unmute:active {
  transform: translateY(0);

}

/* Brand text underneath card */
.polaris-brand-footer {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;

}

/* Medium screens – gently shrink card */
@media (max-width: 900px) {
  .polaris-now-playing {
    max-width: 560px;
    padding: 28px 24px 32px;
    border-radius: 30px;
  }

  .polaris-album-art-wrap {
    width: 260px;
  }
}

/* Small screens / phones */
@media (max-width: 640px) {
  .polaris-playlist-wrapper {
    /* no full-height centering on phones; let it scroll naturally */
    min-height: auto;
    justify-content: flex-start;
    padding: 20px 10px 32px;
  }

  .polaris-now-playing {
    max-width: 100%;
    padding: 20px 14px 24px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
  }

  .polaris-album-art-wrap {
    width: min(72vw, 220px); /* scale with viewport, but don’t get huge */
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .polaris-track-title {
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .polaris-track-artist {
    font-size: 13px;
  }

  .polaris-progress-wrap {
    margin-bottom: 18px;
  }

  .polaris-time {
    font-size: 11px;
  }

  .polaris-btn-unmute {
    padding: 9px 26px;
    font-size: 13px;
  }

  .polaris-brand-footer {
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: 0.16em;
  }
}

/* Small screens / phones */
@media (max-width: 640px) {
  .polaris-playlist-wrapper {
    /* let the page scroll naturally; no forced tall center */
    min-height: auto;
    justify-content: flex-start;

    padding: 16px 0 28px;
  }

  .polaris-now-playing {
    /* narrow centered card instead of full-width slab */
    width: 90%;
    max-width: 420px;
    margin: 0 auto;

    padding: 20px 16px 22px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25);
  }

  .polaris-album-art-wrap {
    width: 70vw;          /* scale with viewport */
    max-width: 240px;     /* but never too big */
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .polaris-track-title {
    font-size: 18px;
    letter-spacing: 0.04em;
  }

  .polaris-track-artist {
    font-size: 13px;
  }

  .polaris-progress-wrap {
    margin-bottom: 18px;
  }

  .polaris-time {
    font-size: 11px;
  }

  .polaris-btn-unmute {
    padding: 9px 26px;
    font-size: 13px;
  }

  .polaris-brand-footer {
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: 0.16em;
  }
}
