.shelves-page{min-width:0}.shelves-intro{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin:0 0 28px;padding:18px 0;border-block:1px solid #ffffff0b;color:#a397b3;font-size:12px}.shelves-intro strong{font:600 22px var(--heading);color:#eee3fc;margin-right:5px}.shelves-intro small{margin-left:auto;color:#81728d;font-size:11px}
.shelves-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.shelf-card{min-width:0;border:1px solid #ffffff10;background:#151422;border-radius:16px;overflow:hidden;transition:border-color .18s,transform .18s}.shelf-card:hover{border-color:#9c79c145;transform:translateY(-2px)}.shelf-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left}.shelf-cover{display:grid;grid-template-columns:repeat(var(--shelf-cover-count,4),minmax(0,1fr));height:150px;background:linear-gradient(120deg,#31243f,#1b1c2d);gap:3px;overflow:hidden}.shelf-cover>span{min-width:0;height:100%;overflow:hidden}.shelf-cover img{width:100%;height:100%;object-fit:cover}.shelf-cover .cover-fallback{width:100%;height:100%;display:grid;place-items:center;background:#30263d;color:#baa1d4}.shelf-cover.shelf-empty-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.shelf-empty-cover>.icon{width:30px;height:30px;color:#a78cc3}.shelf-empty-cover>span{height:auto;font-size:11px;color:#9c86b0}.shelf-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px}.shelf-caption strong{display:block;font:600 19px/1.35 var(--heading);overflow-wrap:anywhere}.shelf-caption small{display:block;margin-top:7px;color:#9985ac;font-size:11px}.shelf-caption>.icon{width:17px;color:#b996d5;flex-shrink:0}.shelf-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff09;margin-inline:20px;padding-block:9px}.shelf-card-actions .text-link{display:flex;align-items:center;gap:7px;min-height:36px;font-size:11px}.shelf-card-actions .icon{width:13px;height:13px}
.shelves-empty,.collection-load-error{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:340px;padding:38px 24px;border:1px solid #ffffff10;border-radius:18px;background:radial-gradient(ellipse at 50% 0,#60417c22,transparent 70%),#131321}.shelves-empty>.icon,.collection-load-error>.icon{width:42px;height:42px;color:#ac8acb;margin-bottom:22px}.shelves-empty h2,.collection-load-error h2{font:600 24px var(--heading);margin:14px 0 12px}.shelves-empty p,.collection-load-error p{max-width:470px;font-size:13px;line-height:1.9;color:#a28caf;margin:0 0 24px}.shelves-empty.compact{min-height:240px}
.shelf-back{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:16px}.shelf-back .icon{width:14px;transform:rotate(180deg)}.shelf-controls{display:flex;align-items:center;gap:16px;justify-content:space-between;margin:0 0 22px}.shelf-search{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #ffffff13;border-radius:11px;background:#171524;padding:0 14px;flex:1;max-width:440px}.shelf-search>.icon{width:16px;color:#937fa5;flex-shrink:0}.shelf-search input{width:100%;min-width:0;height:46px;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}.shelf-search:focus-within{border-color:#ad8be377}
.shelf-controls .view-switch{display:flex;flex-shrink:0;gap:3px;padding:3px;border:1px solid #ffffff10;border-radius:11px;background:#171524}.shelf-controls .view-switch button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:8px;background:none;color:#8c799e}.shelf-controls .view-switch button[aria-pressed="true"]{background:#3b294c;color:#dcc1f6}.shelf-controls .view-switch .icon{width:17px;height:17px}@media(max-width:760px){.shelf-controls .view-switch button{width:44px;height:44px}}
.collection-dialog{width:min(560px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;overflow-y:auto;padding:26px;border-radius:18px}.collection-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}.collection-dialog-heading h2{font:600 25px/1.3 var(--heading);margin:10px 0 0;overflow-wrap:anywhere}.collection-dialog-heading>.icon-button{flex-shrink:0}.collection-dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding-top:20px}.collection-dialog-actions>span{margin-right:auto;font-size:11px;color:#a088b7}.collection-dialog-actions>.text-link{margin-right:auto;min-height:44px}.collection-picker-form{display:flex;flex-direction:column;min-height:0}.collection-picker-form>.shelf-search{width:100%;max-width:none;flex:none}.collection-picker-list{max-height:48vh;max-height:48dvh;overflow-y:auto;overscroll-behavior-y:auto;margin-top:16px;padding-right:4px;scrollbar-width:thin;scrollbar-color:#73568a transparent}.collection-picker-row,.collection-membership-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:9px 11px;margin-bottom:7px;border:1px solid #ffffff0c;border-radius:10px;background:#171321;cursor:pointer}.collection-picker-row:has(input:checked),.collection-membership-row:has(input:checked){border-color:#af83d555;background:#2c1e3b55}.collection-picker-row>input,.collection-membership-row>input{width:18px;height:18px;accent-color:#b390e4;flex-shrink:0}.collection-picker-cover{display:block;overflow:hidden;width:34px;height:51px;border-radius:5px;background:#32253d;flex-shrink:0}.collection-picker-cover img{width:100%;height:100%;object-fit:cover}.collection-picker-cover .cover-fallback{display:grid;place-items:center;height:100%;color:#bda0d5}.collection-picker-row>span:last-child,.collection-membership-row>span{min-width:0}.collection-picker-row strong,.collection-membership-row strong{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.collection-picker-row small,.collection-membership-row small{display:block;font-size:10px;color:#927ba6;margin-top:4px}.collection-dialog .account-error{margin:15px 0 0}.detail-collection-section .minor-note{margin-bottom:0}.detail-collection-section .genre-pills{margin-top:15px}
.home-quick-row{display:flex;align-items:center;gap:9px;min-width:0}.home-quick-row .home-anime-row{flex:1;min-width:0}.quick-plus{position:relative;display:flex;align-items:center;justify-content:center;gap:2px;width:44px;height:44px;flex:0 0 44px;border:1px solid #aa85ce2b;border-radius:12px;background:#32244266;color:#c9a8e8;transition:background .15s,transform .15s}.quick-plus .icon{width:14px;height:14px}.quick-plus>span{font-size:11px;font-weight:600}.quick-plus:hover{background:#4c335e}.quick-plus:active{transform:scale(.95)}.quick-plus:disabled{opacity:.45;cursor:default}.quick-plus[aria-busy="true"]{cursor:progress}
.quick-undo{position:fixed;z-index:60;right:24px;bottom:24px;display:flex;align-items:center;gap:22px;max-width:min(440px,calc(100vw - 32px));padding:15px 17px;border:1px solid #b18bd744;border-radius:14px;background:#221a30;box-shadow:0 12px 50px #0008}.quick-undo>span{min-width:0;max-width:280px;font-size:12px;overflow-wrap:anywhere}.quick-undo small{display:block;font-size:10px;margin-top:6px;color:#ae91c6}.quick-undo button{min-height:44px;flex-shrink:0;background:#9a72c824;color:#cfb0ed;border:1px solid #a883cd33;border-radius:9px;padding:0 13px;font-size:12px;font-weight:600}.quick-undo button:disabled{opacity:.5}.quick-undo.hidden{display:none}body:has(.quick-undo:not(.hidden)) .toast{bottom:125px}
@media(max-width:1100px){.shelves-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-cover{height:160px}}
@media(max-width:760px){.shelves-grid{gap:14px}.shelf-caption{padding:15px}.shelf-caption strong{font-size:17px}.shelf-card-actions{margin-inline:15px}.shelves-intro{gap:14px}.shelves-intro small{flex-basis:100%;margin-left:0}.collection-dialog{padding:20px}.collection-dialog-heading h2{font-size:22px}.shelves-empty{min-height:310px;padding:28px 20px}.shelves-empty h2{font-size:22px}.quick-undo{right:16px;left:16px;bottom:18px;max-width:none;gap:16px}.quick-undo>span{flex:1;max-width:none}.shelf-card-actions .text-link{min-height:44px}.shelf-search input{height:44px}}
@media(max-width:480px){.shelves-grid{grid-template-columns:1fr}.shelf-cover{height:160px}.shelf-controls{gap:10px}.shelf-caption strong{font-size:20px}.collection-picker-list{max-height:43dvh}.collection-dialog-actions{gap:9px}.collection-dialog-actions>span{font-size:10px}.collection-dialog .btn{padding-inline:13px}}
@media(prefers-reduced-motion:reduce){.shelf-card,.quick-plus{transition:none}}
