header { gap: 10px }
#main:focus, #catalogScroll:focus { outline:none }
#catalogScroll { -webkit-tap-highlight-color:transparent }
.pull-refresh-hint:not([hidden]) {
  position:fixed;z-index:12;top:calc(var(--safe-top,0px) + 10px);left:50%;transform:translateX(-50%);
  padding:9px 16px;border-radius:24px;background:#302a21;color:var(--gold);font-size:.84rem;white-space:nowrap;pointer-events:none
}
html.pull-refreshed body[data-entry-pending] #cinema-splash[hidden] ~ #entry-recovery {
  visibility:hidden;animation:splash-app-on 0s 7s forwards
}
.brand { flex: none; min-width: 44px; min-height: 44px; justify-content: center; gap: 3px }
.brand .star { display: none }
.cinema-mark, .brand .mark {
  display:inline-flex; flex:none; width:.95em; height:1em; gap:.11em;
  font-size:var(--mark-size,20px); color:var(--mark-ink,#e7be78); transform:skewX(-15deg);
}
:is(.cinema-mark, .brand .mark) > i { flex:1; background:currentColor; border-radius:.025em }
:is(.cinema-mark, .brand .mark) > i:nth-child(2) { opacity:.81 }
:is(.cinema-mark, .brand .mark) > i:nth-child(3) { opacity:.62 }
.brand:active { transform: scale(.97) }
.command-slot { flex: 1; min-width: 0; display: flex; justify-content: flex-end }
#cinema-app:has(#nav :is([data-nav=settings],[data-nav=feed])[aria-current=page]) #catalogScroll > header .command-slot { display:none }
#command:not(:has(#searchJump svg)) { visibility: hidden }
#command {
  height: 44px; position: relative; max-width: 100%; overflow: hidden;
  border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
#command:focus-within { box-shadow: inset 0 0 0 2px var(--gold) }
#searchJump, .command-field {
  position: absolute; inset: 0 auto 0 0; display: flex; align-items: center;
  gap: 8px; border: 0; border-radius: 12px; color: var(--text); padding: 0 12px;
}
#searchJump { width: max-content; height: 44px; font-weight: 600; font-size: 14px; white-space: nowrap }
#searchJump:active { transform: none }
#command svg { width: 17px; height: 17px; color: var(--gold); flex: none }
#command kbd { font: inherit; font-size: 11px; font-weight: 500; line-height: 1.5; color: var(--muted); background: #ffffff0e; border-radius: 4px; padding: 2px 5px }
.command-field { width: 100%; pointer-events: none; visibility: hidden; opacity: 0; gap: 6px; padding-inline: 10px }
.command-field input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 16px; height: 44px }
#command.keyboard-open #searchJump, #command.keyboard-open .command-field { transition: none }
.search-recovery {flex-wrap:wrap}
.search-recovery p {margin-block:0}
.online-library-tools {margin:0 var(--pad) 20px;display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.online-library-tools label {display:grid;gap:5px;color:var(--muted)}
.online-library-tools input[type=search],dialog.title-share input {width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);padding:8px 12px;font-size:16px}
.online-library-tools [hidden] {display:none}
dialog.title-share {width:min(94%,440px);margin:auto;padding:clamp(16px,4vw,26px);border-radius:16px;background:var(--panel);color:var(--text);max-height:90dvh;overflow-y:auto}
.title-share h2 {margin:0 0 16px;font:500 1.6rem/1.13 var(--cinema-title);overflow-wrap:break-word;hyphens:auto}
.share-actions {display:flex;flex-wrap:wrap;gap:8px}
.title-share [role=status]:empty {display:none}
.title-share>button {margin-top:12px}
.title-share label {display:grid;gap:6px}
.is-open #searchJump { pointer-events: none; opacity: 0; visibility: hidden }
.is-open .command-field { opacity: 1; visibility: visible; pointer-events: auto }
@media (hover:none), (max-width:540px) { #command kbd { display:none } }
#nav {
  --panel-h: 0px; --dock-w: 372px;
  width: var(--dock-w); max-width: calc(100% - var(--safe-left) - var(--safe-right) - 24px);
  height: calc(60px + var(--panel-h)); left: calc(50% + (var(--safe-left) - var(--safe-right))/2);
  bottom: calc(6px + var(--safe-bottom)); padding: 4px; display:block;
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 6px 20px #0005; overflow: hidden; background: #1b1c1df5;
}
.dock-track { position: absolute; inset: auto 4px 4px; height: 50px; display:flex; touch-action: pan-y pinch-zoom }
#nav:empty { display: none }
.dock-track button { position: relative; z-index: 1; min-width: 0; height: 50px; border-radius: 20px; touch-action: pan-y pinch-zoom; line-height: 1.2 }
.dock-track button:focus-visible { outline-offset: -3px }
.dock-track button[aria-current=page] { color: var(--gold) }
.dock-pill { position: absolute; left:0; top:0; border-radius: 20px; background:#40372a; pointer-events:none }
.dock-panel { position:absolute; left:4px; right:4px; bottom:56px; padding:2px 2px 4px }
.dock-panel[aria-hidden=true] { visibility:hidden }
.dock-actions { display:flex; gap:3px; border-bottom:1px solid var(--line); padding-bottom:5px }
.dock-actions button { padding: 5px 3px; font-size: 13px; color:var(--text); line-height:1.2; border-radius: 10px }
.dock-actions button:active { background:var(--panel) }
.dock-actions .shortcut-short { display: none }
@media not all and (min-width: 1024px) and (min-height: 480px) {
  .dock-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(44px, 3.25rem)), 1fr));
    gap: 2px;
  }
  .dock-actions button {
    min-width: 0; min-height: 44px; padding: 4px 1px;
    font: 700 .75rem/1.2 var(--cinema-title, system-ui);
    text-align: center; overflow-wrap: normal;
  }
  .dock-actions .shortcut-short { display: inline }
  .dock-actions .shortcut-long { display: none }
}
.hero { height: auto; min-height: clamp(355px,49vw,540px) }
.hero h1, .hero h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  padding-bottom: .07em;
}
.cy, .sheet .sub, .facts { overflow-wrap: anywhere }
.player { column-gap: 8px }
.player > svg { flex: none }
@media (pointer: coarse) {
  .dots button { width: 44px }
}
@media (max-width: 600px) {
  .hero { min-height: clamp(350px,50dvh,465px) }
  .heroCopy { padding-bottom: 46px }
}
@media (max-width: 359px) {
  .actions .button { padding-inline: 10px; gap: 5px }
}
@media (prefers-reduced-motion:no-preference) {
  #searchJump,.command-field { transition: opacity .18s var(--ease-out), visibility 0s .18s }
  .is-open .command-field, #command:not(.is-open) #searchJump { transition-delay: .06s, 0s }
}


/* The sidebar scrolls when the shortcuts are long, without the system scrollbar. */
@media (min-width:1024px) and (min-height:480px) {
  #nav { scrollbar-width:none }
  #nav::-webkit-scrollbar { display:none }
}
