/* DIFF 2026 companion.
   Paper, ink and DIFF blue, with the five prayer-flag colours for the programme strands:
   sky blue (fiction), fire red (documentary), water green (shorts), earth yellow (talks), wind white (DIFFshala). */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/jost-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 500 700; font-display: swap; src: url(../fonts/jost-italic.woff2) format('woff2'); }

:root {
  --bg: #f2ede0;
  --card: #fffcf5;
  --bar: rgba(242, 237, 224, .82);
  --ink: #17110b;
  --ink2: #625749;
  --ink3: #988c7d;
  --line: rgba(23, 17, 11, .12);
  --line2: rgba(23, 17, 11, .22);
  --fill: rgba(23, 17, 11, .06);
  --fill2: rgba(23, 17, 11, .11);
  --accent: #2f4fb8;
  --on-accent: #fff;
  --accent-fill: rgba(47, 79, 184, .1);
  --primary: #17110b;
  --on-primary: #f6f1e3;
  --live: #df3a2b;
  --warn: #a86400;
  --ok: #1b8448;
  --glass: rgba(255, 252, 245, .68);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-line: rgba(23, 17, 11, .08);
  --shadow: 0 1px 2px rgba(40, 28, 10, .05), 0 10px 30px rgba(40, 28, 10, .08);
  --c-narrative: #2f62d0;
  --c-doc: #d0432f;
  --c-shorts: #1d8c52;
  --c-talk: #c08e00;
  --c-class: #6a5e51;
  --c-repeat: #888;
  --v-hgh: #e2583a;
  --v-pt1: #2f7be0;
  --v-pt2: #13a08f;
  --v-pt3: #8d4fe0;
  --v-hpd: #d29c12;
  --display: 'Jost', 'Avenir Next', 'Century Gothic', -apple-system, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, Roboto, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
  --tabbar-bottom: max(10px, calc(var(--safe-b) - 6px));
  --tabbar-space: calc(var(--tabbar-h) + var(--tabbar-bottom) + 14px);
  --spring: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
:root.dark {
  --bg: #0c0a08;
  --card: #191512;
  --bar: rgba(12, 10, 8, .8);
  --ink: #f6f1e3;
  --ink2: #b5aa98;
  --ink3: #7e7467;
  --line: rgba(246, 241, 227, .11);
  --line2: rgba(246, 241, 227, .22);
  --fill: rgba(246, 241, 227, .075);
  --fill2: rgba(246, 241, 227, .13);
  --accent: #5b8dff;
  --on-accent: #ffffff;
  --accent-fill: rgba(91, 141, 255, .16);
  --primary: #f6f1e3;
  --on-primary: #0c0a08;
  --live: #ff5747;
  --warn: #f3b44e;
  --ok: #4fd18a;
  --glass: rgba(38, 33, 28, .6);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-line: rgba(0, 0, 0, .4);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 36px rgba(0, 0, 0, .45);
  --c-narrative: #7ea3ff;
  --c-doc: #ff7d66;
  --c-shorts: #58d18e;
  --c-talk: #ffd24d;
  --c-class: #efe8d8;
  --c-repeat: #999;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.42 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .4; cursor: default; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 13px; height: 13px; stroke-width: 2.1; vertical-align: -2px; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 12px; } .mt2 { margin-top: 24px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
img.lq { background-size: cover; background-position: center; }
.img-ph { background: var(--fill); }
.tnum, .row-t, .tk-stub b, .ring b { font-variant-numeric: tabular-nums; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9);
  box-shadow: inset 0 0 0 .5px var(--glass-edge), 0 0 0 .5px var(--glass-line), 0 8px 28px rgba(0, 0, 0, .14);
}

/* ------------------------------------------------------------ pages and navigation */
#app { min-height: 100dvh; transition: transform .42s var(--spring); transform-origin: 50% 0; }
.page { display: none; min-height: 100dvh; padding-bottom: calc(var(--tabbar-space) + 24px); }
.page.on { display: block; }
/* The page recedes behind a sheet, like an iOS card modal. No overflow clip: it would unstick the nav. */
html.sheet-open:not([data-tab="map"]) #app { transform: scale(.94) translateY(calc(var(--safe-t) + 8px)); }

.nav { position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t); }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); opacity: 0; transition: opacity .2s; border-bottom: .5px solid var(--line); }
.page.collapsed .nav::before { opacity: 1; }
.nav-bar { position: relative; height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 720px; margin: 0 auto; padding: 0 12px; }
.nav-t { font-weight: 650; font-size: 17px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--spring); white-space: nowrap; }
.page.collapsed .nav-t { opacity: 1; transform: none; }
.nav-r { justify-self: end; display: flex; gap: 8px; }
.large { max-width: 720px; margin: 0 auto; padding: 0 20px 12px; }
.large h1 { font: 700 38px/1.02 var(--display); letter-spacing: -.025em; }
.large p { color: var(--ink2); font-size: 15px; margin-top: 4px; }
.subbar { position: sticky; top: calc(var(--safe-t) + 50px); z-index: 29; background: var(--bg); padding: 0 16px 8px; }
.page.collapsed .subbar { background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: .5px solid var(--line); }
.subbar > * { max-width: 688px; margin-left: auto; margin-right: auto; }

.gbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); position: relative; flex: none; transition: transform .2s var(--spring); }
.gbtn:active { transform: scale(.9); }
.gpill { height: 38px; padding: 0 15px; border-radius: 19px; display: inline-flex; white-space: nowrap; flex: none; align-items: center; font-weight: 600; font-size: 15px; color: var(--ink); }
.gpill:active { transform: scale(.95); }
.gbadge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Floating glass tab bar, with search on its own button. */
#tabs { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: var(--tabbar-bottom); display: flex; justify-content: space-between; gap: 10px; max-width: 620px; margin: 0 auto; transition: transform .42s var(--spring), opacity .3s; }
html.sheet-open #tabs { transform: translateY(140%); opacity: 0; }
.tabbar { position: relative; flex: 1 1 100%; height: var(--tabbar-h); border-radius: 31px; display: flex; padding: 4px; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: flex-basis .45s var(--spring); }
.tab-lens { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5); border-radius: 27px; background: var(--fill2); transform: translateX(calc(var(--i) * 100%)); transition: transform .42s var(--spring), scale .3s var(--spring), background .2s; pointer-events: none; }
.tabbar.pressing .tab-lens { scale: 1.1 1.14; background: color-mix(in srgb, var(--accent) 16%, var(--fill2)); transition: transform .28s var(--spring), scale .3s var(--spring); }
#tabs.min .tabbar { flex: 0 0 var(--tabbar-h); }
#tabs.min .tab-lens { width: calc(100% - 8px); transform: none; }
#tabs.min .tabbar button:not([aria-selected="true"]) { flex: 0 0 0; min-width: 0; opacity: 0; overflow: hidden; pointer-events: none; }
#tabs.min .tabbar button span { display: none; }
#tabs.min .tabbar button i { display: none; }
html.keyboard #tabs { transform: translateY(160%); opacity: 0; pointer-events: none; }
.tabbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; color: var(--ink2); font-size: 10.5px; font-weight: 600; position: relative; z-index: 1; transition: color .2s, flex-basis .4s var(--spring), opacity .25s; }
.tabbar button .ico { width: 24px; height: 24px; }
.tabbar button[aria-selected="true"] { color: var(--accent); }
.tab-badge, .tab-count { position: absolute; top: 3px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.tab-badge { background: var(--live); color: #fff; }
.tab-count { background: var(--ink); color: var(--bg); }
.searchfab { width: var(--tabbar-h); height: var(--tabbar-h); border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.searchfab .ico { width: 24px; height: 24px; }

/* ------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 23px; font-weight: 600; font-size: 16px; background: var(--fill); color: var(--ink); transition: transform .2s var(--spring), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.danger { color: var(--live); }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-row .btn { flex: 1 1 140px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 22px auto 0; }
.text { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.text.small { font-size: 13.5px; }
.chipbtn { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--accent-fill); color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex: none; transition: transform .2s var(--spring); }
.chipbtn:active { transform: scale(.94); }
.chipbtn.on, .chipbtn[aria-pressed="true"]:not(.ghost) { background: var(--accent); color: var(--on-accent); }
.chipbtn.ghost { background: var(--fill); color: var(--ink2); }
.chipbtn.ghost[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--fill); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--spring); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip .sw { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.chipwrap { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 550; white-space: nowrap; text-align: center; }
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 650; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
:root.dark .seg button[aria-pressed="true"] { background: #3b332c; }
.seg.mini button { padding: 4px 10px; font-size: 13px; }

.week { display: flex; justify-content: space-between; padding: 2px 0 10px; }
.week button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink3); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.week b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 21px var(--display); color: var(--ink); letter-spacing: 0; text-transform: none; transition: background .25s, color .25s, transform .25s var(--spring); }
.week button:active b { transform: scale(.9); }
.week [aria-selected="true"] b { background: var(--ink); color: var(--bg); }
.week .today b { color: var(--live); }
.week .today[aria-selected="true"] b { background: var(--live); color: #fff; }
.week.mini { margin: 16px 0 4px; }
.week.mini b { width: 36px; height: 36px; font-size: 18px; }

.add { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line2), 0 2px 8px rgba(0, 0, 0, .12); transition: transform .3s var(--spring), background .2s, color .2s; }
.add:active { transform: scale(.82); }
.add[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); animation: pop .4s var(--spring); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------ section heads, cards, groups */
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 10px; }
.sh h2 { font: 650 23px/1.15 var(--display); letter-spacing: -.012em; }
.sh h2 small { margin-left: 8px; font: 400 14px var(--sans); color: var(--ink3); letter-spacing: 0; }
.card { background: var(--card); border-radius: 20px; padding: 16px; }
.card.pad-s { padding: 12px 14px; }
.updates { margin-top: 22px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.up-head b { display: block; font: 650 20px var(--display); }
.up-head small { color: var(--ink2); font-size: 13.5px; }
.up-list { margin-top: 10px; }
.up-list li { position: relative; padding: 10px 0; border-top: .5px solid var(--line); cursor: pointer; }
.up-list.group li { padding: 12px 16px; border-top: 0; }
.up-list li b { font-weight: 650; }
.up-list li small { display: block; color: var(--ink2); font-size: 13.5px; margin-top: 1px; }
.up-list li em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.hint { color: var(--ink2); font-size: 14.5px; margin-top: 12px; }
.page-share { display: flex; justify-content: center; margin: 30px 0 4px; }
.page-share .text { font-size: 15px; }
.fine { color: var(--ink3); font-size: 13px; text-align: center; margin: 34px 0 8px; }
.empty { padding: 56px 16px; text-align: center; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font: 650 23px/1.2 var(--display); margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }
.group { background: var(--card); border-radius: 18px; overflow: hidden; }
.group > * + * { box-shadow: inset 0 .5px 0 var(--line); }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; width: 100%; text-align: left; color: var(--ink); }
.cell > span:not(.av):not(.pc-ic):not(.text) { flex: 1; min-width: 0; }
.cell b { display: block; font-weight: 500; }
.cell small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 1px; }
.cell > .ico { color: var(--ink3); }
.cell.static b { font-weight: 600; }
.cell.danger b { color: var(--live); }
.cell .av, .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--fill2); font-weight: 650; color: var(--ink2); object-fit: cover; }
details.faq { display: block; }
details.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 550; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .25s; flex: none; margin-top: -4px; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.faq p { color: var(--ink2); font-size: 15px; margin-top: 8px; }
.formrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; min-height: 54px; }
.formrow.col { flex-direction: column; align-items: stretch; }
.textin { height: 46px; border-radius: 12px; border: 0; background: var(--fill); padding: 0 14px; font-size: 16px; color: var(--ink); outline: none; width: 100%; }
.foot { color: var(--ink3); font-size: 13px; margin-top: 8px; padding: 0 4px; }
.form-h { font: 650 16px var(--display); color: var(--ink2); margin: 24px 0 10px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; cursor: pointer; position: relative; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 51px; height: 31px; border-radius: 16px; background: var(--fill2); position: relative; transition: background .25s; flex: none; }
.switch-row i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch-row input:checked + i { background: var(--ok); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--accent-fill); margin-top: 22px; width: 100%; text-align: left; }
.notice .ico { color: var(--accent); }
.notice b { display: block; font-weight: 650; }
.notice small { display: block; font-size: 14px; color: var(--ink2); margin-top: 2px; }

/* ------------------------------------------------------------ schedule rows */
.part-h { display: flex; align-items: baseline; gap: 8px; font: 650 15px var(--display); color: var(--ink2); margin: 22px 0 2px; text-transform: none; }
.part-h small { font: 400 13px var(--sans); color: var(--ink3); }
.list { position: relative; }
.row { position: relative; display: flex; gap: 12px; padding: 13px 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .25s var(--spring); cursor: pointer; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; border-top: .5px solid var(--line); }
.row.pressing { transform: scale(.975); }
.row-t { width: 52px; flex: none; position: relative; padding-left: 11px; line-height: 1.15; }
.row-t::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3.5px; border-radius: 2px; background: var(--c, var(--ink3)); }
.row-t b { display: block; font: 600 17px var(--display); letter-spacing: -.01em; }
.row-t small { display: block; font-size: 11px; font-weight: 650; color: var(--ink3); letter-spacing: .04em; margin-top: 1px; }
.row-b { flex: 1; min-width: 0; }
.row h3 { font-size: 16.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.row h3 em { font-style: normal; font-weight: 400; color: var(--ink2); }
.row-by { font-size: 14px; color: var(--ink2); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-m { font-size: 13px; color: var(--ink3); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; margin: 0 7px; }
.vchip { font-weight: 650; color: var(--ink); background: var(--fill); padding: 1px 7px; border-radius: 6px; font-size: 12px; letter-spacing: .01em; }
.qa { color: var(--accent); font-weight: 650; }
.row-art { position: relative; width: 78px; flex: none; align-self: flex-start; margin-top: 2px; }
.row-art img, .row-art .img-ph { width: 78px; height: 54px; border-radius: 10px; object-fit: cover; }
.row-art .add { position: absolute; right: -7px; bottom: -9px; }
.row.is-past .row-t, .row.is-past .row-b > h3, .row.is-past .row-b > .row-by, .row.is-past .row-b > .row-m, .row.is-past .row-art img { opacity: .45; }
.row.is-live .row-t b { color: var(--live); }
.row-live { color: var(--live); font-size: 13px; font-weight: 600; margin-top: 7px; }
.row-live .bar { max-width: 220px; margin-top: 6px; }
.row-alert { color: var(--live); font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.row-fr, .row-walk { font-size: 13px; color: var(--ink2); margin-top: 5px; }
.bar { height: 3px; border-radius: 2px; background: var(--fill2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--live); border-radius: 2px; transition: width 1s linear; }
.bar.big { height: 6px; border-radius: 3px; margin-top: 14px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: 1px; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.nowbar { display: flex; align-items: center; gap: 8px; color: var(--live); font-size: 12.5px; font-weight: 700; padding: 6px 0; letter-spacing: .02em; }
.nowbar::after { content: ''; flex: 1; height: 1.5px; background: var(--live); border-radius: 1px; }
.nowbar + .row::before { display: none; }
.earlier { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; padding: 12px 0 2px; }
.c-narrative { --c: var(--c-narrative); } .c-doc { --c: var(--c-doc); } .c-shorts { --c: var(--c-shorts); }
.c-talk { --c: var(--c-talk); } .c-class { --c: var(--c-class); } .c-repeat { --c: var(--c-repeat); } .c-other { --c: var(--ink3); }
.v-hgh { --vc: var(--v-hgh); } .v-pt1 { --vc: var(--v-pt1); } .v-pt2 { --vc: var(--v-pt2); } .v-pt3 { --vc: var(--v-pt3); } .v-hpd { --vc: var(--v-hpd); }
.vdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vc); }

/* ------------------------------------------------------------ schedule grid */
.grid { overflow: auto; margin: 6px -16px 0; overscroll-behavior: contain; --gcol: 130px; -webkit-overflow-scrolling: touch; }
.grid-in { position: relative; display: grid; grid-template-columns: 44px repeat(5, minmax(var(--gcol), 1fr)); grid-template-rows: 44px var(--h); min-width: calc(44px + 5 * var(--gcol)); }
.g-head { display: contents; }
.g-head span { position: sticky; top: 0; z-index: 5; background: var(--bar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; font-size: 13.5px; border-bottom: .5px solid var(--line); }
.g-head span:first-child { left: 0; z-index: 6; }
.g-rail { position: sticky; left: 0; z-index: 4; background: var(--bg); grid-row: 2; grid-column: 1; height: var(--h); }
.g-rail span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 12px; color: var(--ink3); font-weight: 600; }
.g-rail span i { font-style: normal; font-size: 9.5px; margin-left: 1px; }
.g-col { position: relative; grid-row: 2; height: var(--h); border-left: .5px solid var(--line); }
.g-hl { position: absolute; left: 0; right: 0; border-top: .5px solid var(--line); }
.g-item { position: absolute; left: 3px; right: 3px; border-radius: 9px; padding: 6px 7px 6px 10px; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; background: color-mix(in srgb, var(--c) 15%, var(--card)); font-size: 12px; line-height: 1.22; }
.g-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5px; background: var(--c); }
.g-item b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 650; }
.g-item span { color: var(--ink2); font-size: 11px; }
.g-item.in { background: color-mix(in srgb, var(--c) 32%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--c); }
.g-item.past { opacity: .42; }
.g-item.live { box-shadow: inset 0 0 0 1.5px var(--live); }
.g-now { position: absolute; left: 40px; right: 0; height: 0; border-top: 2px solid var(--live); z-index: 3; pointer-events: none; }
.g-now::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

/* ------------------------------------------------------------ Today */
.sky-wrap { position: relative; height: calc(340px + var(--safe-t)); overflow: hidden; color: #fff; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-flag { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.21s); }
@keyframes flutter { 0%, 100% { transform: skewX(0) scaleY(1); } 50% { transform: skewX(-8deg) scaleY(.94); } }
.stars circle { animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--d); }
/* Save battery: the sky stops moving when it's scrolled away or a sheet covers it. */
.sky-wrap.paused *, html.sheet-open .sky-wrap * { animation-play-state: paused !important; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.sky-top { position: absolute; top: calc(var(--safe-t) + 8px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; max-width: 720px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.brand .flags { width: 46px; color: #fff; }
.sky-btns { display: flex; gap: 8px; }
.sky-wrap .gbtn { --glass: rgba(0, 0, 0, .22); --glass-edge: rgba(255, 255, 255, .25); color: #fff; }
.sky-text { position: absolute; left: 20px; right: 20px; bottom: 46px; max-width: 680px; margin: 0 auto; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.sky-kicker { font-size: 13.5px; font-weight: 650; opacity: .92; letter-spacing: .02em; }
.sky-title { font: 700 50px/.98 var(--display); letter-spacing: -.035em; margin-top: 6px; }
.sky-title span { font-weight: 500; opacity: .85; }
.sky-sub { font-size: 16.5px; margin-top: 10px; opacity: .96; max-width: 30em; }
.sky-chip { display: inline-flex; gap: 7px; align-items: center; margin-top: 14px; padding: 7px 13px; border-radius: 17px; background: rgba(0, 0, 0, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; text-shadow: none; }
.paper { position: relative; z-index: 2; margin: -28px auto 0; max-width: 720px; background: var(--bg); border-radius: 28px 28px 0 0; padding: 2px 16px 0; }
.paper > .sh:first-child { margin-top: 24px; }
.flags .flag { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); }

.daylines .dayline { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; text-align: left; }
.dl-d { width: 34px; text-align: center; flex: none; line-height: 1.05; }
.dl-d small { display: block; font-size: 11px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }
.dl-d b { font: 600 22px var(--display); }
.dl-main { flex: 1; min-width: 0; }
.dl-main small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 7px; }
.dl-main em { font-style: normal; color: var(--live); font-weight: 600; }
.dl-cta { color: var(--accent); font-weight: 650; font-size: 14px; flex: none; }
.dl-chev { color: var(--ink3); }
.tips .tip { padding: 13px 16px; }
.tips .tip b { display: block; font-weight: 650; }
.tips .tip span { display: block; color: var(--ink2); font-size: 14.5px; margin-top: 2px; }

.strip-track { position: relative; height: 24px; border-radius: 7px; background: var(--fill); overflow: hidden; }
.strip.compact .strip-track { height: 10px; border-radius: 5px; }
.strip-b { position: absolute; top: 0; bottom: 0; background: var(--c); border-radius: 4px; box-shadow: 0 0 0 1px var(--card); }
.strip-b.past { opacity: .35; }
.strip-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.strip-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--live); box-shadow: 0 0 0 1.5px var(--card); }
.strip-hours { position: relative; height: 15px; margin-top: 6px; font-size: 11px; color: var(--ink3); font-weight: 600; }
.strip-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.strip-hours span:first-child { left: 0; transform: none; }
.strip-hours span.r { right: 0; left: auto; transform: none; }

.upnext { display: block; background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.un-art { position: relative; aspect-ratio: 16 / 8.5; background: var(--fill); }
.un-art img, .un-art .img-ph { width: 100%; height: 100%; object-fit: cover; }
.un-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), transparent 45%); }
.un-badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 15px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 13.5px; font-weight: 650; }
.un-body { padding: 16px 18px 18px; }
.un-body h2 { font: 700 28px/1.08 var(--display); letter-spacing: -.02em; }
.un-where { color: var(--ink2); margin-top: 3px; }
.un-clock { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.ring { --p: 0; position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(var(--accent) calc(var(--p) * 1turn), var(--fill2) 0); }
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring b, .ring small { position: relative; }
.ring b { font: 700 21px/1 var(--display); letter-spacing: -.02em; }
.ring small { font-size: 11.5px; color: var(--ink3); font-weight: 600; margin-top: 3px; }
.un-steps { display: grid; gap: 10px; }
.un-steps small { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.un-steps b { font: 650 19px/1.1 var(--display); }
.un-status { margin-top: 16px; padding: 11px 14px; border-radius: 14px; font-weight: 600; font-size: 14.5px; }
.un-status.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.un-status.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.un-status.late { color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }
.un-left { margin-top: 8px; color: var(--ink2); }
.un-left b { font: 700 22px var(--display); color: var(--ink); }
.upnext .btn-row { margin-top: 14px; }
.empty-day b { display: block; font: 650 21px var(--display); }
.empty-day p { color: var(--ink2); margin-top: 4px; }

.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; scroll-padding: 16px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: none; scroll-snap-align: start; }
.nowcard { width: 236px; background: var(--card); border-radius: 18px; overflow: hidden; cursor: pointer; }
.nc-art { aspect-ratio: 16 / 9; background: var(--fill); }
.nc-art img { width: 100%; height: 100%; object-fit: cover; }
.nc-b { padding: 10px 13px 13px; }
.nc-b h3 { font-size: 15.5px; font-weight: 650; margin-top: 7px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-b p { color: var(--ink2); font-size: 13px; margin: 4px 0 7px; }

/* ------------------------------------------------------------ Discover */
.searchbar { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 12px; border-radius: 13px; background: var(--fill); color: var(--ink3); font-size: 16px; margin: 2px 0 18px; }
.ed { position: relative; width: min(84vw, 370px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .3s var(--spring); }
.ed:active { transform: scale(.98); }
.ed-art, .ed-art img, .ed-art .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .82)); }
.ed-top { position: absolute; left: 20px; right: 20px; top: 20px; }
.ed-top small { font-size: 14px; font-weight: 600; opacity: .88; }
.ed-top h3 { font: 700 32px/1.02 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.ed-bottom { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.ed-bottom p { font-size: 15px; opacity: .93; }
.ed-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.ed-thumbs { display: flex; }
.ed-thumbs img { width: 46px; height: 32px; border-radius: 7px; object-fit: cover; margin-right: -12px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }
.ed-row span { padding: 6px 12px; border-radius: 15px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 650; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type { position: relative; height: 88px; border-radius: 20px; padding: 14px 16px; background: color-mix(in srgb, var(--c) 15%, var(--card)); overflow: hidden; text-align: left; transition: transform .25s var(--spring); }
.type:active { transform: scale(.97); }
.type b { display: block; font: 650 19px var(--display); }
.types .type:last-child:nth-child(odd) { grid-column: 1 / -1; }
.type small { color: var(--ink2); font-size: 13.5px; }
.type-flag { position: absolute; right: 16px; top: 0; width: 22px; height: 38px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
:root.dark .c-class .type-flag, :root:not(.dark) .type.c-class { --c: #8f8270; }
.faces { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face { width: 72px; flex: none; text-align: center; }
.face img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto; }
.face span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; margin-top: 6px; line-height: 1.2; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px 12px; }
.poster { min-width: 0; cursor: pointer; -webkit-touch-callout: none; transition: transform .25s var(--spring); }
.poster.pressing { transform: scale(.96); }
.poster-art { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--fill); }
.poster-art img, .poster-art .img-ph { width: 100%; height: 100%; object-fit: cover; }
.poster-in { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.poster-seen { position: absolute; bottom: 7px; left: 7px; padding: 2px 8px; border: 1.5px solid #fff; border-radius: 5px; color: #fff; font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(0, 0, 0, .3); }
.poster-cat { display: block; margin-top: 9px; font-size: 12px; font-weight: 650; color: var(--c); }
.poster h3 { font-size: 15px; font-weight: 600; line-height: 1.25; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster p { font-size: 13px; color: var(--ink2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster .poster-when { color: var(--ink3); font-size: 12.5px; }
.col-hero { position: relative; height: 330px; color: #fff; background: var(--fill); }
.col-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .8)); }
.col-t { position: absolute; left: 20px; right: 20px; bottom: 22px; }
.col-t small { font-size: 14px; font-weight: 600; opacity: .88; }
.col-t h2 { font: 700 36px/1.02 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.col-t p { font-size: 15px; opacity: .92; margin-top: 8px; }
.person { text-align: left; }
.person-img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; margin: 4px auto 14px; }
.av.big { width: 104px; height: 104px; font-size: 34px; margin: 4px auto 14px; }
.person-bio { font-size: 16.5px; line-height: 1.55; margin: 16px 0 6px; }
.search-head { flex: none; padding: 16px 56px 12px 16px; border-bottom: .5px solid var(--line); }
.searchfield { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 13px; background: var(--fill); color: var(--ink3); }
.searchfield input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); }
.searchfield input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-sheet .sheet-x { top: 22px; }
.search-sheet .grab { display: none; }

/* ------------------------------------------------------------ My Plan */
.summary { background: var(--card); border-radius: 22px; padding: 18px 18px 16px; margin-top: 2px; }
.sum-big { display: flex; align-items: baseline; gap: 8px; }
.sum-big b { font: 700 58px/.95 var(--display); letter-spacing: -.04em; }
.sum-big span { font: 500 19px var(--display); color: var(--ink2); }
.sum-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: var(--ink2); font-size: 14.5px; }
.sum-facts b { color: var(--ink); font-weight: 650; }
.sum-alert { color: var(--live); margin-top: 12px; font-weight: 600; font-size: 14.5px; }
.day { margin-top: 34px; }
.dayh { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.dayh h2 { font: 650 27px/1.05 var(--display); letter-spacing: -.02em; }
.dayh h2 span { color: var(--ink3); font-weight: 450; }
.dayh small { display: block; color: var(--ink2); font-size: 14px; margin-top: 3px; }
.strip-card { margin-bottom: 6px; }
.ticket { --notch: 112px; position: relative; display: block; background: var(--card); border-radius: 20px; margin: 10px 0; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .25s var(--spring);
  -webkit-mask: radial-gradient(circle 10px at 0 var(--notch), #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 10px at 100% var(--notch), #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 var(--notch), #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 10px at 100% var(--notch), #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.ticket.pressing { transform: scale(.98); }
.tk-main { display: flex; gap: 13px; height: var(--notch); padding: 14px 14px 0; overflow: hidden; }
.tk-art { flex: none; }
.tk-art img, .tk-art .img-ph { width: 104px; height: 84px; border-radius: 11px; object-fit: cover; }
.ticket.seen .tk-art img { filter: saturate(.4); }
.tk-info { min-width: 0; }
.tk-cat { display: block; font-size: 12px; font-weight: 700; color: var(--c); }
.tk-info h3 { font: 650 18px/1.15 var(--display); letter-spacing: -.01em; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-info p { font-size: 13.5px; color: var(--ink2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tk-stub { display: flex; align-items: center; gap: 18px; margin: 0 16px; padding: 12px 0 14px; border-top: 1.5px dashed var(--line2); }
.tk-stub small { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; }
.tk-stub b { display: block; font: 650 19px/1.15 var(--display); white-space: nowrap; }
.tk-stub b i { font-style: normal; font-size: 12px; color: var(--ink2); margin-left: 2px; font-weight: 600; }
.tk-stub .grow { flex: 1; min-width: 0; }
.tk-add { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.tk-add[aria-pressed="false"] { background: var(--fill); color: var(--ink); }
.tk-progress { height: 3px; margin: -6px 16px 12px; border-radius: 2px; background: var(--fill2); overflow: hidden; }
.tk-progress i { display: block; height: 100%; background: var(--live); }
.ticket.is-live { box-shadow: inset 0 0 0 1.5px var(--live); }
.stamp { position: absolute; right: 16px; top: 16px; transform: rotate(-11deg); padding: 3px 11px; border: 2.5px solid var(--live); border-radius: 7px; color: var(--live); font: 800 15px var(--display); letter-spacing: .22em; text-transform: uppercase; opacity: .9; background: color-mix(in srgb, var(--card) 70%, transparent); animation: stamp .45s var(--spring); }
@keyframes stamp { from { transform: rotate(-11deg) scale(1.8); opacity: 0; } to { transform: rotate(-11deg) scale(1); opacity: .9; } }
.tk-extra { padding: 0 16px 14px; cursor: default; }
.xfer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-left: 30px; padding: 7px 0 7px 18px; border-left: 2px dotted var(--line2); font-size: 14px; color: var(--ink2); min-height: 36px; font-variant-numeric: tabular-nums; }
.xfer button { color: var(--accent); font-weight: 600; }
.xfer .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.xfer.k-overlap, .xfer.k-late { color: var(--live); border-left-color: var(--live); }
.xfer.k-qa, .xfer.k-tight { color: var(--warn); }
.xf-walk { display: inline-flex; align-items: center; gap: 5px; }
.resolve { margin: 12px 0; padding: 16px; border-radius: 22px; background: color-mix(in srgb, var(--live) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live) 28%, transparent); }
.rs-h b { display: block; font: 650 20px var(--display); color: var(--live); }
.rs-h span { display: block; color: var(--ink2); font-size: 14px; margin-top: 2px; }
.rs-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-top: 14px; }
.rs-opt { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; border-radius: 16px; background: var(--card); cursor: pointer; }
.rs-opt img, .rs-opt .img-ph { width: 100%; aspect-ratio: 16 / 10; height: auto; border-radius: 10px; object-fit: cover; margin-bottom: 4px; }
.rs-opt b { font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-opt small { color: var(--ink2); font-size: 12.5px; }
.rs-opt .chipbtn { margin-top: 6px; justify-content: center; }
.resolve > .text { margin-top: 12px; font-size: 14px; }
.plan-empty { padding-top: 34px; }
.stub-art { position: relative; height: 130px; width: 220px; margin: 0 auto 22px; }
.stub-art span { position: absolute; left: 50%; top: 50%; width: 150px; height: 76px; margin: -38px 0 0 -75px; border-radius: 14px; box-shadow: var(--shadow); -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.stub-art span:nth-child(1) { background: var(--c-talk); transform: rotate(-14deg) translate(-26px, 6px); }
.stub-art span:nth-child(2) { background: var(--c-doc); transform: rotate(8deg) translate(24px, -4px); }
.stub-art span:nth-child(3) { background: var(--c-narrative); transform: rotate(-2deg); }
.ap-sum { margin: 20px 0 10px; }
.ap-sum b { display: block; font: 650 24px var(--display); }
.ap-sum span { color: var(--ink2); font-size: 14.5px; }
.sticky-cta { position: sticky; bottom: 0; padding: 16px 0 calc(var(--safe-b) + 4px); margin-top: 8px; background: linear-gradient(transparent, var(--bg) 30%); }
.diary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.diary .dq { font-size: 14px; color: var(--ink2); margin-right: 4px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink3); transition: transform .25s var(--spring); }
.stars button .ico { width: 24px; height: 24px; }
.stars button.on { color: #e2a400; }
.stars button.on .ico { fill: currentColor; }
.stars button:active { transform: scale(1.25); }
.note { width: 100%; border: 0; border-radius: 12px; background: var(--fill); padding: 10px 12px; font-size: 15px; resize: none; outline: none; color: var(--ink); margin-top: 4px; }
.stars-s { color: #e2a400 !important; letter-spacing: 1px; }
.stars-s i { font-style: normal; color: var(--fill2); }

/* ------------------------------------------------------------ sheets */
#sheets { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-wrap > * { pointer-events: auto; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .38s; }
.sheet-wrap.open .sheet-bg { opacity: calc(1 - var(--drag, 0)); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 720px; max-height: calc(100dvh - var(--safe-t) - 12px); display: flex; flex-direction: column; background: var(--bg); border-radius: 28px 28px 0 0; transform: translateY(104%); transition: transform .45s var(--spring); overflow: hidden; box-shadow: 0 -12px 44px rgba(0, 0, 0, .28); }
.sheet.full { height: calc(100dvh - var(--safe-t) - 12px); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.instant .sheet, .sheet-wrap.dragging .sheet { transition: none; }
.sheet-wrap.closing .sheet { transition-duration: .32s; }
.grab { position: absolute; top: 0; left: 0; right: 60px; height: 26px; z-index: 6; touch-action: none; }
.grab::before { content: ''; position: absolute; top: 7px; left: calc(50% + 30px); width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(128, 128, 128, .45); }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 8; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--safe-b) + 28px); }
.pad { padding: 28px 18px 6px; }
.sheet-title { font: 700 30px/1.08 var(--display); letter-spacing: -.022em; padding-right: 44px; margin-bottom: 6px; }
.sheet .wrap { padding-bottom: 10px; }
.info-head .flags.big { width: 84px; color: var(--ink3); margin-bottom: 8px; }

/* Film page */
.film { position: relative; }
.f-sticky { position: sticky; top: 0; height: 0; z-index: 5; }
.f-sticky span { position: absolute; left: 0; right: 0; top: 0; height: 58px; padding: 18px 64px 0; text-align: center; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: .5px solid var(--line); opacity: clamp(0, calc((var(--st, 0) - 240) / 50), 1); }
.f-hero { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--fill); }
.f-hero img, .f-hero .img-ph { width: 100%; height: 100%; object-fit: cover; transform: translateY(calc(var(--st, 0) * .32px)); }
.f-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), transparent 26%, transparent 44%, color-mix(in srgb, var(--bg) 70%, transparent) 72%, var(--bg)); }
.f-titlebox { position: absolute; left: 18px; right: 18px; bottom: 10px; }
.f-cat { font-size: 13.5px; font-weight: 650; color: var(--c); }
.f-cat b { color: var(--accent); }
.f-title { font: 700 36px/1.02 var(--display); letter-spacing: -.028em; margin-top: 4px; text-wrap: balance; }
.f-alt { font: italic 500 18px var(--display); color: var(--ink2); margin-top: 3px; }
.f-body { padding: 6px 18px 22px; }
.f-by { font-size: 16px; color: var(--ink2); }
.f-by b { color: var(--ink); font-weight: 600; }
.cta-card { margin-top: 18px; background: var(--card); border-radius: 24px; padding: 16px; }
.cta-when b { display: block; font: 650 19px var(--display); }
.cta-when span { color: var(--ink2); font-size: 14.5px; }
.cta-row { display: flex; gap: 10px; margin-top: 14px; }
.pill { flex: 1; height: 52px; border-radius: 26px; background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: 16.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .25s var(--spring), background .25s, color .25s; }
.pill:active { transform: scale(.97); }
.pill.on { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }
.round { width: 52px; height: 52px; border-radius: 50%; background: var(--fill); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .2s var(--spring); }
.round:active { transform: scale(.9); }
.round.sm { width: 38px; height: 38px; }
.cta-clash { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--line); }
.cta-clash p { color: var(--live); font-weight: 600; font-size: 14px; flex: 1; min-width: 0; }
.cta-clash .text { white-space: nowrap; flex: none; }
.slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.slot-d { width: 40px; text-align: center; line-height: 1.05; flex: none; }
.slot-d small { display: block; font-size: 11px; font-weight: 700; color: var(--live); text-transform: uppercase; letter-spacing: .05em; }
.slot-d b { font: 600 23px var(--display); }
.slot-i { flex: 1; min-width: 0; }
.slot-i b { display: block; font-weight: 600; }
.slot-i span { display: block; font-size: 14px; color: var(--ink2); }
.slot-i .slot-alert { color: var(--live); font-weight: 600; margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; margin-top: 22px; padding: 16px 0; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.facts dd { font-weight: 600; font-size: 15px; margin-top: 1px; }
.f-sec { margin-top: 30px; }
.f-sec.tight { margin-top: 18px; }
.f-sec > h3 { font: 650 22px var(--display); letter-spacing: -.01em; margin-bottom: 10px; }
.f-lede { color: var(--ink2); font-size: 14.5px; margin-bottom: 10px; }
.f-sub { font: 650 15px var(--display); color: var(--ink2); margin: 14px 0 2px; }
.f-syn { font-size: 17.5px; line-height: 1.55; white-space: pre-line; }
.linkcard { display: flex; gap: 12px; align-items: center; padding: 10px 14px; width: 100%; text-align: left; color: var(--ink); }
.linkcard img, .linkcard .img-ph { width: 84px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; }
.linkcard span { flex: 1; min-width: 0; }
.linkcard b { display: block; font-weight: 600; line-height: 1.25; }
.linkcard small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 1px; }
.linkcard > .ico { color: var(--ink3); }
section .linkcard { background: var(--card); border-radius: 16px; }
.bio { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; width: 100%; text-align: left; }
.bio + .bio { border-top: .5px solid var(--line); }
.bio img, .bio .av { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.bio-t { flex: 1; min-width: 0; }
.bio-t b { display: block; font-weight: 650; }
.bio-t small { display: block; color: var(--ink3); font-size: 13px; }
.bio-p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink2); font-size: 15px; margin-top: 4px; }
.crew { display: grid; gap: 9px; font-size: 15px; }
.crew div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; }
.crew dt { color: var(--ink3); }
.crew dd { margin: 0; }
.laurels li { padding: 10px 0; border-bottom: .5px solid var(--line); font-size: 15px; }
.f-foot { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.trailer { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; margin-top: 4px; }
.trailer img { width: 100%; height: 100%; object-fit: cover; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; display: grid; place-items: center; transition: transform .25s var(--spring); }
.trailer:active .tr-play { transform: scale(.9); }
.tr-play .ico { width: 28px; height: 28px; margin-left: 3px; }
.tr-cap { color: var(--ink3); font-size: 13px; margin-top: 8px; }

/* Context menu */
.menu-wrap { position: fixed; inset: 0; z-index: 90; }
.menu-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .22s; }
.menu-wrap.open .menu-bg { opacity: 1; }
.menu-preview { position: fixed !important; margin: 0 !important; background: var(--card); border-radius: 18px; padding: 10px 12px !important; box-shadow: 0 16px 50px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); pointer-events: none; }
.menu-preview::before { display: none; }
.menu-wrap.open .menu-preview { transform: scale(1.03); }
.menu { position: fixed; width: 250px; border-radius: 18px; overflow: hidden; transform: scale(.85); opacity: 0; transform-origin: top left; transition: transform .3s var(--spring), opacity .2s; }
.menu-wrap.open .menu { transform: none; opacity: 1; }
.menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 16px; font-size: 16px; }
.menu button + button { box-shadow: inset 0 .5px 0 var(--line); }
.menu button.danger { color: var(--live); }

#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-space) + 4px); z-index: 95; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .35s var(--spring); background: rgba(28, 24, 20, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #f6f1e3; border-radius: 18px; padding: 12px 16px; font-size: 15px; display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 32px); width: max-content; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html.sheet-open #toast { bottom: calc(var(--safe-b) + 20px); }
#toast button { color: #7fa6ff; font-weight: 650; }
.confetti { position: fixed; z-index: 100; width: 7px; height: 10px; border-radius: 1.5px; pointer-events: none; }

/* ------------------------------------------------------------ map */
html[data-tab="map"] body { overflow: hidden; }
#p-map { padding: 0; }
.mapscreen { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: var(--bg); }
.map-top { position: absolute; top: calc(var(--safe-t) + 10px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 3; }
.map-top > * { pointer-events: auto; }
.map-title { padding: 9px 16px; border-radius: 20px; }
.map-title b { display: block; font: 700 18px var(--display); letter-spacing: .04em; }
.map-title span { display: block; font-size: 12.5px; color: var(--ink2); }
.map-ctrls { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; }
.map-ctrls button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); }
.map-ctrls button + button { box-shadow: inset 0 .5px 0 var(--line); }
.map-ctrls button[aria-pressed="true"] { color: var(--accent); }
.map-card { position: absolute; left: 12px; right: 12px; bottom: var(--tabbar-space); max-width: 540px; margin: 0 auto; border-radius: 28px; padding: 12px; z-index: 3; }
.rc-fields { position: relative; background: var(--fill); border-radius: 18px; }
.rc-field { display: flex; align-items: center; gap: 12px; padding: 7px 50px 7px 14px; width: 100%; text-align: left; }
.rc-field + .rc-field { box-shadow: inset 0 .5px 0 var(--line); }
.rc-field small { display: block; font-size: 12px; color: var(--ink3); font-weight: 600; }
.rc-field b { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-field span { min-width: 0; }
.rc-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.rc-dot.from { box-shadow: inset 0 0 0 3px var(--accent); }
.rc-dot.to { background: var(--accent); }
.rc-swap { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.rc-res { display: flex; align-items: baseline; gap: 10px; padding: 10px 4px 8px; }
.rc-res b { font: 700 28px/1 var(--display); letter-spacing: -.03em; flex: none; }
.rc-sum { display: none; font-weight: 600; color: var(--ink) !important; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card.mini { padding: 12px 16px 10px; cursor: pointer; }
.map-card.mini .rc-fields, .map-card.mini .chips, .map-card.mini .rc-res > span:not(.rc-sum), .map-card.mini .pc-film, .map-card.mini .pc .btn-row, .map-card.mini .pc-head p { display: none; }
.map-card.mini .rc-sum { display: block; }
.map-card.mini .rc-res { padding: 4px 2px 0; }
.map-card.mini::before { content: ''; position: absolute; top: 5px; left: 50%; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; background: var(--line2); }
#map.z-far .mk:not(.mk-venue) { opacity: 0; pointer-events: none; }
.mk:not(.mk-venue) { transition: opacity .2s; }
.rc-res span { color: var(--ink2); font-size: 14.5px; }
.map-card .chips { margin: 0 -12px; padding: 0 12px 2px; }
.map-card .chip { height: 30px; font-size: 14px; padding: 0 12px; }
.pc-head { display: flex; gap: 12px; align-items: flex-start; padding: 4px 2px 6px; }
.pc-head > div { flex: 1; min-width: 0; }
.pc-head h3 { font: 650 22px/1.1 var(--display); }
.pc-head p { color: var(--ink2); font-size: 14px; margin-top: 2px; }
.pc-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); flex: none; }
.pc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill2); color: var(--ink); flex: none; }
.pc-ic.k-venue { background: var(--vc); color: #fff; }
.pc-ic.k-me { background: #2f7be0; color: #fff; }
.pc-film { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; background: var(--fill); border-radius: 16px; margin-top: 8px; text-align: left; }
.pc-film small { display: block; font-size: 12.5px; color: var(--ink2); }
.pc-film b { display: block; font-weight: 600; }
.pc-film.live small { color: var(--live); font-weight: 600; }
.pc .btn-row { margin-top: 12px; }
.mk { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.mk-pin { position: relative; min-width: 46px; height: 30px; padding: 0 9px; border-radius: 15px; background: var(--vc); color: #fff; display: grid; place-items: center; font: 800 12.5px var(--display); letter-spacing: .04em; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .3s var(--spring); }
.mk-pin::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.mk-venue .mk-label { order: 2; margin-top: 8px; }
.mk-label { padding: 2px 8px; border-radius: 9px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11.5px; font-weight: 650; color: var(--ink); white-space: nowrap; margin-top: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.mk.sel .mk-pin { transform: scale(1.18) translateY(-3px); }
.mk-live { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--live); border: 2px solid #fff; display: none; animation: pulse 1.8s ease-out infinite; }
.mk.live .mk-live { display: block; }
.mk-dot { width: 23px; height: 23px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.mk.k-food .mk-dot { color: #b88a00; }
.mk.k-wc .mk-dot { color: #1f9b96; }
.mk.k-info .mk-dot, .mk.k-shop .mk-dot { color: #2f4fb8; }
.mk.k-gate .mk-dot { background: var(--ink); color: var(--bg); }
.mk.sel .mk-dot { box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, .28); }
.me { width: 18px; height: 18px; border-radius: 50%; background: #2f7be0; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47, 123, 224, .5); animation: me 2s ease-out infinite; }
@keyframes me { 0% { box-shadow: 0 0 0 0 rgba(47, 123, 224, .5); } 100% { box-shadow: 0 0 0 18px rgba(47, 123, 224, 0); } }
.maplibregl-ctrl-top-left { top: calc(var(--safe-t) + 70px) !important; }
.maplibregl-ctrl-attrib { font-size: 10px; background: var(--glass) !important; color: var(--ink2); }
.maplibregl-ctrl-attrib a { color: var(--ink2) !important; }

/* ------------------------------------------------------------ view transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: ease; }
html[data-vt="tab"]::view-transition-old(root) { animation: vt-out .16s ease both; }
html[data-vt="tab"]::view-transition-new(root) { animation: vt-in .28s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
/* Names only while a transition runs: a view-transition-name makes an element a backdrop root,
   which would stop the glass inside it from blurring what's behind. */
html[data-vt] #tabs { view-transition-name: tabs; }
html[data-vt^="day"] .sched-body { view-transition-name: sched-body; }
html[data-vt^="day"]::view-transition-old(root), html[data-vt^="day"]::view-transition-new(root) { animation: none; }
html[data-vt="day-next"]::view-transition-old(sched-body) { animation: slide-out-l .3s var(--spring) both; }
html[data-vt="day-next"]::view-transition-new(sched-body) { animation: slide-in-r .34s var(--spring) both; }
html[data-vt="day-prev"]::view-transition-old(sched-body) { animation: slide-out-r .3s var(--spring) both; }
html[data-vt="day-prev"]::view-transition-new(sched-body) { animation: slide-in-l .34s var(--spring) both; }
@keyframes slide-out-l { to { transform: translateX(-28%); opacity: 0; } }
@keyframes slide-in-r { from { transform: translateX(28%); opacity: 0; } }
@keyframes slide-out-r { to { transform: translateX(28%); opacity: 0; } }
@keyframes slide-in-l { from { transform: translateX(-28%); opacity: 0; } }
html[data-vt="film"]::view-transition-group(film-hero) { animation-duration: .46s; animation-timing-function: var(--spring); }
html[data-vt="film"]::view-transition-old(root) { animation: none; }
html[data-vt="film"]::view-transition-new(root) { animation: vt-in .3s ease both; }
html[data-vt="film"]::view-transition-image-pair(film-hero) { isolation: auto; }
html[data-vt="film"]::view-transition-old(film-hero), html[data-vt="film"]::view-transition-new(film-hero) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }

@media (min-width: 760px) {
  .ed { width: 340px; }
  /* Phones let the chips bleed to the screen edge; wider screens keep them in the column. */
  .subbar > .chips { margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .grid { margin-left: 0; margin-right: 0; border-radius: 14px; }
  .sky-title { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
