/* Guest screen: the same dark surfaces, fine borders and green accents as the console. */
.guest-app {
  --bg-app: #030404; --bg-surface: #090b0c; --bg-surface-elevated: #131718;
  --bg-surface-hover: #202829; --border-subtle: #ffffff14; --border-focus: #8fd9a960;
  --text-main: #f3f5f4; --text-muted: #b7bfba; --text-dim: #929d96;
  --accent-primary: #1ed760; --accent-primary-hover: #3ce577; --accent-brand: #8fd9a9;
  --radius-default: 14px; --radius-sm: 8px; color-scheme: dark;
}
.guest-app [hidden], .guest-app .hidden { display: none !important; }
.mobile-container { max-width: 1100px; margin: 0 auto; padding: 32px 24px 132px; }
.guest-app .header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.guest-app .header > div { min-width: 0; }
.brand-title { font-size: 1.4rem; font-weight: 750; letter-spacing: -.04em; overflow-wrap: anywhere; }
.brand-title .venue-logo { max-width: min(220px, 58vw); max-height: 54px; display: block; }
.guest-app .header p { font-size: .75rem !important; margin-top: 5px; }
.guest-app .badge { font-family: inherit; border-radius: 999px; font-weight: 550; font-size: .72rem; color: var(--text-muted); background: #ffffff05; border: 1px solid #ffffff12; white-space: nowrap; }
.guest-app .badge-mesa { background: #ffffff05; color: #d5dfd8; border-color: #ffffff18; }
.guest-app #lblMesa { padding: 9px 14px; min-height: 44px; }
.card-now-playing-live { background: #0d1111; border: 1px solid #ffffff14; border-radius: 22px; padding: 22px; margin-bottom: 22px; box-shadow: 0 8px 24px #0003; }
.guest-app #badgeStageStatus { background: #152a1d !important; color: #a8dfbc !important; border-color: #8fd9a928; font-size: .64rem !important; letter-spacing: .06em; padding: 5px 9px; }
.guest-app #lblLiveTitle { font-size: 1.13rem !important; font-weight: 650; letter-spacing: -.025em; }
.guest-app #lblLiveSinger { font-size: .8rem !important; margin-top: 4px !important; }
.guest-app #imgLiveThumb { width: 82px !important; height: 62px !important; border-radius: 10px !important; }
.client-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.guest-app .card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 24px; box-shadow: 0 3px 12px #0002; min-width: 0; }
.guest-app .search-panel { margin-bottom: 0 !important; }
.guest-app .section-kicker { color: #8ca597; font-size: .63rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.guest-app h2 { font-size: 1.25rem !important; font-weight: 650 !important; letter-spacing: -.035em; margin-bottom: 5px !important; }
.section-description { font-size: .8rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
.search-box { display: flex; gap: 8px; margin-bottom: 0; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field svg { position: absolute; width: 18px; height: 18px; left: 14px; top: 50%; transform: translateY(-50%); color: #8d9d93; pointer-events: none; }
.guest-app .input-text { border-radius: 12px; min-height: 48px; font: inherit; font-size: .9rem; border-color: #ffffff14; padding: 12px 14px; }
.guest-app .input-text:focus { border-color: #8fd9a960; box-shadow: 0 0 0 3px #8fd9a90b; }
.guest-app #inputSearch { padding-left: 41px; }
.guest-app .btn { border-radius: 999px; min-height: 44px; font-size: .8rem; font-weight: 600; padding: 10px 16px; }
.guest-app .btn-primary { background: #1ed760; color: #052310; }
.guest-app .btn-primary:hover { background: #3ce577; }
.guest-app .btn-secondary { background: #192321; color: #d6e2da; border-color: #ffffff0c; }
.guest-app .btn:focus-visible, .guest-app #lblMesa:focus-visible { outline: 2px solid #a6e2bc; outline-offset: 3px; }
.guest-app .btn:disabled { opacity: .55; cursor: wait; }
.results-list { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.results-list:empty { display: none; }
.guest-app .song-item { display: flex; align-items: center; gap: 12px; border-radius: 0; padding: 13px 0; border: 0; border-bottom: 1px solid #ffffff0c; box-shadow: none; background: transparent; }
.guest-app .song-item:last-child { border-bottom: 0; padding-bottom: 0; }
.song-thumb { width: 60px; height: 48px; border-radius: 8px; object-fit: cover; background: #171d19; flex: 0 0 auto; }
.song-info { flex: 1; min-width: 0; }
.song-title { font-size: .85rem; font-weight: 550; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.song-channel { font-size: .7rem; color: var(--text-dim); margin-top: 4px; overflow-wrap: anywhere; }
.guest-app .song-item .btn { flex: 0 0 auto; background: #173422; color: #b3ebc8; padding: 8px 12px !important; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.queue-heading .section-description { margin: 0; }
#fullQueueList { display: flex; flex-direction: column; gap: 8px !important; }
.queue-card-item { display: flex; align-items: center; gap: 12px; padding: 13px 12px; background: #101414; border: 1px solid #ffffff0a; border-radius: 13px; min-width: 0; }
.queue-card-item.is-my-turn { background: #11251a; border-color: #8fd9a94d; box-shadow: inset 3px 0 #8fd9a9; }
.queue-position { flex: 0 0 28px; font-size: .82rem; font-weight: 600; text-align: center; color: #8d9d93; }
.is-my-turn .queue-position { color: #c2f1d2; }
.queue-track { flex: 1; min-width: 0; }
.queue-track-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.queue-track-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: .69rem; color: #93a298; margin-top: 5px; overflow-wrap: anywhere; }
.own-track-label { color: #b6edca; font-weight: 600; }
.bottom-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1052px; background: #101715ed; backdrop-filter: blur(18px); border: 1px solid #8fd9a929; border-radius: 18px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 40; box-shadow: 0 8px 40px #0008; }
.guest-app #barPosicion { font-size: .95rem !important; font-weight: 600 !important; }
.bottom-bar > div { min-width: 0; }
.bottom-bar #btnScrollToMine { white-space: nowrap; background: #203c2c; color: #b9e8c9; }
.modal-overlay { position: fixed; inset: 0; background: #000b; backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; overflow-y: auto; }
.guest-app .modal-card { width: 100%; max-width: 420px !important; padding: 26px; border-radius: 24px; background: #111615; border-color: #ffffff1a; box-shadow: 0 28px 90px #0009; }
.guest-app .modal-card h3 { font-size: 1.35rem !important; letter-spacing: -.04em; }
.guest-app #modalSongTitle { line-height: 1.6; overflow-wrap: anywhere; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }
@media (max-width: 760px) {
  .mobile-container { max-width: 560px; padding: 24px 16px 128px; }
  .client-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .guest-app .header { margin-bottom: 20px; padding-bottom: 18px; }
  .guest-app .card { padding: 20px; }
  .card-now-playing-live { padding: 18px; margin-bottom: 18px; }
  .bottom-bar { width: calc(100% - 24px); max-width: 528px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 13px 16px; }
  .guest-app .input-text { font-size: 16px; }
}
@media (max-width: 360px) {
  .mobile-container { padding-left: 12px; padding-right: 12px; }
  .guest-app .card { padding: 16px; }
  .song-item { gap: 8px !important; }
  .song-thumb { width: 48px; height: 42px; }
  .guest-app #btnSearch { padding-left: 12px !important; padding-right: 12px !important; }
  .queue-track-meta { gap: 3px 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
