.category-shelves { margin-top: 10px; }
.category-shelf { margin: 8px 0 25px; }
.category-shelf .section-title { margin-bottom: 10px; }
.category-shelf .section-title > div small { color: var(--muted); font-size: 10px; }
.see-category { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 11px; }
.shelf-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 22vw); gap: 12px; overflow-x: auto; padding: 2px 1px 9px; scrollbar-width: none; }
.shelf-rail::-webkit-scrollbar { display: none; }
.compact-card { width: auto; }
.compact-card .poster { aspect-ratio: 16 / 10; }
.compact-card .media-info { padding: 9px; }
.compact-card .send { padding: 8px; }
.shelves-loading { text-align: center; color: var(--muted); padding: 45px 15px; }
.admin-entry { align-self: center; white-space: nowrap; text-decoration: none; color: #eaf6ff; background: linear-gradient(135deg, #286fa8, #4c9ad9); border-radius: 10px; padding: 9px 12px; font-size: 10px; font-weight: 700; }
.locked-pill { border-style: dashed; color: #d7b677; }
.access-badge,.owner-access { color: #efc66d; font-size: 10px; }
.owner-access { border: 1px solid #5f5234; border-radius: 8px; padding: 3px 7px; }
.locked-category { min-height: 175px; display: grid; place-items: center; align-content: center; text-align: center; padding: 20px; border: 1px dashed #4b5660; border-radius: 18px; background: linear-gradient(135deg, rgba(54,45,30,.65), rgba(18,30,40,.9)); }
.locked-category > div { font-size: 30px; }
.locked-category h3 { margin: 7px 0 3px; }
.locked-category p { max-width: 520px; margin: 3px 0 13px; color: var(--muted); font-size: 11px; }
.locked-category button { border: 1px solid #665a38; border-radius: 10px; background: #3a3220; color: #ffe4a0; padding: 9px 16px; cursor: pointer; }
@media (max-width: 520px) { .admin-entry { max-width: 90px; overflow: hidden; text-overflow: ellipsis; } }
.browse-controls { margin-top: 14px; }
.filter-button { border: 1px solid #36536a!important; border-radius: 10px; background: #193247!important; color: #bfe3ff!important; padding: 8px 12px; cursor: pointer; }
.category-icons { display: grid; grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); overflow: visible; gap: 9px; padding: 3px 0 12px; }
.category-icons .pill { min-height: 92px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 15px; padding: 10px 7px; }
.category-icons .pill span { font-size: 25px; margin: 0; }
.category-icons .pill b { font-size: 11px; }
.category-icons .pill b i { display:inline-block;margin-right:3px;border-radius:99px;background:#624a1f;color:#ffe097;padding:2px 5px;font-size:6px;font-style:normal;vertical-align:middle; }
.category-icons .pill small { font-size: 8px; color: var(--muted); }
.category-icons .pill.active small { color: #e9f6ff; }
.back-button { white-space: nowrap; border: 1px solid #36536a; border-radius: 10px; background: #172b3b; color: #dff1ff; padding: 8px 10px; font-size: 10px; cursor: pointer; }
.filter-overlay { position: fixed; z-index: 60; inset: 0; display: grid; align-items: end; background: rgba(2,7,12,.72); backdrop-filter: blur(5px); }
.filter-sheet { width: min(680px,100%); max-height: 80vh; overflow-y: auto; margin: auto; border: 1px solid #30475b; border-radius: 24px 24px 0 0; background: #101d29; padding: 19px 17px calc(20px + env(safe-area-inset-bottom)); }
.filter-head { display: flex; align-items: center; justify-content: space-between; }
.filter-head h2 { margin: 0; font-size: 17px; }
.filter-head button { border: 0; background: transparent; color: var(--muted); font-size: 28px; }
.filter-sheet > p { color: var(--muted); font-size: 10px; }
.filter-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.filter-option { display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; text-align: right; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #152534; color: var(--text); padding: 11px; }
.filter-option span { grid-row: 1/3; font-size: 22px; }
.filter-option b { font-size: 11px; }
.filter-option small { color: var(--muted); font-size: 8px; }
.filter-option.active { border-color: var(--blue); background: #214966; }
.clear-filter { width: 100%; margin-top: 12px; border: 1px solid #35546b; border-radius: 11px; background: #1a3347; color: #d7edff; padding: 11px; }
@media (min-width: 850px) {
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf-rail { grid-auto-columns: minmax(210px, 16vw); }
}
