/* Web art direction · 2026-10-23. Native Android styling is independent. */
:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --panel: #161618;
  --panel-hover: #202023;
  --line: #ffffff14;
  --text: #f4f1eb;
  --muted: #aaa6a4;
  --accent: #f0d39a;
  --warm: #f0d39a;
  --gutter: clamp(24px, 3.4vw, 48px);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand-font: "Avenir Next", var(--font);
  --display: var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .35; cursor: not-allowed; }
[hidden] { display: none !important; }
.distribution-status {
  display:grid; align-content:center; justify-items:center; gap:18px; min-height:100dvh;
  padding:24px; text-align:center; background:#0b0a0c;
}
.distribution-status h1 { max-width:34rem; font-size:clamp(20px,3vw,28px); line-height:1.3; }
.distribution-status h1:focus { outline:none; }
.distribution-status button { min-height:44px; }
.distribution-channel :is([data-product-action="account"],[data-product-action="checkin"],
  [data-product-action="upload"],[data-product-action="wallet"],[data-product-action="vip"],
  #open-settings,[data-settings-support="advanced"]) { display:none !important; }
.distribution-channel:not(.distribution-install-enabled) [data-product-action="install"] { display:none !important; }
.distribution-channel .native-profile-page .channel-profile-brand {
  margin:0 0 5px; color:var(--accent); font-weight:700; overflow-wrap:anywhere;
}
.distribution-channel .age-wordmark { text-align:center; }
.distribution-channel .age-wordmark img { object-fit:contain; }
.distribution-channel .age-wordmark strong { color:var(--accent); overflow-wrap:anywhere; }
.distribution-channel .age-card h1 { color:var(--accent); }
.distribution-channel .age-primary {
  background:var(--accent); border-color:var(--accent); color:#171219;
}
@media (max-width:760px) {
  .distribution-channel :is(.home-view .site-header,.site-header) { grid-template-columns:minmax(0,1fr); }
  .distribution-channel.distribution-install-enabled :is(.home-view .site-header,.site-header) {
    grid-template-columns:minmax(0,1fr) 44px;
  }
}
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.mirror { transform: rotate(180deg); }
/* Official Lucide icons stay external assets, with a single monochrome treatment. */
img[src*="assets/icon-"] { filter: invert(1); }
.site-header {
  height: 88px; display: flex; align-items: center; gap: 32px;
  padding: 0 max(var(--gutter), calc((100vw - 1344px) / 2));
  position: sticky; top: 0; z-index: 20; background: #0c0c0ef5;
  border-bottom: 1px solid var(--line); backdrop-filter: blur(20px);
}
.site-header nav { display: flex; align-items: center; align-self: stretch; gap: 26px; }
.nav-link { position: relative; display: flex; align-items: center; height: 100%; font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .18s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; bottom: 21px; left: 0; right: 0; height: 2px; background: var(--accent); }
.search { display: flex; align-items: center; gap: 10px; margin-left: auto; width: min(260px, 22vw); padding: 0 12px 0 16px; min-height: 44px; border: 1px solid #ffffff1c; background: #ffffff04; border-radius: 999px; transition: border-color .18s, background .18s; }
.search:focus-within { border-color: var(--accent); background: #ffffff08; outline: 2px solid var(--accent); outline-offset: 3px; }
.search .search-icon { width: 17px; height: 17px; opacity: .6; flex: none; }
.search input { width: 100%; min-width: 0; border: 0; background: none; color: var(--text); font-size: 12px; outline: none; }
.search input::placeholder { color: #979294; }
.search button { display: grid; place-items: center; min-width: 30px; min-height: 38px; padding: 5px; background: none; border: 0; flex: none; }
.search button img { width: 17px; height: 17px; opacity: .65; }
.settings-button { display: grid; place-items: center; flex: none; width: 40px; height: 44px; padding: 10px; border: 0; background: none; border-radius: 50%; opacity: .65; }
.settings-button img { width: 21px; height: 21px; }
.settings-button:hover { opacity: 1; background: #ffffff08; }
main { max-width: 1440px; margin: auto; min-height: calc(100vh - 184px); min-height: calc(100dvh - 184px); }
.page { padding: 32px var(--gutter) 64px; }
.featured-shell { position: relative; margin-bottom: 50px; }
.featured-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; border-radius: 10px; }
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-card { position: relative; isolation: isolate; flex: 0 0 100%; height: clamp(460px, 41vw, 580px); overflow: hidden; scroll-snap-align: start; border-radius: 10px; background: #18171a; color: #fff; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: blur(18px); opacity: .25; transform: scale(1.05); z-index: -3; }
.hero-poster { position: absolute; right: 0; top: 0; height: 100%; width: 58%; object-fit: cover; object-position: 50% 29%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #171518 8%, #171518f0 32%, #17151888 52%, #17151800 74%), linear-gradient(0deg, #111014b3, transparent 55%); }
.hero-copy { position: absolute; left: 5.2%; top: 50%; transform: translateY(-50%); width: 48%; max-width: 580px; padding: 16px 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .25em; font-weight: 600; color: #f1d2c4; margin-bottom: 24px; }
.hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: #f1d2c4; }
.hero-title { font-family: var(--display); font-size: clamp(46px, 5.5vw, 76px); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { color: #e2d9d7; font-size: 12px; margin-top: 24px; line-height: 1.8; }
.hero-meta span { color: #d6bdb5; margin: 0 5px; }
.hero-synopsis { font-size: 14px; line-height: 1.85; color: #c3babb; max-width: 380px; margin-top: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-cta { margin-top: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 25px; border-radius: 999px; background: #f4f1eb; color: #171518; font-size: 13px; font-weight: 600; transition: background .18s, transform .18s; }
.hero-cta img[src*="assets/icon-"] { width: 17px; height: 17px; filter: none; }
.hero-note { display: block; margin-top: 16px; font-size: 10px; line-height: 1.6; color: #b7a5a4; }
.featured-controls { display: flex; justify-content: flex-end; align-items: center; gap: 13px; margin-top: 17px; }
.featured-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid #ffffff25; background: transparent; border-radius: 50%; }
.featured-controls button img { width: 18px; height: 18px; opacity: .8; }
.featured-controls button:hover { background: #ffffff0d; border-color: #ffffff50; }
#featured-page { min-width: 47px; text-align: center; font-size: 10px; letter-spacing: .18em; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { display: block; font-size: 9px; letter-spacing: .23em; color: var(--accent); font-weight: 600; }
.page-heading h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.18; letter-spacing: -.04em; margin: 11px 0; text-wrap: balance; }
.page-heading p { font-size: 13px; color: var(--muted); }
.count-label { font-size: 11px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }
#discover-view .page-heading { margin-top: -3px; }
.categories { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.categories button { min-height: 42px; border: 1px solid #ffffff1c; background: transparent; color: #b7b1b3; border-radius: 999px; padding: 8px 20px; font-size: 12px; transition: background .18s, color .18s, border-color .18s; }
.categories button.active { color: #191719; border-color: var(--warm); background: var(--warm); font-weight: 600; }
.arrivals-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.arrivals-heading h2 { font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.arrivals-heading h2 span { font-size: 11px; color: #969093; margin-left: 13px; font-weight: 400; letter-spacing: .01em; }
.arrivals-heading > span { font-size: 11px; color: #969093; white-space: nowrap; }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
.poster-grid[data-count="1"], .poster-grid[data-count="2"], .poster-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#catalog > .catalog-shelf-heading { grid-column:1 / -1; margin-block:8px 0; }
.poster-card { display: block; min-width: 0; color: inherit; text-align: left; border: 0; padding: 0; background: none; }
.poster-image { position: relative; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: #1c191e; border: 1px solid #ffffff0d; transition: border-color .2s; }
.poster-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.home-card-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; }
.home-card-preview.is-playing { opacity: 1; }
.home-card-preview.is-playing ~ img { opacity: 0; }
.poster-image::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #09080bc7); pointer-events: none; }
.poster-fallback { font: italic 48px var(--display); color: #73666c; }
.poster-badge { position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 10px; font-weight: 500; color: #fff; text-shadow: 0 1px 4px #000; }
.demo-badge { position: absolute; top: 13px; left: 13px; z-index: 1; padding: 3px 7px; border: 1px solid #ffffff45; border-radius: 4px; color: #fff; background: #100d15a6; font-size: 8px; font-weight: 600; letter-spacing: .12em; backdrop-filter: blur(8px); }
.poster-card h3 { font-size: 14px; line-height: 1.45; font-weight: 500; margin: 15px 0 5px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-card p { font-size: 11px; line-height: 1.7; color: #a19a9e; }
.home-install-banner {
  display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;
  margin:8px 0 12px;padding:10px 13px;border:1px solid #f0d39a42;border-radius:14px;
  background:radial-gradient(ellipse at top left,#4b3223,transparent 72%),#201917;color:#fff5e6;
}
.home-install-banner > .install-promo-art { --install-art-size:46px; }
.home-install-copy { min-width:0;overflow-wrap:anywhere; }
.home-install-copy h2 { margin:0;font-size:15px;font-weight:700;line-height:1.3; }
.home-install-copy p { margin:3px 0 0;color:#cbc3b8;font-size:12px;line-height:1.4; }
.home-install-banner button {
  min-height:44px;max-width:14ch;padding:6px 12px;border:0;border-radius:9px;
  color:#261d0f;background:#f0d39a;font-size:13px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;
}
.home-install-banner button:hover { background:#ffe6b2; }
@media (min-width:761px) {
  .home-install-banner button { max-width:24ch; }
}
@media(max-width:420px) {
  .home-install-banner { grid-template-columns:40px minmax(0,1fr) auto;gap:9px;padding:8px 10px; }
  .home-install-banner > .install-promo-art { --install-art-size:40px; }
  .home-install-banner button { max-width:104px;padding-inline:9px;font-size:12px; }
}
.home-view .hero-meta > .hero-mobile-meta,
.home-view #catalog .poster-meta > .poster-mobile-meta { display: none; }
.watch-progress { height: 2px; margin-top: 12px; background: #33272b; overflow: hidden; }
.watch-progress span { display: block; height: 100%; background: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.5; transition: background .18s, border-color .18s; }
.primary { background: #b82d48; color: #fff; }
.primary:hover:not(:disabled) { background: #c63653; }
.secondary { background: #ffffff07; border-color: #ffffff20; color: #e4dce0; }
.secondary:hover:not(:disabled) { background: #ffffff10; border-color: #ffffff35; }
.state-card { padding: 58px 28px; margin: 20px 0 32px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); grid-column: 1/-1; }
.state-icon { display: block; width: 29px; height: 29px; opacity: .65; margin: 0 auto 22px; }
.state-card h2 { font-size: 23px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.state-card p { max-width: 480px; margin: 0 auto 25px; font-size: 13px; line-height: 1.85; color: var(--muted); overflow-wrap: anywhere; }
.library-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: 34px 0 28px; }
.library-tabs button { min-height: 48px; padding: 10px 0 18px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.library-tabs button.active { color: var(--text); border-color: var(--accent); }
.library-tabs button span { margin-left: 8px; color: #aaa1a6; font-size: 10px; }
.library-list { display: flex; flex-direction: column; gap: 17px; max-width: 1080px; }
.library-row { display: flex; align-items: center; gap: 26px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: none; text-align: left; transition: background .18s; }
.library-poster { flex: none; width: 110px; aspect-ratio: 2/3; overflow: hidden; border-radius: 6px; background: #292228; display: grid; place-items: center; }
.library-poster img { width: 100%; height: 100%; object-fit: cover; }
.library-poster > span { font: italic 40px var(--display); color: #99808c; }
.library-row > div:nth-child(2) { min-width: 0; }
.library-row h3 { margin-bottom: 9px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.library-episode { color: #d8bac1; font-size: 12px; }
.library-row p { max-width: 650px; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.library-arrow { margin-left: auto; flex: none; }
.library-arrow img { width: 20px; height: 20px; opacity: .5; }
.profile-heading { display: flex; gap: 22px; align-items: center; margin: 25px 0 38px; }
.profile-avatar { display: grid; place-items: center; flex: none; width: 80px; height: 80px; border: 1px solid #ffffff20; border-radius: 50%; background: #ffffff05; }
.profile-avatar img { width: 30px; height: 30px; opacity: .8; }
.profile-heading h1 { font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.profile-heading p { margin-top: 5px; font-size: 13px; color: var(--muted); }
.profile-stats { display: flex; max-width: 440px; margin-bottom: 38px; }
.profile-stats > div { display: flex; flex-direction: column; flex: 1; }
.profile-stats strong { font-size: 34px; font-weight: 400; line-height: 1.2; color: var(--warm); }
.profile-stats span { margin-top: 8px; font-size: 12px; color: var(--muted); }
.profile-menu { max-width: 680px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.profile-menu button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 66px; padding: 19px 24px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font-size: 14px; }
.profile-menu button:last-child { border: 0; }
.profile-menu button:hover { background: #ffffff04; }
.profile-menu button img { width: 18px; height: 18px; opacity: .5; }
.profile-hint { margin-top: 23px; color: #999096; font-size: 11px; }
.detail-page { padding: 26px var(--gutter) 64px; }
.back-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 22px -6px; padding: 6px; border: 0; background: none; color: var(--muted); font-size: 12px; }
.back-button img { width: 19px; height: 19px; opacity: .7; }
.detail-layout { display: grid; grid-template-columns: minmax(300px, 480px) minmax(0, 1fr); align-items: start; gap: 64px; max-width: 1200px; margin: auto; }
.player-column { min-width: 0; }
.player-wrap { position: relative; display: flex; justify-content: center; width: 100%; height: min(calc(100vh - 290px), 760px); height: min(calc(100dvh - 290px), 760px); min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; }
.player-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: #151214; }
.player-state-icon { width: 34px; height: 34px; opacity: .65; margin-bottom: 22px; }
.player-state h2 { font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.player-state p { max-width: 310px; margin: 15px 0 26px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.player-rail { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: flex-end; gap: 8px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .18s; }
.player-wrap:hover .player-rail, .player-wrap:focus-within .player-rail { opacity: 1; pointer-events: auto; }
.player-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 39px; min-height: 39px; padding: 10px; border: 1px solid #ffffff30; border-radius: 6px; background: #100c11b3; color: #fff; }
.player-rail button > img { height: 18px; width: 18px; object-fit: contain; }
.player-rail button[aria-pressed="true"] { border-color: #ee526fb3; background: #7d253ac4; }
.player-rail small { display: none; }
.player-info-overlay { display: none; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.player-toolbar > span { font-size: 11px; color: var(--muted); text-align: center; }
.player-toolbar .button { font-size: 11px; padding: 9px 13px; }
.playback-controls { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; min-height: 36px; }
.playback-controls > span { color: #a99ca4; font-size: 10px; }
.speed-button { min-height: 36px; padding: 5px 11px; border: 1px solid #ffffff25; border-radius: 5px; background: none; color: #dfd6da; font-size: 11px; }
.fullscreen-button { min-height: 36px; padding: 5px 12px; font-size: 10px; }
.playback-note { min-height: 19px; margin-top: 10px; color: #b09ca6; font-size: 11px; line-height: 1.8; }
.keyboard-help { margin-top: 15px; color: #9d8f98; font-size: 9px; line-height: 2.4; text-align: center; }
.keyboard-help span { margin: 0 3px; color: #76646d; }
.keyboard-help kbd { display: inline-block; min-width: 18px; padding: 0 4px; margin-right: 3px; border: 1px solid #ffffff20; border-radius: 3px; background: #ffffff05; color: #d8cdd3; font: 9px/1.7 var(--font); }
.story-column { min-width: 0; padding-top: 12px; }
.detail-category { color: var(--accent); font-size: 10px; letter-spacing: .16em; line-height: 1.7; margin-bottom: 17px; }
.story-column h1 { font: 400 clamp(36px, 4vw, 54px)/1.08 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.detail-meta { margin: 21px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.synopsis { max-height: 180px; overflow: auto; color: #bcb1b8; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.favorite-button { margin-top: 26px; min-width: 145px; }
.favorite-button.selected { background: #ee526f14; border-color: #ee526f70; color: #f6bbca; }
.episode-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 26px; margin: 32px 0 20px; scroll-margin-top: 110px; }
.episode-heading h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.episode-heading > span { font-size: 11px; color: var(--muted); text-align: right; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 10px; max-height: 42vh; overflow: auto; padding: 4px; scrollbar-gutter: stable; }
.episode-button { position: relative; min-height: 48px; padding: 10px 5px; border: 1px solid #ffffff1c; border-radius: 6px; background: #ffffff05; color: #d7cbd2; font-size: 12px; transition: background .18s, border-color .18s; }
.episode-button.active { color: #fff; border-color: var(--accent); background: #a52c46; }
.episode-button.locked { color: #a08e98; }
.episode-button.active.locked { color: #fff; }
.episode-button .lock-icon { position: absolute; right: 5px; top: 5px; width: 10px; height: 10px; opacity: .6; }
.episode-hint { margin-top: 16px; font-size: 11px; line-height: 1.8; color: #a3919b; }
.player-wrap:fullscreen { width: 100vw; height: 100vh; height: 100dvh; max-height: none; max-width: none; aspect-ratio: auto; border-radius: 0; background: #000; }
.player-wrap:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.player-wrap:fullscreen .player-info-overlay { display: none; }
.bottom-nav { display: none; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; max-width: 1344px; margin: 0 auto; border-top: 1px solid var(--line); padding: 29px 0 34px; color: #9e929a; font-size: 10px; letter-spacing: .015em; }
.site-footer > span:first-child { color: #c5b9c0; font-size: 14px; font-weight: 600; letter-spacing: -.025em; }
.footer-credit { margin-left: 18px; color: #9b8d96; }
dialog { width: min(480px, calc(100% - 32px)); padding: 30px; border: 1px solid #ffffff25; border-radius: 12px; background: #191719; color: var(--text); box-shadow: 0 24px 100px #0009; }
dialog::backdrop { background: #060507d9; backdrop-filter: blur(9px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.dialog-heading button { display: grid; place-items: center; flex: none; width: 40px; min-height: 40px; padding: 10px; margin-right: -8px; border: 0; background: none; border-radius: 5px; }
.dialog-heading button img { width: 20px; height: 20px; opacity: .65; }
dialog form > p, #feedback-dialog > p { font-size: 13px; line-height: 1.85; color: var(--muted); }
dialog label { display: block; margin: 25px 0 9px; color: #d4c4cd; font-size: 12px; }
dialog input { width: 100%; min-height: 46px; border: 1px solid #ffffff28; border-radius: 6px; background: #0c0b0e; color: var(--text); padding: 11px 13px; font-size: 13px; }
dialog .field-hint { margin-top: 11px; font-size: 11px; }
dialog .form-error { min-height: 21px; margin-top: 13px; color: #ffabb7; font-size: 12px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dialog-actions .button { font-size: 11px; }
#feedback-details { margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #0d0b0e; color: #d5c3ce; font: 11px/1.85 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 40px); padding: 13px 21px; border: 1px solid #ffffff28; border-radius: 8px; background: #282024; color: #f4e7ed; font-size: 12px; box-shadow: 0 12px 30px #0006; pointer-events: none; }
.loading-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-bottom: 23px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (hover: hover) {
  .featured-card:hover .hero-cta { background: #fff; transform: translateY(-1px); }
  .poster-card:hover .poster-image { border-color: #ffffff45; }
  .poster-card:hover .poster-image > img { transform: scale(1.035); }
  .poster-card:hover h3 { color: #f7c7d1; }
  .categories button:hover:not(.active) { border-color: #ffffff50; color: var(--text); }
  .library-row:hover { background: #ffffff04; }
}
/* Keep keyboard rings inside clipping containers, and expose controls on touch. */
.featured-card:focus-visible, .categories button:focus-visible, .episode-button:focus-visible { outline-offset: -3px; }
@media (hover: none) { .player-rail { opacity: 1; pointer-events: auto; } }
@media (min-width: 1001px) { .player-column { position: sticky; top: 112px; } }
@media (max-width: 1439px) { .site-footer { margin-inline: var(--gutter); } }
@media (max-width: 1100px) {
  .site-header { gap: 22px; }
  .site-header nav { gap: 20px; }
  .search { width: 210px; }
  .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-copy { width: 49%; }
  .hero-title { font-size: 60px; }
  .detail-layout { gap: 42px; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .site-header { height: 78px; gap: 17px; }
  .site-header nav { gap: 17px; }
  .nav-link { font-size: 12px; }
  .nav-link.active::after { bottom: 18px; }
  .search { width: 170px; padding-left: 12px; gap: 7px; }
  .search input { font-size: 11px; }
  .settings-button { width: 34px; padding: 7px; }
  .featured-card { height: 460px; }
  .hero-title { font-size: 49px; }
  .hero-copy { left: 5%; width: 50%; }
  .hero-eyebrow { font-size: 9px; margin-bottom: 20px; }
  .hero-meta { margin-top: 19px; font-size: 11px; }
  .hero-synopsis { font-size: 12px; -webkit-line-clamp: 3; }
  .hero-cta { min-height: 44px; margin-top: 22px; padding: 10px 22px; font-size: 12px; }
  .hero-note { font-size: 9px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
  .detail-layout { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 30px; }
  .story-column h1 { font-size: 38px; }
  .synopsis { font-size: 13px; max-height: 160px; }
  .keyboard-help { display: none; }
  .player-toolbar .button { font-size: 10px; padding-inline: 10px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 142px; }
  .site-header { height: auto; min-height: 122px; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 11px 14px; padding: 12px 20px 14px; }
  .site-header > nav { display: none; }
  .search { grid-row: 2; grid-column: 1/-1; margin: 0; width: 100%; min-height: 42px; padding-inline: 14px 9px; }
  .search input { font-size: 12px; }
  .settings-button { grid-row: 1; grid-column: 2; width: 40px; height: 36px; padding: 10px; }
  .page { padding: 20px 20px 42px; }
  .featured-shell { margin-bottom: 36px; }
  .featured-carousel { gap: 14px; border-radius: 8px; }
  .featured-card { height: min(560px, 139vw); min-height: 440px; border-radius: 8px; }
  .hero-backdrop { display: none; }
  .hero-poster { top: 0; right: 0; width: 100%; height: 100%; object-position: 50% 24%; z-index: -3; }
  .hero-shade { background: linear-gradient(0deg, #141014 0%, #141014f5 13%, #141014ab 34%, #14101405 70%); }
  .hero-copy { top: auto; left: 25px; right: 25px; bottom: 26px; transform: none; max-width: none; width: auto; padding: 0; }
  .hero-eyebrow { font-size: 8px; letter-spacing: .2em; margin-bottom: 15px; }
  .hero-eyebrow::before { width: 18px; }
  .hero-title { max-width: 390px; font-size: clamp(37px, 10vw, 54px); line-height: 1.01; letter-spacing: -.045em; }
  .hero-meta { font-size: 10px; margin-top: 16px; line-height: 1.8; }
  .hero-meta span { margin-inline: 3px; }
  .hero-synopsis { display: none; }
  .hero-cta { min-height: 44px; padding: 11px 22px; font-size: 12px; margin-top: 19px; }
  .hero-note { margin-top: 13px; font-size: 9px; line-height: 1.5; }
  .featured-controls { gap: 12px; margin-top: 15px; }
  .featured-controls button { width: 38px; height: 38px; }
  #featured-page { font-size: 9px; min-width: 44px; }
  .page-heading { align-items: flex-start; gap: 15px; margin-bottom: 24px; }
  .page-heading h1 { max-width: 420px; font-size: 31px; margin: 11px 0; }
  .page-heading p { font-size: 12px; }
  .eyebrow { font-size: 8px; letter-spacing: .2em; }
  #discover-view .page-heading { flex-wrap: wrap; row-gap: 10px; }
  .count-label { padding: 0; font-size: 10px; }
  .categories { flex-wrap: nowrap; gap: 9px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 30px; padding: 4px 20px; }
  .categories button { flex: none; min-height: 44px; padding: 9px 19px; font-size: 11px; }
  .arrivals-heading { margin-bottom: 18px; }
  .arrivals-heading h2 { font-size: 21px; }
  .arrivals-heading h2 span { display: none; }
  .arrivals-heading > span { font-size: 10px; }
  .poster-grid, .poster-grid[data-count="1"], .poster-grid[data-count="2"], .poster-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 14px; }
  .poster-image { border-radius: 6px; }
  .poster-card h3 { font-size: 13px; margin: 12px 0 4px; }
  .poster-card p { font-size: 10px; }
  .poster-badge { font-size: 8px; bottom: 10px; left: 10px; right: 10px; gap: 3px 6px; }
  .demo-badge { top: 10px; left: 10px; font-size: 7px; padding: 2px 5px; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; align-items: center; justify-content: space-around; min-height: 74px; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid #ffffff15; background: #101012f5; backdrop-filter: blur(18px); }
  .bottom-nav a { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 7px; color: #9e929a; font-size: 9px; line-height: 1.3; }
  .bottom-nav a > img { width: 21px; height: 21px; object-fit: contain; opacity: .5; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active > img { opacity: 1; }
  .bottom-nav a.active::after { content: ""; display: block; position: absolute; bottom: -4px; width: 16px; height: 2px; border-radius: 1px; background: var(--accent); }
  .library-tabs { gap: 25px; margin-top: 26px; }
  .library-tabs button { font-size: 13px; }
  .library-list { gap: 23px; }
  .library-row { gap: 16px; padding: 0; align-items: flex-start; }
  .library-poster { width: 92px; }
  .library-row > div:nth-child(2) { padding-top: 5px; }
  .library-row h3 { font-size: 20px; margin-bottom: 8px; }
  .library-row p { font-size: 11px; line-height: 1.7; -webkit-line-clamp: 3; margin-top: 7px; }
  .library-episode { font-size: 10px; }
  .library-arrow { display: none; }
  .profile-heading { gap: 17px; margin: 16px 0 32px; }
  .profile-avatar { width: 66px; height: 66px; }
  .profile-avatar img { width: 26px; height: 26px; }
  .profile-heading h1 { font-size: 27px; }
  .profile-heading p { font-size: 12px; }
  .profile-stats strong { font-size: 29px; }
  .profile-menu button { min-height: 62px; padding: 18px; font-size: 13px; }
  .profile-hint { font-size: 10px; }
  .detail-page { padding: 15px 0 36px; }
  .back-button { margin: 0 20px 15px 14px; font-size: 11px; }
  .detail-layout { display: flex; flex-direction: column; gap: 30px; max-width: none; }
  .player-column { width: 100%; }
  .player-wrap { width: 100%; height: min(72vh, 760px); height: min(72dvh, 760px); min-height: 320px; aspect-ratio: 9/16; border-radius: 0; border: 0; }
  .player-rail { top: 13px; right: 12px; left: auto; bottom: 190px; flex-direction: column; gap: 11px; opacity: 1; pointer-events: auto; }
  .player-rail button { width: 40px; min-height: 44px; padding: 7px; background: #110c128c; gap: 4px; }
  .player-rail button > img { width: 20px; height: 20px; }
  .player-rail small { display: block; font-size: 7px; line-height: 1.2; }
  .player-info-overlay { display: block; position: absolute; left: 20px; right: 72px; bottom: 58px; z-index: 1; color: #fff; text-shadow: 0 1px 5px #000b; pointer-events: none; }
  .player-info-overlay h2 { font-size: 19px; font-weight: 500; line-height: 1.2; margin-bottom: 9px; }
  .player-info-overlay > span { display: inline-block; background: #100b1499; padding: 3px 7px; border-radius: 3px; font-size: 9px; }
  .player-info-overlay p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; font-size: 11px; line-height: 1.6; }
  .player-info-overlay > div { font-size: 10px; }
  .player-toolbar { margin: 15px 20px 0; gap: 8px; }
  .player-toolbar .button { font-size: 10px; padding: 9px 12px; }
  .player-toolbar > span { font-size: 10px; }
  .playback-controls { margin: 11px 20px 0; }
  .playback-note { margin: 9px 20px 0; font-size: 10px; }
  .story-column { padding: 0 20px; width: 100%; }
  .story-column h1 { font-size: 40px; }
  .detail-category { font-size: 9px; margin-bottom: 13px; }
  .detail-meta { margin: 17px 0; font-size: 11px; }
  .synopsis { font-size: 13px; max-height: 160px; }
  .favorite-button { margin-top: 23px; font-size: 12px; }
  .episode-heading { margin-top: 29px; scroll-margin-top: 145px; }
  .episode-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-height: 290px; }
  .episode-hint { font-size: 10px; }
  .site-footer { flex-wrap: wrap; gap: 8px; padding: 27px 0; margin: 8px 20px 0; font-size: 9px; }
  .footer-credit { margin-left: 10px; }
  .state-card { padding: 42px 22px; }
  .state-card h2 { font-size: 21px; }
  .state-card p { font-size: 12px; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); font-size: 11px; }
  dialog { padding: 25px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .player-rail { top: 12px; left: 12px; right: 12px; bottom: auto; flex-direction: row; gap: 8px; }
  .player-rail button { width: 40px; min-height: 40px; padding: 9px; }
  .player-rail small { display: none; }
}
@media (max-width: 360px) {
  .hero-copy { left: 21px; right: 21px; bottom: 24px; }
  .hero-title { font-size: 36px; }
  .hero-eyebrow { font-size: 7px; }
  .hero-note { font-size: 8px; }
  .page-heading h1 { font-size: 28px; }
  .poster-grid { gap: 24px 11px; }
  .poster-card h3 { font-size: 12px; }
  .poster-badge { font-size: 7px; }
  .poster-card p { font-size: 9px; }
  .library-tabs { gap: 18px; }
  .library-tabs button { font-size: 12px; }
  .library-poster { width: 80px; }
  .library-row h3 { font-size: 17px; }
  .library-row p { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Versioned adult-content self-declaration. Web layout remains independent of native. */
body.age-gated { background:#000; }
.age-gate {
  display:grid;grid-template-rows:auto 1fr;min-height:100svh;min-height:100dvh;
  padding:max(14px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right))
    max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  background:#050405;color:#faf6f2;
}
.age-topline { width:min(100%,1180px);margin-inline:auto;display:flex;justify-content:flex-end; }
.age-language { position:relative;display:block;color:#cac0c5; }
.age-language svg { position:absolute;inset-inline-start:11px;inset-block-start:13px;width:17px;height:17px;pointer-events:none; }
.age-language-label { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.age-language select {
  max-width:min(170px,55vw);min-height:44px;padding:7px 10px 7px 34px;border:1px solid #ffffff25;border-radius:12px;
  color:#f0e9ed;background:#151215;font:500 13px/1.2 var(--font);color-scheme:dark;
}
.age-gate[dir=rtl] .age-language select { padding:7px 34px 7px 10px; }
.age-body { width:min(100%,612px);margin:auto;padding-block:clamp(22px,5vh,52px); }
.age-wordmark { display:grid;justify-items:center;gap:10px;margin:0 0 clamp(22px,3.5vh,32px); }
.age-wordmark img { width:64px;height:64px; }
.age-wordmark strong { color:#faf3e6;font-family:var(--brand-font);font-size:clamp(25px,3.4vw,30px);font-weight:800;line-height:1;letter-spacing:-.045em; }
.age-card {
  display:grid;gap:16px;padding:clamp(16px,3.6vw,28px);
  background:linear-gradient(127deg,#241805,#14100d 72%);border:1px solid #a36e374f;border-radius:20px;
}
.age-card-main,.age-card-meta { display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px; }
.age-badge {
  display:inline-grid;place-items:center;min-width:40px;min-height:26px;padding:3px 5px;
  color:#ffe09c;border-radius:7px;background:#52360e;font-size:13px;font-weight:800;line-height:1;
}
.age-card h1,.age-exit h1 { margin:0 0 6px;font:750 clamp(19px,2.5vw,24px)/1.3 var(--font);letter-spacing:-.02em;color:#ffe09c; }
.age-card-main p,.age-exit p { margin:0;font-size:clamp(14px,2.25vw,16px);line-height:1.55;color:#d6cdc1;overflow-wrap:anywhere; }
.age-card-meta { padding-block-start:13px;border-block-start:1px solid #d19d5929; }
.age-ai-badge { background:#ffffff12;color:#d6cdc1; }
.age-card-meta p { margin:0;font-size:clamp(13px,2.1vw,15px);line-height:1.55;color:#d6cdc1;overflow-wrap:anywhere; }
.age-consent-note { margin:12px 0 0;color:#b6aeb3;text-align:center;font-size:12px;line-height:1.5; }
.age-actions { display:grid;gap:9px;margin-top:clamp(14px,2.5vh,22px); }
.age-actions button { min-height:50px;width:100%;padding:11px 14px;border-radius:14px;font:720 clamp(14px,2.6vw,17px)/1.35 var(--font);text-align:center; }
.age-primary { background:linear-gradient(107deg,#fff0ce,#ecc17a);color:#261805;border:1px solid #ffe3a8;transition:filter .15s,transform .15s; }
.age-primary:hover:not(:disabled) { filter:brightness(1.08);transform:translateY(-1px); }
.age-primary:active:not(:disabled) { transform:none; }
.age-primary:disabled,.age-secondary:disabled { cursor:not-allowed;opacity:.58; }
.age-secondary { background:#111012;color:#d4cbd0;border:1px solid #ffffff23;transition:border-color .15s,color .15s; }
.age-secondary:hover:not(:disabled) { border-color:#d5c8ab; color:#f1e7d3; }
.age-gate button:focus-visible,.age-gate a:focus-visible,.age-gate select:focus-visible { outline:2px solid #f4d58f; outline-offset:4px; }
.age-gate h1:focus { outline:none; }
.age-legal { display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:14px;color:#b0a7ac;font-size:12px; }
.age-legal a { text-decoration:underline; text-underline-offset:4px; padding:5px 0; }
.age-legal a:hover { color:#e4d6b7; }
.age-error { color:#efcc86; font-size:13px; line-height:1.7; margin:18px 0; }
.age-exit { border:1px solid #4a3b1c; border-radius:24px; padding:clamp(26px,4vw,42px); background:#100d07; text-align:center; }
.age-exit .age-badge { margin:0 auto 22px; }
.age-exit h1 { font-size:clamp(24px,2.4vw,30px); }
@media(max-width:360px) {
  .age-gate { padding-inline:14px; }
  .age-card-main,.age-card-meta { grid-template-columns:35px minmax(0,1fr);gap:9px; }
  .age-badge { min-width:35px; }
}
@media(prefers-reduced-motion:reduce) { .age-primary,.age-secondary {transition:none;}.age-primary:hover:not(:disabled){transform:none;} }

.age-legal-link { padding:5px 0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:4px; }
.age-legal-link:hover {color:#e4d6b7;}.age-support {display:block;width:max-content;max-width:100%;margin:8px auto;color:#a39a87;font-size:12px;text-decoration:underline;text-underline-offset:4px;}
.age-info-dialog {max-width:650px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:28px;color:#d6cfbe;background:#15110a;border:1px solid #69532a;border-radius:20px;}
.age-info-dialog::backdrop {background:#000c;}.age-info-dialog .dialog-heading {align-items:flex-start;gap:20px;}.age-info-dialog .dialog-heading h2 {font-family:var(--font);font-size:23px;line-height:1.35;color:#e8c985;}.age-info-dialog .dialog-heading button {flex:none;min-width:44px;min-height:44px;border:1px solid #6f654c;border-radius:8px;background:#ffffff05;}.age-info-dialog .dialog-heading img {width:18px;height:18px;margin:auto;}.age-info-dialog p {font-size:14px;line-height:1.85;margin-top:18px;}.age-info-dialog button:focus-visible {outline-color:#efcf8c;}
@media(max-width:600px){.age-info-dialog{padding:22px;max-height:calc(100dvh - 40px);}.age-info-dialog .dialog-heading h2{font-size:21px;}}

/* Product Web · 2026-11-03. Desktop navigation and touch layouts are independent of Android. */
:root { --bg:#000;--panel:#151412;--panel-hover:#211d16;--line:#ffffff19;--muted:#b4afa6;--gutter:clamp(20px,3.4vw,48px); }
html { scroll-padding-top:148px; }
.site-header { background:#050505f5;border-bottom:1px solid #ffffff12;gap:26px;z-index:40; }
.site-header nav { gap:24px; }.nav-link { min-height:48px;display:flex;align-items:center; }
.header-wallet,.header-avatar { flex:none;width:42px;height:44px;display:grid;place-items:center;border:0;background:none;padding:3px;border-radius:12px; }
.header-wallet img { width:38px;height:38px;object-fit:contain;border-radius:10px; }
.header-avatar img { width:34px;height:34px;border-radius:50%;object-fit:cover; }
.header-wallet:hover,.header-avatar:hover { background:#ffffff0d; }
.settings-button { width:36px;padding:8px; }
.search { margin-left:auto;min-height:44px;width:min(260px,23vw);background:#ffffff06; }
.discovery-nav { position:sticky;top:83px;z-index:30;display:flex;align-items:center;gap:26px;margin:0 calc(-1 * var(--gutter)) 16px;padding:4px var(--gutter);background:#030303ef;border-bottom:1px solid #ffffff0d;backdrop-filter:blur(18px);overflow-x:auto;scrollbar-width:none; }
.discovery-nav::-webkit-scrollbar { display:none; }
.discovery-nav[data-loading] button { visibility:hidden; }
.discovery-nav button { flex:none;display:flex;align-items:center;justify-content:center;gap:7px;position:relative;min-height:50px;padding:3px 0;border:0;background:none;color:#b8b4ac;font-weight:500;font-size:15px;white-space:nowrap; }
.discovery-nav button span { font-size:18px; }.discovery-nav button img { width:17px;height:17px;opacity:.8; }
.discovery-nav button.active { color:#fff;font-weight:700; }
.discovery-nav button.active::after { content:"";position:absolute;bottom:1px;left:calc(50% - 10px);width:20px;height:3px;border-radius:2px;background:var(--accent); }
#discover-view { padding-top:0; }
.featured-shell { margin-bottom:32px; }.featured-carousel,.featured-card { border-radius:16px; }
.featured-card { height:clamp(430px,39vw,545px);background:#171410; }
.hero-backdrop { opacity:.35; }.hero-poster { width:61%;object-position:50% 28%; }
.hero-shade { background:linear-gradient(90deg,#090909 3%,#090909e6 28%,#09090977 56%,#09090900 80%),linear-gradient(0deg,#000c,transparent 55%); }
.hero-copy { left:5%;width:48%;max-width:600px; }
.hero-title { font:750 clamp(36px,4.1vw,61px)/1.08 var(--font);letter-spacing:-.045em;-webkit-line-clamp:3; }
.hero-eyebrow { color:var(--accent);margin-bottom:18px; }.hero-eyebrow::before { background:var(--accent); }
.hero-meta { color:#e0dbd1;margin-top:20px; }.hero-synopsis { color:#c8c3b9;line-height:1.7; }
.hero-cta { background:#f8f5ee;color:#16130b;border-radius:999px;min-height:50px;font-size:14px;padding:12px 28px; }
.hero-note { color:#d0c2a9; }.featured-controls { margin-top:12px; }
.featured-controls button { width:44px;height:44px; }.featured-controls button img { width:18px;height:18px; }
.discover-heading { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0; }.discover-heading .eyebrow { display:none; }
.discover-heading h1 { font-size:25px;font-weight:700;margin:0 0 6px;letter-spacing:-.6px; }
.discover-heading p { color:var(--muted); }.categories { gap:8px;margin-bottom:28px; }
.categories button { min-height:42px;padding:8px 18px;font-size:12px;background:#ffffff04;border-color:#ffffff1c; }
.categories button.active { background:#f0d39a;color:#1b150c;border-color:#f0d39a; }
.arrivals-heading h2 { font-weight:650;font-size:21px; }.arrivals-heading { margin-bottom:18px; }
.poster-grid,.poster-grid[data-count="1"],.poster-grid[data-count="2"],.poster-grid[data-count="3"] { grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 18px; }
.poster-image { border-radius:10px;border-color:#ffffff14; }.poster-card h3 { font-weight:600;line-height:1.35;margin:11px 0 5px; }
.poster-card p { color:#b1aca4; }.poster-card:hover h3 { color:var(--accent); }
.button.primary { background:var(--accent);color:#211707;border-color:var(--accent); }.button.primary:hover:not(:disabled) { background:#f7dfa8; }.button { min-height:44px; }
.state-card { border:1px solid #ffffff17;background:#141311;border-radius:14px; }
.state-card h2 { font-weight:650; }.state-card p { color:#b5afa4; }
.site-footer { color:#a39c90; }.footer-credit { color:#b3a68c; }
.detail-page { padding-top:22px; }.detail-layout { max-width:1250px;grid-template-columns:minmax(360px,1fr) minmax(300px,370px);gap:38px; }
.player-column { min-width:0; }.player-wrap { height:min(calc(100vh - 210px),780px);height:min(calc(100dvh - 210px),780px);max-height:820px;background:#070707;border-radius:14px; }
.player-wrap video { max-width:100%; }.story-column { position:sticky;top:112px;padding-top:2px; }
.story-column h1 { font:700 clamp(27px,2.5vw,38px)/1.13 var(--font);letter-spacing:-1px; }
.detail-meta { color:#bab3a8; }.synopsis { color:#c1baaf; }.episode-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.episode-button { min-height:48px; }.episode-button.active { background:var(--accent);border-color:var(--accent);color:#231908; }
.player-state { background:#11100e; }.player-info-overlay h2 { font-family:var(--font); }
.keyboard-help { color:#b0a89c; }.player-toolbar .button { min-height:44px; }.player-rail button { min-height:44px; }
#profile-view { display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:1080px;margin:auto;padding-top:38px; }
.profile-heading { grid-column:1/-1;margin:0 0 5px;gap:18px; }
.profile-avatar { width:74px;height:74px;border:1px solid #d4bc7b55;border-radius:50%;padding:0;background:#19160e;overflow:hidden;cursor:pointer; }
.profile-avatar img { width:100%;height:100%;object-fit:cover;opacity:1; }
.profile-identity { flex:1;min-width:0; }.profile-heading h1 { font-size:29px;font-weight:700;letter-spacing:-.6px; }
.profile-user-uid {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;padding:0;border:0;background:none;color:#b2adb0;font-size:11px;text-align:start;cursor:pointer}.profile-user-uid:focus-visible{outline:2px solid #f0d39a;outline-offset:3px}
.profile-heading p { font-size:12px;margin-top:4px; }.account-entry { display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid #b5aea28c;border-radius:9px;background:none;color:#e5dfd3; }
.account-entry img { width:16px;height:16px; }
.profile-vip { display:grid;grid-template-columns:1fr 62px;text-align:left;gap:10px;padding:22px;min-height:174px;border:1px solid #e9d3a3;border-radius:17px;background:linear-gradient(125deg,#fff0c7,#e8c47c);color:#38250d; }
.profile-vip strong { display:block;font-size:26px;line-height:1.2;letter-spacing:-.8px; }.profile-vip div>span { display:block;margin-top:7px;font-size:13px;color:#694d25; }
.profile-vip>img { width:62px;height:62px;object-fit:contain;border-radius:14px; }
.vip-explore { grid-column:1/-1;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600; }.vip-explore img { width:16px;height:16px;filter:none!important; }
.profile-wallet { display:flex;align-items:center;gap:15px;padding:24px;min-height:174px;text-align:left;border:1px solid #8d743f;border-radius:17px;background:#18150f;color:#f1dab0; }
.profile-wallet>img { width:48px;height:48px;object-fit:contain; }.profile-wallet>span { flex:1;font-size:23px;font-weight:650; }.profile-wallet small { display:block;font-size:11px;color:#c1b395;margin-top:7px;font-weight:400; }.profile-wallet .chevron { width:18px;height:18px; }
.profile-stats { max-width:none;align-items:center;gap:20px;margin:4px 0; }.profile-stats strong { font-size:34px;color:#f0d39a;font-weight:600; }
.profile-stats span { font-size:12px; }.profile-menu { max-width:none;background:transparent;border:0;border-radius:0;grid-column:1/-1; }
.profile-menu button,.profile-menu>a { display:flex;align-items:center;gap:12px;min-height:62px;padding:16px 2px;width:100%;font-size:14px;text-align:left;border:0;border-bottom:1px solid #ffffff20;background:none;color:var(--text); }
.profile-menu button>img,.profile-menu>a>img:last-child { width:18px;height:18px;margin-left:auto; }.profile-menu .menu-icon { width:23px;height:23px;filter:invert(1); }
.profile-hint { grid-column:1/-1;margin:0;color:#b5aea1;font-size:12px; }
.product-dialog { width:min(680px,calc(100% - 32px));max-height:88dvh;overflow:auto;padding:28px;background:#10100f;border-color:#5e5137;border-radius:20px; }
.product-dialog h3 { font-size:17px;margin:24px 0 12px; }.product-dialog>p { line-height:1.7;font-size:14px; }
.product-dialog .dialog-heading h2 { font-weight:700;font-size:26px; }.product-dialog .dialog-heading button { min-width:44px;min-height:44px;margin:0;border:1px solid #ffffff25;border-radius:9px; }
.product-note { font-size:12px;line-height:1.7;color:#bdb4a6;margin:10px 0; }.web-payment-boundary { padding-top:16px;border-top:1px solid #ffffff19; }
.wallet-balance { padding:20px;border:1px solid #8c7347;border-radius:16px;background:linear-gradient(120deg,#2a2113,#17140e);color:#f0d39a; }
.wallet-balance>span { font-size:12px; }.wallet-balance strong { display:block;font-size:37px;margin:9px 0;line-height:1.1; }.wallet-balance strong small { font-size:14px;font-weight:400;color:#d7c8a9; }.wallet-balance p { color:#c6bca9;font-size:12px; }
.wallet-product-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0; }
.web-product-card { display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:170px;min-width:0;padding:16px;border:1px solid #54452b;border-radius:14px;background:#1b1812;color:#fff;text-align:left; }
.web-product-card>img { width:40px;height:40px;object-fit:contain;margin-bottom:6px; }.web-product-card strong { font-size:24px;line-height:1.25; }.web-product-card>span { font-size:12px;color:#d6cbbb; }.web-product-card small { margin-top:7px;color:#efd39d;font-size:11px; }
.web-product-card:hover { border-color:#e2c17f;background:#292114; }.single-vip-entry>img { border-radius:9px; }
.web-vip-surface { padding:18px;border-radius:16px;background:linear-gradient(125deg,#f9eac6,#dec08b);color:#483115;text-align:center; }
.web-vip-plans { display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:7px; }.web-vip-plans button { min-width:0;min-height:48px;border:1px solid #816641;border-radius:8px;background:#745a37;color:#f9e4bb;font-size:13px; }
.web-vip-plans button.active { background:#fff4d4;color:#493012;border-color:#fff1cd;font-weight:700; }
.vip-emblem { width:76px;height:76px;object-fit:contain;border-radius:18px;margin:24px auto 12px; }
.web-vip-surface h3 { margin:12px 0;font-size:22px; }.web-vip-surface p { font-size:13px;line-height:1.7; }.web-vip-surface .vip-scope { font-size:12px;margin-top:18px;color:#654e2e; }
.vip-dialog>.button { display:flex;justify-content:center;margin-top:20px; }.taxonomy-options { display:flex;flex-wrap:wrap;gap:10px; }
.taxonomy-options button { display:flex;align-items:center;gap:12px;min-height:44px;border:1px solid #ffffff2a;border-radius:9px;background:#211d16;color:#e9e3d5;padding:10px 14px; }
.taxonomy-options button[aria-pressed=true] { border-color:var(--accent);color:var(--accent); }.taxonomy-options small { color:#b9a888; }
.avatar-options { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin-top:20px; }
.avatar-options button { min-width:0;aspect-ratio:1;border:2px solid transparent;padding:3px;border-radius:50%;background:#211e17; }
.avatar-options button[aria-pressed=true] { border-color:var(--accent); }.avatar-options img { width:100%;height:100%;border-radius:50%; }.avatar-credit { margin:18px 0 0;font-size:10px!important;color:#b6a78c; }
@media(min-width:1121px) { .featured-card { height:clamp(360px,32vw,460px); }.hero-title { font-size:clamp(36px,3.6vw,54px);-webkit-line-clamp:3; }.hero-synopsis { -webkit-line-clamp:2; } }
@media(min-width:761px) and (max-width:1120px) { .site-header { gap:16px; }.site-header nav {gap:16px;}.search{width:200px;}.settings-button{display:none;}.poster-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.detail-layout{grid-template-columns:minmax(300px,1fr) 310px;gap:26px;} }
@media(max-width:980px) and (min-width:761px) { .site-header>nav {display:flex;gap:14px;}.nav-link{font-size:12px;}.search{width:auto;flex:1;min-width:120px;}.header-avatar{margin-left:0;}.poster-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.detail-layout{grid-template-columns:minmax(250px,1fr) 285px;} }
@media(max-width:760px) {
 :root { --gutter:16px; }
 html { scroll-padding-top:126px; }
 .site-header { display:grid;grid-template-columns:minmax(0,1fr) repeat(2,44px);gap:10px;min-height:68px;height:68px;padding:10px 16px;flex-wrap:nowrap; }
 .site-header nav,.settings-button{display:none;}
 .search { grid-row:auto;grid-column:auto;order:initial;min-width:0;width:100%;min-height:42px;margin:0;padding:0 11px;border-color:#ffffff2b; }.search input{font-size:11px;}.search .search-icon{width:15px;height:15px;}.search button{display:none;}
 .header-wallet{width:44px;height:44px;}.header-wallet img{width:36px;height:36px;}.header-avatar{width:44px;height:44px;padding:0;}.header-avatar img{width:30px;height:30px;}
 .page{padding:18px var(--gutter) 44px;}.discovery-nav{top:68px;gap:19px;margin:0 calc(-1 * var(--gutter)) 0;padding:0 16px;min-height:54px;background:#030303eb;}.discovery-nav button{font-size:12px;min-height:50px;gap:5px;}.discovery-nav button span{font-size:16px;}.discovery-nav button img{width:15px;height:15px;}
 .featured-shell { margin:0 -16px 16px; }.featured-carousel,.featured-card{border-radius:0;}.featured-card{height:clamp(330px,48svh,420px);min-height:0;}
 .hero-poster {width:100%;height:100%;object-position:50% 30%;}.hero-backdrop{display:none;}.hero-shade{background:linear-gradient(0deg,#000 0%,#000e 9%,#0006 40%,#0000 72%);}
 .hero-copy{left:24px;right:24px;top:auto;bottom:36px;width:auto;max-width:none;transform:none;text-align:center;padding:0;}.hero-eyebrow{font-size:8px;letter-spacing:.18em;margin-bottom:12px;justify-content:center;}.hero-eyebrow::before{display:none;}
 .hero-title{font-size:34px;font-weight:750;line-height:1.1;letter-spacing:-1.1px;-webkit-line-clamp:3;}.hero-meta{font-size:11px;margin-top:14px;}.hero-synopsis{display:none;}.hero-cta{min-height:50px;min-width:168px;margin-top:20px;font-size:14px;}.hero-note{font-size:9px;margin-top:12px;color:#ccc2b0;}
 .featured-controls{padding:0 16px;margin-top:0;justify-content:center;gap:14px;}.featured-controls button{width:44px;height:44px;border:0;}.featured-controls #featured-page{font-size:10px;min-width:52px;}
 .discover-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0;align-items:center;}.discover-heading h1{font-size:24px;line-height:1.2;margin:0 0 5px;}.discover-heading p{font-size:11px;}.categories{margin:0 -16px 12px;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:4px 16px 3px;}.categories button{flex:none;min-height:42px;padding:8px 16px;font-size:11px;}
 .arrivals-heading{margin-bottom:12px;}.arrivals-heading h2{font-size:20px;}.poster-grid,.poster-grid[data-count="1"],.poster-grid[data-count="2"],.poster-grid[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 12px;}.poster-image{border-radius:9px;}.poster-card h3{font-size:13px;margin:9px 0 5px;}.poster-card p{font-size:10px;}
 .bottom-nav{left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));min-height:66px;padding:6px 9px;border:1px solid #aaa28d6b;border-radius:32px;background:#080808f5;}.bottom-nav a{gap:5px;min-height:50px;font-size:10px;border-radius:24px;}.bottom-nav a.active{background:#ffffff13;}.bottom-nav a.active::after{display:none;}.bottom-nav a>img{width:22px;height:22px;}.site-footer{margin-bottom:95px;font-size:10px;}.toast{bottom:100px;}
 #profile-view{display:flex;flex-direction:column;gap:20px;padding-top:24px;}.profile-heading{margin:4px 0 5px;gap:13px;}.profile-avatar{width:60px;height:60px;}.profile-avatar img{width:100%;height:100%;}.profile-heading h1{font-size:25px;}.profile-heading p{font-size:11px;}.account-entry{font-size:12px;padding:9px 11px;min-height:44px;}.account-entry img{width:13px;height:13px;}
 .profile-vip{min-height:149px;padding:20px;grid-template-columns:1fr 52px;}.profile-vip strong{font-size:25px;}.profile-vip>img{width:52px;height:52px;}.profile-wallet{min-height:93px;padding:18px;}.profile-wallet>img{width:38px;height:38px;}.profile-wallet>span{font-size:20px;}.profile-wallet small{font-size:10px;margin-top:4px;}.profile-stats{margin:6px 0;}.profile-stats strong{font-size:30px;}.profile-menu button,.profile-menu>a{min-height:62px;font-size:14px;}.profile-hint{font-size:11px;}
 .detail-page{padding-top:12px;}.detail-layout{display:flex;gap:26px;}.player-column{position:static;width:100%;}.player-wrap{height:min(76vh,730px);height:min(76svh,730px);min-height:330px;border-radius:0;}.story-column{position:static;top:auto;padding:0 18px;}.story-column h1{font-size:29px;}.detail-meta{margin:15px 0;}.synopsis{font-size:13px;}.player-toolbar .button{font-size:11px;min-height:44px;}.player-rail button{width:44px;}.episode-heading{scroll-margin-top:135px;}.episode-grid{grid-template-columns:repeat(5,minmax(0,1fr));}.keyboard-help{display:none;}
 .product-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:21px;border-radius:18px;}.product-dialog .dialog-heading h2{font-size:24px;}.product-dialog .dialog-heading{gap:10px;}.product-dialog>p{font-size:13px;}.wallet-balance{padding:18px;}.wallet-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}.web-product-card{min-height:166px;padding:15px;}.web-product-card strong{font-size:25px;}.web-product-card small{font-size:11px;}.web-vip-surface{padding:14px;}.web-vip-plans button{font-size:12px;padding:8px 4px;}.avatar-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;}
}
@media(max-width:360px){.site-header{gap:7px;padding-inline:12px;}.header-wallet{width:44px;}.header-wallet img{width:32px;height:32px;}.header-avatar{width:44px;}.header-avatar img{width:30px;}.avatar-options{grid-template-columns:repeat(4,minmax(0,1fr));}.hero-title{font-size:30px;}.discovery-nav{gap:15px;}.web-product-card{padding:12px;}.profile-heading{gap:10px;}.account-entry{padding:8px;font-size:11px;}}

/* Player reference footer. Browser media controls and Web navigation stay native to Web. */
.player-wrap { flex-direction:column;background:#000; }
.player-wrap video { flex:1;min-height:0;height:0; }
.player-info-overlay { display:block;position:relative;inset:auto;flex:none;z-index:1;width:100%;padding:8px 16px 0;background:#000;color:#fff;text-shadow:none;pointer-events:none; }
.player-info-overlay h2 { margin:0 0 5px;font:700 17px/1.25 var(--font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.player-info-overlay > span { display:block;margin:0 0 9px;padding:0;border:0;border-radius:0;background:none;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.player-info-overlay > div { margin:0; }
.player-collection-button { display:flex;align-items:center;justify-content:center;gap:8px;position:relative;width:fit-content;min-width:108px;max-width:100%;min-height:44px;padding:8px 34px;border:0;border-radius:8px;background:#555;color:#fff;font:500 13px/1.3 var(--font);pointer-events:auto;cursor:pointer;font-variant-numeric:tabular-nums; }
.player-collection-button span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.player-collection-button img { position:absolute;right:12px;width:16px;height:16px;filter:brightness(0) invert(1); }
.player-collection-button:focus-visible { outline:2px solid #fff;outline-offset:2px; }
#player-story-synopsis,#detail-synopsis,#video-quality,#speed-button { display:none; }
.player-wrap video { accent-color:#fff; }
.player-progress { display:block;appearance:none;-webkit-appearance:none;pointer-events:auto;width:100%;height:26px;margin:4px 0 0;padding:0;border:0;border-radius:0;background:transparent;accent-color:#fff;cursor:pointer; }
.player-progress::-webkit-slider-runnable-track { height:2px;background:linear-gradient(to right,#fff var(--played,0%),#ffffff38 var(--played,0%)); }
.player-progress::-moz-range-track { height:2px;background:#ffffff38; }
.player-progress::-moz-range-progress { height:2px;background:#fff; }
.player-progress::-webkit-slider-thumb { -webkit-appearance:none;width:8px;height:8px;margin-top:-3px;border:0;border-radius:50%;background:#fff; }
.player-progress::-moz-range-thumb { width:8px;height:8px;border:0;border-radius:50%;background:#fff; }
.player-progress:disabled { cursor:default; }
.player-wrap:fullscreen video { flex:none;height:100%; }
@media(max-width:760px) {
  /* Header 68 + detail top 12 + back row 44 + margin 15 + navigation 66 + gap 12. */
  .player-wrap { --player-obstructions:calc(217px + max(10px,env(safe-area-inset-bottom)));height:max(0px,calc(var(--player-viewport-height,100vh) - var(--player-obstructions)));max-height:max(0px,calc(var(--player-viewport-height,100vh) - var(--player-obstructions)));min-height:0;aspect-ratio:auto; }
  .detail-page .back-button { min-height:44px;margin-bottom:15px; }
  .player-info-overlay h2 { font-size:15px; }
  .player-info-overlay > span { font-size:12px;margin-bottom:8px; }
  .player-collection-button { font-size:12px; }
  .player-rail { top:12px;bottom:auto;right:10px;left:auto;gap:8px;flex-direction:column; }
  .player-rail button { width:38px;min-height:38px;padding:6px;background:#0007; }
  .player-rail small { font-size:7px; }
  .player-rail #share-button { display:none; }
  .player-wrap:fullscreen { height:100vh;height:100dvh;max-height:none; }
}
@supports(height:100svh) {
  @media(max-width:760px) { .player-wrap { height:max(0px,calc(100svh - var(--player-obstructions))); } }
}
@supports(height:100dvh) {
  @media(max-width:760px) { .player-wrap { max-height:max(0px,calc(100dvh - var(--player-obstructions))); } }
}
@media(max-width:760px) and (max-height:600px) {
  .player-rail { left:10px;right:10px;flex-direction:row; }
  .player-rail small { display:none; }
}

/* App homepage port · 2026-11-04.
   Geometry follows StudioHomeScreen, StudioHeroPlayButton and MainActivity;
   scoped to touch Web so desktop retains its own interaction model. */
.native-icon { display:block;flex:none;width:24px;height:24px; }
.header-checkin { display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:none; }
.header-checkin>.native-icon { width:34px;height:34px; }
.featured-dots { display:flex;align-items:center;justify-content:center;gap:0;height:29px; }
.featured-dots button { display:grid;place-items:center;flex:none;width:22px;height:29px;padding:0;border:0;background:none; }
.featured-dots button>span { display:block;width:7px;height:7px;border-radius:50%;background:#50505a; }
.featured-dots button[aria-pressed="true"]>span { background:#f5f5f8; }
.resume-bar { display:none; }
@keyframes native-gift-float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-1.25px)} }
@keyframes native-rainbow-rim { to{transform:rotate(360deg)} }
@media(max-width:760px) {
  :root { --font:Roboto,"Helvetica Neue",Arial,sans-serif;--native-bottom:calc(12px + env(safe-area-inset-bottom,0px)); }
  body { color:#f5f5f8;background:#000; }
  .home-view .site-header { position:absolute;top:0;left:0;right:0;display:grid;gap:0;height:56px;min-height:56px;padding:7px 10px 2px 10px;border:0;background:none;backdrop-filter:none; }
  .home-view .site-header>.settings-button,.home-view .site-header>nav { display:none; }
  .home-view .search { height:44px;min-height:44px;padding:0 10px 0 12px;margin:0;border:1px solid #ffffff26;border-radius:18px;background:linear-gradient(#3b3a4266,#22222957); }
  .home-view .search .search-icon { width:18px;height:18px;opacity:1;filter:invert(1); }
  .home-view .search input { font-size:13px;line-height:normal;color:#e9e8ee; }
  .home-view .search input::placeholder { color:#e9e8eecd; }
  .home-view .header-wallet { width:44px;height:44px;margin-left:0;padding:0; }
  .home-view .header-wallet img { width:35px;height:35px;border-radius:0; }
  .home-view .header-checkin { width:44px;height:44px; }
  .home-view .header-checkin>.native-icon { animation:native-gift-float 4.2s ease-in-out infinite; }
  .home-view #discover-view { padding:56px 18px 180px; }
  .home-view .discovery-nav { position:sticky;top:0;z-index:41;min-height:44px;height:44px;margin:0 -18px;padding:0 7px;gap:0;border:0;background:none;backdrop-filter:none; }
  .home-view.home-scrolled .discovery-nav { background:#000f; }
  .home-view .discovery-nav button { min-height:44px;height:44px;padding:0 9px;gap:4px;font-size:16px;font-weight:700;line-height:20px;color:#e6e5ea;text-shadow:0 1px 3px #0008; }
  .home-view .discovery-nav button.active { color:#f5f5f8; }
  .home-view .discovery-nav button span { font-size:17px; }
  .home-view .discovery-nav button>.native-icon { width:17px;height:17px; }
  .home-view .discovery-nav button.active::after { bottom:3px;left:calc(50% - 9.5px);width:19px;height:2px;border-radius:2px;background:#f5f5f8; }
  .home-view .featured-shell { margin:0 -18px 0; }
  .home-view.has-featured .featured-shell { margin-top:-100px; }
  .home-view .featured-carousel { gap:0;border-radius:0; }
  .home-view .featured-card { height:clamp(320px,calc(var(--player-viewport-height,100vh) - 380px),400px);min-height:0;border-radius:0;background:#000; }
  .home-view .hero-poster { inset:0;width:100%;height:100%;object-fit:cover;object-position:center; }
  .home-view .hero-backdrop { display:none; }
  .home-view .hero-shade { background:linear-gradient(to bottom,#000000ba 0%,#00000016 25%,#00000010 50%,#000000d9 75%,#000 100%); }
  .home-view .hero-copy { top:auto;bottom:0;left:0;right:0;width:100%;max-width:none;transform:none;text-align:center;padding:0 22px 11px; }
  .home-view .hero-eyebrow { display:none; }
  .home-view .hero-title { margin:13px 0 0;font:700 28px/1.15 var(--font);letter-spacing:-.025em;text-transform:uppercase;-webkit-line-clamp:2;text-wrap:initial;overflow-wrap:normal; }
  .home-view .hero-meta { margin:10px 0 0;font-size:13px;line-height:1.35;color:#bcbbc2; }
  .home-view .hero-meta span { color:inherit;margin:0; }
  .home-view .hero-meta > .hero-desktop-meta { display:none; }
  .home-view .hero-meta > .hero-mobile-meta {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  .home-view .hero-synopsis { display:none; }
  .home-view .hero-cta { position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:144px;min-height:52px;margin:16px 0 0;padding:12px 24px;border:1px solid #b7b6bd;border-radius:30px;background:linear-gradient(#fff,#f0eff5);color:#070707;font-size:18px;font-weight:700;line-height:26px;box-shadow:0 1px 3px #0004,inset 0 0 0 1px #fff; }
  .home-view .hero-cta::before { content:"";position:absolute;z-index:-2;width:165px;height:165px;inset:50% auto auto 50%;margin:-82.5px 0 0 -82.5px;background:conic-gradient(from 0deg,transparent 0deg 285deg,#ffffba 288deg,#8dffed 301deg,#5a92ff 314deg,#b159ff 327deg,#ff63c1 340deg,transparent 350deg);animation:native-rainbow-rim 3.6s linear infinite; }
  .home-view .hero-cta::after { content:"";position:absolute;z-index:-1;inset:1.5px;border-radius:28px;background:linear-gradient(#fff,#f0eff5); }
  .home-view .hero-cta img { width:18px;height:18px;filter:none; }
  .home-view .hero-play-icon { width:22px;height:22px;flex:none;color:#000; }
  .home-view .hero-note { margin-top:8px;font-size:8px;color:#b9b7be; }
  .home-view .featured-controls { display:flex;align-items:center;justify-content:center;height:29px;margin:0;padding:0;gap:0; }
  .home-view .featured-controls>#featured-prev,.home-view .featured-controls>#featured-next,.home-view .featured-controls>#featured-page { display:none; }
  .home-view .categories { display:none; }
  .home-view .arrivals-heading { min-height:54px;align-items:center;margin:0 0 0;padding:10px 0 10px; }
  .home-view .arrivals-heading h2 { font-size:22px;font-weight:700;line-height:28px;letter-spacing:-.02em; }
  .home-view #arrivals-count { display:none; }
  .home-view .poster-grid,.home-view .poster-grid[data-count] { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px; }
  .home-view .poster-image { aspect-ratio:1/1.35;border:0;border-radius:10px;background:#17171a; }
  .home-view #catalog .poster-badge,
  .home-view #catalog .poster-image::after { display:none; }
  .home-view .poster-card h3 { margin:8px 0 3px;font-size:14px;font-weight:700;line-height:1.3; }
  .home-view .poster-card p { font-size:11px;color:#bcbbc2; }
  .home-view #catalog .poster-card h3 { margin:8px 0 0;font-size:13px; }
  .home-view #catalog .poster-meta { margin-top:5px;font-size:10px;line-height:1.4; }
  .home-view #catalog .poster-meta > :not(.poster-mobile-meta) { display:none; }
  .home-view #catalog .poster-meta > .poster-mobile-meta {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  .bottom-nav { left:16px;right:16px;bottom:var(--native-bottom);height:72px;min-height:72px;padding:4px;border:1px solid #ffffff66;border-radius:36px;background:#000e;backdrop-filter:blur(18px);box-shadow:0 3px 12px #0005; }
  .bottom-nav a { min-width:0;min-height:62px;height:62px;flex:1;gap:3px;padding:0;border-radius:32px;color:#b9b7be;font-size:10px;line-height:13px; }
  .bottom-nav a>img,.bottom-nav a>.native-icon { width:24px;height:24px;opacity:1; }
  .bottom-nav a>img { filter:invert(1);opacity:.75; }
  .bottom-nav a.active { background:#ffffff30;border:1px solid #ffffff38;color:#f5f5f8;box-shadow:inset 0 0 0 .5px #ffffff26; }
  .bottom-nav a.active>img { opacity:1; }
  .bottom-nav .nav-upload { gap:3px; }
  .upload-symbol { display:grid;place-items:center;width:32px;height:32px;background:#f3d794;border-radius:10px;color:#241b0c; }
  .upload-symbol>.native-icon { width:28px;height:28px; }
  .resume-bar { position:fixed;z-index:26;left:16px;right:16px;bottom:calc(var(--native-bottom) + 78px);display:flex;align-items:center;gap:0;height:60px;min-height:60px;padding:6px 3px 6px 7px;border:0;border-radius:14px;background:#201f23f0;color:#f5f5f8; }
  #resume-cover { flex:none;width:34px;height:44px;object-fit:cover;border-radius:9px;background:#29272c; }
  .resume-copy { flex:1;min-width:0;margin:0 8px 0 12px;line-height:normal; }
  .resume-copy strong { display:block;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden; }
  .resume-copy>span { display:block;margin-top:3px;font-size:10px;line-height:13px;color:#c2babe; }
  .resume-play { display:grid;place-items:center;flex:none;width:64px;height:44px;border:0;border-radius:11px;background:#fff;color:#000;font-size:11px;font-weight:500;line-height:normal; }
  #resume-close { display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;padding:12px;background:none; }
  #resume-close>img { width:20px;height:20px;filter:invert(1); }
  .home-view .site-footer { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .home-view .header-checkin>.native-icon,.home-view .hero-cta::before { animation:none; }
}

/* Same Android Roboto outlines; Latin subset, all other scripts use system fallback. */
@font-face{font-family:NativeRoboto;src:url("assets/native-roboto-latin.woff") format("woff");font-style:normal;font-weight:100 900;font-display:swap;}
@media(max-width:760px){
 :root{--font:NativeRoboto,Roboto,"Helvetica Neue",Arial,sans-serif;}
 html{scrollbar-width:none;}html::-webkit-scrollbar{display:none;}
 .home-view .header-wallet{background:none!important;}
 .home-view .hero-cta::before{animation-duration:2.8s;}
}

/* Port of the active Android profile and MainActivity library geometry.
   Root sets body.profile-page / body.library-page and the list mode dataset. */
#profile-view.native-profile-page { display:flex;flex-direction:column;gap:0;max-width:600px;margin:auto;padding:26px 18px 104px;background:#000;color:#f5f5f8; }
.native-profile-page .profile-heading { display:flex;align-items:center;gap:0;min-height:80px;margin:10px 0 0; }
.native-profile-page .profile-avatar { display:grid;place-items:center;flex:none;width:60px;height:60px;padding:0;overflow:hidden;border:1px solid #575247;border-radius:44px;background:linear-gradient(#2b2a27,#171716); }
.native-profile-page .profile-avatar img { display:block;width:54px;height:54px;object-fit:cover;border-radius:0; }
.native-profile-page .profile-identity { min-width:0;flex:1;margin-left:12px; }
.native-profile-page .profile-identity h1 { margin:0;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.native-profile-page .profile-identity p { margin:5px 0 0;font-size:11px;line-height:1.25;color:#b2adb0; }
.native-profile-page .account-entry { display:flex;align-items:center;gap:6px;flex:none;min-height:40px;margin:0 0 0 8px;padding:0 15px;border:1px solid #878783;border-radius:7px;background:transparent;color:#e0e0de;font-size:15px;font-weight:400;line-height:normal; }
.native-profile-page .account-entry .profile-chevron { width:14px;height:14px;margin:0;opacity:.8; }
.native-profile-page .profile-vip { display:block;min-height:136px;width:100%;margin-top:12px;padding:12px 14px;border:0;border-radius:10px;background:linear-gradient(135deg,#ffedb7,#ffd27c);color:#301d08;text-align:left; }
.profile-vip-top { display:flex;align-items:center;gap:10px; }
.profile-vip-words { flex:1;min-width:0; }
.native-profile-page .profile-vip strong { display:block;font-size:19px;line-height:1.2;letter-spacing:0;font-weight:700; }
.profile-vip-action { display:grid;place-items:center;flex:none;min-height:48px;max-width:128px;padding:7px 14px;background:#000;border-radius:24px;color:#ffe4ad;font-size:13px;line-height:1.2;font-weight:700; }
.profile-vip-benefits { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 0;margin-top:12px; }
.profile-benefit { display:flex;align-items:center;min-height:24px;color:#4f3213; }
.profile-benefit-icon { display:block;flex:none;width:18px;height:18px;color:#54310e;object-fit:contain; }
.profile-benefit>span { flex:1;min-width:0;margin-left:7px;margin-right:5px;font-size:12px;line-height:1.2;font-weight:500; }
.native-profile-page .profile-wallet { display:block;position:relative;isolation:isolate;width:100%;min-height:0;margin-top:12px;padding:9px 14px;border:1px solid #a48b61;border-radius:19px;background:radial-gradient(110px 110px at calc(100% - 55px) -18px,#d8af6324,#d8af6300),linear-gradient(#231d15,#15120e,#0c0c0c);text-align:left;color:#ffe5b5; }
.native-profile-page .profile-wallet>span { font-size:inherit;font-weight:inherit; }
.profile-wallet-header { display:flex;align-items:center; }
.native-profile-page .profile-wallet-header>img { width:20px;height:20px;object-fit:contain; }
.profile-wallet-header>strong { flex:1;margin-left:9px;font-size:12px;line-height:1.2;font-weight:700;color:#f3deb7; }
.profile-wallet-tag { padding:4px 8px;border:1px solid #9474485a;border-radius:5px;background:#7b5c2823;color:#d4bc8a;font-size:9px;font-weight:400;letter-spacing:.12em;line-height:1.1; }
.profile-wallet-divider { display:block;height:1px;margin-top:8px;background:linear-gradient(90deg,#b59a6765,#b59a6728,#b59a6700); }
.profile-wallet-values { display:flex;align-items:center;gap:0;margin-top:7px; }
.profile-wallet-value { flex:1;min-width:0; }
.profile-wallet-value>strong { display:block;font-size:22px;line-height:1.15;color:#ffe5b5; }
.profile-wallet-value>span { display:block;margin-top:1px;color:#c7b69a;font-size:12px;font-weight:500;line-height:1.2; }
.profile-recharge { display:grid;place-items:center;flex:none;min-height:40px;max-width:120px;padding:8px 15px;border:1px solid #ffe7b5;border-radius:10px;background:linear-gradient(#ffe9ba,#e3be79,#d7a85b);color:#2d1c0d;font-size:13px;font-weight:700;line-height:normal; }
.native-profile-page .profile-wallet>.profile-wallet-status { display:block;margin-top:8px;font-size:11px;line-height:1.25;color:#b2adb0; }
.native-profile-page .profile-menu { display:block;width:100%;max-width:none;margin:14px 0 0;padding:0;border:0;border-radius:0;background:#000; }
.native-profile-page .profile-menu button,.native-profile-page .profile-menu>a { display:flex;position:relative;align-items:center;gap:0;width:100%;min-height:56px;margin:0;padding:12px 6px;border:0;border-radius:0;background:none;color:#f5f5f8;text-align:left; }
.native-profile-page .profile-menu>:not(:last-child)::after { content:"";position:absolute;left:50px;right:14px;bottom:0;height:1px;background:#242426; }
.native-profile-page .profile-menu-icon { display:block;flex:none;width:23px;height:23px;margin:0;color:#bebebb; }
.native-profile-page .profile-menu>button>span,.native-profile-page .profile-menu>a>span { min-width:0;flex:1;margin:0 10px 0 14px;font-size:15px;font-weight:400;line-height:1.3; }
.native-profile-page .profile-menu .profile-chevron { display:block;flex:none;width:16px;height:16px;margin:0;opacity:.48; }
.native-profile-page .profile-stats[hidden] { display:none!important; }
#library-view.native-library-page { max-width:880px;margin:auto;padding:0 0 104px;background:#000;color:#f5f5f8; }
.library-chrome { display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 15px; }
.native-library-page .library-tabs { display:flex;align-items:center;gap:20px;height:44px;margin:0;border:0; }
.native-library-page .library-tabs button { position:relative;height:44px;min-height:44px;margin:0;padding:0 2px 0 0;border:0;background:none;color:#ffffff80;font-size:16px;font-weight:700;line-height:22px; }
.native-library-page .library-tabs button.active { color:#f5f5f8;font-size:18px; }
.native-library-page .library-tabs button.active::after { content:"";position:absolute;bottom:2px;left:calc(50% - 10px);width:20px;height:3px;border-radius:2px;background:#fff; }
.library-edit { display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0;padding:10px;border:0;background:none;color:#fff;font-size:15px; }
.library-edit-icon { width:24px;height:24px; }
.native-library-page .library-list { display:flex;flex-direction:column;gap:0;width:100%;max-width:none;margin:0; }
.native-library-page .library-row { display:flex;align-items:center;gap:0;min-width:0;min-height:128px;margin:0;padding:10px 15px;border:0;border-radius:0;background:none;color:#f5f5f8; }
.native-library-page .library-poster { display:block;flex:none;width:88px;height:108px;aspect-ratio:auto;border-radius:6px;overflow:hidden; }
.native-library-page .library-poster img { width:100%;height:100%;object-fit:cover; }
.native-library-page .library-copy { min-width:0;flex:1;align-self:center;height:108px;margin-left:10px; }
.native-library-page .library-row h3 { display:block;margin:2px 0 0;font-size:16px;font-weight:700;line-height:20px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.native-library-page .library-row p { display:-webkit-box;margin:6px 0 0;color:#b2adb0;font-size:13px;line-height:17px;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.native-library-page .library-episode { display:block;margin-top:6px;color:#b2adb0;font-size:13px;line-height:17px; }
.native-library-page .library-arrow { display:none; }
.native-library-page #library-catalog[data-library-mode="favorites"] { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px;padding:0 15px; }
.native-library-page [data-library-mode="favorites"] .library-row { display:block;position:relative;min-height:0;padding:15px 0 0; }
.native-library-page [data-library-mode="favorites"] .library-poster { width:100%;height:auto;aspect-ratio:1/1.46; }
.native-library-page [data-library-mode="favorites"] .library-copy { height:auto;margin:0; }
.native-library-page [data-library-mode="favorites"] .library-row h3 { display:-webkit-box;white-space:normal;margin-top:5px;font-size:13px;line-height:17px;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
.native-library-page [data-library-mode="favorites"] .library-row p { display:none; }
.native-library-page [data-library-mode="favorites"] .library-episode { margin-top:4px;font-size:12px;line-height:16px; }
.native-library-page .library-select { display:grid;place-items:center;flex:none;width:22px;height:22px;margin-right:10px;padding:0;border:1px solid #777;border-radius:50%;background:none;color:#000; }
.native-library-page .library-select[aria-checked="true"] { border-color:#fff;background:#fff;color:#000; }
.native-library-page [data-library-mode="favorites"] .library-select { position:absolute;top:20px;right:5px;z-index:2;margin:0; }
.library-bulk-bar { position:fixed;bottom:calc(96px + env(safe-area-inset-bottom,0px));left:16px;right:16px;z-index:28;display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px 0 18px;border-radius:18px;background:#252332;color:#f5f5f8; }
.library-bulk-bar>span { flex:1;font-size:14px; }
.library-bulk-bar>button { min-height:36px;min-width:92px;padding:0 16px;border:0;border-radius:10px;background:#f5f5f8;color:#111;font-size:15px;font-weight:700; }
.native-library-page #library-message { margin:0;border:0;border-radius:0;background:none; }
.native-library-page #library-message h2 { font-size:18px; }
.native-library-page #library-message p { font-size:13px; }
.native-library-page .library-empty-image { display:block;width:150px;height:150px;margin:100px auto 0;object-fit:contain; }
@media(max-width:760px) {
 .profile-page .site-header,.library-page .site-header { display:none; }
 .profile-page main,.library-page main { min-height:calc(var(--player-viewport-height,100vh) - 96px); }
 .profile-page .site-footer,.library-page .site-footer { display:none; }
 #profile-view.native-profile-page { max-width:none; }
 .native-library-page .library-chrome { position:sticky;top:0;z-index:25;background:#000; }
}
@media(min-width:761px) {
 #profile-view.native-profile-page { margin-top:18px; }
 #library-view.native-library-page { padding-top:22px; }
 .library-bulk-bar { left:50%;right:auto;width:min(848px,calc(100% - 32px));transform:translateX(-50%); }
}


/* Native geometry: StudioCommerceScreen, StudioAccountScreens; Web capability stays explicit. */
dialog.commerce-dialog { --commerce-gold:#f0d39a;--commerce-soft:#bdb7ae;box-sizing:border-box;width:min(560px,calc(100% - 32px));max-width:560px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #514333;border-radius:16px;background:#000;color:#f5f5f8;font-family:var(--font);overflow:hidden; }
dialog.commerce-dialog[open] { display:flex;flex-direction:column; }
.commerce-dialog::backdrop { background:#000b;backdrop-filter:blur(6px); }
.commerce-dialog .commerce-heading { flex:none;display:flex;align-items:center;gap:0;min-height:58px;padding:5px 16px 5px 8px;background:inherit; }
.commerce-dialog .commerce-heading h2 { flex:1;margin:0;font-size:18px;font-weight:700;line-height:1.25;letter-spacing:0; }
.commerce-dialog .commerce-heading button { flex:none;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:0;background:none; }
.commerce-dialog .commerce-back img { width:21px;height:21px;transform:rotate(180deg); }
.commerce-dialog .commerce-close img { width:18px;height:18px; }
.commerce-dialog .commerce-scroll { flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 20px 22px;scrollbar-width:none; }
.commerce-dialog .commerce-scroll::-webkit-scrollbar { display:none; }
.commerce-dialog .commerce-eyebrow { display:block;font-size:10px;line-height:1.4;letter-spacing:.13em;color:var(--commerce-gold); }
.commerce-dialog .commerce-section-title { margin:20px 0 0;font-size:20px;line-height:1.35;font-weight:700; }
.commerce-dialog .commerce-note { margin:12px 0 0;color:var(--commerce-soft);font-size:11px;line-height:1.6; }
.commerce-dialog .commerce-centered { text-align:center; }
.commerce-dialog .commerce-state { margin:7px 0 0;color:var(--commerce-soft);font-size:12px;line-height:1.5; }
.commerce-dialog .native-wallet-balance { padding:17px 18px;border:1px solid #b4935e;border-radius:20px;background:linear-gradient(135deg,#2c2419,#1b1710,#10100e); }
.commerce-dialog .native-wallet-balance>div { display:flex;align-items:center;gap:12px;margin-top:10px;min-height:39px; }
.commerce-dialog .native-wallet-balance img { flex:none;width:27px;height:27px;object-fit:contain; }
.commerce-dialog .native-wallet-balance strong { font-size:32px;line-height:1.2;font-weight:700; }
.commerce-dialog .native-wallet-balance div>span { margin-left:2px;color:var(--commerce-soft);font-size:12px; }
.commerce-dialog .native-wallet-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 0; }
.commerce-dialog .native-coin-card { display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:137px;padding:11px 14px;border:1px solid #38332a;border-radius:16px;background:linear-gradient(135deg,#1b1915,#131210);color:#f5f5f8;text-align:left; }
.commerce-dialog .native-coin-card[aria-pressed="true"] { border:1.5px solid var(--commerce-gold);background:linear-gradient(135deg,#33291b,#201a12,#17140f);padding:10.5px 13.5px; }
.commerce-dialog .coin-card-top { display:flex;align-items:center;justify-content:space-between;min-height:40px; }
.commerce-dialog .coin-card-top>img { width:40px;height:40px;object-fit:contain; }
.commerce-dialog .coin-selection { display:grid;place-items:center;width:19px;height:19px;border:1px solid #726879;border-radius:50%;color:#30230c;font-size:13px;line-height:1; }
.commerce-dialog [aria-pressed="true"] .coin-selection { background:var(--commerce-gold);border-color:var(--commerce-gold); }
.commerce-dialog .native-coin-card>strong { margin-top:7px;font-size:22px;line-height:1.25;font-weight:700; }
.commerce-dialog .coin-unit { margin-top:2px;font-size:9px;line-height:1.4;letter-spacing:.13em;color:var(--commerce-soft); }
.commerce-dialog .coin-reference-price { margin-top:5px;font-size:13px;line-height:1.3;font-weight:500;color:var(--commerce-gold); }
.commerce-dialog .coin-card-tier { padding:4px 7px;border:1px solid #6f5a36;border-radius:5px;background:#30281c;color:var(--commerce-gold);font-size:9px;line-height:1.3; }
.commerce-dialog .native-wallet-footer { flex:none;padding:10px 20px 14px;border-top:1px solid #55433566;background:linear-gradient(#15130f,#080808);text-align:center; }
.commerce-dialog .commerce-gold-button { display:block;width:100%;min-height:50px;margin:10px 0 0;padding:12px 14px;border:1px solid #ffe8b2;border-radius:14px;background:linear-gradient(90deg,#ffedc5,#e0bc78,#f7dfab);color:#211604;font-size:15px;line-height:1.35;font-weight:700; }
.commerce-dialog .commerce-gold-button:disabled { opacity:1;background:linear-gradient(90deg,#c0b28f,#b5a378,#c0b28f);color:#393122;border-color:#b9a578;cursor:not-allowed; }
.commerce-dialog .commerce-restore { display:block;min-height:48px;width:100%;margin:10px 0 0;padding:10px;border:0;background:none;color:var(--commerce-soft);font-size:13px;text-align:center; }
.commerce-retry {
  display:block;width:100%;min-height:44px;margin:8px 0 0;padding:8px 12px;
  border:1px solid #514333;border-radius:12px;background:#131210;color:#f0d39a;font-size:13px;text-align:center;
}
.commerce-retry:disabled { opacity:.55; }
.commerce-dialog.native-vip { background:#191919; }
.commerce-dialog.native-vip .commerce-heading { min-height:48px;padding:3px 8px 3px 12px; }
.commerce-dialog.native-vip .commerce-heading h2 { font-size:16px; }
.commerce-dialog.native-vip .commerce-close { width:44px;height:44px; }
.commerce-dialog.native-vip .commerce-scroll { padding:8px 12px 22px; }
.commerce-dialog .native-vip-plans { display:flex;flex-direction:column;gap:9px;margin:0; }
.commerce-dialog .native-plan-card { display:block;width:100%;overflow:hidden;padding:0;border:1px solid #b49568;border-radius:8px;background:#f9ecd3;text-align:start;color:#503315; }
.commerce-dialog .native-plan-card[aria-pressed="true"] { border-color:#f3d794;box-shadow:0 0 0 1px #f3d794; }
.commerce-dialog .native-plan-main {
  display:block;min-height:70px;padding:10px 13px 12px;border-bottom:1px solid #cfae7f;
  background:url("assets/native-vip-plan-rays.svg") center / 100% 100% no-repeat,linear-gradient(105deg,#ebc58a,#fff1d7 50%,#f0d3a0);
}
.commerce-dialog .native-plan-main:last-child { border-bottom:0; }
.commerce-dialog .native-plan-heading { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.commerce-dialog .native-plan-heading>strong { font-size:15px;line-height:1.3;font-weight:700; }
.commerce-dialog .native-plan-card .coin-selection { width:17px;height:17px;background:transparent;border-color:#8c7652; }
.commerce-dialog .native-plan-card[aria-pressed="true"] .coin-selection { background:var(--commerce-gold);border-color:#806132; }
.commerce-dialog .native-plan-price { display:block;margin-top:4px;font-size:13px;line-height:1.4;font-weight:700; }
.commerce-dialog .native-plan-benefits {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;
  padding:9px 12px;background:#f9ecd3;color:#573b20;font-size:12px;font-weight:650;line-height:1.35;
}
.commerce-dialog .native-plan-benefit { display:flex;min-width:0;align-items:center;gap:7px;overflow-wrap:anywhere; }
.commerce-dialog .native-plan-benefit-wide { grid-column:1 / -1; }
.commerce-dialog .native-plan-benefits .vip-plan-glyph {
  flex:none;width:15px;height:15px;background:currentColor;
  mask:url("assets/icon-crown.svg") center / contain no-repeat;
  -webkit-mask:url("assets/icon-crown.svg") center / contain no-repeat;
}
.commerce-dialog.native-vip .commerce-heading h2 { font-size:16px; }
.commerce-dialog .native-vip-purchase { padding:16px 12px 12px; }
.commerce-dialog .commerce-vip-button { width:100%;min-height:50px;padding:12px;border:1px solid #927046bf;border-radius:9px;background:linear-gradient(110deg,#49301a,#21160d,#352211);color:#ffe9b7;font-size:18px;line-height:1.3;font-weight:700; }
.commerce-dialog .commerce-vip-button:disabled { opacity:1;color:#cbb68f;cursor:not-allowed; }
.commerce-dialog.native-vip .commerce-section-title { margin-top:22px;font-size:17px; }
.commerce-dialog .native-vip-balance { display:flex;align-items:center;gap:12px;width:100%;min-height:72px;margin:10px 0 0;padding:12px 14px;border:0;border-radius:8px;background:#111;color:#f5f5f8;text-align:left; }
.commerce-dialog .native-vip-balance>img { width:24px;height:24px;object-fit:contain; }
.commerce-dialog .native-vip-balance strong { flex:1;min-width:0;font-size:20px;font-weight:700;color:var(--commerce-gold); }
.commerce-dialog .native-vip-balance span { font-size:13px; }
.commerce-dialog .native-vip-balance img.commerce-chevron { width:16px;height:16px; }
.commerce-dialog.native-checkin .commerce-heading { padding:12px 18px 0;min-height:60px; }
.commerce-dialog.native-checkin .commerce-heading h2 { margin-left:8px;font-size:22px; }
.commerce-dialog.native-checkin .commerce-scroll { padding:20px 18px 28px; }
.commerce-dialog .checkin-headline { margin:10px 0 0;font-size:26px;line-height:1.3;font-weight:700; }
.commerce-dialog .native-checkin-card { padding:18px 16px;margin-top:22px;border:1px solid #443c2d;border-radius:18px;background:#181713; }
.commerce-dialog .checkin-balance-label { color:#b2adb0;font-size:12px;line-height:1.5; }
.commerce-dialog .checkin-balance { display:block;margin-top:7px;font-size:27px;line-height:1.25;font-weight:700;color:var(--commerce-gold); }
.commerce-dialog .native-reward-week { display:flex;align-items:stretch;gap:4px;margin-top:18px;overflow-x:auto;scrollbar-width:none; }
.commerce-dialog .native-reward-day { flex:1;min-width:36px;padding:12px 3px 10px;border:1px solid #3a352a;border-radius:12px;background:#23211c;text-align:center; }
.commerce-dialog .native-reward-day img { width:27px;height:27px;object-fit:contain;margin:auto; }
.commerce-dialog .native-reward-day strong { display:block;margin-top:7px;color:var(--commerce-gold);font-size:14px;font-weight:500;line-height:1.3; }
.commerce-dialog .native-reward-day span { display:block;margin-top:5px;color:#b2adb0;font-size:10px;line-height:1.3;white-space:nowrap; }
.commerce-dialog #checkin-action { margin-top:18px;min-height:50px;background:#2a2927;color:#999792;border-color:transparent; }
.commerce-dialog .checkin-reminder { display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;margin-top:10px;padding:10px 12px;border:1px solid #8d7143;border-radius:13px;background:#302719;color:#f6dfaf;font-size:13px;line-height:1.35; }
.commerce-dialog .checkin-reminder:disabled { opacity:.75; }
.commerce-dialog .checkin-reminder svg { width:22px;height:22px;flex:none; }
.commerce-dialog .checkin-next { margin-top:12px;color:var(--commerce-gold);font-size:13px;line-height:1.5; }
@media(max-width:760px) {
 dialog.commerce-dialog { position:fixed;inset:0;width:100%;max-width:none;height:var(--player-viewport-height,100vh);height:100dvh;max-height:none;margin:0;border:0;border-radius:0; }
 .commerce-dialog .commerce-heading { padding-top:max(5px,env(safe-area-inset-top)); }
 .commerce-dialog .native-wallet-footer { padding-bottom:calc(14px + env(safe-area-inset-bottom,0px)); }
 .commerce-dialog .commerce-scroll { padding-bottom:calc(22px + env(safe-area-inset-bottom,0px)); }
 .commerce-dialog.native-checkin .commerce-scroll { padding-bottom:calc(28px + env(safe-area-inset-bottom,0px)); }
}
@media(max-width:360px) {
 .commerce-dialog .native-wallet-balance div>span { display:none; }
 .commerce-dialog .native-wallet-balance strong { font-size:23px; }
 .commerce-dialog .native-coin-card { padding:11px; }
 .commerce-dialog .native-coin-card[aria-pressed="true"] { padding:10.5px; }
 .commerce-dialog .native-reward-day { flex:0 0 48px; }
}


/* Native PlayerScreen port: 48dp action rail / 24dp icons, black footer,
   15dp side inset, 15sp title, 13sp creator, 44dp collection and seek targets.
   CSS is presentation only; server episode.locked remains the access boundary. */
.player-rail>.selected .favorite-star path { fill:currentColor; }
.player-rail #rail-favorite.selected { color:#f3cf79; }
.player-rail #rail-favorite.selected .native-icon { color:#f3cf79; }
.player-rail #like-button.selected { color:#ff4d69; }
.player-rail #like-button.selected>img { filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(2201%) hue-rotate(321deg) brightness(105%) contrast(101%); }
.player-toggle { display:none; }
.episode-sheet-backdrop,.episode-sheet-grabber,#close-episodes,#episode-sheet-cover { display:none; }
.episode-sheet-top { min-width:0; }.episode-sheet-title { min-width:0; }
.player-state { display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background:#000b; }
.player-state-card { position:relative;width:min(360px,100%);padding:24px;border:1px solid #ffffff16;border-radius:16px;background:#19191ded;text-align:center; }
.player-state-card .player-state-icon { margin-inline:auto; }.player-state-card h2 { font-size:20px;line-height:1.3;font-weight:700;letter-spacing:0; }.player-state-card>p { font-size:13px;line-height:1.6;max-width:none;margin:12px 0 20px;color:#bcbcc5; }
.player-unlock-close,#player-unlock-open,.unlock-browse { display:none; }
.player-state.is-locked { position:fixed;z-index:75;inset:0;justify-content:flex-end;align-items:center;padding:0;background:#0008; }
.player-state.is-locked .player-state-card { width:100%;max-width:560px;max-height:88vh;overflow-y:auto;border:0;border-radius:16px 16px 0 0;padding:24px 18px max(20px,env(safe-area-inset-bottom));background:#191919;text-align:left; }
.player-state.is-locked .player-state-card>.player-state-icon { display:none; }
.player-state.is-locked .player-state-card>h2 { padding-right:44px;font-size:20px; }
.player-state.is-locked .player-state-card>p { margin:12px 0 14px;font-size:13px; }
.player-state.is-locked .player-unlock-close { display:grid;place-items:center;position:absolute;right:8px;top:12px;width:44px;height:44px;border:0;border-radius:50%;padding:12px;background:none; }
.player-unlock-close>img { width:20px;height:20px;filter:invert(1); }
.unlock-episode-label { margin:0 0 14px;font-size:12px;color:#bcbcc5; }
.unlock-price-boundary { display:flex;gap:12px;align-items:center;padding:14px;border-radius:10px;background:#252525; }
.unlock-price-boundary>img { width:32px;height:32px;object-fit:contain; }.unlock-price-boundary strong { display:block;color:#f1d394;font-size:14px; }.unlock-price-boundary span { display:block;margin-top:4px;font-size:12px;line-height:1.5;color:#c8c5bd; }
.unlock-coin-rail {
  display:flex;gap:8px;max-width:100%;margin-top:12px;
  overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;
}
.unlock-coin-card {
  display:flex;flex:0 0 156px;flex-direction:column;align-items:center;min-height:102px;
  padding:0;border:1px solid #414141;border-radius:7px;overflow:hidden;
  background:#282828;color:#f5f5f8;text-align:center;
}
.unlock-coin-card>img { width:27px;height:27px;margin-top:12px;object-fit:contain; }
.unlock-coin-card>strong { margin:5px 8px 10px;font-size:19px;font-weight:700;line-height:1.2; }
.unlock-coin-price {
  display:grid;place-items:center;align-self:stretch;min-height:29px;
  margin-top:auto;padding:4px 8px;background:#333;color:inherit;font-size:13px;font-weight:700;line-height:1.3;
}
.unlock-coin-card[aria-pressed="true"] {
  border-color:#f0d39a;background:linear-gradient(135deg,#ffedc5,#e0bc78);color:#382612;
}
.unlock-coin-card[aria-pressed="true"] .unlock-coin-price { background:#5c371324; }
.unlock-coin-card:focus-visible { outline-offset:-3px; }
@media(max-width:760px) { .unlock-coin-rail { scrollbar-width:none; } }
.unlock-wallet-row,.unlock-vip-row { display:flex;align-items:center;width:100%;gap:12px;min-height:76px;text-align:left;margin-top:12px;padding:14px;border:1px solid #5b503d;border-radius:10px;background:#25221c;color:#fff; }
.unlock-wallet-row>span,.unlock-vip-row>span { flex:1;min-width:0; }.unlock-wallet-row strong,.unlock-vip-row strong { display:block;font-size:16px; }.unlock-wallet-row small,.unlock-vip-row small { display:block;margin-top:4px;font-size:12px;line-height:1.4; }
.unlock-wallet-row>img { width:36px;height:36px;object-fit:contain; }.unlock-vip-row>img { width:40px;height:40px;object-fit:contain; }.unlock-wallet-row>.unlock-chevron,.unlock-vip-row>.unlock-chevron { width:16px;height:16px; }
.unlock-vip-row { background:linear-gradient(125deg,#f4d597,#fff0cf);border-color:#eed295;color:#503315; }.unlock-vip-row>.unlock-chevron { filter:none!important; }
.unlock-web-note { margin:14px 0;font-size:12px;line-height:1.6;color:#aaa6a4; }
.player-state.is-locked #player-state-action { width:100%;min-height:48px;margin-top:12px;border-radius:10px;background:#f5f5f8;color:#141416;border-color:#f5f5f8; }
.player-state.is-locked .unlock-browse { display:block;width:100%;min-height:44px;margin-top:6px;padding:10px;border:0;background:none;color:#d2d0d7;font-size:13px;text-align:center; }
.player-state.is-locked.unlock-collapsed { position:absolute;z-index:10;inset:0;justify-content:center;padding:20px; }
.player-state.is-locked.unlock-collapsed .player-state-card { width:min(360px,100%);border-radius:16px;padding:24px; }
.player-state.is-locked.unlock-collapsed #player-unlock-options,.player-state.is-locked.unlock-collapsed .player-unlock-close { display:none; }
.player-state.is-locked.unlock-collapsed #player-unlock-open { display:flex;justify-content:center;width:100%;min-height:44px;margin-top:8px; }
@media(min-width:761px){
 .player-info-overlay{padding:10px 15px 0;}.player-info-overlay h2{font-size:15px;line-height:18px;margin:0 0 4px;}.player-info-overlay>span{font-size:13px;line-height:22px;margin:0;}.player-collection-button{min-height:44px;background:#555;}.player-progress{height:44px;margin:0;}
 .player-rail button>.native-icon{width:20px;height:20px;}.player-state.is-locked .player-state-card{margin:0 auto 20px;border-radius:16px;}
}
@media(max-width:760px){
 body.watching { overflow:hidden;background:#000; }
 body.watching .site-header,body.watching .site-footer { display:none; }
 body.watching main { min-height:0;max-width:none; }
 body.watching:not(.for-you-mode) .bottom-nav { display:none; }
 body.watching #detail-view { position:relative;isolation:isolate;height:var(--player-viewport-height,100vh);min-height:0;margin:0;padding:0;overflow:hidden; }
 body.watching.for-you-mode #detail-view { height:calc(var(--player-viewport-height,100vh) - 84px - env(safe-area-inset-bottom,0px)); }
 .feed-swipe-preview { position:absolute;inset:0;display:grid;align-items:end;overflow:hidden;background:#101014;pointer-events:none; }
 .feed-swipe-preview img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
 .feed-swipe-preview span {
   position:relative;padding:36px 18px 22px;background:linear-gradient(transparent,#000c);
   color:#fff;font-size:15px;font-weight:700;overflow-wrap:anywhere;
 }
 #detail-view.feed-swipe-active #detail-content { transform:translate3d(0,var(--feed-drag-y,0px),0);will-change:transform; }
 #detail-view.feed-swipe-active .feed-swipe-preview { transform:translate3d(0,var(--feed-preview-y,0px),0);will-change:transform; }
 #detail-view.feed-swipe-settling :is(#detail-content,.feed-swipe-preview) { transition:transform 160ms cubic-bezier(.21,.72,.28,1); }
 #detail-view.feed-swipe-opening #detail-message { position:absolute;z-index:2;inset: auto 16px 74px;margin:0;min-height:0;padding:14px;background:#111d; }
 body.watching .detail-layout { display:block;height:100%;margin:0;padding:0; }
 body.watching .player-column { position:relative;width:100%;height:100%; }
 body.watching .player-wrap { display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;overflow:hidden;border:0;border-radius:0;background:#000; }
 body.watching .player-wrap video { display:block;flex:1 1 0;width:100%;height:0;min-height:0;max-height:none;object-fit:contain;background:#000; }
 body.watching .player-wrap:fullscreen { height:100%;max-height:none; }
 body.watching .back-button { position:absolute;z-index:14;top:max(6px,env(safe-area-inset-top));left:10px;display:grid;place-items:center;width:32px;height:32px;min-height:32px;margin:0;padding:4px;border:0;border-radius:50%;background:none; }
 body.watching .back-button>img { width:24px;height:24px;opacity:1; }.watching .back-button>span { display:none; }
 body.watching.for-you-mode .back-button { display:none; }
 body.watching .player-info-overlay { position:relative;flex:none;display:block;z-index:3;inset:auto;width:100%;padding:0 15px 4px;background:#000;color:#fff;text-shadow:none; }
 body.watching .player-info-overlay h2 { margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:700 15px/18px var(--font);letter-spacing:0; }
 body.watching .player-info-overlay>span { display:block;height:22px;margin:0;padding:0;border:0;border-radius:0;background:none;font:400 13px/22px var(--font); }
 body.watching .player-collection-button { margin:0;padding:4px 32px;border:0;border-radius:8px;background:linear-gradient(to bottom,#000 0 4px,#555 4px calc(100% - 4px),#000 calc(100% - 4px));font:600 13px/18px var(--font);color:#f7f7fa; }
 body.watching .player-collection-button>img { right:9px;width:14px;height:18px;opacity:.75; }
 body.watching .player-progress { display:block;width:100%;height:44px;margin:0;padding:0;border:0;background:none; }
 body.watching .player-progress::-webkit-slider-runnable-track { height:2px;background:linear-gradient(to right,#fff var(--played,0%),#ffffff30 var(--played,0%)); }
 body.watching .player-progress::-moz-range-track { height:2px;background:#ffffff30; }
 body.watching .player-progress::-webkit-slider-thumb { width:8px;height:8px;margin-top:-3px;border:0;background:#fff; }
 body.watching .player-progress::-moz-range-thumb { width:8px;height:8px;border:0;background:#fff; }
 body.watching .player-rail { position:absolute;z-index:9;left:auto;right:10px;top:auto;bottom:calc(var(--native-player-footer,132px) + 22px);display:flex;flex-direction:column;gap:0;width:48px;opacity:1;pointer-events:auto; }
 body.watching .player-rail button { display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:0;width:48px;min-height:63px;padding:10px 0 6px;border:0;border-radius:0;background:none;box-shadow:none;color:#f5f5f8;text-shadow:0 1px 3px #0005; }
 body.watching .player-rail button>img,body.watching .player-rail button>.native-icon { flex:none;width:24px;height:24px;margin:0 0 11px;object-fit:contain; }
 body.watching .player-rail button>small { display:block;font-size:10px;line-height:12px;max-width:48px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
 body.watching .player-rail button:last-of-type { padding-bottom:0; }
 body.watching .player-rail button[aria-pressed="true"] { border:0;background:none; }
 body.watching .player-rail #rail-favorite.selected { color:#f3cf79; }
 body.watching .player-rail #like-button.selected { color:#ff4d69; }
 body.watching #share-button { display:none; }
 body.watching .player-toggle { position:absolute;z-index:8;top:calc((100% - var(--native-player-footer,132px))/2);left:50%;display:grid;place-items:center;width:56px;height:56px;padding:12px;transform:translate(-50%,-50%);border:0;border-radius:50%;background:#00000038;color:#f5f5f8;opacity:0;pointer-events:none;transition:opacity .16s; }
 body.watching .player-toggle>svg { width:32px;height:32px; }.player-toggle .player-toggle-pause { display:none; }
 body.watching .player-toggle.is-paused,body.watching .player-toggle:focus-visible { opacity:1;pointer-events:auto; }
 body.watching .player-toggle:not(.is-paused) .player-toggle-play { display:none; }.player-toggle:not(.is-paused) .player-toggle-pause { display:block; }
 body.watching .player-toolbar,body.watching .playback-controls,body.watching .keyboard-help { display:none; }
 body.watching .playback-note { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 body.watching #detail-message { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:32px 24px;border:0;border-radius:0;background:#000; }
 body.watching #detail-message h2 { font-size:20px;line-height:1.3; }.watching #detail-message p { font-size:13px;line-height:1.6; }
 body.watching .story-column { display:none; }
 body.watching.episode-sheet-open .story-column { position:fixed;z-index:65;left:0;right:0;top:auto;bottom:0;display:block;max-height:80vh;max-height:80dvh;margin:0;padding:0 15px max(20px,env(safe-area-inset-bottom));overflow-y:auto;border-radius:16px 16px 0 0;background:#19191e;box-shadow:0 -4px 30px #0005; }
 body.watching.episode-sheet-open .episode-sheet-backdrop { position:fixed;z-index:64;inset:0;display:block;width:100%;height:100%;border:0;background:#0008; }
 .episode-sheet-grabber { width:36px;height:4px;margin:8px auto 12px;border-radius:2px;background:#54545b; }
 body.watching.episode-sheet-open .episode-sheet-grabber { display:block; }
 .episode-sheet-top { display:flex;align-items:flex-start;gap:10px;min-height:70px; }
 body.watching.episode-sheet-open #episode-sheet-cover { display:block;flex:none;width:52px;height:70px;border-radius:6px;object-fit:cover;background:#222; }
 .episode-sheet-top>.episode-sheet-title { flex:1;min-width:0;padding-top:2px; }
 body.watching .story-column h1 { font:700 17px/1.25 var(--font);letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
 body.watching .detail-category { display:none; }.watching .detail-meta { margin:6px 0 0;font-size:11px;line-height:1.4;color:#a6a5af; }
 body.watching #close-episodes { display:grid;place-items:center;flex:none;width:44px;height:44px;margin:-2px -7px 0 0;padding:12px;border:0;background:none; }
 #close-episodes>img { width:20px;height:20px;filter:invert(1); }
 body.watching .story-column .favorite-button,body.watching .story-column .synopsis { display:none; }
 body.watching .episode-heading { min-height:47px;margin:14px 0 0;padding:0;border:0;align-items:center; }
 body.watching .episode-heading h2 { position:relative;font-size:16px;font-weight:700;padding:0 0 12px;line-height:28px; }
 body.watching .episode-heading h2::after { content:"";position:absolute;left:0;bottom:4px;width:28px;height:3px;border-radius:2px;background:#f4f4f7; }
 body.watching #episode-total { color:#a6a5af;font-size:11px; }
 body.watching .episode-grid { grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px; }
 body.watching .episode-button { min-height:44px;height:44px;padding:6px;border:1px solid #ffffff14;border-radius:7px;background:#27272e;color:#f5f5f8;font-size:14px; }
 body.watching .episode-button.active { border-color:#fff;background:#f5f5f8;color:#111; }.watching .episode-button.locked .lock-icon { width:11px;height:11px; }
 body.watching .episode-hint { margin:16px 0 0;font-size:11px;line-height:1.5;color:#aaa6b0; }
}
.feed-swipe-preview { display:none; }
@media(max-width:760px) { .feed-swipe-preview:not([hidden]) { display:grid; } }
@supports(height:100dvh){@media(max-width:760px){body.watching #detail-view{height:100dvh;}body.watching.for-you-mode #detail-view{height:calc(100dvh - 84px - env(safe-area-inset-bottom,0px));}}}
@media(max-width:760px),(any-pointer:coarse){
 body.watching:not(.unlock-sheet-open) .player-wrap,body.watching #detail-message,body.watching.for-you-mode #detail-view.feed-awaiting-detail { touch-action:pan-x pinch-zoom; }
}
@media(prefers-reduced-motion:reduce){.player-toggle{transition:none;}}

@media(max-width:760px){body.watching.for-you-mode .player-info-overlay{padding-bottom:0;}}

.player-info-overlay>span>strong{font-weight:700;}

@media(max-width:760px){body.watching.episode-sheet-open #detail-view,body.watching.unlock-sheet-open #detail-view{z-index:70;}}


.library-undo-notice{position:fixed;z-index:29;bottom:calc(96px + env(safe-area-inset-bottom,0px));left:16px;right:16px;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:14px;background:#29282d;color:#f5f5f8;font-size:13px}.library-undo-notice>span{flex:1}.library-undo-notice button{border:0;border-radius:8px;background:#fff;color:#111;min-height:36px;padding:0 12px;font-weight:700}
@media (max-width: 760px) {
  .library-page:has(#library-undo-notice:not([hidden])) .toast {
    top: calc(58px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }
}

/* Secondary touch pages ported from studioLogin(), AppLanguage and CreatorUploadScreen.
   All account/provider states are genuine Web capability states, not native account data. */
.native-secondary-dialog { width:min(480px,calc(100% - 32px));max-height:calc(var(--player-viewport-height,100vh) - 32px);padding:14px 20px 20px;margin:auto;overflow:auto;border:1px solid #ffffff24;border-radius:20px;background:#000;color:#f5f5f8; }
.native-secondary-dialog::backdrop { background:#000b;backdrop-filter:none;-webkit-backdrop-filter:none; }
.native-secondary-dialog .secondary-heading { display:flex;align-items:center;gap:8px;min-height:48px; }
.native-secondary-dialog .secondary-heading h2 { flex:1;min-width:0;margin:0;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:0; }
.native-secondary-dialog .secondary-heading>button { display:grid;place-items:center;flex:none;width:44px;height:48px;margin:0 0 0 -12px;padding:10px;border:0;background:none; }
.native-secondary-dialog .secondary-heading>button>img { width:24px;height:24px;transform:rotate(180deg);filter:invert(1); }
.native-secondary-dialog .secondary-note { margin:0;color:#b2adb0;font-size:13px;line-height:1.4;letter-spacing:0; }
.native-secondary-dialog .secondary-white-button { display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin:0;padding:10px 12px;border:0;border-radius:14px;background:#f5f5f7;color:#151518;font-size:15px;font-weight:500;line-height:1.3; }
.native-secondary-dialog .secondary-white-button:disabled { opacity:.5;cursor:not-allowed; }
.native-secondary-dialog .secondary-white-button>img { width:22px;height:22px;object-fit:contain;filter:none; }
.secondary-support { display:block;width:fit-content;min-height:44px;margin:10px auto 0;padding:11px 12px;color:#b2adb0;text-align:center;font-size:12px;text-decoration:underline; }
.native-language-dialog .language-availability-note { margin:12px 0 8px; }
.secondary-language-list { margin:0; }
.secondary-language-row { display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:58px;padding:12px 2px;border:0;border-bottom:1px solid #242426;background:none;text-align:left;color:#f5f5f8; }
.secondary-language-row>span:first-child { flex:1;min-width:0; }
.secondary-language-row strong { display:block;font-size:15px;font-weight:500;line-height:1.3; }
.secondary-language-row small { display:block;margin-top:3px;font-size:11px;font-weight:400;line-height:1.3;color:#b2adb0; }
.secondary-language-row:disabled { opacity:.5; }
.secondary-language-check { display:grid;place-items:center;flex:none;width:22px;height:22px;border:1px solid #777;border-radius:50%;font-size:16px;line-height:1;color:#000; }
.secondary-language-row[aria-pressed="true"] .secondary-language-check { border-color:#f5f5f8;background:#f5f5f8;color:#000; }
.secondary-upload-body { margin:0; }
.native-secondary-dialog .secondary-upload-body h3 { margin:20px 0 0;font-size:24px;line-height:1.25;font-weight:700; }
.secondary-upload-body .upload-spec { margin-top:8px; }
#web-upload-choose { margin-top:20px; }
#web-upload-selected { margin-top:10px;overflow-wrap:anywhere; }
.secondary-video-preview { display:block;width:100%;height:230px;margin:12px 0 0;object-fit:contain;background:#252332; }
#web-upload-play { margin-top:8px; }
.secondary-field-label { display:block;margin:22px 0 5px;font-size:14px;line-height:1.4; }
.secondary-title-input { display:block;width:100%;min-height:44px;margin:0;padding:9px 0;border:0;border-bottom:1px solid #95959c;border-radius:0;background:none;color:#f5f5f8;font-size:15px;line-height:1.4; }
.secondary-title-input::placeholder { color:#b2adb0; }
.secondary-checkbox { display:flex;align-items:flex-start;gap:10px;min-height:44px;margin-top:12px;padding:10px 0;color:#f5f5f8;font-size:14px;line-height:1.4; }
.secondary-checkbox input { flex:none;width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:#f5f5f8; }
.secondary-upload-body>p:not(.upload-spec):not(#web-upload-selected) { margin-top:16px; }
#web-upload-discard { margin-top:14px; }
#web-upload-submit { margin-top:18px;min-height:52px; }
@media(max-width:760px) {
 .native-secondary-dialog { position:fixed;inset:0;width:100%;height:var(--player-viewport-height,100vh);max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding-bottom:max(20px,env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) { .native-secondary-dialog * { scroll-behavior:auto; } }

/* Native ContentReportSheet: panel #171719, 20dp inset, title21 / reason14,
   48dp rows, 86dp details field, 48dp pill actions. */
.native-report-dialog { width:min(520px,calc(100% - 32px));max-height:min(720px,90vh);max-height:min(720px,90dvh);padding:20px;border:0;border-radius:24px;background:#171719;color:#f3f3f6;font-family:var(--font); }
.native-report-dialog::backdrop { background:#0008;backdrop-filter:none;-webkit-backdrop-filter:none; }
.native-report-dialog .report-header { display:block;margin:0;padding:0;border:0;background:none; }
.native-report-dialog h2 { margin:0;font:700 21px/1.25 var(--font);letter-spacing:0; }.native-report-dialog .report-header>p { margin:8px 0 0;font:400 14px/1.4 var(--font);color:#b7b7bf; }
.native-report-dialog .report-header>.report-context { margin:8px 0 0;font-size:12px;color:#9999a1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.report-form { display:flex;flex-direction:column;min-height:0;max-height:calc(90vh - 138px);max-height:calc(90dvh - 138px);margin:12px 0 0; }
.report-scroll { min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 0 8px; }
.report-reasons { padding:0;margin:0;border:0; }.report-reasons label { display:flex;align-items:center;gap:12px;min-height:48px;margin:0;padding:8px 4px 8px 2px;font-size:14px;line-height:1.4;color:#f3f3f6;cursor:pointer; }
.report-reasons input { flex:none;width:19px;height:19px;min-height:19px;margin:0;padding:0;accent-color:#fff; }.report-reasons input:focus-visible { outline:2px solid #fff;outline-offset:4px; }.report-reasons input:disabled+span { opacity:.55; }
.report-detail-label { display:block;margin:14px 0 8px;color:#b7b7bf;font-size:12px; }
.native-report-dialog #report-details { display:block;resize:vertical;width:100%;min-height:86px;max-height:180px;margin:0;padding:12px;border:1px solid transparent;border-radius:12px;background:#242427;color:#fff;font:400 14px/1.5 var(--font); }
#report-details::placeholder { color:#97979e; }.native-report-dialog #report-details:focus { outline:0;border-color:#aaaab3; }
.report-character-count { margin:5px 0 0;text-align:right;color:#97979e;font-size:10px; }.report-privacy { margin:8px 0 0;font-size:11px;line-height:1.5;color:#9999a1; }
.report-service-note { margin:10px 0 0;font-size:12px;line-height:1.5;color:#c7bba4; }.report-error { margin:10px 0 0;font-size:13px;line-height:1.5;color:#f1c58e; }.report-status { margin:10px 0 0;font-size:13px;line-height:1.5;color:#d3d9d0; }
.report-actions { display:grid;grid-template-columns:1fr 2fr;gap:12px;flex:none;align-items:center;min-height:58px;padding-top:10px; }
.report-actions button,.report-success button { min-height:48px;padding:10px 16px;border:0;border-radius:24px;background:#2b2b30;color:#fff;font:700 14px/1.4 var(--font); }
.report-actions #report-submit,.report-success button { background:#f5f5f8;color:#101012; }.report-actions button:disabled { opacity:.45; }
.report-support-actions { display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin-top:8px; }
.report-support-actions button,.report-support-actions a { display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:6px 0;border:0;background:none;color:#b7b7bf;font-size:11px;text-align:left; }
.report-support-actions button:disabled { opacity:.4; }.report-support-actions a { text-align:right; }
.report-copy-text { width:100%;min-height:100px;margin-top:12px;padding:10px;border:1px solid #57575e;border-radius:10px;background:#242427;color:#fff;font:12px/1.5 var(--font); }
.report-success { padding:24px 0 0;text-align:center; }.report-success-mark { display:grid;place-items:center;width:52px;height:52px;margin:0 auto 16px;border:1px solid #ffffff60;border-radius:50%;background:#ffffff0c;color:#fff;font-size:26px; }.report-success h3 { margin:0;font-size:20px;line-height:1.3; }.report-success p { margin:14px 0 0;color:#b7b7bf;font-size:14px;line-height:1.5; }.report-success #report-receipt { color:#fff;font-size:12px;overflow-wrap:anywhere;user-select:text; }.report-success button { display:block;width:100%;margin-top:24px; }
@media(max-width:760px){.native-report-dialog { position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:90vh;max-height:90dvh;margin:0;padding:20px 20px max(20px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0; }.report-form { max-height:calc(90vh - 122px - env(safe-area-inset-bottom,0px));max-height:calc(90dvh - 122px - env(safe-area-inset-bottom,0px)); }}
.visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

.player-state.is-completed .unlock-browse{display:block;min-height:48px;width:100%;margin-top:10px;background:#f5f5f8;color:#111;border:0;border-radius:10px;font-weight:700}.player-state.is-completed #player-state-action{width:100%;min-height:48px;background:#333338;color:#fff;border:0}

/* Native AvatarPicker and the original quick-login surface. */
#avatar-dialog{padding:12px 14px 18px;border:0;border-radius:22px;background:#17171c;}
#avatar-dialog::backdrop { background:#0009;backdrop-filter:none;-webkit-backdrop-filter:none; }
#avatar-dialog .dialog-heading{min-height:50px;align-items:center;margin:0;}
#avatar-dialog .dialog-heading h2{font-size:20px;font-weight:500;}
#avatar-dialog .avatar-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:12px;max-height:65vh;overflow:auto;}
#avatar-dialog .avatar-options button{border-radius:13px;background:#26262d;border:1px solid #41414a;padding:4px;}
#avatar-dialog .avatar-options button[aria-pressed=true]{border:2px solid #e8ca88;padding:3px;}
#avatar-dialog .avatar-options img{border-radius:0;}
@media(max-width:760px){#avatar-dialog{width:100%;max-width:none;max-height:85vh;margin:auto 0 0;border-radius:22px 22px 0 0;}#avatar-dialog .avatar-options{gap:6px;}}

/* Profile fidelity corrections, sourced from StudioSecondaryScreens.java.
   Append after current profile rules. No account, commerce or payment behavior.
   Actual browser rendering remains unverified while Work browser control is off. */
@media(max-width:760px) {
  /* Native gradient() uses TL_BR, not TOP_BOTTOM: source lines 97, 532–534. */
  .native-profile-page .profile-avatar {
    background:linear-gradient(135deg,#2b2a27,#171716);
  }
  /* Native actionTarget is >=48 high, while the visible outlined Login is 40 high:
     source 375–390. The old Web button made both drawing and hit target 40. */
  .native-profile-page .account-entry {
    position:relative;
    isolation:isolate;
    min-height:48px;
    border:0;
    border-radius:7px;
    background:transparent;
  }
  .native-profile-page .account-entry::before {
    content:"";
    position:absolute;
    inset:4px 0;
    z-index:-1;
    border:1px solid #878783;
    border-radius:7px;
    background:transparent;
    pointer-events:none;
  }
  /* Applies to optional exact native SVG chevrons; old img remains unchanged. */
  .native-profile-page .account-entry svg.profile-chevron {
    width:14px;
    height:14px;
    color:#c1c1bf;
    filter:none;
    opacity:1;
  }
  .native-profile-page .profile-menu svg.profile-chevron {
    width:16px;
    height:16px;
    color:#77767d;
    filter:none;
    opacity:1;
  }
  /* Native card: outer 1dp inset plus body padding 13/8 => total14/9.
     Previous CSS border1+padding14/9 put every inner element +1px down/right.
     Reuse all four native edge colors and the three native interior colors.
     Source 296, 338–339, 348–368. */
  .native-profile-page .profile-wallet {
    padding:8px 13px;
    border:1px solid transparent;
    background:
      radial-gradient(110px 110px at calc(100% - 55px) -18px,#d8af6324,#d8af6300) padding-box,
      linear-gradient(135deg,#231d15,#15120e,#0c0c0c) padding-box,
      linear-gradient(135deg,#7d6138,#f3deb2,#5c472c,#b18a50) border-box;
  }
  /* Source 241–246 uses 11sp for a genuinely unavailable balance, 22sp for a
     verified numeric balance. Only the optional fragment opts into this state. */
  .native-profile-page .profile-wallet-value>strong.is-unavailable {
    font-size:11px;
    line-height:13px;
  }
  /* Native menu dividers are separate 1dp views after each 56dp item.
     An absolute line inside 56px rows had shifted rows2/3/4 up1/2/3px. */
  .native-profile-page .profile-menu>:not(:last-child) {
    margin-bottom:1px;
  }
  .native-profile-page .profile-menu>:not(:last-child)::after {
    bottom:-1px;
  }
}

/* PROPOSAL ONLY. App20 source/build pins and existing screenshots are in findings.json.
   Append after existing app-web CSS only after Root's real-browser before/after check.
   Desktop rules are deliberately untouched. */
.resume-label-compact { display:none; }
@media(max-width:760px) {
  /* MainActivity: inactiveTint B8B8BF / selected StudioTheme.WHITE F5F5F8.
     Current external img SVGs need exact-color variants (see findings.md), not opacity .75. */
  .bottom-nav a { color:#b8b8bf; }
  .bottom-nav a.active { color:#f5f5f8; }
  .bottom-nav a[data-nav="discover"]>.native-icon path { fill:currentColor; }
  /* PAIR with native-plus.markup.html. Native 32dp ImageView has padding5 =>22dp artwork box.
     Do not shrink the old 24-viewBox stroke approximation without replacing its path. */
  .upload-symbol>.native-icon { width:22px;height:22px; }

  /* StudioMiniResumeCard keeps a 48px target with its top 12px overlapping the poster. */
  #resume-bar.resume-bar { position:fixed;z-index:26;left:auto;right:12px;bottom:calc(94px + env(safe-area-inset-bottom,0px));display:block;width:104px;height:174px;min-height:174px;padding:0;border:0;border-radius:12px;background:#16c49a;color:#000;overflow:visible;isolation:isolate; }
  #resume-bar.resume-bar::before { content:"";position:absolute;z-index:0;top:0;left:0;right:0;height:138px;border-radius:12px 12px 0 0;background:#242424;pointer-events:none; }
  #resume-bar #resume-cover { position:absolute;z-index:1;top:0;left:0;display:block;width:104px;height:138px;max-width:none;margin:0;border:0;border-radius:12px 12px 0 0;object-fit:cover;background:#242424; }
  #resume-bar #resume-copy { position:absolute;z-index:2;top:0;left:0;right:0;display:block;width:104px;height:138px;min-height:0;margin:0;padding:0;border:0;border-radius:12px 12px 0 0;background:none; }
  #resume-bar #resume-copy>strong,#resume-bar #resume-copy>span { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0; }
  #resume-bar.resume-cover-unavailable #resume-copy { display:grid;place-items:center;padding:16px 8px 8px; }
  #resume-bar.resume-cover-unavailable #resume-title {
    position:static;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;
    width:auto;height:auto;margin:0;clip:auto;clip-path:none;white-space:normal;overflow-wrap:anywhere;
    color:#fff;font-size:12px;line-height:1.3;text-align:center;
  }
  #resume-bar #resume-play { position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:104px;height:48px;min-height:48px;margin:0;padding:15px 4px 3px;border:0;border-radius:0 0 12px 12px;background:transparent;color:#000;font:700 12px/normal var(--font);text-align:center; }
  #resume-bar .resume-label-compact { display:block; }
  #resume-bar .resume-label-wide { display:none; }
  #resume-bar #resume-close { position:absolute;z-index:3;top:0;right:0;display:flex;align-items:flex-start;justify-content:flex-end;width:44px;height:44px;margin:0;padding:0;border:0;background:none; }
  #resume-bar #resume-close>img { box-sizing:border-box;display:block;width:30px;height:30px;margin:0;padding:7px;border:0;border-radius:16px;background:#000000e6;filter:invert(1); }
  /* img inversion would invert the background too: use target pseudo backdrop instead. */
  #resume-bar #resume-close::before { content:"";position:absolute;top:0;right:0;width:30px;height:30px;border-radius:16px;background:#000000e6;pointer-events:none; }
  #resume-bar #resume-close>img { position:relative;background:none; }
  /* MainActivity now reserves only92dp under its scroll viewport, not a full-width resume strip. */
  .home-view #discover-view { padding-bottom:92px; }
}

/* Optional source-bound player detail port. App20 includes0x22FFFFFF collection surface;
   old App16 screenshot#555 is superseded. Root must inspect latest installed player first. */
@media(max-width:760px) {
  body.watching .player-collection-button { position:relative;isolation:isolate;background:none; }
  body.watching .player-collection-button::before { content:"";position:absolute;z-index:-1;inset:4px 0;border-radius:8px;background:#ffffff22;pointer-events:none; }
  /* PAIR with native-player-toggle.markup.html; native CENTER button is56dp, not video-area center. */
  body.watching .player-toggle { top:50%;padding:0; }
  body.watching .player-toggle>svg { width:56px;height:56px; }
}

@media(max-width:760px){.bottom-nav a>img[src*="native-nav-"]{filter:none;opacity:1;}}

/* App-source alignment candidate, 2026-11-05. Append after current styles.
 * Scope: non-payment secondary surfaces only. Requires sibling fragments below.
 * Source: MainActivity.library/studioLogin; CreatorUploadScreen; AvatarPicker.
 * Root already removed the two obsolete nth-child copy selectors; do not restore.
 * NOT visually accepted: browser RPC disabled in this run.
 */

/* Native reserves 18sp text width for both tabs, scaling only the inactive label.
 * Requires library-tab-label span fragment; click target stays 44px tall. */
.native-library-page .library-tabs button { font-size:18px; }
.native-library-page .library-tabs .library-tab-label { display:block;margin:0;font-size:18px;color:inherit;transform:scale(.8888889);transform-origin:left center; }
.native-library-page .library-tabs button.active .library-tab-label { transform:none; }
.library-edit .library-edit-cancel { display:none;font-size:15px;font-weight:400; }
.library-edit.is-managing { width:auto;min-width:44px;padding:0; }
.library-edit.is-managing .library-edit-icon { display:none; }
.library-edit.is-managing .library-edit-cancel { display:block; }

/* Exact XML vector paths exported to ./assets by the companion manifest. */
.native-library-page .library-select { font-size:0;color:transparent;border:0;border-radius:0;background:transparent url("assets/native-library-pick-idle.svg") center/22px 22px no-repeat; }
.native-library-page .library-select[aria-checked="true"] { color:transparent;border:0;background:transparent url("assets/native-library-pick-on.svg") center/22px 22px no-repeat; }

/* Native empty body has one centered 150dp illustration, no fixed 100px top gap.
 * :has() targets ONLY the known empty illustration, never network/error retry UI. */
@media(max-width:760px) {
 #library-view.native-library-page:has(>#library-message:not([hidden])>.library-empty-image) { min-height:var(--player-viewport-height,100vh);padding-bottom:0; }
 .native-library-page #library-message:not([hidden]):has(>.library-empty-image) { display:grid;place-items:center;min-height:calc(var(--player-viewport-height,100vh) - 44px);padding:0; }
 .native-library-page #library-message>.library-empty-image { width:150px;height:150px;margin:0; }
}

/* Web account entry */
.web-login-entry {
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:44px;min-height:44px;
  padding:7px 10px;border:1px solid #ffffff26;border-radius:12px;background:#191519;color:#fff4f7;
  font:650 13px/1.2 var(--font);white-space:nowrap;
}
.web-login-entry > img { width:17px;height:17px;flex:none;filter:invert(1); }
.web-login-entry:hover { background:#2a2027;border-color:#ffffff45; }
.native-profile-page .account-entry,#account-google { position:relative; }
.login-reward-badge {
  position:absolute;z-index:1;inset-block-start:-5px;inset-inline-end:0;display:inline-flex;
  align-items:center;gap:2px;min-height:17px;padding:1px 4px;border:1px solid #f9dc8c;border-radius:999px;
  background:linear-gradient(150deg,#fff1bc,#e8bb60);color:#332000;box-shadow:0 1px 4px #0007;
  font:800 10px/1 var(--font);white-space:nowrap;pointer-events:none;
}
.login-reward-badge > img { width:11px;height:11px;flex:none; }
.library-login-entry > .login-reward-badge { inset-block-start:0;min-height:14px;padding-block:0; }
#account-google > .login-reward-badge { inset-block-start:-5px;inset-inline-end:8px; }
.profile-page .header-login-entry,.library-login-entry,.player-login-entry { display:none; }
.library-header-actions { display:flex;align-items:center;gap:5px; }
@media(max-width:760px) {
  .home-view .site-header:has(>.header-login-entry:not([hidden])) { grid-template-columns:minmax(0,1fr) repeat(3,44px); }
  .home-view .header-login-entry { width:44px;padding-inline:0;background:#100b10af; }
  .home-view .header-login-entry > img { display:none; }
  .library-login-entry { display:inline-flex; }
  .for-you-mode .player-login-entry {
    position:absolute;z-index:13;inset-block-start:max(12px,env(safe-area-inset-top));inset-inline-end:12px;
    display:inline-flex;background:#151018d9;backdrop-filter:blur(8px);
  }
}
#account-dialog {
  position:fixed;inset:0;margin:auto;width:min(430px,calc(100% - 28px));height:fit-content;
  max-height:calc(100dvh - 24px);padding:0;border:1px solid #ffffff27;border-radius:24px;
  background:radial-gradient(ellipse 94% 55% at 50% 0,#26171f 0%,#121014 52%,#101013 100%);
  box-shadow:0 24px 80px #000a;
}
#account-dialog[open] { display:flex;flex-direction:column;overflow:hidden; }
#account-dialog::backdrop { background:#050406b8;backdrop-filter:blur(6px); }
.native-account-dialog > .secondary-heading { flex:none;justify-content:flex-end;min-height:50px;padding:7px 9px 0; }
.native-account-dialog > .secondary-heading > button {
  width:44px;height:44px;margin:0;padding:12px;border:0;border-radius:50%;background:#ffffff0b;
}
.native-account-dialog > .secondary-heading > button > img { width:18px;height:18px;transform:none; }
.native-account-dialog > .secondary-heading > button:hover { background:#ffffff16; }
.native-login-form { min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 clamp(17px,5.5vw,28px) 19px; }
.native-login-intro { text-align:center;overflow-wrap:anywhere; }
.native-login-logo {
  display:block;width:72px;height:72px;margin:0 auto;
}
.native-login-intro h2 { margin:16px 0 0;font-size:clamp(22px,5vw,27px);font-weight:750;line-height:1.22;letter-spacing:-.025em; }
.native-login-intro p { margin:7px 0 0;font-size:14px;line-height:1.45;color:#c6bdc5; }
.native-login-actions { display:grid;gap:10px;margin:22px auto 0;max-width:380px;overflow-wrap:anywhere; }
.native-login-options { display:grid;gap:10px;min-width:0; }
.native-account-dialog #account-google-status { margin:0 3px;text-align:center;font-size:12px; }
.native-account-dialog #account-google {
  display:flex;justify-content:center;align-items:center;gap:11px;
  min-height:54px;padding:10px 14px;border:1px solid #fff;border-radius:14px;
  background:#fff;color:#17131d;text-align:center;
}
.native-account-dialog #account-google:disabled { opacity:1;color:#6b626b;cursor:not-allowed; }
.native-account-dialog #account-google:not(:disabled):hover { box-shadow:0 0 0 2px #ffffff38; }
.native-account-dialog #account-google > img { width:21px;height:21px;flex:none; }
.native-account-dialog #account-google strong { font-size:15px;font-weight:700;line-height:1.35; }
.native-login-email {
  display:flex;align-items:center;justify-content:center;gap:11px;min-height:50px;padding:9px 14px;
  border:1px solid #ffffff31;border-radius:14px;background:#ffffff0b;color:#f4eff4;font-size:15px;
}
.native-login-email:hover { background:#ffffff16; }
.native-login-email svg { flex:none; }
.native-account-dialog.email-login-active .native-login-logo { width:52px;height:52px; }
.native-login-options.email-mode > :is(#account-google,#account-google-status,#account-email,
  #account-open-browser,#account-external-browser,#account-google-retry) { display:none; }
.native-email-form,.native-email-form > div:not(.native-email-controls) { display:grid;gap:8px;min-width:0; }
.native-email-form label { font-size:13px;font-weight:700;color:#eee8ef; }
.native-email-form input {
  width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #ffffff39;border-radius:12px;
  background:#1a171e;color:#fff;font:16px/1.35 var(--font);
}
.native-email-form #account-email-code { letter-spacing:.28em; }
.native-email-form .native-login-status { min-height:18px;margin:0 3px;text-align:center;font-size:12px; }
.native-email-controls { display:flex;flex-wrap:wrap;justify-content:center;column-gap:12px; }
.native-email-controls > button { border:0;border-radius:8px;text-underline-offset:3px; }
.native-login-browser-link,.native-login-text-button {
  display:grid;place-items:center;min-height:44px;padding:6px 10px;
  color:#f0d9e3;background:transparent;font-size:13px;font-weight:650;text-align:center;text-decoration:underline;
}
.external-browser-help {
  display:grid;gap:8px;min-width:0;padding:12px;border:1px solid #ffffff1f;
  border-radius:12px;background:#ffffff08;color:#dedbe2;font-size:.8125rem;line-height:1.45;
  text-align:start;overflow-wrap:anywhere;
}
.install-dialog .external-browser-help { margin-block-start:14px; }
.external-browser-help p { margin:0; }
.external-browser-help [data-browser-copy-status]:empty { position:absolute; }
.external-browser-help button {
  min-height:44px;padding:8px 12px;border:0;border-radius:9px;
  background:#fff;color:#1b1820;font-weight:700;
}
.external-browser-help input {
  width:100%;min-width:0;padding:8px;border:1px solid #ffffff35;border-radius:7px;
  background:#101012;color:#fff;font:inherit;font-size:16px;
}
.native-login-identity {
  display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:12px;
  padding:14px;border:1px solid #ffffff1a;border-radius:12px;background:#ffffff07;text-align:start;
}
.native-login-identity img { width:21px;height:21px;justify-self:center; }
.native-login-identity strong,.native-login-identity small { display:block; }
.native-login-identity small { margin-top:3px;color:#bbb2bb;font-size:12px; }
.native-account-dialog #account-logout { min-height:50px;border-radius:12px; }
.native-account-dialog #account-logout-status { margin:0;text-align:center; }
.native-login-capabilities { border-top:1px solid #ffffff15;color:#c6bec6;font-size:13px; }
.native-login-capabilities summary {
  display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;
  padding:6px 4px;cursor:pointer;list-style:none;
}
.native-login-capabilities summary::-webkit-details-marker { display:none; }
.native-login-capabilities summary img { flex:none;filter:invert(1);transform:rotate(90deg); }
.native-login-capabilities[open] summary img { transform:rotate(-90deg); }
.native-login-capabilities .secondary-note { padding:0 4px;font-size:12px; }
.native-login-capabilities .secondary-support { margin:0; }

/* Native label("Share a short video",24) is regular, not a second bold header.
 * Submit is outside the ScrollView in the source; companion HTML uses form=.
 * Native+Web-unavailable state is preserved: this does not enable submission. */
#upload-dialog.native-upload-dialog[open] { display:flex;flex-direction:column;overflow:hidden; }
.native-upload-dialog>.secondary-heading { flex:none; }
.native-upload-dialog .secondary-upload-body { flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain; }
.native-upload-dialog .secondary-upload-body h3 { font-weight:400; }
.native-upload-dialog>#web-upload-submit { flex:none;width:100%;height:52px;min-height:52px;margin:0; }
@media(min-width:761px) { #upload-dialog.native-upload-dialog[open] { height:min(800px,calc(100dvh - 32px)); } }

/* AvatarPicker places the selected mark outside the circular image mask. */
#avatar-dialog .dialog-heading h2 { letter-spacing:0; }
#avatar-dialog .dialog-heading>button { display:grid;place-items:center;width:auto;min-width:52px;height:48px;min-height:48px;margin:0;padding:0;border:0;border-radius:0;background:none;color:#b2adb0;font-size:14px;font-weight:400; }
#avatar-dialog .avatar-options { grid-template-columns:repeat(5,minmax(0,1fr));column-gap:0;row-gap:6px;margin-top:0;max-height:min(600px,65vh); }
#avatar-dialog .avatar-options button,#avatar-dialog .avatar-options button[aria-pressed="true"] { position:relative;aspect-ratio:1;padding:4px;border:0;border-radius:0;background:none; }
#avatar-dialog .avatar-face { display:block;position:relative;width:100%;height:100%;overflow:hidden;border-radius:50%;background:#26262d;box-shadow:inset 0 0 0 1px #41414a; }
#avatar-dialog [aria-pressed="true"] .avatar-face { box-shadow:inset 0 0 0 2px #e8ca88; }
#avatar-dialog .avatar-face img { display:block;width:calc(100% - 6px);height:calc(100% - 6px);margin:3px;object-fit:contain;border-radius:0; }
#avatar-dialog .avatar-selected-mark { position:absolute;inset-inline-end:4px;inset-block-end:4px;display:grid;place-items:center;width:20px;height:20px;border-radius:11px;background:#f0d596;color:#221d12;font-size:13px;line-height:1; }
#avatar-dialog>.product-note { margin:10px 0 0;font-size:11px;line-height:1.4;color:#b2adb0; }
#avatar-dialog>.avatar-credit { margin:6px 0 0;font-size:10px; }

/* StudioGlassNavigation paints its edge without consuming layout space.
   CSS border-box compensates with3px padding:72-2(border)-6(padding)=64.
   All five cells reserve the same border width, preserving equal widths. */
@media(max-width:760px) {
  .bottom-nav { padding:3px; }
  .bottom-nav a { min-height:64px;height:64px;border:1px solid transparent;border-radius:30px; }
  .bottom-nav a.active { border-color:#ffffff30;background:#ffffff28;box-shadow:none; }
}

/* App21 source-bound settings shell + privacy/support geometry. No billing style changes. */
dialog.ss-sheet { box-sizing:border-box;width:min(480px,calc(100% - 32px));max-width:480px;max-height:82vh;max-height:82dvh;margin:auto;padding:14px 18px 16px;overflow:hidden;border:1px solid #333;border-radius:22px;background:#151515;color:#f5f5f8;font-family:var(--font); }
.ss-sheet::backdrop,.ss-page::backdrop { background:#0009;backdrop-filter:none;-webkit-backdrop-filter:none; }
.ss-sheet-heading { display:flex;align-items:center;min-height:48px;gap:0; }
.ss-sheet-heading>.ss-icon { flex:none;width:22px;height:22px;color:#e4d2ab; }
.ss-sheet-heading h2 { flex:1;min-width:0;margin:0 0 0 12px;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:0; }
.ss-info-icon { display:grid;place-items:center;flex:none;width:22px;height:22px;border:1.7px solid currentColor;border-radius:50%;color:#e4d2ab;font:700 15px/1 var(--font); }
.ss-close { display:grid;place-items:center;flex:none;width:48px;height:48px;margin:0;padding:14px;border:0;border-radius:24px;background:none;color:#b9b9b7; }
.ss-close>.ss-icon { width:20px;height:20px; }
.ss-sheet-scroll { overflow:auto;max-height:max(72px,calc(82vh - 230px));max-height:max(72px,calc(82dvh - 230px));padding:12px 0 4px;overscroll-behavior:contain; }
.ss-menu-row { display:flex;align-items:center;gap:0;min-height:56px;width:100%;margin:0;padding:12px;border:0;border-radius:12px;background:#1b1b1b;color:#f5f5f8;text-align:left; }
.ss-menu-row+.ss-menu-row { margin-top:6px; }
.ss-menu-row>.ss-icon { flex:none;width:20px;height:20px;color:#e4d2ab; }
.ss-menu-row>.ss-info-icon { width:20px;height:20px;font-size:14px; }
.ss-menu-row>span:not(.ss-info-icon) { flex:1;min-width:0;margin:0 10px 0 14px;font-size:16px;font-weight:500;line-height:1.3; }
.ss-menu-row>.ss-chevron { flex:none;width:16px;height:16px;color:#838381; }
.ss-advanced { margin-top:12px;color:#b9b9b7; }
.ss-advanced summary { min-height:44px;padding:12px 2px;font-size:13px;cursor:pointer; }
.ss-sheet-actions { display:flex;flex-direction:column;gap:8px;padding-top:16px; }
.ss-sheet-button { display:grid;place-items:center;min-height:48px;width:100%;padding:12px 16px;border:0;border-radius:12px;background:#242424;color:#f5f5f8;font-size:15px;font-weight:700;line-height:1.3; }
.ss-sheet-button.ss-primary { background:#f3f1eb;color:#161616; }
.ss-sheet-message { margin:0;padding:2px 2px 4px;color:#b9b9b7;font-size:14px;line-height:1.65;white-space:pre-line; }
.ss-status { margin:12px 0 0;color:#e4d2ab;font-size:13px;line-height:1.4; }
.ss-status:empty { display:none; }
.ss-about-copy h3 { margin:0;color:#f5f5f8;font-size:17px;font-weight:700;line-height:1.3; }
.ss-about-copy p { margin:14px 0 0;color:#b9b9b7;font-size:14px;line-height:1.6; }
.ss-about-copy a { display:inline-block;min-height:32px;padding:6px 0;font-size:13px;color:#e4d2ab;text-decoration:underline; }
dialog.ss-page { box-sizing:border-box;width:min(560px,calc(100% - 32px));height:min(880px,calc(100vh - 32px));height:min(880px,calc(100dvh - 32px));max-width:560px;max-height:none;margin:auto;padding:0;border:1px solid #333;border-radius:18px;background:#000;color:#f5f5f8;font-family:var(--font);overflow:hidden; }
.ss-page-heading { display:flex;align-items:center;min-height:60px;padding:12px 18px 0;background:#000; }
.ss-page-heading button { display:grid;place-items:center;flex:none;width:48px;height:48px;padding:13px;border:0;background:none;color:#f5f5f8; }
.ss-page-heading button>.ss-chevron { width:22px;height:22px;transform:rotate(180deg); }
.ss-page-heading h2 { flex:1;min-width:0;margin:0 0 0 8px;font-size:22px;font-weight:700;line-height:1.2; }
.ss-page-scroll { height:calc(100% - 60px);padding:20px 18px 28px;overflow:auto;overscroll-behavior:contain; }
.ss-eyebrow { display:block;color:#f0d39a;font-size:10px;font-weight:500;letter-spacing:.13em;line-height:1.4; }
.ss-privacy-intro { margin:12px 0 0;font-size:17px;font-weight:500;line-height:1.4; }
.ss-privacy-card { margin:20px 0 0;padding:16px;border:1px solid #333;border-radius:18px;background:#151515; }
.ss-privacy-card+.ss-privacy-card { margin-top:22px; }
.ss-privacy-card h3 { display:flex;align-items:center;gap:10px;margin:0;font-size:16px;font-weight:700;line-height:1.3; }
.ss-privacy-card h3>.ss-icon { width:20px;height:20px;color:#e4d2ab;flex:none; }
.ss-privacy-card p { margin:10px 0 0;color:#b2adb0;font-size:14px;line-height:1.5; }
.ss-privacy-disabled,.ss-tonal-button { display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;padding:10px 14px;border:1px solid #64542e;border-radius:12px;background:#201b12;color:#f3d794;font-size:14px;font-weight:500;line-height:1.4;text-align:center; }
.ss-privacy-disabled { margin-top:12px;background:#242424;border-color:#383838;color:#f5f5f8;opacity:.5; }
.ss-privacy-buttons { display:flex;flex-direction:column;gap:8px;margin-top:12px; }
.ss-policy-button { display:grid;place-items:center;width:100%;min-height:48px;margin-top:22px;padding:10px 14px;border-radius:12px;background:#f3f1eb;color:#161616;font-size:14px;font-weight:500; }
.ss-support-scroll { height:100%;overflow:auto;padding:16px 22px 30px;overscroll-behavior:contain; }
.ss-support-heading { display:flex;align-items:center;gap:14px;min-height:44px;margin-bottom:16px; }
.ss-support-heading .ss-support-back {
  display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;
  margin:0;padding:10px;border:0;border-radius:14px;background:#181818;color:#f5f5f8;
}
.ss-support-heading .ss-support-back>img,.ss-support-heading .ss-support-back>svg { width:24px;height:24px; }
.ss-support-heading .ss-support-back>img { transform:rotate(180deg); }
#app-shell[dir="rtl"] .ss-support-heading .ss-support-back>img { transform:none; }
.ss-support-heading h2 { margin:0;font-size:25px;font-weight:700;line-height:1.2;letter-spacing:0; }
.ss-support-notice { margin:0 0 14px;color:#b2adb0;font-size:14px;line-height:1.4; }
.ss-field-label { display:block;margin:18px 0 8px;color:#f5f5f8;font-size:14px;line-height:1.4; }
#ss-support-kind { min-width:0;margin:16px 0 12px;padding:0;border:0; }
#ss-support-kind legend { margin:0 0 8px;padding:0;color:#b2adb0;font-size:13px; }
.ss-help-types { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.ss-help-types>label { display:block;position:relative;min-width:0;margin:0;cursor:pointer; }
.ss-help-types>label:last-child { grid-column:1 / -1; }
.ss-help-types input[type="radio"] {
  position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0;clip-path:inset(50%);
}
.ss-help-types>label>span {
  display:grid;place-items:center;height:100%;min-height:44px;padding:7px 10px;
  border:1px solid #36312a;border-radius:12px;background:#1b1b1b;color:#f5f5f8;
  font-size:14px;font-weight:500;line-height:1.25;text-align:center;overflow-wrap:anywhere;
}
.ss-help-types input[type="radio"]:checked+span { border-color:#f3d794;background:#f3d794;color:#17120b; }
.ss-help-types input[type="radio"]:focus-visible+span { outline:2px solid #f5f5f8;outline-offset:2px; }
#ss-support-details { display:block;resize:vertical;width:100%;min-height:112px;max-height:320px;padding:12px 14px;border:1px solid #64542e;border-radius:12px;background:#181818;color:#f5f5f8;font:14px/1.45 var(--font); }
#ss-support-details::placeholder { color:#b2adb0; }
.ss-support-count { display:block;margin-top:7px;text-align:right;color:#b2adb0;font-size:12px;line-height:1.4; }
.ss-error { margin:8px 0;color:#f0d39a;font-size:13px;line-height:1.4; }
.ss-error:empty { display:none; }
#ss-support-form>.ss-tonal-button { margin-top:10px; }
#ss-support-form>.ss-tonal-button:disabled { opacity:.45; }
.ss-copy-fallback { width:100%;min-height:110px;margin-top:12px;padding:12px;border:1px solid #64542e;border-radius:12px;background:#181818;color:#f5f5f8;font:13px/1.4 var(--font); }
.ss-support h3 { margin:26px 0 12px;font-size:19px;font-weight:700;line-height:1.3; }
.ss-support-empty { margin:0;color:#b2adb0;font-size:14px;line-height:1.4; }
.ss-support .ss-help-faq { margin-block:18px; }
.ss-support .ss-help-faq h3 { margin:0 0 12px; }
.ss-help-faq details { margin-block-end:8px;border:1px solid #2c2924;border-radius:14px;background:#141414; }
.ss-help-faq summary {
  display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;
  padding:6px 14px;border-radius:14px;list-style:none;color:#f5f5f8;font-size:15px;font-weight:500;cursor:pointer;
}
.ss-help-faq summary::-webkit-details-marker { display:none; }
.ss-help-faq summary:focus-visible { outline:2px solid #f3d794;outline-offset:-2px; }
.ss-help-faq summary::after {
  content:"";flex:none;width:18px;height:18px;background:#f3d794;
  mask:url("assets/icon-chevron-right.svg") center/contain no-repeat;
  -webkit-mask:url("assets/icon-chevron-right.svg") center/contain no-repeat;
}
.ss-help-faq details[open]>summary::after { transform:rotate(90deg); }
#app-shell[dir="rtl"] .ss-help-faq details:not([open])>summary::after { transform:rotate(180deg); }
.ss-help-faq details>p { padding:0 14px 14px;color:#b2adb0;font-size:13px;line-height:1.5; }
@media(max-width:760px) {
 dialog.ss-page { position:fixed;inset:0;width:100%;height:var(--player-viewport-height,100vh);max-width:none;max-height:none;margin:0;border:0;border-radius:0; }
 .ss-page-scroll,.ss-support-scroll { padding-bottom:max(28px,env(safe-area-inset-bottom)); }
}

/* The PC error overlay must not cover visible report/episode controls. */
@media(min-width:761px){.player-rail{z-index:12;} .player-state:not(.is-locked){z-index:3;}}

/* Load after app-web/styles.css. Values from the six App21 source pins in
   source-bindings.actual.json; CSS px maps to Native dp at the 412 CSS-px viewport.
   Native runtime screenshots remain App20 check-in only; browser QA is Root's task. */

/* StudioHomeScreen.showCategories(): full-width bottom sheet, two 50dp axes. */
dialog#categories-dialog.native-category-sheet {
  position:fixed;inset:auto 0 0;width:min(520px,100%);max-width:none;
  height:auto;max-height:calc(100dvh - 32px);margin:0 auto;overflow:auto;
  padding:18px 18px max(24px,env(safe-area-inset-bottom,0px));
  border:0;border-radius:22px;background:#17171e;color:#f5f5f8;
  font-family:var(--font);letter-spacing:0;
}
#categories-dialog.native-category-sheet::backdrop { background:rgb(0 0 0 / .55);backdrop-filter:none;-webkit-backdrop-filter:none; }
#categories-dialog.native-category-sheet h2 {
  display:flex;align-items:flex-start;min-height:42px;margin:0;padding:0;
  color:#f5f5f8;font-size:20px;font-weight:700;line-height:1.3;
}
#categories-dialog.native-category-sheet h3 {
  margin:15px 0 0;padding:0;color:#b2adb0;font-size:13px;font-weight:700;line-height:1.3;
}
#categories-dialog.native-category-sheet .taxonomy-options {
  display:flex;align-items:center;flex-wrap:nowrap;gap:0;height:50px;
  margin:0;padding:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:none;
}
#categories-dialog.native-category-sheet .taxonomy-options::-webkit-scrollbar { display:none; }
#categories-dialog.native-category-sheet .taxonomy-options button {
  position:relative;display:flex;align-items:center;justify-content:center;flex:none;
  min-width:48px;min-height:44px;height:44px;margin:0;padding:0;
  border:0;border-radius:0;background:none;color:#b2adb0;
  font-family:var(--font);font-weight:400;letter-spacing:0;line-height:1.25;white-space:nowrap;
}
#categories-dialog.native-category-sheet .taxonomy-options button[aria-pressed="true"] {
  border:0;color:#f5f5f8;font-weight:700;
}
#category-regions button { font-size:14px; }
#category-regions button>span { display:flex;align-items:center;height:40px;padding:0 12px; }
#categories-dialog.native-category-sheet #category-regions button[aria-pressed="true"]::after {
  position:absolute;bottom:2px;left:calc(50% - 9px);width:18px;height:2px;
  border-radius:0;background:#f5f5f8;content:"";
}
#category-genres button { font-size:12px; }
#category-genres button>span { display:flex;align-items:center;height:32px;padding:0 14px;border-radius:17px; }
#categories-dialog.native-category-sheet #category-genres button[aria-pressed="true"]>span { background:#ffffff24; }
#categories-dialog.native-category-sheet .taxonomy-options button:focus-visible { outline:2px solid #f5f5f8;outline-offset:-2px; }

/* StudioAccountScreens.language(): fixed 48dp header and independently scrolling body. */
dialog#language-dialog.native-language-dialog {
  width:min(480px,calc(100% - 32px));height:min(780px,calc(100dvh - 32px));
  padding:12px 18px 0;overflow:hidden;background:#000;color:#f5f5f8;
}
#language-dialog.native-language-dialog[open] { display:flex;flex-direction:column; }
#language-dialog.native-language-dialog .secondary-heading { flex:none;gap:8px;min-height:48px; }
#language-dialog.native-language-dialog .secondary-heading>button { width:48px;height:48px;margin:0;padding:13px; }
#language-dialog.native-language-dialog .secondary-heading>button>img { width:22px;height:22px; }
#language-dialog.native-language-dialog .secondary-heading h2 { margin:0;font-size:22px;font-weight:700;line-height:1.25; }
#language-dialog.native-language-dialog .language-body { min-height:0;margin-top:20px;padding:0 0 28px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none; }
#language-dialog.native-language-dialog .language-body::-webkit-scrollbar { display:none; }
#language-dialog.native-language-dialog .language-body>h3 { margin:0;font-size:23px;font-weight:400;line-height:1.3;color:#f5f5f8; }
#language-dialog.native-language-dialog .language-availability-note { margin:10px 0 0;font-size:13px;line-height:1.4;color:#b2adb0; }
#language-dialog.native-language-dialog .language-current { margin:14px 0 0;font-size:12px;line-height:1.4;color:#e9ce98; }
#language-dialog.native-language-dialog .secondary-language-list { margin:14px 0 0; }
#language-dialog.native-language-dialog .secondary-language-row {
  display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;
  min-height:76px;margin:9px 0 0;padding:12px 14px;
  border:1px solid #403448;border-radius:12px;background:#17131f;
  color:#f5f5f8;text-align:start;letter-spacing:0;
}
#language-dialog.native-language-dialog .secondary-language-row .secondary-language-label { flex:1;min-width:0; }
#language-dialog.native-language-dialog .secondary-language-row strong { display:block;font-size:15px;font-weight:400;line-height:1.3; }
#language-dialog.native-language-dialog .secondary-language-row small { display:block;margin-top:5px;color:#b2adb0;font-size:12px;font-weight:400;line-height:1.3; }
#language-dialog.native-language-dialog .secondary-language-check { display:block;flex:none;width:20px;height:20px;border:2px solid #b7adbf;border-radius:50%;background:none;color:transparent; }
#language-dialog.native-language-dialog .secondary-language-row[aria-pressed="true"] .secondary-language-check,
#language-dialog.native-language-dialog .secondary-language-row[aria-checked="true"] .secondary-language-check {
  border-color:#e9ce98;background:radial-gradient(circle,#e9ce98 0 5px,transparent 5.5px);
}
#language-dialog.native-language-dialog .secondary-language-row:disabled { opacity:.5;cursor:not-allowed; }
#language-dialog.native-language-dialog .secondary-language-row:focus-visible { outline:2px solid #e9ce98;outline-offset:2px; }
@media(max-width:760px) {
  dialog#language-dialog.native-language-dialog { position:fixed;inset:0;width:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:12px 18px 0; }
  #language-dialog.native-language-dialog .language-body { padding-bottom:max(28px,env(safe-area-inset-bottom,0px)); }
}

/* StudioCheckInSheet + CheckInPopup, not the older fullscreen check-in page. */
dialog#checkin-dialog.native-checkin-popup {
  --checkin-gold:#f0d39a;--checkin-soft:#c3bab0;--checkin-champagne:#ffedcc;
  position:fixed;inset:0;width:min(430px,calc(100% - 32px));min-width:min(180px,calc(100% - 32px));
  max-width:none;height:auto;max-height:84vh;max-height:84dvh;margin:auto;padding:0;
  overflow:hidden;border:1px solid #80633c;border-radius:20px;
  background:linear-gradient(145deg,#2a2016,#15120f 56%,#0c0b09);color:#f5f5f8;
  font-family:var(--font);letter-spacing:0;
}
#checkin-dialog.native-checkin-popup::backdrop { background:rgb(0 0 0 / .65);backdrop-filter:none;-webkit-backdrop-filter:none; }
#checkin-dialog.native-checkin-popup .checkin-popup-scroll { max-height:calc(84dvh - 2px);padding:12px 18px 20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none; }
#checkin-dialog.native-checkin-popup .checkin-popup-scroll::-webkit-scrollbar { display:none; }
#checkin-dialog.native-checkin-popup .checkin-popup-heading { display:flex;align-items:center;min-height:48px;gap:0;margin:0;padding:0; }
#checkin-dialog.native-checkin-popup .checkin-popup-heading h2 { flex:1;min-width:0;margin:0;margin-inline-end:8px;color:var(--checkin-champagne);font-size:21px;font-weight:700;line-height:1.25;overflow-wrap:anywhere; }
#checkin-dialog .checkin-seal {
  display:inline-flex;align-items:center;justify-content:center;flex:none;gap:4px;max-width:48%;min-height:36px;padding:4px 9px 4px 6px;
  border:1px solid #80633c;border-radius:999px;background:linear-gradient(145deg,#483520,#211810);
  color:var(--checkin-champagne);font-size:15px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;
}
#checkin-dialog .checkin-seal img { flex:none;width:22px;height:22px;object-fit:contain; }
#checkin-dialog #checkin-balance { min-width:0;overflow-wrap:anywhere;text-align:end; }
#checkin-dialog.native-checkin-popup .checkin-popup-heading button { display:grid;place-items:center;flex:none;width:48px;height:48px;margin:0;padding:14px;border:0;background:none; }
#checkin-dialog.native-checkin-popup .checkin-popup-heading button>svg { width:20px;height:20px;color:var(--checkin-soft); }
#checkin-dialog.native-checkin-popup .checkin-popup-subtitle { margin:2px 0 0;color:var(--checkin-soft);font-size:13px;line-height:1.3; }
#checkin-dialog.native-checkin-popup .native-reward-week { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0 0;overflow:visible; }
#checkin-dialog.native-checkin-popup .native-reward-day { display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:88px;padding:7px;border:1px solid #44382c;border-radius:11px;background:linear-gradient(145deg,#221e18,#11100e); }
#checkin-dialog.native-checkin-popup .native-reward-day:last-child { grid-column:span 2;border-color:#80633c;background:linear-gradient(145deg,#38291a,#1a1510,#20180f); }
#checkin-dialog.native-checkin-popup .native-reward-day[aria-current="step"] { border-color:#d5ae69;background:linear-gradient(145deg,#44341e,#241b11); }
#checkin-dialog.native-checkin-popup .native-reward-day.is-claimed { opacity:.7; }
#checkin-dialog.native-checkin-popup .native-reward-day span { margin:0;color:var(--checkin-soft);text-align:start;font-size:10px;line-height:1.3; }
#checkin-dialog.native-checkin-popup .native-reward-day img { align-self:center;display:block;width:30px;height:30px;margin:3px 0 0;object-fit:contain; }
#checkin-dialog.native-checkin-popup .native-reward-day strong { display:block;margin:0;color:#f5f3ef;text-align:end;font-size:14px;font-weight:400;line-height:1.3; }
#checkin-dialog.native-checkin-popup #checkin-action { display:block;width:100%;min-height:48px;margin:14px 0 0;padding:10px 12px;border:1px solid #3d3934;border-radius:12px;background:#292724;color:#b8b2a9;font-size:14px;font-weight:500;line-height:1.3;opacity:1;cursor:not-allowed; }
#checkin-dialog.native-checkin-popup #checkin-action:enabled { border-color:var(--checkin-gold);background:var(--checkin-gold);color:#24190c;font-weight:700;cursor:pointer; }
#checkin-dialog.native-checkin-popup .checkin-popup-capability { margin:8px 0 0;font-size:11px;line-height:1.4;color:var(--checkin-soft); }
#checkin-dialog.native-checkin-popup [hidden],#checkin-dialog.native-checkin-popup .checkin-popup-capability:empty { display:none; }
@media(max-width:360px) {
  .home-view .search { gap:5px;padding-inline:5px; }
  .home-view .search input { appearance:none;padding:0;font-size:12px; }
  #checkin-dialog.native-checkin-popup .checkin-popup-heading h2 { margin-inline-end:6px;font-size:18px; }
  #checkin-dialog.native-checkin-popup .checkin-popup-heading button { width:44px;padding-inline:12px; }
  /* The native grid stays four columns. Long Web capability text may wrap, never widen it. */
  #checkin-dialog.native-checkin-popup .native-reward-day { min-width:0; }
  #checkin-dialog.native-checkin-popup #checkin-action { overflow-wrap:anywhere; }
}

/* Logical alignment for the native RTL interface; authored text remains unchanged. */
#app-shell[dir="rtl"] .native-profile-page .profile-identity{margin-left:0;margin-right:12px;}
#app-shell[dir="rtl"] .native-profile-page .account-entry{margin-left:0;margin-right:8px;}
#app-shell[dir="rtl"] .profile-chevron{transform:rotate(180deg);}
#app-shell[dir="rtl"] .profile-benefit>span{margin-left:5px;margin-right:7px;}
#app-shell[dir="rtl"] .native-profile-page .profile-menu>button>span,#app-shell[dir="rtl"] .native-profile-page .profile-menu>a>span{margin-left:10px;margin-right:14px;}
#app-shell[dir="rtl"] .native-secondary-dialog .secondary-heading>button>img,#app-shell[dir="rtl"] .ss-page-heading button>.ss-chevron{transform:none;}
#app-shell[dir="rtl"] .ss-sheet-heading h2{margin-left:0;margin-right:12px;}
#app-shell[dir="rtl"] .ss-chevron:not(.ss-page-heading .ss-chevron){transform:rotate(180deg);}
#app-shell[dir="rtl"] .ss-menu-row>span:not(.ss-info-icon){margin-left:14px;margin-right:10px;}
#app-shell[dir="rtl"] .native-library-page .library-copy{margin-left:0;margin-right:10px;}
#app-shell[dir="rtl"] .library-select{margin-right:0;margin-left:10px;}
#app-shell[dir="rtl"] .secondary-language-row{text-align:right;}

/* A centered native popup wraps its contents; inset:0 + height:auto stretched it. */
dialog#checkin-dialog.native-checkin-popup{height:fit-content;}
#language-dialog .secondary-language-label{text-align:left;}
#language-dialog .secondary-language-label strong,#language-dialog .secondary-language-label small{text-align:inherit;}
#app-shell[dir="rtl"] #language-dialog .secondary-language-label{text-align:right;}
@media(min-width:761px) {
  /* The sticky player column owns a stacking context on wide screens. */
  body.watching.unlock-sheet-open .player-column { z-index:75; }
  .player-state.is-locked:not(.unlock-collapsed) { z-index:20; }
}
/* Exact Android33 system info bitmap supplies its original alpha silhouette. */
.ss-info-icon{border:0;border-radius:0;background:currentColor;mask:url("assets/native-info.png") center/contain no-repeat;-webkit-mask:url("assets/native-info.png") center/contain no-repeat;}

#app-shell[dir="rtl"] .native-profile-page .profile-vip,#app-shell[dir="rtl"] .native-profile-page .profile-wallet,#app-shell[dir="rtl"] .native-profile-page .profile-menu button,#app-shell[dir="rtl"] .ss-menu-row{text-align:right;}

.player-state-cover {
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  background:#080808;pointer-events:none;
}
.player-lock-vip {
  position:absolute;z-index:11;top:12px;inset-inline-start:14px;padding:4px 9px;
  border:1px solid #967149;border-radius:7px;background:#211a10;color:#f5d48a;
  font-size:12px;font-weight:800;line-height:1.2;
}
.player-title-row { display:flex;align-items:baseline;gap:8px;min-width:0; }
.player-title-row > h2 { flex:1;min-width:0; }
#player-story-category { height:auto;min-height:22px;white-space:normal;overflow-wrap:anywhere; }
.player-display-alias { color:#c7c2b9; }
body .player-collection-button > img.player-collection-stack {
  position:absolute;inset-inline-start:11px;inset-inline-end:auto;width:17px;height:17px;opacity:1;filter:none;
}
.player-collection-button > .player-collection-arrow { inset-inline-end:10px;inset-inline-start:auto; }
.player-state.is-playback-error { background:#0009; }
.player-state.is-playback-error .player-state-card {
  width:min(320px,100%);max-height:100%;overflow-y:auto;padding:18px 20px 12px;
  background:#1a191df5;border-color:#ffffff15;
}
.player-state.is-playback-error .player-state-icon {
  display:block;width:72px;height:72px;object-fit:contain;margin:0 auto 10px;opacity:1;
}
.player-state.is-playback-error h2 { margin:0 0 15px;font-size:18px; }
.player-state.is-playback-error .button,
.player-state.is-playback-error .unlock-browse { width:100%;min-height:44px;border:0;border-radius:9px;font-size:14px; }
.player-state.is-playback-error #player-state-action { background:#f6f6f8;color:#151519; }
.player-state.is-playback-error #player-state-episodes { margin-top:8px;background:#343338;color:#f5f5f8; }
.player-state.is-playback-error .unlock-browse { display:block;margin-top:4px;background:none;color:#d8d6dd; }
.player-state.is-locked.unlock-collapsed { background:#0009; }
.player-state.is-locked.unlock-collapsed .player-state-card {
  width:min(412px,100%);margin:0;padding:0 6px;border:0;background:none;text-align:center;
}
.player-lock-mascot { display:none; }
.player-state.is-locked.unlock-collapsed .player-lock-mascot {
  display:block;width:100px;height:100px;margin:0 auto 10px;
  background:url("assets/lock-drool-emoji.webp") center/contain no-repeat;
  filter:drop-shadow(0 8px 18px #0009);
}
.player-state.is-locked.unlock-collapsed .player-state-card > h2 { margin:0 0 16px;padding:0;font-size:22px; }
.player-state.is-locked.unlock-collapsed #player-unlock-open {
  min-height:48px;background:linear-gradient(110deg,#f9e3a7,#e9bd6b);color:#251904;
  border-color:#f8dda3;font-size:15px;font-weight:750;
}
.locked-install-entry { margin-top:10px; }
.locked-install-entry > button {
  display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px;padding:8px 12px;
  border:1px solid #ffffff35;border-radius:10px;background:#151417df;color:#f6f2eb;font-size:14px;font-weight:700;
}
.locked-install-entry > button > img { width:17px;height:17px;flex:none; }
.locked-install-entry strong {
  padding:2px 7px;border-radius:999px;background:#f5d998;color:#342208;font-size:11px;white-space:nowrap;
}
.unlock-coin-confirm { display:grid;gap:9px;margin:12px 0; }
.unlock-coin-confirm .unlock-coin-balance {
  display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:none;margin:0;color:#d4cfc8;
}
.unlock-coin-balance > strong { color:#f5d998; }
.unlock-coin-confirm > button {
  width:100%;min-height:46px;border:1px solid #f8dda3;border-radius:10px;
  background:linear-gradient(110deg,#f9e3a7,#e9bd6b);color:#251904;font-size:14px;font-weight:750;
}
.unlock-auto-choice { display:flex;align-items:center;gap:9px;min-height:44px;color:#ded7ca;font-size:13px;line-height:1.4; }
.unlock-auto-choice > input { flex:none;accent-color:#f5d998;width:18px;height:18px; }
.unlock-coin-confirm #unlock-coin-message { margin:0;color:#d1cac0;font-size:12px; }
.unlock-coin-confirm #unlock-coin-message:empty { display:none; }
.player-state.is-locked.unlock-collapsed #player-state-action,
.player-state.is-locked.unlock-collapsed .unlock-browse { display:none; }
.player-state.is-locked:not(.unlock-collapsed) .player-state-card { max-height:88dvh; }
.unlock-vip-credential { display:none; }
.player-state.is-vip-gate:not(.unlock-collapsed) {
  justify-content:safe center;padding:62px 16px 70px;overflow-y:auto;
}
.player-state.is-vip-gate:not(.unlock-collapsed) .player-state-card {
  width:min(412px,100%);max-height:none;overflow:visible;margin:0;padding:46px 18px 18px;
  background:linear-gradient(222deg,#302619,#1d170e 38%,#0f0d0a 69%,#080807);
  border:1px solid #d9b673;border-radius:17px;text-align:center;
}
.player-state.is-vip-gate .player-unlock-close {
  top:calc(100% + 13px);right:50%;transform:translateX(50%);
  width:48px;height:48px;border:1px solid #a8864e;background:#131110;
}
.player-state.is-vip-gate .player-unlock-close > img {
  filter:brightness(0) saturate(100%) invert(85%) sepia(24%) saturate(839%) hue-rotate(348deg) brightness(101%);
}
.player-state.is-vip-gate:not(.unlock-collapsed) .player-state-card > h2 { padding:0;color:#ffe8ad; }
.player-state.is-vip-gate .unlock-episode-label { margin-top:7px; }
.player-state.is-vip-gate .unlock-vip-credential {
  display:grid;place-items:center;width:108px;height:54px;margin:16px auto 12px;border-radius:8px;
  background:linear-gradient(108deg,#fff4d7,#d6b47d);color:#362814;font-size:24px;font-weight:800;letter-spacing:.1em;
}
.player-state.is-vip-gate .unlock-price-boundary {
  justify-content:center;padding:0 8px;background:none;
}
.player-state.is-vip-gate .unlock-price-boundary > img {
  position:absolute;top:-40px;left:50%;width:84px;height:76px;transform:translateX(-50%);
}
.player-state.is-vip-gate .unlock-price-boundary strong { color:#f8db9b;font-size:15px; }
.player-state.is-vip-gate .unlock-vip-row {
  justify-content:center;min-height:48px;margin-top:16px;padding:8px 12px;
  background:linear-gradient(108deg,#fff4d7,#d6b47d);text-align:center;
}
.player-state.is-vip-gate .unlock-vip-row > img,
.player-state.is-vip-gate .unlock-vip-row small,
.player-state.is-vip-gate .unlock-browse { display:none; }
.player-state.is-locked #player-state-episodes { display:flex;justify-content:center;width:100%;min-height:44px;margin-top:8px;border:0;background:transparent;color:#dedde4;font-size:13px; }
.player-state.is-locked.unlock-collapsed #player-state-action,
.player-state.is-vip-gate #player-state-action { display:flex;justify-content:center; }
.player-state.is-locked.unlock-collapsed .player-state-card { max-height:calc(100% - 16px);overflow-y:auto; }
.player-buffering {
  position:absolute;z-index:9;top:50%;inset-inline-start:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:9px;max-width:calc(100% - 32px);padding:10px 14px;
  border-radius:20px;background:#151518d9;color:#f5f5f8;font-size:13px;line-height:20px;
  pointer-events:none;
}
.player-buffering-spinner { width:16px;height:16px;flex:none;border:2px solid #ffffff38;border-top-color:#fff;border-radius:50%;animation:player-buffering-spin .8s linear infinite; }
@keyframes player-buffering-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .player-buffering-spinner { animation:none; } }
@media(min-width:761px) { body.watching #player-progress { display:none; } }
.player-state.is-vip-gate .unlock-web-note { margin:12px 0 0; }
.unlock-coin-rail {
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 16px)/3);
  scroll-snap-type:x proximity;
}
.unlock-coin-card { min-width:0;scroll-snap-align:start; }
.unlock-coin-card > strong { margin-inline:4px;font-size:16px; }
.unlock-coin-price { padding-inline:3px;font-size:11px; }
.episode-grid .episode-button {
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  height:auto;min-width:0;padding:0;border:0;background:none;color:#f4f4f7;
}
.episode-button > .episode-tile {
  display:grid;place-items:center;position:relative;aspect-ratio:1;min-height:44px;
  border:1px solid #ffffff12;border-radius:7px;background:#26262a;color:inherit;font-weight:650;
}
.episode-button.active > .episode-tile { border-color:#fff;background:#f5f5f8;color:#17171a; }
.episode-button.locked .episode-number { position:absolute;top:4px;inset-inline-start:5px;font-size:10px;opacity:.82; }
.episode-button.locked .lock-icon { position:static;width:16px;height:16px;opacity:.55; }
.episode-button.locked.active .lock-icon { filter:brightness(0);opacity:.64; }
.episode-access {
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px 4px;
  padding:5px 0 0;font-size:10px;line-height:1.2;overflow-wrap:anywhere;
}
.episode-vip,.episode-coins { color:#e5c480; }
.episode-vip { font-weight:800; }
.episode-coins { display:inline-flex;align-items:center;gap:3px; }
.episode-coins > img { width:11px;height:11px;object-fit:contain; }
@media(max-width:760px) {
  body.watching.player-recovery .player-rail,
  body.watching.player-locked .player-rail,
  body.watching.player-recovery .player-info-overlay,
  body.watching.player-locked .player-info-overlay { visibility:hidden; }
  body.watching.for-you-mode.player-locked:not(.unlock-sheet-open) .back-button { display:grid; }
  body.watching.player-locked .back-button { width:44px;height:44px; }
  body.watching .player-lock-vip { inset-inline-start:58px;top:max(14px,env(safe-area-inset-top)); }
  body.watching.episode-sheet-open #player-state { visibility:hidden; }
  body.watching.episode-sheet-open .story-column {
    min-height:70vh;min-height:70dvh;background:#111113f7;
  }
  body.watching .episode-grid .episode-button,
  body.watching .episode-grid .episode-button.active { height:auto;padding:0;border:0;background:none;color:#f4f4f7; }
  body.watching .episode-grid .episode-button.locked .lock-icon { width:16px;height:16px; }
}

/* Desktop discovery treatment based on the approved YesTV reference. */
#catalog .poster-caption { display: contents; }
#catalog .poster-desktop-meta, #catalog .poster-play-hint, #desktop-search-clear { display: none; }
#catalog .poster-vip-badge {
  position:absolute;z-index:1;inset-block-start:6px;inset-inline-start:6px;
  padding:4px 7px;border-radius:5px;background:#ffdc92;color:#3d2609;
  font-size:10px;font-weight:700;line-height:1.2;
}
#catalog .poster-rank {
  position:absolute;z-index:2;inset-block-start:7px;inset-inline-start:7px;
  display:grid;place-items:center;min-inline-size:29px;block-size:29px;padding-inline:6px;
  border:1px solid #ffffff55;border-radius:50%;color:#f5f4f1;background:#18191ee8;
  box-shadow:0 2px 8px #0007;font:800 14px/1 var(--font);font-variant-numeric:tabular-nums;
}
#catalog .poster-rank--gold { color:#3a2405;background:linear-gradient(145deg,#fff4ce,#f4c768 66%,#d3912e); }
#catalog .poster-rank--silver { color:#282f3d;background:linear-gradient(145deg,#fafcff,#d0d8e8 66%,#a8b1c5); }
#catalog .poster-rank--bronze { color:#3d210f;background:linear-gradient(145deg,#ffdfc2,#dca47c 66%,#b7764d); }
#catalog .poster-rank + .poster-vip-badge { inset-inline-start:45px; }
#catalog .demo-badge {
  top:0;left:auto;right:auto;inset-inline-start:auto;inset-inline-end:0;
  padding:4px 6px;border:0;border-radius:3px;background:#f0c858;color:#090909;
  font-size:9px;font-weight:700;line-height:1.2;
}
.desktop-glyph { display:none; }
.desktop-glyph[data-pc-icon="crown"] { --glyph-image:url("assets/icon-crown.svg"); }
.desktop-glyph[data-pc-icon="gift"] { --glyph-image:url("assets/icon-gift.svg"); }
.desktop-glyph[data-pc-icon="settings"] { --glyph-image:url("assets/icon-settings-2.svg"); }
.desktop-glyph[data-pc-icon="flame"] { --glyph-image:url("assets/icon-flame.svg"); }
.desktop-glyph[data-pc-icon="trophy"] { --glyph-image:url("assets/icon-trophy.svg"); }
.desktop-glyph[data-pc-icon="shield-alert"] { --glyph-image:url("assets/icon-shield-alert.svg"); }
.desktop-glyph[data-pc-icon="sprout"] { --glyph-image:url("assets/icon-sprout.svg"); }
.desktop-glyph[data-pc-icon="download"] { --glyph-image:url("assets/icon-download.svg"); }

@media (min-width: 761px) {
  #app-shell { --desktop-home-header:72px; }
  .site-header {
    height: var(--desktop-home-header);
    background: #090909eb;
    gap:clamp(10px,1.65vw,24px);
  }
  .site-header nav { gap:clamp(5px,1.2vw,17px); }
  .site-header .nav-link {
    justify-content:center;min-width:44px;min-height:44px;padding-inline:5px;
    color:#bdb8b0;font-size:14px;font-weight:700;line-height:1.4;
    text-shadow:0 1px 3px #0008;
  }
  .site-header .nav-link.active { color:#f6f3ee;font-weight:700; }
  .site-header .nav-link.active::after {
    left:calc(50% - 10px);bottom:7px;width:20px;height:2px;border-radius:2px;
  }
  .site-header .desktop-glyph,
  .discovery-nav .desktop-glyph {
    display:block;flex:none;width:22px;height:22px;background:currentColor;
    mask:var(--glyph-image) center / contain no-repeat;
    -webkit-mask:var(--glyph-image) center / contain no-repeat;
  }
  .site-header .header-wallet>img,
  .site-header .header-checkin>.native-icon,
  .site-header #open-settings>img,
  .discovery-nav .mobile-category-icon { display:none; }
  .site-header .header-wallet,
  .site-header .header-checkin,
  .site-header #open-settings {
    width:44px;height:44px;min-width:44px;padding:0;border-radius:10px;color:#c9c4bb;
    place-items:center;
  }
  .site-header .header-wallet { color:var(--accent); }
  .site-header .header-wallet:hover,
  .site-header .header-checkin:hover,
  .site-header #open-settings:hover { background:#ffffff12;color:#fff2d7; }
  .site-header .search input {
    font-size:14px;line-height:1.4;
  }
  .site-header .search .search-icon,
  .site-header .search button>img { width:18px;height:18px; }
  .home-view #discover-view .discovery-nav .desktop-glyph {
    width:18px;height:18px;
  }
  .home-view #discover-view .discovery-nav button.active .desktop-glyph {
    color:var(--accent);
  }
  .home-view .site-header .search {
    width: clamp(210px, 24vw, 338px);
    min-width: 168px;
    gap: 7px;
    padding-inline: 13px 2px;
    background: #ffffff0a;
  }
  .home-view .search input { flex: 1; }
  .home-view .search input::-webkit-search-cancel-button { appearance: none; }
  .home-view .search button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .home-view .search button:hover { background: #ffffff12; }
  .home-view .search #desktop-search-clear:not([hidden]) { display: grid; }
  .home-view #desktop-search-clear img { width: 15px; height: 15px; }
  .home-view #desktop-search-clear:focus-visible,
  .home-view .search button[type="submit"]:focus-visible { outline-offset: -3px; }
  .home-view #discover-view .discovery-nav {
    top: var(--desktop-home-header);
    gap: clamp(18px, 2vw, 32px);
    margin: 0 0 10px;
    padding: 0 2px;
    background: #090909f2;
  }
  .home-view #discover-view .discovery-nav button {
    min-height: 48px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 3px #0008;
    gap:8px;
  }
  .home-view #discover-view .discovery-nav button.active::after {
    inset-inline: calc(50% - 11px) auto;
    bottom: 1px;
    width: 22px;
    height: 2px;
  }
  .home-view #discover-view .discovery-nav button:focus-visible { outline-offset: -2px; }

  .home-view #discover-view .featured-shell { margin-bottom: 18px; }
  .home-view #discover-view .featured-carousel,
  .home-view #discover-view .featured-card { border-radius: 12px; }
  .home-view #discover-view .featured-card {
    height: clamp(338px, min(31vw, 47svh), 420px);
    background: #171411;
  }
  .home-view #discover-view .hero-backdrop { filter: blur(12px); opacity: .42; }
  .home-view #discover-view .hero-poster {
    --desktop-art-mask: linear-gradient(90deg, transparent, #000 18%);
    left: auto;
    right: auto;
    inset-inline-end: 0;
    width: 69%;
    object-position: 50% 30%;
    mask-image: var(--desktop-art-mask);
    -webkit-mask-image: var(--desktop-art-mask);
  }
  .home-view #app-shell[dir="rtl"] #discover-view .hero-poster {
    --desktop-art-mask: linear-gradient(270deg, transparent, #000 18%);
  }
  .home-view #discover-view .hero-shade {
    --desktop-art-shade: linear-gradient(90deg, #090909 0%, #090909ed 24%, #09090963 58%, #09090900 88%);
    background: var(--desktop-art-shade), linear-gradient(0deg, #050505e8, #05050535 26%, transparent 55%);
  }
  .home-view #app-shell[dir="rtl"] #discover-view .hero-shade {
    --desktop-art-shade: linear-gradient(270deg, #090909 0%, #090909ed 24%, #09090963 58%, #09090900 88%);
  }
  .home-view #discover-view .hero-copy {
    left: auto;
    right: auto;
    inset-inline-start: 5%;
    top: 47%;
    width: 52%;
    max-width: 580px;
    text-align: start;
  }
  .home-view #discover-view .hero-eyebrow { margin-bottom: 11px; }
  .home-view #discover-view .hero-title {
    font-size: clamp(28px, 3.5vw, 51px);
    line-height: 1.1;
  }
  .home-view #discover-view .hero-meta { margin-top: 12px; }
  .home-view #discover-view .hero-synopsis {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .home-view #discover-view .hero-synopsis:empty { display: none; }
  .home-view #discover-view .hero-cta {
    gap: 7px;
    min-height: 44px;
    margin-top: 16px;
    padding: 9px 18px;
    border: 1px solid #fff5db99;
    background: var(--accent);
    color: #17120b;
  }
  .home-view #discover-view .hero-play-icon { width: 18px; height: 18px; }
  .home-view #discover-view .hero-note { margin-top: 7px; }
  .home-view #discover-view .featured-card:hover .hero-cta,
  .home-view #discover-view .featured-card:focus-visible .hero-cta { background: #f8e4bb; }
  .home-view #discover-view .featured-controls {
    position: absolute;
    z-index: 2;
    inset-inline: 11px;
    bottom: 8px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 44px;
    gap: 0;
    margin: 0;
    pointer-events: none;
  }
  .home-view #discover-view .featured-controls button { pointer-events: auto; }
  .home-view #discover-view .featured-controls > button {
    background: #090909b3;
    border-color: #ffffff39;
  }
  .home-view #discover-view .featured-controls > button:hover { background: #232323e6; }
  .home-view #discover-view #featured-page {
    position: absolute;
    width: 1px;
    min-width: 0;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .home-view #discover-view .featured-dots {
    justify-self: center;
    height: 36px;
    padding-inline: 7px;
    border-radius: 999px;
    background: #0909098c;
  }
  .home-view #discover-view .featured-dots button { width: 24px; height: 36px; }
  .home-view #discover-view .featured-dots button > span {
    width: 7px;
    height: 5px;
    border-radius: 4px;
    background: #b8b4ac;
    transition: width .16s, background .16s;
  }
  .home-view #discover-view .featured-dots button[aria-pressed="true"] > span {
    width: 17px;
    background: var(--accent);
  }
  .home-view #discover-view .featured-controls button:focus-visible { outline-offset: -3px; }
  .home-view #app-shell[dir="rtl"] #featured-prev img { transform: none; }
  .home-view #app-shell[dir="rtl"] #featured-next img { transform: rotate(180deg); }

  .home-view #discover-view .categories { gap: 6px; margin-bottom: 13px; }
  .home-view #discover-view .categories button {
    min-height: 36px;
    padding: 6px 14px;
    font-weight: 600;
  }
  .home-view #discover-view .arrivals-heading { margin-bottom: 11px; }
  .home-view #discover-view #catalog { gap: 16px 12px; }
  .home-view #catalog .poster-card {
    border: 1px solid #ffffff0f;
    border-radius: 9px;
    overflow: hidden;
    background: #101012;
    text-align: start;
    transition: border-color .18s, background .18s;
  }
  .home-view #catalog .poster-card:focus-visible {
    outline-offset: 2px;
    border-color: var(--accent);
  }
  .home-view #catalog .poster-image { border: 0; border-radius: 0; }
  .home-view #catalog .poster-badge { bottom: 8px; inset-inline: 9px; justify-content: flex-start; }
  .home-view #catalog .poster-badge > span:first-child,
  .home-view #catalog .poster-badge > span:empty { display: none; }
  .home-view #catalog .poster-caption { display: block; padding: 9px 10px 11px; }
  .home-view #catalog .poster-caption h3 {
    min-height: 2.6em;
    margin: 0 0 7px;
    color: #f5f2ec;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }
  .home-view #catalog .poster-meta { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
  .home-view #catalog .poster-meta > span {
    display: block;
    max-width: 100%;
    padding: 2px 5px;
    border-radius: 4px;
    background: #ffffff13;
    color: #d0ccc5;
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .home-view #catalog .poster-meta > .poster-meta-separator,
  .home-view #catalog .poster-meta > .poster-mobile-meta { display: none; }
  .home-view #catalog .poster-play-hint {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #ffffff50;
    border-radius: 50%;
    background: #090909cf;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.92);
    transition: opacity .18s, transform .18s;
  }
  .home-view #catalog .poster-play-hint img { width: 20px; height: 20px; }
  .home-view #catalog .poster-card:focus-visible .poster-play-hint {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .home-view .site-header { gap: 13px; }
  .home-view .site-header .search { flex: 1; width: auto; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .home-view #discover-view #catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (hover: hover) {
  .home-view #catalog .poster-card:hover { background: #19181a; border-color: #f0d39a80; }
  .home-view #catalog .poster-card:hover .poster-image > img { transform: scale(1.025); }
  .home-view #catalog .poster-card:hover .poster-play-hint {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  .home-view #discover-view .featured-carousel { scroll-behavior: auto; }
  .home-view #discover-view .featured-dots button > span,
  .home-view #discover-view .hero-cta,
  .home-view #catalog .poster-card,
  .home-view #catalog .poster-image > img,
  .home-view #catalog .poster-play-hint { transition: none; }
  .home-view #discover-view .featured-card:hover .hero-cta,
  .home-view #catalog .poster-card:hover .poster-image > img { transform: none; }
}

/* Tab feedback follows the selection immediately and keeps tab widths fixed. */
@media (prefers-reduced-motion: no-preference) {
  .bottom-nav a { transition:background-color .16s ease,border-color .16s ease,color .16s ease; }
  .bottom-nav a > :is(img,svg,.upload-symbol) { transition:transform .12s ease; }
  .bottom-nav a:active > :is(img,svg,.upload-symbol) { transform:scale(.94); }
  .discovery-nav button,.library-tabs button { transition:color .16s ease; }
  .library-tabs .library-tab-label { transition:transform .16s ease; }
  .site-header .nav-link.active::after,
  .discovery-nav button.active::after,
  .library-tabs button.active::after { animation:tab-marker-in .16s ease-out; }
}
@keyframes tab-marker-in {
  from { opacity:.4;transform:scaleX(.65); }
  to { opacity:1;transform:scaleX(1); }
}

/* Web app installation */
.header-install { display:none; }
@media (min-width:1024px) {
  .site-header .header-install {
    display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;
    position:relative;border:0;border-radius:10px;background:none;color:#c9c4bb;
  }
  .site-header .header-install:hover { background:#ffffff12;color:#fff2d7; }
}
.install-promo-art {
  --install-art-size:40px;
  position:relative;isolation:isolate;display:block;flex:none;
  inline-size:var(--install-art-size);block-size:var(--install-art-size);
  border-radius:26%;
  background:url("assets/install-promo-motion.svg") center / contain no-repeat;
}
.install-promo-art::before {
  content:"";position:absolute;inset-block-start:20%;inset-inline-start:34%;
  inline-size:32%;block-size:34%;background:#291b11;
  clip-path:polygon(39% 0,61% 0,61% 58%,86% 34%,100% 49%,50% 100%,0 49%,14% 34%,39% 58%);
  pointer-events:none;
}
.install-promo-art::after {
  content:"";position:absolute;inset:1px;border:2px solid #ffd77a;border-radius:inherit;
  opacity:0;transform:scale(.94);pointer-events:none;
}
@media (prefers-reduced-motion:no-preference) {
  .install-promo-art::before { animation:install-promo-drop 2.8s ease-in-out infinite; }
  .install-promo-art::after { animation:install-promo-ripple 2.8s ease-out infinite; }
}
@keyframes install-promo-drop {
  0%, 44%, 100% { transform:translateY(0); }
  10% { transform:translateY(-18%); }
  23% { transform:translateY(34%); }
}
@keyframes install-promo-ripple {
  0%, 16% { opacity:0;transform:scale(.94); }
  24% { opacity:.86; }
  50%, 100% { opacity:0;transform:scale(1.24); }
}
.native-profile-page .profile-menu>button>.install-promo-art { flex:none;margin:0; }
.profile-menu .install-promo-art { --install-art-size:32px; }
.install-promo-title { display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;min-inline-size:0; }
.install-reward-chip {
  display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;
  padding:3px 7px;border:1px solid #ffd48959;border-radius:999px;
  background:#3b2a17;color:#ffe2a4;font-size:.6875rem;font-weight:750;line-height:1.2;white-space:nowrap;
}
.install-reward-mini { position:absolute;inset-block-start:0;inset-inline-end:-2px;padding:2px 5px;background:#ffdc91;color:#36230e; }
.install-reward-detail {
  display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:9px 10px;border:1px solid #ffd48935;
  border-radius:10px;background:#332619;color:#ffe8be;font-size:.8125rem;line-height:1.45;
}
.install-reward-detail .install-reward-chip { flex:none; }
.product-dialog.install-dialog {
  --install-gutter:24px;
  inline-size:min(548px,calc(100% - 32px));
  max-block-size:calc(100vh - 32px);
  max-block-size:calc(100dvh - 32px);
  padding:0;
  overflow:hidden;
  border:1px solid #ffffff24;
  border-radius:22px;
  background:#1b1b1e;
  color:#f4f4f6;
}
.product-dialog.install-dialog[open] { display:flex;flex-direction:column; }
.install-dialog .dialog-heading {
  display:grid;
  flex:none;
  grid-template-columns:44px minmax(0,1fr) 44px;
  gap:12px;
  align-items:center;
  margin:0;
  padding:20px var(--install-gutter) 16px;
  border-block-end:1px solid #ffffff14;
}
.install-dialog .dialog-heading h2 {
  min-inline-size:0;
  margin:0;
  font-size:clamp(1.2rem,calc(1rem + .7vw),1.5rem);
  line-height:1.2;
  overflow-wrap:anywhere;
}
.install-dialog #install-intro { margin:0 0 14px;color:#c3c1c9;font-size:.8125rem;line-height:1.45;overflow-wrap:anywhere; }
.install-heading-icon.install-promo-art,
.install-suggestion-icon.install-promo-art { --install-art-size:44px; }
.install-dialog .dialog-heading button,
.install-suggestion-close {
  display:grid;
  place-items:center;
  inline-size:44px;
  block-size:44px;
  margin:0;
  padding:0;
  border:0;
  border-radius:12px;
  background:#ffffff0d;
}
.install-dialog .dialog-heading button:hover,
.install-suggestion-close:hover { background:#ffffff1c; }
.install-dialog .dialog-heading button img,
.install-suggestion-close img { inline-size:17px;block-size:17px;opacity:.85; }
.install-dialog-content {
  min-block-size:0;
  padding:18px var(--install-gutter) 22px;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.install-presets { min-inline-size:0;margin:0;padding:0;border:0; }
.install-presets legend { max-inline-size:100%;margin-block-end:10px;padding:0;color:#f3f2f5;font-size:.875rem;font-weight:700;overflow-wrap:anywhere; }
.install-preset-options { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px; }
.install-preset {
  position:relative;
  display:grid;
  grid-template-rows:auto 1fr;
  justify-items:center;
  gap:6px;
  min-inline-size:0;
  min-block-size:84px;
  margin:0;
  padding:9px 5px;
  border:1px solid #ffffff1b;
  border-radius:12px;
  background:#222226;
  color:#e0dfe5;
  font-size:.75rem;
  line-height:1.3;
  text-align:center;
  overflow-wrap:anywhere;
  cursor:pointer;
}
.install-preset:hover { border-color:#f2d59572; }
.install-preset.is-selected { border-color:#e8cc8a;background:#f2d59516;color:#fff2d3; }
.install-preset:focus-within { outline:2px solid #ffe3a3;outline-offset:2px; }
.install-dialog :is(button,a):focus-visible,
.install-suggestion :is(button,a):focus-visible { outline:2px solid #ffe3a3;outline-offset:2px; }
.install-preset input { position:absolute;inset-block-start:8px;inset-inline-end:8px;inline-size:1px;block-size:1px;opacity:0; }
.install-preset img { inline-size:38px;block-size:38px;border-radius:9px;object-fit:contain; }
.install-preset span { min-inline-size:0;align-self:center; }
.install-preset-note { margin:10px 0 0;color:#cac7d1;font-size:.8125rem;line-height:1.5;overflow-wrap:anywhere; }
.install-steps {
  list-style:none;
  margin:16px 0 0;
  padding:0 10px;
  border:1px solid #ffffff13;
  border-radius:13px;
  background:#151518;
  counter-reset:install-step;
}
.install-steps li {
  display:grid;
  grid-template-columns:26px minmax(0,1fr) 32px;
  align-items:center;
  gap:10px;
  padding:9px 0;
  color:#dedee2;
  font-size:.8125rem;
  line-height:1.45;
  overflow-wrap:anywhere;
  counter-increment:install-step;
}
.install-steps li + li { border-block-start:1px solid #ffffff13; }
.install-steps strong { display:block;color:#fff;font-size:.875rem;margin-block-end:2px; }
.install-steps li::before {
  content:counter(install-step);
  display:grid;
  place-items:center;
  inline-size:26px;
  block-size:26px;
  border-radius:50%;
  background:#ffffff13;
  color:#f0f0f2;
  font-size:.75rem;
  font-weight:700;
}
.install-step-icon {
  display:grid;
  place-items:center;
  inline-size:32px;
  block-size:32px;
  border:1px solid #ffffff18;
  border-radius:9px;
  background:#ffffff09;
  color:#dedee2;
}
.install-step-icon::before {
  content:"";inline-size:18px;block-size:18px;background:currentColor;
  mask:var(--install-glyph) center / contain no-repeat;
  -webkit-mask:var(--install-glyph) center / contain no-repeat;
}
[data-install-icon="menu"] { --install-glyph:url("assets/icon-ellipsis-vertical.svg"); }
[data-install-icon="share"] { --install-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-2M12 15V2m-4 4 4-4 4 4'/%3E%3C/svg%3E"); }
[data-install-icon="add"] { --install-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M8 12h8m-4-4v8'/%3E%3C/svg%3E"); }
[data-install-icon="home"] { --install-glyph:url("assets/icon-house.svg"); }
[data-install-icon="download"] { --install-glyph:url("assets/icon-download.svg"); }
[data-install-icon="phone"] { --install-glyph:url("assets/icon-smartphone.svg"); }
.install-primary {
  display:grid;
  place-items:center;
  min-block-size:44px;
  inline-size:100%;
  margin-block-start:14px;
  padding:9px 14px;
  border:0;
  border-radius:11px;
  background:#f2d595;
  color:#231a0b;
  font-size:.875rem;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  overflow-wrap:anywhere;
}
.install-primary:hover,.install-suggestion-action:hover { background:#ffe6b2;color:#231a0b; }
.install-primary:disabled { opacity:.6;cursor:wait; }
.install-dialog .install-status:not(:empty) { margin:12px 0 0;padding:10px 12px;border:1px solid #e8cc8a4d;border-radius:11px;background:#f2d59510;color:#f6e6bf;font-size:.8125rem;line-height:1.45;overflow-wrap:anywhere; }
.install-suggestion {
  position:fixed;
  z-index:45;
  inset-inline-end:24px;
  inset-block-end:24px;
  inline-size:min(500px,calc(100% - 48px));
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto 44px;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid #ffffff2a;
  border-radius:16px;
  background:#202023;
  box-shadow:0 12px 28px #0007;
}
.install-suggestion-copy { display:grid;gap:3px;min-inline-size:0;color:#c7c7ce;font-size:.75rem;line-height:1.35;overflow-wrap:anywhere; }
.install-suggestion-copy strong { font-size:.875rem;color:#f8f8fb; }
.install-suggestion-action {
  min-block-size:44px;
  max-inline-size:12rem;
  padding:8px 12px;
  border:0;
  border-radius:10px;
  background:#f2d595;
  color:#231a0b;
  font-size:.8125rem;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}
@media (max-width:760px) {
  .product-dialog.install-dialog {
    --install-gutter:16px;
    inset:auto 0 0;
    margin:0;
    inline-size:100%;
    max-inline-size:none;
    max-block-size:calc(100dvh - env(safe-area-inset-top) - 8px);
    border-radius:22px 22px 0 0;
  }
  .install-dialog .dialog-heading {
    gap:9px;
    padding:15px max(var(--install-gutter),env(safe-area-inset-right)) 13px max(var(--install-gutter),env(safe-area-inset-left));
  }
  .install-dialog-content {
    padding:14px max(var(--install-gutter),env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(var(--install-gutter),env(safe-area-inset-left));
  }
  .install-suggestion {
    inset-inline:16px;
    inset-block-end:calc(var(--native-bottom) + 80px);
    inline-size:auto;
  }
  body.watching .install-suggestion {
    inset-block-start:calc(66px + env(safe-area-inset-top));
    inset-block-end:auto;
  }
}
@media (max-width:480px) {
  .install-preset-options { grid-template-columns:repeat(auto-fit,minmax(min(100%,max(8rem,calc(50% - 4px))),1fr)); }
  .install-preset {
    grid-template-columns:34px minmax(0,1fr);
    grid-template-rows:auto;
    justify-items:start;
    align-items:center;
    gap:8px;
    min-block-size:52px;
    padding:7px 9px;
    text-align:start;
  }
  .install-preset img { inline-size:34px;block-size:34px; }
  .install-suggestion {
    grid-template-columns:44px minmax(0,1fr) 44px;
    grid-template-areas:"icon copy close" "action action action";
  }
  .install-suggestion-icon { grid-area:icon; }
  .install-suggestion-copy { grid-area:copy; }
  .install-suggestion-close { grid-area:close; }
  .install-suggestion-action { grid-area:action;max-inline-size:none; }
}
@media (max-height:440px) and (orientation:landscape) {
  .install-dialog .dialog-heading { padding-block:10px; }
  .install-dialog-content { padding-block-start:12px; }
}

/* Creator upload and review status. */
#upload-dialog .upload-hero { display:flex;flex-direction:column;align-items:center;padding:24px 20px 20px;margin-top:18px;border:1px solid #6f5a39;border-radius:24px;background:linear-gradient(135deg,#30271c,#171514 60%,#111114);text-align:center; }
#upload-dialog .upload-hero-icon { display:grid;place-items:center;width:58px;height:58px;border-radius:19px;background:linear-gradient(135deg,#ffedba,#e9bb60);color:#241b0c;box-shadow:0 4px 16px #b8873440; }
#upload-dialog .upload-hero-icon svg { width:29px;height:29px; }
#upload-dialog .upload-hero h3 { margin:15px 0 0;font-size:23px;font-weight:700; }
#upload-dialog .upload-hero .upload-spec { margin:7px 0 0; }
#upload-dialog .upload-hero #web-upload-choose { width:100%;margin-top:18px; }
#upload-dialog #web-upload-play:disabled, #upload-dialog .secondary-video-preview[hidden] { display:none; }
#upload-dialog #web-upload-play, #upload-dialog #web-upload-discard { color:#e2dfd9;background:#201f1d;border:1px solid #4c463a; }
#upload-dialog .secondary-title-input { padding:12px;border:1px solid #4c463a;border-radius:12px;background:#171615; }
#upload-dialog #web-upload-status { min-height:1.4em; }
#web-upload-progress { display:block;width:100%;margin-top:14px;accent-color:#e9bb60; }
#upload-dialog>#web-upload-login { flex:none;width:100%;height:52px;min-height:52px;margin:0; }
#web-upload-submissions { margin-top:20px;padding-top:14px;border-top:1px solid #514734; }
.upload-submissions-header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.upload-submissions-header h4 { margin:0;font-size:15px; }
#web-upload-refresh { color:var(--gold,#f2ce82);background:none;border:0;font:inherit;padding:8px 0; }
#web-upload-history { list-style:none;margin:8px 0 0;padding:0; }
#web-upload-history li { display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 0;border-top:1px solid #ffffff17; }
#web-upload-history li>span:first-child { min-width:0;overflow-wrap:anywhere; }
#web-upload-history li>span:last-child { color:#e9c786;font-size:12px;text-align:end; }
.bottom-nav .upload-symbol { border:1px solid #ffe8b1;border-radius:13px;background:linear-gradient(135deg,#ffedba,#e9bb60);box-shadow:0 3px 10px #b8873440; }
@media (prefers-reduced-motion: no-preference) { #upload-dialog #web-upload-choose:active { transform:scale(.98); } }

/* Reserve the real feed geometry while catalog and episode data arrive. */
.home-view #discover-view .feed-placeholder-hero {
  background:linear-gradient(145deg,#202124,#141416 65%,#090909);
}
.feed-placeholder-hero .hero-copy,
#catalog .feed-placeholder-card .poster-caption {
  display:grid;
  gap:8px;
}
.feed-placeholder-hero .hero-copy > span,
.feed-placeholder-card .poster-caption > span,
.feed-placeholder-rail > span,
.feed-placeholder-footer > span,
.feed-placeholder-episodes span,
.feed-placeholder-episodes i {
  display:block;
  min-width:0;
  border-radius:8px;
  background:#2b2c30;
}
.feed-placeholder-hero .hero-copy > span:nth-child(1) { width:76%;height:clamp(20px,3vw,40px); }
.feed-placeholder-hero .hero-copy > span:nth-child(2) { width:52%;height:14px; }
.feed-placeholder-hero .hero-copy > span:nth-child(3) { width:104px;height:42px;margin-top:9px;border-radius:999px; }
.feed-placeholder-card .poster-image { background:#202124; }
.feed-placeholder-card .poster-image::after { display:none; }
#catalog .feed-placeholder-card .poster-caption { padding:10px; }
.feed-placeholder-card .poster-caption > span { width:88%;height:10px; }
.feed-placeholder-card .poster-caption > span:nth-child(2) { width:70%; }
.feed-placeholder-card .poster-caption > span:nth-child(3) { width:38%;height:8px; }
.feed-placeholder-filter { width:80px;height:36px;border-radius:999px;background:#202124; }
.feed-placeholder-filter + .feed-placeholder-filter { width:62px; }
.feed-loading-status { margin:0 0 12px;color:#bcbcc3;font-size:13px; }
#detail-loading { position:relative;pointer-events:none; }
#detail-loading .feed-loading-status { position:absolute;inset-inline:16px;inset-block-start:18px;text-align:center; }
#detail-loading .feed-placeholder-media { background:linear-gradient(155deg,#1b1c20,#101012); }
.feed-placeholder-rail {
  position:absolute;inset-inline-end:14px;inset-block-end:25%;
  display:grid;gap:14px;
}
.feed-placeholder-rail > span { width:30px;height:30px;border-radius:50%; }
.feed-placeholder-footer {
  position:absolute;inset-inline:18px;inset-block-end:16px;
  display:grid;gap:10px;
}
.feed-placeholder-footer > span:nth-child(1) { width:45%;height:14px; }
.feed-placeholder-footer > span:nth-child(2) { width:76%;height:30px; }
.feed-placeholder-footer > span:nth-child(3) { height:3px; }
.feed-placeholder-episodes { display:grid;gap:14px;padding-block:16px; }
.feed-placeholder-episodes > span { width:68%;height:20px; }
.feed-placeholder-episodes > span:nth-child(2) { width:42%;height:12px; }
.feed-placeholder-episodes > div { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-block-start:12px; }
.feed-placeholder-episodes i { height:44px; }
@media (max-width:760px) {
  .home-view #discover-view .feed-placeholder-hero { margin-block-end:29px; }
  .feed-placeholder-hero .hero-copy { justify-items:center;padding-block-end:25px; }
  .feed-placeholder-hero .hero-copy > span:nth-child(3) { width:150px;height:49px; }
  .feed-placeholder-episodes { display:none; }
  #detail-view.feed-swipe-opening #detail-loading .feed-placeholder-media { background:transparent; }
}
@media (prefers-reduced-motion:no-preference) {
  .feed-placeholder-hero .hero-copy,
  #catalog .feed-placeholder-card,
  .feed-placeholder-rail,
  .feed-placeholder-footer,
  .feed-placeholder-episodes { animation:feed-placeholder-pulse 1.65s ease-in-out infinite alternate; }
}
@keyframes feed-placeholder-pulse { from { opacity:.65; } to { opacity:1; } }


@media (min-width: 761px) {
/* Desktop storefront. Keep navigation, featured artwork and shelves on one frame. */
@media (min-width: 761px) {
  :root {
    --desktop-frame-inset: max(clamp(22px, 3.1vw, 56px), calc(50% - 800px));
    --desktop-header-height: 64px;
    scroll-padding-block-start: calc(var(--desktop-header-height) + 52px);
  }

  #app-shell { --desktop-home-header: var(--desktop-header-height); }
  .site-header {
    padding-inline: var(--desktop-frame-inset);
    gap: clamp(5px, 1vw, 16px);
    background: #0b0b0cf7;
  }
  .site-header nav {
    min-width: 0;
    gap: clamp(2px, 1.1vw, 17px);
  }
  .site-header .nav-link {
    flex: none;
    padding-inline: clamp(5px, .55vw, 10px);
    font-size: 14px;
  }
  .site-header .nav-link.active::after { bottom: 5px; }
  .site-header .search,
  .home-view .site-header .search {
    width: clamp(160px, 25vw, 400px);
    min-width: 0;
    max-width: 400px;
    min-height: 42px;
    height: 42px;
    padding-inline: 12px 3px;
    gap: 6px;
    border-radius: 11px;
  }
  .site-header .search button,
  .home-view .site-header .search button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .site-header .header-login-entry {
    padding-inline: 11px;
    border-radius: 10px;
    background: #ffffff09;
  }
  .site-header .header-login-entry:hover { background: #ffffff18; }
  .site-header #open-settings { display: grid; opacity: 1; }
  .site-header .desktop-glyph { width: 20px; height: 20px; }
  .site-header .header-install > .install-promo-art { --install-art-size: 30px; }

  .home-view main { max-width: none; }
  .home-view #discover-view { padding-inline: var(--desktop-frame-inset); }
  .home-view .site-footer {
    max-width: 1600px;
    margin-inline: var(--desktop-frame-inset);
  }
  .home-view #discover-view .discovery-nav {
    min-height: 46px;
    margin: 0 0 12px;
    padding-inline: 0;
    gap: clamp(6px, 1.3vw, 22px);
    background: #0b0b0cf7;
  }
  .home-view #discover-view .discovery-nav button {
    min-height: 45px;
    padding-inline: clamp(8px, 1vw, 14px);
  }
  .home-view #discover-view .discovery-nav button.active::after {
    inset-inline: 12px;
    width: auto;
  }

  .home-view #discover-view .featured-shell { margin-bottom: 14px; }
  .home-view #discover-view .featured-shell:has(#featured[hidden]) { margin-bottom: 0; }
  .home-view #discover-view .featured-card {
    height: clamp(260px, min(29vw, 39svh), 410px);
  }
  .home-view #discover-view .hero-poster {
    width: 71%;
    object-position: 50% 24%;
  }
  .home-view #discover-view .hero-copy {
    inset-inline-start: clamp(60px, 4vw, 76px);
    top: 48%;
    width: 52%;
    max-width: 625px;
    padding-block: 0;
  }
  .home-view #discover-view .hero-title {
    font-size: clamp(27px, 3.15vw, 52px);
    -webkit-line-clamp: 2;
  }
  .home-view #discover-view .hero-eyebrow { margin-bottom: 7px; }
  .home-view #discover-view .hero-meta { margin-top: 8px; }
  .home-view #discover-view .hero-synopsis {
    max-width: 47ch;
    margin-top: 6px;
    font-size: 13px;
  }
  .home-view #discover-view .hero-cta { min-width: 102px; margin-top: 12px; }
  .home-view #discover-view .featured-controls { inset-inline: 10px; bottom: 7px; }
  .home-view #discover-view .featured-controls > button { background: #101010bb; }
  .home-view #discover-view .featured-dots { background: #101010ad; }

  .home-view #discover-view .categories { gap: 7px; margin-bottom: 12px; }
  .home-view #discover-view .categories button {
    min-height: 34px;
    border-radius: 8px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .home-view #discover-view .arrivals-heading {
    align-items: baseline;
    margin-bottom: 10px;
  }
  .home-view #discover-view .arrivals-heading h2 {
    font-size: clamp(19px, 1.65vw, 25px);
    line-height: 1.24;
  }
  .home-view #discover-view .arrivals-heading > span { font-size: 12px; }
  .home-view #discover-view #catalog {
    grid-template-columns: repeat(auto-fill, minmax(clamp(156px, 13.2vw, 184px), 1fr));
    gap: 16px clamp(10px, 1vw, 16px);
  }
  .home-view #catalog .poster-card { border-radius: 10px; }
  .home-view #catalog .poster-caption { padding: 9px 11px 11px; }
  .home-view #catalog .poster-meta > span { font-size: 11px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  :root { --desktop-header-height: 90px; }

  .site-header,
  .home-view .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    grid-template-rows: 40px 44px;
    row-gap: 1px;
    align-content: center;
  }
  .site-header nav {
    grid-column: 1 / -1;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header .nav-link { min-height: 40px; }
  .site-header .nav-link:focus-visible { outline-offset: -3px; }
  .site-header .search,
  .home-view .site-header .search {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
}

@media (min-width: 761px) and (max-height: 690px) {
  .home-view #discover-view .hero-copy { top: 46%; }
  .home-view #discover-view .hero-synopsis { -webkit-line-clamp: 1; }
}

/* Desktop theater. Keep the portrait video intact and the PC controls in view. */
@media (min-width: 761px) {
  body.watching #detail-view {
    --theater-gap: clamp(16px, 2vw, 28px);
    --theater-media-height: clamp(320px, calc(100vh - 226px), 776px);
    --theater-media-height: clamp(320px, calc(100dvh - 226px), 776px);
    max-width: 1224px;
    margin-inline: auto;
    padding: 8px clamp(20px, 3.15vw, 36px) 40px;
  }

  #detail-view > .back-button {
    margin-block: 0 8px;
    margin-inline: -6px 0;
    color: #c5c0b9;
    font-size: 13px;
  }

  #detail-view .detail-layout {
    grid-template-columns: minmax(0, 1fr) clamp(252px, 32%, 354px);
    gap: var(--theater-gap);
  }

  #detail-content .player-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    top: calc(var(--desktop-home-header, 72px) + 12px);
  }

  #detail-content .player-wrap,
  #detail-content .playback-note,
  #detail-content .keyboard-help {
    grid-column: 1 / -1;
  }

  #detail-view .player-wrap:not(:fullscreen) {
    height: var(--theater-media-height);
    max-height: none;
    min-height: 0;
    border-radius: 12px;
  }

  #detail-content .player-info-overlay {
    padding: 0 12px 10px;
  }

  #detail-content .player-title-row {
    display: none;
  }

  #detail-content .player-collection-button {
    justify-content: center;
    border: 1px solid #ffffff1c;
    background: #161617;
    color: #e1ded8;
    text-align: start;
  }

  #detail-content .player-collection-button:hover {
    background: #242323;
  }

  #detail-content :is(.player-toolbar, .playback-controls) {
    margin-block: 0;
  }

  #detail-content .player-toolbar {
    min-width: 0;
    gap: 8px;
  }

  #detail-content .player-toolbar > span {
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  #detail-content :is(.player-toolbar .button, .fullscreen-button) {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 12px;
  }

  #detail-content .playback-note {
    margin: 0;
    min-height: 0;
    font-size: 12px;
  }

  #detail-content .playback-note:empty {
    display: none;
  }

  #detail-content .keyboard-help {
    margin-block: 0;
    text-align: start;
  }

  #detail-view :is(.story-column, .feed-placeholder-episodes) {
    padding: 16px;
    border: 1px solid #ffffff16;
    border-radius: 12px;
    background: #141415;
  }

  #detail-view .story-column {
    top: calc(var(--desktop-home-header, 72px) + 12px);
  }

  #detail-view .episode-sheet-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #detail-view #episode-sheet-cover:not([hidden]) {
    display: block;
    flex: none;
    width: 60px;
    height: 84px;
    border-radius: 7px;
    object-fit: cover;
  }

  #detail-view .story-column h1 {
    font-size: clamp(19px, 1.8vw, 27px);
    line-height: 1.24;
    letter-spacing: -.02em;
    text-wrap: initial;
  }

  #detail-view .detail-category {
    margin-block: 0 3px;
    font-size: 11px;
    letter-spacing: .03em;
  }

  #detail-view .detail-meta {
    margin-block: 5px 0;
    line-height: 1.4;
  }

  #detail-view .favorite-button {
    margin-block: 12px 0;
    min-width: 0;
  }

  #detail-view .episode-heading {
    margin-block: 14px 8px;
    padding-block-start: 12px;
    scroll-margin-block-start: 0;
  }

  #detail-view .episode-heading h2 {
    font-size: 17px;
    font-weight: 650;
  }

  #detail-view .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    align-items: start;
    gap: 8px;
    max-height: min(36vh, 344px);
    padding: 2px;
    overscroll-behavior-y: contain;
    scrollbar-gutter: auto;
  }

  #detail-view .episode-tile {
    min-height: 44px;
  }

  #detail-view .episode-hint {
    margin-block-start: 10px;
    color: #c1bdb7;
    line-height: 1.5;
  }
}
}
