.home-films-groups{display:grid;gap:clamp(18px,2.2vw,28px);min-width:0}
.home-films-group{min-width:0}
.home-films-group-title{
  display:flex;align-items:center;gap:10px;margin:0 0 12px;
  font-family:var(--head);font-size:15px;font-weight:800;line-height:1.4;color:#fff;
}
.home-films-group-title::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.16)}
.home-films-row{
  --film-gap:clamp(14px,1.6vw,22px);
  --film-w:min(200px,calc((100% - 2 * var(--film-gap)) / 3));
  display:flex;gap:var(--film-gap);margin:0;padding:4px 2px 6px;list-style:none;
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.25) transparent;justify-content:flex-start;
}

@media(max-width:820px){  .home-films-row{--film-w:clamp(150px,40vw,176px);margin-inline:-18px;padding-inline:18px;scroll-padding-inline:18px}
  .home-films-group-title{font-size:14px;margin-bottom:10px}}

/* Compact shelf: each film is a horizontal card (small portrait cover
   beside its title), three per row, so the two rows stay short. The
   html/body + .home-films-groups prefix outranks the live width sheet
   that stretches the portrait cards to fill the row. */
html body main.home-page>section.home-films .home-films-groups .home-films-row{--film-w:calc((100% - 2 * var(--film-gap)) / 3);padding:2px 2px 4px}
html body main.home-page>section.home-films .home-films-groups .home-films-row>li{flex:0 0 var(--film-w)}
html body main.home-page>section.home-films .home-films-groups .home-film{
  display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;align-items:center;
  height:100%;padding:10px;border-radius:18px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  transition:background .3s ease,border-color .3s ease;
}
html body main.home-page>section.home-films .home-films-groups .home-film-cover{border-radius:12px}
html body main.home-page>section.home-films .home-films-groups .home-film-play{width:34px;height:34px}
html body main.home-page>section.home-films .home-films-groups .home-film-play svg{width:15px;height:15px}
html body main.home-page>section.home-films .home-films-groups .home-film-time{bottom:6px;inset-inline-start:6px;padding:2px 6px;font-size:10px}
html body main.home-page>section.home-films .home-films-groups .home-film-meta{padding:0}
html body main.home-page>section.home-films .home-films-groups .home-film-meta strong{min-height:0;font-size:13.5px;line-height:1.65}
html body main.home-page>section.home-films .home-films-groups .home-film:hover,
html body main.home-page>section.home-films .home-films-groups .home-film:focus-visible{background:rgba(255,255,255,.09);border-color:var(--orange)}
html body main.home-page>section.home-films .home-films-groups .home-film:hover .home-film-cover,
html body main.home-page>section.home-films .home-films-groups .home-film:focus-visible .home-film-cover{transform:none;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
@media(max-width:820px){
  html body main.home-page>section.home-films .home-films-groups .home-films-row{--film-w:min(78vw,300px)}
  html body main.home-page>section.home-films .home-films-groups .home-film{grid-template-columns:76px minmax(0,1fr);gap:12px}
}
