#creation-library,
  #creation-library * {
    box-sizing: border-box;
  }

  #creation-library {
    --nh-bg: #020510;
    --nh-text: #f7f7fc;
    --nh-muted: rgba(229, 231, 243, 0.68);
    --nh-purple: #bd30ff;
    --nh-violet: #7959ff;
    --nh-blue: #1499ff;
    --nh-cyan: #00d4df;

    position: relative;
    overflow-x: clip;
    overflow-y: hidden;
    isolation: isolate;

    padding: 92px 0 76px;

    color: var(--nh-text);
    background:
      radial-gradient(circle at 18% 30%, rgba(136, 42, 255, 0.08), transparent 35%),
      radial-gradient(circle at 84% 44%, rgba(18, 136, 255, 0.08), transparent 36%),
      linear-gradient(180deg, #020510 0%, #030612 100%);

    font-family:
      Inter,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Arial,
      sans-serif;
  }

  .nh-library__glow {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    opacity: 0.11;
    filter: blur(125px);
    pointer-events: none;
  }

  .nh-library__glow--left {
    top: 160px;
    left: -310px;
    background: #a12cff;
  }

  .nh-library__glow--right {
    right: -320px;
    bottom: 40px;
    background: #087aff;
  }

  .nh-library__container {
    width: min(1450px, calc(100% - 56px));
    margin: 0 auto;
  }

  .nh-library__header {
    max-width: 880px;
    margin: 0 auto 30px;
    text-align: center;
  }

  .nh-library__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(164, 69, 255, 0.4);
    border-radius: 999px;
    color: rgba(232, 204, 255, 0.92);
    background: rgba(96, 40, 170, 0.12);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .nh-library__title {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 790;
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .nh-library__title span {
    background: linear-gradient(90deg, #ce32ff, #7457ff 52%, #1199ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .nh-library__subtitle {
    max-width: 780px;
    margin: 17px auto 0;
    color: var(--nh-muted);
    font-size: 18px;
    line-height: 1.55;
  }

  .nh-library__tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 24px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
  }

  .nh-library__tabs::-webkit-scrollbar {
    display: none;
  }

  .nh-library__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid rgba(124, 88, 200, 0.25);
    border-radius: 999px;
    color: rgba(235, 236, 245, 0.65);
    background: rgba(12, 13, 35, 0.55);
    font: inherit;
    font-size: 11px;
    font-weight: 620;
    cursor: pointer;
    white-space: nowrap;
    transition:
      border-color 0.2s ease,
      color 0.2s ease,
      background 0.2s ease;
  }

  .nh-library__tab svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nh-library__tab.is-active {
    color: #fff;
    border-color: rgba(177, 72, 255, 0.68);
    background: rgba(121, 59, 219, 0.18);
  }

  .nh-library__stage {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 16px;
  }

  .nh-library__feature {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
    overflow: hidden;
    min-height: 510px;
    border: 1px solid rgba(117, 78, 200, 0.4);
    border-radius: 22px;
    background:
      linear-gradient(
        145deg,
        rgba(13, 14, 39, 0.98),
        rgba(5, 8, 23, 0.98)
      );
    box-shadow:
      0 32px 90px rgba(0, 0, 0, 0.28),
      inset 0 1px rgba(255, 255, 255, 0.025);
  }

  .nh-library__media {
    position: relative;
    min-width: 0;
    min-height: 510px;
    overflow: hidden;
    background: #06091a;
  }

.nh-library__media-inner{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.nh-library__media-inner img,
.nh-library__media-inner iframe,
.nh-library__media-inner video{
    width:100%;
    height:100%;
}

.nh-library__media-inner img{
    object-fit:cover;
    object-position:center center;
}

.nh-library__media-inner iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

.is-interface img{
    object-fit:contain;
}

.nh-library__media-inner.is-interface img{
    object-fit:contain;
    object-position:center;
    padding:22px;
    background:#050816;
}

  .nh-library__media-inner > img,
  .nh-library__media-inner > video {
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .nh-library__media-inner > iframe {
    display: block;
    border: 0;
  }

  .nh-library__media-inner.is-interface > img {
    object-fit: contain;
    padding: 26px;
    background:
      radial-gradient(circle at 50% 45%, rgba(104, 42, 200, 0.12), transparent 48%),
      #050816;
  }

  .nh-library__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(3, 5, 16, 0.74));
    pointer-events: none;
  }

  .nh-library__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, rgba(182, 46, 255, 0.9), rgba(72, 90, 255, 0.92));
    box-shadow:
      0 0 30px rgba(145, 55, 255, 0.4),
      0 12px 32px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    cursor: pointer;
  }

  .nh-library__play svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: none;
  }

  .nh-library__play.is-hidden {
    display: none;
  }

  .nh-library__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 7, 20, 0.64);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 660;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nh-library__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 32px 30px;
  }

  .nh-library__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(225, 226, 238, 0.5);
    font-size: 10px;
    font-weight: 620;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nh-library__kind {
    color: #c55dff;
  }

  .nh-library__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 24px;
    margin: -4px 0 13px;
  }

  .nh-library__tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(156, 83, 237, 0.28);
    border-radius: 999px;
    color: rgba(240, 225, 255, 0.82);
    background: rgba(104, 45, 173, 0.12);
    font-size: 9px;
    font-weight: 680;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
  }

  .nh-library__project-title {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 2.5vw, 43px);
    font-weight: 740;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .nh-library__description {
    margin: 16px 0 0;
    color: rgba(229, 231, 243, 0.65);
    font-size: 14px;
    line-height: 1.62;
  }

  .nh-library__flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
  }

  .nh-library__flow-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(123, 89, 193, 0.22);
    border-radius: 999px;
    color: rgba(244, 244, 249, 0.8);
    background: rgba(14, 15, 39, 0.72);
    font-size: 10px;
    font-weight: 600;
  }

  .nh-library__flow-step::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cd3cff, #1b9eff);
    box-shadow: 0 0 8px rgba(165, 71, 255, 0.55);
  }


  .nh-library__models {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(120, 86, 190, 0.16);
  }

  .nh-library__models[hidden] {
    display: none !important;
  }

  .nh-library__models-title {
    margin-bottom: 10px;
    color: rgba(229, 231, 243, 0.48);
    font-size: 9px;
    font-weight: 680;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nh-library__models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nh-library__model {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(123, 89, 193, 0.22);
    border-radius: 9px;
    color: rgba(246, 246, 251, 0.86);
    background: rgba(13, 14, 37, 0.72);
    font-size: 9.5px;
    font-weight: 610;
    text-decoration: none;
  }

  a.nh-library__model {
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }

  a.nh-library__model:hover {
    border-color: rgba(183, 86, 255, 0.56);
    color: #fff;
    background: rgba(83, 40, 145, 0.22);
  }

  a.nh-library__model:focus-visible {
    outline: 2px solid #6bb7ff;
    outline-offset: 3px;
  }

  .nh-library__model-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: #b95cff;
  }

  .nh-library__model-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nh-library__model--image .nh-library__model-icon { color: #ff55b8; }
  .nh-library__model--video .nh-library__model-icon { color: #219cff; }
  .nh-library__model--audio .nh-library__model-icon,
  .nh-library__model--dubbing .nh-library__model-icon { color: #00ced9; }
  .nh-library__model--assistant .nh-library__model-icon,
  .nh-library__model--presenter .nh-library__model-icon { color: #8d75ff; }

  .nh-library__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
  }

  .nh-library__primary,
  .nh-library__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 19px;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
  }

  .nh-library__primary {
    border: 1px solid rgba(184, 75, 255, 0.75);
    color: #fff;
    background: linear-gradient(90deg, #7626ea, #a52ce4 58%, #5b67ff);
    box-shadow: 0 10px 28px rgba(109, 46, 230, 0.24);
  }

  .nh-library__primary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nh-library__secondary {
    border: 1px solid rgba(126, 91, 199, 0.3);
    color: rgba(244, 244, 249, 0.82);
    background: rgba(13, 14, 37, 0.72);
  }

  .nh-library__arrow {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(138, 85, 222, 0.38);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(10, 12, 31, 0.66);
    cursor: pointer;
  }

  .nh-library__arrow svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nh-library__rail-wrap {
    margin-top: 18px;
    overflow: hidden;
  }

  /* Fixed rail: no auto-grid, no width jump, no left drift */
  .nh-library__rail {
    display: flex;
    gap: 11px;
    width: 100%;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(153, 82, 255, 0.45) transparent;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .nh-library__thumb {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    flex: 0 0 270px;
    min-width: 0;
    min-height: 78px;
    padding: 8px;
    border: 1px solid rgba(116, 82, 186, 0.2);
    border-radius: 12px;
    color: rgba(245, 245, 250, 0.82);
    background: rgba(10, 12, 31, 0.66);
    text-align: left;
    font: inherit;
    cursor: pointer;
    scroll-snap-align: start;
  }

  .nh-library__thumb.is-active {
    border-color: rgba(177, 74, 255, 0.72);
    background: rgba(89, 41, 154, 0.18);
  }

  .nh-library__thumb-image {
    width: 74px;
    height: 58px;
    overflow: hidden;
    border-radius: 8px;
    background: #0a0d20;
  }

  .nh-library__thumb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .nh-library__thumb-audio {
    position: relative;
    display: grid;
    place-items: center;
    width: 74px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(145, 80, 232, 0.24);
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 45%, rgba(178, 54, 255, 0.34), transparent 44%),
      linear-gradient(145deg, #160d33, #061328);
  }

  .nh-library__thumb-audio::before {
    content: "";
    width: 47px;
    height: 22px;
    background: repeating-linear-gradient(90deg, #bd42ff 0 2px, transparent 2px 5px);
    clip-path: polygon(0 44%, 7% 44%, 7% 25%, 14% 25%, 14% 66%, 21% 66%, 21% 8%, 28% 8%, 28% 82%, 35% 82%, 35% 31%, 42% 31%, 42% 60%, 49% 60%, 49% 18%, 56% 18%, 56% 88%, 63% 88%, 63% 39%, 70% 39%, 70% 68%, 77% 68%, 77% 23%, 84% 23%, 84% 53%, 91% 53%, 91% 42%, 100% 42%, 100% 58%, 0 58%);
    filter: drop-shadow(0 0 7px rgba(184, 59, 255, 0.65));
  }

  .nh-library__audio-visual,
  .nh-library__audio-player-stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 42px;
    text-align: center;
    background:
      radial-gradient(circle at 50% 44%, rgba(157, 48, 255, 0.22), transparent 34%),
      radial-gradient(circle at 32% 70%, rgba(12, 151, 255, 0.14), transparent 32%),
      linear-gradient(145deg, #09071d, #04091a 72%);
  }

  .nh-library__audio-visual::before,
  .nh-library__audio-player-stage::before {
    content: "";
    width: min(82%, 600px);
    height: 150px;
    background: repeating-linear-gradient(90deg, rgba(185, 58, 255, 0.95) 0 4px, transparent 4px 12px);
    clip-path: polygon(0 48%, 3% 48%, 3% 38%, 6% 38%, 6% 62%, 9% 62%, 9% 24%, 12% 24%, 12% 76%, 15% 76%, 15% 42%, 18% 42%, 18% 57%, 21% 57%, 21% 16%, 24% 16%, 24% 84%, 27% 84%, 27% 34%, 30% 34%, 30% 68%, 33% 68%, 33% 9%, 36% 9%, 36% 91%, 39% 91%, 39% 29%, 42% 29%, 42% 72%, 45% 72%, 45% 20%, 48% 20%, 48% 80%, 51% 80%, 51% 13%, 54% 13%, 54% 87%, 57% 87%, 57% 36%, 60% 36%, 60% 65%, 63% 65%, 63% 18%, 66% 18%, 66% 82%, 69% 82%, 69% 30%, 72% 30%, 72% 71%, 75% 71%, 75% 25%, 78% 25%, 78% 77%, 81% 77%, 81% 39%, 84% 39%, 84% 61%, 87% 61%, 87% 33%, 90% 33%, 90% 69%, 93% 69%, 93% 43%, 96% 43%, 96% 56%, 100% 56%, 100% 60%, 0 60%);
    opacity: 0.82;
    filter: drop-shadow(0 0 16px rgba(165, 49, 255, 0.48));
  }

  .nh-library__audio-label {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    z-index: 1;
    color: rgba(235, 237, 248, 0.68);
    font-size: 12px;
    font-weight: 620;
    letter-spacing: 0.04em;
  }

  .nh-library__audio-player-stage {
    align-content: center;
    gap: 14px;
  }

  .nh-library__audio-player-stage::before {
    position: absolute;
    top: 76px;
    height: 100px;
    opacity: 0.35;
  }

  .nh-library__audio-player {
    position: relative;
    z-index: 2;
    width: min(580px, 88%);
    padding: 14px 16px;
    border: 1px solid rgba(143, 83, 223, 0.32);
    border-radius: 14px;
    color: #fff;
    background: rgba(7, 9, 26, 0.82);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    text-align: left;
  }

  .nh-library__audio-player span {
    display: block;
    margin-bottom: 8px;
    color: rgba(235, 236, 246, 0.62);
    font-size: 10px;
    font-weight: 680;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nh-library__audio-player audio {
    display: block;
    width: 100%;
    height: 38px;
  }

  .nh-library__thumb strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nh-library__thumb span {
    display: block;
    margin-top: 5px;
    color: rgba(225, 226, 238, 0.48);
    font-size: 9px;
  }

.nh-library__media{
    position:relative;
    height:510px;
    min-height:510px;
    max-height:510px;
    overflow:hidden;
    background:#06091a;
}

  @media (max-width: 1100px) {
    .nh-library__container {
      width: min(1040px, calc(100% - 36px));
    }

    .nh-library__feature {
      grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    }

    .nh-library__content {
      padding: 28px 24px 26px;
    }
  }

  @media (max-width: 900px) {
    #creation-library {
      padding-top: 72px;
    }

    .nh-library__stage {
      grid-template-columns: 1fr;
    }

    .nh-library__arrow {
      position: absolute;
      top: 250px;
      z-index: 5;
      width: 46px;
      height: 46px;
    }

    .nh-library__arrow--prev {
      left: 12px;
    }

    .nh-library__arrow--next {
      right: 12px;
    }

    .nh-library__feature {
      grid-template-columns: 1fr;
    }

    .nh-library__media {
      min-height: 450px;
    }

    .nh-library__content {
      min-height: 360px;
    }
  }

  @media (max-width: 767px) {
    #creation-library {
      padding: 58px 0 48px;
    }

    .nh-library__container {
      width: calc(100% - 24px);
    }

    .nh-library__header {
      margin-bottom: 24px;
    }

    .nh-library__eyebrow {
      font-size: 10px;
    }

    .nh-library__title {
      font-size: clamp(35px, 10vw, 48px);
    }

    .nh-library__title span {
      display: block;
    }

    .nh-library__subtitle {
      font-size: 15px;
    }

    .nh-library__tabs {
      justify-content: flex-start;
      width: 100%;
      margin-bottom: 18px;
    }

    .nh-library__tab {
      min-height: 36px;
      padding: 0 13px;
      font-size: 10px;
    }

    .nh-library__feature {
      min-height: 0;
      border-radius: 17px;
    }

    .nh-library__media {
      min-height: 290px;
    }

    .nh-library__media-inner.is-interface > img {
      padding: 12px;
    }

    .nh-library__content {
      min-height: 0;
      padding: 24px 20px 22px;
    }

    .nh-library__project-title {
      font-size: 30px;
    }

    .nh-library__arrow {
      top: 145px;
      width: 42px;
      height: 42px;
    }

    .nh-library__play {
      width: 62px;
      height: 62px;
    }

    .nh-library__models {
      margin-top: 18px;
      padding-top: 16px;
    }

    .nh-library__model {
      min-height: 31px;
      padding: 0 9px;
      font-size: 9px;
    }

    .nh-library__actions {
      margin-top: 24px;
      padding-top: 0;
    }

    .nh-library__primary,
    .nh-library__secondary {
      flex: 1 1 170px;
    }

    .nh-library__thumb {
      flex-basis: min(270px, 78vw);
    }
  }

  @media (max-width: 420px) {
    .nh-library__media {
      min-height: 235px;
    }

    .nh-library__arrow {
      top: 116px;
    }

    .nh-library__content {
      padding-right: 16px;
      padding-left: 16px;
    }

    .nh-library__project-title {
      font-size: 26px;
    }

    .nh-library__description {
      font-size: 13px;
    }

    .nh-library__actions {
      flex-direction: column;
      flex-wrap: nowrap;
    }

    .nh-library__primary,
    .nh-library__secondary {
      width: 100%;
      flex-basis: auto;
    }
  }

  @media (hover: none) and (pointer: coarse) {
    .nh-library__rail,
    .nh-library__tabs {
      touch-action: pan-x;
    }

    .nh-library__media img {
      -webkit-user-drag: none;
      user-select: none;
    }
  }


  /* =========================================================
     MOBILE HORIZONTAL SWIPE
     Vertical page scrolling remains native until a clear
     horizontal gesture is detected.
  ========================================================= */

  @media (hover: none) and (pointer: coarse) {
    #creation-library .nh-library__feature {
      touch-action: pan-y;
      overscroll-behavior-x: contain;
    }

    #creation-library .nh-library__feature.is-horizontal-swiping {
      cursor: grabbing;
    }

    #creation-library .nh-library__content,
    #creation-library .nh-library__media {
      -webkit-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
    }

    #creation-library .nh-library__compare,
    #creation-library .nh-library__tabs,
    #creation-library .nh-library__rail {
      overscroll-behavior-x: contain;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #creation-library *,
    #creation-library *::before,
    #creation-library *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }

  /* FINAL RESPONSIVE MEDIA AND COMPACT TITLES */

  #creation-library .nh-library__project-title {
    font-size: clamp(25px, 2vw, 37px);
    line-height: 1.06;
  }

  #creation-library .nh-library__media-inner > img,
  #creation-library .nh-library__media-inner > video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }

  #creation-library .nh-library__media-inner.is-interface > img {
    object-fit: contain;
    object-position: center;
    padding: 20px;
  }

  @media (min-width: 901px) {
    #creation-library .nh-library__feature {
      height: 510px;
      min-height: 510px;
      max-height: 510px;
      align-items: stretch;
    }

    #creation-library .nh-library__media {
      height: 100%;
      min-height: 0;
      max-height: none;
    }

    #creation-library .nh-library__content {
      height: 100%;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 27px 28px 24px;
    }

    #creation-library .nh-library__meta {
      margin-bottom: 11px;
    }

    #creation-library .nh-library__description {
      margin-top: 11px;
      line-height: 1.48;
    }

    #creation-library .nh-library__flow {
      margin-top: 15px;
    }

    #creation-library .nh-library__models {
      margin-top: 14px;
      padding-top: 12px;
    }

    #creation-library .nh-library__actions {
      padding-top: 15px;
    }
  }

  @media (max-width: 900px) {
    #creation-library .nh-library__feature {
      height: auto;
      min-height: 0;
      max-height: none;
    }

    #creation-library .nh-library__media {
      height: 380px;
      min-height: 380px;
      max-height: 380px;
    }

    #creation-library .nh-library__content {
      min-height: 0;
      overflow: visible;
    }
  }

  @media (max-width: 767px) {
    #creation-library .nh-library__media {
      height: 290px;
      min-height: 290px;
      max-height: 290px;
    }

    #creation-library .nh-library__media-inner.is-interface > img {
      padding: 10px;
    }

    #creation-library .nh-library__project-title {
      font-size: clamp(25px, 7.4vw, 31px);
      line-height: 1.08;
    }

    #creation-library .nh-library__arrow {
      top: 145px;
    }
  }

  @media (max-width: 420px) {
    #creation-library .nh-library__media {
      height: 235px;
      min-height: 235px;
      max-height: 235px;
    }

    #creation-library .nh-library__arrow {
      top: 117px;
    }

    #creation-library .nh-library__project-title {
      font-size: 25px;
    }
  }



  /* =========================================================
     IMAGE BEFORE / AFTER COMPARISON
     Enabled only for image projects with secondImage.
  ========================================================= */

  #creation-library .nh-library__media-inner.is-comparison {
    touch-action: pan-y;
    cursor: ew-resize;
  }

  #creation-library .nh-library__compare {
    --compare-position: 50%;

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    background: #06091a;

    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  #creation-library .nh-library__compare-base,
  #creation-library .nh-library__compare-after-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;

    object-fit: cover;

    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
  }

  /*
    The AFTER layer is clipped by width.
    Its image remains full media-container width, so it does not stretch.
  */
  #creation-library .nh-library__compare-after {
    position: absolute;
    inset: 0;

    width: var(--compare-position);
    max-width: 100%;

    overflow: hidden;
    pointer-events: none;
  }

  #creation-library .nh-library__compare-after-image {
    top: 0;
    left: 0;

    width: var(--nh-compare-width, 100%) !important;
    max-width: none !important;
  }

  #creation-library .nh-library__compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position);
    z-index: 8;

    display: block;

    width: 56px;
    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    color: #ffffff;
    background: transparent;

    transform: translateX(-50%);
    cursor: ew-resize;
    touch-action: none;
  }

  #creation-library .nh-library__compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 2px;

    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.65),
        #c54bff 34%,
        #5d7dff 68%,
        rgba(255, 255, 255, 0.65)
      );

    box-shadow:
      0 0 12px rgba(154, 69, 255, 0.68),
      0 0 28px rgba(56, 137, 255, 0.26);

    transform: translateX(-50%);
    pointer-events: none;
  }

  #creation-library .nh-library__compare-knob {
    position: absolute;
    top: 50%;
    left: 50%;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;

    background:
      linear-gradient(
        135deg,
        rgba(177, 48, 255, 0.98),
        rgba(83, 99, 255, 0.98)
      );

    box-shadow:
      0 0 24px rgba(148, 57, 255, 0.5),
      0 10px 28px rgba(0, 0, 0, 0.32);

    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  #creation-library .nh-library__compare-knob svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #creation-library .nh-library__compare-label {
    position: absolute;
    top: 18px;
    z-index: 7;

    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 0 10px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.92);
    background: rgba(5, 7, 20, 0.62);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    font-size: 9px;
    font-weight: 680;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    pointer-events: none;
  }

  #creation-library .nh-library__compare-label--before {
    left: 18px;
  }

  #creation-library .nh-library__compare-label--after {
    right: 18px;
  }

  #creation-library .nh-library__compare.is-dragging,
  #creation-library .nh-library__compare.is-dragging * {
    cursor: ew-resize !important;
  }

  /* Do not darken the bottom of comparison images. */
  #creation-library .nh-library__media:has(.nh-library__media-inner.is-comparison)::after {
    display: none;
  }

  @media (max-width: 767px) {
    #creation-library .nh-library__compare-handle {
      width: 52px;
    }

    #creation-library .nh-library__compare-knob {
      width: 42px;
      height: 42px;
    }

    #creation-library .nh-library__compare-label {
      top: 12px;

      min-height: 25px;
      padding: 0 8px;

      font-size: 8px;
    }

    #creation-library .nh-library__compare-label--before {
      left: 12px;
    }

    #creation-library .nh-library__compare-label--after {
      right: 12px;
    }
  }

  /* =========================================================
     FINAL WIDTH-DRIFT FIX
     Keeps the page fixed when entering Images/comparison slides.
  ========================================================= */

  html,
  body {
    overflow-x: clip;
  }

  #creation-library,
  #creation-library .nh-library__container,
  #creation-library .nh-library__stage,
  #creation-library .nh-library__feature,
  #creation-library .nh-library__media,
  #creation-library .nh-library__media-inner,
  #creation-library .nh-library__content,
  #creation-library .nh-library__rail-wrap,
  #creation-library .nh-library__rail,
  #creation-library .nh-library__tabs {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #creation-library .nh-library__container {
    overflow: hidden;
  }

  #creation-library .nh-library__stage {
    overflow: visible;
  }

  #creation-library .nh-library__feature {
    width: 100%;
  }

  #creation-library .nh-library__media,
  #creation-library .nh-library__media-inner,
  #creation-library .nh-library__compare {
    width: 100%;
    max-width: 100%;
    contain: layout paint;
  }

  #creation-library .nh-library__compare-after {
    max-width: 100%;
  }

  #creation-library .nh-library__compare-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--nh-compare-width, 100%) !important;
    max-width: none !important;
  }

  #creation-library .nh-library__rail-wrap {
    overflow-x: hidden !important;
  }

  #creation-library .nh-library__rail {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
  }

  #creation-library .nh-library__tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
  }

  @supports not (overflow: clip) {
    html,
    body {
      overflow-x: hidden;
    }
  }



  /* =========================================================
     FINAL MOBILE CATEGORY + PREVIEW SCROLL
  ========================================================= */

  #creation-library .nh-library__tabs,
  #creation-library .nh-library__rail {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-behavior: auto;
  }

  #creation-library .nh-library__tabs::-webkit-scrollbar,
  #creation-library .nh-library__rail::-webkit-scrollbar {
    display: none;
  }

  #creation-library .nh-library__tabs {
    justify-content: flex-start !important;
  }

  #creation-library .nh-library__rail-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
  }

  @media (hover: none) and (pointer: coarse) {
    #allrecords #creation-library .nh-library__tabs,
    #allrecords #creation-library .nh-library__rail,
    #creation-library .nh-library__tabs,
    #creation-library .nh-library__rail {
      touch-action: pan-y !important;
      cursor: grab;
    }

    #allrecords #creation-library .nh-library__tab,
    #allrecords #creation-library .nh-library__thumb,
    #creation-library .nh-library__tab,
    #creation-library .nh-library__thumb {
      touch-action: pan-y !important;
      -webkit-user-select: none !important;
      user-select: none !important;
      -webkit-touch-callout: none !important;
      -webkit-user-drag: none !important;
    }

    #creation-library .nh-library__tabs.is-dragging,
    #creation-library .nh-library__rail.is-dragging {
      cursor: grabbing;
      scroll-snap-type: none !important;
    }
  }



  /* =========================================================
     FINAL CATEGORY ALIGNMENT
     Desktop: centered compact row.
     Mobile: full-width horizontally draggable row.
  ========================================================= */

  @media (min-width: 768px) {
    #creation-library .nh-library__tabs {
      display: flex !important;
      width: fit-content !important;
      max-width: calc(100% - 24px) !important;

      margin: 0 auto 24px !important;
      padding: 2px 2px 6px !important;

      justify-content: center !important;

      overflow-x: auto !important;
      overflow-y: hidden !important;

      scrollbar-width: none;
    }
  }

  @media (max-width: 767px) {
    #creation-library .nh-library__tabs {
      display: flex !important;
      width: 100% !important;
      max-width: 100% !important;

      margin: 0 0 18px !important;
      padding: 2px 2px 6px !important;

      justify-content: flex-start !important;

      overflow-x: auto !important;
      overflow-y: hidden !important;
    }
  }


  /* =========================================================
     2026-11-22 additions: vertical Shorts, custom audio,
     See how, CJK titles. Shared file for all 12 locales.
     ========================================================= */

  .nh-library__media-inner.is-vertical {
    background: #06091a;
  }

  .nh-library__vertical {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .nh-library__vertical-bg {
    position: absolute;
    inset: -28px;
    background-color: #06091a;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.15);
    transform: scale(1.14);
    opacity: 0.58;
    pointer-events: none;
  }

  .nh-library__vertical-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 16, 0.32);
  }

  .nh-library__vertical-frame {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 50%;
    height: 100%;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    overflow: hidden;
    background: #06091a;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 18px 40px rgba(0, 0, 0, 0.38);
    transform: translateX(-50%);
  }

  .nh-library__vertical-frame > img,
  .nh-library__vertical-frame > iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
  }

  .nh-library__thumb.is-vertical .nh-library__thumb-media,
  .nh-library__thumb.is-vertical img {
    object-fit: cover;
    object-position: center;
  }

  /* Custom audio player — no native controls */
  .nh-library__audio-player audio {
    display: none;
    width: 0;
    height: 0;
    pointer-events: none;
  }

  .nh-library__audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .nh-library__audio-toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(177, 72, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(121, 59, 219, 0.35);
    cursor: pointer;
  }

  .nh-library__audio-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
  }

  .nh-library__audio-toggle .nh-library__audio-pause {
    display: none;
  }

  .nh-library__audio-toggle.is-playing .nh-library__audio-play {
    display: none;
  }

  .nh-library__audio-toggle.is-playing .nh-library__audio-pause {
    display: block;
  }

  .nh-library__audio-body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nh-library__audio-player span,
  .nh-library__audio-name {
    display: block;
    margin-bottom: 8px;
    color: rgba(235, 236, 246, 0.72);
    font-size: 10px;
    font-weight: 680;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nh-library__audio-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
  }

  .nh-library__audio-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #bd30ff, #1499ff);
    pointer-events: none;
  }

  .nh-library__audio-times {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: rgba(235, 236, 246, 0.48);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  .nh-library__seehow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* width:100% + flex-basis:auto wraps to its own row in a row flex,
       and stays in the main column (not a second column) when actions
       is flex-direction:column on mobile. flex:1 1 100% used the
       container HEIGHT as basis and peeked out of the card at 375. */
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 2px;
    color: rgba(229, 231, 243, 0.72);
    font-size: 13px;
    font-weight: 620;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nh-library__seehow:hover,
  .nh-library__seehow:focus-visible {
    color: #fff;
  }

  .nh-library__seehow.is-hidden {
    display: none;
  }

  .nh-library__seehow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #creation-library[lang="ja"] .nh-library__project-title,
  #creation-library[lang="zh"] .nh-library__project-title,
  #creation-library[lang="ko"] .nh-library__project-title {
    line-break: strict;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  @media (max-width: 767px) {
    .nh-library__audio-player {
      width: min(580px, 94%);
      padding: 10px 12px;
    }

    .nh-library__audio-toggle {
      width: 38px;
      height: 38px;
    }
  }


  /* Desktop card grows with locale copy so CTAs are not clipped
     (RU/DE overflowed the previous fixed 510px feature height). */
  @media (min-width: 901px) {
    #creation-library .nh-library__feature {
      height: auto;
      min-height: 510px;
      max-height: none;
      align-items: stretch;
    }
    #creation-library .nh-library__media {
      height: auto;
      min-height: 510px;
      max-height: none;
      align-self: stretch;
    }
    #creation-library .nh-library__content {
      height: auto;
      min-height: 0;
      overflow: visible;
    }
  }

  @media (min-width: 901px) {
    #creation-library[lang="ja"] .nh-library__title {
      text-wrap: pretty;
    }
  }


  /* Wide multi-format boards (e.g. 2.33:1 Mira Vale) sit on a dark matte. */
  #creation-library .nh-library__media-inner.is-contain {
    background: #06091a;
  }
  #creation-library .nh-library__media-inner.is-contain > img,
  #creation-library .nh-library__media-inner.is-contain img {
    object-fit: contain;
    object-position: center;
    background: transparent;
    padding: 0;
  }

  .nh-library__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 240px;
    padding: 28px 24px;
    background:
      radial-gradient(circle at 50% 42%, rgba(104, 42, 200, 0.16), transparent 52%),
      #06091a;
    text-align: center;
  }
  .nh-library__placeholder-label {
    margin: 0;
    max-width: 22em;
    color: rgba(235, 236, 246, 0.82);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }
  .nh-library__placeholder-cta {
    color: #efe7ff;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-bottom: 1px solid rgba(177, 74, 255, 0.55);
  }
  .nh-library__placeholder-cta:hover,
  .nh-library__placeholder-cta:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
  }
  .nh-library__thumb-placeholder {
    display: grid;
    place-items: center;
    width: 74px;
    height: 58px;
    overflow: hidden;
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 45%, rgba(104, 42, 200, 0.28), transparent 50%),
      #06091a;
  }
  .nh-library__thumb-placeholder::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px dashed rgba(229, 231, 243, 0.45);
    border-radius: 4px;
  }


  /* JSON load failure: no empty card frame — just a text link. */
  #creation-library[data-load-error] {
    overflow: hidden;
    padding: 32px 24px;
    min-height: 0;
    background: transparent;
  }
  #creation-library[data-load-error] .nh-library__fallback {
    margin: 0;
    text-align: center;
  }
  #creation-library[data-load-error] .nh-library__fallback a {
    color: rgba(229, 231, 243, 0.82);
    font-size: 15px;
    font-weight: 620;
    text-decoration: none;
    border-bottom: 1px solid rgba(177, 74, 255, 0.55);
  }
  #creation-library[data-load-error] .nh-library__fallback a:hover,
  #creation-library[data-load-error] .nh-library__fallback a:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
  }


  /* v2: keep Images/Chat panes and rail thumbs visible if native lazy
     or Tilda img rewriting would otherwise leave a dark empty frame.
     Background-image is a paint fallback; the <img> stays for alt text. */
  #creation-library .nh-library__media-inner.has-photo {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  #creation-library .nh-library__media-inner.has-photo.is-contain {
    background-size: contain;
    background-color: #050816;
  }
  #creation-library .nh-library__media-inner > img,
  #creation-library .nh-library__media-inner img,
  #creation-library .nh-library__thumb-image img {
    opacity: 1 !important;
    visibility: visible !important;
  }
  #creation-library .nh-library__thumb-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }


  /* v2 t188u/t189u/t190u: smaller centered glass play button (desktop + mobile).
     Mobile Shorts: full-width 9:16 stage, no blurred side bars. Desktop Shorts unchanged. */
  #creation-library .nh-library__play {
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    background: rgba(16, 12, 32, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  #creation-library .nh-library__play svg {
    width: 18px;
    height: 18px;
  }

  @media (max-width: 767px) {
    #creation-library .nh-library__play {
      top: 50%;
      left: 50%;
      width: 42px;
      height: 42px;
      border-width: 1.5px;
      transform: translate(-50%, -50%);
    }
    #creation-library .nh-library__play svg {
      width: 15px;
      height: 15px;
    }

    /* 9:16 Shorts: real portrait stage, full width, cap ~75vh, no blur bars.
       16:9 cards keep the existing fixed media height (290 / 235). */
    #creation-library .nh-library__media:has(.nh-library__media-inner.is-vertical) {
      width: min(100%, calc(75vh * 9 / 16)) !important;
      max-width: calc(75vh * 9 / 16) !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: 75vh !important;
      aspect-ratio: 9 / 16;
      margin-inline: auto;
    }
    #creation-library .nh-library__media:has(.nh-library__media-inner.is-vertical) .nh-library__vertical-bg {
      display: none;
    }
    #creation-library .nh-library__media:has(.nh-library__media-inner.is-vertical) .nh-library__vertical,
    #creation-library .nh-library__media:has(.nh-library__media-inner.is-vertical) .nh-library__vertical-frame {
      position: absolute;
      inset: 0;
      left: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      max-width: none;
      aspect-ratio: auto;
      transform: none;
      box-shadow: none;
    }

    @media (max-width: 420px) {
      #creation-library .nh-library__media:has(.nh-library__media-inner.is-vertical) {
        height: auto;
        min-height: 0;
        max-height: 75vh;
      }
    }
  }


  /* v3 t193u/t194u: prev/next arrows vertically centred on the media stage
     (same mid-line as the play button) for 9:16 and 16:9, mobile and desktop.
     Horizontal position, size and arrow style are unchanged.
     Play button: brand-violet gradient, still slightly translucent, same size. */
  #creation-library .nh-library__play {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.72), rgba(168, 85, 247, 0.8));
  }

  @media (min-width: 901px) {
    #creation-library .nh-library__stage {
      align-items: center;
    }
  }

  /* Mobile/tablet arrows are position:absolute on .nh-library__stage
     (which starts at the top of the feature/media). Fixed 16:9 media
     heights are 380 / 290 / 235; 9:16 stage height is min(75vh, width*16/9).
     top is the media mid-line; translateY(-50%) keeps arrow size unchanged.
     (Subgrid + top:50% was tried; Chromium still resolves the percentage
     against the full stage height, which includes the text below.) */
  @media (max-width: 900px) {
    #creation-library .nh-library__arrow {
      top: calc(190px + 1px);
      bottom: auto;
      transform: translateY(-50%);
    }
  }

  @media (max-width: 767px) {
    #creation-library .nh-library__arrow {
      top: calc(145px + 1px);
      transform: translateY(-50%);
    }
  }

  @media (max-width: 420px) {
    #creation-library .nh-library__arrow {
      top: calc(117.5px + 1px);
      transform: translateY(-50%);
    }
  }

  @media (max-width: 767px) {
    #creation-library .nh-library__stage:has(.nh-library__media-inner.is-vertical) .nh-library__arrow {
      top: calc(1px + min(37.5vh, calc((100vw - 26px) * 8 / 9)));
      transform: translateY(-50%);
    }
  }

/* t204u: mobile poster picture + portrait stage + badge wrap */
#creation-library .nh-library__media-inner > picture.nh-library__picture {
  display: block;
  width: 100%;
  height: 100%;
}
#creation-library .nh-library__media-inner > picture.nh-library__picture > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}
#creation-library .nh-library__media-inner.has-photo.is-mobile-poster {
  background-image: var(--nh-desktop-image);
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  #creation-library .nh-library__media-inner.has-photo.is-mobile-poster {
    background-image: var(--nh-mobile-image);
  }

  #creation-library .nh-library__media:has(.nh-library__media-inner.is-mobile-poster) {
    height: auto;
    min-height: 0;
    max-height: min(75vh, calc((100vw - 24px) * 5 / 4));
    aspect-ratio: 4 / 5;
  }

  /* Vertically centre arrows on the taller 4:5 mobile poster stage. */
  #creation-library .nh-library__stage:has(.nh-library__media-inner.is-mobile-poster) .nh-library__arrow {
    top: calc(1px + min(37.5vh, calc((100vw - 24px) * 5 / 8)));
    bottom: auto;
    transform: translateY(-50%);
  }

  /* Keep the overlay badge in the top-left safe area so it cannot cover a poster headline. */
  #creation-library .nh-library__badge {
    max-width: calc(100% - 108px);
    white-space: normal;
    line-height: 1.25;
    padding: 6px 11px;
    min-height: 0;
    height: auto;
  }
}
