/* ScreenIt — cinema journal */
:root {
  --muted: #a19ab0;
  --muted2: #bbb5c8;
  --rule: rgba(225,213,243,.15);
  --ink: #100e18;
  --catalog-accent: #d9c8ff;
  --workspace-surface: #13111d;
  --display: Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", monospace;
}
body {background:var(--bg);}
body::before, body::after {content:none;}
.sidebar {background:var(--workspace-surface);box-shadow:none;backdrop-filter:none;}
.sb-logo {min-height:66px;padding-inline:1.35rem;}
.logo-copy small {color:var(--muted);margin-top:3px;}
.sb-sec {padding:1rem 1.45rem .45rem;letter-spacing:.14em;}
.sbi {padding:.62rem .88rem;border-radius:5px;font-size:.85rem;}
.sbi-ic {margin-left:0;}
.sbi.on {background:var(--catalog-accent);color:#241638;box-shadow:none;border-color:transparent;font-weight:700;}
.sbi.on::before {content:none;}
.sbi.on .sbi-ic,.sbi.on .sbi-cnt {color:#3d2a59;}
.sbi-cnt {background:transparent;font-variant-numeric:tabular-nums;}
.sb-foot {background:transparent;border:0;border-top:1px solid var(--rule);border-radius:0;padding:.9rem .45rem;gap:.4rem;}
.sb-foot > div {display:flex;justify-content:space-between;}
.sb-new input,.sb-new button {min-width:0;border-radius:5px;}
header {background:rgba(8,8,16,.95);border-color:var(--rule);}
.hdr {height:58px;}
.hdr-left {width:100%;justify-content:space-between;}
.hdr-title {font-size:1.04rem;letter-spacing:-.02em;}
.hdr-title[tabindex="-1"]:focus {outline:none;}
.mobile-brand {display:none;}
.main > main,.hdr {width:100%;max-width:1600px;margin-inline:auto;}
.main > main {padding:clamp(1rem,2.6vw,2.8rem);}
/* Library overview */
.hero,body.standalone-mode .hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(290px,.85fr);
  align-items:stretch;
  gap:1.1rem 1.7rem;
  padding:0;
  margin:0 0 1.7rem;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
.hero::after {content:none;}
.hero-editorial {align-self:center;min-width:0;padding:1.4rem 0;}
.hero-kicker {
  padding:0;
  margin:0 0 .48rem;
  border:0;
  background:none;
  color:var(--accent);
  font:600 .72rem Inter,sans-serif;
  letter-spacing:.02em;
  text-transform:none;
}
.hero-title,.section-head h2 {
  font-family:"Space Grotesk",Inter,sans-serif;
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
}
.hero-title {margin:0 0 .62rem;font-size:clamp(2rem,4.35vw,4.4rem);}
.hero-copy {display:block;overflow:visible;color:var(--muted2);font-size:.95rem;line-height:1.5;max-width:55ch;}
.hero-actions {margin-top:1.2rem;gap:.45rem;}
.hero-btn {border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:.55em;min-height:44px;}
.hero-btn.primary,.sbtn,.bsave,.login-form .lbtn,.mm-new button {background:var(--accent);color:var(--bg);box-shadow:none;}
.hero-btn.primary:hover,.login-form .lbtn:hover,.sbtn:hover {background:#c2adff;}
.hero-btn.secondary {border-color:var(--rule);background:var(--workspace-surface);}
.hero-panel {padding:0;background:transparent;border:0;border-radius:0;}
.hero-panel.hero-metrics {
  align-self:end;
  padding:1rem 0 1.4rem;
  border-top:1px solid var(--rule);
}
.hero-metrics .metric-row {grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;}
.hero-metrics .metric {padding:0;background:none;border:0;border-radius:0;min-width:0;}
.hero-metrics .metric + .metric {border-left:1px solid var(--rule);padding-inline-start:.85rem;}
.hero-metrics .metric strong {
  color:var(--catalog-accent);
  font-size:clamp(1.45rem,2.6vw,2.8rem);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.hero-metrics .metric span {
  margin-top:.22rem;
  color:var(--muted2);
  font:400 .78rem/1.35 Inter,sans-serif;
  letter-spacing:0;
  text-transform:none;
}
.hero-notes {grid-column:1/-1;display:block;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);}
.hero-notes summary {display:none;}
.hero-note-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
.hero-note-list .hero-note {padding:.65rem .7rem .65rem 0;}
.hero-note-list .hero-note + .hero-note {border-left:1px solid var(--rule);padding-left:.7rem;}
.hero-note {justify-content:flex-start;align-items:baseline;gap:.45rem;border:0;}
.hero-note b {font-size:.79rem;font-weight:500;}
.hero-note label {font-size:.67rem;font-family:Inter,sans-serif;white-space:nowrap;letter-spacing:0;text-transform:none;}
.sbtn,.bsave,.bdel,.lbtn {border-radius:5px;}
.catalog-head h2 {font:700 clamp(1.35rem,2.1vw,2rem)/1.12 "Space Grotesk",Inter,sans-serif;letter-spacing:-.04em;}
.library-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem 1rem;margin:.75rem 0 1rem;}
.quick-filters {gap:.25rem .75rem;margin:0;padding:0;}
.qf,.rtab {border:1px solid var(--rule);border-radius:8px;background:var(--workspace-surface);color:var(--muted2);padding:.55rem .7rem;font-size:.8rem;}
.qf.on,.rtab.on {border-color:var(--catalog-accent);color:#241638;background:var(--catalog-accent);font-weight:700;}
.qf:not(.on):hover,.rtab:not(.on):hover {border-color:var(--accent);color:var(--text);}
.hdr-right {align-items:center;min-width:0;gap:0;border:1px solid var(--rule);border-radius:9px;background:var(--workspace-surface);}
.tool-field {display:flex;align-items:center;position:relative;min-width:0;}
.tool-field > .ui-icon {position:absolute;left:.7rem;color:var(--accent);pointer-events:none;font-size:1rem;}
.tool-field.sort-field > .ui-icon:last-child {left:auto;right:.55rem;font-size:.8rem;color:var(--muted2);}
.tool-field input,.tool-field select {appearance:none;min-height:42px;background:transparent;border:0;border-radius:4px;font-size:.8rem;width:100%;max-width:none;padding:.55rem .7rem .55rem 2.15rem;}
.tool-field select {padding-right:1.8rem;cursor:pointer;}
.tool-field:focus-within {background:var(--surface2);}
.search-field {border-left:1px solid var(--rule);width:clamp(10rem,14vw,14rem);}
.tool-field input::placeholder {color:var(--muted);}
.mgrid {grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:clamp(.7rem,1.3vw,1.3rem);}
.mc,.rc,.ri {background:var(--surface);border-color:var(--rule);box-shadow:none;border-radius:8px;}
.mc {backdrop-filter:none;animation:none;background:none;}
.mc .mc-img {border-radius:7px;}
.mc-img {border-bottom:1px solid var(--rule);}
.mc-meta {color:var(--muted2);}
.mc.status-watched,.mc.status-watching,.mc.status-wishlist {box-shadow:none;border-color:transparent;}
.mc:hover,.rc:hover,.ri:hover {border-color:var(--accent);box-shadow:none;}
.mc-info {padding:.64rem .26rem .7rem;}
.mc-title,.rc-title {font-size:.94rem;line-height:1.3;}
.mc-badge,.ri-num2,.gtag {border-radius:4px;}
.search-feedback,.mm-help {color:var(--muted2);font-size:.85rem;line-height:1.5;}
.search-feedback {margin-bottom:.7rem;}
.search-feedback:empty {margin:0;}
.mm-help {padding:0 1.4rem .9rem;}
#qa {scroll-margin-block-start:72px;}
.qa-ctrls select,#suggest-genre-sel {appearance:auto;}
.empty,.rempty {border-radius:4px;border:1px dashed var(--rule);background:var(--surface);}
.empty h3,.rempty h3 {font-family:var(--display);font-size:1.45rem;color:var(--text);opacity:1;}
.empty .ei,.rempty .ei {opacity:1;color:var(--accent);}
.section-card {padding:clamp(1.2rem,3vw,2.8rem);background:var(--workspace-surface);border:1px solid var(--rule);border-radius:14px;box-shadow:none;margin-bottom:1rem;}
.section-head {margin:0;}
.section-head h2 {font-size:clamp(2.1rem,4vw,3.7rem);margin-bottom:.6rem;}
.section-head p {max-width:65ch;}
.sbox,.qa,.cfm {background:var(--surface);border-color:var(--rule);border-radius:8px;box-shadow:none;}
.sbox {padding:clamp(1rem,2.5vw,2rem);}
.sbox-hd {display:flex;align-items:center;gap:.5rem;color:var(--muted2);}
.sbox input,.sbox select,.mm-new input {border-radius:5px;}
.rtabs {gap:.45rem;}
.ri.g1 {border-color:#9676c8;background:#231935;}
.ri-num {font-size:1rem;font-variant-numeric:tabular-nums;}
.ri-score .ri-num2 {color:var(--accent);background:transparent;}
.cfm strong {font-family:var(--display);font-size:1.55rem;font-weight:400;}
.toast {background:var(--surface2);border-radius:5px;border-left:2px solid var(--accent);}
/* Sign-in */
#login-screen {
  display:grid;
  place-items:center;
  min-height:100dvh;
  padding:clamp(1rem,4vw,4rem);
  position:relative;
  isolation:isolate;
  overflow:clip;
  background:#09060e url("assets/login-seats.webp") center 65% / cover;
}
#login-screen::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,#100a197e,#100a1930 50%,#130b1b7a),
    linear-gradient(0deg,#0b0712c2,transparent 48%);
  pointer-events:none;
}
.login-cinema {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 65%;
  opacity:0;
  pointer-events:none;
}
.login-layout {
  position:relative;
  z-index:2;
  --display:"Space Grotesk",Inter,sans-serif;
  width:min(100%,430px);
  transition:opacity .14s ease,transform .14s ease;
}
#login-screen.login-playing .login-cinema {opacity:1;}
#login-screen.login-playing .login-layout {opacity:0;transform:translateY(-8px);pointer-events:none;}
#session-app.from-login {animation:login-reveal .15s ease-out both;}
@keyframes login-reveal {from{opacity:0;} to{opacity:1;}}
@media(prefers-reduced-motion:reduce) {
  #session-app.from-login {animation:none;}
}
.login-box {
  position:relative;
  isolation:isolate;
  width:100%;
  max-width:none;
  padding:clamp(.9rem,3.5vw,2.3rem);
  gap:.85rem;
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
}
.login-box::before {
  content:"";
  position:absolute;
  inset:-12% -8%;
  z-index:-1;
  background:radial-gradient(ellipse,rgba(13,8,22,.82) 25%,rgba(13,8,22,.52) 52%,transparent 74%);
  -webkit-backdrop-filter:blur(12px) saturate(115%);
  backdrop-filter:blur(12px) saturate(115%);
  -webkit-mask-image:radial-gradient(ellipse,#000 42%,transparent 73%);
  mask-image:radial-gradient(ellipse,#000 42%,transparent 73%);
  pointer-events:none;
}
.cover-brand {display:flex;align-items:center;justify-content:center;gap:.6rem;font:700 1.18rem var(--display);}
.cover-brand img {border-radius:9px;}
.login-caption {color:#e1d8eb;font-size:.84rem;text-align:center;text-shadow:0 1px 8px #0a0612;}
.login-heading {margin:.05rem 0 .6rem;text-align:center;font:700 clamp(1.9rem,4vw,2.65rem)/1 var(--display);letter-spacing:-.045em;text-shadow:0 2px 18px #09050e;}
.login-form label,.login-box .or-divider {color:#ede5f5;text-shadow:0 1px 8px #0a0612;}
.login-box .linp {
  border-radius:13px;
  min-height:48px;
  border:1px solid rgba(240,223,255,.28);
  background:linear-gradient(180deg,rgba(226,202,250,.15),rgba(30,20,43,.56));
  box-shadow:inset 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.login-box .linp:focus {
  border-color:var(--accent);
  outline:2px solid var(--accent);
  outline-offset:2px;
  background-color:#312143;
}
.login-box .lbtn {min-height:48px;border-radius:999px;}
.login-box .google-btn {background:#f4eff9;color:#251936;}
.login-form .lbtn {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-inline:1.1rem;
  background:linear-gradient(180deg,#dac7ff,var(--accent));
  box-shadow:inset 0 1px rgba(255,255,255,.5);
}
.login-form .lbtn:hover {background:#d7c4ff;}
@media(prefers-reduced-transparency:reduce) {
  .login-box::before,.login-box .linp {-webkit-backdrop-filter:none;backdrop-filter:none;}
  .login-box .linp {background:#241a33;}
}
.or-divider {display:flex;align-items:center;gap:.8rem;}
.or-divider::after,.or-divider::before {position:static;flex:1;}
@media(max-width:768px) {
  .main > main {padding:1rem .9rem calc(88px + env(safe-area-inset-bottom));}
  .hdr {height:54px;padding:0;}
  .hdr-left {justify-content:flex-start;gap:.65rem;}
  .sync {margin-left:auto;}
  .mobile-brand {display:block;border-radius:6px;}
  .hero,body.standalone-mode .hero {grid-template-columns:1fr;gap:.65rem;margin-bottom:1.1rem;}
  .hero-editorial {padding:.3rem 0;}
  .hero-title {font-size:clamp(2rem,8vw,3.2rem);margin:0 0 .3rem;}
  .hero-copy,body.standalone-mode .hero-copy {display:block;-webkit-line-clamp:unset;overflow:visible;font-size:.86rem;}
  .hero-actions {margin-top:.75rem;}
  .hero-btn {flex:0 1 auto;font-size:.8rem;}
  .hero-panel.hero-metrics {padding:.65rem 0 .15rem;}
  .hero-metrics .metric strong {font-size:1.55rem;}
  .hero-notes summary {
    display:list-item;
    min-height:44px;
    align-content:center;
    color:var(--muted2);
    font-size:.85rem;
    cursor:pointer;
  }
  .hero-note-list {grid-template-columns:1fr;}
  .hero-note-list .hero-note {padding:.4rem 0;justify-content:space-between;}
  .hero-note-list .hero-note + .hero-note {border-left:0;border-top:1px solid var(--rule);padding-left:0;}
  .hero-note b {text-align:right;}
  .library-tools {gap:.5rem;margin:.55rem 0 .7rem;}
  .quick-filters {width:100%;gap:.28rem;}
  .qf,.rtab {padding-inline:.55rem;}
  .qf,.rtab {min-height:44px;}
  .hdr-right {flex:1 1 100%;width:100%;}
  .sort-field {flex:1.25;}
  .search-field {flex:1;width:auto;}
  .hdr-right .tool-field select,.hdr-right .tool-field input {min-width:0;max-width:none;min-height:44px;}
  .mgrid {grid-template-columns:repeat(auto-fill,minmax(min(145px,45%),1fr));}
  .mc-info {padding:.48rem .16rem .6rem;}
  .mc-title {font-size:.87rem;line-height:1.35;}
  .mc-overview {font-size:.8rem;}
  .mc-meta {flex-wrap:wrap;}
  .more-menu {border-radius:12px 12px 0 0;background:var(--surface);}
  .bottom-nav,body.browser-mobile .bottom-nav,body.standalone-mode .bottom-nav {
    bottom:0;left:0;right:0;border:0;border-top:1px solid var(--rule);border-radius:0;
    background:#100e18;box-shadow:none;padding:3px max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
  }
  body.browser-mobile .bottom-nav {
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  /* Paint behind the floating browser controls when they cover the page. */
  html:not(.ios-browser) body.browser-mobile .bottom-nav::after {
    content:"";
    position:absolute;
    top:100%;
    inset-inline:0;
    height:env(safe-area-inset-bottom);
    height:max(env(safe-area-inset-bottom),calc(100lvh - 100svh),64px);
    background:inherit;
    pointer-events:none;
  }
  .bn-tab {position:relative;gap:4px;}
  .bn-tab.on {color:var(--accent);}
  .bn-tab.on::before {content:"";position:absolute;top:-4px;width:30px;height:2px;background:var(--accent2);}
  .bn-tab.on .bn-ic-wrap {background:transparent;box-shadow:none;}
  .bn-lbl {font-size:.72rem;}
  body.keyboard-open .bottom-nav {visibility:hidden;}
}
@media(max-width:650px) {
  #login-screen {padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));}
}
@media(max-width:380px) {
  .hero-btn {padding-inline:.55rem;font-size:.75rem;}
  .quick-filters {gap:.25rem;}
  .quick-filters .qf {padding-inline:.42rem;font-size:.74rem;}
}

/* Movie details */
.mbg {
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 2.5vw, 2rem);
  background: rgba(8, 7, 10, .78);
  backdrop-filter: blur(8px);
}
.mbg[open] { display: flex; }
.mbg .modal {
  --film-paper: var(--workspace-surface);
  --film-editor: var(--surface);
  --film-field: var(--surface2);
  --film-ink: var(--text);
  --film-muted: var(--muted2);
  --film-line: var(--rule);
  --film-accent: var(--catalog-accent);
  --film-pad: clamp(1.25rem, 2.8vw, 2.25rem);
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(100%, 1180px);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--film-line);
  border-radius: 12px;
  background: var(--film-paper);
  color: var(--film-ink);
  box-shadow: 0 28px 90px #0009;
}
.mbg :focus-visible {
  outline: 2px solid var(--film-accent);
  outline-offset: 3px;
}
.m-close {
  position: absolute;
  z-index: 2;
  inset-block-start: .9rem;
  inset-inline-end: 1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--film-line);
  border-radius: 50%;
  background: var(--film-field);
  color: var(--film-ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.m-close:hover { background: var(--film-line); }
.m-body {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #5b5076 var(--film-paper);
  scrollbar-width: thin;
}
.m-details { min-width: 0; }
.m-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, clamp(112px, 14vw, 154px)) minmax(0, 1fr);
  align-items: end;
  gap: clamp(.85rem, 2.4vw, 1.9rem);
  overflow: hidden;
  padding: var(--film-pad);
  border-bottom: 1px solid var(--film-line);
  background: #20182d;
}
.m-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #171120 2%, #221930b8 65%, #2b204087);
  content: "";
}
.m-art {
  position: absolute;
  z-index: -2;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  object-position: center 28%;
  filter: blur(18px) saturate(.8) brightness(.75);
}
.m-img {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--film-field);
  box-shadow: 0 8px 26px #0007, 0 0 0 1px #fff2;
  color: var(--film-muted);
  font-size: 1.8rem;
}
.m-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-heading { padding-bottom: .2rem; }
.m-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .65rem;
  margin-bottom: .65rem;
  color: var(--text);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.m-sub:empty { display: none; }
.m-public-score {
  padding: .15rem .42rem;
  border: 1px solid #d9c8ff55;
  border-radius: 3px;
  color: var(--film-accent);
  white-space: nowrap;
}
.m-title {
  color: var(--film-ink);
  font: 700 clamp(2.5rem, 4.4vw, 4.3rem)/1.02 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.m-director { margin-top: .75rem; color: var(--text); font-size: .85rem; overflow-wrap: anywhere; }
.m-edit-jump { display: none; }
.m-reference { padding: 1.25rem var(--film-pad) 1.65rem; }
.m-caption {
  color: var(--film-muted);
  font: 500 .71rem/1.4 var(--mono);
  letter-spacing: .065em;
  text-transform: uppercase;
}
.m-overview {
  max-width: 64ch;
  margin-top: .45rem;
  color: var(--film-ink);
  font-size: .91rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.m-overview.is-empty,.m-cast-empty,.m-lists-empty,.m-availability .prov-none {
  color: var(--film-muted);
  font-size: .82rem;
}
.m-cast-block,.m-availability {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--film-line);
}
.m-cast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1rem;
  margin-top: .55rem;
  list-style: none;
}
.m-person { font-size: .83rem; line-height: 1.4; overflow-wrap: anywhere; }
.m-cast-empty { grid-column: 1 / -1; }
.m-availability .m-caption span {
  margin-inline-start: .4rem;
  color: var(--film-ink);
  text-transform: none;
  letter-spacing: 0;
}
.m-availability .prov-box {
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: .55rem;
  min-height: 1.6rem;
}
.m-availability .prov-type { color: var(--film-muted); font: 500 .76rem/1.4 Inter, sans-serif; }
.m-availability .prov-type .ui-icon { color: var(--film-accent); margin-inline-end: .2rem; }
.m-availability .prov-logos { margin: .4rem 0 0; }
.m-availability .prov-ic {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--film-line);
  border-radius: 7px;
  opacity: 1;
}
.m-editor {
  min-width: 0;
  padding: var(--film-pad);
  border-inline-start: 1px solid var(--film-line);
  background: var(--film-editor);
}
.m-editor h3 {
  width: fit-content;
  max-width: calc(100% - 44px);
  margin-bottom: 1rem;
  color: var(--film-ink);
  font: 700 1.75rem/1.15 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.035em;
}
.m-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .75rem; }
.m-fields > * { min-width: 0; }
.m-fields :is(.mf-wide, .mf-minute-row) { grid-column: 1 / -1; }
.mf > label {
  display: block;
  margin-bottom: .4rem;
  color: var(--film-muted);
  font-size: .8rem;
  font-weight: 500;
}
.m-fields :where(select, textarea, input[type="number"]) {
  min-height: 44px;
  border: 1px solid var(--film-line);
  border-radius: 5px;
  background: var(--film-field);
  color: var(--film-ink);
  font-size: 1rem;
}
.m-fields :where(select, textarea, input[type="number"]):focus { border-color: var(--film-accent); }
.m-fields select {
  appearance: none;
  padding-inline-end: 2.1rem;
  background: var(--film-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23bbb5c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .75rem center / 14px;
}
.m-fields select option { background: var(--film-field); color: var(--film-ink); }
.m-fields textarea { display: block; min-height: 100px; resize: vertical; }
.m-fields :is(textarea, input)::placeholder { color: var(--film-muted); opacity: 1; }
.m-rating {
  padding: .7rem .7rem .55rem;
  border: 1px solid var(--film-line);
  border-top-color: #79649e;
  border-radius: 5px;
  background: var(--film-field);
}
.m-rating > label { margin-bottom: .2rem; }
.m-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .15rem;
}
.m-score .dec {
  width: 100%;
  padding: 0 .1rem;
  border: 0;
  font: 600 clamp(1.6rem, 2.45vw, 2.2rem)/1 Inter, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--film-accent);
  text-align: start;
}
.m-score .dec::placeholder { color: var(--film-muted); }
.m-score > span,.mf-time-part > span {
  color: var(--film-muted);
  font: .74rem var(--mono);
  white-space: nowrap;
}
.mf-minute-row { display: none; }
.mf-minute-row.visible { display: block; }
.mf-minute,.mf-time-part { display: flex; align-items: center; gap: .55rem; }
.mf-minute { flex-wrap: wrap; gap: .65rem; }
.mf-time-part input { width: 4.1rem; }
.m-lists {
  padding-top: .8rem;
  border-top: 1px solid var(--film-line);
}
.m-lists .lchips { margin-top: .4rem; }
.m-lists .lchip { min-height: 38px; border-radius: 5px; font-size: .81rem; }
.m-lists .lchip.on { background: var(--film-accent); border-color: var(--film-accent); color: #241638; }
.m-favorite {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--film-line);
  border-radius: 5px;
  color: var(--film-ink);
  font-size: .86rem;
  cursor: pointer;
}
.m-favorite .ui-icon { color: var(--film-accent); font-size: 1.2rem; }
.m-favorite:has(:checked) .ui-icon { fill: currentColor; }
.m-favorite:has(input:focus-visible) {
  outline: 2px solid var(--film-accent);
  outline-offset: 3px;
}
.mfoot {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding: .75rem var(--film-pad);
  border-top: 1px solid var(--film-line);
  background: var(--film-paper);
}
.mfoot :is(.bsave, .bdel) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem .85rem;
  font-size: .85rem;
}
.mfoot .bsave { flex: none; background: var(--film-accent); color: #241638; padding-inline: 1rem; }
.mfoot .bdel { border-color: transparent; color: #f5a5aa; }
.m-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .mbg { padding: 0; }
  .mbg .modal { --film-pad: 1rem; height: 100%; border: 0; border-radius: 0; }
  .m-close { inset-block-start: max(.6rem, env(safe-area-inset-top)); inset-inline-end: max(.75rem, env(safe-area-inset-right)); }
  .m-body { grid-template-columns: minmax(0, 1fr); }
  .m-header {
    grid-template-columns: minmax(84px, min(25vw, 130px)) minmax(0, 1fr);
    align-items: center;
    padding-top: calc(2.1rem + env(safe-area-inset-top));
    padding-inline-end: 3.1rem;
  }
  .m-title { font-size: clamp(1.8rem, 6.5vw, 3.2rem); }
  .m-edit-jump {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--film-accent);
    font: 500 .8rem Inter, sans-serif;
    cursor: pointer;
  }
  .m-editor { border-inline-start: 0; border-top: 1px solid var(--film-line); }
  .m-editor h3 { scroll-margin-top: 4rem; }
  .m-lists .lchip { min-height: 44px; }
  .mfoot { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
  body.keyboard-open #mbg[open], body.keyboard-open #more-dialog[open] {
    align-items:flex-start;
  }
}
