/* Scoped to TapShow. Existing film/comic/game layouts retain their own rules. */
.ffTapPost{max-width:980px!important;margin-inline:auto!important;overflow:visible!important}.ffTapPost .detailHead{padding-bottom:20px}.ffTapCategory{display:inline-block;color:#42ceff;font-size:var(--fs-secondary);margin-top:12px;text-decoration:none}
.ffTapShell{position:relative;background:#03080d;isolation:isolate;overflow:hidden;border-block:1px solid #23374c;width:100%;aspect-ratio:1.48}.ffTapStage{height:100%;width:100%}.ffTapStage iframe{border:0;display:block;width:100%;height:100%}.ffTapFullscreen{position:absolute;right:16px;bottom:9px;z-index:25;background:#071b28;border:1px solid #29617b;color:#b7edff;border-radius:24px;font-size:var(--fs-secondary);padding:7px 12px;cursor:pointer}.ffTapCover{height:100%;position:relative;display:grid;grid-template-columns:47% 53%;background:#02070c}.ffTapCover>img{height:100%;width:100%;object-fit:contain}.ffTapCoverText{align-self:center;padding:28px}.ffTapCoverText small{color:#52ccff;letter-spacing:2px;font-size:var(--fs-secondary)}.ffTapCoverText h2{font-size:clamp(25px,3vw,37px);line-height:1.15;margin:20px 0}.ffTapCoverText p{font-size:15px;line-height:1.8;color:#a5bacb}.ffTapCoverText button,.ffTapUnlock button:first-of-type{background:#00b9f3;color:#002030;border:0;border-radius:10px;padding:14px 22px;font-weight:700;cursor:pointer}.ffTapCoverText span{display:block;margin-top:18px;font-size:var(--fs-secondary);color:#8ca8ba}.ffTapPlaylist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px;background:#0b1828}.ffTapPlaylist button{padding:14px;text-align:left;border:1px solid #29465d;border-radius:11px;background:#0c1e30;color:#e4f3ff;cursor:pointer}.ffTapPlaylist button[aria-current=true]{background:#08334b;border-color:#00baf3}.ffTapPlaylist strong,.ffTapPlaylist small{display:block}.ffTapPlaylist strong{font-size:var(--fs-secondary);line-height:1.5}.ffTapPlaylist small{font-size:var(--fs-secondary);color:#9db4c8;margin-top:6px}.ffTapIntro{padding:0 18px;color:#8ca8ba;font-size:var(--fs-secondary)}.ffTapPost .detailSocial{position:relative}.ffTapShell.is-full{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;aspect-ratio:auto;z-index:2147483000;border:0;border-radius:0}.ffTapFull{overflow:hidden!important}.ffTapFull #viewer,.ffTapFull #viewerScroll,.ffTapFull .ffTapPost{transform:none!important;filter:none!important;contain:none!important;overflow:visible!important}.ffTapFull [data-gutter],.ffTapFull .viewerTop{visibility:hidden!important;pointer-events:none!important}.ffTapUnlock[hidden]{display:none!important}.ffTapUnlock{position:absolute;inset:0;z-index:40;background:#04101deb;backdrop-filter:blur(15px);display:grid;place-items:center;padding:25px}.ffTapUnlock>div{width:min(500px,100%);text-align:center}.ffTapUnlock small{color:#69d6ff;letter-spacing:2px}.ffTapUnlock h2{font-size:28px}.ffTapUnlock p{font-size:14px;line-height:1.75;color:#a7c0d0}.ffTapUnlock strong{display:block;font-size:35px;margin:20px}.ffTapUnlock button{display:block;width:100%;margin-top:12px;background:#102637;border:1px solid #32566c;color:white;padding:13px;border-radius:9px;cursor:pointer}.ffTapShell button:focus-visible,.ffTapPlaylist button:focus-visible{outline:2px solid #6edeff;outline-offset:3px}
@media(max-width:600px){.ffTapShell{aspect-ratio:auto;height:min(760px,82svh);min-height:540px}.ffTapCover{display:block}.ffTapCover>img{position:absolute;inset:0;opacity:.65}.ffTapCoverText{position:absolute;bottom:0;padding:65px 24px 70px;background:linear-gradient(transparent,#020912 40%);width:100%}.ffTapCoverText h2{font-size:30px}.ffTapPlaylist{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px}.ffTapPlaylist button{flex:0 0 76%;scroll-snap-align:start}.ffTapFullscreen{right:9px;font-size:var(--fs-secondary);padding:6px 9px}.ffTapShell.is-full{min-height:0}}
.ffTapMobileNav{display:none}@media(max-width:760px){.ffTapMobileNav{display:block;margin:10px 0;background:#07293e;color:#57d1ff;border:1px solid #175472;border-radius:20px;padding:7px 14px;font-size:var(--fs-secondary)}}
.ffTapFull .ffDevFab{visibility:hidden!important}
.ffTapFull #viewer{z-index:2147483001!important}.ffTapFull .bottomNav,.ffTapFull #ffDevToggle,.ffTapFull [data-ff-dev-toggle]{visibility:hidden!important;pointer-events:none!important}

/* UX2: demo proportions, clear pause art and prominent discovery. */
.nav[data-mode="tapshow"]{background:linear-gradient(110deg,#07304a,#091b2e)!important;border:1px solid #15799f!important;color:#64d9ff!important;box-shadow:inset 3px 0 #00baff;margin-block:8px!important}
.nav[data-mode="tapshow"] .ffNavLabel{font-weight:650}.ffTapNew{font-size:var(--fs-secondary);border:1px solid #247598;border-radius:3px;padding:1px 3px;margin-left:auto;color:#72dfff}
.ffTapPost .detailHead{padding:18px 22px!important}.ffTapPost .detailTitle{font-size:20px!important;margin-top:14px!important}.ffTapPost .detailDesc{font-size:var(--fs-secondary)!important;line-height:1.7!important}.ffTapPost .ffTapCategory{margin-top:0}
.ffTapCover{grid-template-columns:47% 53%;padding:20px 24px;background:#02070c}.ffTapCover>img{height:100%;min-height:0}.ffTapCoverText{padding:24px 28px}.ffTapCoverText h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-1px}.ffTapCoverText small{border:1px solid #164358;border-radius:4px;padding:7px 9px;font-size:var(--fs-secondary)}.ffTapCoverText p{font-size:var(--fs-secondary)}.ffTapFullscreen{top:15px;bottom:auto}.ffTapPlaylist strong{font-weight:750}.ffTapPlaylist button:first-child:not([aria-current]){background:#08334b;border-color:#00baf3}
@media(max-width:600px){.ffTapCover{padding:0}.ffTapCoverText{padding:28px 22px 65px}.ffTapCover>img{padding:15px 12px 140px}.ffTapPost .detailHead{padding:15px!important}}

/* UX4: restrained navigation and readable Tap choices on small screens. */
.nav[data-mode="tapshow"]{background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;color:#a6ccdf!important;margin-block:0!important}
.nav[data-mode="tapshow"]:hover{background:#0a2033!important;border-color:#1b3d53!important}
.nav[data-mode="tapshow"].active{background:#092339!important;border-color:#20516d!important;color:#d5f3ff!important}
.nav[data-mode="tapshow"] .ffNavLabel{font-weight:500;white-space:nowrap}
.ffTapNew{display:none!important}
.ffTapPlaylist button{min-width:0;position:relative}
.ffTapPlaylist button[aria-current="true"]{box-shadow:inset 3px 0 #37c4ee}
@media(max-width:760px){
.ffTapPost{width:100%!important;min-width:0!important;border-radius:12px!important}
.ffTapPost .detailHead{padding:16px!important}.ffTapPost .detailTitle{font-size:20px!important;line-height:1.35!important}
.ffTapPost .detailDesc{line-height:1.6!important}.ffTapPost .creator{min-width:0;flex-wrap:wrap;row-gap:8px}
.ffTapShell{aspect-ratio:auto;height:clamp(440px,76svh,700px);min-height:0}
.ffTapPlaylist{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px;overflow:visible;scroll-snap-type:none}
.ffTapPlaylist button{width:100%;min-height:72px;padding:13px 16px;flex:none;border-radius:10px;background:#0b1b2c;scroll-snap-align:none}
.ffTapPlaylist strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere;padding-right:6px}
.ffTapPlaylist small{font-size:var(--fs-secondary);line-height:1.6;color:#abc0d0;margin-top:5px;white-space:normal}
.ffTapIntro{font-size:var(--fs-secondary);line-height:1.6;margin:0;padding:2px 16px 16px}
.ffTapFullscreen{min-height:40px;top:8px;right:8px;padding:8px 10px;font-size:var(--fs-secondary)}
.ffTapUnlock{padding:18px;overflow-y:auto}.ffTapUnlock h2{font-size:24px;line-height:1.3}.ffTapUnlock button{min-height:46px}.ffTapUnlock strong{font-size:30px;margin:12px}
.ffTapCover{display:flex;flex-direction:column;gap:0;padding:0;min-height:0}
.ffTapCover>img{position:relative;inset:auto;opacity:1;display:block;width:100%;height:52%;padding:14px 16px 0;object-fit:contain;flex:0 0 52%}
.ffTapCoverText{position:relative;bottom:auto;align-self:stretch;width:100%;padding:14px 22px 20px;background:#02070c;flex:1;min-height:0;overflow:auto}
.ffTapCoverText h2{font-size:27px;margin:12px 0}.ffTapCoverText p{font-size:var(--fs-secondary);line-height:1.65;margin:8px 0 12px}.ffTapCoverText button{min-height:44px;padding:12px 18px}.ffTapCoverText span{margin-top:12px;line-height:1.5}.ffTapCoverText small{font-size:var(--fs-secondary);letter-spacing:1px}
.ffTapShell.is-full{height:100dvh;min-height:0}
}

.ffTapPlaylist button{display:flex;align-items:center;gap:12px}.ffTapThumb{display:block;flex:0 0 48px;width:48px;height:66px;object-fit:cover;object-position:center 25%;border-radius:6px;border:1px solid #ffffff12}.ffTapInfo{display:block;min-width:0;flex:1}.ffTapPlaylist button[aria-current=true] .ffTapThumb{border-color:#40b8df}
@media(max-width:760px){.ffTapPlaylist button{padding:10px 12px;gap:14px}.ffTapThumb{flex-basis:52px;width:52px;height:70px}.ffTapInfo strong{padding:0}}

/* Override FF's global heading typography only inside the TapShow cover. */
.ffTapPost .ffTapCoverText h2{font-family:Georgia,"Times New Roman",serif!important;font-weight:500!important;letter-spacing:-1.1px!important;line-height:1.12!important;color:#edf2fc!important;font-size:clamp(29px,3vw,38px)!important;margin:18px 0 20px!important}
.ffTapPost .ffTapCoverText button{font-size:var(--fs-secondary)!important;font-weight:700!important;min-height:44px;padding:12px 19px!important}
.ffTapCoverText span{max-width:335px;line-height:1.75}
@media(min-width:761px){.ffTapCover{grid-template-columns:47% 53%;padding:20px 26px}.ffTapCoverText{padding:20px 28px;transform:translateY(-16px)}.ffTapCoverText p{margin:0 0 22px;line-height:1.8}}
@media(max-width:760px){.ffTapPost .ffTapCoverText h2{font-size:27px!important;margin:12px 0!important}.ffTapCoverText{transform:none}}

@media(max-width:760px){.ffTapShell:has(.ffTapCover){height:auto;min-height:0}.ffTapCover{overflow:visible}.ffTapCover>img{padding:0;width:100%;height:300px;max-height:42svh;min-height:230px;flex:none;object-fit:cover;object-position:center 28%}.ffTapCoverText{overflow:visible;padding:22px}.ffTapCoverText p{font-size:14px}.ffTapPost .detailSocial{padding-bottom:calc(85px + env(safe-area-inset-bottom))}}

/* UX7: restore uncropped portrait composition on the mobile cover. */
@media(max-width:760px){
.ffTapCover>img{object-fit:contain!important;object-position:center!important;width:100%;height:clamp(245px,42svh,350px);max-height:none;min-height:0;padding:18px 20px 0;background:#02070c}
.ffTapCoverText{padding:18px 22px 24px}.ffTapCoverText span{font-size:var(--fs-secondary);line-height:1.6}
}

/* UX8: owner-approved mobile cover, portrait aligned with the text column. */
@media(max-width:760px){.ffTapCover>img{object-position:left center!important;padding-left:22px!important;padding-right:22px!important}}

.ffTapBrand{position:absolute;right:5%;top:72px;display:flex;gap:9px;align-items:center;color:#7ca5ba;font-size:var(--fs-secondary);letter-spacing:1px}.ffTapBrand img{width:34px;height:30px;object-fit:contain}.ffTapFullscreen{padding-inline:16px!important;white-space:nowrap;line-height:1.4}
@media(max-width:760px){.ffTapCover>img{padding-right:44%!important}.ffTapBrand{right:18px;top:94px;width:calc(42% - 24px);display:flex;flex-direction:column;gap:12px;text-align:center}.ffTapBrand img{width:58px;height:48px}.ffTapBrand span{font-size:var(--fs-secondary);letter-spacing:2px}.ffTapFullscreen{right:12px;top:12px;padding-inline:14px!important}}

/* UX10: host button aligns with the player's action row. */
.ffTapFullscreen{top:15px;right:18px;padding:7px 14px!important;height:34px;min-height:34px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1;max-width:124px}
.ffTapBrand{top:auto;bottom:28%;right:5%}
@media(max-width:760px){.ffTapFullscreen{top:10px;right:10px;height:36px;min-height:36px;max-width:110px;padding:7px 12px!important;font-size:var(--fs-secondary)}.ffTapBrand{top:140px;bottom:auto;right:20px}.ffTapBrand img{width:82px;height:70px}.ffTapShell:not(.is-full){scroll-margin-bottom:90px}.ffTapPlaylist{padding-bottom:18px}}

/* UX11 */
@media(min-width:761px){.ffTapShell.is-full .ffTapFullscreen{right:max(18px,calc((100% - max(720px,66.6667dvh))/2 + 18px));top:14px}.ffTapBrand{left:calc(47% + 28px);right:auto;top:auto;bottom:9%;}.ffTapShell.is-full .ffTapBrand{left:50%;right:auto;bottom:14%;transform:translateX(-50%)}}
@media(max-width:760px){.ffTapBrand{top:clamp(95px,18svh,145px);bottom:auto;right:24px}.ffTapBrand img{width:100px;height:85px}}

.ffTapShell.is-image-viewing .ffTapFullscreen{visibility:hidden!important;pointer-events:none!important}

/* UX14: entry logo follows the instruction block, as in the approved preview. */
.ffTapEntryBrand{display:none}
@media(min-width:761px){
.ffTapShell:not(.is-full) .ffTapCover>.ffTapBrand{display:none}
.ffTapShell:not(.is-full) .ffTapEntryBrand{position:absolute;top:calc(100% + 28px);left:28px;display:flex;align-items:center;gap:9px;color:#7ca5ba;font-size:var(--fs-secondary);letter-spacing:1px;pointer-events:none}
.ffTapEntryBrand img{width:34px;height:30px;object-fit:contain}
.ffTapCoverText .ffTapEntryBrand span{margin:0;line-height:1.5;color:inherit;font-size:var(--fs-secondary)}
}

/* Mobile and desktop share the exact same TapShow icon. */
@media(max-width:760px){.ffTapMobileNav{display:inline-flex;align-items:center;gap:8px;line-height:1.4}.ffTapMobileNav svg{display:block;width:24px;height:24px;flex:0 0 24px}.ffTapMobileNav span{white-space:nowrap}}

.ffTapEntryControls{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.ffTapPost .ffTapEntryControls button{background:transparent;border:1px solid #29617b;color:#b7edff;margin:0}.ffTapPost .ffTapEntryControls button[aria-pressed=true]{background:#06394c;border-color:#00bdec}
/* FIX1: cover-to-scene swap only after the current art has loaded. */
.ffTapStage{position:relative}
.ffTapStage.is-loading>iframe{position:absolute;inset:0;opacity:0;pointer-events:none}
.ffTapStage.is-loading .ffTapCoverText,.ffTapStage.is-loading .ffTapBrand{visibility:hidden}
.ffTapStage.is-loading .ffTapCover{display:block;padding:0}
.ffTapStage.is-loading .ffTapCover>img{width:100%;height:100%;object-fit:contain;opacity:.7}
.ffTapLoading{position:absolute;inset:auto 0 12%;display:flex;justify-content:center;align-items:center;gap:12px;color:#d7f3ff;font-size:14px;text-shadow:0 1px 5px #000}
.ffTapRetry{border:1px solid #29617b;border-radius:8px;background:#071b28;color:#d7f3ff;padding:9px 14px;cursor:pointer}
.ffTapRetry[hidden]{display:none}

/* B22-ALL20: keep the approved vertical placement and center both controls
   in the black column between the preview edge (56%) and the player edge. */
@media(max-width:760px){
 .ffTapShell:not(.is-full) .ffTapFullscreen{
  left:78%;right:auto;width:110px;transform:translateX(-50%)
 }
 .ffTapShell:not(.is-full) .ffTapBrand{
  left:78%;right:auto;transform:translateX(-50%)
 }
}

/* Matches the player frame chrome inset, including bounded wide layouts. */
.ffTapShell .ffTapFullscreen{
 left:auto!important;right:16px!important;top:16px!important;bottom:auto!important;transform:none!important
}
.ffTapShell.is-full:not(.is-wide) .ffTapFullscreen{
 right:max(16px,calc((100% - max(720px,66.6667dvh))/2 + 16px))!important
}
.ffTapShell.is-full.is-wide .ffTapFullscreen{right:calc(5% + 16px)!important;top:16px!important}
@media(max-width:760px), (orientation:landscape) and (max-height:520px){
 .ffTapShell .ffTapFullscreen{top:12px!important;right:12px!important}
 .ffTapShell.is-full:not(.is-wide) .ffTapFullscreen{right:12px!important}
 .ffTapShell.is-full.is-wide .ffTapFullscreen{right:calc(5% + 12px)!important;top:12px!important}
}
@media(min-width:1600px) and (min-height:521px){
 .ffTapShell.is-full.is-wide .ffTapFullscreen{right:calc(50% - 664.8px + 16px)!important}
}
.ffTapShell.is-image-viewing .ffTapFullscreen{visibility:visible!important;pointer-events:auto!important}
/* Leave a 48px slot for the landscape ellipsis on the same top row. */
.ffTapShell.is-full.is-wide .ffTapFullscreen{right:calc(5% + 16px + 48px)!important}
@media(orientation:landscape) and (max-height:520px){
 .ffTapShell.is-full.is-wide .ffTapFullscreen{right:calc(5% + 12px + 48px)!important}
}
@media(min-width:1600px) and (min-height:521px){
 .ffTapShell.is-full.is-wide .ffTapFullscreen{right:calc(50% - 664.8px + 16px + 48px)!important}
}
.ffTapShell.is-full.is-wide .ffTapFullscreen{height:40px!important;min-height:40px!important}

/* Center entry branding and fullscreen on the right half of the hero. */
@media(max-width:760px) and (orientation:portrait){
 .ffTapCover>img{padding-right:50%!important}
 .ffTapShell:not(.is-full) .ffTapCover>.ffTapBrand{
  left:75%!important;right:auto!important;width:calc(50% - 24px)!important;
  top:calc(clamp(245px,42svh,350px)/2 + 9px)!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important
 }
 .ffTapShell:not(.is-full):has(.ffTapCover) .ffTapFullscreen{
  left:75%!important;right:auto!important;transform:translateX(-50%)!important
 }
}

/* Keep the small on-art wordmark in the initial preview too. */
.ffTapCornerBrand{position:absolute;left:8%;top:32px;z-index:2;display:flex;align-items:center;gap:4px;pointer-events:none;color:#a6e7ff;text-shadow:0 1px 4px #000;font-size:var(--fs-secondary);font-weight:750;letter-spacing:1px}
.ffTapCornerBrand img{display:block;width:20px;height:17px;object-fit:contain}
@media(max-width:760px){.ffTapCornerBrand{left:34px;top:50px}}
.ffTapStage.is-loading .ffTapCornerBrand{visibility:hidden}

/* Keep iOS text autosizing inside TapShow articles at the authored size.
   This is inherited by their comments, without changing non-TapShow posts or pinch zoom. */
.ffTapPost{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ffTapPost .detailHead,.ffTapPost .detailSocial{min-width:0;overflow-wrap:break-word}

/* G5i: at phone width the corner "TAPSHOW" label sat on the poster's top-left; the poster is the cover, so the label is not drawn there (full screen keeps it) */
@media(max-width:760px){.ffTapShell:not(.is-full) .ffTapCornerBrand{display:none}}
/* Owner #1520 (TapShow fullscreen): language control in the host chrome row, left of the Fullscreen/Exit button. 32px V5 chip; the list stays the shared bottom sheet. */
.ffTapChromeRow{position:absolute;z-index:6;display:flex;align-items:center;box-sizing:border-box;transition:opacity .2s}
.ffTapChromeRow[hidden]{display:none!important}
.ffTapChromeRow>.ffTapLangMenu{margin:0!important;position:static}
.ffTapChromeRow .ffTapLangButton{height:32px!important;min-height:32px!important;padding:0 9px!important;background:#10283ccc}
.ffTapChromeRow .ffTapLangList{z-index:2147483002;bottom:0!important;max-height:min(75dvh,calc(100dvh - 24px))}
.ffTapChromeRow .ffLpBackdrop{z-index:2147483001}
body.ffTapFull .ffTapLangCompact:has(.ffTapLangList:not([hidden])) .ffLpBackdrop{z-index:2147483001}
.ffTapChromeRow:has(.ffTapLangList:not([hidden])){z-index:2147483002}
.ffTapChromeRow{max-width:calc(100% - 140px)}
.ffTapChromeRow .ffTapLangButton{max-width:100%}
.ffTapChromeRow .ffTapLangValue{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* SYS08 #1524: no selector = nothing visible (singleton option): no empty menu box, no empty chrome row */
.ffTapLangMenu:empty{display:none!important}
.ffTapChromeRow:not(:has(.ffTapLangButton)){display:none!important}

/* #1520 TapShow QA fixes: D1 mobile: the sheet must paint above its own backdrop (core .ffTapLangCompact .ffTapLangList z 990 beat our z); D2 PC: the absolute dropdown must not be squashed by bottom:0 */
.ffTapChromeRow .ffTapLangMenu .ffTapLangList{z-index:2147483003}
@media(min-width:701px){.ffTapChromeRow .ffTapLangMenu .ffTapLangList{bottom:auto!important;max-height:min(75dvh,calc(100dvh - 90px))}}
/* SYS08 #1531: phone portrait fullscreen: while the chrome row (A/文 + language) is shown the player frame starts below it, so the work title / Tap line are never covered (Exit keeps its Owner659 96px two-line pill) */
@media(max-width:480px){.ffTapShell.is-full:has(.ffTapChromeRow:not([hidden])) .ffTapStage iframe{margin-top:56px;height:calc(100% - 56px)}}
