/* The pages anyone can open from a shared link (MT-68, MT-74): a title's share page, written by deploy
   (core/SharePages.cs), a shared list's page, t/list.html, and the install link's page, install.html (MT-213, MT-214).
   One look for all. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: auto; min-height: 100%; overflow: visible; overscroll-behavior: auto; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default; -webkit-tap-highlight-color: initial; }
.page { display: flex; gap: 20px; align-items: flex-start; max-width: 980px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 24px; }
.poster { width: min(34vw, 300px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #222; flex: none; }
.info { flex: 1; min-width: 0; }
.brand { margin: 0 0 6px; font-size: 13px; letter-spacing: .18em; font-weight: 800; color: var(--muted); }
h1 { margin: 0 0 6px; font-size: clamp(22px, 4vw, 34px); line-height: 1.15; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.facts span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.by, .cast { margin: 4px 0; color: var(--muted); }
.story { margin: 10px 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.go { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1px solid var(--accent); }
.go.lead { background: var(--accent); color: #111; }
.go.second, button.go { background: none; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.watch-trailer:not([hidden]) ~ .go.lead { background: none; color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(20,20,26,.95); border: 1px solid var(--line); max-width: 92vw; z-index: auto; font-size: inherit; white-space: normal; }
@media (orientation: portrait) and (max-width: 700px) { .page { flex-direction: column; align-items: center; } .poster { width: min(60vw, 260px); } }
/* A shared list: its name and sender, then its posters, each opening its title's page. */
.list-page { display: block; }
.list-page .muted { margin: 4px 0; color: var(--muted); }
.list-page .actions { margin: 12px 0 18px; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.list-tile { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
/* The install link's page (MT-213): the app's icon and name, Install app, then plain words in short sections. */
.install-page { display: block; max-width: 640px; }
.install-page .app-icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 8px; }
.install-page .muted { margin: 4px 0; color: var(--muted); }
.install-page .actions { margin: 12px 0 18px; }
.install-page section { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 16px; }
.install-page h2 { font-size: 18px; margin: 10px 0 4px; }
.install-page h3 { font-size: 14px; margin: 14px 0 4px; color: var(--muted); }
.install-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.install-guide { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 12px; }
.install-guide.here { border-color: var(--accent); }
.install-guide h3 { color: var(--text); font-size: 16px; }
.install-guide ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.install-guide li + li { margin-top: 6px; }
.remove-others dt { font-weight: 700; margin-top: 8px; }
.remove-others dd { margin: 2px 0 0; color: var(--muted); }
.quiet { color: var(--muted); }
.list-tile img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #222; margin-bottom: 4px; }
/* MT-326: the copyright and the Terms and Privacy links at the foot of every shared page (legal/notice.js fills it). */
.legal-foot { max-width: 980px; margin: 0 auto; padding: 8px 18px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--muted); }
.legal-foot a { color: var(--accent); }
