/* Hub grid, film collection, playlist card.
   Header and article-card rules stay in journal-preview.css. */

.jr-page--hub .jr-draft {
  margin: 0 0 22px;
  max-width: 42rem;
}

.jr-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* Fixed row track: 1×2 = one row tall (horizontal), L = two rows */
  grid-auto-rows: 168px;
  /* Positions come from PHP shelf packer (inline grid-column/row) — no auto holes */
  grid-auto-flow: row;
  gap: 20px;
  align-items: start;
}

.jr-mosaic-u1 {
  grid-column: span 1;
  grid-row: span 1;
  min-width: 0;
  align-self: start;
  height: 168px;
  max-height: 168px;
  overflow: hidden;
}

.jr-mosaic-u2 {
  /* 1×2 recipe = TWO columns wide, ONE row tall (horizontal photo|text) */
  grid-column: span 2;
  grid-row: span 1;
  min-width: 0;
  align-self: start;
  height: 168px;
  max-height: 168px;
  overflow: hidden;
}

.jr-mosaic-L {
  /* Large = THREE columns wide, TWO rows tall */
  grid-column: span 3;
  grid-row: span 2;
  min-width: 0;
  align-self: stretch;
  height: calc(168px * 2 + 20px);
  max-height: calc(168px * 2 + 20px);
  overflow: hidden;
}

.jr-mosaic-span {
  grid-column: 1 / -1;
  min-width: 0;
}

.jr-mosaic > .jr-stream-card {
  min-width: 0;
  height: auto;
}

.jr-page--hub .jr-mosaic .jr-stream-card.jr-stream--compact .jr-stream-img {
  flex: 0 0 auto;
  width: 100%;
  height: 88px;
  margin: 0;
  border-radius: 14px;
}

/* u2 / L: photo is half the card — never the old 128px square */
.jr-page--hub .jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-img,
.jr-page--hub .jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-img,
.jr-page--mosaic .jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-img,
.jr-page--mosaic .jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-img {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  align-self: stretch;
}

.jr-page--hub .jr-mosaic .jr-stream-body,
.jr-page--mosaic .jr-mosaic .jr-stream-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 22px 16px 6px;
  gap: 8px;
  min-height: 0;
  align-self: stretch;
}

.jr-page--hub .jr-mosaic .jr-stream-title-link,
.jr-page--mosaic .jr-mosaic .jr-stream-title-link {
  flex: 1 1 auto;
  min-height: 0;
}

.jr-page--hub .jr-mosaic .jr-stream-title,
.jr-page--hub .jr-mosaic .jr-stream-card.is-feature .jr-stream-title,
.jr-page--mosaic .jr-mosaic .jr-stream-title,
.jr-page--mosaic .jr-mosaic .jr-stream-card.is-feature .jr-stream-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  overflow: hidden;
  min-height: 0;
  text-overflow: clip;
}

.jr-page--hub .jr-mosaic .jr-stream-meta,
.jr-page--mosaic .jr-mosaic .jr-stream-meta {
  margin-top: auto;
}

.jr-mosaic .jr-feed-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.jr-mosaic .jr-feed-empty[hidden] {
  display: none !important;
}

/* Film strip */

.jr-film-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.jr-film-link:hover .jr-film {
  filter: saturate(1.04) brightness(1.02);
}

.jr-film {
  --jr-film-bg: #d5c2f2;
  --jr-film-ink: #2a2340;
  --jr-film-sprocket-from: #9078d2;
  --jr-film-sprocket-to: #a78ae0;
  --jr-film-sprocket-bottom-from: #a78ae0;
  --jr-film-sprocket-bottom-to: #8f76d0;
  --jr-film-hole-from: #cbb8f3;
  --jr-film-hole-to: #b197e4;
  --jr-film-copy-bg: rgba(214, 196, 242, 0.94);
  --jr-film-meta: #6a5d86;
  --jr-film-title: #241c33;
  --jr-film-lead: #65597c;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: var(--jr-film-bg);
  color: var(--jr-film-ink);
  text-decoration: none !important;
}

/* Holiday hook: set --jr-film-* vars and/or background-image when assets arrive. */
.jr-film--festive {
  /* intentional empty — skins applied per campaign */
}

.jr-film-sprocket {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(180deg, var(--jr-film-sprocket-from) 0%, var(--jr-film-sprocket-to) 100%);
}

.jr-film-sprocket--bottom {
  background: linear-gradient(180deg, var(--jr-film-sprocket-bottom-from) 0%, var(--jr-film-sprocket-bottom-to) 100%);
}

.jr-film-sprocket span {
  display: block;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--jr-film-hole-from) 0%, var(--jr-film-hole-to) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.jr-film-stage {
  display: block;
  position: relative;
  background: var(--jr-film-bg);
}

.jr-film-visual {
  display: block;
  background: #e6dcf8;
  object-fit: cover;
}

.jr-film-slot {
  background: #efe7fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.jr-film--overlay .jr-film-stage {
  padding: 16px 20px;
}

.jr-film--overlay .jr-film-visual {
  width: 100%;
  height: 300px;
  margin: 0;
  border-radius: 2px;
}

.jr-film--overlay .jr-film-copy {
  display: block;
  position: absolute;
  left: 20px;
  bottom: 16px;
  width: 440px;
  padding: 18px 22px 16px;
  background: var(--jr-film-copy-bg);
}

.jr-film--plain .jr-film-stage {
  padding: 26px 32px 28px;
}

.jr-film--plain .jr-film-visual {
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 7;
  border-radius: 3px;
}

.jr-film-label {
  display: block;
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--jr-film-meta, #6a5d86);
}

.jr-film-title,
.jr-film-page-title,
.jr-film-page-copy h1 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--jr-film-title, #241c33) !important;
}

.jr-film-title {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.12;
}

.jr-film-lead {
  display: block;
  margin-top: 8px;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: var(--jr-film-lead, #65597c);
}

.jr-film-page {
  padding: 8px 0 48px;
}

.jr-film-page-hero {
  max-width: 920px;
}

.jr-film-page-hero .jr-film--plain {
  border-radius: 28px;
}

.jr-film-page-hero .jr-film--plain .jr-film-visual {
  min-height: 280px;
  aspect-ratio: 16 / 7;
  border-radius: 4px;
}

.jr-film-page-copy {
  max-width: 680px;
  margin-top: 36px;
}

.jr-film-page-title,
.jr-film-page-copy h1 {
  margin: 10px 0 0;
  font-size: 44px;
  line-height: 1.1;
}

.jr-film-page-lead {
  margin: 18px 0 0;
  max-width: 38rem;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: #5c5470;
}

.jr-film-text {
  margin-top: 28px;
  max-width: 40rem;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  color: #404040;
}

.jr-film-text p {
  margin: 0 0 14px;
}

.jr-film-text p:last-child {
  margin-bottom: 0;
}

.jr-page--kino .jr-wrap {
  padding-top: 8px;
  padding-bottom: 40px;
}

/* Playlist */

.jr-mix {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 18px 18px 14px;
  border-radius: 28px;
  background: linear-gradient(120deg, #f3eefc 0%, #f7eef8 48%, #ffe8f3 100%);
  color: #2a2340;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(255, 112, 184, 0.08);
}

.jr-mix:hover {
  filter: brightness(1.015);
}

.jr-mix-label {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4em;
  padding-left: 4px;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8bb0;
  white-space: nowrap;
  overflow: hidden;
}

.jr-mix-player {
  display: block;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  margin-top: 12px;
  padding: 16px 16px 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(40, 30, 60, 0.06);
  box-sizing: border-box;
}

.jr-mix-heart {
  position: absolute;
  top: -2px;
  right: 22px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 28px;
  height: 36px;
  padding-top: 6px;
  background: #ff70b8;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.jr-mix-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 36px;
}

.jr-mix-icon {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #efe7ff;
  overflow: hidden;
}

.jr-mix-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jr-mix-main {
  flex: 1;
  min-width: 0;
  padding: 4px 0 2px;
}

.jr-mix-title {
  display: block;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 20px;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.2;
  color: #241c33 !important;
}

.jr-mix-lead {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #6d6286;
}

.jr-mix-progress,
.jr-mix-foot {
  display: block;
}

.jr-mix-progress {
  margin-top: 14px;
}

.jr-mix-track {
  position: relative;
  height: 3px;
  border-radius: 99px;
  background: #eee8f2;
}

.jr-mix-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--jr-mix-at, 42%);
  border-radius: 99px;
  background: linear-gradient(90deg, #ff70b8 0%, #ff9ad0 100%);
}

.jr-mix-dot {
  position: absolute;
  top: 50%;
  left: var(--jr-mix-at, 42%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff70b8;
  box-shadow: 0 0 0 4px rgba(255, 112, 184, 0.18);
  transform: translate(-50%, -50%);
}

.jr-mix-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px;
  color: #b0a8c0;
}

.jr-mix-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
  color: #d0b8d8;
}

.jr-mix-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff70b8;
  box-shadow: 0 8px 18px rgba(255, 112, 184, 0.32);
}

.jr-mix--playing .jr-mix-play svg {
  margin-left: 0;
}

.jr-mix-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-left: 2px;
  flex: 0 0 auto;
}

.jr-mix-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffe3f1;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 12px;
  font-weight: 500;
  color: #c44f8c;
}

.jr-mix-dur {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px;
  font-weight: 400;
  color: #9a8bb0;
}

/* Book collection card */

.jr-book {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(160deg, #fff6ea 0%, #f7e6d4 55%, #f3dcc8 100%);
  color: #2a2340;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(160, 120, 80, 0.08);
}

.jr-book:hover {
  filter: brightness(1.02);
}

.jr-book-label {
  display: block;
  padding: 18px 22px 0;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a735c;
}

.jr-book-stage {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 14px 18px 18px;
}

.jr-book-visual {
  display: block;
  flex: 0 0 112px;
  width: 112px;
  height: 148px;
  object-fit: cover;
  border-radius: 10px;
  background: #efe0d0;
}

.jr-book-slot {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.jr-book-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.jr-book-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 24px;
  font-weight: 700 !important;
  line-height: 1.18;
  color: #241c33 !important;
}

.jr-book-lead {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 14px;
  line-height: 1.45;
  color: #6d5c4c;
}

.jr-book--large .jr-book-stage {
  padding: 18px 22px 22px;
}

.jr-book--large .jr-book-visual {
  flex-basis: 160px;
  width: 160px;
  height: 210px;
}

.jr-book--large .jr-book-title {
  font-size: 34px;
}

/* Alphabet term card (always compact) */

.jr-term {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 30, 60, 0.05);
  color: inherit;
  text-decoration: none !important;
}

.jr-term:hover {
  box-shadow: 0 12px 30px rgba(40, 30, 60, 0.08);
}

.jr-term-label {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.jr-term-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 26px;
  font-weight: 700 !important;
  line-height: 1.2;
  color: #241c33 !important;
}

.jr-term-lead {
  margin-top: 2px;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #5c5470;
}

.jr-film-link--compact .jr-film--overlay .jr-film-visual {
  height: 180px;
}

.jr-film-link--compact .jr-film-title {
  font-size: 24px;
}

.jr-film-link--compact .jr-film--overlay .jr-film-copy {
  width: auto;
  max-width: calc(100% - 24px);
}

.jr-mix .jr-mix-title {
  font-size: 22px;
}

@media (max-width: 760px) {
  .jr-page--hub .jr-draft {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
  }

  .jr-mosaic {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* 6-unit spans collapse above */

  .jr-page--hub .jr-mosaic .jr-stream-img,
  .jr-page--hub .jr-mosaic .jr-stream-card.is-feature .jr-stream-img {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    margin: 10px;
    border-radius: 12px;
  }

  .jr-page--hub .jr-mosaic .jr-stream-body {
    padding: 10px 12px 10px 2px;
    gap: 4px;
  }

  .jr-page--hub .jr-mosaic .jr-stream-title,
  .jr-page--hub .jr-mosaic .jr-stream-card.is-feature .jr-stream-title {
    font-size: clamp(14px, 4.2vw, 17px) !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: unset;
    min-height: 0;
    max-height: none;
    text-overflow: clip;
  }

  .jr-page--hub .jr-mosaic .jr-stream-kicker {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  .jr-film {
    border-radius: 20px;
  }

  .jr-film-sprocket {
    gap: 7px;
    padding: 8px 10px;
  }

  .jr-film-sprocket span {
    height: 14px;
    border-radius: 3px;
  }

  .jr-film--overlay .jr-film-stage {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 4px;
  }

  .jr-film--overlay .jr-film-visual {
    width: 100%;
    height: 168px;
    margin: 0;
  }

  .jr-film--overlay .jr-film-copy {
    position: static;
    width: auto;
    padding: 12px 4px 8px;
    background: transparent;
  }

  .jr-film-title {
    margin-top: 6px;
    font-size: 26px;
  }

  .jr-film-lead {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
  }

  .jr-film--plain .jr-film-stage {
    padding: 12px;
  }

  .jr-film--plain .jr-film-visual {
    min-height: 148px;
    aspect-ratio: 16 / 10;
  }

  .jr-film-page {
    padding-bottom: 12px;
  }

  .jr-film-page-copy {
    margin-top: 16px;
  }

  .jr-film-page-copy h1 {
    margin-top: 8px;
    font-size: 32px;
  }

  .jr-film-page-lead {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  .jr-film-text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .jr-mix {
    padding: 14px 12px 12px;
    border-radius: 22px;
  }

  .jr-mix-label {
    padding-left: 2px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .jr-mix-player {
    margin-top: 10px;
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .jr-mix-heart {
    right: 16px;
    width: 24px;
    height: 32px;
    padding-top: 5px;
  }

  .jr-mix-row {
    gap: 10px;
    padding-right: 28px;
  }

  .jr-mix-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .jr-mix-icon svg {
    width: 22px;
    height: 22px;
  }

  .jr-mix-main {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .jr-mix-title {
    font-size: 22px;
  }

  .jr-mix-lead {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .jr-mix-progress {
    margin-top: 12px;
  }

  .jr-mix-controls {
    gap: 22px;
    margin-top: 4px;
  }

  .jr-mix-play {
    width: 48px;
    height: 48px;
  }

  .jr-mix-foot {
    gap: 10px;
    margin-top: 10px;
    padding-left: 0;
  }

  .jr-mix-pill {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
  }

  .jr-mix-dur {
    font-size: 13px;
  }

  .jr-book {
    border-radius: 20px;
  }

  .jr-book-label {
    padding: 12px 14px 0;
    font-size: 10px;
  }

  .jr-book-stage {
    gap: 12px;
    padding: 10px 12px 14px;
  }

  .jr-book-visual,
  .jr-book--large .jr-book-visual {
    flex-basis: 84px;
    width: 84px;
    height: 112px;
  }

  .jr-book-title,
  .jr-book--large .jr-book-title {
    font-size: 20px;
  }

  .jr-book-lead {
    font-size: 13px;
  }

  .jr-term {
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .jr-term-title {
    font-size: 20px;
  }

  .jr-term-lead {
    font-size: 13px;
  }

  .jr-film-link--compact .jr-film--overlay .jr-film-visual {
    height: 148px;
  }
}


/* Mosaic meta line — match alphabet term label (IBM, caps, gray, leading •) */
.jr-page .jr-mosaic .jr-stream-kicker,
.jr-page .jr-mosaic .jr-term-label,
.jr-page .jr-mosaic .jr-mix-label,
.jr-page .jr-mosaic .jr-film-label,
.jr-page .jr-mosaic .jr-book-label {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #9a9a9a !important;
  opacity: 1 !important;
}

/* Long theme•format (e.g. «практики удовольствия • статья») — shrink, stay one line */
.jr-page .jr-mosaic .jr-stream-kicker {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline;
  gap: 0.35em;
  font-size: clamp(7px, 0.72vw, 10px) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-width: 100%;
  flex: 0 0 auto !important;
}
.jr-page .jr-mosaic .jr-stream-kicker .jr-kicker-link,
.jr-page .jr-mosaic .jr-stream-kicker .jr-kicker-sep,
.jr-page .jr-mosaic .jr-stream-kicker .jr-kicker-dot {
  flex: 0 0 auto;
  white-space: nowrap !important;
}

.jr-page .jr-mosaic .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-title em,
.jr-page .jr-mosaic .jr-term-title,
.jr-page .jr-mosaic .jr-mix-title,
.jr-page .jr-mosaic .jr-film-title,
.jr-page .jr-mosaic .jr-book-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700 !important;
}

.jr-page .jr-mosaic .jr-stream-title em {
  font-style: italic !important;
  color: #ff70b8 !important;
}

.jr-page .jr-mosaic .jr-stream-meta,
.jr-page .jr-mosaic .jr-term-lead,
.jr-page .jr-mosaic .jr-mix-lead,
.jr-page .jr-mosaic .jr-film-lead,
.jr-page .jr-mosaic .jr-book-lead {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-style: normal !important;
}


/* 6-unit mosaic stream cards */
.jr-mosaic .jr-stream-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.jr-mosaic .jr-stream-card.jr-stream--photo-right {
  flex-direction: row-reverse;
}

.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-img,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-img {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  align-self: stretch;
}

.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-img img,
.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-ph,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-img img,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-body,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-body {
  flex: 1 1 50%;
  width: 50%;
  padding: 16px 18px;
  gap: 8px;
}

.jr-mosaic .jr-stream-lead {
  display: block;
  overflow: hidden;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #5c5470;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

.jr-mosaic .jr-stream-card.jr-stream--compact.jr-mosaic-u1 {
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}

.jr-mosaic .jr-stream-card.jr-stream--compact .jr-stream-img {
  flex: 0 0 auto;
  width: 100%;
  height: 96px;
  margin: 0;
  border-radius: 14px;
}

.jr-mosaic .jr-stream-card.jr-stream--compact .jr-stream-body {
  padding: 0;
  gap: 6px;
}

.jr-mosaic .jr-stream-card.jr-stream--compact .jr-stream-title {
  font-size: clamp(13px, 2.2vw, 16px) !important;
  min-height: 0;
  max-height: none;
  -webkit-line-clamp: unset;
}

.jr-mosaic .jr-mix.jr-mosaic-u1,
.jr-mosaic .jr-term.jr-mosaic-u1 {
  grid-column: span 1;
}

.jr-mosaic .jr-film-link.jr-mosaic-L {
  grid-column: span 3;
  grid-row: span 2;
}

.jr-mosaic .jr-film-link.jr-mosaic-u2 {
  grid-column: span 2;
}

.jr-mosaic .jr-book.jr-mosaic-L {
  grid-column: span 3;
  grid-row: span 2;
}

.jr-mosaic .jr-book.jr-mosaic-u2 {
  grid-column: span 2;
}


/* Mosaic axis lock after nested-a fix */
.jr-mosaic > .jr-mix.jr-mosaic-u1,
.jr-mosaic > .jr-term.jr-mosaic-u1,
.jr-mosaic > .jr-book.jr-mosaic-u1,
.jr-mosaic > .jr-film-link.jr-mosaic-u1 {
  grid-column: span 1;
  grid-row: span 1;
  height: 168px;
  max-height: 168px;
  overflow: hidden;
  align-self: start;
}
.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-img img,
.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-ph,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-img img,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-ph {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}
.jr-mosaic .jr-stream-card.jr-mosaic-u1 .jr-stream-body,
.jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-body,
.jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-body {
  min-height: 0;
  overflow: hidden;
}

.jr-mosaic .jr-film-label,
.jr-mosaic .jr-mix-label,
.jr-mosaic .jr-book-label,
.jr-mosaic .jr-term-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45em;
}

@media (max-width: 980px) {
  .jr-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jr-mosaic-u1 { grid-column: span 1; }
  .jr-mosaic-u2 { grid-column: span 2; }
  .jr-mosaic-L {
    grid-column: span 2;
    grid-row: span 2;
  }
  .jr-mosaic .jr-film-link.jr-mosaic-L,
  .jr-mosaic .jr-book.jr-mosaic-L {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .jr-mosaic {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .jr-mosaic-u1,
  .jr-mosaic-u2,
  .jr-mosaic-L,
  .jr-mosaic .jr-film-link.jr-mosaic-L,
  .jr-mosaic .jr-film-link.jr-mosaic-u2,
  .jr-mosaic .jr-book.jr-mosaic-L,
  .jr-mosaic .jr-book.jr-mosaic-u2 {
    grid-column: span 1;
    grid-row: auto;
  }
  .jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-img,
  .jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-img {
    flex-basis: 112px;
    width: 112px;
    min-height: 112px;
    height: 112px;
    margin: 10px;
    border-radius: 12px;
  }
  .jr-mosaic .jr-stream-card.jr-mosaic-u2 .jr-stream-body,
  .jr-mosaic .jr-stream-card.jr-mosaic-L .jr-stream-body {
    flex-basis: auto;
    width: auto;
    padding: 10px 12px 10px 2px;
  }
}


/* Narrow 1/6 cards: keep format meta readable */
.jr-mosaic .jr-mosaic-u1 .jr-mix-label,
.jr-mosaic .jr-mosaic-u1 .jr-term-label,
.jr-mosaic .jr-mosaic-u1 .jr-stream-kicker {
  letter-spacing: 0.06em !important;
  font-size: 10px !important;
}
.jr-mosaic .jr-mix-label .jr-kicker-link,
.jr-mosaic .jr-film-label .jr-kicker-link,
.jr-mosaic .jr-book-label .jr-kicker-link,
.jr-mosaic .jr-term-label .jr-kicker-link {
  color: inherit !important;
  text-decoration: none !important;
}

/* ===== v12sizes: height×width tokens 1x2 / 2x2 / 2x4 ===== */
.jr-mosaic {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: 168px !important;
  grid-auto-flow: dense !important;
  gap: 20px !important;
  align-items: start !important;
}

/* neutralize legacy tokens if any leftover markup */
.jr-mosaic-u1,
.jr-mosaic-u2,
.jr-mosaic-L {
  grid-column: unset;
  grid-row: unset;
  height: auto;
  max-height: none;
}

/* Size classes: height only. Column/row start+span set inline by shelf packer. */
.jr-mosaic-1x1 {
  min-width: 0;
  align-self: start;
  height: 168px !important;
  max-height: 168px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.jr-mosaic-1x2 {
  min-width: 0;
  align-self: start;
  height: 168px !important;
  max-height: 168px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.jr-mosaic-2x2 {
  min-width: 0;
  align-self: stretch;
  height: calc(168px * 2 + 20px) !important;
  max-height: calc(168px * 2 + 20px) !important;
  overflow: hidden;
  box-sizing: border-box;
}

.jr-mosaic-2x3 {
  min-width: 0;
  align-self: stretch;
  height: calc(168px * 2 + 20px) !important;
  max-height: calc(168px * 2 + 20px) !important;
  overflow: hidden;
  box-sizing: border-box;
}

.jr-mosaic-2x4 {
  min-width: 0;
  align-self: stretch;
  height: calc(168px * 2 + 20px) !important;
  max-height: calc(168px * 2 + 20px) !important;
  overflow: hidden;
  box-sizing: border-box;
}

.jr-mosaic .jr-stream-card,
.jr-mosaic a.jr-stream-card {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  height: 100% !important;
  max-height: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.jr-mosaic .jr-stream-card.jr-stream--photo-right,
.jr-mosaic a.jr-stream-card.jr-stream--photo-right {
  flex-direction: row-reverse !important;
}

.jr-page--hub .jr-mosaic .jr-stream-card .jr-stream-img,
.jr-page--mosaic .jr-mosaic .jr-stream-card .jr-stream-img,
.jr-mosaic .jr-stream-card .jr-stream-img {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  align-self: stretch;
  overflow: hidden;
  display: block;
}

.jr-mosaic .jr-stream-card .jr-stream-img img,
.jr-mosaic .jr-stream-card .jr-stream-ph {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.jr-mosaic .jr-stream-card .jr-stream-body {
  flex: 1 1 50% !important;
  width: 50% !important;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 16px !important;
  gap: 6px !important;
  align-self: stretch !important;
}

.jr-page--hub .jr-mosaic .jr-stream-title,
.jr-page--hub .jr-mosaic .jr-stream-card.is-feature .jr-stream-title,
.jr-page--mosaic .jr-mosaic .jr-stream-title,
.jr-page--mosaic .jr-mosaic .jr-stream-card.is-feature .jr-stream-title {
  min-height: 0 !important;
  overflow: hidden;
  text-overflow: clip !important;
}

.jr-page--hub .jr-mosaic .jr-stream-meta,
.jr-page--mosaic .jr-mosaic .jr-stream-meta,
.jr-mosaic .jr-stream-meta {
  margin-top: 4px !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 12px;
  color: #9a9a9a;
  flex: 0 0 auto !important;
}

.jr-mosaic .jr-stream-lead {
  overflow: hidden;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px;
  line-height: 1.4;
  color: #5c5470;
  text-overflow: clip;
  flex: 0 0 auto;
}

.jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-kicker {
  font-size: clamp(7px, 0.7vw, 9px) !important;
  letter-spacing: 0.03em !important;
}
.jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-title {
  font-size: clamp(13px, 2.1vw, 16px) !important;
  line-height: 1.2 !important;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
}
.jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-lead {
  font-size: 12px;
  line-height: 1.35;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
}
.jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-body {
  padding: 10px 12px !important;
}

.jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-title {
  font-size: clamp(15px, 1.45vw, 19px) !important;
  line-height: 1.22 !important;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
}
.jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-lead {
  font-size: 13px;
  line-height: 1.35;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
}

.jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-title {
  font-size: clamp(17px, 1.7vw, 23px) !important;
  line-height: 1.22 !important;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
}
.jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-lead {
  font-size: 14px;
  line-height: 1.4;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto !important;
}

.jr-mosaic .jr-stream-card.jr-stream--long-title .jr-stream-title {
  font-size: clamp(13px, 1.25vw, 17px) !important;
  line-height: 1.2 !important;
}

/* Playlist draft = 2×2 full player; alphabet 1×2 or short 1×1 */
.jr-mosaic > .jr-mix.jr-mosaic-2x2 {
  height: calc(168px * 2 + 20px) !important;
  max-height: calc(168px * 2 + 20px) !important;
  overflow: hidden;
  padding: 14px 14px 12px !important;
  border-radius: 24px;
  display: flex !important;
  flex-direction: column !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-label {
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  color: #9a8bb0 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-player {
  margin-top: 10px;
  padding: 14px 14px 10px;
  border-radius: 18px;
  flex: 1 1 auto;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-title {
  font-size: clamp(16px, 1.5vw, 20px) !important;
  line-height: 1.2;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-lead {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.35;
  max-height: calc(1.35em * 3);
  overflow: hidden;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-controls {
  display: flex !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-foot {
  display: flex !important;
  margin-top: 10px;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-icon {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-play {
  width: 44px;
  height: 44px;
  background: #ff70b8;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-progress {
  margin-top: 10px;
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-fill {
  background: linear-gradient(90deg, #ff70b8 0%, #ff9ad0 100%);
}
.jr-mosaic > .jr-mix.jr-mosaic-2x2 .jr-mix-dot {
  background: #ff70b8;
  box-shadow: 0 0 0 4px rgba(255, 112, 184, 0.18);
}

.jr-mosaic > .jr-term.jr-mosaic-1x2 {
  height: 168px !important;
  max-height: 168px !important;
  overflow: hidden;
}
.jr-mosaic > .jr-term.jr-mosaic-1x1 {
  height: 168px !important;
  max-height: 168px !important;
  overflow: hidden;
  padding: 12px 12px 10px !important;
  border-radius: 20px;
  gap: 4px !important;
}
.jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-label {
  font-size: 8px !important;
  letter-spacing: 0.06em !important;
}
.jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-title {
  font-size: clamp(15px, 1.6vw, 20px) !important;
  line-height: 1.15 !important;
  overflow: visible !important;
}
.jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-lead {
  font-size: 10px !important;
  line-height: 1.28 !important;
  max-height: none !important;
  overflow: visible !important;
}

.jr-mosaic > .jr-term.jr-mosaic-1x2 {
  padding: 14px 16px !important;
  border-radius: 22px;
}
.jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-label {
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}
.jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-title {
  font-size: clamp(15px, 1.5vw, 18px) !important;
  line-height: 1.2;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}
.jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-lead {
  /* Plaque ≈ 4 lines; PHP budgets complete sentences — no mid-glyph max-height. */
  font-size: 11px;
  line-height: 1.32;
  display: block;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  flex: 0 1 auto;
  min-height: 0;
  max-height: none;
}

/* Film always 2×2 — sprocket strips top+bottom fully visible */
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 {
  height: calc(168px * 2 + 20px) !important;
  max-height: calc(168px * 2 + 20px) !important;
  overflow: hidden;
  display: block;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px !important;
  box-sizing: border-box;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-sprocket {
  flex: 0 0 auto !important;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 8px 12px !important;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-sprocket span {
  height: 14px !important;
  border-radius: 3px;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 12px !important;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-visual {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 2px;
  object-fit: cover;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-copy {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  padding: 10px 12px 8px !important;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-title {
  font-size: 18px !important;
  line-height: 1.15 !important;
  margin-top: 4px;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-lead {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  font-size: 12px !important;
  margin-top: 4px;
}

.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-label {
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}

.jr-mosaic > .jr-book.jr-mosaic-1x2 {
  height: 168px !important;
  max-height: 168px !important;
}
.jr-mosaic > .jr-book.jr-mosaic-2x4 {
  height: calc(168px * 2 + 20px) !important;
  max-height: calc(168px * 2 + 20px) !important;
}

@media (max-width: 980px) {
  .jr-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .jr-mosaic-1x1 { grid-column: span 1 !important; grid-row: span 1 !important; }
  .jr-mosaic-1x2 { grid-column: span 2 !important; grid-row: span 1 !important; }
  .jr-mosaic-2x2 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .jr-mosaic-2x3 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .jr-mosaic-2x4 { grid-column: span 2 !important; grid-row: span 2 !important; }
}

@media (max-width: 760px) {
  .jr-mosaic {
    grid-template-columns: 1fr !important;
  }
  .jr-mosaic-1x1,
  .jr-mosaic-1x2,
  .jr-mosaic-2x2,
  .jr-mosaic-2x4 {
    grid-column: span 1 !important;
    grid-row: auto !important;
    height: auto !important;
    max-height: none !important;
  }
  .jr-mosaic .jr-stream-card {
    flex-direction: row !important;
  }
  .jr-mosaic .jr-stream-card .jr-stream-img {
    flex-basis: 112px !important;
    width: 112px !important;
    max-width: 112px !important;
    height: 112px !important;
    margin: 10px !important;
    border-radius: 12px !important;
  }
}

/*
 * Mosaic title/lead: no line-clamp, no mid-glyph max-height clip.
 * PHP lead budget keeps complete sentences; font shrinks for long titles.
 */
.jr-page .jr-mosaic .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.is-feature .jr-stream-title,
.jr-page--hub .jr-mosaic .jr-stream-title,
.jr-page--mosaic .jr-mosaic .jr-stream-title {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
}

.jr-page .jr-mosaic .jr-stream-lead,
.jr-page--hub .jr-mosaic .jr-stream-lead,
.jr-page--mosaic .jr-mosaic .jr-stream-lead {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

.jr-page .jr-mosaic .jr-stream-body,
.jr-page--hub .jr-mosaic .jr-stream-body,
.jr-page--mosaic .jr-mosaic .jr-stream-body {
  justify-content: flex-start !important;
}

.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 {
  padding: 12px 14px !important;
  gap: 4px !important;
}
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-title {
  flex: 0 0 auto !important;
  font-size: clamp(14px, 1.35vw, 17px) !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-lead {
  flex: 0 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  font-size: 11px !important;
  line-height: 1.32 !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-title {
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  text-overflow: clip !important;
}
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-lead {
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  text-overflow: clip !important;
}

/* ===== oneshot v21: unified type, CSS clip, playlist 1×2, film strips, equal pad ===== */

.jr-page .jr-mosaic .jr-stream-body,
.jr-page--hub .jr-mosaic .jr-stream-body,
.jr-page--mosaic .jr-mosaic .jr-stream-body,
.jr-mosaic .jr-stream-card .jr-stream-body {
  padding: 14px !important;
  box-sizing: border-box !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

/* Same title/lead look in every cell size — clamp without ellipsis */
.jr-page .jr-mosaic .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.is-feature .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x3 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  color: #1a1a1a !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.jr-page .jr-mosaic .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x3 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-lead {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #5c5470 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.jr-page .jr-mosaic .jr-stream-kicker {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-size: clamp(7px, 0.72vw, 10px) !important;
  letter-spacing: 0.04em !important;
}

.jr-page .jr-mosaic .jr-stream-meta {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding-top: 4px !important;
}

.jr-page .jr-mosaic > .jr-term {
  padding: 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.jr-page .jr-mosaic > .jr-term .jr-term-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
.jr-page .jr-mosaic > .jr-term .jr-term-lead {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #5c5470 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/*
 * Playlist always 1×2 — bespoke compact layout, NOT a scaled-down clone of the
 * full player. Every size/spacing below is tuned for this exact 168px cell.
 */
.jr-mosaic > .jr-mix.jr-mosaic-1x2 {
  display: flex !important;
  flex-direction: column !important;
  height: 168px !important;
  max-height: 168px !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  gap: 6px !important;
  background: linear-gradient(145deg, #f3eef8 0%, #ffe6f2 55%, #f7f0ff 100%) !important;
  border-radius: 24px !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-label {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: clamp(7px, 0.72vw, 10px) !important;
  letter-spacing: 0.04em !important;
  color: #9a8bb0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-player {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  background: #fff !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-heart {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 18px !important;
  height: 18px !important;
  background: #ff70b8 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-heart svg {
  width: 9px !important;
  height: 9px !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-row {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding-right: 22px !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-icon {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  border-radius: 10px !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 0 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  color: #1a1a1a !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  line-clamp: 1 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-lead {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  line-clamp: 1 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: none !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: #5c5470 !important;
}
/* Already-playing status lives in the filled track + play glyph; drop
   numeric timestamps and the trailing foot row — no room without squeezing. */
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-times,
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-foot {
  display: none !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-progress {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-track {
  flex: 1 1 auto !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-fill,
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-dot {
  background: #ff70b8 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-controls {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-skip {
  display: none !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-play {
  width: 26px !important;
  height: 26px !important;
  border-radius: 9px !important;
  background: #ff70b8 !important;
}
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-play svg {
  width: 11px !important;
  height: 11px !important;
}

/* Film 2×2 — both sprocket strips visible */
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 {
  overflow: visible !important;
}
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film {
  overflow: hidden !important;
  height: 100% !important;
}
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-sprocket {
  flex: 0 0 28px !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-sprocket span {
  height: 10px !important;
}
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
}
.jr-mosaic > .jr-film-link.jr-mosaic-2x2 .jr-film-sprocket--bottom {
  margin-top: 0 !important;
}

/*
 * ===== v25fitrow =====
 * 1x2 is a single 168px row. The generic title(3 lines)/lead(6 lines) budget
 * from v24sizeslock is taller than that row, so the OUTER card's
 * overflow:hidden was cropping the lead mid-line (no ellipsis, but an ugly
 * half-cut line) — that's the bug from this round's screenshots. Tighten
 * 1x2 specifically to title ≤2 lines + lead ≤4 lines, which fits inside the
 * row with padding/gaps to spare; PHP now also hands 1x2 cards shorter copy
 * (knp_jr_mosaic_lead_budget / term lead cap) so this cap is rarely hit.
 */
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-title,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-title {
  max-height: calc(1.22em * 2) !important;
}
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-lead,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-lead {
  max-height: calc(1.35em * 4) !important;
}

/* Playlist title/lead are meant to be exactly one line — use real
   single-line truncation (white-space:nowrap + text-overflow:clip), which
   reliably never shows "…", instead of -webkit-line-clamp:1 (which some
   browsers force an ellipsis onto even with text-overflow:clip set). */
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-title,
.jr-mosaic > .jr-mix.jr-mosaic-1x2 .jr-mix-lead {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

/*
 * ===== v24sizeslock =====
 * Locked sizes: review → 2x2 or 1x2 (content rules are PHP-side: full title
 * always; 1–2 sentences at 2x2, no lead at all at 1x2); articles & guides →
 * 2x4 only; playlists → 1x2 only; films → 2x2 only; alphabet → 1x2 only.
 *
 * NO -webkit-line-clamp here on purpose: several browsers force their own
 * "…" onto clamped boxes even with text-overflow:clip set, which is exactly
 * the stray ellipsis bug this block fixes. Plain overflow:hidden + a
 * line-height-based max-height clips silently — never inserts dots — and
 * PHP already keeps copy short enough that the cap is a safety net, not the
 * normal case. Title/lead font sizes are also unified here so every card of
 * a given role (title vs. lead) reads at the same size, whatever its type.
 */
.jr-page .jr-mosaic .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.is-feature .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x3 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-stream--long-title .jr-stream-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  color: #1a1a1a !important;
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: calc(1.22em * 3) !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.jr-page .jr-mosaic .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x3 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-lead {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #5c5470 !important;
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: calc(1.35em * 6) !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.jr-page .jr-mosaic > .jr-term .jr-term-title,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  color: #1a1a1a !important;
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: calc(1.22em * 2) !important;
  flex: 0 0 auto !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.jr-page .jr-mosaic > .jr-term .jr-term-lead,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-lead {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #5c5470 !important;
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: calc(1.35em * 6) !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}


/* ===== v27fulltitle: never mid-cut title/lead =====
 * v21/v24/v25 used max-height + overflow:hidden without ellipsis — titles and
 * leads looked "cut mid-word". PHP now omits lead when it cannot fit as a
 * whole sentence; CSS must not clip titles either. Shrink long titles instead.
 */
.jr-page .jr-mosaic .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.is-feature .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x3 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-stream--long-title .jr-stream-title,
.jr-page .jr-mosaic .jr-stream-card.jr-stream--xl-title .jr-stream-title {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #1a1a1a !important;
  font-size: clamp(13px, 1.2vw, 17px) !important;
}

.jr-page .jr-mosaic .jr-stream-card.jr-stream--long-title .jr-stream-title {
  font-size: clamp(12px, 1.05vw, 15px) !important;
}

.jr-page .jr-mosaic .jr-stream-card.jr-stream--xl-title .jr-stream-title {
  font-size: clamp(11px, 0.95vw, 13.5px) !important;
}

.jr-page .jr-mosaic .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x2 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x3 .jr-stream-lead,
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-2x4 .jr-stream-lead {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #5c5470 !important;
}

/* 1×2 row: PHP drops lead; hide any leftover so title keeps the column. */
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-lead {
  display: none !important;
}

.jr-page .jr-mosaic .jr-stream-card .jr-stream-body {
  overflow: visible !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

.jr-page .jr-mosaic > .jr-term .jr-term-title,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-title,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-title {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  font-size: clamp(13px, 1.2vw, 17px) !important;
  line-height: 1.2 !important;
}

.jr-page .jr-mosaic > .jr-term .jr-term-lead,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x2 .jr-term-lead,
.jr-page .jr-mosaic > .jr-term.jr-mosaic-1x1 .jr-term-lead {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  font-size: 12px !important;
  line-height: 1.32 !important;
}


/* 1×2 leftover short titles: leave room for italic descenders; never crop glyphs. */
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-title {
  padding-bottom: 0.15em !important;
  font-size: clamp(12px, 1.1vw, 15px) !important;
}
.jr-page .jr-mosaic .jr-stream-card.jr-mosaic-1x2 .jr-stream-body {
  padding-bottom: 16px !important;
}
