/* HOME shares the songbook's black and blue palette and existing character art. */
.brand-avatar { border-radius: 9px; flex: 0 0 auto; }
.brand { font-size: 18px; letter-spacing: -.04em; min-height: 44px; }
.site-header { height: 64px; padding-inline: max(20px, calc((100vw - 1180px) / 2)); gap: 14px; }
.header-links { gap: 6px; }
.header-link { width: 38px; height: 38px; background: transparent; color: var(--muted); box-shadow: none; border-color: transparent; border-radius: 9px; }
.header-link:hover, .header-link:focus-visible { color: var(--text); background: var(--surface-soft); border-color: var(--line-strong); }
.header-icon-svg { width: 24px; height: 24px; }
.header-lucide-icon, .guide-header-btn svg { width: 22px; height: 22px; }
.auth-button { min-height: 44px; }
.live-badge { min-height: 30px; }
.live-badge.is-live .live-dot { animation: none; }
.site-view-tabs { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 12px 0 0; gap: 28px; border-bottom-color: var(--line-strong); }
.site-view-tabs button { position: relative; min-height: 52px; padding: 10px 4px 16px; border: 0; border-radius: 0; font-size: 14px; letter-spacing: .015em; }
.site-view-tabs button.active { color: #a9d5ff; background: none; }
.site-view-tabs button.active::after { content: ''; height: 3px; background: #86c2ff; position: absolute; bottom: -1px; left: 0; right: 0; border-radius: 2px; }
.home { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 20px; }
.home :is(h1,h2,h3,p) { margin: 0; }
.home :is(button,a,input):focus-visible, .site-header :is(button,a):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.home button { color: inherit; }
.home .home-eyebrow { color: #9cb9d7; font-size: 10px; line-height: 1.4; letter-spacing: .16em; font-weight: 750; }
.home-button { min-height: 44px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 750; transition: background 140ms ease; white-space: nowrap; }
.home .home-button-primary { color: #071827; background: #99ccff; border-color: #99ccff; }
.home .home-button-primary:hover { background: #b7dcff; }
.home-text-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; border: 0; background: none; color: #cee5ff; font-size: 13px; font-weight: 650; text-decoration: none; line-height: 1.4; }
.home-text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.home-broadcast { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: #1a1e24; padding: 24px; }
.home-broadcast-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; border: 1px solid #4a5565; padding: 4px 9px; color: #c3cbd6; font-size: 10px; font-weight: 750; }
.home-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.home-broadcast[data-state="live"] .home-status { color: #ffafb5; border-color: #864b52; background: #38272d; }
.home-broadcast[data-state="error"] .home-status, .home-broadcast[data-state="stale"] .home-status { color: #e5c490; border-color: #66563e; }
.home-broadcast-copy { margin-block: 18px 10px; overflow-wrap: anywhere; }
.home-broadcast h2 { font-size: 20px; letter-spacing: -.04em; line-height: 1.35; }
.home-broadcast-copy p { margin-top: 8px; font-size: 12px; color: #b0bac8; line-height: 1.65; }
.home .home-refresh { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 21px; color: #b7c6d9; flex: 0 0 auto; }
.home-refresh:hover { background: #272f39; }
.home-refresh:disabled { opacity: .5; cursor: wait; }
.home .home-button-channel { border-color: #445165; background: #253144; color: #e0efff; margin-top: 4px; justify-content: space-between; }
.home-button-channel:hover { background: #303f55; }
.home-song-finder { padding: 24px 26px 12px; margin-top: 18px; border: 1px solid #354860; border-radius: 15px; background: #19222f; }
.home-search-heading, .home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.home h2 { letter-spacing: -.035em; }
.home-search-heading h2 { margin-top: 5px; font-size: 23px; line-height: 1.3; }
.home .home-song-count { font-size: 12px; color: #b0c3d8; padding-bottom: 2px; white-space: nowrap; }
.home-search-form { display: flex; gap: 10px; margin-top: 18px; }
.home-search-field { display: flex; align-items: center; gap: 17px; min-width: 0; flex: 1; min-height: 50px; padding: 0 18px; border: 1px solid #45566c; border-radius: 9px; background: #111922; }
.home-search-field:focus-within { border-color: #9cccff; box-shadow: 0 0 0 1px #9cccff; }
.home-search-field .search-glyph { flex: 0 0 auto; color: #a2b8d3; }
.home-search-field input { border: 0; outline: none !important; background: transparent; width: 100%; min-width: 0; padding: 12px 0; font-size: 14px; color: #f4f6f8; }
.home-search-field input::placeholder { color: #a9b4c5; }
.home-search-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.home-search-bottom p { font-size: 11px; color: #a7b7ca; }
.home .home-search-bottom button { color: #c9e4ff; white-space: nowrap; }
.home .home-search-bottom button:disabled { opacity: .5; cursor: wait; }
.home-random-caption { color: #a7b7ca; font-size: 11px; font-weight: 400; }
.home-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.home-info-grid > * { min-width: 0; }
.home-notice { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-content: center; align-items: start; gap: 8px 16px; padding: 23px 25px; background: #1b1d21; border: 1px solid var(--line); border-radius: 15px; }
.home-notice-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border: 1px solid #7790af; border-radius: 50%; color: #bdd7f6; font-family: Georgia,serif; font-style: italic; }
.home-notice h2 { margin-top: 5px; font-size: 15px; font-weight: 700; }
.home-notice p:not(.home-eyebrow) { margin-top: 4px; color: #b5bdc9; font-size: 12px; }
.home-notice .home-text-link { grid-column: 2; justify-self: start; }
.home-profile { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 24px; padding: 23px 25px; background: #1a1e24; border: 1px solid var(--line-strong); border-radius: 15px; }
.home-profile-avatar { display: block; overflow: hidden; aspect-ratio: 1; border: 1px solid #465c76; border-radius: 50%; background: #111922; }
.home-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-profile-copy { min-width: 0; }
.home-profile h2 { margin-top: 5px; font-size: 20px; line-height: 1.3; }
.home-profile-facts { display: grid; gap: 6px; margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
.home-profile-facts > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
.home-profile-facts dt { color: #9eafc3; font-size: 12px; }
.home-profile-facts dd { margin: 0; color: #e2ebf7; overflow-wrap: anywhere; }
.home-section-heading h2 { font-size: 24px; margin-top: 6px; line-height: 1.3; }
.home-section-heading > p { color: #a8b2c0; font-size: 12px; }
.home .home-bookmark-note { color: #929eac; font-size: 11px; margin-top: 24px; text-align: center; }
.home-bookmark-note a { color: #bfd6f1; text-underline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#song-request-guide { scroll-margin-top: 80px; }
#song-request-guide:focus, #top:focus { outline: none; }
@media (max-width: 1000px) {
  .home-broadcast { padding: 22px; }
  .home-info-grid { gap: 14px; }
  .home-notice { padding: 20px; column-gap: 12px; }
  .home-profile { grid-template-columns: 96px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .home-profile h2 { font-size: 18px; }
  .home-profile-facts { font-size: 12px; }
  .home-profile-facts > div { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .home-profile-facts dt { font-size: 11px; }
}
@media (max-width: 740px) {
  .site-header { padding-inline: 16px; height: 58px; }
  .header-links > a { display: none; }
  .header-link { width: 44px; height: 44px; }
  .header-links { gap: 2px; }
  .header-actions { gap: 8px; }
  .site-view-tabs, .home { width: calc(100% - 28px); }
  .site-view-tabs { padding-top: 2px; }
  .site-view-tabs button { min-height: 48px; padding-bottom: 10px; }
  .home-button { font-size: 12px; padding-inline: 14px; gap: 13px; }
  .home-broadcast { padding: 16px 18px; border-radius: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; }
  .home-broadcast-top { grid-column: 1 / -1; }
  .home-broadcast-copy { grid-column: 1 / -1; margin: 10px 0 6px; }
  .home-broadcast h2 { font-size: 17px; }
  .home-broadcast-copy p { font-size: 11px; margin-top: 4px; }
  .home .home-button-channel { margin: 0; align-self: center; min-height: 44px; }
  .home .home-refresh { width: 44px; }
  .home-song-finder { margin-top: 12px; padding: 19px 18px 10px; border-radius: 13px; }
  .home-search-heading { gap: 10px; align-items: flex-start; }
  .home-search-heading h2 { font-size: 19px; }
  .home .home-song-count { font-size: 10px; padding-top: 1px; }
  .home-search-form { margin-top: 14px; gap: 8px; }
  .home-search-field { padding-inline: 13px; gap: 12px; min-height: 48px; }
  .home-search-field input { font-size: 12px; }
  .home-search-bottom { flex-wrap: wrap; gap: 0; margin-top: 9px; }
  .home-search-bottom p { font-size: 10px; flex-basis: 100%; }
  .home-search-bottom button { margin-left: auto; }
  .home-info-grid { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 12px; }
  .home-notice { padding: 18px; border-radius: 13px; }
  .home-notice h2 { font-size: 14px; line-height: 1.5; }
  .home-notice p:not(.home-eyebrow) { font-size: 11px; line-height: 1.7; }
  .home-profile { padding: 18px; border-radius: 13px; }
  .home-section-heading { gap: 10px; flex-wrap: wrap; align-items: center; }
  .home-section-heading h2 { font-size: 22px; }
  .home-section-heading > p { font-size: 11px; }
  .home .home-bookmark-note { font-size: 10px; }
}
@media (max-width: 520px) {
  .brand span:last-child { display: inline; }
  .brand-area { gap: 8px; }
  .brand-area .live-badge { display: none; }
  .brand { gap: 6px; }
  .auth-button { font-size: 12px; padding-inline: 10px; }
  .home-search-form { flex-wrap: wrap; }
  .home-search-form > button { flex: 1; }
  .home-search-field { flex: 1 1 100%; }
  .home-search-heading { flex-wrap: wrap; gap: 5px; }
  .home-search-heading h2 { font-size: 20px; }
  .home .home-song-count { align-self: flex-start; margin-left: auto; max-width: 110px; white-space: normal; text-align: right; }
  .home-notice-icon { display: none; }
  .home-notice { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .home-notice .home-text-link { grid-column: 1; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 12px; gap: 6px; }
  .brand { font-size: 16px; }
  .brand-avatar { width: 27px; height: 27px; }
  .header-actions { gap: 4px; }
  .home-broadcast { padding: 14px; gap: 0 5px; }
  .home-broadcast h2 { font-size: 16px; }
  .home-song-finder { padding-inline: 14px; }
  .home-search-heading h2 { font-size: 18px; }
  .home .home-song-count { font-size: 9px; max-width: 85px; }
  .home-profile { grid-template-columns: 76px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .home-profile-facts > div { grid-template-columns: 66px minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-button { transition: none; }
}

/* The complete broadcast title is readable without an extra action. */
.home .home-live-title-full { color: #cedced; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-search-field input { min-height: 44px; font-size: 16px; padding-block: 10px; }
@media (max-width: 520px) {
  .home-broadcast { padding: 12px 16px; }
  .home-broadcast-copy { margin-block: 8px 4px; }
  .home-broadcast h2 { font-size: 16px; }
  .home-song-finder { padding-top: 16px; }
  .home-search-heading .home-eyebrow { display: none; }
  .home-search-heading h2 { margin-top: 0; }
  .home-search-heading { align-items: center; flex-wrap: nowrap; }
  .home .home-song-count { align-self: center; max-width: 70px; }
}
@media (max-width: 520px) {
  .home-broadcast { position: relative; }
  .home-broadcast-top { padding-right: 33px; }
  .home .home-refresh { position: absolute; right: 7px; top: 4px; }
}

/* Compact live preview: the search remains within reach on narrow screens. */
.home-broadcast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-content: space-between; position: relative; }
.home-broadcast-top { grid-column: 1 / -1; padding-right: 34px; }
.home-broadcast-copy { grid-column: 1 / -1; margin: 0; align-self: center; min-width: 0; }
.home-broadcast h2 { font-size: 18px; word-break: keep-all; }
.home-live-thumbnail { position: relative; display: block; align-self: center; overflow: hidden; border: 1px solid #405069; border-radius: 9px; aspect-ratio: 16 / 9; background: #11151b; }
.home-live-thumbnail[hidden] { display: none; }
.home-live-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-thumbnail-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; color: white; background: #0002; text-shadow: 0 1px 8px #000; }
.home-live-thumbnail:hover .home-thumbnail-play { background: #0005; }
.home-broadcast:has(.home-live-thumbnail:not([hidden])) .home-broadcast-copy { grid-column: 2; }
.home .home-refresh { position: absolute; right: 13px; top: 15px; }
.home .home-button-channel { grid-column: 1 / -1; align-self: center; margin: 0; font-size: 12px; padding-inline: 10px; justify-content: center; }

/* Real SOOP announcements have their own space, separate from site updates. */
.home-soop-notices { margin-top: 18px; padding: 24px 26px 12px; border: 1px solid #354860; border-radius: 15px; background: #19222f; }
.home-soop-notices .home-section-heading { align-items: center; }
.home-soop-notices-list { padding: 0; margin: 18px 0 0; list-style: none; border-top: 1px solid var(--line-strong); }
.home-soop-notices-list:empty { display: none; }
.home-soop-notices-list li { border-bottom: 1px solid var(--line); }
.home-soop-notices-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 18px; min-height: 64px; padding: 14px 4px; color: var(--text); text-decoration: none; }
.home-soop-notices-list a:hover { color: #aed7ff; background: #243247; }
.home-soop-notice-title { min-width: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.home-soop-notice-date { flex-shrink: 0; font-size: 12px; color: #9cabbf; }
.home-soop-notice-arrow { color: #a9c6e5; text-align: right; }
.home-soop-notices-meta { padding-top: 12px; }
.home-soop-notices-meta p { font-size: 11px; color: #96a5b9; line-height: 1.6; }

/* Less space below the content; retain contact and copyright text. */
.site-footer { margin-top: 20px; }
.site-footer-inner { padding: 10px 0; }
.footer-contact { gap: 2px 8px; font-size: 12px; line-height: 1.5; }
.footer-copyright { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.home .home-bookmark-note { margin-top: 16px; }
@media (max-width: 740px) {
  .home-broadcast { gap: 9px 14px; }
  .home-broadcast h2 { font-size: 17px; }
  .home .home-refresh { right: 9px; top: 8px; }
  .home-soop-notices { margin-top: 12px; padding: 18px 18px 8px; border-radius: 13px; }
  .home-soop-notices-list { margin-top: 12px; }
  .home-soop-notices-list a { gap: 8px; min-height: 62px; }
  .home-soop-notice-title { font-size: 13px; }
  .home-soop-notice-date { font-size: 10px; }
}
@media (max-width: 520px) {
  .home-broadcast { column-gap: 12px; }
  .home-broadcast h2 { font-size: 15px; }
  .home .home-refresh { right: 7px; top: 4px; }
  .home-broadcast .home-button-channel { grid-column: 1 / -1; }
  .home-soop-notices .home-section-heading h2 { font-size: 21px; }
  .home-soop-notices .home-section-heading .home-text-link { font-size: 12px; }
  .home-soop-notices-list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 3px 10px; padding-block: 12px; }
  .home-soop-notice-date { grid-column: 1; }
  .home-soop-notice-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .site-footer { margin-top: 16px; }
  .site-footer-inner { padding: 9px 0; }
  .footer-contact { font-size: 12px; gap: 1px 8px; }
  .footer-contact span { font-size: 11px; }
  .footer-copyright { margin-top: 4px; font-size: 10px; }
}

/* Equal songbook and broadcast cards below the shared site banner. */
.home-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.home-quick-actions > section { min-width: 0; margin-top: 0; }
.home-quick-actions .home-song-finder { display: flex; flex-direction: column; }
.home-quick-actions .home-search-bottom { margin-top: auto; padding-top: 10px; flex-wrap: wrap; gap: 0 8px; }
.home-quick-actions .home-search-bottom p { flex-basis: 100%; }
.home-quick-actions .home-search-bottom button { margin-left: auto; }
@media (min-width: 741px) and (max-width: 1000px) {
  .home-quick-actions { gap: 14px; }
  .home-quick-actions .home-search-form { flex-direction: column; }
  .home-quick-actions .home-search-heading { flex-wrap: wrap; gap: 6px 12px; }
  .home-quick-actions .home-song-count { margin-left: auto; }
}
@media (max-width: 740px) {
  .home-quick-actions { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 12px; }
  .home-quick-actions .home-search-bottom { padding-top: 0; margin-top: 9px; }
}
