/* Same editorial genre-carousel visual vocabulary as the homepage;
   scoped only to SEO format pages, leaving the homepage untouched. */
.format-genre-section{min-width:0}
.format-genre-section h2{font-weight:950!important;letter-spacing:-.055em!important;margin-bottom:30px!important}
.format-genres-carousel{position:relative;min-width:0;isolation:isolate;max-width:none;width:100%;margin-inline:0}
.format-genres-track{
  display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;min-width:0;
  scroll-behavior:smooth;scroll-snap-type:x mandatory;scroll-padding-inline:1px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:2px 1px 16px;
}
.format-genres-track::-webkit-scrollbar{display:none}
.format-genre{
  position:relative;display:block;flex:0 0 calc((100% - 56px)/4.55);
  min-width:0;aspect-ratio:0.74;overflow:hidden;border-radius:17px;
  scroll-snap-align:start;isolation:isolate;
  text-decoration:none!important;color:#fff!important;
  background:#211b24;
  box-shadow:0 11px 28px rgba(0,0,0,.13);
  transition:transform .18s,box-shadow .18s;
}
.format-genre:hover{transform:translateY(-3px);box-shadow:0 18px 30px rgba(0,0,0,.2)}
.format-genre img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.format-genre:hover img{transform:scale(1.035)}
.format-genre::after{
  content:"";position:absolute;inset:25% 0 0;pointer-events:none;z-index:1;
  background:linear-gradient(0deg,rgba(7,7,11,.86),rgba(7,7,11,.27) 55%,transparent);
}
.format-genre-title{
  position:absolute;left:17px;right:12px;bottom:54px;z-index:2;
  color:#fff;font:950 clamp(17px,1.85vw,27px)/1.02 Arial,Helvetica,sans-serif;
  letter-spacing:-.045em;text-transform:uppercase;text-shadow:0 2px 10px #0005;
  overflow-wrap:normal;word-break:normal;hyphens:none;text-wrap:wrap;
}
.format-genre-title::after{content:"";display:block;margin-top:12px;width:39px;height:4px;background:#f00036;transform:skewX(-25deg);border-radius:2px}
.format-genre-meta{
  position:absolute;left:17px;right:8px;bottom:22px;z-index:2;
  font:800 9px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.06em;
  text-transform:uppercase;color:rgba(255,255,255,.93);
}
.format-genre-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:46px;height:46px;padding:0;
  border-radius:50%;border:1px solid #dedce0;background:#fff;color:#28252b;
  box-shadow:0 6px 19px #0003;display:grid;place-items:center;cursor:pointer;
  transition:opacity .15s,background .15s;
}
.format-genre-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.format-genre-nav:hover{background:#f6f2f4}
.format-genre-nav[disabled]{opacity:.28;cursor:default;pointer-events:none}
.format-genre-prev{left:10px}
.format-genre-next{right:10px}
.format-genres-all-wrap{display:flex;justify-content:center;padding:14px 0 0}
.format-genres-all{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-bottom:2px solid #ed082c;
  border-radius:0;padding:9px 2px 7px;background:none;color:#202024;
  font:900 15px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.005em;text-decoration:none;cursor:pointer;
}
.format-genres-all:hover,.format-genres-all:focus-visible{color:#db062f}
.format-genres-all svg{width:15px;height:15px;display:block;flex:none;fill:none;stroke:#ed082c;stroke-width:2.5}
.format-genres-modal{
  box-sizing:border-box;width:min(1040px,calc(100vw - 24px));
  max-width:1040px;max-height:min(88dvh,940px);margin:auto;padding:24px;
  background:#faf9f6;color:#141414;border:0;border-radius:23px;
  box-shadow:0 28px 80px #0007;overflow:auto;overscroll-behavior:contain;
}
.format-genres-modal::backdrop{background:rgba(10,10,14,.78);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.format-genres-modal-head{
  position:sticky;top:-24px;z-index:5;display:flex;align-items:center;
  justify-content:space-between;gap:15px;padding:12px 0 18px;margin-bottom:10px;
  background:#faf9f6;border-bottom:1px solid #eae6e5;
}
.format-genres-modal-head h2{font:950 clamp(25px,4vw,43px)/1 Arial,Helvetica,sans-serif!important;letter-spacing:-.055em;margin:0!important}
.format-genres-close{flex:0 0 43px;width:43px;height:43px;border:1px solid #d8d4d4;border-radius:50%;background:#fff;color:#151515;font-size:27px;line-height:1;cursor:pointer}
.format-genres-modal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.format-genres-modal-grid .format-genre{width:100%;min-width:0;min-height:0;aspect-ratio:0.82;transform:none!important}
.format-genres-modal-grid .format-genre-title{font-size:clamp(14px,1.6vw,21px);bottom:48px}
.format-genres-modal-grid .format-genre-meta{font-size:8px;bottom:16px}
@media(max-width:950px){
 .format-genre{flex-basis:calc((100% - 28px)/3.15)}
 .format-genres-modal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 .format-genres-carousel{width:100%;max-width:none}
 .format-genre-section h2{font-size:clamp(31px,8vw,41px)!important;margin-bottom:20px!important}
 .format-genres-track{gap:15px;padding:5px 1px 15px;scroll-padding-inline:1px}
 .format-genres-track>.format-genre{flex:0 0 74%;margin-right:0;min-height:0;aspect-ratio:.70;border-radius:20px;border:0}
 .format-genre-title{font-size:clamp(23px,6vw,32px);left:19px;bottom:60px;right:20px}
 .format-genre-meta{font-size:10px;left:19px;bottom:23px}
 .format-genre-nav{width:38px;height:38px}
 .format-genre-prev{left:6px}.format-genre-next{right:6px}
 .format-genres-modal{padding:16px;width:calc(100vw - 16px);max-height:90dvh;border-radius:19px}
 .format-genres-modal-head{top:-16px}
 .format-genres-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .format-genres-modal-grid .format-genre{aspect-ratio:.73;border-radius:12px;min-height:0}
 .format-genres-modal-grid .format-genre-title{font-size:clamp(12px,3.2vw,17px);left:9px;right:8px;bottom:47px}
 .format-genres-modal-grid .format-genre-title::after{margin-top:7px;width:25px;height:3px}
 .format-genres-modal-grid .format-genre-meta{font-size:7px;left:9px;right:5px;bottom:18px}
}
@media(prefers-reduced-motion:reduce){.format-genres-track{scroll-behavior:auto}.format-genre{transition:none}.format-genre img{transition:none}}


/* Shared graphite-glass look of the site's interactive artist windows. */
.format-genres-modal{
  color-scheme:dark;
  color:#f7f6f8!important;
  background:linear-gradient(135deg,rgba(43,41,50,.97) 0%,rgba(19,18,26,.985) 62%,rgba(29,26,34,.97) 100%)!important;
  border:1px solid rgba(255,255,255,.19)!important;
  box-shadow:0 28px 85px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.08)!important;
  -webkit-backdrop-filter:blur(26px) saturate(110%);
  backdrop-filter:blur(26px) saturate(110%);
}
.format-genres-modal::backdrop{
  background:rgba(9,8,13,.77)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  backdrop-filter:blur(8px)!important;
}
.format-genres-modal-head{
  color:#fff!important;
  background:#1e1d24!important;
  background:linear-gradient(125deg,rgba(40,38,47,.99),rgba(24,23,30,.99))!important;
  border-bottom:1px solid rgba(255,255,255,.19)!important;
}
.format-genres-modal-head h2{color:#fff!important}
.format-genres-close{
  color:#fff!important;
  background:rgba(255,255,255,.085)!important;
  border-color:rgba(255,255,255,.28)!important;
}
.format-genres-close:hover{background:rgba(255,255,255,.19)!important}
.format-genres-modal-grid .format-genre{box-shadow:0 8px 24px #0006!important}
@media(prefers-reduced-transparency:reduce){
  .format-genres-modal{background:#1e1d25!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

/* Mobile only: match the compact right-aligned "ВСЕ ЖАНРЫ" link on the homepage. */
@media(max-width:650px){
 .format-genres-all-wrap{
   justify-content:flex-end;
   padding:24px 3px 28px;
 }
 .format-genres-all{
   border:0!important;border-bottom:0!important;
   padding:8px 0!important;
   gap:10px!important;
   background:transparent!important;
   color:#111114!important;
   font:900 13px/1.2 Arial,Helvetica,sans-serif!important;
   font-size:0!important;
   letter-spacing:.055em!important;
   text-transform:uppercase!important;
   box-shadow:none!important;
 }
 .format-genres-all::before{
   content:"ВСЕ ЖАНРЫ";
   font:900 13px/1.2 Arial,Helvetica,sans-serif;
   letter-spacing:.055em;
 }
 .format-genres-all svg{
   width:16px;height:16px;transform:rotate(90deg);
   stroke:#111114!important;stroke-width:2.4;
 }
 .format-genres-all:hover,.format-genres-all:focus-visible{color:#ed082c!important}
}

/* Homepage-style detached underline and up-right arrow for All Genres. */
.format-genres-all-wrap{padding-bottom:23px}
.format-genres-all{
  position:relative!important;
  border-bottom:0!important;
  padding:10px 2px 12px!important;
  gap:10px!important;
}
.format-genres-all::after{
  content:"";display:block;position:absolute;left:0;right:0;
  height:2px;bottom:0;background:#ed082c;
  transform:skewX(-12deg);
}
.format-genres-all svg{
  transform:rotate(-45deg)!important;
  stroke:#ed082c!important;
}
@media(max-width:650px){
  .format-genres-all-wrap{padding-bottom:26px}
  .format-genres-all{padding-bottom:12px!important}
  .format-genres-all svg{transform:rotate(-45deg)!important;stroke:#111114!important}
}
