/* Favorite management stays inside the owner-only editor, never under posters. */
:is(#profile-favorite,#profile-watchlist) [hidden]{display:none!important}
.profile-community .profile-show-grid[hidden],.profile-community .profile-empty[hidden]{display:none!important}
:is(#profile-favorite,#profile-watchlist) .profile-title-actions{gap:9px}
:is(#profile-favorite,#profile-watchlist) .favorite-edit-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 12px;border:1px solid #475368;border-radius:10px;background:#ffffff04;color:#d7e5f3;font-size:12px;font-weight:650;text-decoration:none;transition:background .18s,border-color .18s}
:is(#profile-favorite,#profile-watchlist) .favorite-edit-toggle:hover,:is(#profile-favorite,#profile-watchlist) .favorite-edit-toggle[aria-expanded=true]{border-color:var(--profile-accent,#70d6cb);background:color-mix(in srgb,var(--profile-accent,#70d6cb) 10%,transparent);color:var(--profile-accent,#70d6cb)}
:is(#profile-favorite,#profile-watchlist) .favorite-edit-toggle:focus-visible,:is(#profile-favorite,#profile-watchlist) .favorite-editor button:focus-visible,:is(#profile-favorite,#profile-watchlist) .favorite-editor summary:focus-visible{outline:2px solid var(--profile-accent,#70d6cb);outline-offset:3px}
:is(#profile-favorite,#profile-watchlist) .profile-show-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:14px;margin-top:18px}
:is(#profile-favorite,#profile-watchlist) .profile-show-grid article{max-width:170px}
:is(#profile-favorite,#profile-watchlist) .profile-show-grid article>a{border-radius:12px;border-color:#ffffff1c;box-shadow:0 5px 16px #0002}
:is(#profile-favorite,#profile-watchlist) .profile-show-grid strong{padding:32px 11px 11px;font-size:12px;line-height:1.4}
:is(#profile-favorite,#profile-watchlist) .profile-poster-mark{top:8px;right:8px;width:22px;height:22px;line-height:22px;background:#101722dd;color:#f5d46a;box-shadow:0 1px 5px #0005}
:is(#profile-favorite,#profile-watchlist) .favorite-editor{padding:0;margin:0 0 20px;border:1px solid #425064;border-radius:14px;background:linear-gradient(145deg,#1c2736,#151d2a);overflow:hidden}
:is(#profile-favorite,#profile-watchlist) .favorite-editor summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;margin:0;padding:0 12px;float:none;position:static;color:#a9bdcf;font-size:11px;font-weight:650;list-style:none;border:0;border-bottom:1px solid #ffffff0e;background:transparent;border-radius:0;box-sizing:border-box}
:is(#profile-favorite,#profile-watchlist) .favorite-editor summary::-webkit-details-marker{display:none}
:is(#profile-favorite,#profile-watchlist) .favorite-editor-close{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#ffffff07;color:#aebed0;font-size:22px;font-weight:400}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-list{display:grid;grid-template-columns:1fr;gap:8px;padding:10px;max-height:340px;overflow-y:auto;overscroll-behavior:contain}
:is(#profile-favorite,#profile-watchlist) .favorite-editor[open]~.profile-show-grid,:is(#profile-favorite,#profile-watchlist) .favorite-editor[open]~.profile-empty{display:none!important}
:is(#profile-favorite,#profile-watchlist) .favorite-editor{margin-bottom:0}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-row{display:flex;align-items:center;gap:10px;min-width:0;padding:9px;border:1px solid #ffffff10;border-radius:11px;background:#ffffff03}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-poster{display:grid;place-items:center;flex:0 0 38px;width:38px;height:56px;overflow:hidden;border-radius:6px;background:#28384b;color:#f2cd66}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-poster img{width:100%;height:100%;object-fit:cover}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-title{flex:1;min-width:0;display:grid;gap:5px}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-title strong{font-size:12px;line-height:1.45;color:#e7eef8;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-title small{font-size:10px;color:#93a9c1}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-row form{margin:0;flex:0 0 auto}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-row button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 9px;border:1px solid #a781812c;border-radius:9px;background:#de777708;color:#dfadae;font-size:11px;font-weight:650;cursor:pointer}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-row button:hover{border-color:#ef929269;background:#df777716;color:#ffd2d2}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-row button:disabled{opacity:.45;cursor:wait}
:is(#profile-favorite,#profile-watchlist) .favorite-manager-empty,:is(#profile-favorite,#profile-watchlist) .favorite-editor-status{margin:0;padding:0 16px 16px;color:#abc0d4;font-size:12px;line-height:1.6}
:is(#profile-favorite,#profile-watchlist) .favorite-editor-status{color:#ffc0ad}
@media(max-width:1000px){:is(#profile-favorite,#profile-watchlist) .favorite-manager-list{grid-template-columns:1fr}}
@media(max-width:700px){:is(#profile-favorite,#profile-watchlist) .favorite-edit-toggle{min-height:40px;padding:0 10px}:is(#profile-favorite,#profile-watchlist) .profile-show-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}:is(#profile-favorite,#profile-watchlist) .profile-show-grid strong{font-size:11px;padding:27px 8px 8px}:is(#profile-favorite,#profile-watchlist) .favorite-manager-list{gap:8px;padding:12px}:is(#profile-favorite,#profile-watchlist) .favorite-editor summary{padding:0 12px}:is(#profile-favorite,#profile-watchlist) .favorite-manager-row button span{display:none}}
@media(max-width:360px){:is(#profile-favorite,#profile-watchlist) .profile-show-grid{grid-template-columns:repeat(2,minmax(0,1fr))}:is(#profile-favorite,#profile-watchlist) .profile-title-actions{gap:5px}}
@media(prefers-reduced-motion:reduce){:is(#profile-favorite,#profile-watchlist) .favorite-edit-toggle{transition:none}}
#profile-watchlist .profile-poster-mark{color:var(--profile-accent,#70d6cb)}
