/* Defaults only. Folder :root vars must load AFTER this file
   or --bg-image / colours get reset to none / beige. */
@property --fg { syntax: "<color>"; inherits: true; initial-value: #111111; }
@property --bg { syntax: "<color>"; inherits: true; initial-value: #e8dcc4; }
@property --link { syntax: "<color>"; inherits: true; initial-value: #1238a0; }
@property --vlink { syntax: "<color>"; inherits: true; initial-value: #6b2d8b; }
@property --panel-a { syntax: "<number>"; inherits: true; initial-value: 0.45; }

:root {
  --fg: #111111;
  --bg: #e8dcc4;
  --link: #1238a0;
  --vlink: #6b2d8b;
  --bg-image: none;
  --bg-fit: cover;
  --panel-a: 0.45;
  --text-tint: 90%;
  --banner-tint: 50%;
}

/* Colour vars are faded in JS (theme-bg.js / radio-theme.js). CSS transitions of
   @property-registered custom properties stall in real browsers — computed
   values lag behind inline style, so palettes froze between slides. */

html, body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--fg);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

/* Photo lives on .page-bg. Beat custom.css `body { background-image }` (0,0,1). */
html body {
  background-image: none;
}

a { color: var(--link); text-decoration: none; }
a:visited { color: var(--vlink); }
a:hover { text-decoration: underline; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-bg-layer {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-size: var(--bg-fit, cover);
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.page-bg-layer.is-on { opacity: 1; }
/* one wallpaper per page view: only the first layer carries the image (inline style),
   the spare layer stays empty so the same file can never be requested twice.
   radio-theme.js paints both layers inline when it cross-fades between tracks. */
.page-bg-layer + .page-bg-layer { background-image: none; }

/* Text carrier: a plane in the design's own background colour (--bg, set per design),
   opacity --panel-a. A dark design darkens the wallpaper behind the text, a light one
   lightens it. Same as rgb(var(--theme-bg-rgb) / var(--panel-a)), but color-mix takes
   any colour notation custom.css may use (hex, rgb(), named).
   --panel-a fades 0.45 → 0.06 while scrolling (2026-11-23: a touch more transparent
   than the former 0.5 → 0.08). There is deliberately NO minimum opacity — the
   operator tested the contrast; do not add a floor. */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  padding: 1.1rem 1.2rem 8rem;
  background-color: color-mix(in srgb, var(--bg) calc(var(--panel-a) * 100%), transparent);
  color: var(--fg);
}

@supports (animation-timeline: scroll()) {
  html:not(.is-reduce-motion) .wrap {
    animation: panel-reveal linear both;
    animation-timeline: scroll();
    animation-range: 0% 80%;
  }
}

@keyframes panel-reveal {
  from { --panel-a: 0.45; }
  to { --panel-a: 0.06; }
}

.bg-spacer {
  min-height: 100vh;
  pointer-events: none;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  flex-wrap: wrap;
  margin: 0 0 1.4rem;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.45rem;
}
/* register B (2026-11-14): stable chrome on the common text tint; guard = tint + blur */
.mast, .dir-region, .player, .admin-nav {
  background: color-mix(in srgb, var(--bg) var(--text-tint), transparent);
}
@supports (backdrop-filter: blur(1px)) {
  .mast, .dir-region, .player, .admin-nav { backdrop-filter: blur(10px); }
}
@supports not (backdrop-filter: blur(1px)) {
  .mast, .dir-region, .player, .admin-nav {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
  }
}
/* banner: the one chrome surface you look AT — softer tint so the bg image
   glows through; blur stays for the collision guard (2026-11-14) */
.dir-region {
  background: color-mix(in srgb, var(--bg) var(--banner-tint), transparent);
}
.mast-id {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.brand {
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
}
.brand:visited { color: inherit; }
.tag { font-size: 0.95rem; }

.mast-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem;
}
.mast-btn {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--fg) 38%, transparent);
  padding: 0.05rem 0.38rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  background: transparent;
  font-family: inherit;
}
.mast-btn:visited { color: inherit; }
.mast-btn:hover, .mast-btn:focus-visible {
  border-color: var(--fg);
  text-decoration: none;
}

.find-side {
  margin-left: auto;
  display: flex;
  align-items: center; /* center-align so button and input share the same midline */
  gap: 0.55rem;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  font-size: 0.85rem;
}
.find { margin-left: 0; }
.find input, textarea, select, input[type="text"], input[type="password"], input[type="search"] {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
  font: inherit;
  padding: 0.15rem 0.35rem;
}
/* find-cluster: header search carries the same panel tint (was .tree-open) */
.find-side .find input[type="search"] {
  background: color-mix(in srgb, var(--bg) calc(var(--panel-a) * 100%), transparent);
}
.find.big { margin: 0 0 1rem; display: flex; gap: 0.4rem; }

.color-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.color-row label { min-width: 7rem; }
input[type="color"].color-pick {
  width: 2rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid var(--fg);
  background: var(--bg);
  cursor: pointer;
  vertical-align: middle;
}
input.color-hex { width: 7rem; }
.farben-preview {
  max-width: 22rem;
  margin: 0.35rem 0 1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--fg);
}
.farben-preview .prev-vlink { margin-left: 0.4rem; }

.lede { max-width: 36rem; margin: 0 0 0.85rem; }
.home-intro { max-width: 40rem; }
.home-intro .long { margin-top: 0.5rem; }
.home-intro .long p { margin: 0.4rem 0; }
.flash { border: 1px solid var(--fg); padding: 0.35rem 0.55rem; }

h1, h2 { font-weight: 700; }
h1 { font-size: 1.45rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; font-style: italic; }

.wrap:has(.home-now) { max-width: 58rem; }

.home-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 0 1.5rem;
  align-items: start;
}
.home-now .now-col { min-width: 0; }
.home-now .now-col:first-child { padding-right: 1.5rem; }
.home-now .now-col + .now-col {
  border-left: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  padding-left: 1.5rem;
}
.home-now h2 { margin: 0 0 0.3rem; }
.played-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0 0 0.3rem;
}
.played-head h2 { margin: 0; }
/* play-all sits beside the heading; range pills pushed to the far right */
.played-head .play-all-btn {
  font-size: 0.78em;
  opacity: 0.75;
  padding-inline: 0.45em;
}
.played-head .play-all-btn::before {
  content: "▶\00a0";
  font-size: 0.72em;
}
.played-ranges {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-style: normal;
  margin-left: auto;
  padding-left: 0.6rem;
  border-left: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}
.played-ranges .btn.is-on {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
.played-more {
  display: block;
  width: 100%;
  flex-basis: 100%;
  margin: 0.35rem 0 0;
}
.home-comments { margin-top: 1.4rem; }
.home-comments h2 { margin: 0 0 0.3rem; }
.home-now .home-comments .cmt-who {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.85em;
}

.site-foot {
  margin-top: 2.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--fg);
  font-size: 0.8rem;
}
.site-foot p { margin: 0.12rem 0 0; }
.site-foot a + a { margin-left: 0.85rem; }
.legal-people { margin: 0.8rem 0 0; }
.legal-people .meta { margin-left: 0.45rem; }

.home-now .file-list {
  margin-top: 0;
  max-height: none;
  overflow: visible;
}
.home-now .file {
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0.3rem 0.5rem;
  padding: 0.1rem 0;
}
.home-now .file .btn,
.home-now .file .btn-glyph,
.home-now .file .meta,
.home-now .file .meta-pl,
.home-now .file .cmt-who { flex-shrink: 0; }
.home-now .file > a,
.home-now a.file-name,
.home-now span.file-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-now .file .meta {
  flex: 0 0 auto;
  overflow: visible;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* date column: YYYY-MM-DD needs ~7.2em to never wrap */
.home-now .now-col:first-child .file .meta {
  min-width: 7.2em;
}
/* play-count column: up to 5 digits + × needs ~4.5em */
.home-now .now-col + .now-col .file .meta {
  min-width: 4.5em;
}
@media (prefers-reduced-motion: no-preference) {
  .home-now .file > a,
  .home-now .file-name {
    transition: opacity 120ms ease;
  }
  .home-now .file:hover > a,
  .home-now .file:hover .file-name { opacity: 0.78; }
}

.subdirs, .plain { list-style: none; padding: 0; margin: 0; }
.subdirs li, .plain li { margin: 0.35rem 0; }
.subdirs a { font-weight: 700; }

.albums { clear: both; margin: 0.2rem 0 1rem; }

.album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.9rem 0.75rem;
  align-items: start;
  list-style: none;
  padding: 0;
  margin: 0;
}
.album-card {
  display: block;
  color: var(--album-fg, var(--fg));
  background: color-mix(in srgb, var(--album-bg, var(--bg)) 78%, transparent);
  text-decoration: none;
}
.album-card:visited { color: var(--album-fg, var(--fg)); }
.album-card:hover { text-decoration: none; }
.album-card:hover .album-title { text-decoration: underline; }
.album-card img,
.album-card .album-plate {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.album-card .album-plate {
  background: color-mix(in srgb, var(--album-bg, var(--bg)) 88%, var(--album-fg, var(--fg)));
}
.album-card .album-body { padding: 0.4rem 0.5rem 0.55rem; }
.album-title { font-weight: 700; line-height: 1.25; }
.album-kurz {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .album-card {
    transition: background-color 160ms ease;
  }
  .album-card:hover {
    background: color-mix(in srgb, var(--album-bg, var(--bg)) 92%, transparent);
  }
}
.meta { font-size: 0.78rem; opacity: 0.8; }
.priv { font-size: 0.75rem; text-transform: lowercase; }

.dirhead { margin-bottom: 1rem; }
.dirpic { max-width: 220px; height: auto; float: left; margin: 0 1rem 0.6rem 0; }
.short { font-weight: 700; }
.long { clear: both; }
.thumb { height: 48px; width: auto; vertical-align: middle; margin-right: 0.4rem; }

/* — folder banner: sticky album head — */
.dir-region {
  position: sticky;
  top: var(--mast-h, 0px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}
.banner-thumb { flex: 0 0 auto; line-height: 0; position: relative; cursor: zoom-in; }
.banner-thumb img,
.region-plate {
  display: block;
  width: clamp(40px, 12vh, 72px);
  height: clamp(40px, 12vh, 72px);
  object-fit: cover;
}
.region-plate { background: color-mix(in srgb, var(--album-bg, var(--bg)) 88%, var(--album-fg, var(--fg))); }
.banner-id { flex: 1 1 auto; min-width: 0; }
.banner-titleline { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.banner-id h1 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-region .short { font-weight: 400; font-size: 0.9rem; margin: 0.15rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* — long info fold: open ≥769px, folded behind summary ≤768px — */
.region-info { margin: 0 0 0.8rem; }
.region-info summary { cursor: pointer; padding: 0.5rem 0; min-height: 40px; display: flex; align-items: center; font-size: 0.85rem; }

@media (min-width: 769px) {
  .region-info summary { display: none; }
  .region-info:not([open]) > :not(summary) { display: block; }
  .region-info::details-content { content-visibility: visible; display: block; }
}

/* — content panels (titel / ordner) — */
.content-panel {
  padding: 0.5rem 0.75rem 0.75rem;
  margin-top: 1rem;
}
.panel-label { display: flex; align-items: center; gap: 0.6rem; text-transform: uppercase; font-size: 0.75rem; margin: 0 0 0.5rem; letter-spacing: 0.04em; }
.panel-label h2 { font-size: inherit; margin: 0; }
.wrap-titles { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wrap-titles:focus-visible + label { outline: 2px solid currentColor; outline-offset: 2px; }
.wrap-titles:checked + label { background: var(--fg); color: var(--bg); }
.wrap:has(.dir-region) .files .file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-files:has(#wrap-titles:checked) .file-name { white-space: normal; overflow: visible; text-overflow: clip; }

/* banner pages: the page scrolls under the sticky banner */
.wrap:has(.dir-region) .files,
.wrap:has(.dir-region) .file-list { overflow: visible; max-height: none; }
.wrap:has(.dir-region) .file { scroll-margin-top: calc(6.5rem + var(--mast-h, 0px)); scroll-margin-bottom: 4.5rem; }
/* folder rows dim on hover — same value as the homepage rule (2026-11-14) */
.files .file:hover .file-name, .file-list .file:hover .file-name { opacity: 0.78; }
/* one common text tint (2026-11-14): readable strip wherever text is hovered —
   tracks, album langinfo, crumbs; the banner sits on the token standing. */
.file:hover, .region-info:hover, .crumbs:hover, .dir-region:hover {
  background: color-mix(in srgb, var(--bg) var(--text-tint), transparent);
}

.files, .file-list {
  margin-top: 1rem;
  clear: both;
  overflow: auto;
  max-height: calc(100vh - 12rem);
}
.file {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  align-items: baseline;
  padding: 0.22rem 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--fg) 30%, transparent);
}
.file.is-current {
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--fg);
  padding-left: 0.4rem;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}
.file.is-paused {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--fg) 45%, transparent);
  padding-left: 0.4rem;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
}
.file.is-paused .fn-head, .file.is-paused .fn-tail { font-style: italic; }
/* one slot, three states: idle ▶ · playing pause bars · paused ▶ with a ring */
.file.is-paused .btn.play { outline: 2px solid currentColor; outline-offset: -2px; }
.file.is-removed { opacity: 0.55; }
.file.is-removed .gone { font-style: italic; }

.btn {
  display: inline-block;
  border: 1px solid var(--fg);
  padding: 0.08rem 0.42rem;
  font-size: 0.75rem;
  cursor: pointer;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-decoration: none;
}
/* compact glyph variant: share-link / speech-bubble (read) / ! (write) / + (playlist) */
.btn-glyph { padding: 0 0.2rem; font-size: 0.82rem; }
.btn-glyph svg { vertical-align: -0.15em; } /* svg icons ride the text baseline */
.cmt-bubble { font-size: 0.78rem; }   /* keeps bubble small vs surrounding text */
#isde-comment-dlg:not(.is-write) .isde-comment-form,
#isde-comment-dlg:not(.is-write) .isde-pop-login { display: none; }
.btn:hover, .btn:focus-visible {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.inline { display: inline; }
.folder-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.crumbs { font-size: 0.85rem; }

/* breadcrumb hub (2026-11-14 spec): ▾ opens a level's siblings from /tree/<parent>;
   the forward link (first subdir) opens the current folder's children. */
.crumbs { position: relative; }
.crumbs-toggle {
  background: none;
  border: 0;
  padding: 0 0.1rem;
  font: inherit;
  font-size: 0.72rem;
  color: var(--link);
  cursor: pointer;
}
.crumbs-toggle:hover,
.crumbs-toggle:focus-visible { text-decoration: underline; }
.crumbs-toggle[aria-expanded="true"] { font-weight: 700; }
.crumb-menu {
  position: absolute;
  /* above sticky .dir-region (15) + player (20): first rows must not paint
     under the banner; below the mast (30) — the menu opens downward from
     the crumbs and never overlaps it */
  z-index: 25;
  width: min(18.5rem, 100%);
  max-height: 16rem;
  overflow: auto;
  padding: 0.3rem 0.45rem 0.4rem;
  border: 1px solid var(--fg);
  /* collision guard vs. sticky mast + rows scrolling beneath: near-solid panel */
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--fg);
}
.crumb-list { list-style: none; padding: 0; margin: 0; }
.crumb-list li { margin: 0; }
.crumb-row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--fg) 30%, transparent);
  color: inherit;
  font: inherit;
  padding: 0.2rem 0.15rem;
  cursor: pointer;
}
.crumb-list li:last-child .crumb-row { border-bottom: 0; }
.crumb-row.is-here { font-weight: 700; }
.crumb-row.is-here::after { content: " — hier"; font-size: 0.78rem; font-weight: 400; }
.crumb-mark { opacity: 0.55; }
.crumb-row:hover,
.crumb-row:focus-visible {
  background: var(--fg);
  color: var(--bg);
}
.crumb-empty { margin: 0.2rem 0 0; font-size: 0.78rem; }
@media (prefers-reduced-motion: no-preference) {
  .crumb-menu { animation: crumb-in 140ms ease-out; }
}
@keyframes crumb-in {
  from { opacity: 0; transform: translateY(-0.25rem); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  /* near-full-width sheet; beats the JS-set inline left */
  .crumb-menu { left: 0 !important; width: min(18.5rem, calc(100vw - 1.6rem)); }
}

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.9rem;
  padding: 0.8rem 1.2rem;
  color: var(--fg);
  z-index: 20;
}
.player[hidden] { display: none; }
.player-controls { display: flex; gap: 0.35rem; flex-wrap: nowrap; margin-top: 0; grid-column: 2; grid-row: 1; position: relative; z-index: 1; }
.player-line { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; margin: 0; position: relative; z-index: 1; }
.player.is-open .player-line { white-space: normal; }
.player-line::after { content: ' ▾'; opacity: 0.6; font-size: 0.8em; }
.player.is-open .player-line::after { content: ' ▴'; }
.btn-transport { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; padding: 0.2rem 0.6rem; }
.glyph-pause { display: none; position: relative; width: 14px; height: 15px; }
.glyph-pause::before,
.glyph-pause::after { content: ''; position: absolute; top: 0; bottom: 0; width: 4px; background: currentColor; }
.glyph-pause::before { left: 1px; }
.glyph-pause::after { right: 1px; }
.player.is-playing .glyph-play { display: none; }
.player.is-playing .glyph-pause { display: inline-block; }

/* row play buttons: ▶ / pause bars, mirroring the player bar (2026-11-14) */
.play .glyph-play { font-size: 0.9em; line-height: 1; }
.play .glyph-pause { display: none; position: relative; width: 12px; height: 13px; }
.play .glyph-pause::before,
.play .glyph-pause::after { content: ''; position: absolute; top: 0; bottom: 0; width: 4px; background: currentColor; }
.play .glyph-pause::before { left: 1px; }
.play .glyph-pause::after { right: 1px; }
.file.is-current:not(.is-paused) .glyph-play { display: none; }
.file.is-current:not(.is-paused) .glyph-pause { display: inline-block; }
.times { font-size: 0.85rem; }
/* player bar: hairline on the top edge of the fixed bar (upload rows keep the base .bar) */
.player .bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  max-width: none;
  height: 4px;
  border: 0;
  margin: 0;
  cursor: pointer;
  background: var(--fg);
  touch-action: none;
  user-select: none;
}
.player .bar::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 44px; }
/* base bar: upload progress rows (player overrides above) */
.bar {
  height: 14px;
  border: 1px solid var(--fg);
  cursor: pointer;
  margin-top: 0.4rem;
  max-width: 22rem;
  background: var(--fg);
  touch-action: none; /* let JS handle touch; prevents scroll hijacking during drag */
  user-select: none;  /* no text selection during drag */
}
.bar.is-stream {
  opacity: 0.4;
  cursor: not-allowed;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--bg);
  transition: width 80ms linear;
  pointer-events: none;
}

.album-pick { max-width: 36rem; }
.album-pick .album-q,
.path-in { width: 100%; max-width: 36rem; box-sizing: border-box; }
.album-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.85rem;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--fg);
}
.album-list li { margin: 0; }
.album-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--fg) 30%, transparent);
  color: inherit;
  font: inherit;
  padding: 0.22rem 0.4rem;
  cursor: pointer;
}
.album-list li:last-child .album-opt { border-bottom: 0; }
.album-opt .meta { margin-left: 0.45rem; }
.album-opt:hover,
.album-opt:focus-visible,
.album-opt.is-on {
  background: var(--fg);
  color: var(--bg);
}
.album-opt:hover .meta,
.album-opt:focus-visible .meta,
.album-opt.is-on .meta { opacity: 0.75; }
.album-none { margin: 0.2rem 0 0.8rem; }

.user-row {
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent);
  margin: 0 0 1rem;
  padding: 0 0.8rem 0.2rem;
  max-width: 36rem;
}
.user-row legend { font-weight: 700; }

.upload-log { margin-top: 0.6rem; font-size: 0.85rem; }
.upload-row { margin: 0.25rem 0; }
.upload-row .bar { max-width: 18rem; }

.file-comments { font-size: 0.85rem; }
.file-comments summary { cursor: pointer; }
.file-comments textarea { width: 100%; max-width: 28rem; display: block; margin: 0.3rem 0; }
.file-comments p { margin: 0.25rem 0; }

dialog.isde-pop {
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  padding: 0.55rem 0.7rem 0.7rem;
  max-width: 22rem;
  width: calc(100% - 2rem);
  font: inherit;
}
dialog.isde-pop::backdrop { background: rgb(0 0 0 / 0.28); }
/* albumfoto lightbox (2026-11-14): hover badge on the thumb, full image in the dialog */
.banner-thumb::after {
  content: '⤢';
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  background: color-mix(in srgb, var(--bg) var(--text-tint), transparent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.banner-thumb:hover::after { opacity: 1; }
dialog.isde-pic { max-width: min(92vw, 900px); }
dialog.isde-pic::backdrop { background: rgb(0 0 0 / 0.6); }
dialog.isde-pic .isde-pic-img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; }
.isde-pop-close { float: right; margin: 0 0 0.3rem 0.5rem; }
.isde-pop-title { font-weight: 700; margin: 0 2.2rem 0.4rem 0; }
.isde-pop-list { max-height: 10rem; overflow: auto; font-size: 0.85rem; clear: both; }
.isde-pop-list p { margin: 0.25rem 0; }
.isde-comment-form textarea { width: 100%; box-sizing: border-box; display: block; margin: 0.35rem 0; }
.isde-comment-form p { margin: 0.2rem 0 0.35rem; font-size: 0.85rem; }
.isde-pop .addpl { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.35rem; }
.isde-pop-status { min-height: 1.1em; font-size: 0.85rem; margin: 0.3rem 0 0; }
.isde-pop-login { margin: 0.4rem 0 0; }

@media (max-width: 768px) {
  /* minmax(0,1fr), not 1fr: a bare 1fr is minmax(auto,1fr) and the column then
     refuses to shrink below the longest nowrap title (page was 656px wide, 2026-11-23) */
  .home-now { grid-template-columns: minmax(0, 1fr); }
  .home-now .now-col:first-child { padding-right: 0; }
  .home-now .now-col + .now-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
    padding-top: 0.85rem;
    margin-top: 0.85rem;
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0.8rem 0.8rem 9rem; }
  .dirpic { float: none; display: block; }
  .dir-region { gap: 0.6rem; }
  .dir-region .banner-thumb img,
  .dir-region .region-plate { width: clamp(36px, 10vh, 48px); height: clamp(36px, 10vh, 48px); }
  .player { padding: 0.35rem 0.8rem; gap: 0.25rem 0.5rem; }
  .find-side { margin-left: auto; flex: 1 1 auto; min-width: 0; }
  .find { margin-left: 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { transition: none; }
  .page-bg-layer { transition: none; }
  .wrap { animation: none !important; }
  :root { --panel-a: 0.45; }
}

/* admin: sticky jump bar + section structure */
.admin-nav {
  position: sticky;
  top: var(--mast-h, 0px);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0;
  margin: 0.6rem 0 0.4rem;
  border-bottom: 1px solid var(--link);
}
.admin-nav a {
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--link);
  border-radius: 0.7rem;
  padding: 0.08rem 0.5rem;
}
.admin-nav a:hover,
.admin-nav a:focus-visible {
  background: var(--link);
  color: var(--bg);
}
section.admin-sec { scroll-margin-top: calc(4.2rem + var(--mast-h, 0px)); }
details.admin-sec {
  margin: 1.1rem 0 0.3rem;
  border: 1px solid var(--link);
  border-radius: 0.4rem;
  padding: 0.1rem 0.7rem 0.6rem;
  scroll-margin-top: 4.2rem;
}
details.admin-sec > summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  padding: 0.5rem 0 0.35rem;
  list-style: none;
}
details.admin-sec > summary::-webkit-details-marker { display: none; }
details.admin-sec > summary::after { content: ' ▾'; opacity: 0.55; font-style: normal; }
details.admin-sec[open] > summary::after { content: ' ▴'; }

.contrast-warn {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  border: 1px dashed currentColor;
  padding: 0.15rem 0.45rem;
}

/* ── tap targets (2026-11-23) ───────────────────────────────────────────────
   The retro frames keep their size. The hit area of a framed control grows
   through an invisible ::after, z-index:-1 so it sits under every in-flow box
   and every other control and can never steal a click from a neighbour.
   Containers that hold framed controls are their own stacking context
   (isolation) and reserve the full tap height themselves (min-height), so the
   extension always fits inside the container and never reaches a neighbour.
   --tap is 44px on touch / narrow screens and 24px (WCAG 2.5.8) with a mouse:
   desktop keeps its dense rows, touch rows get the height to fit 44px. */
:root { --tap: 24px; }
@media (pointer: coarse), (max-width: 768px) {
  :root { --tap: 44px; }
}

.file, .mast-tools, .played-head, .folder-tools, .panel-label {
  isolation: isolate;
  min-height: var(--tap);
}

.btn, .mast-btn, .crumbs-toggle { position: relative; }
.btn::after, .mast-btn::after, .crumbs-toggle::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: max(100%, var(--tap));
  height: max(100%, var(--tap));
  transform: translate(-50%, -50%);
}
.site-foot a { display: inline-block; line-height: var(--tap); }
.file .btn-glyph { min-width: 24px; text-align: center; box-sizing: border-box; }

@media (pointer: coarse), (max-width: 768px) {
  /* 44px rows: the controls inside keep their visible size, centred */
  .file, .home-now .file { align-items: center; column-gap: 0.8rem; }
  .home-now .now-col:first-child .file .meta { min-width: 0; }
  .mast-tools, .played-head, .folder-tools { align-items: center; }
  /* nav pills and range pills: real width to 44, height through the extension */
  .mast-btn, .played-ranges .btn { min-width: var(--tap); text-align: center; box-sizing: border-box; }
  .played-ranges { gap: 0.4rem; }
  .mast-tools { gap: 0.5rem; }
  /* glyph cluster at a row end: 33px frame + the extension = 44px per icon */
  .file .btn-glyph { min-width: 2.2rem; text-align: center; box-sizing: border-box; }
  .btn-transport, .player .btn-glyph { min-width: var(--tap); min-height: var(--tap); }
  .find input[type="search"] { min-height: var(--tap); box-sizing: border-box; }
  .region-info summary, .crumb-row, .album-opt { min-height: var(--tap); box-sizing: border-box; }
  .crumb-row, .album-opt { display: flex; align-items: center; }
  /* plain text link gets a real 44px box (no frame to preserve) */
  .brand { padding-block: 0.3rem; }
}

/* ── track title cell (2026-11-23) ──────────────────────────────────────────
   Title on one line, clipped in the MIDDLE: the start (date, people) and the end
   (track number, suffix) stay visible. Tap / click opens the full title in
   place (<details>, no JS); title= still carries the full name on desktop.
   Beside it (same line; under it when opened / on radio) a short linked folder hint ("stromraum / 2024"). Both lines are
   >=24px high with a mouse, 30px on touch. */
:root { --fn-h: 24px; }
@media (pointer: coarse), (max-width: 768px) {
  :root { --fn-h: 30px; }
}
.fn-cell { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: baseline; gap: 0.6em; }
.fn-cell > .fn-title { flex: 1 1 auto; }
.fn-cell:has(> details[open]) { flex-direction: column; gap: 0; } /* opened title: hint drops under it */
.radio-list .fn-cell { flex-basis: 12rem; flex-direction: column; gap: 0; }

.fn-title { min-width: 0; }
.fn-title > summary {
  display: flex;
  min-width: 0;
  line-height: var(--fn-h);
  cursor: pointer;
  list-style: none;
}
.fn-title > summary::-webkit-details-marker { display: none; }
.fn-head {
  flex: 0 1 auto;
  min-width: min(6.2em, 100%); /* a full YYYY-MM-DD always survives the clipping */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fn-tail {
  flex: 0 0 auto;
  max-width: min(55%, calc(100% - 6.2em)); /* never pushes the date out of the head */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre; /* keeps the leading space as the gap after the ellipsis */
}
.fn-title[open] > summary {
  display: block;
  line-height: 1.45;
  padding-block: calc((var(--fn-h) - 1.45em) / 2);
}
.fn-title[open] .fn-head,
.fn-title[open] .fn-tail {
  display: inline;
  max-width: none;
  overflow: visible;
  white-space: normal;
}
.fn-title.is-plain { overflow-wrap: anywhere; }
.fn-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.6rem;
  padding-bottom: 0.2rem;
}
.fn-more .btn-glyph { min-width: 2.2rem; min-height: var(--fn-h); }
.fn-more .fn-dir { max-width: 100%; }
.fn-dir {
  display: block;
  flex: 0 1 auto;
  max-width: 38%;
  min-width: 0;
  font-size: 0.78rem;
  line-height: var(--fn-h);
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── forms + remaining touch rules (2026-11-23) ─────────────────────────────
   Auth forms: labelled fields at 16px (below 16px iOS zooms the page on focus). */
.auth-form label { display: inline-block; margin-bottom: 0.2rem; }
.auth-form input:not([type="hidden"]) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--tap);
  padding: 0.35rem 0.5rem;
  font-size: 16px;
}
.auth-form .btn { min-height: var(--tap); min-width: var(--tap); }
.auth-link { display: inline-block; line-height: var(--tap); }

/* plain filename links in folder / search rows and breadcrumbs: real boxes, sized by --tap */
.file > a.file-name, .file > span.file-name { padding-block: calc((var(--tap) - 1.45em) / 2); }
.crumbs a, .crumbs-toggle { display: inline-block; padding-block: calc((var(--tap) - 1.45em) / 2); }
.crumbs-toggle { min-width: var(--tap); text-align: center; }
.find.big .btn { min-width: var(--tap); }
.auth-form label { line-height: var(--fn-h); }

@media (pointer: coarse), (max-width: 768px) {
  /* list scroll boxes clip the hit extension of a control at the row edge:
     widen the clip box outward, content stays where it is */
  .files, .file-list { padding-inline: 12px; margin-inline: -12px; }
  .crumbs a { padding-inline: 0.5rem; }
  /* wrapped rows: every flex line that holds a button is >=44px, so the extension has room */
  .file > .btn { margin-block: calc((var(--tap) - 1.45em) / 2); }
}

/* ── skip link + screen-reader-only text (2026-11-23) ───────────────────────── */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -5rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
  text-decoration: none;
}
.skip-link:visited { color: var(--fg); }
.skip-link:focus { top: 0.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
main:focus { outline: none; }
