/* ScoreLine: the staff lines over the play bar; the box's own width picks the lines (wide from 520 px, narrow below). */

.sline { container-type: inline-size; display: grid; gap: 14px; margin: 0; }
.sline-staves { display: grid; }
.sline-wide, .sline-narrow { display: grid; gap: 2px; }
.sline-narrow, .sline-widest { display: none; }
@container (max-width: 519px) { .sline-wide { display: none; } .sline-narrow { display: grid; } }
@container (min-width: 960px) { .sline.has-widest .sline-wide { display: none; } .sline.has-widest .sline-widest { display: grid; } }
.sline-staves svg { display: block; width: 100%; height: auto; overflow: visible; }
.sline-bar { display: flex; align-items: center; gap: 12px; }
.sline-t { display: grid; gap: 2px; min-width: 0; }
.sline-t b { font-size: var(--text-headline); line-height: var(--lh-headline); font-weight: 800; }
.sline-t small { color: var(--fg-muted); font-size: var(--text-footnote); line-height: var(--lh-footnote); }
/*
 * «آخر این سطح چی می‌زنی؟»: the level's last song on a card of its own (its tag and line at the head, the staff lines
 * under it), the other songs two side by side from 768 px. The staves sit on the surface, the card in the page's glass.
 */

.lsg { padding-block: 0 var(--section); }
.lsg-end { display: grid; gap: 20px; padding: clamp(18px, 2.6vw, 34px); border-radius: var(--radius-card); background: var(--glass-strong); border: 1px solid var(--edge); box-shadow: var(--shadow-tile); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.lsg-end { position: relative; }
.lsg-tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--reward-soft); color: var(--reward-ink); font-size: var(--text-label); line-height: var(--lh-label); font-weight: 800; }
.lsg-tag .i { width: 16px; height: 16px; }
.lsg-score .sline-staves { padding: clamp(10px, 1.6vw, 18px); border-radius: var(--radius-tile); background: var(--surface); border: 1px solid var(--line); }
.lsg-score .sline-t b { font-size: var(--text-title-2); line-height: var(--lh-title-2); }

.lsg-rest { display: grid; gap: 16px; }
@media (min-width: 768px) { .lsg-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lsg-song { padding: clamp(14px, 2vw, 22px); border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
/*
 * The level's courses: one column, two from 768 px, three from 1200; each card its picture (a dark layer at its foot,
 * its number large at the start, its icon at the end), then its words, its sessions as a timeline and its way in.
 * A card lifts on a real pointer and its picture leans in; one still being written is quieter, its picture grey.
 */

.lcs { padding-block: 0 var(--section); }
.lcs-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .lcs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lcs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lcs-grid > li { display: grid; }
.lcs-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--fg);
  transition: translate var(--d-default) var(--ease-out), box-shadow var(--d-enter) var(--ease-out); }
.lcs-card.link:active { scale: 0.99; }
.lcs-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: var(--night-card-bottom); }
.lcs-pic img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale var(--d-media) var(--ease-out); }
.lcs-pic::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, var(--night-shade-bottom) 100%); }
.lcs-no { position: absolute; inset-inline-start: 18px; inset-block-end: 12px; display: grid; color: var(--white); font-size: 52px; line-height: 0.9; font-weight: 800; }
.lcs-no small { font-size: var(--text-label); line-height: var(--lh-label); font-weight: 700; color: var(--white-70); }
.lcs-ico { position: absolute; inset-inline-end: 16px; inset-block-end: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--white); background: var(--white-12); border: 1px solid var(--white-18); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.lcs-ico .i { width: 22px; height: 22px; }
.lcs-soon { position: absolute; inset-inline-end: 14px; inset-block-start: 14px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--white-12); border: 1px solid var(--white-18); color: var(--white); font-size: var(--text-label); font-weight: 700; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

.lcs-body { display: grid; align-content: start; gap: 12px; padding: 20px 20px 22px; }
.lcs-title { font-size: var(--text-title-2); line-height: var(--lh-title-2); font-weight: 800; }
.lcs-sum { color: var(--fg-muted); font-size: var(--text-callout); line-height: var(--lh-callout); }
.lcs-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lcs-meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-muted); font-size: var(--text-label); line-height: var(--lh-label); font-weight: 700; }
.lcs-meta .i { width: 15px; height: 15px; color: var(--fg-muted); }
.lcs-chs { display: grid; gap: 0; margin-top: 2px; }
.lcs-chs li { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 5px; font-size: var(--text-footnote); line-height: var(--lh-footnote); font-weight: 600; }
.lcs-chs li span { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg-muted); font-size: var(--text-label); font-weight: 800; }
.lcs-chs li + li::before { content: ''; position: absolute; inset-inline-start: 11.5px; inset-block-start: -8px; height: 16px; border-inline-start: 1px solid var(--line-strong); }
.lcs-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--accent-ink); font-size: var(--text-headline); font-weight: 800; }
.lcs-go .i { width: 17px; height: 17px; transition: translate var(--d-default) var(--ease-out); }

.lcs-card.soon { background: color-mix(in srgb, var(--surface) 55%, transparent); border-style: dashed; box-shadow: none; }
.lcs-card.soon .lcs-pic img { filter: grayscale(1); opacity: 0.6; }

@media (hover: hover) and (pointer: fine) {
  .lcs-card.link:hover { translate: 0 -3px; box-shadow: var(--shadow-tile-hover); }
  .lcs-card.link:hover .lcs-pic img { scale: 1.05; }
  .lcs-card.link:hover .lcs-go .i { translate: -4px 0; }
}
