/* Catalog shelves share the existing theme tokens and setup layout. */
.shelfStats{font-size:12px!important;margin-top:4px!important}
.shelfStatus{font-size:12px;color:var(--muted);margin:-8px 0 10px;min-height:0}
.shelfStatus:empty{display:none}
.shelfFilters{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:0 0 14px}
.shelfFilterGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.shelfField{display:flex;flex-direction:column;gap:5px;margin:0;font-weight:600;font-size:12px;color:var(--muted)}
.shelfField select{background:var(--input,var(--bg));color:var(--text);border:1px solid var(--line);border-radius:7px;padding:8px;font:inherit;font-weight:400;font-size:13px}
.shelfGroupLabel{font-size:12px;font-weight:600;color:var(--muted);margin:12px 0 6px}
.shelfFilters>.shelfGroupLabel:first-child{margin-top:0}
.shelfChoiceGroup{display:flex;flex-wrap:wrap;gap:6px}
.shelfChip{background:transparent;color:var(--text);border:1px solid var(--line);border-radius:16px;padding:5px 11px;font-size:12px}
.shelfChip[aria-pressed=true]{background:var(--tab);border-color:var(--accent);color:var(--link)}
.shelfHint{font-size:12px;color:var(--muted);margin:8px 0 0}
.shelfReset{background:none;border:0;color:var(--link);font-size:12px;text-decoration:underline;padding:10px 0 0}
.shelfPosterBlank{display:flex;align-items:center;justify-content:center;aspect-ratio:2/3;background:var(--panel);border-radius:7px;padding:8px;font-size:11px;color:var(--muted);text-align:center}
@media(min-width:0){.shelfFilterGrid{grid-template-columns:1fr 1fr}}
.workspace>div{min-width:0}.catalogShelfHead>div:first-child{min-width:0;flex:1}
.catalogSectionTitle{font-size:22px;margin:30px 0 7px}.collectionClock{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:4px 9px}.catalogShelf{margin:0 0 32px;min-width:0}.catalogShelfHead{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:15px}.catalogShelfHead h3{font-size:17px;line-height:1.4;margin:0 0 5px}.catalogShelfHead p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}.catalogAdd{white-space:nowrap;font-size:12px;padding:8px 11px}.catalogAdd[aria-pressed=true]{background:var(--tab);border-color:var(--accent);color:var(--link)}.catalogShelfTrack{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;padding:3px 0 12px;scroll-snap-type:x mandatory;scrollbar-color:var(--line) transparent;scrollbar-width:thin}.catalogPoster{display:flex;flex-direction:column;align-items:stretch;align-self:flex-start;flex:0 0 calc((100% - 48px)/5);min-width:0;background:transparent;color:var(--text);border:0;padding:0;text-align:left;scroll-snap-align:start}.catalogPoster img{display:block;width:100%;height:auto;aspect-ratio:2/3;flex:none;object-fit:cover;background:var(--panel);border-radius:7px;transition:transform .15s}.catalogPoster .shelfPosterBlank{display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:2/3;flex:none}.catalogPoster:hover img{transform:translateY(-3px)}.catalogPoster strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.8em;font-size:12px;line-height:1.4;margin:8px 0 4px}.catalogPoster small{display:block;min-height:1.2em;font-size:11px;color:var(--muted)}.catalogMore{border-top:1px solid var(--line);padding-top:4px}.catalogShelfStatus{font-size:13px;color:var(--muted)}.catalogRetry{font-size:12px;padding:7px 10px;margin-bottom:14px}.catalogRowActions{display:flex;gap:6px;align-items:center}.catalogArrow{font-size:17px;padding:3px 8px;border-radius:5px}.catalogDialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:22px;width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto}.catalogDialog::backdrop{background:#000b}.catalogDialogClose{float:right;margin-left:10px;font-size:20px;padding:2px 8px}.catalogDialog img{width:110px;border-radius:7px;float:left;margin:0 18px 16px 0}.catalogDialog h2{font-size:22px;margin:0 0 8px}.catalogDialog .dramaSynopsis{clear:both;font-size:14px;color:var(--muted)}.catalogDialog:focus-visible,.catalogPoster:focus-visible{outline:2px solid var(--link);outline-offset:4px}.catalogArtworkCredit{font-size:11px;color:var(--muted);margin-top:25px}@media(min-width:0){.catalogPoster{flex-basis:135px}.catalogShelfHead{align-items:start}.catalogShelfHead h3{font-size:16px}.catalogSectionTitle{font-size:21px}.catalogRowActions{flex-wrap:wrap;justify-content:end}.catalogArrow{display:none}}

/* Android app rows keep the title and action visible as artwork arrives. */
.compactCatalogRow{margin:0 0 8px;padding:9px 12px;border-bottom:1px solid var(--line)}
.compactCatalogRow .catalogShelfHead{align-items:center;gap:8px;margin:0}
.compactCatalogRow .catalogAdd{min-height:44px;max-width:112px;white-space:normal;flex-shrink:0}
.compactCatalogRow .shelfStatus:empty{display:none}
.compactPreviewButton{display:flex;align-items:center;gap:10px;min-height:44px;min-width:0;padding:3px 0;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;font-weight:700}
.compactPreviewButton>span:last-child{overflow-wrap:anywhere}
.compactPreviewButton::after{content:"›";color:var(--muted);font-size:18px;margin-left:2px}
.compactPreviewButton[aria-expanded=true]::after{transform:rotate(90deg)}
.compactPosterStack{display:flex;align-items:center;isolation:isolate;flex:none}
.compactPosterStack:empty{display:none}
.compactPosterStack img{width:25px;height:36px;border:1px solid var(--line);border-radius:4px;object-fit:cover;background:var(--panel)}
.compactPosterStack img+img{margin-left:-9px}
.compactCatalogRow .shelfStats{margin:0 0 0 2px}
.compactCatalogRow .compactPreview{display:grid;gap:4px;padding-top:6px}
.compactCatalogRow .compactPreview[hidden]{display:none}
.compactPreview .compactTitle{width:100%;min-height:40px;padding:6px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;font:inherit}
.compactPersonPhoto{width:34px;height:42px;object-fit:cover;border-radius:5px}

.androidSetup .androidWeeklyHeading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 14px}
.androidSetup .androidWeeklyHeading h2{margin:0}
.androidSetup .catalogMore{padding-top:12px}
.androidSetup .androidCatalogFilters{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.androidSetup .androidCatalogFilters label{display:block;margin:0 0 4px!important}
.androidSetup .androidCatalogFilters select{width:100%;min-height:44px}
.androidSetup .catalogShelfHead{align-items:center;margin-bottom:8px}
.androidSetup .catalogShelfHead h3{margin:0}
.androidSetup .catalogShelfHead .catalogAdd{min-height:44px}
.androidSetup :is(#androidCatalogs,#listItems) .catalogShelfTrack{gap:9px;scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.androidSetup :is(#androidCatalogs,#listItems) .catalogShelfTrack::-webkit-scrollbar{display:none}
.androidSetup :is(#androidCatalogs,#listItems) .catalogShelfTrack .catalogPoster{flex-basis:calc((100% - 27px)/3.35)}
.androidSetup .catalogShelfTrack .catalogPoster:hover img{transform:none}
.androidSetup .compactPersonIdentity{display:flex;align-items:center;gap:10px}
.androidSetup .compactPersonIdentity h3{margin:0;overflow-wrap:anywhere}

.androidSetup .androidWatchlistCard{margin:0 0 14px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.androidSetup .androidWatchlistCard .catalogShelfHead{position:relative;display:block;margin:0}
.androidSetup .androidWatchlistCard .catalogRowActions{position:absolute;top:0;right:0}
.androidWatchlistOpen,.androidWatchlistTitle{display:block;width:100%;border:0;padding:0;background:none;color:var(--text);text-align:left;min-width:0}
.androidWatchlistOpen>strong,.androidWatchlistOpen>small{display:block;padding-inline-end:78px;overflow-wrap:anywhere}
.androidWatchlistOpen>strong{font-size:16px}
.androidWatchlistOpen>small,.androidWatchlistTitle>small,.androidWatchlistOwner{color:var(--muted)}
.androidWatchlistPreview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:14px}
.androidWatchlistCount{grid-column:5}
.androidWatchlistPoster{position:relative;isolation:isolate;display:grid;place-content:center;overflow:hidden;aspect-ratio:2/3;background:var(--input);border-radius:7px;text-align:center;color:var(--muted);font-size:10px;padding:3px;overflow-wrap:anywhere}
.androidWatchlistPoster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.androidWatchlistCount strong,.androidWatchlistCount small{z-index:1;color:white;text-shadow:0 1px 3px #000}
.androidWatchlistCount::after{content:"";position:absolute;inset:0;background:#0009}
.androidWatchlistCount strong{font-size:clamp(15px,4vw,24px)}
.androidWatchlistCount small{font-size:11px}
.androidWatchlistDialog{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;padding:0;border:0;background:var(--bg);color:var(--text)}
.androidWatchlistDialog[open]{display:flex;flex-direction:column}
.androidWatchlistDialog .androidWatchlistHeader{display:flex;justify-content:start;align-items:center;gap:10px;min-height:0;padding:12px 14px;background:var(--panel);color:var(--text);border-bottom:1px solid var(--line)}
.androidWatchlistHeader>div{flex:1;min-width:0}
.androidWatchlistHeader h2{font-size:18px;margin:0;overflow-wrap:anywhere}
.androidWatchlistHeader p{margin:2px 0 0}
.androidWatchlistHeader button{min-width:44px;min-height:44px}
.androidWatchlistBody{flex:1;min-height:0;overflow:auto;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))}
.androidWatchlistGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px;align-items:start}
.androidWatchlistTitle>strong,.androidWatchlistTitle>small{display:block;overflow-wrap:anywhere}
.androidWatchlistTitle>strong{margin-top:5px;line-height:1.25}
.androidWatchlistBody>.catalogShelfStatus:empty{display:none}
@media(max-width:0){.androidWatchlistGrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}

.catalogTitleDialog{position:fixed;padding:clamp(16px,4.7vw,24px);max-height:85dvh}
.catalogTitleDialog .catalogDialogClose{position:absolute;top:clamp(16px,4.7vw,24px);right:clamp(16px,4.7vw,24px);float:none;margin:0;min-width:40px;min-height:40px}
.catalogTitleHeader{display:flex;align-items:flex-start;gap:clamp(12px,3.7vw,18px)}
.catalogTitleDialog .catalogTitleArtwork{flex:0 0 auto;width:clamp(60px,23vw,110px);aspect-ratio:5/7;object-fit:cover;float:none;margin:0}
.catalogTitleInfo{flex:1;min-width:0}
.catalogTitleInfo h2{padding-inline-end:48px;line-height:1.2;overflow-wrap:anywhere}
.catalogTitleInfo p{margin:12px 0 0}
.catalogTitleScore{display:flex;align-items:center;flex-wrap:wrap;gap:2px 5px;margin-top:12px}
.catalogTitleScore:empty{display:none}
.catalogTitleScore .ratingStars{gap:1px}
.catalogTitleScore :is(.ratingStar,.ratingStar svg){width:clamp(9px,3vw,14px);height:clamp(9px,3vw,14px)}
.catalogTitleScore .ratingValue{white-space:nowrap}
.catalogTitleDialog .dramaSynopsis{line-height:1.6;margin:16px 0 0}
