/* Text Fit Audit Phase 2: route-scoped repairs for remaining public surfaces.
   This file deliberately does not resize global type or hide overflowing text. */

/* Service prose can include owner-authored URLs and Latin identifiers. */
body.kb-service-page .kb-service-content :is(p, li, a, dd, code, pre),
body.kb-service-page .kb-service-prose :is(p, li, a, dd, code, pre),
body.kb-service-page .termsofuse :is(p, li, a, dd, code, pre),
body.kb-service-page .wo_about_wrapper :is(p, li, a, dd, code, pre),
body.kb-service-page .kb-contact-layout :is(p, a, small, label, span) {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Watch rail recommendations remain fully readable: the row grows instead of
   silently cutting a long title or publisher after two fixed lines. */
body.kb-watch-page .kb-watch-experience .vp_main_watch_page_side .pt_video_side_vids[data-sidebar-video] {
  min-width: 0;
  height: auto;
}

body.kb-watch-page .kb-watch-experience .vp_main_watch_page_side .pt_video_side_vids[data-sidebar-video] .video-title,
body.kb-watch-page .kb-watch-experience .vp_main_watch_page_side .pt_video_side_vids[data-sidebar-video] .video-publisher {
  min-width: 0;
  max-height: none !important;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-overflow: clip;
}

body.kb-watch-page .kb-watch-experience .vp_main_watch_page_side .pt_video_side_vids[data-sidebar-video] .video-title {
  display: block !important;
  -webkit-line-clamp: unset;
}

/* Lounge queue/search names are private room text and may be longer than the
   original single-line display contract. Keep roles, voting and default-off
   behavior untouched while allowing their existing cards to grow. */
.kb-lounge-room .kbl-song strong,
.kb-lounge-room .kbl-song span,
.kb-lounge-room .kbl-search-item span {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-overflow: clip;
}

@media (max-width: 359px) {
  .kb-lounge-room .kbl-search-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kb-lounge-room .kbl-search-item b {
    grid-column: 1 / -1;
  }
}
