/* Cinemory 2 – Handy-Layout (greift nur auf schmalen Bildschirmen) */
.mnav { display: none; }

@media (max-width: 960px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .grain { display: none; }

  /* --- Untere Navigationsleiste --- */
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(9,10,14,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #1a1e2b; }
  .mnav a, .mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: none;
    color: var(--mu); font-size: 11px; font-weight: 700; letter-spacing: .01em; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .mnav i { width: 23px; height: 23px; display: inline-flex; }
  .mnav i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mnav button i svg { fill: currentColor; stroke: none; }
  .mnav .on { color: var(--tx); }
  .mnav .on i { color: var(--vi); filter: drop-shadow(0 0 8px rgba(180,156,255,.45)); }
  .mnav a:active, .mnav button:active { background: #141824; }

  /* --- „Mehr“-Menü (von unten) --- */
  .msheet-ov { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); animation: msfade .18s ease both; }
  .msheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(78px + env(safe-area-inset-bottom)); background: var(--bg2);
    border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6); animation: msup .22s cubic-bezier(.2,.9,.3,1) both; }
  .msheet-ov.out { animation: msfade .18s ease reverse both; } .msheet-ov.out .msheet { animation: msup .18s ease reverse both; }
  .msheet-grip { width: 42px; height: 5px; border-radius: 9px; background: var(--line2); margin: 0 auto 14px; }
  .msheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .msheet-grid a, .msheet-foot a, .msheet-foot button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 82px; padding: 10px 6px;
    border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--tx2); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; cursor: pointer; }
  .msheet i { width: 24px; height: 24px; display: inline-flex; color: var(--vi); }
  .msheet i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .msheet a.on { border-color: var(--vi2); color: var(--tx); background: linear-gradient(180deg, rgba(143,115,240,.18), var(--card)); }
  .msheet-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .msheet-foot a, .msheet-foot button { flex-direction: row; min-height: 52px; }
  @keyframes msfade { from { opacity: 0; } }
  @keyframes msup { from { transform: translateY(100%); } }

  /* --- Seitenrahmen --- */
  .page { padding: 18px 14px 34px; }
  h1.t { font-size: 30px; }
  h2.t { font-size: 21px; }
  .sub { font-size: 14px; }
  .sec { margin: 30px 0 12px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); white-space: normal; text-align: center; }

  /* Größere Tap-Ziele */
  .btn { min-height: 42px; }
  .btn.sm { min-height: 36px; } .btn.xs { min-height: 30px; }
  .chip { padding: 8px 14px; }
  .input, select.input { min-height: 44px; font-size: 16px; } /* 16px verhindert Auto-Zoom auf dem iPhone */
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { padding: 9px 14px; white-space: nowrap; flex: none; }

  /* Gegen seitliches Überlaufen */
  .app { overflow-x: clip; }
  .two > *, .three > *, .pw-grid > *, .grid > * { min-width: 0; }
  .note code, .sub code { word-break: break-all; }
  .d-backdrop { left: -14px; right: -14px; }
  .gm-grid { grid-template-columns: 1fr; gap: 14px; }
  .acts-stars .srate { gap: 0; } .acts-stars .srate button { font-size: 23px; padding: 0; }

  /* Detailseite */
  .d-left { max-width: 240px; margin: 0 auto; width: 100%; }
  .crew-sec.wide .crew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .crew-card { width: 104px; }
  .grid.c5, .grid.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .grid:has(.acts) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 10px; }
  .pw { padding: 10px 12px 10px 10px; gap: 12px; } .pw-main { min-width: 0; } .pw-posters { overflow: hidden; }

  /* Spiele */
  .du-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -14px 18px; padding: 0 14px; scroll-padding: 0 14px; }
  .du-tabs::-webkit-scrollbar { display: none; }
  .du-tab { flex: none; white-space: nowrap; }
  .gm-dtiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
  .gm-dt { padding: 10px 4px; } .gm-dtp { width: 100%; max-width: 54px; } .gm-dt b { font-size: 12.5px; } .gm-dt small { font-size: 10.5px; text-align: center; line-height: 1.25; }
  .gm-card { padding: 16px; }
  .gm-head { flex-wrap: wrap; } .gm-head > div { flex: 1 1 180px; } .gm-head > .btn { flex: 1 0 100%; }
  .gm-dm { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; }
  .du-arena { grid-template-columns: 1fr 1fr !important; gap: 10px !important; position: relative; }
  .du-vs { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
  .du-vs span { width: 40px !important; height: 40px !important; font-size: 14px !important; background: var(--bg) !important; }
  .du-card { padding: 10px; border-radius: 16px; }
  .du-card:hover, .du-card:focus-visible { transform: none; }
  .du-name { font-size: 16px; margin-top: 10px; }
  .du-sub { font-size: 12px; }
  .du-person { flex-direction: column; text-align: center; gap: 8px; }
  .du-avatar { width: 54px; height: 54px; }
  .du-strip { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .du-shots { grid-template-columns: 1fr; }
  .du-shots button:only-child { grid-column: auto; }
  .du-audio { padding: 8px; margin-top: 10px; }
  .du-tr { font-size: 12px; gap: 6px; }
  .du-more { flex-wrap: wrap; }
  .hl2-card { min-height: 290px !important; border-radius: 18px; }
  .hl2-slot { min-height: 96px; }
  .lk-grid.films { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lk-grid.people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

  /* Dialoge als Blatt von unten */
  .overlay { align-items: flex-end !important; padding: 0 !important; }
  .dialog { width: 100% !important; max-width: 100% !important; max-height: calc(100dvh - 30px); border-radius: 22px 22px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
    animation: msup .24s cubic-bezier(.2,.9,.3,1) both; }
}

/* Touch-Geräte: Dinge, die sonst nur beim Drüberfahren erscheinen, immer zeigen */
@media (hover: none) {
  .gal-zoom, .du-x { opacity: 1 !important; }
  kbd { display: none !important; }
}

/* Einstellungen: Auf dem Handy öffnen */
.lan-wrap { display: flex; gap: 20px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.lan-qr { width: 180px; height: 180px; flex: none; border-radius: 14px; background: #fff; padding: 6px; display: grid; place-items: center; color: #333; }
.lan-qr svg { width: 100%; height: 100%; display: block; }
.lan-qr .note { color: #555; text-align: center; font-size: 12px; }
.lan-txt { flex: 1 1 240px; min-width: 0; }
.lan-pin { font-size: 15px; color: var(--tx2); margin-bottom: 6px; } .lan-pin b { font-family: var(--serif); font-size: 26px; letter-spacing: .12em; color: var(--gold); margin-left: 6px; }
.lan-url { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--vi); word-break: break-all; }

/* Profile & Anmeldung */
body.auth .rail, body.auth .mnav { display: none !important; }
body.auth .app { margin-left: 0; padding-bottom: 0; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(143,115,240,.16), transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; padding: 30px 26px; border-radius: 24px; background: linear-gradient(180deg, var(--card), #0e1016);
  border: 1px solid var(--line2); box-shadow: 0 40px 90px rgba(0,0,0,.55); animation: fade .35s ease both; }
.login-ico { width: 64px; height: 64px; border-radius: 16px; align-self: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.login-brand { font-family: var(--sans); font-weight: 700; font-size: 32px; text-align: center; margin-top: 12px; letter-spacing: -.03em; } .login-brand span { color: var(--amber); }
.login-sub { text-align: center; color: var(--mu); margin: 2px 0 22px; font-size: 14px; }
.login-card .input { width: 100%; font-size: 16px; }
.login-keep { display: flex; align-items: center; gap: 9px; margin: 14px 0 18px; color: var(--tx2); font-size: 14px; cursor: pointer; }
.login-keep input { width: 18px; height: 18px; accent-color: var(--vi); }
.login-go { width: 100%; min-height: 46px; font-size: 15px; }
.login-err { color: var(--red); font-size: 13.5px; margin-top: 10px; min-height: 1.2em; }
.prof-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: #10131b; border: 1px solid #1a1e2b; color: var(--tx); }
.prof-chip:hover { border-color: var(--line2); }
.prof-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #12100b;
  background: linear-gradient(135deg, var(--gold2), var(--amber)); }
.prof-av.big { width: 46px; height: 46px; font-size: 19px; }
.prof-nm { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.15; min-width: 0; } .prof-nm small { color: var(--mu); font-weight: 600; font-size: 11.5px; }
.prof-me { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.prof-det { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.prof-det summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tx2); list-style: none; } .prof-det summary::-webkit-details-marker { display: none; }
.prof-det summary .ico { width: 17px; height: 17px; color: var(--vi); }
.prof-form { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-width: 360px; } .prof-form .lbl { margin: 6px 0 0; } .prof-form .btn { align-self: flex-start; margin-top: 10px; }
.prof-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.prof-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.prof-rn { flex: 1; min-width: 120px; display: flex; flex-direction: column; } .prof-rn small { color: var(--mu); font-size: 12px; }
.msheet-prof { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--tx); }
.msheet-prof b { display: block; font-size: 14.5px; } .msheet-prof small { color: var(--mu); font-size: 12px; }
.prof-remote { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--tx2); cursor: pointer; margin-right: 4px; }
.prof-remote input { display: none; }
.prof-remote input:checked + .tog-ui { background: var(--vi2); } .prof-remote input:checked + .tog-ui::after { transform: translateX(18px); }
.credits { max-width: 640px; margin-top: 22px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); line-height: 1.55; }
.credits a { color: var(--tx2); } .credits a:hover { color: var(--vi); }
.inv-box { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid rgba(180,156,255,.4); }
.inv-box .input { width: 100%; font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prof-invs .prof-av .ico { width: 16px; height: 16px; }
.mail-steps { margin: 8px 0 4px; padding-left: 20px; line-height: 1.6; }
.ok-mail { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.08); }
.ok-mail .ico { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
