/* Keep the first lesson near the top; desktop keeps its catalog grid. */
.home-channel:not(.video-archive) .home-channel-intro { padding: 0; gap: 0; }
.home-channel:not(.video-archive) .home-channel-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-offer-strip { display: flex; align-items: center; gap: 4px; padding: 2px 8px; min-width: 0; }
.home-offer-strip:has([data-free-video-notice][hidden]) { display: none; }
.home-offer-strip .free-video-notice { flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; font-size: 12px; line-height: 1.2; }
.home-offer-strip #homeTrialButton, .home-offer-strip #homePricingButton {
  flex: 1 1 auto; width: auto; min-width: 0; min-height: 44px; height: 44px;
  margin: 0; padding: 4px 6px; font-size: 12px; line-height: 1.15;
}
.home-offer-strip #guestLessonStart, .home-offer-strip [data-free-daily-home] {
  flex: 0 0 44px; min-width: 44px; min-height: 44px; width: 44px; height: 44px;
  margin: 0; padding: 0; font-size: 0;
}
.home-offer-strip #guestLessonStart::after, .home-offer-strip [data-free-daily-home]::after { content: "▶"; font-size: 18px; }
.home-offer-strip [data-free-review-home] { display: none; }
.video-access-status { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 20; padding: 10px; border-radius: 8px; color: white; background: #171b21; font-size: 14px; pointer-events: none; }
.mobile-card-word, .mobile-card-example, .mobile-card-progress { display: none; }
@media (max-width: 980px) {
  .home-offer-strip { flex-wrap: wrap; }
  .home-offer-strip .free-video-notice { flex: 1 0 100%; }
  .home-offer-strip #homeTrialButton, .home-offer-strip #homePricingButton {
    flex: 1 1 0; height: auto; white-space: normal; overflow-wrap: anywhere;
  }
  .home-channel:not(.video-archive) .home-channel-top { min-height: 56px; padding: 6px 8px; }
  .home-channel:not(.video-archive) .home-channel-title { min-width: 0; gap: 6px; grid-template-columns: 26px minmax(0, 1fr); }
  .home-channel:not(.video-archive) .home-channel-title, .home-channel:not(.video-archive) .home-channel-search { min-height: 44px; min-width: 44px; }
  .home-channel:not(.video-archive) .home-channel-title img { width: 26px; height: 26px; }
  .home-channel:not(.video-archive) .home-channel-title strong { font-size: 16px; }
  .home-channel:not(.video-archive) .home-channel-actions { flex-shrink: 0; gap: 4px; }
  .home-channel:not(.video-archive) .home-channel-account { padding: 0 8px; font-size: 12px; white-space: nowrap; }
  .home-locale-switch { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #46545e; border-radius: 8px; background: transparent; color: #e6b54a; font: inherit; font-size: 12px; }
  .home-channel:not(.video-archive) .home-channel-tabs { min-height: 52px; padding: 4px 8px; gap: 4px; }
  .home-channel:not(.video-archive) .home-channel-tabs button { min-height: 44px; font-size: 12px; padding: 4px 3px; }
  .home-channel:not(.video-archive) .home-channel-toolbar { padding: 4px 8px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .home-channel:not(.video-archive) .home-channel-controls { flex: 1 1 260px; width: auto; }
  .home-channel:not(.video-archive) .home-channel-popularity-status { flex: 0 0 18px; font-size: 0; }
  .home-channel:not(.video-archive) .home-channel-popularity-status:not([hidden])::before { content: "ⓘ"; font-size: 16px; }
  .home-channel:not(.video-archive) .home-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .home-channel:not(.video-archive) .home-channel-card { grid-template-rows: auto; }
  /* Keep the established title/IPA framing, with a shorter two-column window
     that shows the scene and trims the lower portion of the poster. */
  .home-channel:not(.video-archive) .home-channel-thumb { aspect-ratio: 4 / 5; }
  .home-channel:not(.video-archive) .home-channel-thumb img {
    width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: center top;
    transform: none;
  }
  .home-channel:not(.video-archive) .home-channel-card[data-mobile-poster="false"] .home-channel-thumb,
  .home-channel:not(.video-archive) .home-channel-card[data-mobile-poster="false"] .home-channel-thumb img {
    aspect-ratio: 16 / 9;
  }
  .home-channel:not(.video-archive) .home-channel-card[data-mobile-poster="false"] .home-channel-thumb img { object-position: center; }
  .mobile-card-word:not([hidden]) {
    display: block; min-width: 0; margin: 8px; font-size: 16px; line-height: 20px; overflow-wrap: anywhere;
  }
  .home-channel:not(.video-archive) .mobile-card-example,
  .home-channel:not(.video-archive) .mobile-card-progress,
  .home-channel:not(.video-archive) .home-channel-known-button { display: none; }
  .home-channel:not(.video-archive) .home-channel-rank {
    top: 5px; left: 5px; min-width: 24px; min-height: 24px; padding: 0 5px; font-size: 11px;
  }
  .home-channel:not(.video-archive) .home-channel-lock { top: 5px; right: 5px; width: 24px; height: 24px; }
  .home-channel:not(.video-archive) .home-channel-lock svg { width: 13px; height: 13px; }
}

/* Compact mobile chrome; lesson posters retain their authored title and IPA. */
@media (max-width: 980px) {
  .home-channel:not(.video-archive) {
    --home-gold: #e6b54a;
    grid-template-columns: minmax(0, 1fr) 132px;
    background: #0c0c0c;
  }
  .home-channel:not(.video-archive) > * { grid-column: 1 / -1; }
  .home-channel:not(.video-archive) .home-channel-sticky {
    border: 0; background: #0c0c0c; box-shadow: none; backdrop-filter: none;
  }
  .home-channel:not(.video-archive) .home-channel-top {
    min-height: 44px; padding: 0 8px; gap: 4px; border: 0;
  }
  .home-channel:not(.video-archive) .home-channel-title img { filter: grayscale(1); }
  .home-channel:not(.video-archive) .home-channel-title strong { color: #ededed; font-size: 15px; }
  .home-channel:not(.video-archive) .home-channel-actions { gap: 0; }
  .home-channel:not(.video-archive) .home-locale-switch,
  .home-channel:not(.video-archive) .home-channel-account,
  .home-channel:not(.video-archive) .home-channel-search {
    min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; border-radius: 0;
    color: #bdbdbd; background: transparent; box-shadow: none;
  }
  .home-channel:not(.video-archive) .home-channel-account { color: var(--home-gold); }
  .home-channel:not(.video-archive) .home-channel-tabs {
    min-height: 36px; padding: 0 8px; gap: 0; border: 0;
    background: transparent; box-shadow: none;
  }
  .home-channel:not(.video-archive) .home-channel-tabs button,
  .home-channel:not(.video-archive) .home-channel-tabs button:hover:not(:disabled) {
    min-height: 36px; padding: 0 2px; border: 0; border-radius: 0;
    color: #ababab; background: transparent; box-shadow: none; transform: none;
    font-size: 11px; font-weight: 500;
  }
  .home-channel:not(.video-archive) .home-channel-tabs button.active,
  .home-channel:not(.video-archive) .home-channel-tabs [data-home-action="all-videos"] {
    color: var(--home-gold); font-weight: 700;
  }
  .home-channel:not(.video-archive) .home-channel-tabs button.active::after,
  .home-channel:not(.video-archive) .home-channel-tabs [data-home-action="all-videos"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px;
    background: var(--home-gold);
  }
  .home-channel:not(.video-archive) .home-stories-status:empty { display: none; }
  .home-channel:not(.video-archive) .home-channel-intro {
    grid-column: 1; grid-row: 2; min-width: 0; padding: 0; background: transparent;
    border: 0; box-shadow: none;
  }
  .home-channel:not(.video-archive) .home-offer-strip {
    height: 44px; flex-wrap: nowrap; gap: 0; padding: 0 0 0 8px;
  }
  .home-channel:not(.video-archive) .free-video-notice {
    flex: 1 1 28px; min-width: 24px; max-width: 52px;
    margin: 0; padding: 0; font-size: 0; white-space: nowrap;
  }
  .home-channel:not(.video-archive) .free-video-notice::before { content: "▷"; color: #ababab; font-size: 14px; }
  .home-channel:not(.video-archive) .free-video-notice::after { content: attr(data-remaining); color: #ababab; font-size: 12px; margin-left: 3px; }
  .home-channel:not(.video-archive) .home-offer-strip :is(#homeTrialButton, #homePricingButton, #guestLessonStart, [data-free-daily-home]) {
    flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
    margin: 0; padding: 0; border: 0; border-radius: 0;
    color: #bdbdbd; background: transparent; box-shadow: none; font-size: 0;
  }
  .home-channel:not(.video-archive) .home-offer-strip #homeTrialButton { color: var(--home-gold); }
  .home-channel:not(.video-archive) #homeTrialButton::after { content: "14"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; }
  .home-channel:not(.video-archive) #homePricingButton::after { content: "$"; font-size: 19px; }
  .home-channel:not(.video-archive) .home-offer-strip #guestLessonStart::after,
  .home-channel:not(.video-archive) .home-offer-strip [data-free-daily-home]::after { content: "▷"; font-size: 24px; }
  .home-channel:not(.video-archive) .home-channel-toolbar {
    position: relative; grid-column: 2; grid-row: 2; min-width: 0; height: 44px;
    padding: 0; gap: 0; border: 0; background: transparent;
  }
  .home-channel:not(.video-archive) .home-channel-controls { flex: 0 0 132px; width: 132px; gap: 0; }
  .home-channel:not(.video-archive) .home-channel-sort {
    gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  }
  .home-channel:not(.video-archive) .home-channel-sort button {
    width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0;
    color: #9b9b9b; background: transparent; box-shadow: none; font-size: 0;
  }
  .home-channel:not(.video-archive) .home-channel-sort button.active { color: var(--home-gold); }
  .home-channel:not(.video-archive) [data-home-sort="popular"]::before { content: "☆"; font-size: 23px; }
  .home-channel:not(.video-archive) [data-home-sort="newest"]::before { content: "↻"; font-size: 23px; }
  .home-channel:not(.video-archive) .home-channel-format {
    width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0;
    background-color: transparent; color: #bdbdbd; box-shadow: none; font-size: 0; appearance: none;
    background-position: center; background-repeat: no-repeat; background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='1'/%3E%3Cpath d='m10 8 6 4-6 4z'/%3E%3C/svg%3E");
  }
  .home-channel:not(.video-archive) .home-channel-format:has(option[value="card"]:checked) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='1.5'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
  }
  .home-channel:not(.video-archive) .home-channel-format option { color: #ededed; background: #181818; font-size: 14px; }
  .home-channel:not(.video-archive) .home-channel-popularity-status {
    position: absolute; left: -18px; top: 13px; width: 16px; pointer-events: none;
  }
  .home-channel:not(.video-archive) .home-channel-popularity-status:not([hidden])::before { content: "ⓘ"; color: #9b9b9b; }
  .home-channel:not(.video-archive) .home-channel-grid { gap: 12px; padding: 0 10px 10px; background: transparent; }
  .home-channel:not(.video-archive) .home-channel-card,
  .home-channel:not(.video-archive) .home-channel-card.is-known {
    border: 0; border-radius: 4px; background: #111; box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  }
  .home-channel:not(.video-archive) .home-channel-card-media { border-radius: 0; background: #111; }
  .home-channel:not(.video-archive) .home-channel-rank { border: 0; color: #ddd; background: rgba(0, 0, 0, .7); box-shadow: none; }
  .home-channel:not(.video-archive) .home-channel-lock { color: #ddd; background: rgba(0, 0, 0, .7); border: 0; }
  .home-channel:not(.video-archive) .browse-conversion-card {
    border: 0; border-radius: 4px; background: #151515; box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  }
  .home-channel:not(.video-archive) .browse-conversion-card strong { color: #ededed; }
  .home-channel:not(.video-archive) .browse-conversion-card p { color: #aaa; }
  .home-channel:not(.video-archive) .browse-conversion-card button {
    border: 0; border-radius: 4px; color: #121212; background: var(--home-gold); box-shadow: none;
  }
  .home-channel:not(.video-archive) button:focus-visible { outline: 2px solid var(--home-gold); outline-offset: -2px; }
}
