.app-mobile-nav{display:none}.footer-app-link{font-size:11px;color:var(--studio-accent);width:auto}.header{padding-top:max(0px,env(safe-area-inset-top))}.cinema-header{padding-top:max(24px,env(safe-area-inset-top))}.cinema-bottom{padding-bottom:max(18px,env(safe-area-inset-bottom))}
@media(max-width:760px){.app-mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:70;align-items:center;justify-content:space-around;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:color-mix(in srgb,var(--studio-surface) 93%,transparent);border-top:1px solid var(--studio-line);box-shadow:0 -4px 24px #00000012;backdrop-filter:blur(18px)}.app-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:52px;padding:4px 8px;border:0;border-radius:10px;background:transparent;color:var(--studio-muted);font-size:9px;line-height:1.2;cursor:pointer}.app-mobile-nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}.app-mobile-nav button.active{color:var(--studio-accent);background:var(--studio-soft)}.app-mobile-nav button:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}body>footer{padding-bottom:calc(90px + env(safe-area-inset-bottom))}#account-menu{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom));top:auto;right:12px;max-width:calc(100vw - 24px);max-height:calc(100svh - 150px);overflow:auto}.transfer-footer{bottom:calc(64px + env(safe-area-inset-bottom))!important}.has-transfer-footer main{padding-bottom:145px}body:has(#player:not([hidden])) .app-mobile-nav{display:none}.app-mobile-nav~*{scroll-margin-bottom:90px}}
@media(display-mode:standalone){html{overscroll-behavior-y:none}body{min-height:100svh}.app-install-header,.header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.footer-app-link{display:none}}

.account-menu .menu-app-link{display:flex;align-items:center;justify-content:space-between;padding:12px 19px;color:var(--studio-muted);font-size:12px;text-decoration:none}.account-menu .menu-app-link:hover{color:var(--studio-accent);background:var(--studio-soft)}

@media(max-width:760px){body>#account-menu{z-index:85}}
/* Solid mobile navigation avoids blurred glass layers on iPhone displays. */
@media(max-width:760px){
  html[data-theme] :is(.header,.header.scrolled){background:var(--studio-surface);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 3px 12px #0000000d}
  html[data-theme] #account-menu,html[data-theme] .app-mobile-nav{background:var(--studio-surface);-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Title information uses its own surface and flow, independent of the artwork. */
html[data-theme] dialog.title-detail{
  width:min(820px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);
  margin:auto;inset:0;padding:0;overflow:hidden;border-radius:22px;
  background:var(--studio-surface);color:var(--studio-text);border:1px solid var(--studio-line)
}
.title-detail #modal-content{max-height:calc(100dvh - 42px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.title-detail .detail-image{height:clamp(170px,29dvh,270px);background:var(--studio-raised)}
.title-detail .detail-image img{display:block;width:100%;height:100%;object-fit:cover;filter:none}
.title-detail .detail-image:after{display:none}
.title-detail .detail-body{padding:26px 30px 30px;min-width:0}
.title-detail .detail-hero{position:static;display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 20px}
.title-detail .detail-hero h2{font:500 clamp(23px,2.5vw,30px)/1.2 Arial,sans-serif;letter-spacing:-.8px;margin:0;color:var(--studio-text);overflow-wrap:anywhere;min-width:0}
.title-detail .detail-actions{display:flex;gap:8px;flex-shrink:0;align-items:center}
.title-detail .detail-actions .btn{min-height:42px;padding:11px 17px;gap:8px;font-size:12px;white-space:nowrap}
.title-detail .detail-actions .circle-action{width:42px;height:42px;flex-shrink:0;background:var(--studio-raised);color:var(--studio-text);border:1px solid var(--studio-line);font-size:21px}
.title-detail .detail-actions :is(.saved,.liked){background:var(--studio-soft);color:var(--studio-accent);border-color:var(--studio-accent)}
html[data-theme] .title-detail .modal-close{top:14px;right:14px;width:36px;height:36px;background:#191723e6;color:#fff;border:1px solid #ffffff50;box-shadow:0 2px 10px #0003}
.title-detail .detail-body .hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 22px;font-size:11px;line-height:1.6;color:var(--studio-muted)}
.title-detail .hero-meta :is(.age,.quality){border:1px solid var(--studio-line);border-radius:5px;padding:2px 6px;color:var(--studio-text)}
.title-detail .hero-meta .new-label{color:var(--studio-accent);letter-spacing:1px;font-size:10px}
.title-detail .detail-description{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:24px;align-items:start;font-size:13px;line-height:1.8}
html[data-theme] .title-detail .detail-description p{margin:0;color:var(--studio-muted);overflow-wrap:anywhere;white-space:pre-line}
.title-detail .detail-description aside{padding:14px 16px;border:1px solid var(--studio-line);background:var(--studio-raised);border-radius:12px;font-size:11px;line-height:2;color:var(--studio-muted);overflow-wrap:anywhere}
.title-detail .detail-description aside span{color:var(--studio-text)}
.title-detail .film-credits{margin-top:26px;padding-top:22px;border-top:1px solid var(--studio-line)}
.title-detail .studio-card-heading{display:flex;gap:12px;flex-wrap:wrap;align-items:baseline;margin-bottom:16px}
.title-detail .studio-card-heading h3{font-size:16px;margin:0;color:var(--studio-text)}
.title-detail .studio-card-heading span{font-size:11px;color:var(--studio-muted)}
.title-detail .cast-strip{display:flex;gap:14px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.title-detail .cast-strip article{flex:0 0 86px;min-width:0}
.title-detail .cast-strip :is(img,.cast-placeholder){display:block;width:86px;height:108px;object-fit:cover;border-radius:10px;background:var(--studio-raised)}
.title-detail .cast-strip strong{display:block;font-size:11px;line-height:1.5;color:var(--studio-text);margin:8px 0 3px;overflow-wrap:anywhere}
.title-detail .cast-strip small{display:block;font-size:10px;line-height:1.5;color:var(--studio-muted)}
.title-detail .demo-note{margin-top:22px;padding:14px;background:var(--studio-raised);border-color:var(--studio-line);color:var(--studio-muted);line-height:1.7}
.title-detail .episode-heading{margin:26px 0 12px;gap:12px;color:var(--studio-text)}
.title-detail .episode-heading h3{font-size:16px;margin:0}.title-detail .episode-heading>span{font-size:11px;color:var(--studio-muted)}
.title-detail .episode{border-color:var(--studio-line);padding:16px 0;gap:14px;color:var(--studio-text)}
.title-detail .episode>div{min-width:0;flex:1}.title-detail .episode strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.title-detail .episode small{color:var(--studio-muted);line-height:1.7}
.title-detail .episode-description{color:var(--studio-muted);font-size:11px;line-height:1.6}
.title-detail :is(button,a):focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px}
@media(max-width:600px){
  html[data-theme] dialog.title-detail{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);border-radius:18px}
  .title-detail #modal-content{max-height:calc(100dvh - 34px)}
  .title-detail .detail-image{height:180px}.title-detail .detail-body{padding:20px}
  .title-detail .detail-hero{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:18px}
  .title-detail .detail-hero h2{font-size:24px;line-height:1.25;letter-spacing:-.6px}
  .title-detail .detail-description{grid-template-columns:minmax(0,1fr);gap:18px}
  .title-detail .detail-description aside{font-size:12px}.title-detail .hero-meta{gap:9px 12px}
  .title-detail .episode{gap:10px}.title-detail .episode-thumb{width:72px;flex-shrink:0}
}
