/*
 * The list of the works (piano 10, step 3b), from the mockup approved by the user: titles above, the poster, the looks
 * below; on phones one under the other at 80% of the width, on computers three in a row with the rows lined up; the
 * light of the cells behind every poster, short, so it never colours the others.
 */
.section-works { --accent: var(--c-works); }
/* The list of the singles (piano 10, 2026-10-27), built as the works: its colour; the label of the interpreter soft, the
   name in the colour of the text */
.section-singles { --accent: var(--c-singles); }
.post-interpreter { color: var(--muted); opacity: 1; }
.post-interpreter b { font-weight: 400; color: var(--text); }
.page-title { display: inline-block; padding-bottom: 4px; border-bottom: 2px solid var(--accent, var(--c-works)); box-shadow: 0 6px 12px -8px var(--accent, var(--c-works)); }
.works-head { margin: 0 0 22px; }
.works-empty { color: var(--muted); }

.feed { display: grid; gap: 34px; margin: 0; padding: 0; list-style: none; }
.post { display: grid; gap: 8px; }
.post-text { display: grid; gap: 2px; }
.post-text h2 { margin: 0; font-size: 1.15rem; font-weight: 400; line-height: 1.3; }
.post-collection { font-size: .95rem; opacity: .8; }
.post-credit { color: var(--muted); font-size: .85rem; }
.post-image { border-radius: 18px; touch-action: pan-y; }
.post .poster { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; user-select: none; -webkit-user-drag: none; transition: box-shadow .45s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .4), 0 0 22px 0 color-mix(in srgb, var(--halo, #9A5CFF) 75%, transparent); }
[data-theme="light"] .post .poster { box-shadow: 0 8px 18px rgba(27, 24, 56, .14), 0 0 20px 0 color-mix(in srgb, var(--halo, #9A5CFF) 45%, transparent); }
.post-dots { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.post-dots.is-empty { visibility: hidden; }
.post-dots button { width: 18px; height: 18px; padding: 0; border: 2px solid var(--line); border-radius: 50%; cursor: pointer; transition: transform .15s; }
.post-dots button[aria-pressed="true"] { border-color: var(--text); transform: scale(1.2); }
.post-badge { position: relative; padding-left: 18px; font-size: .8rem; color: var(--muted); }
.post-badge::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 12px; margin-top: -7px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 3px 3px 0 -1.5px var(--bg), 3px 3px 0 0 currentColor; }

/* Phones: the posters a bit smaller (user's indication), the heading with them; one under the other nothing has to line
   up, so no empty lines */
@media (max-width: 899px) {
  .post, .works-head { width: min(80%, 340px); margin-left: auto; margin-right: auto; }
  .post-collection.is-empty, .post-credit.is-empty, .post-dots.is-empty { display: none; }
}
/* Computers: three in a row; the rows of the grid shared, so titles, posters and looks of a row line up */
@media (min-width: 900px) {
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; }
  .post { grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; }
  .post-text { align-content: end; }
}
@media (prefers-reduced-motion: reduce) { .post .poster, .post-dots button { transition: none; } }

/* ---------- The filters of the list of the works (piano 11, 2026-10-31): one glass button with the number of the
   choices on, its panel below with the groups Category, Years, Genre; the choices are checkboxes drawn as small pills
   (the box itself out of sight, never out of reach of the keyboard) ---------- */
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.filters { position: relative; }
.filters > summary { list-style: none; cursor: pointer; }
.filters > summary::-webkit-details-marker { display: none; }
.filters-button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; color: var(--pill-text); font-size: .9rem;
  background: var(--pill-bg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--pill-shadow); }
.filters-button::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--pill-border); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.filters-button > * { position: relative; }
.filters-button:hover, .filters[open] > .filters-button { background: linear-gradient(var(--pill-hover), var(--pill-hover)), var(--pill-bg); }
.filters > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.filters-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-works); color: #fff; font-size: .75rem; }
[data-theme="light"] .filters-count { color: #fff; }
.filters-count[hidden] { display: none; }
.filters-sheet { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(440px, calc(100vw - 32px)); max-height: min(70dvh, 560px); overflow-y: auto; padding: 14px; border-radius: 22px;
  background: var(--pill-bg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--pill-shadow); }
.filters-group { margin: 0 0 12px; padding: 0; border: 0; }
.filters-group legend { margin-bottom: 6px; padding: 0; color: var(--pill-muted); font-size: .8rem; }
.filters-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.filters-choice { position: relative; display: inline-flex; }
.filters-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.filters-choice span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--pill-field-line); border-radius: 999px; color: var(--pill-text); font-size: .88rem; }
.filters-choice:hover span { background: var(--pill-hover); }
.filters-choice input:checked + span { border-color: var(--c-works); box-shadow: inset 0 0 0 1px var(--c-works); background: color-mix(in srgb, var(--c-works) 18%, transparent); }
.filters-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.filters-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.filters-clear { color: var(--pill-text); text-decoration: underline; text-decoration-color: var(--c-works); text-underline-offset: 3px; }
.filters-show { min-height: 44px; padding: 0 18px; border: 2px solid var(--c-works); border-radius: 999px; background: none; color: var(--pill-text); font: inherit; cursor: pointer; }
.filters-show:hover { background: var(--pill-hover); }
.works-empty a { color: var(--text); text-decoration-color: var(--c-works); }
/* Phones: the panel in the page, under the button and as wide as the column (a floating panel went past the screen);
   the posters move down while it is open */
@media (max-width: 899px) {
  .filters[open] { flex-basis: 100%; }
  .filters-sheet { position: static; width: auto; max-height: none; margin-top: 10px; }
}
