/* Guest-only social companion. The private host keeps its existing layout. */
[hidden] { display: none !important; }
body[data-page="guest"] { background: #fcf7ed; }
body[data-page="guest"]::before, body[data-page="guest"]::after { display: none; }
.guest-shell { max-width: 1080px; padding: 24px 32px 125px; }
.masthead-guest { padding-bottom: 18px; }
.masthead-guest .brand-name { font-size: 30px; }
.masthead-guest .brand-mark { width: 37px; height: 37px; font-size: 22px; }
.masthead-guest .status { max-width: 45%; font-size: 12px; white-space: normal; text-align: right; }
.room-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 26px; color: var(--ink-soft); font-size: 12px; }
.name-button { min-height: 44px; max-width: 42%; padding: 6px 0 6px 10px; color: var(--teal); background: transparent; text-align: right; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.live-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: start; gap: 48px; }
.live-title-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.live-title-line .eyebrow { margin: 0; color: var(--ink); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-deep); }
[data-playing="true"] .live-dot { background: var(--teal); }
.current-art { position: relative; overflow: hidden; aspect-ratio: 1.35; background: var(--paper-deep); border-radius: 10px; }
.current-art img { width: 100%; height: 100%; object-fit: cover; }
.art-label { position: absolute; bottom: 10px; left: 10px; color: white; background: rgba(8,22,38,.75); padding: 5px 9px; border-radius: 20px; font-size: 10px; }
.current-copy h2 { margin: 17px 0 7px; font-size: clamp(27px,3.4vw,40px); line-height: 1.05; overflow-wrap: anywhere; }
.current-copy p { margin-bottom: 13px; color: var(--ink-soft); font-size: 14px; }
.playback-progress progress { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 4px; background: #d6d1c6; accent-color: var(--teal); }
.playback-progress progress::-webkit-progress-bar { background: #d6d1c6; }
.playback-progress progress::-webkit-progress-value { background: var(--teal); }
.progress-times { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.playback-note { margin: 13px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.coming-up { padding-top: 0; }
.coming-up .section-heading { align-items: baseline; margin-bottom: 8px; gap: 12px; }
.coming-up h2 { margin: 0; font-size: 27px; white-space: nowrap; }
.coming-up .small { font-size: 10px; text-align: right; }
.track-row { display: grid; grid-template-columns: 26px 58px minmax(0,1fr) auto; gap: 11px; padding: 15px 0; }
.track-row .thumb { width: 58px; height: 58px; border: 0; border-radius: 6px; object-fit: cover; }
.track-rank { color: var(--ink-soft); font-size: 12px; }
.track-title { white-space: normal; line-height: 1.3; font-size: 14px; overflow-wrap: anywhere; }
.track-artist { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
.track-party-status { display: block; }
.track-row .score { min-width: 25px; font-size: 15px; text-align: center; font-weight: 800; }
.track-row .vote-actions { grid-column: 4; grid-row: 1; display: flex; flex-direction: column; gap: 4px; }
.track-row .icon-button { width: 44px; min-height: 44px; color: var(--ink); background: #f0eadf; border: 1px solid transparent; border-radius: 50%; font-size: 16px; }
.track-row .icon-button.active { color: white; background: var(--vermilion); }
.track-row .vote-score { padding: 0; font-size: 11px; text-align: center; }
.all-queue-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 8px 0; color: var(--teal); background: none; font-size: 13px; font-weight: 750; }
.circle-invite { margin-top: 22px; padding: 23px; background: #efe4cd; border-radius: 10px; }
.circle-invite h3 { max-width: 270px; font-family: Georgia,serif; font-size: 28px; font-weight: 500; line-height: 1.1; }
.circle-invite .primary-button { width: 100%; border-radius: 5px; }
.voter-line { display: block; margin: 17px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.social-button { display: flex; align-items: center; gap: 7px; max-width: 100%; min-height: 44px; padding: 4px 0; color: inherit; background: transparent; text-align: left; font-size: 11px; line-height: 1.35; }
.social-names { overflow: hidden; text-overflow: ellipsis; }
.avatar-stack { display: flex; flex: 0 0 auto; padding-left: 4px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; margin-left: -4px; color: white; background: var(--vermilion); border: 2px solid #fcf7ed; border-radius: 50%; font-size: 10px; font-weight: 750; }
.avatar:nth-child(2n) { background: var(--teal); }
.avatar:nth-child(3n) { background: #9b6517; }
.guest-nav { position: fixed; bottom: 0; left: 50%; z-index: 20; display: flex; justify-content: space-around; width: min(100%,600px); padding: 9px 12px max(10px,env(safe-area-inset-bottom)); background: rgba(252,247,237,.97); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; transform: translateX(-50%); }
.guest-nav button { display: grid; justify-items: center; gap: 6px; min-width: 74px; min-height: 51px; color: var(--ink); background: transparent; font-size: 11px; }
.guest-nav button[aria-current="page"] { color: var(--teal); font-weight: 800; }
.guest-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guest-nav button[aria-current="page"] svg { stroke-width: 2.2; }
.queue-heading h1 { font-size: clamp(40px,6vw,60px); margin-bottom: 12px; }
.voter-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.voter-tabs button { position: relative; min-height: 48px; flex: 1; padding: 10px; background: none; color: var(--ink); font-size: 13px; }
.voter-tabs button[aria-pressed="true"] { border-bottom: 3px solid var(--vermilion); font-weight: 800; }
#view-queue { max-width: 780px; margin: 0 auto; }
#view-discover .filters { flex-wrap: nowrap; overflow: auto; padding: 3px 0 8px; }
#view-discover .filter { flex: 0 0 auto; min-height: 40px; }
#view-discover .request-section { display: block; margin-top: 28px; padding-top: 25px; }
#view-discover .requestline { display: grid; grid-template-columns: 1fr 1fr auto; }
#view-discover .requestline label { min-width: 0; }
#view-discover .request-section h2 { font-size: 29px; }
.empty-state { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
body[data-view="discover"] { color: #fffaf0; background: #0a1a2b; color-scheme: dark; }
[data-view="discover"] .guest-shell { max-width: 610px; padding-top: 12px; }
[data-view="discover"] .masthead { border-color: rgba(255,255,255,.17); }
[data-view="discover"] .brand, [data-view="discover"] .status, [data-view="discover"] .room-line, [data-view="discover"] .name-button { color: #fffaf0; }
[data-view="discover"] .room-line { margin-bottom: 8px; }
[data-view="discover"] .guest-nav { color: #fffaf0; background: rgba(10,26,43,.97); border-color: rgba(255,255,255,.17); }
[data-view="discover"] .guest-nav button { color: #cbd2d6; }
[data-view="discover"] .guest-nav button[aria-current="page"] { color: #ffc973; }
.discover-now { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 15px; color: #eee6d7; background: #223143; border-radius: 30px; font-size: 11px; }
.discover-now span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; text-align: left; }
.discover-heading .eyebrow { color: #f3b65c; font-size: 9px; }
.discover-heading h1 { margin: 0; font-size: 38px; }
.discover-heading p:last-child { margin: 0; color: #cbd2d6; font-size: 12px; }
.discover-stage { position: relative; overflow: hidden; min-height: 450px; height: min(62svh,600px); border-radius: 13px; background: #1b2a39; touch-action: pan-y; }
#discover-card, .reel { height: 100%; }
.reel { position: relative; display: flex; align-items: end; isolation: isolate; }
.reel-image { user-select: none; -webkit-user-drag: none; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.reel::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg,rgba(5,16,28,.12),rgba(5,16,28,.22) 20%,rgba(5,16,28,.9) 77%,#061522); }
.reel .art-label { z-index: 2; pointer-events: none; top: 12px; bottom: auto; color: #fff; }
.reel-copy { position: relative; z-index: 2; min-width: 0; width: calc(100% - 72px); max-height: calc(100% - 40px); padding: 25px 14px 20px 22px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.reel-copy h2 { margin: 0 0 8px; color: white; font-size: clamp(30px,5vw,42px); line-height: 1.02; overflow-wrap: anywhere; }
.reel-artist { margin: 0 0 12px; color: #e1d9cc; font-size: 12px; line-height: 1.4; }
.reel-score { margin: 0; font-size: 13px; }
.reel .social-button { margin: 5px 0; color: #fffaf0; }
.reel .avatar { border-color: #132235; }
.reel-votes { position: absolute; z-index: 3; right: 16px; bottom: 90px; display: grid; justify-items: center; gap: 9px; }
.reel-votes button { display: grid; justify-items: center; gap: 4px; min-width: 54px; padding: 3px; color: white; background: none; font-size: 10px; }
.reel-votes .vote-glyph { display: grid; place-items: center; width: 54px; height: 54px; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 35px; font-weight: 500; }
.reel-votes button[data-value="1"] .vote-glyph { border: 0; background: var(--vermilion); }
.reel-votes button[aria-pressed="true"] .vote-glyph { outline: 3px solid #ffc973; outline-offset: 3px; }
.my-vote { display: inline-block; margin: 5px 0 0; padding: 8px 12px; color: #fff; background: #243447; border-radius: 30px; font-size: 10px; }
.reel-hold { color: #f3c581; font-size: 11px; line-height: 1.4; }
.discover-controls { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 5px; }
.discover-controls button { min-height: 44px; padding: 10px 2px; color: #fcf7ed; background: none; font-size: 12px; }
.discover-controls button:disabled { opacity: .35; cursor: default; }
.discover-controls .small { color: #cbd2d6; font-size: 10px; text-align: center; }
.discover-footnote { margin: 5px 0 0; color: #cbd2d6; font-size: 10px; text-align: center; }
#view-discover .empty-state { padding: 32px; color: #e1d9cc; }
dialog { color: var(--ink); color-scheme: light; background: #fcf7ed; }
#join-dialog { width: min(480px,calc(100% - 32px)); padding: 28px; border: 0; border-radius: 16px; }
#join-dialog h2 { margin: 16px 0; font-size: 36px; }
#join-dialog p { font-size: 13px; line-height: 1.65; }
#join-dialog label { display: grid; gap: 7px; margin-top: 20px; font-size: 13px; }
#join-dialog input { border-radius: 6px; }
#join-dialog .identity-note { color: var(--ink-soft); font-size: 11px; }
#join-dialog .primary-button { width: 100%; border-radius: 6px; }
#cancel-name { width: 100%; margin-top: 8px; }
dialog::backdrop { background: rgba(4,14,25,.6); backdrop-filter: blur(4px); }
.voters-sheet { width: min(520px,100%); max-width: 100%; max-height: min(86svh,800px); margin: auto auto 0; padding: 10px 25px 18px; border: 0; border-radius: 22px 22px 0 0; }
.sheet-handle { width: 38px; height: 4px; margin: 4px auto 25px; background: #a5a49f; border-radius: 4px; }
.sheet-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 8px; }
.sheet-heading h2 { margin: 0 0 7px; font-size: 33px; }
#voters-song { margin: 0; font-family: Georgia,serif; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.close-button { flex: 0 0 auto; min-width: 44px; min-height: 44px; color: var(--ink); background: transparent; font-size: 30px; }
.voter-tabs { margin: 15px 0; }
.voter-tabs span { margin-left: 6px; color: var(--vermilion); }
.voter-search { border: 0; border-radius: 30px; background: #eee8dd; }
.voter-search input { background: none; }
.voters-list { max-height: 45svh; min-height: 85px; overflow: auto; overscroll-behavior: contain; }
.voter-row { display: flex; align-items: center; gap: 13px; min-height: 59px; border-bottom: 1px solid rgba(23,35,62,.07); font-size: 14px; }
.voter-row .avatar { width: 36px; height: 36px; margin: 0; font-size: 14px; }
.voter-row .voter-name { flex: 1; overflow-wrap: anywhere; }
.voter-direction { color: var(--vermilion); font-size: 23px; }
.sheet-note { margin: 18px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; text-align: center; }
.toast { z-index: 50; bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .voters-sheet { margin-bottom: 5vh; border-radius: 22px; } }
@media (max-width: 699px) {
  .guest-shell { padding: 17px 20px 108px; }
  .masthead-guest { gap: 10px; padding-bottom: 8px; }
  .masthead-guest .brand { gap: 8px; }
  .masthead-guest .brand-name { font-size: 25px; }
  .masthead-guest .brand-mark { width: 29px; height: 29px; font-size: 17px; }
  .masthead-guest .status { font-size: 10px; }
  .room-line { margin: 0 0 16px; font-size: 10px; }
  .live-layout { display: block; }
  .current-art { aspect-ratio: 1.85; }
  .current-copy h2 { margin-top: 13px; font-size: 30px; }
  .current-copy p { margin-bottom: 9px; font-size: 12px; }
  .playback-note { margin: 9px 0; font-size: 11px; }
  .coming-up { margin-top: 17px; }
  .coming-up h2 { font-size: 25px; }
  .upcoming-list .track-row { padding: 10px 0; grid-template-columns: 20px 51px minmax(0,1fr) 25px; gap: 9px; }
  .upcoming-list .thumb { width: 51px; height: 51px; }
  .upcoming-list .track-title { font-family: Georgia,serif; font-size: 18px; }
  .upcoming-list .track-artist { display: none; }
  .upcoming-list .social-button { min-height: 33px; font-size: 10px; }
  .upcoming-list .avatar { width: 21px; height: 21px; font-size: 8px; }
  .circle-invite { margin-top: 14px; }
  .guest-nav { border-right: 0; border-left: 0; border-radius: 0; }
  .queue-heading h1 { font-size: 42px; }
  #view-discover .requestline { display: flex; flex-direction: column; align-items: stretch; }
  #view-discover .requestline label { width: 100%; }
  [data-view="discover"] .guest-shell { padding: 14px 16px 108px; }
  [data-view="discover"] .room-line { margin-bottom: 2px; }
  .discover-heading { margin: 8px 0; }
  .discover-heading h1 { font-size: 37px; }
  .discover-stage { min-height: 280px; height: max(280px,calc(100svh - 400px)); border-radius: 9px; }
  .reel-copy { width: calc(100% - 66px); padding-left: 18px; padding-right: 12px; }
  .reel-copy h2 { font-size: 32px; }
  .reel-votes { right: 12px; }
  .discover-controls .small { max-width: 140px; }
  .voters-sheet { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 360px) { .guest-shell { padding-right: 14px; padding-left: 14px; } .room-line > span { max-width: 65%; } .avatar-stack .avatar:nth-child(3) { display: none; } .track-row { gap: 8px; grid-template-columns: 20px 43px minmax(0,1fr) auto; } .track-row .thumb { width: 43px; height: 48px; } .reel-copy h2 { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.queue-pagination { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0; }

.queue-summary { margin: 20px 0 8px; color: var(--teal); font-size: 13px; font-weight: 700; }
#view-discover .discover-search { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.discover-search .search-field { min-width: 0; flex: 1; color: var(--ink); background: #fffaf0; border-radius: 8px; }
.discover-search input { min-width: 0; color: var(--ink); background: transparent; }
.discover-search .secondary-button { width: auto; min-height: 46px; padding: 9px; color: #fffaf0; background: #223143; }
.browse-all { min-height: 44px; padding: 8px 0; color: #ffc973; background: none; font-size: 12px; }
.swipe-guide { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 9px; color: #e1d9cc; font-size: 10px; }
.swipe-feedback { position: absolute; z-index: 4; top: 50px; left: 18px; right: 18px; padding: 15px; border: 2px solid currentColor; border-radius: 8px; background: rgba(10,26,43,.94); text-align: center; font-size: 22px; font-weight: 800; pointer-events: none; }
[data-swipe="like"] .swipe-feedback { color: #8ae4ca; }
[data-swipe="ignore"] .swipe-feedback { color: #ffb29c; }
#discover-library, #view-discover .request-section { margin-top: 18px; padding: 18px; color: var(--ink); background: #fcf7ed; border-radius: 10px; color-scheme: light; }
#discover-library .empty-state { padding: 15px 0; color: var(--ink-soft); }
#view-discover .requestline { display: flex; flex-direction: column; align-items: stretch; }
#view-discover .requestline label { width: 100%; }

.reel-votes .ignore-button .vote-glyph { width: 44px; height: 44px; color: #cbd2d6; background: transparent; border: 1px dashed #aeb7bf; font-size: 27px; }
#view-discover .discovery-filters { display: flex; flex-wrap: nowrap; gap: 7px; margin: 0 0 8px; padding: 0 0 5px; overflow-x: auto; scrollbar-width: thin; }
.discovery-filters .filter { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; color: #eee6d7; background: #223143; border: 1px solid #44505f; border-radius: 22px; font-size: 11px; }
.discovery-filters .filter.active { color: #112334; background: #ffc973; border-color: #ffc973; }
@media (max-width: 699px) { .discover-stage { min-height: 260px; height: max(260px,calc(100svh - 450px)); } }
