/* Scoped additions. No dimensions or transforms on the existing scene. */
.discoveryAccess{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:14px;width:44px;height:44px;border:0;background:transparent;color:#eee;font:32px Georgia,serif;opacity:.76;cursor:pointer;touch-action:manipulation}
.discoveryAccess:focus-visible{outline:2px solid #f4df82;outline-offset:2px;border-radius:50%}
.discoveryDialog{margin:0;inset:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;color:#f6f4ed;background:rgba(8,9,13,.95);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.discoveryDialog::backdrop{background:rgba(0,0,0,.45)}
.discoveryShell{position:relative;max-width:680px;margin:auto;padding:calc(56px + env(safe-area-inset-top)) 24px calc(36px + env(safe-area-inset-bottom));box-sizing:border-box}
.discoveryShell h2{font-size:clamp(24px,5vw,42px);font-weight:500;line-height:1.15;margin:16px 0 26px}.discoveryShell button{color:inherit;font:inherit;cursor:pointer}.discoveryShell .discoveryClose{position:absolute;right:16px;top:calc(10px + env(safe-area-inset-top));width:44px;height:44px;border:0;background:transparent;font-size:28px;display:grid;place-items:center}
.discoveryLabel{display:block;font-size:14px;color:#bbb}.discoveryShell input{box-sizing:border-box;width:100%;min-height:48px;margin:12px 0;background:transparent;border:0;border-bottom:1px solid #888;border-radius:0;color:inherit;font:inherit;font-size:20px;padding:10px 0;scroll-margin-block:70px}
.discoveryFeedback{min-height:1.5em;font-size:13px;color:#bbb}.discoveryResults{display:grid;gap:8px}.discoveryResult{display:flex;gap:16px;align-items:center;text-align:left;background:transparent;border:0;border-bottom:1px solid #ffffff20;padding:12px 0;min-height:72px;width:100%}.discoveryResult img{width:48px;height:62px;object-fit:cover;border-radius:4px}.discoveryResult span{display:grid;gap:4px}.discoveryResult small{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#ccb879}.discoveryResult strong{font-size:18px;font-weight:500}
.discoveryLanding{text-align:center}.discoveryPoster{display:block;width:100%;max-height:46vh;object-fit:contain;margin:0 auto 24px}.discoveryEyebrow{text-transform:uppercase;letter-spacing:.18em;color:#d3c38c}.discoveryLanding>button:not(.discoveryClose){display:block;min-height:44px;margin:12px auto;padding:10px 22px;background:transparent;border:1px solid #ffffff45;border-radius:30px}.discoveryLanding>button:not(.discoveryClose):first-of-type{background:#eee;color:#111}.discoveryShell button:focus-visible,.discoveryShell input:focus-visible{outline:2px solid #e5cc7e;outline-offset:4px}
@media(prefers-reduced-motion:no-preference){.discoveryShell{animation:discoveryIn .22s ease-out}@keyframes discoveryIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}

.footer button.discoveryAccess{font-size:30px!important;line-height:1;letter-spacing:0;padding:8px}.discoveryAccess svg{width:22px;height:22px;display:block}

/* 1.1.17-rc.3: original Categories rail + independent, small search access. */
#categoryWidget.discoveryPair{pointer-events:none;--search-rest-x:84px}
#categoryWidget.discoveryPair .categories{width:82px;pointer-events:auto}
#categoryWidget.discoveryPair .categoryPopover{pointer-events:auto}
#categoryWidget.discoveryPair.expanded .categories{pointer-events:none}
#categoryWidget.discoveryPair .discoveryAccess{position:absolute;left:3px;top:calc(50% - 22px);bottom:auto;width:44px;height:44px;padding:0;display:grid;place-items:center;pointer-events:auto;transform:translateX(var(--search-rest-x));transition:transform 300ms ease,opacity 220ms ease,visibility 0s;color:#f5f2df;opacity:.88;filter:drop-shadow(0 1px 3px #0009) drop-shadow(2px 2px 0 #f4db3129) drop-shadow(-1px 1px 0 #ff4abd24)}
#categoryWidget.discoveryPair .discoveryAccess svg{width:12.5px;height:12.5px;display:block;justify-self:start}
.app.homeControlsAway #categoryWidget.discoveryPair .categories{opacity:0;visibility:hidden;pointer-events:none;transition:opacity 260ms ease,visibility 0s linear 260ms}
.app.homeControlsAway #categoryWidget.discoveryPair .discoveryAccess{transform:translateX(0)}
#categoryWidget.discoveryPair.expanded .discoveryAccess{opacity:0;visibility:hidden;pointer-events:none}
.app #categoryWidget.discoveryPair:not(.expanded){opacity:1}
.app.sceneQuiet #categoryWidget.discoveryPair:not(.expanded):not(:focus-within){opacity:.88}
.app.sceneMoving #categoryWidget.discoveryPair:not(.expanded):not(:focus-within){opacity:.78}
/* Search stays small and translucent; film landing screens are untouched. */
dialog.discoverySearch{background:transparent!important;overflow:hidden;overscroll-behavior:contain}
dialog.discoverySearch::backdrop{background:rgba(0,0,0,.12)}
.discoverySearch .discoveryShell{position:fixed;top:max(calc(env(safe-area-inset-top) + 12px),var(--search-top,22dvh));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));width:auto;max-width:420px;margin:0;padding:14px 18px 18px;max-height: min(420px,calc(var(--search-vh,100dvh) * .72));display:grid;grid-template-rows:auto auto auto minmax(0,1fr);border:1px solid #ffffff18;border-radius:14px;background:linear-gradient(150deg,rgba(14,16,20,.87),rgba(14,16,20,.76));box-shadow:0 12px 35px #0003;overflow:hidden}
.discoverySearch h2{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:400;margin:0 48px 8px 0;min-height:28px;display:flex;align-items:center}
.discoverySearch h2:focus{outline:none}
.discoverySearchHeader{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding-right:32px;min-height:44px;margin:-9px 0 0}
.discoverySearchHeader h2{margin:0;min-height:44px}
.discoveryCategoryField{position:relative;min-width:0}
.discoveryCategoryField::after{content:'';position:absolute;right:4px;top:18px;width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);pointer-events:none;color:#dbd7c9}
.discoverySearch .discoveryCategory{display:block;box-sizing:border-box;appearance:none;-webkit-appearance:none;border:0;border-radius:0;background:transparent;color:#e3decf;width:100%;min-width:0;height:44px;padding:0 18px 0 5px;font:inherit;font-size:16px;line-height:1.2;text-overflow:ellipsis;cursor:pointer;touch-action:manipulation;color-scheme:dark}
.discoverySearch .discoveryCategory:focus-visible{outline:2px solid #e5cc7e;outline-offset:0;border-radius:4px}
.discoverySearch .discoveryCategory option{background:#191b1e;color:#f6f4ed}
.discoverySearch .discoveryClose{top:5px;right:5px;font-size:23px;width:44px;height:44px}
.discoverySearch .discoveryLabel{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.discoverySearch input{font-size:16px;min-height:44px;margin:0;padding:8px 0;border-bottom-color:#ffffff60}
.discoverySearch .discoveryFeedback{font-size:12px;min-height:0;margin:10px 0 6px}
.discoverySearch .discoveryFeedback:empty{margin:6px 0 0}
.discoverySearch .discoveryResults{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;gap:0;padding:0 5px 3px;margin:0 -5px}
.discoverySearch .discoveryResult{gap:12px;min-height:60px;padding:9px 0}
.discoverySearch .discoveryResult img{width:34px;height:44px}
.discoverySearch .discoveryResult span{min-width:0}
.discoverySearch .discoveryResult strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.discoverySearch .discoveryResult small{font-size:10px;letter-spacing:.07em}
@media(min-width:601px){#categoryWidget.discoveryPair{--search-rest-x:96px}#categoryWidget.discoveryPair .categories{width:94px}#categoryWidget.discoveryPair .discoveryAccess{left:8px}.discoverySearch .discoveryShell{left:max(24px,env(safe-area-inset-left));right:24px}}
@media(prefers-reduced-motion:reduce){#categoryWidget.discoveryPair .discoveryAccess,.app.homeControlsAway #categoryWidget.discoveryPair .categories{transition:none!important}}
