/* Home Page Playlists & Filters Section */

.current-playlist-section {
  margin: 3rem 0;
}

.current-playlist-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary, #FFB300);
  font-weight: 600;
}

.playlists-section {
  margin: 3rem 0;
}

.playlists-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary, #FFB300);
  font-weight: 600;
}

.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.playlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.playlist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.playlist-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

.playlist-card-title {
  padding: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Playlist Detail (Expanded View) */

.playlist-detail {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--primary, #FFB300);
}

.playlist-detail.active {
  display: block;
}

.playlist-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.playlist-detail-header h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #333;
  flex: 1;
}

.btn-close-playlist {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-close-playlist:hover {
  background: #e0e0e0;
}

/* Filters Section (Cruise Lines & Theme Parks) */

.filters-section {
  margin: 3rem 0;
}

.filters-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary, #FFB300);
  font-weight: 600;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 150px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-card:hover {
  border-color: var(--primary, #FFB300);
  background: #fff;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.1);
  transform: translateY(-4px);
}

.filter-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.filter-label {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* Responsive */

@media (max-width: 768px) {
  .playlists-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .filter-card {
    min-height: 120px;
    padding: 1rem;
  }

  .playlist-card {
    height: 150px;
  }

  .playlist-card-title {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .playlist-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-detail-header h3 {
    width: 100%;
  }

  .btn-close-playlist {
    width: 100%;
    text-align: center;
  }

  .playlist-card {
    height: auto;
  }

  .playlist-card-title {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .playlists-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-card {
    min-height: 100px;
  }

  .current-playlist-section h2,
  .playlists-section h2,
  .filters-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}
