/* ================================================================
   SO MUCH PIĘKNIE - lists and song page
   Kawałki catalog, Kulisy list, featured cards and the song release layout.
   Part of the theme loaded by sites/somuchpieknie/base_site.html in the
   order site.css, blocks.css, song.css, stories.css. Tokens are in site.css.
   ================================================================ */

/* ---------- 7. Catalog and stories lists ---------- */
.smp-featured { background: var(--night); }
.smp-featured__card {
  position: relative; display: grid; overflow: hidden; border-radius: 1.5rem; color: var(--snow);
  background: linear-gradient(135deg, var(--wine), var(--night-alt)); box-shadow: inset 0 0 0 1px rgba(245, 240, 234, .1);
}
.smp-featured__card--story { background: var(--night-alt); }
@media (min-width: 768px) {
  .smp-featured__card { grid-template-columns: 1fr 1fr; }
  .smp-featured__card--story { grid-template-columns: 7fr 5fr; }
}
.smp-featured__cover { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.smp-featured__card--story .smp-featured__cover { aspect-ratio: 16 / 9; }
.smp-featured__copy { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
@media (min-width: 768px) { .smp-featured__copy { padding: 3rem; } }
.smp-featured__copy .smp-h2 { margin-top: 1rem; }
.smp-featured__copy .smp-lead { color: var(--snow); max-width: none; }
.smp-featured__note { margin: 1rem 0 0; font-size: 1rem; font-weight: 600; }
.smp-featured__text { margin: 1rem 0 0; color: rgba(245, 240, 234, .8); }
.smp-featured__copy .smp-actions { margin-top: 2rem; }

.smp-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.smp-filter {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem; border: 1px solid rgba(245, 240, 234, .3);
  border-radius: 999px; background: transparent; color: var(--snow); font: 600 1.125rem/1 var(--sans); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.smp-filter:hover { border-color: var(--snow); }
.smp-filter[aria-current="true"], .smp-filter[aria-pressed="true"] { border-color: var(--snow); background: var(--snow); color: var(--night); }
.smp-count { margin: 1rem 0 0; font-size: 1rem; color: rgba(245, 240, 234, .8); }

/* A list that opens the page (Kawałki): a little more air under the header */
.smp-section--page-top { padding-top: 4rem; }
@media (min-width: 1024px) { .smp-section--page-top { padding-top: 5rem; } }
.smp-covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .smp-covers { column-gap: 2rem; } }
@media (min-width: 1024px) { .smp-covers { grid-template-columns: repeat(3, 1fr); } }
.smp-cover { position: relative; }
.smp-cover__image { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .4); }
/* Upcoming song: "Wkrótce" sits on the cover, so the text below lines up with the other cards */
.smp-cover__media { position: relative; }
.smp-cover__media + .smp-cover__title { margin-top: 1rem; }
.smp-cover__badge {
  position: absolute; top: .75rem; left: .75rem; margin: 0; padding: .375rem .75rem; border-radius: 999px;
  background: var(--lipstick); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(224, 18, 60, .45);
}
.smp-cover__link::after { content: ""; position: absolute; inset: 0; }
.smp-cover__link:hover { color: var(--pink); }
.smp-cover__meta { margin: .5rem 0 0; font-size: 1rem; color: rgba(245, 240, 234, .8); }
.smp-cover__placeholder {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 1rem; border-radius: 1rem; text-align: center;
  background: linear-gradient(135deg, var(--wine), var(--night-alt), var(--night)); box-shadow: inset 0 0 0 1px rgba(245, 240, 234, .1);
  font-family: var(--display); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking); color: rgba(245, 240, 234, .8);
}
@media (min-width: 640px) { .smp-cover__placeholder { font-size: 1.875rem; } }
.smp-empty { margin-top: 2rem; padding: 4rem 1.5rem; border: 2px dashed rgba(245, 240, 234, .2); border-radius: 1.5rem; text-align: center; }
.smp-empty p { max-width: 28rem; margin: 1rem auto 0; color: rgba(245, 240, 234, .8); }
.smp-empty__title { margin: 0; font-size: 1.875rem; }
.smp-empty .smp-btn { margin-top: 2rem; }
.smp-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 4rem; }
.smp-pager__page { min-width: 3rem; text-align: center; font-weight: 700; }

/* ---------- 8. Song page ---------- */
.smp-release { position: relative; isolation: isolate; overflow: hidden; background: var(--night); }
.smp-release__inner { padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .smp-release__inner { padding-top: 4rem; padding-bottom: 6rem; } }
.smp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: 1rem; color: rgba(245, 240, 234, .8); }
.smp-crumbs li[aria-current] { color: var(--snow); }
.smp-crumbs__link { display: flex; align-items: center; min-height: 3rem; text-decoration: underline; text-underline-offset: .25rem; }
.smp-crumbs__link:hover { color: var(--snow); }
/* Title block: label, title, lead and a quiet premiere date (deliberately low-key) */
.smp-release__head { margin-top: 1.5rem; }
.smp-release__title { margin: .5rem 0 0; font-size: 2.5rem; line-height: 1; }
@media (min-width: 640px) { .smp-release__title { font-size: 3rem; } }
@media (min-width: 1024px) { .smp-release__title { font-size: 3.25rem; } }
.smp-release__lead { margin: 1rem 0 0; max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: rgba(245, 240, 234, .9); }
.smp-release__date { margin: .5rem 0 0; font-size: .9375rem; color: rgba(245, 240, 234, .72); }

/* Cover and video side by side: columns 9 : 16 give a square cover and a 16:9 video the same height */
.smp-release__grid { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .smp-release__grid { grid-template-columns: 9fr 16fr; align-items: start; } }
.smp-release__cover { display: block; width: 100%; aspect-ratio: 1; height: auto; border-radius: 1rem; object-fit: cover; box-shadow: 0 25px 50px -12px #000; }
@media (max-width: 767.98px) { .smp-release__cover { max-width: 22rem; } }
.smp-release__video { scroll-margin-top: 8rem; }
.smp-release .smp-hero__glow { background: radial-gradient(circle, rgba(224, 18, 60, .3), transparent 65%); }

.smp-evening { background: var(--night-alt); color: var(--snow); }
.smp-evening__grid { display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .smp-evening__grid { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; } .smp-evening__col--full { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .smp-evening__grid { gap: 4rem; } }
.smp-richtext { margin-top: 1.5rem; }
.smp-richtext p { margin: 0 0 1rem; line-height: 1.75; }
.smp-richtext a { color: var(--pink); font-weight: 600; text-decoration: underline; text-underline-offset: .5rem; }
.smp-richtext ul { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(245, 240, 234, .2); }
.smp-richtext ul li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(245, 240, 234, .2); }
.smp-richtext ul li b, .smp-richtext ul li strong { font-weight: 600; }
.smp-richtext--facts p:last-child a { display: inline-flex; align-items: center; min-height: 3rem; margin-top: 1rem; }

@media (min-width: 768px) { .site-somuchpieknie .smp-featured__card--story .smp-featured__cover { aspect-ratio: auto; min-height: 100%; } }

/* "Premiera <date>" line on the song page header and the catalog's featured card */
.smp-premiere { margin: .75rem 0 0; font-size: 1.125rem; font-weight: 600; letter-spacing: .04em; color: rgba(245, 240, 234, .92); }
