/* Просмотренные фильмы. */
.wl { max-width: var(--list-w); margin: 0 auto; padding: 24px 24px 80px; }
.wl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wl-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.wl-sub { margin-top: 2px; color: var(--muted); }
.wl-tools { display: flex; gap: 6px; }

/* --- фильтры --- */
.wl-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.wl-filters-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.wl-sort { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wl-sort select { width: auto; }
.wl-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-controls .search { flex: 1 1 240px; }
.wl-controls select { width: auto; max-width: 220px; }
.wl-years { display: flex; align-items: center; gap: 4px; color: var(--dim); }

/* --- список --- */
.wl-list { display: flex; flex-direction: column; gap: 6px; }
.wl-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr) 60px 82px 82px 92px 112px;
  padding: 8px 16px 8px 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
}
.wl.editing .wl-row { grid-template-columns: 52px minmax(0, 1fr) 60px 82px 82px 92px 112px 32px; }
.wl-row.is-live { border-color: rgba(229, 72, 77, .45); }
.wl-labels {
  padding-top: 0; padding-bottom: 0; background: none; border: 0;
  color: var(--dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.wl-poster { width: 52px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; font-size: 7px; cursor: pointer; }
.wl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wl-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wl-title .tier-tag { flex: none; }
.wl-title .meta { flex: none; white-space: nowrap; }
.wl-title b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; cursor: pointer; }
.wl-title b:hover { color: #b5cfff; }
.wl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12.5px; }
.wl-genres { color: var(--dim); }
.tier-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 70%, #fff);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.tier-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
/* описание стримера — целиком, строкой под фильмом во всю ширину */
.wl-comment {
  grid-column: 2 / -1; margin-top: -2px; padding: 7px 12px;
  border-left: 3px solid var(--violet); border-radius: 0 8px 8px 0; background: rgba(124, 92, 246, .08);
  color: #d6d0f2; font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere;
}
.wl-cell { display: flex; align-items: center; min-width: 0; }
.wl-rating .rate { min-width: 38px; justify-content: center; }
.wl-none { color: var(--dim); }
.wl-record { display: inline-flex; align-items: center; gap: 6px; color: #8fb6ff; font-weight: 700; font-size: 13px; }
.wl-record:hover { color: #b5cfff; text-decoration: underline; }
.wl-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rate-input { width: 58px; height: 30px; padding: 0 8px; text-align: center; font-weight: 800; }
.rate-input:disabled { opacity: .5; }
.wl-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; color: var(--muted); text-align: center; }
.wl-more { align-self: center; margin: 16px auto 0; display: flex; }

@media (max-width: 860px) {
  .wl { padding: 16px 12px 60px; }
  /* второй ряд строки — КП, IMDb, запись и дата одной лентой под названием */
  .wl-row, .wl.editing .wl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px; }
  .wl-poster { flex: none; }
  .wl-main { flex: 1 1 calc(100% - 140px); }
  .wl-rating { flex: none; }
  .wl-row > .wl-cell:nth-child(4) { margin-left: 64px; }
  .wl-date { margin-left: auto; }
  .wl-comment { flex: 1 1 100%; margin: 0 0 0 64px; }
  .wl .wl-list .wl-row.wl-labels { display: none; }
}
