/* Genre Explorer: page-scoped presentation, with a complete no-JS index.
   Never modify global Cinema styles or the generic facet renderer. */
.FilmGenres-page {
    --ge-ink: #1e2130;
    --ge-muted: #606477;
    --ge-accent: #9a1848;
    --ge-line: #e9e3db;
    --ge-gold: #f7c983;
    box-sizing: border-box;
    min-width: 0;
}

.FilmGenres-page *, .FilmGenres-page *::before,
.FilmGenres-page *::after { box-sizing: border-box; }

.FilmGenres-page .GenreExplorer-hero {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: clamp(24px, 4vw, 47px);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 105% -10%, #89384a 0, transparent 46%),
        radial-gradient(ellipse at 85% 100%, #34334f 0, transparent 48%),
        linear-gradient(130deg, #171925 0%, #252131 66%, #3c2337 100%);
    color: var(--hr-on-inverse, #fff);
}

.FilmGenres-page .GenreExplorer-hero::before {
    position: absolute;
    content: "";
    pointer-events: none;
    z-index: -1;
    width: min(38%, 390px);
    aspect-ratio: 1;
    top: -80px;
    right: 0;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    box-shadow: 0 0 0 49px rgb(255 255 255 / 3%), 0 0 0 98px rgb(255 255 255 / 2%);
}

.FilmGenres-page .GenreExplorer-heroTop,
.FilmGenres-page .GenreExplorer-sectionHeader,
.FilmGenres-page .GenreExplorer-directoryHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.FilmGenres-page .GenreExplorer-heroTop {
    float: none !important;
    clear: both;
    width: 100%;
}
.FilmGenres-page .GenreExplorer-eyebrow,
.FilmGenres-page .GenreExplorer-overline {
    font: 800 11px/1.3 system-ui, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.FilmGenres-page .GenreExplorer-eyebrow { color: #f9d7bd; }
.FilmGenres-page .GenreExplorer-eyebrow span { opacity: .55; padding: 0 5px; }

.FilmGenres-page .GenreExplorer-heroCount {
    border: 1px solid rgb(255 255 255 / 27%);
    color: #e5dae0;
    padding: 7px 13px;
    border-radius: 999px;
    font: 600 12px/1.3 system-ui, sans-serif;
    white-space: nowrap;
}

.FilmGenres-page .GenreExplorer-hero h1 {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 27px 0 10px !important;
    border: 0 !important;
    background: none !important;
    color: var(--hr-on-inverse, #fff) !important;
    font: 850 clamp(34px, 4vw, 54px)/1.09 system-ui, sans-serif !important;
    letter-spacing: -.052em;
    text-transform: none !important;
}

.FilmGenres-page .GenreExplorer-hero h1 em {
    color: var(--ge-gold);
    font-style: normal;
}

.FilmGenres-page .GenreExplorer-hero > p {
    max-width: 610px;
    margin: 0 0 26px;
    color: #e1dbe1;
    font: 400 clamp(14px, 1.35vw, 17px)/1.65 system-ui, sans-serif;
}

.FilmGenres-page .GenreExplorer-search { display: none !important; position: relative; max-width: 710px; z-index: 5; }
html.GenreExplorerReady .FilmGenres-page .GenreExplorer-search { display: block !important; }
.FilmGenres-page .GenreExplorer-search label {
    display: block;
    margin-bottom: 9px;
    color: #f2d5d6;
    font: 700 12px/1 system-ui, sans-serif;
}
.FilmGenres-page .GenreExplorer-searchBox {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 55px;
    background: #fff;
    color: var(--ge-ink);
    border-radius: 13px;
    border: 2px solid transparent;
    box-shadow: 0 14px 36px rgb(0 0 0 / 15%);
}
.FilmGenres-page .GenreExplorer-searchBox:focus-within { border-color: var(--ge-gold); }
.FilmGenres-page .GenreExplorer-searchIcon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #848595;
    border-radius: 50%;
    margin-left: 21px;
    flex: 0 0 auto;
}
.FilmGenres-page .GenreExplorer-searchIcon::after {
    content: "";
    position: absolute;
    width: 9px;
    border-top: 2px solid #848595;
    transform: rotate(48deg);
    right: -7px;
    bottom: -4px;
}
.FilmGenres-page .GenreExplorer-searchBox input {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 13px;
    padding: 13px 12px 13px 20px;
    outline: none;
    box-shadow: none;
    font: 500 15px/1.3 system-ui, sans-serif;
    color: var(--ge-ink);
    background: #fff;
}
.FilmGenres-page .GenreExplorer-searchBox input::placeholder { color: #727481; }
.FilmGenres-page .GenreExplorer-searchShortcut {
    margin-right: 16px;
    padding: 4px 9px;
    border-radius: 6px;
    font: 700 13px/1.2 system-ui, sans-serif;
    background: #f0edf1;
    color: #62616c;
}
.FilmGenres-page .GenreExplorer-suggestions:not([hidden]) {
    display: grid;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(360px, 56vh);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--ge-line);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgb(10 12 22 / 25%);
    z-index: 20;
}
.FilmGenres-page .GenreExplorer-suggestions a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ge-ink);
    text-decoration: none;
    font: 650 14px/1.4 system-ui, sans-serif;
}
.FilmGenres-page .GenreExplorer-suggestions a:hover,
.FilmGenres-page .GenreExplorer-suggestions a:focus-visible {
    background: #f7eef1;
    color: var(--ge-accent);
}
.FilmGenres-page .GenreExplorer-suggestions a span,
.FilmGenres-page .GenreExplorer-noResults { color: var(--ge-muted); font-size: 12px; }
.FilmGenres-page .GenreExplorer-noResults { padding: 13px; }

.FilmGenres-page .GenreExplorer-featured { margin: 32px 0 29px; }
.FilmGenres-page .GenreExplorer-sectionHeader { margin-bottom: 17px; }
.FilmGenres-page .GenreExplorer-overline { color: var(--ge-accent); }
.FilmGenres-page .GenreExplorer-sectionHeader h2,
.FilmGenres-page .GenreExplorer-directoryHead h2 {
    margin: 5px 0 0;
    padding: 0;
    background: none;
    color: var(--ge-ink);
    font: 800 clamp(21px, 2vw, 27px)/1.2 system-ui, sans-serif;
    letter-spacing: -.035em;
}
.FilmGenres-page .GenreExplorer-swipeHint {
    display: none;
    color: var(--ge-muted);
    font: 500 12px/1.4 system-ui, sans-serif;
}
.FilmGenres-page .GenreExplorer-featuredGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.FilmGenres-page .GenreExplorer-genreTile {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    min-height: 143px;
    min-width: 0;
    padding: 17px;
    border-radius: var(--hr-radius-card, 14px);
    text-decoration: none;
    color: var(--ge-ink);
    background: linear-gradient(155deg, #fff 10%, #fbf6ef 100%);
    border: 1px solid #e9ded2;
    box-shadow: 0 5px 18px rgb(28 20 26 / 3%);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.FilmGenres-page .GenreExplorer-genreTile:hover,
.FilmGenres-page .GenreExplorer-genreTile:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ge-accent);
    box-shadow: 0 10px 28px rgb(98 27 49 / 13%);
}
.FilmGenres-page .GenreExplorer-genreTile[aria-current="true"] {
    background: #231f2b;
    border-color: #231f2b;
    color: var(--hr-on-inverse, #fff);
}
.FilmGenres-page .GenreExplorer-tileNumber {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 6px;
    font: 800 11px/1.2 system-ui, sans-serif;
    letter-spacing: .08em;
    color: var(--ge-accent);
    background: #f6e7e8;
}
.FilmGenres-page .GenreExplorer-genreTile strong {
    min-width: 0;
    font: 800 clamp(16px, 1.6vw, 19px)/1.2 system-ui, sans-serif;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.FilmGenres-page .GenreExplorer-tileFoot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 600 12px/1.2 system-ui, sans-serif;
    color: #6d6574;
}
.FilmGenres-page .GenreExplorer-tileFoot span { font-size: 18px; }
.FilmGenres-page .GenreExplorer-genreTile[aria-current="true"] .GenreExplorer-tileFoot {
    color: #f5c8d6;
}

.FilmGenres-page .GenreExplorer-directoryHead {
    margin: 0 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--ge-line);
}
.FilmGenres-page .GenreExplorer-directoryHead > p {
    color: var(--ge-muted);
    max-width: 280px;
    margin: 0;
    font: 500 12px/1.45 system-ui, sans-serif;
    text-align: right;
}

.FilmGenres-page .FacetIndexPanel {
    display: block;
    margin: 0 0 30px;
    border: 1px solid #dfd5d0;
    background: #fff;
    border-radius: 13px;
    overflow: hidden;
}
.FilmGenres-page .FacetIndexPanel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    padding: 14px 18px;
    list-style: none;
    color: #34303b;
    cursor: pointer;
    font: 750 14px/1.35 system-ui, sans-serif;
    background: #fcfaf7;
}
.FilmGenres-page .FacetIndexPanel-summary::-webkit-details-marker { display: none; }
.FilmGenres-page .FacetIndexPanel-summary::after {
    content: "+";
    font: 400 25px/1 system-ui, sans-serif;
    color: var(--ge-accent);
}
.FilmGenres-page .FacetIndexPanel[open] > .FacetIndexPanel-summary::after { content: "−"; }
.FilmGenres-page .FacetIndexPanel-summary:hover { background: #f8f0f0; }
.FilmGenres-page .FacetIndexPanel-hint {
    display: block;
    padding: 0 18px 10px;
    margin: 0;
    font: 500 12px/1.4 system-ui, sans-serif;
    color: var(--ge-muted);
}
.FilmGenres-page .FacetIndexPanel .FacetIndex {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
    padding: 8px 13px 16px;
    gap: 7px;
}
.FilmGenres-page .FacetIndexPanel .FacetIndex a {
    display: block;
    min-width: 0;
    padding: 9px 11px;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #f0e7e5;
    background: #fcf9f8;
    color: #48424b;
    font: 600 12px/1.4 system-ui, sans-serif;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.FilmGenres-page .FacetIndexPanel .FacetIndex a:hover,
.FilmGenres-page .FacetIndexPanel .FacetIndex a:focus-visible,
.FilmGenres-page .FacetIndexPanel .FacetIndex a[aria-current="true"] {
    border-color: #dcaabe;
    background: #faedf2;
    color: var(--ge-accent);
}
.FilmGenres-page .FacetIndexPanel .FacetIndex a span {
    white-space: nowrap;
    color: #83717a;
}
.FilmGenres-page .FacetIndexPanel .FacetIndex a[hidden] { display: none; }
.FilmGenres-page :is(a, summary, button, input):focus-visible {
    outline: 3px solid #b5526d;
    outline-offset: 3px;
}
.FilmGenres-page .GenreExplorer-activeStatus:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 13px;
    color: var(--ge-muted);
    font: 500 12px/1.4 system-ui, sans-serif;
}
.FilmGenres-page .GenreExplorer-activeStatus::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ge-accent);
}
html.GenreExplorerReady .FilmGenres-page > .genre-section:not(.is-active) { display: none !important; }
.FilmGenres-page > .genre-section:focus {
    outline: 2px solid #e0b7c5;
    outline-offset: 4px;
    border-radius: 8px;
}
.FilmGenres-page > .genre-section {
    padding: 0 0 25px;
    scroll-margin-top: 30px;
    min-width: 0;
}
.FilmGenres-page > .genre-section > h2 {
    padding: 0 0 13px;
    margin: 0 0 17px;
    border: 0;
    border-bottom: 1px solid var(--ge-line);
    background: none;
    color: var(--ge-ink);
    font: 800 clamp(24px, 2.4vw, 32px)/1.2 system-ui, sans-serif;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}
.FilmGenres-page > .genre-section > .Gener,
.hr-section-cinema .Cinm_bx.FilmGenres-page > .genre-section > .Gener {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 17px !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    align-items: stretch;
}
.FilmGenres-page > .genre-section > .Gener > .Cinema_glry {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 10px 14px !important;
    float: none !important;
    flex: none !important;
    border: 1px solid #e8dfd9;
    border-radius: var(--hr-radius-card, 14px);
    background: #fff;
    box-shadow: 0 3px 12px rgb(38 26 32 / 4%);
    transition: transform .18s ease, box-shadow .18s ease;
}
.FilmGenres-page > .genre-section > .Gener > .Cinema_glry:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgb(38 26 32 / 11%);
    border-color: #d8b8c4;
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx {
    display: flex;
    width: 100% !important;
    height: 212px !important;
    min-height: 0 !important;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 9px;
    background: #f0ece9;
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 auto;
}
/* The shared missing-poster asset is functional but visually dated.
   Give only that fallback a quiet, branded treatment without changing data. */
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx:has(img[src$="/no-image.jpg"]) {
    position: relative;
    background: linear-gradient(145deg, #282533, #4a3448);
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx:has(img[src$="/no-image.jpg"]) img {
    opacity: 0;
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx:has(img[src$="/no-image.jpg"])::after {
    content: "HR / CINEMA\A POSTER NON DISPONIBILE";
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    white-space: pre;
    pointer-events: none;
    color: #eee1e6;
    font: 700 8px/1.9 system-ui, sans-serif;
    letter-spacing: .06em;
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .Discrp {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 0;
    padding: 0 !important;
    text-align: center;
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .Discrp a.arial_small {
    display: block;
    height: auto;
    min-width: 0;
    color: #26212b;
    font: 750 13px/1.42 system-ui, sans-serif;
    text-decoration: none;
    overflow: visible;
    overflow-wrap: anywhere;
}
.FilmGenres-page > .genre-section > .Gener .Cinema_glry .Discrp a.arial_small:hover {
    color: var(--ge-accent);
    text-decoration: underline;
}
.GenreExplorer-layout .GenreExplorer-legacyNavigation > summary { display: none; }

@media (max-width: 800px) {
    .FilmGenres-page .GenreExplorer-swipeHint { display: inline; }
    .FilmGenres-page .GenreExplorer-featuredGrid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(155px, 38%);
        grid-template-columns: none;
        gap: 10px;
        padding: 2px 2px 11px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
    }
    .FilmGenres-page .GenreExplorer-genreTile { scroll-snap-align: start; min-height: 128px; }
    .FilmGenres-page .FacetIndexPanel .FacetIndex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .FilmGenres-page > .genre-section > .Gener { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 600px) {
    .FilmGenres-page .GenreExplorer-hero { border-radius: 16px; padding: 24px 19px; }
    .FilmGenres-page .GenreExplorer-hero::before { right: 0; top: -20px; width: 190px; }
    .FilmGenres-page .GenreExplorer-hero h1 { margin-top: 25px !important; font-size: 35px !important; }
    .FilmGenres-page .GenreExplorer-hero > p { margin-bottom: 21px; font-size: 14px; }
    .FilmGenres-page .GenreExplorer-heroCount { padding: 6px 8px; font-size: 10px; }
    .FilmGenres-page .GenreExplorer-eyebrow { font-size: 10px; }
    .FilmGenres-page .GenreExplorer-searchBox { min-height: 51px; }
    .FilmGenres-page .GenreExplorer-searchBox input { font-size: 13px; }
    .FilmGenres-page .GenreExplorer-searchShortcut { display: none; }
    .FilmGenres-page .GenreExplorer-featured { margin: 25px 0 22px; }
    .FilmGenres-page .GenreExplorer-featuredGrid { grid-auto-columns: minmax(155px, 64%); }
    .FilmGenres-page .GenreExplorer-sectionHeader { align-items: end; }
    .FilmGenres-page .GenreExplorer-sectionHeader h2,
    .FilmGenres-page .GenreExplorer-directoryHead h2 { font-size: 21px; }
    .FilmGenres-page .GenreExplorer-swipeHint { max-width: 100px; text-align: right; }
    .FilmGenres-page .GenreExplorer-directoryHead {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 20px;
    }
    .FilmGenres-page .GenreExplorer-directoryHead > p {
        display: block;
        max-width: none;
        text-align: left;
    }
    .FilmGenres-page .FacetIndexPanel .FacetIndex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .FilmGenres-page .FacetIndexPanel .FacetIndex a { min-width: 0; overflow-wrap: anywhere; }
    .FilmGenres-page .FacetIndexPanel .FacetIndex a span { white-space: nowrap; }
    .FilmGenres-page > .genre-section > .Gener { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
    .FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx { height: 185px !important; }
    .FilmGenres-page > .genre-section > .Gener .Cinema_glry .Discrp a.arial_small { overflow-wrap: anywhere; }
    .GenreExplorer-layout .GenreExplorer-legacyNavigation {
        margin: 0 0 12px;
        border-radius: 11px;
        border: 1px solid #e6d9d5;
        background: #fff;
    }
    .GenreExplorer-layout .GenreExplorer-legacyNavigation > summary {
        display: list-item;
        padding: 12px 14px;
        color: #3c2936;
        font: 700 13px/1.3 system-ui, sans-serif;
        cursor: pointer;
    }
    .GenreExplorer-layout .GenreExplorer-legacyNavigation .Row {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 8px 8px;
        margin: 0;
    }
}

@media (max-width: 359px) {
    .FilmGenres-page .GenreExplorer-hero h1 { font-size: 30px !important; }
    .FilmGenres-page .FacetIndexPanel .FacetIndex { grid-template-columns: minmax(0, 1fr); }
    .FilmGenres-page > .genre-section > .Gener .Cinema_glry .imgbx { height: 155px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .FilmGenres-page .GenreExplorer-genreTile,
    .FilmGenres-page > .genre-section > .Gener > .Cinema_glry { transition: none; }
}

/* Defer offscreen card rendering without removing any editorial links from the DOM.
   No change to the Legacy presentation or to no-JS navigation. */
@supports (content-visibility: auto) {
  .hr-modern-body .FilmGenres-page > .genre-section > .Gener > .Cinema_glry {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 280px;
  }
}
