/*! LjGallery v1.2.0 – ljamzin.de */

/* ---------- Farben & Maße (hier zentral anpassen) ---------- */
.ljg-root, .ljg-lb, .ljg-modal, .ljg-toast, .ljg-ghost {
  --ljg-card-radius: 18px;
  --ljg-glass: rgba(30, 44, 60, .26);         /* Karten: durchsichtig wie auf der Startseite */
  --ljg-card-blur: blur(3px) saturate(115%);
  --ljg-glass-2: rgba(255, 255, 255, .06);
  --ljg-glass-3: rgba(255, 255, 255, .12);
  --ljg-glass-strong: rgba(14, 20, 28, .94);
  --ljg-border: rgba(255, 255, 255, .10);
  --ljg-border-2: rgba(255, 255, 255, .20);
  --ljg-text: var(--text, rgba(255, 255, 255, .92));
  --ljg-muted: var(--muted, rgba(255, 255, 255, .70));
  --ljg-accent: var(--accent, #d8b15c);
  --ljg-accent-ink: #1b1505;
  --ljg-danger: #e46a6a;
  --ljg-ok: #6cc59a;
  --ljg-tile-bg: #1c2733;
  --ljg-blur: saturate(140%) blur(14px);
  /* Pillbox-Buttons – an den Stil der Startseite angepasst (dunkel, durchsichtig, feiner Rand) */
  --ljg-pill-bg: rgba(255, 255, 255, .06);            /* = .pill aus site.css */
  --ljg-pill-bg-hover: rgba(255, 255, 255, .10);
  --ljg-pill-border: rgba(255, 255, 255, .08);
  --ljg-pill-border-hover: rgba(216, 177, 92, .35);
  --ljg-pill-active-bg: rgba(216, 177, 92, .10);       /* = .pill.active */
  --ljg-pill-active-border: rgba(216, 177, 92, .55);
  --ljg-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

.ljg-root { width: 100%; max-width: 94rem; margin: 0 auto; padding: 0 1.5rem; color: var(--ljg-text); min-height: 40vh; }
.ljg-root *, .ljg-lb *, .ljg-modal * { box-sizing: border-box; }
.ljg-root svg, .ljg-lb svg, .ljg-modal svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ljg-app { min-height: inherit; }

/* ---------- Kopfkarte ---------- */
/* Abstände wie .hero/.grid der übrigen Seiten (site.css), damit beim Seitenwechsel nichts springt */
.ljg-hero { margin: 1rem 0 1rem; }
.ljg-card {
  position: relative; overflow: hidden; padding: 1.3rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius, 18px);
  box-shadow: var(--shadow, 0 18px 55px rgba(0, 0, 0, .55));
}
.ljg-card::before {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background: radial-gradient(700px 200px at 30% 0%, rgba(216, 177, 92, .25), transparent 55%);
}
.ljg-card > * { position: relative; }
.ljg-card h1 { margin: 0 0 .5rem; font-size: 1.9rem; line-height: 1.15; color: var(--ljg-text); }
@media (max-width: 860px) { .ljg-card h1 { font-size: 1.6rem; } .ljg-root { padding: 0 .5rem; } .ljg-hero { margin: .75rem 0; } }
.ljg-lead { margin: 0; color: var(--ljg-muted); max-width: 80ch; font-size: .95rem; }
.ljg-desc { margin: 12px 0 0; color: var(--ljg-text); opacity: .85; white-space: pre-line; max-width: 75ch; }
.ljg-notice { margin: 10px 0 0; color: var(--ljg-accent); }
.ljg-back {
  display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 13px;
  color: var(--ljg-muted); text-decoration: none; transition: color .2s;
}
.ljg-back:hover { color: var(--ljg-accent); }
.ljg-back svg { width: 15px; height: 15px; }

/* Leiste zwischen Titelbox und Raster: links zurück, rechts Ansicht */
.ljg-viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 1rem; }
.ljg-viewbar-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
.ljg-viewbar .ljg-btn { padding: .45rem .9rem; font-size: .85rem; }
.ljg-viewbar .ljg-seg button, .ljg-viewbar .ljg-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; }
.ljg-viewbar .ljg-seg svg, .ljg-viewbar .ljg-chip svg { width: .9rem; height: .9rem; }
.ljg-sortseg button { padding: 6px 11px; }
.ljg-sortseg svg { width: 1rem; height: 1rem; }
.ljg-vidtoggle:not(.is-on) { color: var(--ljg-muted); }
.ljg-vidtoggle:not(.is-on) svg { opacity: .5; }
@media (max-width: 560px) {
  .ljg-viewbar-opts { flex-wrap: nowrap; }
  .ljg-viewbar-back span, .ljg-viewbar [data-view-dir] span, .ljg-vidtoggle span { display: none; }
  .ljg-viewbar .ljg-btn { padding: .45rem .7rem; }
  .ljg-viewbar .ljg-seg button { padding: 6px 10px; }
  .ljg-viewbar .ljg-chip { padding: 6px 10px; }
}

/* Album-Beschreibung: volle Breite über der Knopfzeile (Anzahl in Gold, feine Linie, Text) */
.ljg-story {
  order: -1; flex: 1 1 100%; min-width: 0; padding: .9rem 1.4rem 1.05rem;
  border-radius: var(--radius, 18px); border: 1px solid var(--ljg-border);
  background: linear-gradient(135deg, rgba(216,177,92,.06), transparent 45%), var(--ljg-glass-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ljg-story-count { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--accent2, var(--ljg-accent)); }
.ljg-story-txt { margin: 0; padding-top: .6rem; position: relative; font-size: .9rem; line-height: 1.65;
  color: var(--ljg-text); opacity: .9; white-space: pre-line; text-wrap: pretty; }
.ljg-story-count + .ljg-story-txt { margin-top: .5rem; }
.ljg-story-count + .ljg-story-txt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent-border, rgba(216,177,92,.35)), transparent 90%); }
.ljg-story.is-short { order: 0; flex: 0 0 auto; padding: .45rem 1rem; border-radius: 999px; line-height: 1.2; }
.ljg-story.is-short .ljg-story-count { font-size: .85rem; }
.ljg-sortseg button:disabled { opacity: .4; cursor: default; }
.ljg-viewbar { flex-wrap: wrap; row-gap: .75rem; }
@media (max-width: 860px) {
  .ljg-story { padding: .9rem 1.05rem 1rem; }
  .ljg-story.is-short { padding: .45rem .85rem; }
}

.ljg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ljg-border); }
.ljg-toolbar.is-edit { border-top-color: var(--ljg-accent); }
.ljg-hint { font-size: 12.5px; color: var(--ljg-muted); margin-left: 6px; }

/* ---------- Buttons ---------- */
.ljg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 999px; border: 1px solid var(--ljg-pill-border);
  background: var(--ljg-pill-bg); color: rgba(255, 255, 255, .88); font: inherit; font-size: 14px; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.ljg-btn:hover { transform: translateY(-1px); background: var(--ljg-pill-bg-hover); border-color: var(--ljg-pill-border-hover); }
.ljg-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ljg-btn svg { width: 16px; height: 16px; }
.ljg-btn.is-primary { border-color: var(--ljg-pill-active-border); background: var(--ljg-pill-active-bg); color: rgba(255, 255, 255, .95); }
.ljg-btn.is-danger { color: #f3a3a3; }
.ljg-btn.is-danger:hover { border-color: rgba(228, 106, 106, .5); background: rgba(228, 106, 106, .10); }
.ljg-icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ljg-muted); cursor: pointer;
}
.ljg-icon-btn:hover { background: var(--ljg-glass-3); color: var(--ljg-text); }

/* ---------- Album-Übersicht ---------- */
.ljg-albums { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding-bottom: 2rem; }
.ljg-albums .ljg-album { flex: 0 0 auto; width: min(100%, 21rem); }
.ljg-album {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius, 18px); box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ljg-album:hover { transform: translateY(-2px); border-color: rgba(216, 177, 92, .35); background: rgba(255, 255, 255, .08); }
.ljg-album-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ljg-tile-bg); }
.ljg-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s, transform .6s; }
.ljg-album-cover img.is-loaded { opacity: 1; }
.ljg-album:hover .ljg-album-cover img { transform: scale(1.04); }
.ljg-album-nocover { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ljg-muted); }
.ljg-album-nocover svg { width: 40px; height: 40px; }
.ljg-album-meta { padding: .8rem 1rem .9rem; }
.ljg-album-year { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; line-height: 1.2; color: var(--ljg-accent); }
.ljg-album-meta h3 { margin: .1rem 0 .5rem; font-size: 1.05rem; color: var(--ljg-text); }
/* feine Linie (wie Kacheln) statt kurzer dicker (die bleibt den Seitentiteln vorbehalten) */
/* kurze Goldlinie unter dem Albumtitel, wie bei den Kacheln */
.ljg-album-meta h3::after { content: ""; display: block; width: 100%; height: 1px; margin-top: .45rem; background: linear-gradient(90deg, var(--accent-border), transparent 90%); }
.ljg-album-sub { margin: 0 0 2px; font-size: .82rem; color: var(--ljg-text); opacity: .8; }
.ljg-album-count { margin: 0; font-size: .8rem; color: var(--ljg-muted); }

.ljg-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: rgba(0, 0, 0, .45); color: var(--ljg-accent); border: 1px solid var(--ljg-pill-active-border);
}
.ljg-badge.is-inline { position: static; vertical-align: middle; font-size: 12px; margin-left: 6px; }

/* ---------- Bilder-Raster (Layout per JS: absolute Positionen, exakte Abstände) ---------- */
.ljg-root { --ljg-gap-x: 8px; --ljg-gap-y: 8px; --ljg-tile-radius: 8px; --ljg-tile-shadow: 0 0 0 transparent; --ljg-tile-border: 0 0 0 transparent; }
.ljg-shadow-soft   { --ljg-tile-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.ljg-shadow-medium { --ljg-tile-shadow: 0 6px 18px rgba(0, 0, 0, .40); }
.ljg-shadow-strong { --ljg-tile-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.ljg-border-light  { --ljg-tile-border: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.ljg-border-accent { --ljg-tile-border: inset 0 0 0 1.5px rgba(217, 180, 90, .7); }

.ljg-grid { position: relative; }
.ljg-grid.is-justified { display: block; }
.ljg-tile { margin: 0; outline: none; }
.ljg-grid.is-justified .ljg-tile { position: absolute; cursor: zoom-in; }
.ljg-grid.is-justified .ljg-tile.is-video { cursor: pointer; }
.ljg-grid.is-anim .ljg-tile { transition: left .38s ease, top .38s ease, width .38s ease, height .38s ease, opacity .6s ease, transform .7s ease !important; }

.ljg-tile-in {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--ljg-tile-radius);
  background-color: var(--ljg-tile-bg); box-shadow: var(--ljg-tile-shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, opacity .35s ease, filter .35s ease;
  will-change: transform;
}
.ljg-tile-in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: var(--ljg-tile-border);
}
.ljg-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.ljg-tile img.is-loaded { opacity: 1; }
.ljg-tile:focus-visible .ljg-tile-in { box-shadow: 0 0 0 2px var(--ljg-accent), var(--ljg-tile-shadow); }
.ljg-tile.is-hot, .ljg-tile:focus-visible { z-index: 2; }

/* Einblenden beim Scrollen */
.ljg-reveal-fade .ljg-grid.is-justified .ljg-tile { opacity: 0; transform: scale(.96); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.ljg-reveal-rise .ljg-grid.is-justified .ljg-tile { opacity: 0; transform: translateY(48px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.ljg-root .ljg-grid.is-justified .ljg-tile.is-in { opacity: 1; transform: none; }

/* Effekte beim Überfahren – per JS-Klasse .is-hot, damit sie auf JEDEM Gerät funktionieren
   (Maus, Touchpad, Convertibles wie Asus Flow; auf Touch kurz beim Antippen) */
.ljg-hover-zoom .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot img,
.ljg-hover-liftzoom .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot img { transform: scale(1.07); }
.ljg-hover-lift .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot .ljg-tile-in,
.ljg-hover-liftzoom .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot .ljg-tile-in {
  transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0, 0, 0, .5);
}
.ljg-hover-brighten .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot img { filter: brightness(1.13) saturate(1.12); }
.ljg-hover-glow .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot .ljg-tile-in {
  box-shadow: 0 0 0 2px var(--ljg-accent), 0 0 26px rgba(217, 180, 90, .45);
}
.ljg-hover-spotlight .ljg-grid.is-justified.has-hot:not(.is-edit) .ljg-tile:not(.is-hot) .ljg-tile-in { opacity: .42; filter: grayscale(.5); }
.ljg-hover-spotlight .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot .ljg-tile-in { box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.ljg-hover-tilt .ljg-grid.is-justified:not(.is-edit) .ljg-tile-in { transition: transform .12s ease-out, box-shadow .3s; }
.ljg-hover-tilt .ljg-grid.is-justified:not(.is-edit) .ljg-tile.is-hot .ljg-tile-in { box-shadow: 0 16px 32px rgba(0, 0, 0, .5); }

.ljg-play {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(8, 12, 18, .55); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; transition: transform .25s;
}
.ljg-play svg { width: 22px; height: 22px; margin-left: 3px; }
.ljg-tile.is-hot .ljg-play { transform: scale(1.1); }
.ljg-dur {
  position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; z-index: 1;
  padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(8, 12, 18, .7); color: #fff; pointer-events: none;
}
.ljg-dur svg { width: 10px; height: 10px; }
.ljg-tcap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; font-size: 13px; line-height: 1.35; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ljg-tcap.is-video { padding-right: 62px; }
.ljg-cap-none .ljg-tcap { display: none; }
.ljg-cap-always .ljg-tcap, .ljg-cap-hover .ljg-tile.is-hot .ljg-tcap, .ljg-cap-hover .ljg-tile:focus-visible .ljg-tcap { opacity: 1; transform: none; }

/* ---------- Bearbeiten: Werkzeuge ---------- */
.ljg-drag {
  position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(8, 12, 18, .65); color: #fff; touch-action: none; cursor: grab; z-index: 1;
}
.ljg-drag svg { width: 16px; height: 16px; }
.ljg-hascap {
  position: absolute; left: 8px; bottom: 46px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px;
  font: 700 12px/1 serif; color: var(--ljg-accent); background: rgba(8, 12, 18, .65);
}
.ljg-size {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--ljg-accent); color: var(--ljg-accent-ink);
}
.ljg-grid.is-sort .ljg-size { left: auto; right: 8px; top: 44px; }
.ljg-hascap[hidden], .ljg-badge[hidden], .ljg-size[hidden] { display: none !important; }
.ljg-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); z-index: 1; }
.ljg-tools button {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 12, 18, .6); color: #fff;
}
.ljg-tools button:hover { background: rgba(255, 255, 255, .22); }
.ljg-tools button.is-danger:hover { background: var(--ljg-danger); }
.ljg-tools svg { width: 15px; height: 15px; }
.ljg-grid.is-justified.is-edit .ljg-tile { cursor: default; }
.ljg-grid.is-justified.is-edit .ljg-tile.is-focus .ljg-tile-in { box-shadow: 0 0 0 3px var(--ljg-accent), 0 10px 30px rgba(0, 0, 0, .5); }
.ljg-grid.is-justified.is-edit .ljg-badge.is-cover { top: auto; bottom: 46px; right: 8px; }
html:not(.ljg-touch) .ljg-grid.is-justified.is-edit .ljg-tools { opacity: 0; transition: opacity .2s; }
html:not(.ljg-touch) .ljg-grid.is-justified.is-edit .ljg-tile:hover .ljg-tools,
html:not(.ljg-touch) .ljg-grid.is-justified.is-edit .ljg-tile.is-focus .ljg-tools { opacity: 1; }

/* Sortier-Raster */
.ljg-grid.is-sort { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ljg-grid.is-sort .ljg-tile { position: relative; aspect-ratio: 1; overflow: hidden; cursor: grab; border-radius: 10px; box-shadow: 0 0 0 1px var(--ljg-border); }
.ljg-grid.is-sort .ljg-tile.is-dragging { opacity: .25; }
.ljg-grid.is-sort .ljg-dur { bottom: auto; top: 8px; right: 8px; }
.ljg-grid.is-sort .ljg-badge.is-cover { top: auto; bottom: 46px; right: 50%; transform: translateX(50%); white-space: nowrap; }
.ljg-ghost {
  position: fixed !important; left: 0; top: 0; z-index: 2147483003; pointer-events: none; margin: 0; overflow: hidden;
  border-radius: 10px; opacity: .9; box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.ljg-ghost img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.ljg-ghost .ljg-tools { display: none; }

/* ---------- Album-Navigation & Fußzeile ---------- */
.ljg-albumnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 26px 0 0; }
.ljg-albumnav > :first-child { justify-self: start; }
.ljg-albumnav > :last-child { justify-self: end; }
.ljg-albumnav .ljg-btn span { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ljg-copy { margin: 28px 0 10px; text-align: center; font-size: 12.5px; color: var(--ljg-muted); line-height: 1.5; }
.ljg-empty { padding: 30px 0; text-align: center; color: var(--ljg-muted); }
.ljg-error, .ljg-denied { padding: 16px 20px; border-radius: 12px; background: rgba(228, 106, 106, .12); color: var(--ljg-text, #eee); border: 1px solid rgba(228, 106, 106, .4); }

/* ---------- Lightbox ---------- */
.ljg-lb {
  position: fixed; inset: 0; z-index: 2147483000; color: var(--ljg-text);
  background: rgba(4, 7, 10, .95); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
  -webkit-user-select: none; user-select: none;
}
.ljg-lb.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.ljg-lb-stage { position: absolute; inset: 58px 72px 58px; display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; }
.ljg-lb-img, .ljg-lb-vid {
  display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: transparent;
  transition: transform .25s ease, filter .35s ease; -webkit-touch-callout: none;
}
.ljg-lb-img[hidden], .ljg-lb-vid[hidden] { display: none; }
.ljg-lb-img.is-low { filter: blur(8px); }
.ljg-lb-vid { background: #000; }
.ljg-lb-spin {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--ljg-accent); opacity: 0; pointer-events: none;
  animation: ljg-spin .8s linear infinite; transition: opacity .2s;
}
.ljg-lb-spin.is-on { opacity: 1; transition-delay: .3s; }
@keyframes ljg-spin { to { transform: rotate(360deg); } }
.ljg-lb-top { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 20px; transition: opacity .3s; }
.ljg-lb-count { font-size: 14px; color: var(--ljg-muted); font-variant-numeric: tabular-nums; }
.ljg-lb-spacer { flex: 1; }
.ljg-lb-btn, .ljg-lb-nav {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--ljg-border); background: var(--ljg-glass-2); color: var(--ljg-text);
  -webkit-backdrop-filter: var(--ljg-blur); backdrop-filter: var(--ljg-blur); transition: background .2s, opacity .3s;
}
.ljg-lb-btn[hidden] { display: none; }
.ljg-lb-btn:hover, .ljg-lb-nav:hover { background: var(--ljg-glass-3); }
.ljg-lb-btn svg, .ljg-lb-nav svg { width: 20px; height: 20px; }
.ljg-lb-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; }
.ljg-lb-nav.is-prev { left: 14px; }
.ljg-lb-nav.is-next { right: 14px; }
.ljg-lb.is-single .ljg-lb-nav { display: none; }
.ljg-lb-cap {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: min(90vw, 760px);
  display: flex; gap: 10px; align-items: baseline; justify-content: center; text-align: center;
  font-size: 14px; color: var(--ljg-text); transition: opacity .3s;
}
.ljg-lb-cap[hidden] { display: none; }
.ljg-lb-cap small { color: var(--ljg-muted); font-size: 12.5px; white-space: nowrap; }
.ljg-lb-hint {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px;
  background: var(--ljg-glass-strong); border: 1px solid var(--ljg-border); font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.ljg-lb-hint.is-on { opacity: 1; }
.ljg-lb.is-fs .ljg-lb-stage { inset: 0; }
.ljg-lb.is-fs .ljg-lb-img, .ljg-lb.is-fs .ljg-lb-vid { border-radius: 0; }
.ljg-lb.is-fs.is-idle .ljg-lb-top, .ljg-lb.is-fs.is-idle .ljg-lb-nav, .ljg-lb.is-fs.is-idle .ljg-lb-cap { opacity: 0; }
.ljg-lb.is-fs.is-idle { cursor: none; }
.ljg-lb.is-fs .ljg-lb-cap { background: rgba(4, 7, 10, .6); padding: 6px 14px; border-radius: 999px; }
html.ljg-noscroll { overflow: hidden; }

html.ljg-touch .ljg-lb-nav { display: none; }
@media (max-width: 760px) {
  .ljg-lb-stage { inset: 54px 0 50px; }
  .ljg-lb-nav { display: none; }
  .ljg-lb-img, .ljg-lb-vid { border-radius: 0; }
}

/* ---------- Modal ---------- */
.ljg-modal {
  position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 7, 10, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .2s; color: var(--ljg-text);
}
.ljg-modal.is-on { opacity: 1; }
.ljg-modal-box {
  width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: var(--ljg-glass-strong); border: 1px solid var(--ljg-border); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transform: translateY(10px) scale(.98); transition: transform .2s;
}
.ljg-modal.is-on .ljg-modal-box { transform: none; }
.ljg-modal-box.is-wide { width: min(680px, 100%); }
.ljg-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.ljg-modal-head h3 { margin: 0; font-size: 18px; color: var(--ljg-text); }
.ljg-modal-body { padding: 6px 22px 8px; overflow: auto; }
.ljg-modal-body p { margin: 0 0 10px; line-height: 1.5; }
.ljg-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }
.ljg-modal code { font-size: .92em; padding: 1px 5px; border-radius: 5px; background: var(--ljg-glass-3); }

.ljg-form { display: flex; flex-direction: column; gap: 12px; }
.ljg-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ljg-muted); flex: 1; }
.ljg-form label.is-small { flex: 0 0 110px; }
.ljg-form input:not([type=checkbox]), .ljg-form textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--ljg-text);
  background: var(--ljg-glass-2); border: 1px solid var(--ljg-border-2); outline: none; transition: border-color .2s;
}
.ljg-form textarea { resize: vertical; min-height: 60px; }
.ljg-form input:focus, .ljg-form textarea:focus { border-color: var(--ljg-accent); }
.ljg-row { display: flex; gap: 10px; }
.ljg-check { flex-direction: row !important; align-items: center; gap: 9px !important; font-size: 14px !important; color: var(--ljg-text) !important; cursor: pointer; }
.ljg-check input { width: 18px; height: 18px; accent-color: var(--ljg-accent); }
.ljg-cap-prev img { display: block; max-width: 100%; max-height: 180px; margin: 0 auto 4px; border-radius: 8px; }
@media (max-width: 520px) { .ljg-row { flex-direction: column; } .ljg-form label.is-small { flex: 1; } }

.ljg-drop {
  border: 2px dashed var(--ljg-border-2); border-radius: 14px; padding: 24px 16px; text-align: center; transition: border-color .2s, background .2s;
}
.ljg-drop.is-over { border-color: var(--ljg-accent); background: rgba(217, 180, 90, .08); }
.ljg-drop.is-disabled { opacity: .45; pointer-events: none; }
.ljg-drop p { margin: 0 0 4px; }
.ljg-drop-icon svg { width: 34px; height: 34px; color: var(--ljg-accent); margin-bottom: 6px; }
.ljg-drop-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ljg-up-summary { margin-top: 14px; }
.ljg-up-ok { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(108, 197, 154, .1); border: 1px solid rgba(108, 197, 154, .35); }
.ljg-up-ok svg { color: var(--ljg-ok); margin-top: 2px; }
.ljg-warn { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(228, 106, 106, .1); border: 1px solid rgba(228, 106, 106, .35); font-size: 13.5px; }
.ljg-up-progress { margin-top: 14px; }
.ljg-bar { height: 8px; border-radius: 99px; background: var(--ljg-glass-3); overflow: hidden; }
.ljg-bar span { display: block; height: 100%; width: 0; background: var(--ljg-accent); border-radius: inherit; transition: width .25s; }
.ljg-up-status { margin-top: 8px; font-size: 13.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ljg-muted { color: var(--ljg-muted); }
.ljg-small { font-size: 12.5px; margin-top: 12px !important; }

/* ---------- Toast ---------- */
.ljg-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 2147483002; max-width: min(92vw, 560px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 999px; font-size: 14px; text-align: center;
  background: var(--ljg-glass-strong); color: var(--ljg-text); border: 1px solid var(--ljg-border-2);
  box-shadow: var(--ljg-shadow); -webkit-backdrop-filter: var(--ljg-blur); backdrop-filter: var(--ljg-blur);
  transition: opacity .3s, transform .3s;
}
.ljg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ljg-toast[data-type=error] { border-color: rgba(228, 106, 106, .6); border-radius: 14px; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .ljg-card { padding: 18px 18px; border-radius: 14px; }
  .ljg-toolbar .ljg-btn { padding: 7px 12px; font-size: 13px; }
  .ljg-hint { display: block; width: 100%; margin: 4px 0 0; }
  .ljg-albumnav .ljg-btn span { max-width: 22vw; }
  .ljg-grid.is-sort { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .ljg-grid.is-sort .ljg-badge.is-cover, .ljg-grid.is-justified.is-edit .ljg-badge.is-cover { display: none; }
  .ljg-tools button { width: 28px; height: 28px; }
  .ljg-play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .ljg-play svg { width: 16px; height: 16px; margin-left: 2px; }
  .ljg-dur { font-size: 10.5px; padding: 1px 5px; right: 4px; bottom: 4px; }
}



/* ---------- Seitenpanel (Darstellung / Größe) ---------- */
.ljg-modal.is-panel { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; padding: 0; justify-content: flex-end; align-items: stretch; }
.ljg-modal.is-panel .ljg-modal-box {
  pointer-events: auto; width: min(420px, 100%); max-height: none; height: 100%; border-radius: 0;
  border-width: 0 0 0 1px; transform: translateX(30px); box-shadow: -18px 0 50px rgba(0, 0, 0, .45);
  background: rgba(14, 20, 28, .9); -webkit-backdrop-filter: var(--ljg-blur); backdrop-filter: var(--ljg-blur);
}
.ljg-modal.is-panel.is-on .ljg-modal-box { transform: none; }
.ljg-modal.is-panel .ljg-modal-foot { border-top: 1px solid var(--ljg-border); padding-top: 14px; }
.ljg-modal-foot .is-left { margin-right: auto; }
.ljg-modal-body h4 { margin: 20px 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ljg-accent); }
.ljg-field { margin: 0 0 14px; }
.ljg-flabel { display: block; font-size: 13px; color: var(--ljg-muted); margin-bottom: 6px; }
.ljg-flabel small { opacity: .75; }
.ljg-rng { display: flex; align-items: center; gap: 12px; }
.ljg-rng input[type=range] { flex: 1; accent-color: var(--ljg-accent); min-width: 0; }
.ljg-num { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 0 4px; border-radius: 10px; background: var(--ljg-glass-2); border: 1px solid var(--ljg-border-2); }
.ljg-num input { width: 52px; padding: 6px 2px 6px 6px; border: 0; background: transparent; color: var(--ljg-text); font: inherit; font-size: 14px; text-align: right; outline: none; }
.ljg-num i { font-style: normal; font-size: 12px; color: var(--ljg-muted); }
.ljg-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ljg-pills button, .ljg-seg button, .ljg-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ljg-pill-border); background: var(--ljg-pill-bg);
  color: rgba(255, 255, 255, .88); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.ljg-pills button:hover, .ljg-seg button:hover, .ljg-chip:hover { background: var(--ljg-pill-bg-hover); border-color: var(--ljg-pill-border-hover); }
.ljg-pills button.is-on, .ljg-seg button.is-on, .ljg-chip.is-on { background: var(--ljg-pill-active-bg); border-color: var(--ljg-pill-active-border); color: rgba(255, 255, 255, .95); }
.ljg-pills.is-wide button { flex: 1; }
.ljg-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--ljg-glass-2); border: 1px solid var(--ljg-border); }
.ljg-seg button { border: 0; padding: 6px 14px; }
.ljg-small0 { font-size: 12.5px; margin: 0 0 10px !important; }
.ljg-pat { padding: 10px 12px; margin: 8px 0; border-radius: 12px; border: 1px solid var(--ljg-border); background: rgba(255, 255, 255, .025); }
.ljg-pat.is-cur { border-color: rgba(217, 180, 90, .5); }
.ljg-pat.is-bad { border-color: var(--ljg-danger); }
.ljg-pat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ljg-pat-n { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ljg-pat-n em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--ljg-accent); margin-left: 4px; }
.ljg-pat-head input { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--ljg-border-2); background: var(--ljg-glass-2); color: var(--ljg-text); font: inherit; font-size: 14px; outline: none; }
.ljg-pat-head input:focus { border-color: var(--ljg-accent); }
.ljg-pat.is-bad .ljg-pat-head input { border-color: var(--ljg-danger); }
.ljg-pat-err { display: block; color: var(--ljg-danger); font-size: 12px; margin-top: 6px; }
.ljg-pat-err:empty { display: none; }
.ljg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ljg-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; font-size: 12.5px; }
.ljg-mini { display: inline-flex; flex-direction: column; gap: 2px; width: 22px; }
.ljg-mini i { display: flex; gap: 2px; }
.ljg-mini b { flex: 1; height: 5px; border-radius: 1.5px; background: currentColor; opacity: .7; }
.ljg-more { margin-top: 10px; }
.ljg-more summary { cursor: pointer; font-size: 13px; color: var(--ljg-muted); padding: 6px 0; }
.ljg-more summary:hover { color: var(--ljg-text); }
@media (max-width: 640px) {
  .ljg-modal.is-panel { align-items: flex-end; }
  .ljg-modal.is-panel .ljg-modal-box { height: 62vh; width: 100%; border-radius: 18px 18px 0 0; border-width: 1px 0 0; transform: translateY(30px); }
}

/* ---------- Speicherplatz (privat) ---------- */
.ljg-modal-box.is-wide:has(.ljg-st) { width: min(920px, 100%); }
.ljg-st { display: grid; gap: 12px; padding-bottom: 6px; }
.ljg-st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ljg-st-tile { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ljg-border); background: var(--ljg-glass-2); display: flex; flex-direction: column; min-width: 0; }
.ljg-st-tile span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ljg-muted); }
.ljg-st-tile b { font-size: 18px; color: var(--ljg-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ljg-st-tile small { font-size: 11.5px; color: var(--ljg-muted); }
.ljg-st-tile.is-ok b { color: var(--ljg-ok); }
.ljg-st-tile.is-warn { border-color: rgba(228, 106, 106, .45); }
.ljg-st-tile.is-warn b { color: var(--ljg-danger); }
.ljg-st-split { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; }
.ljg-st-split i, .ljg-st-legend i { background: var(--ljg-accent); }
.ljg-st-split i.is-vid, .ljg-st-legend i.is-vid { background: rgba(99, 179, 237, .85); }
.ljg-st-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ljg-muted); margin: -4px 0 0 !important; }
.ljg-st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ljg-st-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ljg-st-h { margin: 6px 0 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ljg-accent); }
.ljg-st-albums { display: grid; gap: 6px; }
.ljg-st-album { border: 1px solid var(--ljg-border); border-radius: 12px; overflow: hidden; }
.ljg-st-album > summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(4rem, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; cursor: pointer; list-style: none; background: var(--ljg-glass-2); }
.ljg-st-album > summary::-webkit-details-marker { display: none; }
.ljg-st-album[open] > summary { border-bottom: 1px solid var(--ljg-border); }
.ljg-st-an { display: flex; flex-direction: column; min-width: 0; }
.ljg-st-an b { color: var(--ljg-text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ljg-st-an small, .ljg-st-num small { font-size: 11.5px; color: var(--ljg-muted); }
.ljg-st-num { display: flex; flex-direction: column; align-items: flex-end; }
.ljg-st-num b { color: var(--ljg-text); font-size: 14px; }
.ljg-st-num small.is-warn, .ljg-st-parts em { color: var(--ljg-danger); font-style: normal; }
.ljg-st-bar { display: block; height: 6px; border-radius: 6px; background: var(--ljg-glass-3); overflow: hidden; }
.ljg-st-bar b { display: block; height: 100%; border-radius: 6px; background: var(--ljg-accent); }
.ljg-st-files { padding: 8px 10px 10px; display: grid; gap: 8px; max-height: 26rem; overflow: auto; }
.ljg-st-orph { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(228, 106, 106, .4); background: rgba(228, 106, 106, .08); font-size: 13px; }
.ljg-st-orph b { color: var(--ljg-danger); }
.ljg-st-items, .ljg-st-top, .ljg-st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ljg-st-items li, .ljg-st-top li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 9px; }
.ljg-st-items li:hover, .ljg-st-top li:hover { background: var(--ljg-glass-2); }
.ljg-st-items img, .ljg-st-top img { width: 44px; height: 33px; object-fit: cover; border-radius: 6px; background: var(--ljg-tile-bg); }
.ljg-st-in, .ljg-st-top li > span { display: flex; flex-direction: column; min-width: 0; }
.ljg-st-in b, .ljg-st-top li > span b { font-size: 13px; font-weight: 500; color: var(--ljg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ljg-st-in small, .ljg-st-top small { font-size: 11.5px; color: var(--ljg-muted); }
.ljg-st-items li > b, .ljg-st-top li > b { font-size: 13px; color: var(--ljg-text); white-space: nowrap; }
.ljg-st-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; background: var(--ljg-glass-2); font-size: 13px; }
.ljg-st-list li span { flex: 1; }
.ljg-st-months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 120px; align-items: end; }
.ljg-st-months > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.ljg-st-months i { width: 70%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: var(--ljg-accent); }
.ljg-st-months small { font-size: 10.5px; color: var(--ljg-muted); white-space: nowrap; }
.ljg-st-months b { font-size: 10.5px; font-weight: 500; color: var(--ljg-text); white-space: nowrap; }
.ljg-btn.is-sm { padding: 5px 11px; font-size: 12.5px; }
.ljg-link { font: inherit; background: none; border: 0; padding: 0; color: var(--ljg-accent); cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
  .ljg-st-tiles { grid-template-columns: 1fr 1fr; }
  .ljg-st-album > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .ljg-st-album > summary .ljg-st-bar { grid-column: 1 / -1; order: 3; }
  .ljg-st-months b { display: none; }
}
