/* LyricLab 2026-11-07: keep real profile actions legible on small screens.
   Pure presentation fix — no changes to follow requirements, click handlers,
   membership/badges, player, or global bottom navigation. */
#main.ll2734-is-profile .llv6-profile-head .ll252-original-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 9px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-top: 12px !important;
  box-sizing: border-box !important;
}
#main.ll2734-is-profile .llv6-profile-head .ll252-original-actions > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 10px 8px !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-align: center !important;
  border-radius: 12px !important;
}
/* The official-admin follow requirement is information, not an enormous CTA. */
#main.ll2734-is-profile .llv6-profile-head .ll252-original-actions > .ll2631-official {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  box-sizing: border-box !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  line-height: 1.32 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  border-radius: 11px !important;
}
/* Three visitor buttons plus the admin-follow label: last action gets a full row. */
#main.ll2734-is-profile .llv6-profile-head .ll252-original-actions:has(> .ll2631-official) > button:last-child {
  grid-column: 1 / -1 !important;
}
/* An odd last action without the admin-follow message should also get enough space. */
#main.ll2734-is-profile .llv6-profile-head .ll252-original-actions:not(:has(> .ll2631-official)) > button:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}
/* Show every profile tab — Music, Posts, Badges, Gallery, Studio — at phone widths. */
@media (max-width: 600px) {
  #main.ll2734-is-profile .ll2734-tabs {
    display: flex !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #main.ll2734-is-profile .ll2734-tabs button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 9px 2px !important;
    font-size: clamp(10px, 2.85vw, 12px) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}
@media (min-width: 680px) {
  #main.ll2734-is-profile .llv6-profile-head .ll252-original-actions {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }
  #main.ll2734-is-profile .llv6-profile-head .ll252-original-actions:has(> .ll2631-official) {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
  #main.ll2734-is-profile .llv6-profile-head .ll252-original-actions > button:last-child,
  #main.ll2734-is-profile .llv6-profile-head .ll252-original-actions:has(> .ll2631-official) > button:last-child {
    grid-column: auto !important;
  }
}
