/* Genres (genres.js): groups with "All" + their genres — sign-up, new page, edit, Settings › Genres, the one-time pick */
.gn { display: flex; flex-direction: column; gap: 4px; }
.gn__g { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; }
.gn__g + .gn__g { border-top: var(--hairline) solid var(--color-line); }
.gn__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gn__head b { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--color-ink); }
.gn__head small { flex: none; font-size: 12px; font-weight: 600; color: var(--color-accent-text); }
.gn__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gn__chips .chip { height: 34px; padding: 0 13px; font-size: 13.5px; }
.gn__all { display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px var(--color-line-strong); background: transparent; }
.gn__ck { width: 12px; height: 12px; display: none; }
.gn__all[aria-pressed="true"] { background: var(--color-accent); color: var(--color-on-accent); box-shadow: none; }
.gn__all[aria-pressed="true"] .gn__ck { display: block; }
.gn__g.is-on .gn__head b { color: var(--color-ink); }
.gn__err { display: block; margin-top: 4px; font-size: 13px; color: var(--color-danger); }
@media (hover: hover) { .gn__chips .chip[aria-pressed="false"]:hover { background: var(--color-hover); } }

/* Settings › Genres */
.gn-form { display: flex; flex-direction: column; gap: 6px; padding: 8px 16px 16px; }
.gn-form__q { margin: 10px 0 0; font-size: 17px; font-weight: 800; }
.gn-form__save { align-self: flex-start; min-width: 160px; height: 46px; margin-top: 10px; padding: 0 22px; border-radius: 23px; }
.gn-form__save:disabled { opacity: .45; cursor: default; }

/* Once, on the next open: full screen on phones, a centred card on desktop */
.gn-gate { position: fixed; inset: 0; z-index: 140; display: flex; align-items: stretch; justify-content: center; background: rgba(10, 10, 14, 0); transition: background-color .2s ease; }
.gn-gate.is-open { background: rgba(10, 10, 14, .5); }
.gn-gate__panel { display: flex; flex-direction: column; width: 100%; max-width: 640px; background: var(--color-surface); color: var(--color-ink);
  opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1); }
.gn-gate.is-open .gn-gate__panel { opacity: 1; transform: none; }
.gn-gate__top { flex: none; display: flex; flex-direction: column; gap: 8px; padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 8px; }
.gn-gate__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-text); }
.gn-gate__ic svg { width: 22px; height: 22px; }
.gn-gate__top h2 { margin: 6px 0 0; font-size: 26px; line-height: 31px; font-weight: 800; letter-spacing: -.01em; }
.gn-gate__top p { margin: 0; font-size: 15px; line-height: 21px; color: var(--color-ink-2); max-width: 52ch; }
.gn-gate__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 16px; }
.gn-gate__foot { position: relative; flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--color-surface); }
.gn-gate__foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 70%, transparent) 30%, color-mix(in srgb, var(--color-accent) 70%, transparent) 70%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 45%, transparent); opacity: .55; }
.gn-gate__foot .dx-cta { width: 100%; height: 50px; border-radius: 25px; }
@media (min-width: 768px) {
  .gn-gate { align-items: center; padding: 32px; }
  .gn-gate__panel { max-height: min(88vh, 860px); border-radius: 22px; box-shadow: var(--shadow-float); overflow: hidden; }
  .gn-gate__top { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .gn-gate, .gn-gate__panel { transition: none; } }
