/* Scoped detail polish: controls must remain legible even without older core styles. */
#results .core-detail{box-sizing:border-box;width:100%;max-width:1100px;margin:20px auto;padding:24px;border:1px solid #313541;border-radius:22px;background:#10151e;color:#f4f6fa;overflow:hidden;scroll-margin-top:110px}
#results .core-detail *{box-sizing:border-box}
#results .core-detail-layout{display:grid;grid-template-columns:minmax(150px,230px) minmax(0,1fr);gap:26px}
#results .core-detail-layout>div{min-width:0}#results .core-detail-cover{width:100%;border-radius:15px;object-fit:cover}
#results .core-detail h2{line-height:1.2;font-size:clamp(24px,5vw,36px);margin:12px 0;overflow-wrap:anywhere}
#results .core-detail p{line-height:1.65;color:#bcc6d6}#results .core-kicker{font-size:12px;letter-spacing:.12em;color:#ff587a;font-weight:800}
#results .core-detail .btn,#results .core-detail button,#results .core-detail select{font:600 15px/1.3 system-ui;border:1px solid #394253;border-radius:12px;padding:12px 16px;background:#1b2533;color:#fff;min-height:46px;cursor:pointer}
#results .core-detail .red,#results #coreFav{background:#ec214d;border-color:#ec214d}#results .core-detail button:disabled{opacity:.5;cursor:default}
#results .core-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}#results .core-detail select{max-width:100%;flex:1;min-width:160px}
#results .core-facts{display:flex;flex-wrap:wrap;gap:8px}#results .core-facts span{font-size:12px;padding:8px 11px;background:#1b2330;border-radius:9px;color:#ccd4e2}
#results .core-rating,#results .core-note{display:block;background:#161e2b;border:1px solid #2a3547;border-radius:15px;padding:16px;margin:16px 0}
#results .core-rating>div{display:flex;gap:7px;margin-top:12px}#results .core-rating [data-rate]{color:#98a5b9;font-size:25px;padding:5px;flex:1;max-width:52px;background:#202c3e;border-color:#35445c}#results .core-rating [data-rate].on{color:#ffd16b;border-color:#c69438;background:#352d24}
#results .core-note textarea{display:block;resize:vertical;min-height:105px;width:100%;margin:12px 0;background:#0e1520;color:#e8eef8;border:1px solid #3a485f;border-radius:11px;padding:13px;font:15px/1.5 system-ui}#results .core-note textarea::placeholder{color:#94a2b7}
#results .core-sources,#results .core-episodes{margin-top:22px;padding-top:18px;border-top:1px solid #2a3547}#results .core-detail h3{font-size:19px;line-height:1.4;margin:10px 0 16px}
#results .al28-chapter,#results .core-detail .source-row{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:17px;border:1px solid #344158;background:#192331;border-radius:14px;margin:12px 0}
#results .al28-chapter small{display:block;color:#aebbd0;margin-top:6px;overflow-wrap:anywhere}#results .al28-chapter .btn{flex-shrink:0}
#results .core-detail :focus-visible{outline:3px solid #ff7592;outline-offset:3px}
@media(max-width:650px){#results .core-detail{padding:17px;margin:12px auto;border-radius:17px}#results .core-detail-layout{grid-template-columns:1fr;gap:16px}#results .core-detail-cover{width:140px;max-height:210px;justify-self:center}#results .core-detail-actions>*{flex:1}#results .al28-chapter,#results .core-detail .source-row{align-items:stretch;flex-direction:column}#results .al28-chapter button{width:100%}}
#results .core-detail-layout:not(:has(>.core-detail-cover)){grid-template-columns:minmax(0,1fr)}
