:root{--navy:#13204A;--navy2:#0F1A3C;--gold:#E9C46F;--cream:#FFF8EC;--muted:#AEB5CC;--line:rgba(233,196,111,.22);--rust:#E2773A;
  --serif:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",sans-serif;--sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",sans-serif;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;background:var(--navy2);color:#fff;font-family:var(--sans);font-size:16px;line-height:1.45;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#app{max-width:560px;margin:0 auto;min-height:100svh;padding-bottom:calc(76px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#1D3262 0%,#13204A 46%,#0F1A3C 100%)}
h1,h2,h3{margin:0;text-wrap:balance}

/* home */
.top{position:relative;padding-top:calc(96px + env(safe-area-inset-top))}
.top img{display:block;width:100%;height:auto;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 82%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 82%,transparent 100%)}
.copy{position:absolute;left:0;top:calc(14px + env(safe-area-inset-top));width:80%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:0 10px}
.rule{display:block;width:100%;height:1px;background:linear-gradient(90deg,transparent,var(--gold) 20%,var(--gold) 80%,transparent)}
.rule.c{position:relative;width:86%}.rule.c::after{content:"";position:absolute;left:50%;top:-2px;width:34px;height:5px;margin-left:-17px;border-radius:50%;background:var(--gold)}
.t1{font-family:var(--serif);font-weight:600;font-size:clamp(25px,7vw,34px);line-height:1.05;color:var(--cream);text-shadow:0 2px 10px rgba(10,10,40,.55);white-space:nowrap}
.t2{font-family:var(--serif);font-style:italic;font-weight:700;font-size:clamp(48px,13.5vw,68px);line-height:.95;margin-top:2px;background:linear-gradient(180deg,#FBE7B0 0%,#E9C46F 45%,#B98A35 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 8px rgba(20,10,40,.55));padding:0 6px 4px}
.tag{font-size:clamp(9px,2.5vw,12px);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#FFF3E2;text-shadow:0 1px 6px rgba(10,10,40,.7);white-space:nowrap}
.cards{display:flex;flex-direction:column;gap:14px;padding:0 14px;margin-top:-22px;position:relative}
.card{position:relative;display:flex;align-items:center;width:100%;min-height:112px;padding:0;border:1.5px solid transparent;border-radius:20px;background:linear-gradient(100deg,#13214A,#0E1838) padding-box,linear-gradient(135deg,#F6DE9C,#B98A35 45%,#F2D58A 70%,#8F6A2A) border-box;box-shadow:0 18px 30px -16px rgba(0,0,0,.75);text-align:left;overflow:hidden}
.card.soon{background:linear-gradient(100deg,#1A2140,#141A33) padding-box,linear-gradient(135deg,#C8CEDC,#7D879F 50%,#D9C79A) border-box}
.card .ph{position:absolute;left:0;top:0;bottom:0;width:48%;-webkit-mask-image:linear-gradient(90deg,#000 55%,transparent 100%);mask-image:linear-gradient(90deg,#000 55%,transparent 100%)}
.card .ph img{display:block;width:100%;height:100%;object-fit:cover}
.card .tx{position:relative;margin-left:37%;flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding:14px 6px 14px 0}
.card .tx b{font-family:var(--serif);font-weight:700;font-size:clamp(23px,6vw,28px);line-height:1.02;letter-spacing:-.01em;white-space:nowrap;color:var(--cream);text-shadow:0 2px 8px rgba(0,0,0,.6)}
.card .tx span{font-size:13.5px;color:#E8E3DA;text-shadow:0 1px 6px rgba(0,0,0,.7)}
.card .tx em{font-style:normal;font-size:11px;font-weight:800;color:var(--gold);margin-top:2px}
.card .chev{flex:none;width:26px;display:grid;place-items:center;margin-right:8px;color:var(--gold)}
.pill{flex:none;margin-right:8px;padding:5px 9px;border-radius:999px;background:linear-gradient(180deg,#F8DFA0,#E2B85E);color:#2A1E08;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.foot{padding:30px 14px 26px;display:flex;flex-direction:column;align-items:center;gap:14px}
.hp{display:flex;align-items:center;gap:16px;width:100%}.hp i{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}.hp i:last-child{background:linear-gradient(90deg,var(--gold),transparent)}
.foot p{margin:0;font-size:10px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:#E8E3DA;text-align:center}

/* inner screens */
.pad{padding:calc(16px + env(safe-area-inset-top)) 16px 24px;display:flex;flex-direction:column;gap:16px}
.back{align-self:flex-start;border:1.5px solid var(--line);background:none;border-radius:999px;min-height:40px;padding:0 14px;font-size:14px;font-weight:700;color:var(--cream)}
.banner{position:relative;border-radius:20px;overflow:hidden;aspect-ratio:16/9;display:flex;align-items:flex-end;padding:16px}
.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,15,40,0) 35%,rgba(10,15,40,.85))}
.banner div{position:relative;z-index:1}
.banner h1{font-family:var(--serif);font-size:34px;line-height:1;color:var(--cream)}
.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--gold)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;border:0;border-radius:999px;background:linear-gradient(180deg,#F8DFA0,#E2B85E);color:#2A1E08;font-weight:800;font-size:16px}
.btn.ghost{background:none;border:1.5px solid var(--gold);color:var(--gold)}
.btn[disabled]{opacity:.5;cursor:default}
.box{border:1px solid var(--line);border-radius:16px;padding:14px;background:rgba(255,255,255,.03)}
.muted{color:var(--muted);font-size:14px;margin:0}
.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.list li{display:flex;gap:12px;align-items:flex-start}
.list li::before{content:"✓";color:var(--gold);font-weight:800}
.stop{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) 20px;gap:10px;align-items:center;padding:13px 2px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left}
.stop .n{font-family:var(--serif);font-size:20px;font-weight:700;color:var(--gold)}
.stop b{display:block;font-size:15px;color:var(--cream)}
.stop small{display:block;color:var(--muted);font-size:12.5px}
.stop .ok{color:#7FD39B;font-size:12px}
.h3{margin:10px 0 0;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.dl{display:flex;flex-direction:column;gap:8px}
.bar{height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}.bar i{display:block;height:100%;width:0;background:#7FD39B;transition:width .25s linear}
.stage{position:relative;aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#000;display:grid;place-items:center}
.stage video{width:100%;height:100%;object-fit:contain;background:#000}
.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.stage .cap{position:absolute;left:14px;bottom:10px;font-family:var(--serif);font-size:16px;letter-spacing:.06em;text-transform:uppercase;text-shadow:0 2px 6px #000}
.prog{height:6px;border-radius:9px;background:rgba(255,255,255,.14);overflow:hidden;cursor:pointer}.prog i{display:block;height:100%;width:0;background:var(--gold)}
.times{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ctrls{display:flex;align-items:center;justify-content:center;gap:22px}
.skip{min-width:66px;min-height:52px;border-radius:999px;border:1.5px solid var(--line);background:none;font-weight:700;color:var(--cream)}
.play{width:72px;height:72px;border-radius:50%;border:0;background:linear-gradient(180deg,#F8DFA0,#E2B85E);color:#2A1E08;display:grid;place-items:center}
.nav{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}
.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:14px;font-weight:600}
.field input{border:1.5px solid var(--line);border-radius:12px;padding:13px;background:rgba(255,255,255,.05);color:#fff;font:inherit}
.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;background:#101A3A;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:5}
.tabs button{flex:1;max-width:200px;border:0;background:none;padding:9px 4px 11px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:700;color:#9AA3C0}
.tabs button[aria-current="page"]{color:var(--gold)}
.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--cream);color:#1F1A17;padding:9px 16px;border-radius:999px;font-size:14px;font-weight:600;z-index:9;max-width:90vw;text-align:center}
.testbar{background:#B26B00;color:#fff;font-size:12px;font-weight:700;text-align:center;padding:5px 10px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- player ---------- */
.player{display:flex;flex-direction:column;gap:16px}
.ctl{display:flex;flex-direction:column;gap:14px}
.ctl h2{font-family:var(--serif);font-size:30px;line-height:1.05;margin-top:4px}
.stage audio{display:none}
.note{text-align:center;font-size:12px}
/* Phone turned sideways: picture fills the screen, controls float on top and hide after 3 s; tap to bring them back. */
@media (orientation:landscape) and (max-height:560px){
  body.wide-player .tabs{display:none}
  body.wide-player #app{padding-bottom:0}
  body.wide-player .pl-pad > .back{visibility:hidden}
  body.wide-player .player{position:fixed;inset:0;z-index:30;background:#000;gap:0}
  body.wide-player .player .stage{position:absolute;inset:0;aspect-ratio:auto;border-radius:0}
  body.wide-player .player .ctl{position:absolute;left:0;right:0;bottom:0;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"meta meta meta" "prog prog prog" "times times times" "prev ctrls next";align-items:center;gap:8px 12px;padding:40px max(20px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,.82) 45%);transition:opacity .3s ease}
  body.wide-player .player .meta{grid-area:meta}
  body.wide-player .player .meta h2{font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.wide-player .player .meta .eyebrow,body.wide-player .player .meta p{display:none}
  body.wide-player .player #seek{grid-area:prog}
  body.wide-player .player .times{grid-area:times}
  body.wide-player .player .ctrls{grid-area:ctrls;gap:16px}
  body.wide-player .player .play{width:58px;height:58px}
  body.wide-player .player .skip{min-height:44px;min-width:58px}
  body.wide-player .player .note,body.wide-player .player .cnt{display:none}
  body.wide-player .player .nav{display:contents}
  body.wide-player .player .bprev{grid-area:prev;justify-self:start;width:auto;min-height:44px;padding:0 18px}
  body.wide-player .player .bnext{grid-area:next;justify-self:end;width:auto;min-height:44px;padding:0 18px}
  body.wide-player .player.hide .ctl{opacity:0;pointer-events:none}
  body.wide-player .player.hide{cursor:none}
}

/* chapter thumbnails in the stop list, captions on the player */
.stop.has-img{grid-template-columns:28px 92px minmax(0,1fr) 20px}
.stop .thumb{width:92px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;display:block}
.stage .cap{z-index:1;background:rgba(10,15,40,.6);padding:4px 10px;border-radius:999px;font-family:var(--sans);font-size:13px;font-weight:800;letter-spacing:.08em;left:12px;bottom:12px;text-shadow:none}
.stage .vcap{top:12px;bottom:auto}
.stage::after{content:none}
@media (orientation:landscape) and (max-height:560px){
  body.wide-player .player .meta .eyebrow{display:block;font-size:11px}
  body.wide-player .player .stage .cap{top:max(12px,env(safe-area-inset-top));bottom:auto;left:max(16px,env(safe-area-inset-left))}
  body.wide-player .player.hide .stage .cap{opacity:0;transition:opacity .3s}
}

/* Chapter photos are shown whole (never cropped); a blurred copy of the same photo fills the sides. */
.stage img.artbg{object-fit:cover;filter:blur(22px) brightness(.55);transform:scale(1.2)}
.stage img.artfg{object-fit:contain}

/* ---------- Golden Gate tour screen (approved mockup, 10 Nov 2026) ---------- */
body.ocean{background:transparent!important}
html:has(body.ocean){background:#081429}
body.ocean #app{position:relative;z-index:0;background:transparent}
body.tp #app{position:relative;z-index:0;background:transparent;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.tp-pad{padding:calc(10px + env(safe-area-inset-top)) 14px 0;display:flex;flex-direction:column;gap:12px}
.tp-top{position:relative;height:80px;display:flex;align-items:center}
.tp-top .back{position:relative;z-index:1;align-self:center;min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);font-size:13.5px;font-weight:600;color:#fff;letter-spacing:-.01em}
.tp-logo{position:absolute;left:50%;top:4px;width:118px;margin-left:-59px;aspect-ratio:1749/971;background:#fff;-webkit-mask:url(/brand/mx-lockup.svg) center/contain no-repeat;mask:url(/brand/mx-lockup.svg) center/contain no-repeat}
.tp-hero{position:relative;border-radius:26px;overflow:hidden;aspect-ratio:390/215;border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 40px -24px rgba(0,0,0,.8),0 1px 0 rgba(233,196,111,.35)}
.tp-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.tp-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,10,25,0) 45%,rgba(5,10,25,.72) 100%)}
.tp-hero .cap{position:absolute;left:20px;right:20px;bottom:14px;z-index:1}
.tp-hero .ey{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#F2C35B}
.tp-hero .ey::after{content:"";flex:1;max-width:150px;height:1.5px;background:linear-gradient(90deg,#F2C35B,rgba(242,195,91,0))}
.tp-hero h1{margin-top:2px;font-size:24px;line-height:1.12;font-weight:700;letter-spacing:-.015em;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.tp-dl{display:flex;align-items:center;gap:14px;min-height:42px;padding:8px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(18,34,68,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.07);font-size:14px;font-weight:600;color:#fff}
.tp-dl .ok{flex:none;width:22px;height:22px;border-radius:50%;background:#34C759;display:grid;place-items:center}
.tp-dl .bar{flex:1}
.tp-dl button{width:100%;border:0;background:none;color:#F2C35B;font:inherit;font-weight:700;text-align:left;padding:0}
.tp-list{display:flex;flex-direction:column;gap:7px}
.tp-list .stop{grid-template-columns:22px 92px minmax(0,1fr) 14px;gap:12px;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:linear-gradient(180deg,rgba(18,34,68,.55),rgba(12,26,56,.45));-webkit-backdrop-filter:blur(10px) saturate(1.1);backdrop-filter:blur(10px) saturate(1.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.tp-list .stop .n{font-family:var(--sans);font-size:19px;font-weight:600;color:#F2C35B;text-align:center}
.tp-list .stop .thumb{width:92px;border-radius:10px}
.tp-list .stop b{font-size:14px;line-height:1.22;font-weight:700;color:#fff}
.tp-list .stop small{margin-top:2px;font-size:11.5px;line-height:1.35;color:rgba(235,238,245,.82)}
.tp-list .stop .chev{color:#F2C35B;font-size:22px;line-height:1}
/* Ocean shimmer: the owner's image fills the whole screen behind everything, muted like a glaze under the cards. */
body.ocean::before{content:"";position:fixed;inset:0;z-index:-2;background:url(/img/ocean-shimmer.webp) center 40%/cover no-repeat;filter:saturate(.95) brightness(.75)}
body.ocean::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(8,20,45,.78) 0%,rgba(10,26,58,.55) 30%,rgba(10,26,58,.45) 60%,rgba(8,20,45,.4) 100%),linear-gradient(100deg,rgba(255,214,140,0) 30%,rgba(255,214,140,.08) 50%,rgba(255,214,140,0) 70%);background-size:100% 100%,220% 100%;animation:tpGlaze 12s ease-in-out infinite}
@keyframes tpGlaze{0%,100%{background-position:0 0,0% 0}50%{background-position:0 0,100% 0}}
@media (prefers-reduced-motion:reduce){body.ocean::after{animation:none}}
/* Ocean shimmer band: owner's image, static; only a soft highlight drifts across it. */
.tp-water{position:relative;height:170px;margin:6px -14px 0;background:url(/img/ocean-shimmer.webp) center 55%/cover no-repeat;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 34%,#000 82%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 34%,#000 82%,transparent 100%);overflow:hidden}
.tp-water::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(255,214,140,0) 30%,rgba(255,214,140,.22) 48%,rgba(255,214,140,0) 66%);mix-blend-mode:screen;animation:tpShimmer 10s ease-in-out infinite;will-change:transform,opacity}
@keyframes tpShimmer{0%{transform:translateX(-18%);opacity:.35}50%{transform:translateX(18%);opacity:1}100%{transform:translateX(-18%);opacity:.35}}
@media (prefers-reduced-motion:reduce){.tp-water::after{animation:none;opacity:.6;transform:none}}
/* Bottom navigation on this screen: rounded glass bar, gold active tab */
body.tp .tabs{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));padding:6px 0 8px;border-radius:28px;border:1px solid rgba(255,255,255,.12);background:rgba(14,26,52,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 -1px 0 rgba(242,195,91,.25),0 18px 30px -10px rgba(0,0,0,.6);max-width:540px;margin:0 auto}
body.tp .tabs button{font-size:12.5px;font-weight:600;color:rgba(235,238,245,.82);gap:6px}
body.tp .tabs button svg{width:24px;height:24px}
body.tp .tabs button[aria-current="page"]{color:#F2C35B;position:relative}
body.tp .tabs button[aria-current="page"]::after{content:"";position:absolute;bottom:0;width:62px;height:3px;border-radius:2px;background:#F2C35B;box-shadow:0 0 10px rgba(242,195,91,.7)}

/* Other app screens sit on the same ocean glaze: glass panels */
body.ocean .box,body.ocean .card,body.ocean .stop{background:linear-gradient(180deg,rgba(18,34,68,.55),rgba(12,26,56,.45));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
body.ocean .stop{border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:10px 12px;margin-bottom:8px}
body.ocean .tabs{background:rgba(14,26,52,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}

/* ---------- Chapter player (11 chapter pages): luxurious gradient, photo as large as possible ---------- */
html:has(body.pl){background:#07102A}
body.pl{background:radial-gradient(130% 55% at 50% 0%,rgba(150,180,225,.35) 0%,rgba(150,180,225,0) 65%),radial-gradient(90% 40% at 50% 100%,rgba(242,195,91,.10) 0%,rgba(242,195,91,0) 70%),linear-gradient(180deg,#5B79A8 0%,#2E4778 26%,#15264C 55%,#0A1532 80%,#07102A 100%) fixed!important}
body.pl #app{background:transparent}
body.pl .pl-pad{padding:calc(8px + env(safe-area-inset-top)) 0 0;gap:12px}
body.pl .pl-pad > .back{margin:0 14px;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
body.pl .player{gap:14px}
body.pl .stage{aspect-ratio:var(--ar,16/9);height:auto;max-height:min(46svh,calc(100svh - 385px));min-height:180px;width:100%;border-radius:0;background:#000;box-shadow:0 30px 50px -30px rgba(0,0,0,.9)}
body.pl .stage::before{content:"";position:absolute;left:0;right:0;bottom:0;height:22%;z-index:1;background:linear-gradient(180deg,rgba(4,6,12,0),rgba(4,6,12,.55));pointer-events:none}
body.pl .stage .cap{z-index:2}
body.pl .ctl{padding:0 18px 8px;gap:14px}
body.pl .ctl .eyebrow{color:#F2C35B}
body.pl .ctl h2{font-size:28px;font-weight:700;letter-spacing:-.015em}
body.pl .prog{height:5px;background:rgba(255,255,255,.16)}
body.pl .prog i{background:linear-gradient(90deg,#F8DFA0,#E2B85E);box-shadow:0 0 10px rgba(242,195,91,.5)}
body.pl .skip{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.05);color:#fff}
body.pl .play{width:76px;height:76px;box-shadow:0 12px 30px -10px rgba(242,195,91,.6),inset 0 1px 0 rgba(255,255,255,.5)}
body.pl .btn.ghost{border-color:rgba(242,195,91,.7);color:#F2C35B}
body.pl .tabs{background:rgba(6,10,20,.88);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top-color:rgba(242,195,91,.18)}
body.pl .tabs{display:none}
body.pl #app{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
body.pl .nav .btn{min-height:46px}
/* Short phones (iPhone SE and similar): tighter spacing so the photo and all controls fit on one screen */
@media (max-height:700px){
  body.pl .pl-pad{gap:8px}
  body.pl .player{gap:10px}
  body.pl .ctl{gap:9px}
  body.pl .ctl h2{font-size:22px}
  body.pl .ctl .muted{font-size:12.5px}
  body.pl .play{width:64px;height:64px}
  body.pl .skip{min-height:44px}
  body.pl .note{display:none}
  body.pl .nav .btn{min-height:42px}
}
body.pl .ctl .eyebrow{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:380px){body.pl .ctl .eyebrow{font-size:10px;letter-spacing:.12em}}
/* Landscape (phone tilted): every chapter photo fills the whole screen; controls float on top. */
@media (orientation:landscape) and (max-height:560px){
  body.pl.wide-player .player{position:fixed;inset:0;z-index:30;background:#000}
  body.pl.wide-player .player .stage{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto;border-radius:0}
  body.pl.wide-player .stage img.artfg{object-fit:cover}
  body.pl.wide-player .stage img.artbg{display:none}
  body.pl.wide-player .stage video{object-fit:cover}
  body.pl.wide-player .stage::before{height:100%;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 45%,rgba(0,0,0,.75) 100%)}
  body.pl.wide-player .player .ctl{background:none;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  body.pl.wide-player .pl-pad > .back{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));left:auto;z-index:31;visibility:visible;margin:0;background:rgba(0,0,0,.35)}
  body.pl.wide-player .player.hide ~ .back,body.pl.wide-player:has(.player.hide) .pl-pad > .back{opacity:0;pointer-events:none;transition:opacity .3s}
}

/* Landscape tap fixes for iPhone Safari: page can't scroll under the full-screen player, and faded-out controls still take taps */
@media (orientation:landscape) and (max-height:560px){
  html:has(body.wide-player),body.wide-player{overflow:hidden;height:100%;overscroll-behavior:none}
  body.wide-player .player.hide .ctl{pointer-events:auto}
  body.wide-player .player .ctl button,body.wide-player .player #seek{touch-action:manipulation}
}
/* Landscape controls without display:contents (Safari hit-testing bug): single-column grid, Back/Next pinned left/right */
@media (orientation:landscape) and (max-height:560px){
  body.wide-player .player .ctl{grid-template-columns:1fr;grid-template-areas:"meta" "prog" "times" "ctrls"}
  body.wide-player .player .ctrls{justify-self:center}
  body.wide-player .player .nav{display:block;position:static}
  body.wide-player .player .bprev,body.wide-player .player .bnext{position:absolute;bottom:calc(18px + env(safe-area-inset-bottom));width:auto}
  body.wide-player .player .bprev{left:max(20px,env(safe-area-inset-left))}
  body.wide-player .player .bnext{right:max(20px,env(safe-area-inset-right))}
}
/* Landscape v3: no position:fixed (iPhone Safari mis-targets taps on fixed layers). The player is a normal
   block exactly one screen tall at the top of the page; everything inside is positioned relative to it. */
@media (orientation:landscape) and (max-height:560px){
  html:has(body.wide-player),body.wide-player{overflow:visible;height:auto}
  body.pl.wide-player #app{padding:0;min-height:0}
  body.pl.wide-player .pl-pad{position:relative;padding:0;gap:0;height:100svh;overflow:hidden}
  body.pl.wide-player .player{position:relative;inset:auto;height:100svh;width:100%;z-index:auto}
  body.pl.wide-player .pl-pad > .back{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:40}
}
@media (orientation:landscape) and (max-height:560px){body.pl.wide-player #app{max-width:none;width:100%}}
/* Landscape: use the screen's live visible height (Safari bars come and go) so the player fills it exactly */
@media (orientation:landscape) and (max-height:560px){
  body.pl.wide-player .pl-pad,body.pl.wide-player .player{height:100vh;height:100dvh}
}
/* Landscape: a little extra page below the player, so one swipe up lets Safari tuck its bars away;
   the player stays pinned to the top of the screen while that happens. */
@media (orientation:landscape) and (max-height:560px){
  body.pl.wide-player .pl-pad{position:sticky;top:0}
  body.pl.wide-player #app::after{content:"";display:block;height:120px}
}

/* Coit Tower locked list: stops shown before purchase; tapping one points to the unlock button. */
.stop.locked{opacity:.82}
#unlock.pulse{animation:unl 1s ease 2}
@keyframes unl{50%{box-shadow:0 0 0 4px rgba(233,196,111,.55)}}
@media (prefers-reduced-motion:reduce){#unlock.pulse{animation:none}}

/* Coit Tower player: which mural or window is playing, large and clear under the play buttons. */
.pnow{margin:2px auto 0;padding:7px 20px;border:1.5px solid rgba(233,196,111,.75);border-radius:999px;width:max-content;max-width:100%;
  font-size:22px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#E9C46F;text-align:center;line-height:1.2;background:rgba(233,196,111,.08)}
.pnow:empty{display:none}
@media (max-height:700px){body.pl .pnow{font-size:19px;padding:5px 16px}}
@media (orientation:landscape) and (max-height:560px){
  body.wide-player .player .pnow{justify-self:center;margin:0;font-size:17px;padding:4px 14px;background:rgba(0,0,0,.45)}
}

/* Exhibit QR code opened: "Play Window 12 Now" screen (owner's design, 23 Nov). Windows blue, murals red. */
.tapplay{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:0;padding:calc(20px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  font:inherit;text-align:center;cursor:pointer;color:#0E1F45;background:linear-gradient(180deg,#9DC0EA 0%,#C6DAF2 30%,#E7EEF8 58%,#F6EEE8 84%,#F9E7D6 100%)}
.tapplay::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 60% 35% at 30% 25%,rgba(255,255,255,.55),transparent 70%),radial-gradient(ellipse 50% 25% at 80% 45%,rgba(255,255,255,.45),transparent 70%)}
.tapplay > *{position:relative}
.tp-brand{display:flex;flex-direction:column;align-items:center;gap:8px}
.tp-brand b{font-size:clamp(34px,10.5vw,44px);font-weight:500;letter-spacing:.16em;padding-left:.16em;line-height:1}
.tp-brand span{display:flex;align-items:center;gap:14px;font-size:clamp(14px,4.2vw,17px);font-weight:500;letter-spacing:.34em;padding-left:.34em}
.tp-brand i{display:block;width:clamp(34px,11vw,56px);height:2px;background:#C9971F}
.tp-art{position:relative;margin-top:clamp(24px,5vh,44px);width:180px;height:clamp(170px,26vh,230px);display:flex;align-items:flex-end;justify-content:center}
.tp-art img{position:absolute;left:50%;top:0;width:130px;transform:translateX(-50%);opacity:.22;filter:saturate(0) brightness(1.15);
  -webkit-mask-image:radial-gradient(ellipse 50% 60% at 50% 40%,#000 45%,transparent 100%);mask-image:radial-gradient(ellipse 50% 60% at 50% 40%,#000 45%,transparent 100%);top:-10px}
.tp-badge{position:relative;z-index:1}
.tp-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:clamp(150px,44vw,180px);aspect-ratio:1.12;border-radius:30px;color:#fff;box-shadow:0 18px 34px -16px rgba(14,31,69,.55)}
.tp-badge svg{width:42%;height:auto}
.tp-badge em{font-style:normal;font-size:clamp(46px,14vw,58px);font-weight:800;line-height:1}
.tp-kick{margin-top:clamp(22px,4vh,34px);font-size:clamp(13px,3.9vw,16px);font-weight:600;letter-spacing:.3em;padding-left:.3em;color:#1C2E55}
.tp-h{margin-top:10px;white-space:nowrap;font-size:clamp(26px,8.2vw,38px);font-weight:800;letter-spacing:-.01em;line-height:1.08}
.tp-name{margin-top:6px;font-size:17px;color:#4A5777}
.tp-go{margin-top:clamp(20px,3.5vh,30px);display:flex;align-items:center;justify-content:center;gap:16px;width:min(100%,330px);height:76px;border-radius:999px;color:#fff;font-size:28px;font-weight:600;box-shadow:0 16px 30px -14px rgba(14,31,69,.6)}
.tp-go svg{width:34px;height:34px}
.tp-window .tp-badge,.tp-window .tp-go{background:linear-gradient(180deg,#2A66B8 0%,#174A93 55%,#0F3C7C 100%)}
.tp-mural .tp-badge,.tp-mural .tp-go{background:linear-gradient(180deg,#E0573B 0%,#C23D27 55%,#A8301D 100%)}
@media (prefers-reduced-motion:no-preference){.tp-go{animation:tpgo 2s ease-in-out infinite}}
@keyframes tpgo{50%{transform:scale(1.035)}}
@media (max-height:680px){.tp-art{height:150px}.tp-badge{width:132px;border-radius:24px}.tp-go{height:64px;font-size:24px}}
