/* The lists' column and header of the Nội dung tabs that have lists: YouTube's
   channels and the podcast feeds (frontend/panel/content/playlist-column.js,
   playlist-header.js). Values from output/reference/behaviours/
   content-catalogue.md #75–#83 and #37–#42, content-reading.md #36–#40, cited
   per block. */

.pl-column {
  padding: 8px 0 24px;
}

.pl-column-heading {
  padding: 8px 18px 4px;
  color: var(--text-label);
  font-size: 12px;
}

.pl-row {
  display: flex;
  align-items: center;
  width: calc(100% - 20px);
  min-height: 52px;
  margin: 0 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-strong);
  font: 400 15px/1.3 var(--font);
  text-align: left;
  cursor: pointer;
}

.pl-row:hover {
  background: var(--hover);
}

.pl-row.is-selected {
  background: var(--selected);
  color: var(--selected-text);
}

.pl-list-picture {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  object-fit: cover;
}

.pl-list-picture.is-mix {
  background: var(--wovia-blue);
  color: var(--on-accent);
}

.pl-list-picture.is-mine {
  background: #2e7d32;
  color: var(--on-accent);
}

.pl-list-picture.is-lang {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  text-transform: uppercase;
}

.pl-row-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-row-count {
  flex-shrink: 0;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 12.5%, transparent);
  color: color-mix(in srgb, var(--ink) 53.3%, transparent);
  font-size: 14px;
  line-height: 22px;
}

.pl-pin {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 26.7%, transparent);
  cursor: pointer;
}

.pl-pin:hover {
  color: var(--selected-text);
}

.pl-pin.is-on {
  color: var(--wovia-blue);
}

.pl-pin.is-on:hover {
  color: var(--accent-soft);
}

.pl-separator {
  height: 1px;
  margin: 12px 20px;
  background: color-mix(in srgb, var(--ink) 8.2%, transparent);
}

.pl-separator.is-titled {
  display: flex;
  align-items: center;
  height: auto;
  margin: 12px 20px 4px;
  background: none;
  opacity: 0.5;
}

.pl-separator-line {
  width: 30px;
  height: 1px;
  background: var(--line-strong);
}

.pl-separator-line.is-long {
  flex-grow: 1;
}

.pl-separator-title {
  position: relative;
  top: -1px;
  padding: 0 4px;
  font-size: 16px;
  font-variant: small-caps;
}

/* A channel's card in tooltips (cat#81; md:L40794–40890). */
.pl-card-tip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
  white-space: normal;
}

.pl-card-tip-title {
  font-weight: 600;
}

.pl-card-tip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pl-pill {
  padding: 0 6px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--on-inverse) 12.5%, transparent);
  font-size: 12px;
  line-height: 20px;
}

.pl-card-tip-desc {
  display: -webkit-box;
  overflow: hidden;
  color: color-mix(in srgb, var(--on-inverse) 73.3%, transparent);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.pl-sample {
  overflow: hidden;
  /* The colour it inherits, faded: the tooltip's white (--on-inverse) here, the dialog's text in the channel search (youtube/discover.js). */
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-sample::before {
  content: "▸ ";
}

.pl-header-slot:not(:empty) {
  padding-top: 16px;
}

.pl-header {
  display: flex;
  gap: 16px;
  padding: 0 12px 16px;
  margin: 0 12px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 9.4%, transparent);
}

.pl-header a {
  color: inherit;
  text-decoration: none;
}

.pl-header-avatar {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.pl-header-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pl-header-text {
  max-height: 400px;
  overflow: hidden;
}

.pl-header-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pl-header-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.pl-header-desc {
  display: -webkit-box;
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 53.3%, transparent);
  font-weight: 300;
  line-height: 1.5;
  white-space: pre-line;
  -webkit-box-orient: vertical;
}

.pl-header-desc.is-open {
  display: block;
}

.pl-header-more {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-soft);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pl-header {
    flex-direction: column;
    align-items: center;
    padding: 0 16px 16px;
    text-align: center;
  }

  .pl-header-title-row {
    justify-content: center;
  }
}

/* A small screen's whole description (cat#42, read#40; md:L45051–45098): full screen on #2C2E33,
   the title 23 px / 37 px weight 600, ✕ 24 px #6D7076, the text #949596 on 26 px lines. */
.pl-desc-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: var(--surface-raised);
  color: var(--text);
}

.pl-desc-dialog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.pl-desc-dialog-title {
  font-size: 23px;
  font-weight: 600;
  line-height: 37px;
}

.pl-desc-dialog-close {
  position: relative;
  top: 4px;
  display: flex;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.pl-desc-dialog-text {
  padding: 16px;
  color: var(--text-muted);
  line-height: 26px;
  white-space: pre-line;
}
