/* Base styling for all sidebar cards */
.sidebar-card {
  margin-bottom: 1.5rem;
}

.sidebar-card .card-header {
  font-weight: bold;
}

/* Spotify card specific styling */
.sidebar-card--spotify {
  border-color: #1DB954;
  overflow: hidden;
}

.sidebar-card--spotify .card-header {
  background-color: #1DB954;
  color: white;
  margin-bottom: 0; /* Reset any margin */
}

/* Add proper padding to the card body */
.sidebar-card--spotify .card-body {
  padding: 0; /* Remove side padding for iframe to fit nicely */
  padding-top: 12px; /* Add padding at the top for spacing */
}

/* Spotify player styling */
.sidebar-card--spotify .spotify-player-placeholder {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-card--spotify iframe {
  width: 100%;
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  min-height: 352px;
}

/* Additional styles for track info if needed */
#currentTrackInfo {
  padding: 8px;
  text-align: center;
  background-color: #f8f9fa;
}

.player-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.player-subtitle {
  color: #666;
  font-size: 0.9em;
}

/* Dynamic card (artist bio) styling */
.sidebar-card--dynamic {
  border-color: #0275d8;
  height: auto !important; /* Override any fixed height constraints */
}

.sidebar-card--dynamic .card-header {
  background-color: #0275d8;
  color: white;
  position: relative;
  padding-right: 2rem; /* Space for the close button */
}

/* Position the Bootstrap close button properly */
.sidebar-card--dynamic .card-header .btn-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  color: white; /* Ensure visibility against blue background */
}

.sidebar-card--dynamic .card-header .btn-close:hover {
  opacity: 1;
}

/* Ensure bio content expands fully */
.sidebar-card--dynamic .card-body {
  height: auto !important;
  max-height: none !important; /* Remove any max-height constraints */
  overflow: visible !important; /* Remove scrollbars */
  padding-bottom: 1.25rem;
}

/* Make bio content responsive */
.sidebar-card--dynamic .card-body img {
  max-width: 100%;
  height: auto;
}

.sidebar-card--dynamic .card-body p {
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar-card--dynamic .card-body {
    padding: 0.75rem;
  }
}