.playlist-button-container {
  margin: 1.5rem 0 0.5rem;
}

.playlist-intro {
  max-width: 620px;
  margin: 2rem auto 1.25rem;
  color: #6e6e73;
  text-align: center;
  line-height: 1.6;
}

.playlist-save-btn.saved {
  opacity: 0.75;
}

#playlist-container {
  margin-top: 1.5rem;
}

.playlist-create-page {
  display: flex;
  max-width: 620px;
  gap: 0.5rem;
  margin: 1.25rem auto 2rem;
}

.playlist-create-page input {
  min-width: 0;
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
}

.playlist-create-page button {
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  background: #0071e3;
  color: #fff;
  cursor: pointer;
}

.playlist-create-page button:hover,
.playlist-picker-save:hover,
.playlist-create-btn:hover {
  background: #0077ed;
}

.playlist-list {
  padding-left: 0;
  margin-bottom: 0;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f2f2f2;
}

.playlist-item a {
  font-weight: 500;
  margin-right: 1rem;
  word-break: break-word;
}

.playlist-card {
  margin: 1.25rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.playlist-card h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 1.25rem;
}

.playlist-card h2 small,
.playlist-picker-list small {
  color: #6e6e73;
  font-size: 0.75rem;
}

.playlist-remove-btn {
  border: 0;
  background: transparent;
  color: #c5221f;
  cursor: pointer;
}

.playlist-remove-btn:hover {
  text-decoration: underline;
}

.playlist-card .playlist-list {
  margin-top: 0.75rem;
}

.playlist-item {
  gap: 1rem;
  padding: 0.85rem 0;
}

.playlist-item a {
  color: #1d1d1f;
  line-height: 1.4;
  text-decoration: none;
}

.playlist-item a:hover {
  color: #0071e3;
}

#playlist-container {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 480px) {
  .playlist-create-page {
    flex-direction: column;
  }

  .playlist-create-page button {
    width: 100%;
  }
}

.playlist-picker {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.playlist-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.playlist-picker-dialog {
  position: relative;
  width: min(92vw, 420px);
  margin: 12vh auto 0;
  padding: 1.5rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.playlist-picker-dialog h2 {
  margin-top: 0;
}

.playlist-picker-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.playlist-picker-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.playlist-picker-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playlist-picker-list small {
  margin-left: auto;
}

.playlist-create-row {
  display: flex;
  gap: 0.5rem;
}

.playlist-create-row input {
  min-width: 0;
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
}

.playlist-create-btn,
.playlist-picker-save {
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: #0071e3;
  color: #fff;
  cursor: pointer;
}

.playlist-limit {
  margin: 0.7rem 0;
  color: #6e6e73;
  font-size: 0.8rem;
}

.playlist-empty {
  color: #6e6e73;
  font-style: italic;
}
