/* Browse page. Cards reuse .grid / .card from styles.css; menus reuse .dd from editor.css. */
.br { padding-block: 120px 60px; }
.br__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.br__head .display { font-size: clamp(32px, 4vw, 52px); }
.br__sort { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.br__sort button { white-space: nowrap; flex: none; }

/* Filter bar: genres scroll sideways; the two menus stay at the end. */
.br__bar { display: flex; align-items: center; gap: 16px; padding-block: 14px; border-block: 1px solid var(--line); }
.br__genres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-block: 2px;
  mask-image: linear-gradient(to left, #000 92%, transparent); -webkit-mask-image: linear-gradient(to left, #000 92%, transparent); }
.br__genres::-webkit-scrollbar { display: none; }
.br__genres .chip { flex: none; white-space: nowrap; }
.br__genres .chip[aria-checked="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.br__menus { display: flex; gap: 8px; flex: none; }
.br__menus .dd__btn { height: 40px; font-size: 13.5px; }
.br__menus .dd.is-set .dd__btn { border-color: rgba(229, 20, 29, 0.55); background: rgba(229, 20, 29, 0.08); }
.br__menus .dd__menu { min-width: 210px; }
.br__info { margin: 12px 0 0; font-size: 12.5px; min-height: 1em; }

.br__grid { margin-top: 22px; }
/* Covers are 2:3 art: show them whole. */
.br__grid .card__cover { aspect-ratio: 2 / 3; }
.card__score--date { font-family: var(--f-body); direction: rtl; }
.card__tag--done { background: rgba(229, 20, 29, 0.75); border-color: transparent; }
.card__line { position: absolute; inset: auto 8px 8px; }

/* Loading placeholders */
.card.is-skel { pointer-events: none; }
.card.is-skel .card__cover, .card.is-skel b, .card.is-skel .card__nums span {
  background: rgba(255, 255, 255, 0.05); border-color: transparent; animation: skel 1.4s ease-in-out infinite;
}
.card.is-skel b { display: block; height: 14px; width: 75%; border-radius: 4px; }
.card.is-skel .card__nums span { display: block; height: 10px; width: 40%; border-radius: 4px; }
@keyframes skel { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .card.is-skel * { animation: none; } }

.br__empty { display: grid; justify-items: center; gap: 14px; padding: 60px 0; color: var(--muted); text-align: center; }
.br__empty p { margin: 0; }
.br__more { display: flex; justify-content: center; margin-top: 36px; min-height: 1px; }
.br__more .btn { height: 44px; font-size: 14.5px; }

@media (max-width: 860px) {
  .br { padding-top: 96px; }
  .br__bar { flex-direction: column; align-items: stretch; }
  .br__menus .dd { flex: 1; }
  .br__menus .dd__btn { width: 100%; }
}

/* ---------- Most requested (requests.html) ---------- */
.rq { padding-block: 120px 60px; max-width: 980px; }
.rq__head { display: flex; align-items: end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.rq__head .display { font-size: clamp(32px, 4vw, 52px); }
.rq__lead { margin: 12px 0 0; max-width: 52ch; font-size: 14.5px; line-height: 1.8; }
.rq__stats { display: flex; gap: 28px; margin: 0; }
.rq__stats div { display: grid; gap: 2px; }
.rq__stats dt { font-size: 12px; color: var(--muted); }
.rq__stats dd { margin: 0; font-size: 28px; }

.rq__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rq__row { display: grid; grid-template-columns: 36px 52px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rq__rank { color: var(--faint); font-size: 15px; text-align: center; }
.rq__row:nth-child(-n + 3) .rq__rank { color: var(--paper); }
.rq__cover { width: 52px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.rq__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq__main { display: grid; gap: 4px; min-width: 0; }
.rq__name { font-weight: 600; font-size: 15px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.rq__main small { font-size: 12.5px; }
.rq__hot { color: #ff6b6b; }
.rq__bar { margin-top: 4px; max-width: 320px; }
.rq__count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.rq__ask { height: 38px; padding-inline: 16px; font-size: 13.5px; margin: 0; min-width: 88px; }
.rq__ask.is-done { color: var(--muted); }

.rq__row.is-skel span, .rq__row.is-skel i, .rq__row.is-skel b, .rq__row.is-skel small {
  display: block; border-radius: 6px; background: rgba(255, 255, 255, 0.05); animation: skel 1.4s ease-in-out infinite;
}
.rq__row.is-skel span { height: 14px; width: 18px; justify-self: center; }
.rq__row.is-skel i { width: 52px; aspect-ratio: 2 / 3; }
.rq__row.is-skel div { display: grid; gap: 8px; }
.rq__row.is-skel b { height: 14px; width: 40%; }
.rq__row.is-skel small { height: 10px; width: 25%; }

.rq__find { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 24px; border-radius: var(--r-lg, 20px); }
.rq__find b { font-size: 16px; }
.rq__find p { margin: 6px 0 0; font-size: 13.5px; }
.rq__find .btn { height: 44px; margin: 0; flex: none; }

@media (max-width: 700px) {
  .rq { padding-top: 96px; }
  .rq__row { grid-template-columns: 28px 44px 1fr auto; gap: 12px; }
  .rq__count { grid-column: 3; grid-row: 2; }
  .rq__ask { grid-column: 4; grid-row: 1 / span 2; }
  .rq__cover { width: 44px; }
  .rq__find { flex-direction: column; align-items: stretch; }
}
