/* v1.9: Watchlist-only additions; preserve existing game layout. */
[hidden]{display:none!important}
.username-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.username-grid:has(#friendField[hidden]){grid-template-columns:1fr}
#friendField{position:relative;min-width:0}
#friendField .remove-extra-user{position:absolute;top:0;right:0}
#friendField label{padding-right:50px}
#friendField input{box-sizing:border-box;width:100%}
.add-watchlist{display:inline-flex;min-height:40px;align-items:center;border:1px solid #426171;border-radius:8px;padding:8px 13px!important;text-decoration:none}
.watchlist-setup .setup-explainer{display:block!important;text-align:right;color:#afc6d1;font-size:12px;max-width:none}
.setup-explainer span{color:#74d7ab;margin-right:4px}
.match-mode-field{padding:8px 0 0;border:0;background:transparent;margin:13px 0;gap:8px}
.match-mode-field legend{padding:0 0 6px}
.match-mode-option{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:12px;border:1px solid #3e5360;border-radius:10px;background:#1b2831;min-width:0}
.match-mode-option:has(input:checked){background:#1b3544;border-color:#68c4f0;box-shadow:inset 0 0 0 1px #68c4f033}
.match-mode-option:focus-within{outline:2px solid #9ed7f2;outline-offset:2px}
.match-mode-option input{grid-column:3;grid-row:1;margin:0;width:16px;height:16px}
.mode-icon{grid-column:1;grid-row:1;width:44px;height:36px}
.match-mode-option>span{grid-column:2;grid-row:1;min-width:0}
.shared-mode-hint{font-size:12px;color:#adc1cb;margin:2px 0 0;line-height:1.4}
/* Compact, always-visible profile roster. Scroll horizontally for large groups. */
.watchlist-setup:has(#setupSummary:not([hidden])){flex-wrap:nowrap;gap:12px}
.watchlist-setup:has(#setupSummary:not([hidden])) .setup-heading{display:none}
.watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary{gap:12px}
.watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary>.roster-main{display:flex;flex:1;min-width:0;flex-direction:column;align-items:stretch;gap:4px;overflow:hidden}
.connected-users{display:flex;align-items:center;gap:15px;min-width:0;overflow-x:auto;padding:3px 2px 5px;scrollbar-width:thin;scrollbar-color:#436272 transparent}
.roster-person{display:flex;align-items:center;gap:8px;flex:none;max-width:220px;text-decoration:none!important;border-radius:6px;color:#e8f0f3}
.roster-person:hover strong{text-decoration:underline;text-underline-offset:3px}
.roster-avatar{width:38px;height:38px;flex:0 0 38px;box-sizing:border-box;border-radius:50%;position:relative;display:grid;place-items:center;border:2px solid var(--person-color);background:#243b48;overflow:hidden}
.roster-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.watchlist-setup .roster-avatar .roster-initial{color:#d9e6ed;font-weight:700;font-size:16px}
.roster-meta{display:flex;flex-direction:column;min-width:0;gap:2px;max-width:155px}
.roster-meta strong{font-size:13px;line-height:1.25;color:#e8f0f3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.watchlist-setup .roster-meta>span{font-size:11px;white-space:nowrap;color:#9fb3c0}
.watchlist-setup .roster-mode{font-size:11px;color:#9fb3c0;padding-left:2px}
#filmCard.shared-result #rollNumber{color:#9ce7b9!important;font-weight:750!important;text-transform:none!important;letter-spacing:normal!important}
.shared-search .spin-caption{color:#9ce7b9}
.round-summary .round-finds{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.round-summary .round-find{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;padding:8px;min-width:0}
.round-summary .round-find a{display:grid;gap:6px;min-width:0;align-items:start}
.shortlist-poster{position:relative;aspect-ratio:2/3;background:#233b48;display:grid;place-items:center;font-size:28px;color:#78cafa;overflow:hidden;border-radius:5px}
.shortlist-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.round-summary .round-find .shortlist-title{color:#e5eef2;white-space:normal;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
#shareRound{width:100%;margin:3px 0 10px;min-height:44px}
#roundShareFeedback:empty{display:none}
@media(max-width:680px){
 .username-grid{grid-template-columns:1fr}
 .extra-users{grid-template-columns:1fr}
 .match-mode-option{grid-template-columns:36px minmax(0,1fr) 18px;padding:9px;gap:8px}
 .mode-icon{width:36px;height:32px}
 .watchlist-setup .setup-explainer{text-align:center;margin-top:9px}
 .watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary{align-items:center;gap:8px}
 .connected-users{gap:10px}
 .roster-avatar{width:32px;height:32px;flex-basis:32px}
 .roster-person{gap:5px;max-width:146px}
 .roster-meta{max-width:100px}
 .roster-meta strong{font-size:11px}
 .watchlist-setup .roster-meta>span{font-size:10px}
 .watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary .action{max-width:112px;white-space:normal;text-align:center;line-height:1.25}
 .round-summary .round-finds{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .round-summary .round-find .shortlist-title{font-size:12px}
}
@media(max-width:680px){
 .watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
 .watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary>.roster-main{display:contents}
 .connected-users{grid-column:1/-1;grid-row:1;gap:12px;padding:3px 2px 5px}
 .roster-mode{grid-column:1;grid-row:2;align-self:center}
 .watchlist-setup:has(#setupSummary:not([hidden])) .setup-summary .action{grid-column:2;grid-row:2;min-height:30px;max-width:none;white-space:nowrap;padding:5px 8px}
}

/* v1.9.2: a shared film is a real landing card, independent of the game. */
#sharedPick.shared-landing{display:flex;align-items:flex-start;gap:24px;padding:24px;margin:22px 0 0;border:1px solid #365665;background:linear-gradient(135deg,#1c3441,#182831 70%);border-radius:15px;box-shadow:0 12px 35px #07141d33;overflow:hidden}
.shared-landing .shared-art{display:block;flex:0 0 146px;width:146px;aspect-ratio:2/3;border-radius:8px;overflow:hidden;box-shadow:0 5px 18px #0005;background:#223641}
.shared-landing .shared-art img{width:100%;height:100%;object-fit:cover;display:block}
.shared-landing .shared-content{min-width:0;flex:1}
.shared-landing .shared-eyebrow{color:#a7bfcc;font-size:12px;font-weight:600}
.shared-landing .shared-title{font-size:clamp(23px,3.2vw,34px);font-weight:800;line-height:1.12;color:#f4f0e9;margin:7px 0 8px;letter-spacing:-.025em}
.shared-landing .shared-meta,.shared-landing .shared-director{font-size:13px;color:#b4c9d4;line-height:1.45;margin:4px 0}
.shared-landing .shared-synopsis{color:#d8e3e8;font-size:14px;line-height:1.55;margin:13px 0;max-width:70ch;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.shared-landing .shared-status{color:#b4c9d4;font-size:13px;line-height:1.5;margin:9px 0}
.shared-landing .shared-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:9px;min-width:0;margin-top:15px}
.shared-landing .shared-actions .action{width:auto;min-width:0;padding:10px 14px;min-height:40px;white-space:normal;text-align:center;line-height:1.25}
.shared-landing .shared-actions .primary{background:#68c4f0;color:#102d3d;border-color:#68c4f0}
.shared-landing .shared-note{font-size:12px;line-height:1.45;color:#a7bfcc;margin:10px 0 0}
@media(max-width:680px){
 #sharedPick.shared-landing{gap:12px;padding:14px;margin-top:14px}
 .shared-landing .shared-art{flex:0 0 92px;width:92px;border-radius:6px}
 .shared-landing .shared-title{font-size:23px;margin:5px 0}
 .shared-landing .shared-meta,.shared-landing .shared-director{font-size:12px}
 .shared-landing .shared-synopsis{font-size:12px;line-height:1.45;-webkit-line-clamp:3;margin:8px 0}
 .shared-landing .shared-actions{flex-direction:column;align-items:stretch;margin-top:10px;gap:7px}
 .shared-landing .shared-actions .action{font-size:12px;padding:8px;flex:none;min-height:36px}
 .shared-landing .shared-note{font-size:11px}
}

#cancelShared{display:inline-block;margin:12px auto 0;min-height:36px;color:#b6dff4}
.shared-failure{border:1px solid #36505e;border-radius:12px;padding:24px;margin:12px 0;background:#182b35;text-align:center}
.shared-failure h2{margin:0 0 8px;font-size:clamp(20px,3vw,26px)}
.shared-failure p{margin:0 0 16px;color:#b4c9d4;line-height:1.5}
.shared-failure-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.shared-failure-actions .action{min-height:42px}
@media(max-width:480px){.shared-failure{padding:16px}.shared-failure-actions{flex-direction:column}.shared-failure-actions .action{width:100%}}

/* Failed searches are not film results, even after profile enhancement. */
#playing #filmCard[hidden],#playing #filmCard.cr-enhanced[hidden]{display:none!important}
.shared-page-progress{font-size:13px;color:#b4c9d4;line-height:1.5;margin-top:4px;font-variant-numeric:tabular-nums}

#sharedSlowHint[hidden]{display:none!important}
