/* Nielix web player. Colours come from the active theme; this file only decides structure. */
body.player { min-height: 100vh; }
.pshell { display: flex; flex-direction: column; min-height: 100vh; }
.pshell main { flex: 1; padding: 0 0 2.5rem; max-width: none; }
.wrap { width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.wrap.narrow { max-width: 760px; }
.pshell main > .wrap.narrow { padding-top: 1.6rem; }
.pshell h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.25rem; padding: .55rem clamp(1rem, 4vw, 3rem);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx);
  border-bottom: 1px solid var(--glass-line); color: var(--glass-text);
}
.topbar .brand { padding: 0; flex: none; }
.topbar .brand .logo { height: 1.9rem; }
.topnav { display: flex; gap: .15rem; min-width: 0; }
.topnav .navlink, .topnav a { display: flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 99px; color: var(--glass-muted); text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--glass-text); background: var(--glass-soft); }
.topnav a[aria-current="page"] { color: var(--glass-text); background: var(--glass-soft); box-shadow: inset 0 -2px 0 var(--glass-accent); }
.topbar .spacer { flex: 1; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .2rem .4rem; border-radius: 99px; color: var(--glass-text); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--glass-soft); }
.usermenu .pop {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 220px; display: flex; flex-direction: column; gap: .15rem; padding: .5rem;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx);
  border: 1px solid var(--glass-line); border-radius: var(--radius-lg); box-shadow: var(--pop-shadow);
}
.usermenu .pop a { padding: .5rem .7rem; border-radius: var(--radius); color: var(--glass-text); text-decoration: none; }
.usermenu .pop a:hover { background: var(--glass-soft); }
.usermenu .pop a.switch { color: var(--glass-accent); }
.usermenu .pop .row { padding: .3rem .4rem; }
.usermenu .pop button { background: transparent; color: var(--glass-text); border-color: var(--glass-line); }
.powered { display: flex; justify-content: center; padding: 1.5rem 1rem 2rem; }
.pill { display: inline-block; padding: .25rem .9rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .04em; }


/* ---------- cards and rows ---------- */
.rowsec, .wslot > .wrap > h2.wtitle { margin-top: 1.6rem; }
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.rowhead h2, .wtitle { margin: 0; font-size: 1.35rem; }
.rowhead h2 a { color: var(--text); text-decoration: none; }
.rowhead h2 a:hover { color: var(--accent); }
.arrows { display: flex; gap: .25rem; }
.arrows button { padding: .2rem .45rem; }
.scroller {
  display: flex; gap: .9rem; overflow-x: auto; padding: .3rem .1rem 1rem; margin: 0 -.1rem; scroll-snap-type: x proximity; scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.scroller > * { scroll-snap-align: start; flex: none; }
.scroller:focus { outline: none; }

a.card, .cardwrap { --cw: 168px; position: relative; display: block; width: var(--cw); padding: 0; margin: 0; background: none; border: 0; border-radius: 0; color: var(--text); text-decoration: none; }
a.card.wide, .cardwrap.wide { --cw: 292px; }
a.card.small, .cardwrap.small { --cw: 132px; } a.card.wide.small, .cardwrap.wide.small { --cw: 232px; }
a.card.large, .cardwrap.large { --cw: 212px; } a.card.wide.large, .cardwrap.wide.large { --cw: 360px; }
.cardwrap > a.card { width: 100%; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem .9rem; padding: .3rem 0 1rem; }
.cardgrid a.card, .cardgrid .cardwrap { width: auto; }
.frame { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: var(--radius-lg); background: var(--surface2); border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease; }
.wide .frame { aspect-ratio: 16 / 9; }
a.card:hover .frame, a.card:focus-visible .frame { transform: translateY(-3px); border-color: var(--accent); }
.frame .img, .itemhero .img, .slide .img, .banner .img, .epthumb .img { position: absolute; inset: 0; display: grid; place-items: center; font: 400 2.4rem var(--font-head); color: var(--muted); }
.frame img, .itemhero img, .slide img, .banner img, .epthumb img, .itempage .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { display: block; padding-top: .45rem; line-height: 1.3; }
.cap b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tick, .count { position: absolute; top: .45rem; right: .45rem; display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 99px; font: 700 .78rem var(--font); background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.tick .ic { width: .9rem; height: .9rem; }
.tick.inline { position: static; display: inline-grid; margin-left: .5rem; vertical-align: middle; width: 1.3rem; min-width: 0; height: 1.3rem; padding: 0; }
.num { position: absolute; left: .4rem; bottom: -.2rem; font: 700 3.6rem/1 var(--font-head); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .55); }
.prog .bar { display: block; height: 100%; background: var(--accent); }
.playbtn {
  position: absolute; right: .55rem; bottom: 3.1rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s; box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.cardwrap.wide .playbtn { bottom: 3.3rem; }
.cardwrap:hover .playbtn, .cardwrap:focus-within .playbtn { opacity: 1; transform: none; }
@media (hover: none) { .playbtn { opacity: .92; transform: none; } }
.playbtn.static { opacity: 0; inset: 50% auto auto 50%; right: auto; bottom: auto; translate: -50% -50%; }
.epthumb:hover .playbtn.static, .epthumb:focus-visible .playbtn.static { opacity: 1; transform: none; }

/* ---------- widgets ---------- */
.home { padding-bottom: 1rem; }
.wslot > .wrap { padding-top: .1rem; }
.hero { position: relative; overflow: hidden; height: clamp(320px, 52vw, 620px); background: var(--surface2); }
.hero.inset { margin: 1rem clamp(1rem, 4vw, 3rem) 0; border-radius: var(--radius-lg); }
.slide { position: absolute; inset: 0; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 52%, rgba(0, 0, 0, 0) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(0, 0, 0, 0) 9%), linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, 0) 85%); pointer-events: none; }
.slidetext { position: absolute; z-index: 1; left: clamp(1rem, 4vw, 3rem); bottom: clamp(2.8rem, 7vw, 4.5rem); width: min(620px, calc(100% - 2rem)); color: #fff; }
.slidetext h2 { font-size: clamp(1.7rem, 4vw, 3rem); margin: 0 0 .3rem; }
.slidetext h2 a { color: #fff; text-decoration: none; }
.slidetext .kind { display: inline-block; margin-bottom: .4rem; padding: .05rem .6rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.pshell .slidetext p.meta { color: rgba(255, 255, 255, .8); }
.slidetext .ov { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: rgba(255, 255, 255, .88); max-width: 52ch; }
.slidetext .row { margin-top: .9rem; }
.hero .dots { position: absolute; z-index: 2; right: clamp(1rem, 4vw, 3rem); bottom: 1.2rem; display: flex; gap: .45rem; }
.hero .dot { width: .7rem; height: .7rem; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; }
.hero .dot[aria-current="true"] { background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { padding: .65rem 1.4rem; font-size: 1.05rem; }
.btn.small { padding: .2rem .55rem; font-size: .85rem; }
.slidetext .btn:not(.primary) { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); }
.banner { position: relative; display: block; overflow: hidden; aspect-ratio: 21 / 6; border-radius: var(--radius-lg); background: var(--surface2); margin-top: 1.6rem; color: #fff; text-decoration: none; }
.banner .cap { position: absolute; left: 1.2rem; bottom: .8rem; padding: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 60%); }
.banner .cap { z-index: 1; }
.banner .cap b { font: 400 1.6rem var(--font-head); }
.banner .cap small { color: rgba(255, 255, 255, .85); }
.libtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; margin-top: .6rem; }
.libtile { display: grid; gap: .2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.libtile:hover, .libtile:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.libtile b { font: 400 1.3rem var(--font-head); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.chip { display: inline-flex; align-items: center; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; cursor: pointer; }
button.chip { font: inherit; font-size: .9rem; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wtext { margin-top: 1.4rem; font: 400 1.5rem var(--font-head); }
.wclock { margin-top: 1rem; font: 400 2.6rem var(--font-head); letter-spacing: .02em; }
.wspacer { width: 100%; }

/* ---------- weather widgets ---------- */
:root {
  --wx-sun: #ffc24a; --wx-moon: #dfe6f5; --wx-cloud: #c9d1dc; --wx-cloud-edge: #e6ebf2; --wx-cloud-dim: #8793a3; --wx-cloud-dark: #7a8594;
  --wx-drop: #5fb0ff; --wx-snow: #e8f3ff; --wx-bolt: #ffd34a; --wx-hail: #bfe6ff; --wx-gust: #9fb3c8; --wx-fog: #9aa6b4;
  --wx-cold: #5fb0ff; --wx-warm: #ffb347; --wx-wet: #7cc0ff;
}
:root[data-theme="light"] {
  --wx-sun: #f0a000; --wx-moon: #54638a; --wx-cloud: #b9c5d6; --wx-cloud-edge: #8493a8; --wx-cloud-dim: #8d9bb0; --wx-cloud-dark: #7487a0;
  --wx-drop: #2a7bd6; --wx-snow: #4f86c6; --wx-bolt: #e09a00; --wx-hail: #5a9ad8; --wx-gust: #6b7f99; --wx-fog: #7f8da0;
  --wx-cold: #2a7bd6; --wx-warm: #e8890c; --wx-wet: #1f6bc4;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --wx-sun: #f0a000; --wx-moon: #54638a; --wx-cloud: #b9c5d6; --wx-cloud-edge: #8493a8; --wx-cloud-dim: #8d9bb0; --wx-cloud-dark: #7487a0;
    --wx-drop: #2a7bd6; --wx-snow: #4f86c6; --wx-bolt: #e09a00; --wx-hail: #5a9ad8; --wx-gust: #6b7f99; --wx-fog: #7f8da0;
    --wx-cold: #2a7bd6; --wx-warm: #e8890c; --wx-wet: #1f6bc4;
  }
}
.wxicon { width: 2.6rem; height: 2.6rem; flex: none; overflow: visible; }
.wxicon .wx-sun { fill: var(--wx-sun); }
.wxicon .wx-ray { stroke: var(--wx-sun); stroke-width: 2.4; stroke-linecap: round; }
.wxicon .wx-moon, .wxicon .wx-star { fill: var(--wx-moon); }
.wxicon .wx-cloud { fill: var(--wx-cloud); stroke: var(--wx-cloud-edge); stroke-width: 1; stroke-linejoin: round; }
.wxicon .wx-cloud.dim { fill: var(--wx-cloud-dim); }
.wxicon .wx-cloud.dark { fill: var(--wx-cloud-dark); }
.wxicon .wx-drop { stroke: var(--wx-drop); stroke-width: 2.6; stroke-linecap: round; }
.wxicon .wx-drop.thin { stroke-width: 1.7; }
.wxicon .wx-drop.thick { stroke-width: 3.2; }
.wxicon .wx-flake line { stroke: var(--wx-snow); stroke-width: 1.7; stroke-linecap: round; }
.wxicon .wx-bolt { fill: var(--wx-bolt); }
.wxicon .wx-hail { fill: var(--wx-hail); }
.wxicon .wx-gust { fill: none; stroke: var(--wx-gust); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wxicon .wx-fog { stroke: var(--wx-fog); stroke-width: 2.6; stroke-linecap: round; }

.wx { min-width: 0; margin-top: 1.4rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); display: grid; gap: .8rem; }
.wx > *, .wxhourly { min-width: 0; }
.wxs-small { font-size: .9rem; }
.wxs-large { font-size: 1.12rem; }
.wx-now.wx-card { max-width: 34rem; }
.wx-now.wx-large { max-width: 44rem; }
.wx-now.wx-pill { display: inline-grid; padding: 0; border: 0; background: none; margin-top: 1.1rem; }
.wxhead { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.wxtitle { margin: 0; font: 400 1.2rem var(--font-head); }
.wxtitle small { font: 400 .85rem var(--font); }
.wxstale { color: var(--warn); font-size: .8rem; }
.wxmsg { margin: 0; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.wxmsg a { color: var(--accent); }
.wxpill { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .95rem .3rem .45rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); max-width: 100%; }
.wxpill .wxicon { width: 1.9rem; height: 1.9rem; }
.wxpill b { font-size: 1.15rem; }
.wxpill .wxcity { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxnow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wxnow > .wxicon { width: 4.4rem; height: 4.4rem; }
.wxtemp { font: 400 3.2rem/1 var(--font-head); letter-spacing: -.01em; }
.wxdesc { display: grid; gap: .2rem; min-width: 10rem; flex: 1; }
.wxcond { font-size: 1.1rem; }
.wxsum { color: var(--accent); }
.wxsum.big { margin: 0; font: 400 1.7rem/1.2 var(--font-head); color: var(--text); }
.wxfacts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; color: var(--muted); font-size: .92rem; }
.wxfacts b { color: var(--text); font-weight: 600; }
.wx-large .wxnow > .wxicon { width: 7rem; height: 7rem; }
.wx-large .wxtemp { font-size: 5.2rem; }
.wxsep { height: 1px; background: var(--line); }

.wxscroll { overflow-x: auto; padding-bottom: .3rem; }
.wxscroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wxinner { min-width: calc(var(--n, 12) * 3.5rem); }
.wxcols { display: grid; text-align: center; }
.wxc { display: grid; justify-items: center; gap: .15rem; padding: .1rem 0; }
.wxc .wxicon { width: 2.1rem; height: 2.1rem; }
.wxc small { color: var(--muted); }
.wxline { width: 100%; height: 3.2rem; display: block; overflow: visible; }
.wxlinepath { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.wxbars { width: 100%; height: 2rem; display: block; }
.wxbar { fill: var(--wx-drop); }
.wxbar.none { fill: var(--line); }
.wxpr small { min-height: 1.1em; font-size: .75rem; color: var(--muted); }
.wxpr small.wet { color: var(--wx-wet); font-weight: 600; }
.wxlegend { display: block; }

.wxdays { display: grid; margin: 0; padding: 0; list-style: none; }
.wxday { display: grid; grid-template-columns: 3.4rem 2.4rem 4rem 2.4rem minmax(3rem, 1fr) 2.4rem; align-items: center; gap: .3rem .7rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.wxday:first-child { border-top: 0; }
.wxday .wxicon { width: 2.1rem; height: 2.1rem; }
.wxdow::first-letter { text-transform: uppercase; }
.wxdp { color: var(--wx-wet); font-size: .85rem; text-align: right; }
.wxlo { color: var(--muted); text-align: right; }
.wxhi { font-weight: 600; }
.wxrange { position: relative; height: .45rem; border-radius: 99px; background: var(--surface2); }
.wxrange i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--wx-cold), var(--wx-warm)); }
.wxsun { grid-column: 2 / -1; margin-top: -.15rem; }

.wxrain { display: grid; gap: .6rem; }
.wxrbars { display: flex; gap: .6rem; align-items: stretch; height: 7.5rem; }
.wxrcol { flex: 1; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: .15rem; min-width: 0; }
.wxrb { width: 100%; display: flex; align-items: flex-end; border-radius: 7px; background: var(--surface2); overflow: hidden; }
.wxrb i { display: block; width: 100%; border-radius: 7px; background: var(--line); }
.wxrb.wet i { background: var(--wx-drop); }
.wxrcol small { color: var(--muted); font-size: .78rem; min-height: 1.1em; }
.wxrcol .wxrmm { color: var(--wx-wet); }

@media (max-width: 640px) {
  .wx { padding: .85rem .9rem; }
  .wxtemp { font-size: 2.7rem; }
  .wx-large .wxtemp { font-size: 4rem; }
  .wx-large .wxnow > .wxicon { width: 5.2rem; height: 5.2rem; }
  .wxday { grid-template-columns: 2.8rem 2.1rem 3.2rem 2.1rem minmax(2rem, 1fr) 2.1rem; gap: .25rem .5rem; }
  .wxsum.big { font-size: 1.4rem; }
}

/* ---------- collections and search ---------- */
.collhead { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1rem; }
.collhead h1 { margin: 0; }
.collhead .spacer { flex: 1; }
.collhead select { width: auto; min-width: 10rem; }
.check.inline { display: inline-flex; align-items: center; gap: .4rem; }
.more { display: flex; justify-content: center; padding: 1rem 0 2rem; min-height: 1px; }
.searchbox { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 1.2rem; padding: .3rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.searchbox:focus-within { border-color: var(--accent); }
.searchbox input[type=search] { flex: 1; border: 0; background: transparent; font-size: 1.15rem; padding: .5rem 0; min-width: 0; }
.searchbox input:focus { outline: none; }

/* ---------- item page ---------- */
.itemhero { position: relative; height: clamp(220px, 42vw, 520px); background: var(--surface2); overflow: hidden; }
.itemhero .shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(0, 0, 0, 0) 70%); }
.itemmain { position: relative; display: grid; grid-template-columns: clamp(130px, 18vw, 250px) 1fr; gap: clamp(1rem, 3vw, 2.2rem); margin-top: clamp(-190px, -14vw, -70px); align-items: start; }
.itempage .poster { aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface2); box-shadow: var(--pop-shadow); position: relative; padding: 0; }
.itempage .poster .img { position: absolute; inset: 0; display: grid; place-items: center; font: 400 3rem var(--font-head); color: var(--muted); }
.itempage .poster:hover { transform: none; border-color: var(--line); }
.itemtext { padding-top: clamp(.5rem, 6vw, 5.5rem); min-width: 0; }
.itemtext h1 { margin-bottom: .2rem; }
.tagline { color: var(--muted); font-style: italic; }
.pshell p.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; color: var(--muted); margin: 0 0 .4rem; }
.rated { display: inline-block; padding: 0 .4rem; border: 1px solid var(--muted); border-radius: 4px; font-size: .78rem; }
.actions { margin: 1rem 0; gap: .6rem; }
.actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.ov.full { max-width: 70ch; line-height: 1.6; }
.seasontabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1rem; }
.episodes { padding-bottom: 1rem; }
.eprow { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.epthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface2); }
.eptext h3 { margin: 0 0 .2rem; font: 600 1.05rem var(--font); }
.eptext h3 a { color: var(--text); text-decoration: none; }
.eptext h3 a:hover { color: var(--accent); }
.eptext .ov { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- profiles ---------- */
.who-card { width: min(720px, 94vw); }
.ptiles { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; padding: 1.2rem 0 1.6rem; }
.ptile { display: grid; justify-items: center; align-content: start; gap: .4rem; width: 8.5rem; padding: .9rem .4rem; background: transparent; border-color: transparent; border-radius: var(--radius-lg); color: var(--text); }
.ptile:hover:not(:disabled) { background: var(--surface2); border-color: var(--line); }
.ptile.current { border-color: var(--accent); }
.ptile small { color: var(--muted); text-align: center; }
.stack.indent > * + * { margin-top: .4rem; }

/* ---------- watch ---------- */
.watch { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; }
.watch:focus { outline: none; }
.watch.idle { cursor: none; }
.pvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.captions {
  position: absolute; left: 6%; right: 6%; bottom: 9%; display: flex; flex-direction: column; align-items: center; gap: .1em; text-align: center; pointer-events: none;
  font: 600 clamp(16px, 2.4vw, 34px)/1.3 var(--font); color: #fff; transition: bottom .2s;
}
.watch:not(.idle) .captions { bottom: 17%; }
.capline { padding: .02em .35em; background: var(--cap-bg, transparent); border-radius: 3px; }
.captions[data-edge="outline"] .capline { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 6px #000; }
.captions[data-edge="shadow"] .capline { text-shadow: 2px 2px 4px #000; }
.captions[data-edge="none"] .capline { text-shadow: none; }
.pui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; transition: opacity .25s; }
.pui > * { pointer-events: auto; }
.watch.idle .pui { opacity: 0; pointer-events: none; }
.watch.idle .pui > * { pointer-events: none; }
.ptop { display: flex; align-items: center; gap: .8rem; padding: max(.8rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); }
.ptitle { display: grid; min-width: 0; }
.ptitle b { font: 400 1.25rem var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptitle small, .watch .muted, .remain { color: rgba(255, 255, 255, .75); }
.pbottom { padding: 3rem max(1rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0)); }
.prow { display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
.prow .spacer { flex: 1; }
.pgroup { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.pgroup:last-child { gap: .15rem; }
.fromstart .ic { width: 1em; height: 1em; vertical-align: -.15em; }
.pbtn[aria-expanded="true"], .pbtn.on { background: rgba(255, 255, 255, .2); color: var(--accent); }
@media (max-width: 760px) { .prow { flex-wrap: wrap; row-gap: 0; } .prow .spacer { display: none; } .pgroup:last-child { margin-left: auto; } }
.pbtn, .watch .bigplay { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; flex: none; }
.pbtn:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.pbtn .ic { width: 1.45rem; height: 1.45rem; }
.watch :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.time { font-variant-numeric: tabular-nums; font-size: .92rem; }
.volume { width: 90px; flex: none; accent-color: #fff; }
.seekwrap { position: relative; padding: .5rem 0; }
.track { position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; pointer-events: none; }
.buffered { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .35); }
.seek { position: relative; display: block; width: 100%; height: 1.2rem; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), transparent var(--p, 0%)); }
.seek::-moz-range-track { height: 5px; border-radius: 3px; background: transparent; }
.seek::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--accent); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.tpreview { position: absolute; bottom: 2.1rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .25rem; pointer-events: none; }
.tthumb { border: 2px solid #fff; border-radius: 4px; background-color: #111; background-repeat: no-repeat; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.ttime { padding: .05rem .5rem; border-radius: 4px; background: rgba(0, 0, 0, .75); font-size: .85rem; font-variant-numeric: tabular-nums; }
.spinner { position: absolute; left: 50%; top: 50%; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch .bigplay { position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; background: rgba(0, 0, 0, .55); }
.watch .bigplay .ic { width: 2.4rem; height: 2.4rem; }
.pmessage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, 90vw); padding: 1.4rem 1.6rem; text-align: center; background: rgba(15, 12, 10, .9); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); }
.pmessage .row { justify-content: center; }
.pmessage button, .upnext button, .skip-seg { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; }
.pmessage button.primary, .upnext button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.skip-seg { position: absolute; right: max(1.2rem, env(safe-area-inset-right)); bottom: 8.5rem; padding: .6rem 1.2rem; border-radius: var(--radius); background: rgba(15, 12, 10, .82); font-size: 1rem; }
.skip-seg:hover { background: #fff; color: #000; }
.upnext { position: absolute; right: max(1.2rem, env(safe-area-inset-right)); bottom: 8.5rem; display: grid; gap: .6rem; padding: 1rem 1.2rem; max-width: min(340px, 86vw); background: rgba(15, 12, 10, .88); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-lg); }
.pmenu { position: absolute; right: max(1rem, env(safe-area-inset-right)); bottom: 6.2rem; width: min(300px, 90vw); max-height: 60vh; overflow-y: auto; padding: .5rem; background: rgba(15, 12, 10, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
.mgroup { padding: .3rem 0; }
.mgroup + .mgroup { border-top: 1px solid rgba(255, 255, 255, .14); }
.mgroup h4 { margin: .2rem .6rem .3rem; font: 600 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pmenu button { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .45rem .6rem; border: 0; border-radius: var(--radius); background: transparent; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.pmenu button:hover { background: rgba(255, 255, 255, .14); }
.tickc { display: inline-block; width: 1.1rem; flex: none; color: var(--accent); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .topbar { gap: .5rem; flex-wrap: wrap; padding-top: .45rem; padding-bottom: .3rem; }
  .topbar .brand .logo { height: 1.6rem; }
  .topnav { display: none; }
  .pshell { padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  .searchlink .nl { display: none; }
  .usermenu .who { display: none; }
  .itemmain { grid-template-columns: 1fr; margin-top: -90px; }
  .itempage .poster { width: 130px; }
  .itemtext { padding-top: 0; }
  .eprow { grid-template-columns: 120px 1fr; gap: .7rem; }
  .eptext .ov { -webkit-line-clamp: 2; }
  a.card, .cardwrap { --cw: 130px; } a.card.wide, .cardwrap.wide { --cw: 224px; }
  .cardgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem .6rem; }
  .banner { aspect-ratio: 16 / 7; }
  .volume, .watch .muted, #vol { display: none; }
  .slide::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .15) 100%); }
  .hero { height: clamp(300px, 90vw, 460px); }
}
@media (prefers-reduced-motion: reduce) {
  .frame, .playbtn, .libtile, .pui, .captions { transition: none; }
  .spinner { animation-duration: 3s; }
}
.auth-card > .row.between { margin-bottom: 1rem; }

/* extensions: Twitch and YouTube cards, the embedded player and the link flow */
.pbadge { position: absolute; left: .45rem; top: .45rem; padding: .08rem .45rem; border-radius: 4px; font: 700 .72rem var(--font); letter-spacing: .04em; background: #d6213a; color: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.linkcard { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 1rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.livepage { max-width: 1200px; }
.liveframe { position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 1rem 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--line); }
.livenote { margin: 1rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.2rem 1.4rem; max-width: 46rem; }
.livenote p { margin: 0; }
.liveframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.linkcode { font: 700 2.2rem/1.2 var(--font-mono, monospace); letter-spacing: .25em; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); display: inline-block; }
.svc { display: grid; gap: .6rem; }
.svc + .svc { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pshell main > .livepage { padding-top: 1.4rem; } .livepage h1 { margin: .8rem 0 .2rem; }

/* channels: picker tiles, guide and the live player */
.chnum { display: inline-grid; place-items: center; min-width: 1.9rem; padding: 0 .4rem; height: 1.45rem; margin-right: .5rem; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 .8rem var(--font); }
.chnum.big { min-width: 2.8rem; height: 2.2rem; font-size: 1.25rem; margin-right: 0; }
.chlive { padding: .08rem .45rem; border-radius: 4px; background: #d6213a; color: #fff; font: 700 .7rem var(--font); letter-spacing: .08em; }
.chpage h1 { margin-bottom: 1rem; }
.chguide { display: flex; align-items: center; gap: .5rem; margin: 2rem 0 .8rem; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem 1rem; }
.chtile { display: block; color: var(--text); text-decoration: none; }
.chtile .frame { aspect-ratio: 16 / 9; }
.chtile:hover .frame, .chtile:focus-visible .frame { transform: translateY(-3px); border-color: var(--accent); }
.chtile .chnum { position: absolute; left: .5rem; top: .5rem; margin: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.chtile .chlive { position: absolute; right: .5rem; top: .5rem; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.frame .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .45); }
.frame .prog .bar, .chinfo .prog .bar { display: block; height: 100%; background: var(--accent); }
.chcap { display: grid; gap: .1rem; padding: .5rem .1rem 0; min-width: 0; }
.chcap b, .chcap .chnow, .chcap small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chcap .chnow { font-weight: 600; }
.chcap small { color: var(--muted); }

.guide { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.gscroll { overflow-x: auto; }
.gcanvas { position: relative; padding-left: 170px; box-sizing: content-box; }
.gruler { position: relative; height: 2rem; border-bottom: 1px solid var(--line); }
.gruler span { position: absolute; top: .45rem; padding-left: .4rem; font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line); height: 1.5rem; }
.grow { position: relative; height: 3.6rem; border-bottom: 1px solid var(--line); }
.grow:last-child { border-bottom: 0; }
.glabel { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; width: 170px; height: 100%; margin-left: -170px; padding: 0 .6rem; box-sizing: border-box; background: var(--surface2); border-right: 1px solid var(--line); color: var(--text); text-decoration: none; }
.glabel b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gline { position: absolute; left: 0; top: 0; height: 100%; }
.gcell { position: absolute; top: 4px; bottom: 4px; display: grid; align-content: center; gap: 0; padding: 0 .5rem; overflow: hidden; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-sizing: border-box; }
.gcell b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcell:hover, .gcell:focus-visible { border-color: var(--accent); }
.gcell.now { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
/* a channel without a guide: one thin continuous bar, no time range */
.gcell.synth { top: 14px; bottom: 14px; display: flex; align-items: center; gap: .7rem; background: transparent; border-style: dashed; }
.gcell.synth small { color: var(--muted); }
.gcell.synth.now { box-shadow: none; }
.gnow { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: 170px; background: #d6213a; pointer-events: none; z-index: 2; }

.chlivewatch .chnum.big { margin: 0; }
.chlivewatch .ptitle { min-width: 0; }
.chinfo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.4rem; align-items: end; padding-bottom: .6rem; }
.chnowbox, .chnextbox { display: grid; gap: .1rem; min-width: 0; }
.chnowbox b, .chnextbox b { font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chnowbox small, .chnextbox small { color: rgba(255, 255, 255, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chlabel { font: 700 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.chwhen { font-size: .85rem; color: rgba(255, 255, 255, .7); }
.chinfo .prog.wide { position: relative; display: block; height: 4px; margin-top: .4rem; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.chnextbox { opacity: .85; }
.chosd { position: absolute; left: max(1.6rem, env(safe-area-inset-left)); top: max(5rem, 12%); display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem; border-radius: var(--radius-lg); background: rgba(15, 12, 10, .78); color: #fff; font-size: 1.2rem; }
.chosd[hidden] { display: none; }
.chpick { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; width: min(400px, 94vw); background: rgba(15, 12, 10, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-left: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.chpick[hidden] { display: none; }
.chpickhead { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.chpicklist { overflow-y: auto; padding: .6rem; display: grid; gap: .5rem; }
.chitem { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .8rem; align-items: center; width: 100%; padding: .4rem; border: 1px solid transparent; border-radius: var(--radius-lg); background: transparent; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.chitem:hover, .chitem:focus-visible { background: rgba(255, 255, 255, .1); }
.chitem[aria-current="true"] { border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.chitem .frame { aspect-ratio: 16 / 9; border-color: rgba(255, 255, 255, .18); background: #222; }
.chitem .chcap { padding: 0; }
.chitem .chcap small { color: rgba(255, 255, 255, .65); }
@media (max-width: 760px) {
  .chinfo { grid-template-columns: 1fr; gap: .4rem; }
  .chnextbox { display: none; }
  .chitem { grid-template-columns: 112px minmax(0, 1fr); }
  .gcanvas { padding-left: 120px; } .glabel { width: 120px; margin-left: -120px; } .gnow { margin-left: 120px; }
}
.chlivewatch .pmenu { bottom: 8.6rem; }
.menunote { margin: .3rem .6rem; font-size: .85rem; }
.chlivewatch:not(.idle) .captions { bottom: 24%; }

/* home widget: live channels (tiles, list, guide, now). Colours come from the theme variables, so both themes work. */
.chw { --chw: 260px; --chr: var(--radius-lg); }
.chw.small { --chw: 200px; } .chw.large { --chw: 340px; }
.chw .frame { border-radius: var(--chr); }
.chtiles .chtile { width: var(--chw); }
.chtiles .chtile .frame { aspect-ratio: 16 / 9; }
.chw .muted, .chw .empty { color: var(--muted); }

.chlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: .5rem .9rem; }
.chli { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .45rem .6rem .45rem .45rem; border: 1px solid var(--line); border-radius: var(--chr); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.chli:hover, .chli:focus-visible { border-color: var(--accent); }
.chli .frame { flex: none; width: 5.6rem; aspect-ratio: 16 / 9; border-radius: calc(var(--chr) * .6); }
.chli .chnum { flex: none; margin: 0; }
.chlitext { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.chlitext b, .chlitext .chnow, .chlitext small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chlitext .chnow { font-weight: 600; }
.chlitext small { color: var(--muted); }
.chli .chlive { flex: none; }

.chguidew { display: grid; gap: .6rem; }
.chg { display: flex; align-items: stretch; gap: .6rem; min-width: 0; }
.chglabel { flex: none; display: flex; align-items: center; width: 10.5rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: var(--chr); background: var(--surface2); color: var(--text); text-decoration: none; min-width: 0; }
.chglabel b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chglabel:hover, .chglabel:focus-visible { border-color: var(--accent); }
.chgchips { display: flex; gap: .45rem; overflow-x: auto; min-width: 0; flex: 1; padding-bottom: .2rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; align-items: stretch; }
.chgchip { position: relative; flex: none; display: grid; align-content: center; gap: .05rem; width: 12rem; padding: .45rem .7rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--chr); background: var(--surface); color: var(--text); text-decoration: none; }
.chgchip b, .chgchip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chgchip small, .chgtime { color: var(--muted); font-size: .8rem; }
.chgchip.now { border-color: var(--accent); background: var(--surface2); }
.chgchip.now .chgtime { color: var(--text); }
.chgchip:hover, .chgchip:focus-visible { border-color: var(--accent); }
.chgchip .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }

.chnowwrap { display: grid; gap: .9rem; }
.chbig { position: relative; display: block; overflow: hidden; border-radius: var(--chr); border: 1px solid var(--line); background: var(--surface2); color: #fff; text-decoration: none; aspect-ratio: 21 / 8; min-height: 12rem; max-height: 24rem; }
.chbig .frame { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.chbig .frame:hover { transform: none; }
.chbig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.chbigtext { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .9rem; display: grid; gap: .15rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.chbigtop { display: flex; align-items: center; gap: .55rem; }
.chbigtop .chnum { margin: 0; text-shadow: none; }
.chbigtitle { font: 400 clamp(1.3rem, 3vw, 2rem) var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chbigtext small { color: rgba(255, 255, 255, .85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chbig .prog { z-index: 2; height: 5px; }
.chminis { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chmini { flex: none; display: flex; align-items: center; gap: .55rem; width: 15rem; padding: .35rem .6rem .35rem .35rem; border: 1px solid var(--line); border-radius: var(--chr); background: var(--surface); color: var(--text); text-decoration: none; }
.chmini:hover, .chmini:focus-visible { border-color: var(--accent); }
.chmini .frame { flex: none; width: 4.2rem; aspect-ratio: 16 / 9; border-radius: calc(var(--chr) * .6); }
.chminitext { display: grid; min-width: 0; line-height: 1.25; }
.chminitext b, .chminitext small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chminitext small { color: var(--muted); }

.choff { max-width: 34rem; margin: 2rem auto; display: grid; gap: .6rem; }
.choff h1 { margin: 0; }
.choff p { margin: 0; }

@media (max-width: 640px) {
  .chw { --chw: 210px; } .chw.small { --chw: 170px; } .chw.large { --chw: 270px; }
  .chglabel { width: 6.2rem; padding: 0 .5rem; }
  .chglabel .chnum { display: none; }
  .chgchip { width: 9.5rem; }
  .chbig { aspect-ratio: 16 / 10; }
  .chmini { width: 12.5rem; }
  .chli .frame { width: 4.6rem; }
}
.choff { padding: 1.4rem 1.5rem; margin-top: 2rem; }
.choff .row { margin-top: .5rem; }

/* Fra start, billede i billede */
.chtilewrap { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.chtilewrap .chtile { width: 100%; }
.chinfo .fromstart, .chpick .fromstart { justify-self: start; margin-top: .4rem; padding: .25rem .7rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--radius); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.chinfo .fromstart:hover, .chpick .fromstart:hover { background: #fff; color: #000; }
.chitemwrap { display: grid; }
.chpick .fromstart { margin: -.1rem 0 .5rem calc(150px + 1.2rem); }
.pbtn.on { color: var(--accent); }
.pmenu .findsubs { margin-top: .2rem; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0 0 var(--radius) var(--radius); }
.subresults .relname { word-break: break-all; }

/* ---------- wave 3: guide search, bells, tooltip, reminders, lists, collections ---------- */
.chguidehead { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.4rem 0 .6rem; }
.chguidehead .chguide { margin: 0; flex: 1; }
.chsearchbox { display: flex; align-items: center; gap: .5rem; min-width: min(20rem, 100%); padding: 0 .75rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); }
.chsearchbox:focus-within { border-color: var(--accent); }
.chsearchbox .ic { width: 1.1rem; height: 1.1rem; flex: none; }
.chsearchbox input.chsearch { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: .5rem 0; color: var(--text); }
.chsearchbox input.chsearch:focus { outline: none; box-shadow: none; }
.gbell { position: absolute; top: 7px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); opacity: .75; cursor: pointer; }
.gbell .ic { width: 13px; height: 13px; }
.gcell:hover + .gbell, .gbell:hover, .gbell:focus-visible, .gbell.on { opacity: 1; }
.gbell.on, .gbell.on:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gcell.hasbell { padding-right: 30px; }
.gbell:hover, .gbell:focus-visible { border-color: var(--accent); }
.gtip { position: fixed; z-index: 60; width: min(24rem, calc(100vw - 16px)); display: grid; gap: .15rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; }
.gtip[hidden] { display: none; }
.gtip p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.4; }
.chreminders { margin-top: 1.6rem; }
.chreminders h2 { display: flex; align-items: center; gap: .4rem; }
.remlist li, .playlists li { display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .4rem; }
.remlist .grow, .playlists .grow { flex: 1; min-width: 0; }
.playlists a.grow { color: var(--text); text-decoration: none; }
.playlists a.grow:hover b { color: var(--accent); }
.toast.reminder { display: grid; gap: .3rem; }
.toast.reminder .row { display: flex; gap: .5rem; margin-top: .3rem; }
.listnew { margin: 1rem 0; max-width: 32rem; }
.listnew input { flex: 1; }
.plitems { margin: 1rem 0; }
.plrow { display: flex; align-items: center; gap: .8rem; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .45rem; }
.plthumb { flex: none; width: 8rem; }
.pltext { flex: 1; min-width: 0; display: grid; text-decoration: none; color: var(--text); }
.pltext b, .pltext small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pltext:hover b { color: var(--accent); }
.plbtns { display: flex; gap: .3rem; flex: none; }
.plbtns .ic { width: 1rem; height: 1rem; }
.addlist { position: relative; display: inline-block; }
.addlist > summary { list-style: none; cursor: pointer; }
.addlist > summary::-webkit-details-marker { display: none; }
.addlist .pop { position: absolute; z-index: 30; left: 0; top: calc(100% + .35rem); min-width: 16rem; max-width: 22rem; display: grid; gap: .3rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.addlist .pop form { margin-top: .3rem; }
.addlist .pop input { flex: 1; min-width: 0; }
.addlist .linkish { display: flex; justify-content: space-between; gap: .6rem; text-align: left; border: 0; background: transparent; color: var(--text); padding: .4rem .5rem; border-radius: 6px; cursor: pointer; }
.addlist .linkish:hover, .addlist .linkish:focus-visible { background: var(--surface2); }
.collections { margin: 1rem 0; }
.collcard .count { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) {
  .plthumb { width: 5rem; }
  .plrow { flex-wrap: wrap; }
  .chsearchbox { flex: 1 1 100%; }
}

/* ---------- Se sammen, Spiller nu, gæst ---------- */
.syncpanel { width: min(340px, 92vw); color: #fff; }
.syncpanel .sp-note { margin: 0 .6rem .6rem; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.syncpanel button { justify-content: center; border: 1px solid rgba(255, 255, 255, .3); margin-bottom: .35rem; }
.syncpanel .sp-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.syncpanel .row { padding: 0 .3rem; flex-wrap: nowrap; }
.syncpanel .sp-code { margin: .3rem .4rem .6rem; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; font-size: 1.9rem; }
.sp-people { list-style: none; margin: 0; padding: 0 .6rem; display: grid; gap: .25rem; }
.sp-people li { display: flex; gap: .4rem; align-items: baseline; }
.sp-people li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-people small { color: rgba(255, 255, 255, .65); }
.sp-people .sp-state { margin-left: auto; }
.nowlist { display: grid; gap: .8rem; }
.nowcard { display: grid; gap: .6rem; }
.nowcard h2 { margin: 0; font-size: 1.15rem; }
.nowcard .nowmeta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; color: var(--muted); }
.nowcard .nowctl { display: flex; flex-wrap: wrap; gap: .4rem; }
.guestcard { width: min(520px, 100%); text-align: center; }
.guestcard h1 { margin-bottom: .4rem; }
.guestcard .field { text-align: left; }
.guestbadge { display: inline-block; margin: 0 0 .8rem; }
.guestbar { background: var(--surface2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: .3rem clamp(1rem, 4vw, 3rem); }
.usermenu .pop button.linkish { border: 0; text-align: left; padding: .5rem .7rem; }
.usermenu .pop button.linkish:hover { background: var(--glass-soft); }
.usermenu .pop .guestnote { padding: .4rem .7rem; }
.nowcard .nowctl button { display: inline-flex; align-items: center; gap: .3rem; }
.nowcard .nowctl button .ic { margin: 0; }

/* ---- music: the bar at the bottom, artists and albums ---- */
body.hasbar .pshell main { padding-bottom: 6.2rem; }
body.hasbar .powered { padding-bottom: 5rem; }
.minibar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); border-top: 1px solid var(--line); box-shadow: var(--pop-shadow); }
.minibar[hidden] { display: none; }
.mb-seek { display: block; width: 100%; height: 14px; margin: 0; padding: 0; accent-color: var(--accent); background: none; border: 0; cursor: pointer; }
.mb-main { display: flex; align-items: center; gap: .9rem; padding: .15rem clamp(.7rem, 3vw, 1.6rem) .6rem; max-width: 1760px; margin: 0 auto; }
.mb-cover { flex: none; width: 3rem; height: 3rem; border-radius: var(--radius); overflow: hidden; background: var(--surface2); color: var(--muted); display: grid; place-items: center; }
.mb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-text { flex: 1 1 8rem; min-width: 0; line-height: 1.3; }
.mb-text b, .mb-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-text small { color: var(--muted); }
.mb-controls { display: flex; align-items: center; gap: .15rem; }
.mb-btn { position: relative; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 99px; background: none; color: var(--text); cursor: pointer; }
.mb-btn:hover { background: var(--accent-soft); }
.mb-btn.on { color: var(--accent); background: var(--accent-soft); }
.mb-btn .ic { width: 1.3rem; height: 1.3rem; }
.mb-play { width: 2.8rem; height: 2.8rem; background: var(--accent); color: var(--accent-ink); }
.mb-play:hover { background: var(--accent); filter: brightness(1.1); }
.mb-one { position: absolute; right: .35rem; bottom: .3rem; font: 700 .6rem var(--font); font-style: normal; }
.mb-time { flex: none; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-volbox { display: flex; align-items: center; gap: .3rem; color: var(--muted); }
.mb-vol { width: 6rem; accent-color: var(--accent); }
.mb-queue { max-height: 46vh; overflow: auto; border-top: 1px solid var(--line); padding: .5rem clamp(.7rem, 3vw, 1.6rem) .8rem; max-width: 1000px; margin: 0 auto; }
.mb-queue[hidden] { display: none; }
.mb-qhead { display: flex; justify-content: space-between; padding: .2rem 0 .4rem; }
.mb-qlist { list-style: none; margin: 0; padding: 0; }
.mb-qlist li { display: flex; align-items: center; gap: .3rem; }
.mb-qlist li.now .mb-qt b { color: var(--accent); }
.mb-qitem { flex: 1; display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .35rem .4rem; border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mb-qitem:hover { background: var(--accent-soft); }
.mb-qn { flex: none; width: 1.6rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-qn .ic { width: 1rem; height: 1rem; color: var(--accent); }
.mb-qt { flex: 1; min-width: 0; line-height: 1.25; }
.mb-qt b, .mb-qt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-qt small { color: var(--muted); }
.mb-qd { flex: none; font-size: .85rem; }
@media (max-width: 760px) {
  .mb-volbox, .mb-time { display: none; }
  .mb-btn { width: 2.1rem; height: 2.1rem; }
  .mb-main { gap: .5rem; }
}
.musichead { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-end; padding: 1.6rem 0 1rem; }
.musichead .cover { flex: none; width: clamp(9rem, 22vw, 14rem); aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface2); box-shadow: var(--pop-shadow); }
.musichead .cover .img { width: 100%; height: 100%; }
.musichead .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.musichead h1 { margin: .2rem 0; }
.musichead .row { gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.sqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem .9rem; padding: .3rem 0 1rem; }
.sqcard { display: block; color: var(--text); text-decoration: none; }
.sqcard .frame { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface2); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.sqcard.round .frame { border-radius: 50%; }
.sqcard .frame .img { width: 100%; height: 100%; }
.sqcard .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sqcard:hover .frame, .sqcard:focus-visible .frame { transform: translateY(-3px); border-color: var(--accent); }
.sqcard.round .cap { text-align: center; }
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracklist li { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }
.tracklist li.now { background: var(--accent-soft); }
.tracklist .tk { flex: 1; display: flex; align-items: center; gap: .9rem; min-width: 0; padding: .6rem .5rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tracklist .tk:hover { background: var(--accent-soft); }
.tracklist .tn { flex: none; width: 2rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.tracklist .tt { flex: 1; min-width: 0; }
.tracklist .tt b, .tracklist .tt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracklist .tt small { color: var(--muted); }
.tracklist .td { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.tracklist .disc { padding: .8rem .5rem .3rem; color: var(--muted); font-weight: 600; border-bottom: 0; }
.tracklist .ghost { flex: none; }
.musicbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1.2rem 0 .4rem; }
.scroller .sqcard { flex: none; width: 168px; }
.scroller .sqcard.small { width: 132px; }
.scroller .sqcard.large { width: 212px; }

/* ---- photos ---- */
.photomonth { margin-top: 1.4rem; }
.photomonth h2 { display: flex; align-items: baseline; gap: .6rem; font-size: 1.2rem; text-transform: capitalize; }
.photomonth h2 small { color: var(--muted); font-weight: 400; text-transform: none; }
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.pthumb { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: var(--surface2); cursor: pointer; color: var(--muted); }
.pthumb .img { width: 100%; height: 100%; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb:hover, .pthumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pthumb .vid { position: absolute; right: .35rem; bottom: .35rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; }
.pthumb .vid .ic { width: .9rem; height: .9rem; }
.yearchips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 0; }
.albumcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .6rem 0; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: #0a0908; color: #f2ece5; display: flex; flex-direction: column; }
.lightbox .lb-top { display: flex; align-items: center; gap: .6rem; padding: .6rem clamp(.7rem, 3vw, 1.6rem); background: linear-gradient(rgba(0, 0, 0, .6), transparent); position: relative; z-index: 2; }
.lb-count { font-variant-numeric: tabular-nums; color: #d3c9be; white-space: nowrap; flex: none; }
.lb-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #f2ece5; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .22); }
.lb-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lightbox select.lb-speed { width: auto; flex: none; background: rgba(255, 255, 255, .1); color: #f2ece5; border: 0; border-radius: 99px; padding: .45rem .7rem; }
.lb-speed option { color: #221b15; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; -webkit-user-drag: none; display: block; user-select: none; }
.lb-miss { color: #d3c9be; }
.lb-playvideo { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); }
.lb-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #f2ece5; cursor: pointer; }
.lb-nav:hover, .lb-nav:focus-visible { background: rgba(255, 255, 255, .28); }
.lb-nav[hidden] { display: none; }
.lb-prev { left: clamp(.4rem, 2vw, 1.4rem); } .lb-next { right: clamp(.4rem, 2vw, 1.4rem); }
.lb-spin { position: absolute; left: 50%; top: 50%; width: 2rem; height: 2rem; margin: -1rem; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); border-radius: 50%; animation: lbspin .8s linear infinite; z-index: 1; }
.lb-spin[hidden] { display: none; }
@keyframes lbspin { to { transform: rotate(360deg); } }
body.lb-open { overflow: hidden; }
body.lb-open .minibar { z-index: 95; }
.photoframe { display: block; width: 100%; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface2); aspect-ratio: 16 / 7; }
.photoframe .pf-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.photoframe .pf-img.on { opacity: 1; }
.photoframe.contain .pf-img { object-fit: contain; }
.photoframe:not(.contain) .pf-img { object-fit: cover; }
.photoframe .pf-cap { position: absolute; left: 1rem; bottom: .7rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .85rem; }
.grec { position: absolute; top: 7px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); opacity: .75; cursor: pointer; }
.grec .ic { width: 13px; height: 13px; fill: currentColor; }
.gcell:hover + .grec, .grec:hover, .grec:focus-visible, .grec.on { opacity: 1; }
.grec:hover, .grec:focus-visible { border-color: var(--danger); color: var(--danger); }
.grec.on, .grec.on:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: #fff; }
.gcell.hasrec { padding-right: 30px; }
.gcell.hasrec.hasbell { padding-right: 56px; }
.reclist { display: flex; flex-direction: column; gap: .7rem; padding: 0; margin: 1rem 0; }
.recitem { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; justify-content: space-between; }
.recitem .recmain { flex: 1 1 18rem; min-width: 0; }
.recbtn { display: inline-flex; align-items: center; gap: .4rem; }
.recbtn .ic { fill: currentColor; }
.recbtn.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.reclist { list-style: none; }
.reclist > li.recitem { border-bottom: 1px solid var(--line); margin: 0; }
.photoframe { margin-top: .5rem; }

/* ---------- menu: "Mere" and the phone's bottom bar ---------- */
.navlink { display: flex; align-items: center; gap: .4rem; text-decoration: none; }
.navlink .ic { margin-right: 0; }
.topbar .searchlink { padding: .45rem .8rem; border-radius: 99px; color: var(--glass-muted); }
.topbar .searchlink:hover { color: var(--glass-text); background: var(--glass-soft); }
.topbar .searchlink[aria-current="page"] { color: var(--glass-text); background: var(--glass-soft); }
.topnav .navlink .ic { display: inline-block; font-size: 1.1em; }
.moremenu { position: relative; }
.moremenu > summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border-radius: 99px; color: var(--glass-muted); white-space: nowrap; }
.moremenu > summary::-webkit-details-marker { display: none; }
.moremenu > summary:hover, .moremenu[open] > summary { color: var(--glass-text); background: var(--glass-soft); }
.moremenu > summary[aria-current="page"] { color: var(--glass-text); box-shadow: inset 0 -2px 0 var(--glass-accent); }
.moremenu .pop {
  position: absolute; left: 0; top: calc(100% + .5rem); z-index: 40; min-width: 200px; display: flex; flex-direction: column; gap: .15rem; padding: .5rem;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx);
  border: 1px solid var(--glass-line); border-radius: var(--radius-lg); box-shadow: var(--pop-shadow);
}
.moremenu .pop a { padding: .5rem .7rem; border-radius: var(--radius); color: var(--glass-text); text-decoration: none; }
.moremenu .pop a:hover, .moremenu .pop a:focus-visible { background: var(--glass-soft); }
.moremenu .pop a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--glass-accent); }
.moremenu .pop .ic { display: inline-block; }
.bottombar { display: none; }
@media (max-width: 760px) {
  .bottombar {
    display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding-bottom: env(safe-area-inset-bottom); background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx);
    border-top: 1px solid var(--glass-line); color: var(--glass-text);
  }
  .bottombar .navlink, .bottombar .moremenu > summary {
    flex-direction: column; justify-content: center; gap: .15rem; padding: .5rem .15rem .45rem; border-radius: 0; font-size: .72rem; color: var(--glass-muted); text-align: center; min-height: 3.4rem;
  }
  .bottombar .navlink .ic { font-size: 1.35rem; }
  .bottombar .navlink .nl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottombar .navlink[aria-current="page"], .bottombar .moremenu > summary[aria-current="page"] { color: var(--glass-accent); box-shadow: none; background: transparent; }
  .bottombar .moremenu { display: block; }
  .bottombar .moremenu .pop { left: auto; right: .4rem; top: auto; bottom: calc(100% + .4rem); }
  .bottombar .moremenu .pop a { flex-direction: row; font-size: 1rem; color: var(--glass-text); min-height: 0; padding: .6rem .8rem; text-align: left; justify-content: flex-start; gap: .6rem; }
  .bottombar .moremenu .pop a[aria-current="page"] { color: var(--glass-accent); }
  .bottombar .moremenu .pop .nl { white-space: normal; }
  .topbar .searchlink { margin-left: auto; padding: .45rem .6rem; }
  .topbar { flex-wrap: nowrap; }
  .topbar .spacer { display: none; }
}

/* ---------- pages and the filter bar ---------- */
.pagehead { padding-top: 1.2rem; }
.pagehead h1 { margin: 0 0 .8rem; }
.fbar { display: grid; gap: .7rem; margin: 0 0 1.2rem; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.frow .spacer { flex: 1; }
.fgroup { position: relative; }
.fgroup > summary { list-style: none; cursor: pointer; user-select: none; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: ''; width: .4em; height: .4em; margin-left: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.fgroup > summary.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fgroup[open] > summary { border-color: var(--accent); }
.fpop {
  position: absolute; left: 0; top: calc(100% + .4rem); z-index: 25; min-width: 14rem; max-width: min(22rem, 86vw); max-height: min(22rem, 55vh); overflow: auto; padding: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.fopts { display: grid; gap: .1rem; }
.fopts label { display: flex; align-items: center; gap: .55rem; padding: .4rem .55rem; border-radius: var(--radius); cursor: pointer; }
.fopts label:hover, .fopts label:focus-within { background: var(--surface-alt, var(--line)); }
.fopts label.zero { opacity: .55; }
.fopts input { width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--accent); }
.fopts .ol { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsort { width: auto; min-width: 9.5rem; }
.fclear { color: var(--accent); }
.fcount { white-space: nowrap; }
.fsave { display: inline-flex; gap: .4rem; }
.fletters { display: flex; flex-wrap: wrap; gap: .2rem; }
.fl { min-width: 2rem; padding: .25rem .45rem; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.fl:hover:not(:disabled), .fl:focus-visible { border-color: var(--accent); }
.fl:disabled { opacity: .3; cursor: default; }
.fl.on, .fl[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pageresults { margin-top: .4rem; }
.minilist { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.minilist a { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.minilist a:hover, .minilist a:focus-visible { border-color: var(--accent); }
.histcard { display: grid; gap: .25rem; }
.played { font-size: .78rem; }
.libtiles.shelf { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 760px) {
  .frow { gap: .4rem; }
  .fpop { position: fixed; left: .75rem; right: .75rem; top: auto; bottom: 4.6rem; max-width: none; max-height: 50vh; }
  .fsort { min-width: 9rem; flex: 1; }
  .fletters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .fl { flex: none; }
  .fcount { order: 9; flex-basis: 100%; }
}

/* channels from a playlist show the channel logo: whole logo, centred, on the card colour */
.frame img.logoimg, .img img.logoimg { object-fit: contain; padding: 14%; box-sizing: border-box; background: var(--surface2, #222); }

/* a frame taken from the live stream fills the picture */
.frame img.snapimg, .img img.snapimg, .chrowimg img.snapimg, .chbigimg img.snapimg { object-fit: cover; width: 100%; height: 100%; }

/* ---------- channel overview: categories, rows, big picture ---------- */
.chpagewide { padding-top: 1.4rem; }
.chhead { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.chhead h1 { margin: 0; flex: none; }
.chhead .chsearchbox { margin-left: auto; }
.chswitch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.chtab { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .95rem; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.chtab:hover { color: var(--text); }
.chtab.on { background: var(--accent); color: var(--accent-ink); }
.chtab .ic { width: 1.05rem; height: 1.05rem; }
.chover { display: grid; gap: 1rem 1.25rem; align-items: start; }
.chover.layout-categories { grid-template-columns: 15rem minmax(22rem, 1fr) minmax(20rem, 27rem); }
.chover.layout-rows, .chover.layout-grid { grid-template-columns: minmax(0, 1fr); }
.chcats { position: sticky; top: 4.6rem; min-width: 0; }
.chcatlist { display: flex; flex-direction: column; gap: .15rem; max-height: calc(100vh - 13rem); overflow-y: auto; }
.chcat { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .7rem; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.chcat .ic { flex: none; width: 1.1rem; height: 1.1rem; }
.chcat .chcatname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chcat .chcount { flex: none; color: var(--muted); font-size: .85rem; }
.chcat:hover:not(.on) { background: var(--surface); border-color: var(--line); }
.chcat.on { background: var(--accent); color: var(--accent-ink); }
.chcat.on .chcount { color: inherit; opacity: .8; }
.chnewcat { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .4rem .8rem; border: 1px dashed var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.chnewcat:hover { color: var(--accent); border-color: var(--accent); }
.chmid { min-width: 0; }
.chcattools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.chcattools:empty { display: none; }
.chcattools b { margin-right: auto; }
.layout-categories .chrows:not(.chgrid) { max-height: calc(100vh - 13rem); min-height: 12rem; overflow-y: auto; padding-right: .25rem; }
.chrow { display: flex; align-items: center; gap: .2rem; padding: .15rem; border: 1px solid transparent; border-radius: var(--radius-lg); }
.chrow.focus { background: var(--surface); border-color: var(--line); }
.chrow:focus-within { border-color: var(--accent); }
.chrow.dragging { opacity: .4; }
.chrow.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.chrow.drop-after { box-shadow: 0 3px 0 var(--accent); }
.chgrip { flex: none; display: grid; place-items: center; color: var(--muted); cursor: grab; }
.chgrip .ic { width: 1rem; height: 1.2rem; stroke-width: 3; }
.chmain { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 2.7rem 7.6rem minmax(0, 1fr); align-items: center; gap: .65rem; padding: .35rem .4rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.chmain:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.layout-rows .chmain { grid-template-columns: auto 2.7rem 7.6rem minmax(0, 1fr); }
.chmain .chnum { margin: 0; }
.chlogo { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); color: var(--muted); font: 700 1.1rem var(--font-head); }
.chlogo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.chlogo.sm { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 6px; font-size: .95rem; }
.chlogo.xs { flex: none; width: 1.55rem; height: 1.55rem; border-radius: 5px; font-size: .75rem; }
.chlogo.xs img { padding: 2px; }
.chlivewatch .chlogo, .chosd .chlogo { background: rgba(255, 255, 255, .92); color: #333; border-color: rgba(255, 255, 255, .5); }
.chlogoslot { display: inline-flex; flex: none; }
.chtitlerow, .chglabel, .glabel, .chbigtop, .chcap > span:first-child { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.chtitlerow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chcaticon { display: inline-grid; place-items: center; flex: none; width: 1.1rem; height: 1.1rem; }
.chcaticon img { width: 100%; height: 100%; object-fit: contain; }
.chcaticon .ic { width: 1.1rem; height: 1.1rem; }
.chrowimg, .chbigimg { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--surface2); color: var(--muted); font: 400 1.4rem var(--font-head); }
.chrowimg img, .chbigimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chrowimg img.logoimg, .chbigimg img.logoimg { object-fit: contain; padding: 10%; }
.chrowtext { display: grid; gap: .05rem; min-width: 0; }
.chrowtext b, .chrowtext .chnow, .chrowtext small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrowtext small, .chrowtext .muted { color: var(--muted); }
.chrowtext .prog.inrow { position: relative; display: block; height: 4px; margin-top: .25rem; border-radius: 2px; background: var(--line); overflow: hidden; }
.chacts { flex: none; display: flex; align-items: center; }
.chheart, .chmove, .chhide { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.chheart .ic, .chmove .ic, .chhide .ic { width: 1.15rem; height: 1.15rem; }
.chheart:hover:not(:disabled), .chmove:hover:not(:disabled), .chhide:hover:not(:disabled) { color: var(--accent); border-color: var(--line); }
.chmove:disabled { opacity: .3; cursor: default; }
.chheart.on { color: var(--accent); }
.chheart.on .ic { fill: currentColor; }
.chmove, .chhide { opacity: 0; }
.chrow:hover .chmove, .chrow:hover .chhide, .chrow:focus-within .chmove, .chrow:focus-within .chhide { opacity: 1; }
.chmove:disabled { opacity: .3 !important; }
@media (hover: none) { .chmove, .chhide { opacity: .8; } }
.chheart.wide { width: auto; height: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-color: var(--line); border-radius: var(--radius); color: var(--text); font: inherit; }
.pheart { color: #fff; }
.pheart.on { color: var(--accent); }
.pheart.on .ic { fill: currentColor; }

.chdetail { position: sticky; top: 4.6rem; display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.chmedia { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface2); }
.chmedia .chbigimg { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; font-size: 3rem; }
.chmedia .chpreview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.chmedia .prog { z-index: 2; }
.chdhead { display: flex; align-items: center; gap: .6rem; }
.chdhead h2 { flex: 1; min-width: 0; margin: 0; font: 400 1.5rem var(--font-head); overflow-wrap: anywhere; }
.chdnow { display: grid; gap: .1rem; }
.chdesc { margin: 0; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.chdnext { margin: 0; }
.chdacts { flex-wrap: wrap; gap: .5rem; }
.chdacts .fromstart { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); color: var(--text); font: inherit; cursor: pointer; }
.chover .chtilewrap .chtile .chnum { margin: 0; }

@media (max-width: 1100px) {
  .chover.layout-categories { grid-template-columns: 13rem minmax(0, 1fr); }
  .chover.layout-categories .chdetail { display: none; }
}
@media (max-width: 760px) {
  .chhead .chsearchbox { margin-left: 0; width: 100%; }
  .chover.layout-categories, .chover.layout-rows, .chover.layout-grid { grid-template-columns: minmax(0, 1fr); }
  .chcats { position: static; }
  .chcatlist { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: .3rem; scrollbar-width: thin; }
  .chcat { width: auto; flex: none; border-color: var(--line); border-radius: 99px; background: var(--surface); }
  .chcat.on { border-color: var(--accent); }
  .chnewcat { margin-top: .3rem; }
  .layout-categories .chrows:not(.chgrid) { max-height: none; overflow: visible; }
  .chmain { grid-template-columns: auto 2.4rem minmax(0, 1fr); gap: .5rem; }
  .chmain .chrowimg { display: none; }
  .chlogo { width: 2.4rem; height: 2.4rem; }
  .chgrip { display: none; }
  .chmove, .chhide { opacity: 1; width: 2rem; height: 2rem; }
  .chrow:has(.chmove) { flex-wrap: wrap; }
  .chrow:has(.chmove) .chacts { flex-basis: 100%; justify-content: flex-end; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .chmain { grid-template-columns: auto 2.7rem 6rem minmax(0, 1fr); }
}
.chcats.chipsonly { position: static; margin-bottom: 1rem; }
.chcats.chipsonly .chcatlist { flex-direction: row; flex-wrap: wrap; max-height: none; overflow: visible; }
.chcats.chipsonly .chcat { width: auto; border-color: var(--line); border-radius: 99px; background: var(--surface); }
.chcats.chipsonly .chcat.on { border-color: var(--accent); background: var(--accent); }
.chover:not(.layout-categories) .chcatlist { flex-direction: row; flex-wrap: wrap; max-height: none; overflow: visible; }
.chover:not(.layout-categories) .chcat { width: auto; border-color: var(--line); border-radius: 99px; background: var(--surface); }
.chover:not(.layout-categories) .chcat.on { border-color: var(--accent); background: var(--accent); }
.chover:not(.layout-categories) .chcats { position: static; }
.chover.layout-rows .chrows, .chover.layout-grid .chrows { max-height: none; }
@media (prefers-reduced-motion: reduce) { .chrow, .chcat { transition: none; } }

/* ---------- motion: layout.motion (none, subtle, full) and prefers-reduced-motion; only transform and opacity ---------- */
@keyframes nx-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes nx-fade { from { opacity: 0; } }
@keyframes nx-kb { to { transform: scale(1.07); } }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent), 0 10px 26px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
a.card:hover .frame::after, a.card:focus-visible .frame::after { opacity: 1; }
html:not([data-motion="none"]) #app > :not(.boot) { animation: nx-fade .2s ease both; }
html:not([data-motion="none"]) #app .row, html:not([data-motion="none"]) .itempage > * { animation: nx-in .32s ease both; }
html:not([data-motion="none"]) #app .row:nth-child(2), html:not([data-motion="none"]) .itempage > :nth-child(2) { animation-delay: .05s; }
html:not([data-motion="none"]) #app .row:nth-child(3), html:not([data-motion="none"]) .itempage > :nth-child(3) { animation-delay: .1s; }
html:not([data-motion="none"]) #app .row:nth-child(n+4), html:not([data-motion="none"]) .itempage > :nth-child(n+4) { animation-delay: .15s; }
html[data-motion="full"] .itemhero img { animation: nx-kb 26s linear infinite alternate; }
html[data-motion="full"] a.card:hover .frame, html[data-motion="full"] a.card:focus-visible .frame { transform: translateY(-4px) scale(1.04); }
html[data-motion="none"] *, html[data-motion="none"] *::before, html[data-motion="none"] *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .frame::after { transition: none; } #app *, #app *::before, #app *::after { animation: none !important; } }

/* ---------- messages from the house (announce.js) ---------- */
.nlx-msg { position: fixed; z-index: 2000; display: flex; pointer-events: none; }
.nlx-msg .nlx-card { position: relative; pointer-events: auto; display: flex; gap: 1rem; align-items: center; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); color: var(--glass-text); border: 1px solid var(--glass-line); border-left: 5px solid var(--accent); border-radius: var(--radius-lg); padding: .9rem 2.6rem .9rem 1.1rem; box-shadow: var(--pop-shadow); }
.nlx-msg .nlx-text { min-width: 0; overflow-wrap: anywhere; }
.nlx-msg .nlx-title { display: block; font-size: 1.1rem; }
.nlx-msg .nlx-body { margin: .15rem 0 0; }
.nlx-msg .nlx-img { flex: none; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius); }
.nlx-msg .nlx-x { position: absolute; top: .3rem; right: .4rem; width: 2rem; height: 2rem; padding: 0; font-size: 1.4rem; line-height: 1; background: transparent; border: 0; color: var(--glass-muted); cursor: pointer; }
.nlx-msg .nlx-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: nlx-run linear forwards; }
@keyframes nlx-run { to { transform: scaleX(0); } }
.nlx-info { top: 1rem; left: 1rem; right: 1rem; justify-content: center; }
.nlx-info .nlx-card { max-width: 36rem; }
.nlx-important { inset: 0; align-items: center; justify-content: center; padding: 1rem; }
.nlx-important .nlx-card, .nlx-urgent .nlx-card { flex-direction: column; text-align: center; padding: 1.6rem 3rem; max-width: min(34rem, 100%); }
.nlx-important .nlx-title, .nlx-urgent .nlx-title { font-size: 1.6rem; }
.nlx-important .nlx-body { font-size: 1.2rem; }
.nlx-important .nlx-img, .nlx-urgent .nlx-img { width: min(16rem, 60vw); height: auto; max-height: 40vh; }
.nlx-urgent { inset: 0; align-items: center; justify-content: center; background: var(--backdrop); padding: 1rem; pointer-events: auto; }
.nlx-urgent .nlx-card { width: 100%; max-width: none; height: 100%; max-height: 100%; justify-content: center; border-left-color: var(--danger); border-top: 5px solid var(--danger); }
.nlx-urgent .nlx-title { font-size: clamp(1.8rem, 6vw, 3.4rem); }
.nlx-urgent .nlx-body { font-size: clamp(1.3rem, 4vw, 2.2rem); }
.nlx-image { inset: 0; align-items: center; justify-content: center; background: var(--backdrop); pointer-events: auto; }
.nlx-image .nlx-card { flex-direction: column; max-width: 96vw; max-height: 96vh; padding: .6rem; border-left-width: 1px; }
.nlx-image .nlx-img { width: auto; height: auto; max-width: 92vw; max-height: 80vh; object-fit: contain; }
.nlx-unlock { position: fixed; z-index: 2100; left: 50%; bottom: 1.2rem; transform: translateX(-50%); max-width: calc(100vw - 2rem); box-shadow: var(--pop-shadow); }
@media (max-width: 760px) { .nlx-msg .nlx-card { padding-right: 2.4rem; } .nlx-unlock { bottom: 4.5rem; } }

/* Next episode card, the "still there?" question and the "N episodes left" marks */
.upnext.big { width: min(380px, 90vw); }
.upnext .top { display: flex; gap: .8rem; align-items: center; }
.upnext .pic { flex: none; width: 7.5rem; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #2a2420 center / cover; }
.upnext .txt { display: grid; gap: .15rem; min-width: 0; color: #fff; }
.upnext .txt small { color: rgba(255, 255, 255, .65); }
.upnext .txt b { overflow-wrap: anywhere; }
.upnext .txt span { font-size: .88rem; color: rgba(255, 255, 255, .8); }
.upnext .txt .left { color: #fff; font-weight: 600; }
.ring { position: relative; flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #fff; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 100.5; stroke-dashoffset: 0; animation: ringrun var(--cd) linear forwards; }
@keyframes ringrun { to { stroke-dashoffset: 100.5; } }
@media (prefers-reduced-motion: reduce) { .ring circle { animation: none; } }
.stillbox { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; display: grid; gap: .6rem; width: min(380px, 90vw); padding: 1.4rem 1.6rem; text-align: center; color: #fff; background: rgba(15, 12, 10, .94); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-lg); }
.stillbox[hidden] { display: none; }
.stillbox p { margin: 0; }
.stillbox .row { justify-content: center; }
.stillbox button { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; }
.stillbox button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ptitle .epleft { display: block; opacity: .85; }
.leftbadge { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font: 600 .78rem var(--font); background: var(--accent); color: var(--accent-ink); }
.leftbadge.onimg { position: absolute; left: .45rem; bottom: .65rem; max-width: calc(100% - .9rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.nextinfo { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: .6rem 0 0; color: var(--muted); }
.nextinfo[hidden] { display: none; }
