/* Cover images — playlists and class plans */

/* Keep recommendation action icons independent of the video image sizing. */
.pn-vl-card > .add-class-plan--labeled > img {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

/* Playlist archive rows */
.playlist-name-box > a .playlist-cover-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.playlist-name-box > a .playlist-cover {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #DDE2D8;
}

.playlist-name-box > a .playlist-cover-title h3 {
  min-width: 0;
}

/* Single playlist header */
.playlist-single-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0 0;
}

.playlist-single-cover {
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
  border-radius: 16px;
  object-fit: cover;
  background: #DDE2D8;
}

.playlist-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E4EFE0;
  color: #506243;
}

.playlist-name-box > a .playlist-cover--empty svg {
  width: 26px;
  height: 26px;
}

.playlist-single-cover.playlist-cover--empty svg {
  width: 56px;
  height: 56px;
}

.playlist-single-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #506243;
  margin-bottom: 6px;
}

.playlist-single-title h2 {
  margin: 0;
  color: #584C45;
  font-size: 32px;
  line-height: 1.2;
}

/* Class plan headers (member list, studio list, detail page) */
.top-bar-class-plan-listing .class-plan-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.top-bar-class-plan-listing .class-plan-cover {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #DDE2D8;
}

.top-bar-class-plan-listing .class-plan-title-row.is-detail .class-plan-cover {
  width: 110px;
  height: 110px;
  flex-basis: 110px;
  border-radius: 16px;
}

/* Cover picker inside the class-plan modals */
.class-plan-cover-field .class-plan-cover-label {
  margin: 0 0 8px;
  color: #584C45;
  font-weight: 600;
  font-size: 14px;
}

.class-plan-cover-field .class-plan-cover-label small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #8A8A8A;
}

.class-plan-cover-field .class-plan-cover-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.class-plan-cover-field .class-plan-cover-preview {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #DDE2D8;
}

.class-plan-cover-field .class-plan-cover-btn {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid #506243;
  color: #506243;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.class-plan-cover-field .class-plan-cover-btn:hover {
  background: #506243;
  color: #fff;
}

.class-plan-cover-field .class-plan-thumbnail-input {
  display: none;
}

.class-plan-cover-field .class-plan-cover-name {
  font-size: 12px;
  color: #584C45;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-plan-cover-field .class-plan-cover-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #584C45;
  cursor: pointer;
}

.class-plan-cover-field .class-plan-cover-remove[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .page-template-class-plan .class-plan-videos-lists.list-view .pn-vl-card {
    padding-bottom: 54px !important;
  }

  .page-template-class-plan .class-plan-videos-lists.list-view .pn-vl-card > .add-class-plan--labeled {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .playlist-single-head {
    gap: 16px;
  }

  .playlist-single-cover {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .playlist-single-title h2 {
    font-size: 24px;
  }

  .top-bar-class-plan-listing .class-plan-cover,
  .top-bar-class-plan-listing .class-plan-title-row.is-detail .class-plan-cover {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 10px;
  }
}

/* Keep Spotify artwork intact, with a separate attributed link. */
.playlist-name-box > a .spotify-cover,
.playlist-single-cover.spotify-cover,
.spotify-cover-card .img img {
  object-fit: contain !important;
  border-radius: 0 !important;
}
.spotify-cover-card .img { border-radius: 0 !important; }
.spotify-cover-card .img > svg { display: none !important; }
.playlist-spotify-credit { margin: 8px 0 16px; }
.playlist-spotify-credit > a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #506243;
}
.playlist-spotify-credit .fa-spotify { font-size: 20px; }
.playlist-name-box > .playlist-spotify-credit { margin-left: 70px; }
.spotify-cover-card > .playlist-spotify-credit { padding: 0 16px 12px; margin-bottom: 0; }
.class-plan-change-cover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid #647653;
  border-radius: 6px;
  background: #fff;
  color: #405234;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.class-plan-change-cover:hover { background: #edf2e9; }
.class-plan-change-cover:focus-visible { outline: 2px solid #405234; outline-offset: 3px; }