/* MS.WATCH 2 – deliberately grounded in MS.WATCH 1 compact UI, not a new dashboard. */
:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;-webkit-text-size-adjust:100%;background:#0b111d;color:#e9edf5}
*{box-sizing:border-box}
body{margin:0;background:#0b111d}
button,input,select,textarea{font:inherit}
button{cursor:pointer;color:inherit;touch-action:manipulation}
button:disabled,textarea:disabled{cursor:not-allowed;opacity:.46}
a{color:inherit}
button,a,input,select,summary,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.app{--accent:#58e1d0;--accent-ink:#092e29;--accent-muted:#58e1d016;min-height:100dvh;background:radial-gradient(ellipse at 90% 0%,#2524434d,transparent 42%)}
.app[data-profile-theme=SABRINA]{--accent:#f18aba;--accent-ink:#40152b;--accent-muted:#f18aba16}
.shell{width:min(1040px,calc(100% - 24px));margin:0 auto}
.site-head{border-bottom:1px solid #283244}
.header-inner{height:64px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:4px;white-space:nowrap;width:max-content;min-width:0;font-size:20px;letter-spacing:-.7px}
.brand-symbol{width:41px;height:36px;display:block;overflow:visible;filter:drop-shadow(0 2px 3px #0008)}
.logo-shadow{fill:#3d274e;transform:translate(0,2px)}
.brand-v2{font-size:9px;vertical-align:top;color:var(--accent);margin-left:2px;letter-spacing:0}
.type-tabs,.profile-tabs{display:flex;align-items:center;gap:2px;padding:3px;background:#151e2c;border:1px solid #394157;border-radius:10px;white-space:nowrap}
.profile-tabs{border-radius:24px}
.type-tabs button,.profile-tabs button{padding:8px 12px;border:0;border-radius:7px;background:transparent;color:#adbace;font-weight:550;font-size:13px}
.profile-tabs button{padding:8px 11px;border-radius:18px}
.type-tabs button[aria-pressed=true],.profile-tabs button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);font-weight:760}
.view-tabs{display:flex;align-items:center;gap:9px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;border-bottom:1px solid #343547;padding:4px 0;min-height:45px}
.view-tabs::-webkit-scrollbar{display:none}
.view-tabs button{border:1px solid transparent;border-radius:8px;background:none;color:#9eacc0;padding:8px 11px;font-size:12px;white-space:nowrap;line-height:1.1;flex-shrink:0}
.view-tabs button[aria-current=page]{background:var(--accent);color:var(--accent-ink);font-weight:760}
.view-count{font-size:10px;opacity:.83;margin-left:3px}
.tiny-heart{color:#58e1b7}
.filter-toggle{margin-left:auto}
.filter-toggle[aria-expanded=true]{color:var(--accent)}
.view-tabs .test-tab:not([aria-current=page]){color:#beaf94}
.search-section{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:8px;margin:10px 0 8px}
.search-section label{min-width:0}
.search{position:relative;display:block}
.search-symbol{position:absolute;left:12px;top:4px;font-size:25px;line-height:27px;color:#98aec5;pointer-events:none}
.search input,.sort-wrap select,.advanced-filters select{width:100%;height:39px;background:#151e2c;border:1px solid #334258;border-radius:8px;color:#d4deec;padding:0 12px}
.search input{padding-left:36px;font-size:16px;outline-offset:2px}
.search input::placeholder{color:#9baaC0}
.sort-wrap select{font-size:13px}
.advanced-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:11px;background:#111a29;border:1px solid #354258;border-radius:9px}
.advanced-filters[hidden]{display:none}
.advanced-filters label{display:grid;gap:5px;color:#aebbce;font-size:11px}
.advanced-filters select{height:36px;font-size:12px;padding:0 6px}
.status-strip{border-left:3px solid #567b7e;padding:5px 10px;background:#14212a;color:#a9c4c9;font-size:11px;line-height:1.4;margin:0 0 6px;border-radius:0 4px 4px 0}
.status-strip.warning{border-color:#b69357;background:#282316;color:#d6bd8d}
.status-strip.error{border-color:#e17f8a;background:#38212a;color:#ffd1d4}
.list-heading{height:32px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#aebbd0;font-size:12px}
.list-heading button{border:0;padding:5px 0;background:none;color:#aebbd0;font-size:11px}
.watch-list{border:1px solid #354153;border-radius:10px;background:#121b2a;overflow:hidden}
.watch-row{position:relative;padding-right:38px;border-bottom:1px solid #5d3a58}
.watch-row:last-child{border-bottom:0}
.watch-row details{display:block;min-width:0}
.watch-row summary{list-style:none;display:flex;align-items:center;gap:9px;padding:7px 5px 7px 9px;min-height:79px;cursor:pointer;outline-offset:-2px}
.watch-row summary::-webkit-details-marker{display:none}
.poster-wrap{display:flex;flex-shrink:0;width:45px;height:65px;align-items:center;justify-content:center;background:linear-gradient(135deg,#16394a,#2a254a 70%,#512b4a);border:1px solid #45556e;border-radius:6px;overflow:hidden;color:#c0e1df}
.poster{display:block;width:100%;height:100%;object-fit:cover}
.poster-fallback{font-size:19px;font-weight:750}
.title-info{flex:1;min-width:0}
.title-line{display:flex;align-items:center;gap:7px;min-width:0}
.title-line h2{margin:0;min-width:0;font-size:15px;line-height:1.35;font-weight:660;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new{font-size:10px;font-weight:800;letter-spacing:.035em;color:#7ef1dc;background:#58e1d017;border-radius:4px;padding:2px 5px;flex-shrink:0}
.title-meta{margin-top:4px;display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;color:#acb9cc;font-size:11px;line-height:1.25}
.title-meta .release{white-space:nowrap}
.episode-inline{font-weight:750;color:#e7b359}
.episode-inline.complete{color:#55d8a5}
.episode-inline.wait{color:#ef8587}
.genre-tags{margin-top:5px;display:flex;flex-wrap:wrap;gap:4px}
.genre-tag{display:inline-block;background:#263244;border-radius:3px;padding:1px 4px;color:#d7be8b;font-size:10px;white-space:nowrap}
.genre-tag:nth-child(2n){color:#80d6b4}.genre-tag:nth-child(3n){color:#f0a2b9}
.provider-badge{flex:0 1 100px;max-width:100px;min-width:0;text-align:center;border:1px solid #40516b;border-radius:6px;padding:6px 5px;color:#c8d5e7;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.provider-badge.empty{color:#6e8098;border-style:dashed}
.rating{flex:0 0 48px;text-align:right}
.rating small{display:block;color:#9baabd;font-size:10px}
.rating strong{display:block;color:#f2cc76;white-space:nowrap;font-size:15px;margin-top:2px}
.rating.missing strong{color:#8595ab}
.chevron{color:#acbdd4;font-size:19px;flex-shrink:0;width:10px;text-align:center;transition:transform .15s}
details[open] .chevron{transform:rotate(180deg)}
.favorite{position:absolute;right:2px;top:18px;width:36px;height:43px;border:0;background:none;font-size:28px;font-weight:400;color:#b0bfd5}
.favorite[aria-pressed=true]{color:var(--accent)}
.favorite:disabled{opacity:.42}
.expanded{padding:4px 12px 16px 63px;color:#b8c7db;font-size:13px;line-height:1.62;overflow-wrap:anywhere}
.expanded p{margin:7px 0}
.expanded strong{color:#e0e9f3}
.expanded .synopsis{font-size:13px;color:#d2dbea;line-height:1.64}
.expanded .original-title{color:#a8bbd1}
.provider-detail{margin:9px 0}
.mini-facts{display:flex;flex-wrap:wrap;gap:7px 16px;color:#9eafc6;font-size:11px;margin:9px 0}
.action-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.action-row button{border:1px solid #40546b;background:#172937;color:var(--accent);border-radius:7px;padding:8px 11px;font-size:12px;min-height:38px}
.action-row button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-muted)}
.note-label{display:block;margin-top:11px;color:#b8c7dc;font-size:12px}
.note-label textarea{display:block;resize:vertical;width:100%;min-height:74px;padding:10px;margin-top:7px;background:#0e1623;border:1px solid #405069;border-radius:7px;color:#eaf1f9;font-size:16px}
.note-label textarea::placeholder{color:#8193a8}
.episode-progress{margin:12px 0;padding:11px 12px;background:#101a28;border:1px solid #354761;border-radius:9px;color:#d5e0ee}
.episode-progress .progress-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.episode-progress .progress-title strong{font-size:13px}
.episode-progress .progress-state{color:var(--progress);font-weight:750}
.episode-progress .progress-track{height:7px;border-radius:999px;background:#354155;margin:9px 0;overflow:hidden}
.episode-progress .progress-track span{height:100%;display:block;background:var(--progress);border-radius:inherit}
.episode-progress .progress-dates{display:flex;flex-wrap:wrap;gap:4px 12px;color:#adbdcf;font-size:11px}
.episode-progress.wait{--progress:#d65d62}
.episode-progress.almost{--progress:#eab04c}
.episode-progress.complete{--progress:#43bf94}
.shared-panel{margin:10px 0;padding:9px 12px;background:#172335;border:1px solid #3e5066;border-radius:8px}
.shared-panel h3{font-size:12px;color:#e5ecf5;margin:0 0 7px}
.shared-panel p{margin:3px 0;color:#afc0d3}
.empty-state{padding:30px 15px;text-align:center;color:#b0bfd2}
.empty-state h2{color:#e0e9f6;font-size:16px;font-weight:650;margin:0 0 7px}
.empty-state p{font-size:12px;margin:0}
.load-more{text-align:center;margin:12px 0}
.load-more button{padding:10px 18px;background:#192b39;border:1px solid #40546b;color:var(--accent);border-radius:8px;font-size:12px}
.footer{border-top:1px solid #263449;color:#90a1b8;display:flex;justify-content:space-between;gap:8px;padding:14px 1px 25px;font-size:11px;margin-top:16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
@media(max-width:700px){
 .header-inner{height:55px;gap:6px}
 .brand{font-size:18px}.brand-symbol{width:35px;height:32px}
 .type-tabs,.profile-tabs{padding:2px}
 .type-tabs button,.profile-tabs button{padding:7px 10px;font-size:12px}
 .view-tabs{min-height:40px;gap:5px}
 .view-tabs button{padding:7px 9px;font-size:11px}
 .search-section{grid-template-columns:minmax(0,1fr) 125px;gap:7px;margin:8px 0 6px}
 .sort-wrap select{font-size:12px}
 .watch-row{padding-right:34px}
 .watch-row summary{gap:6px;min-height:66px;padding:6px 3px 6px 7px}
 .poster-wrap{width:38px;height:56px}
 .title-line h2{font-size:13px}
 .title-meta{font-size:10px;margin-top:3px}
 .genre-tag{font-size:9px}
 .provider-badge{flex:0 1 69px;max-width:69px;font-size:9px;padding:4px 2px}
 .rating{flex-basis:42px}
 .rating strong{font-size:13px}
 .rating small{font-size:9px}
 .chevron{font-size:16px}
 .favorite{width:32px;top:13px;font-size:26px}
 .expanded{padding:5px 10px 13px 50px}
 .footer{flex-direction:column}
}
@media(max-width:410px){
 .shell{width:calc(100% - 18px)}
 .header-inner{gap:4px}
 .brand{font-size:17px;gap:2px}.brand-symbol{width:32px;height:30px}
 .brand-v2{font-size:8px;margin-left:1px}
 .type-tabs button,.profile-tabs button{padding:6px 8px;font-size:11px}
 .view-tabs button{padding:7px 7px}
 .watch-row summary{gap:5px;padding-left:5px}
 .poster-wrap{width:36px;height:52px}
 .provider-badge{flex-basis:62px;max-width:62px;font-size:9px}
 .rating{flex-basis:38px}
 .new{padding:2px 4px;font-size:9px}
 .expanded{padding-left:45px}
}
@media(max-width:360px){
 .brand{font-size:15px}
 .brand-symbol{width:28px}
 .type-tabs button,.profile-tabs button{padding:6px 5px;font-size:10px}
 .poster-wrap{width:34px;height:49px}
 .provider-badge{flex-basis:50px;max-width:50px;font-size:8px}
 .rating{flex-basis:35px}
 .title-line h2{font-size:12px}
 .genre-tags{display:none}
}
@media(prefers-reduced-motion:reduce){.chevron{transition:none}}


/* DATA-FIRST historical parity: render real V1 source-labelled fields without
   inventing verified posters or hiding the title behind empty placeholders. */
.historical-provider{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.historical-score small{font-size:9px;white-space:nowrap}
.historical-score strong{font-variant-numeric:tabular-nums}
.historical-genres .genre-tag{opacity:.86}
.watch-row .title-line h2{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
@media(max-width:700px){
 .watch-row summary{min-height:70px}
 .watch-row .title-line h2{line-height:1.28}
 .historical-score{flex:0 0 48px}
 .historical-score small{font-size:8px}
 .historical-provider{max-width:64px;flex-basis:64px}
}
@media(max-width:410px){
 .historical-provider{max-width:58px;flex-basis:58px}
 .historical-score{flex:0 0 43px}
}

/* Genuine poster via the existing owner-operated metadata endpoint; letter visible until load. */
.poster-wrap{position:relative}
.poster-wrap .poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.poster-wrap .poster-fallback[hidden]{display:none}

/* External metadata is subordinate to the title, never a wall of provenance badges. */
.provider-detail p{margin:5px 0 0;line-height:1.45}
.provider-detail small{display:block;color:#99afc4;font-size:11px;margin-top:6px}
.provider-detail a{display:inline-block;margin-top:6px;color:#91d7e3;text-decoration:underline;text-underline-offset:2px}
.external-release{font-size:12px;color:#acbed0}

/* The movie-only DIGITAL tab must not be exposed on the series screen. */
.view-tabs button[hidden]{display:none!important}
