/* Fans254 V1280 — mobile/tablet-only continuation (three UI features).
   Feature 1: Space discovery and saved-Space cards.
   Feature 2: Host speaker requests, participant and setting panels.
   Feature 3: Listener room stage, people cards and fixed toolbar.
   This stylesheet does not create controls, alter JS, audio, streaming or endpoints.
   Desktop widths >=1200px intentionally keep the V1279 layout. */
@media (max-width:1199px) {
  /* 1 — Discover and browse existing Spaces without changing filtering or polling. */
  .fsp-index :is(.fsp-toolbar,.fsp-cards,.fsp-own-list,.fsp-card-body,.fsp-card-bottom) {min-width:0}
  .fsp-index .fsp-toolbar {align-items:stretch;gap:10px}
  .fsp-index .fsp-tabs {width:100%;max-width:100%;padding:2px 0 5px;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
  .fsp-index .fsp-tabs button {scroll-snap-align:start;min-height:40px;height:auto;padding:8px 14px;border-radius:999px;touch-action:manipulation;line-height:1.2}
  .fsp-index .fsp-search {width:100%;height:44px;max-width:none;min-width:0;border-radius:15px;padding:0 13px;gap:9px}
  .fsp-index .fsp-search input {min-width:0;width:100%;font-size:14px}
  .fsp-index .fsp-cards {gap:12px;align-items:start}
  .fsp-index .fsp-card {min-width:0;border-radius:18px;overflow:hidden}
  .fsp-index .fsp-card-art {min-width:0;display:flex;flex-direction:column;justify-content:space-between}
  .fsp-index .fsp-card-upper {display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0}
  .fsp-index .fsp-card-upper :is(.fsp-status,.fsp-cat) {max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fsp-index .fsp-card-body {padding:13px 14px 14px}
  .fsp-index .fsp-card-body h3 {font-size:16px;line-height:1.3;overflow-wrap:anywhere;margin:0 0 5px}
  .fsp-index .fsp-card-body > p {font-size:12px;line-height:1.48;overflow-wrap:anywhere}
  .fsp-index .fsp-card-host {gap:9px;margin:12px 0}
  .fsp-index .fsp-card-host > span:nth-child(2) {min-width:0;overflow:hidden}
  .fsp-index .fsp-card-host :is(strong,small) {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fsp-index .fsp-card-bottom {justify-content:flex-start;align-items:center;gap:8px 11px;line-height:1.45}
  .fsp-index .fsp-card-bottom > span {min-width:0;overflow-wrap:anywhere}
  .fsp-index .fsp-card-bottom .fsp-room-link {min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:11px}
  .fsp-index .fsp-own-row {min-width:0;gap:10px;flex-wrap:wrap}
  .fsp-index .fsp-own-row > div {min-width:0;flex:1 1 45%}
  .fsp-index .fsp-own-row > div :is(strong,small) {display:block;overflow-wrap:anywhere}
  .fsp-index .fsp-empty {min-height:0}
  /* 2 — Host panels, real speaker moderation controls, and live settings. */
  .fsp-room-page.fsr-studio-page .fsr-studio-main,
  .fsp-room-page.fsr-studio-page .fsr-studio-side {min-width:0}
  .fsp-room-page.fsr-studio-page .fsr-studio-hero {min-width:0}
  .fsp-room-page.fsr-studio-page .fsr-studio-hero h2 {overflow-wrap:anywhere}
  .fsp-room-page.fsr-studio-page .fsr-studio-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .fsp-room-page.fsr-studio-page .fsr-studio-stats > div {min-width:0;overflow:hidden}
  .fsp-room-page.fsr-studio-page .fsr-studio-stats strong {font-variant-numeric:tabular-nums;white-space:nowrap}
  .fsp-room-page.fsr-studio-page .fsr-people-panel,
  .fsp-room-page.fsr-studio-page .fsr-listeners-panel {min-width:0}
  .fsp-room-page.fsr-studio-page .fsr-request-card {display:flex;flex-wrap:wrap;align-items:center;gap:9px;min-width:0;padding:10px 0}
  .fsp-room-page.fsr-studio-page .fsr-request-card > img,
  .fsp-room-page.fsr-studio-page .fsr-request-card > .fsr-person-letter {width:39px;height:39px;flex:0 0 39px;object-fit:cover;border-radius:50%}
  .fsp-room-page.fsr-studio-page .fsr-request-copy {flex:1 1 95px;min-width:0}
  .fsp-room-page.fsr-studio-page .fsr-request-copy :is(strong,small) {overflow-wrap:anywhere}
  .fsp-room-page.fsr-studio-page .fsr-approve {min-height:40px;min-width:76px;padding:8px 12px;border-radius:12px;flex:0 0 auto;touch-action:manipulation}
  .fsp-room-page.fsr-studio-page .fsr-person {min-width:0}
  .fsp-room-page.fsr-studio-page .fsr-person-name {font-size:11px;max-width:100%}
  .fsp-room-page.fsr-studio-page .fsr-quick-mod {max-width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:4px}
  .fsp-room-page.fsr-studio-page .fsr-quick-mod button {min-height:30px;max-width:100%;overflow-wrap:anywhere;touch-action:manipulation}
  .fsp-room-page.fsr-studio-page .fsr-setting {min-width:0;min-height:58px;gap:12px;align-items:center}
  .fsp-room-page.fsr-studio-page .fsr-setting > span:first-child {min-width:0;flex:1 1 auto}
  .fsp-room-page.fsr-studio-page .fsr-setting strong {overflow-wrap:anywhere}
  .fsp-room-page.fsr-studio-page .fsr-setting small {line-height:1.35}
  .fsp-room-page.fsr-studio-page .fsr-toggle {flex:0 0 43px}
  .fsp-room-page.fsr-studio-page .fsr-side-card {min-width:0}
  .fsp-room-page.fsr-studio-page .fsr-studio-room-link {display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:42px;overflow-wrap:anywhere}
  .fsp-room-page.fsr-studio-page .fsr-studio-room-link svg {flex:none}
  /* 3 — Listener controls and stage remain fully usable with mixed-length text and people. */
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-main,
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-side {min-width:0}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-title {max-width:100%;min-width:0;margin:0;overflow-wrap:anywhere;text-align:left}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-title h2 {font-size:clamp(21px,4.4vw,30px);line-height:1.2;overflow-wrap:anywhere}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-title p {font-size:13px;line-height:1.5;overflow-wrap:anywhere}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-top,
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-bottom {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-listen-count,
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-elapsed {font-variant-numeric:tabular-nums}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-people-grid {min-width:0;grid-template-columns:repeat(auto-fill,minmax(min(90px,100%),1fr));gap:11px 8px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) :is(.fsr-people-panel,.fsr-listeners-panel) {min-width:0}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-person-name {max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-status {line-height:1.45;overflow-wrap:anywhere}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-how > div {min-width:0;gap:9px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-side-card p {overflow-wrap:anywhere;line-height:1.5}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-actions > .fsr-action {touch-action:manipulation}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-reaction-menu {max-width:100%;gap:4px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-reaction-menu button {flex:0 0 auto;min-width:34px;min-height:34px}
  :is(.fsp-index,.fsr-studio-page,.fsp-room-page) button:focus-visible,
  :is(.fsp-index,.fsr-studio-page,.fsp-room-page) a:focus-visible {outline:2px solid #a44ae3;outline-offset:2px}
}
@media (max-width:767px) {
  /* Feature 1: phone browsing is single-column; filters scroll horizontally. */
  .fsp-index .fsp-toolbar {display:flex;flex-direction:column;margin:13px 0 16px}
  .fsp-index .fsp-cards {display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
  .fsp-index .fsp-card-art {height:132px;padding:11px 13px}
  .fsp-index .fsp-card-art .fsp-wave {max-height:55px}
  .fsp-index .fsp-card-bottom .fsp-room-link {margin-right:auto}
  .fsp-index .fsp-section-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:9px}
  .fsp-index .fsp-section-heading h2 {font-size:20px;line-height:1.2}
  .fsp-index .fsp-section-heading > span {flex:0 0 auto}
  .fsp-index .fsp-own-row {padding:12px 10px}
  .fsp-index .fsp-own-state {max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* Feature 2: the real studio controls are readable on small touch screens. */
  .fsp-room-page.fsr-studio-page .fsr-studio-hero {padding:16px 12px!important}
  .fsp-room-page.fsr-studio-page .fsr-studio-wave {max-height:60px}
  .fsp-room-page.fsr-studio-page .fsr-studio-stats > div {padding:9px 3px}
  .fsp-room-page.fsr-studio-page .fsr-studio-stats strong {font-size:clamp(15px,4.8vw,20px)}
  .fsp-room-page.fsr-studio-page :is(.fsr-people-panel,.fsr-listeners-panel,.fsr-side-card) {padding:13px!important;margin-bottom:10px}
  .fsp-room-page.fsr-studio-page .fsr-people-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 5px}
  .fsp-room-page.fsr-studio-page .fsr-quick-mod {gap:4px}
  .fsp-room-page.fsr-studio-page .fsr-quick-mod button {font-size:10px;padding:5px 6px}
  .fsp-room-page.fsr-studio-page .fsr-section-title {align-items:flex-start}
  .fsp-room-page.fsr-studio-page .fsr-section-title p {line-height:1.35}
  /* Feature 3: the listener toolbar fits at every phone width and stays above safe-area. */
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage {padding:17px 14px 15px!important;min-height:235px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-title h2 {font-size:clamp(21px,6vw,27px)}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-sound-orb {width:64px;height:64px;margin:12px auto}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-stage-bottom {font-size:11px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-actions {flex-wrap:nowrap!important;padding:6px!important;gap:2px!important;width:calc(100% - 16px)!important;bottom:calc(9px + env(safe-area-inset-bottom))!important}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-actions > .fsr-action {flex:1 1 0!important;min-width:0!important;min-height:48px;padding:6px 2px!important;overflow:hidden}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-actions > .fsr-action span {font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-reaction-menu {left:0;right:0;padding:8px 7px;justify-content:space-around}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-notice {max-width:calc(100% - 24px);bottom:calc(93px + env(safe-area-inset-bottom))}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-people-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 6px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-side {display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-side .fsr-side-card {padding:13px}
}
@media (min-width:768px) and (max-width:1199px) {
  /* Tablets are not phones: no fixed Create button, keep real site header. */
  .fsp-index .fsp-cards {grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px}
  .fsp-index .fsp-card-art {height:140px}
  .fsp-index .fsp-toolbar {display:flex;flex-direction:column}
  .fsp-index .fsp-search {height:42px}
  .fsp-room-page.fsr-studio-page .fsr-people-grid {grid-template-columns:repeat(auto-fill,minmax(94px,1fr))}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-people-grid {grid-template-columns:repeat(auto-fill,minmax(95px,1fr))}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-actions {max-width:min(650px,calc(100% - 30px))}
}
@media (max-width:359px) {
  .fsp-index .fsp-section-heading h2 {font-size:18px}
  .fsp-room-page.fsr-studio-page .fsr-request-card {gap:7px}
  .fsp-room-page.fsr-studio-page .fsr-approve {min-width:65px;padding:7px 8px}
  .fsp-room-page:not(.fsr-studio-page):not(.fsx-page) .fsr-room-actions > .fsr-action span {font-size:8px}
}
@media (prefers-reduced-motion:reduce) {
  .fsp-index .fsp-tabs, .fsp-room-page .fsr-reaction-menu {scroll-behavior:auto!important}
}

/* V1284 — Spaces search-field polish only; keep the original live and Spaces controls.
   This applies strictly to the browsing page, not the Live Studio modal/search. */
@media (max-width:1199px) {
  .fsp-index .fsp-search {
    display:flex;
    align-items:center;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:52px;
    height:52px;
    gap:12px;
    padding:0 17px;
    border:1px solid var(--fsp-border);
    border-radius:50px;
    background:var(--fsp-surface);
    color:var(--fsp-muted);
    box-shadow:0 3px 14px rgba(20,23,52,.055);
    cursor:text;
    transition:border-color .15s ease,box-shadow .15s ease;
  }
  .fsp-index .fsp-search:focus-within {
    border-color:#9c55e8;
    box-shadow:0 0 0 3px rgba(156,85,232,.12);
  }
  .fsp-index .fsp-search > .social-icon {
    display:block;
    width:21px;
    height:21px;
    flex:0 0 21px;
    color:#9161cf;
  }
  .fsp-index .fsp-search input {
    display:block;
    flex:1 1 auto;
    width:100%;
    min-width:0;
    height:100%;
    padding:0;
    border:0;
    outline:0;
    background:transparent;
    color:var(--fsp-text);
    font-size:14px;
    font-weight:450;
    line-height:normal;
    box-shadow:none;
    -webkit-appearance:none;
    appearance:none;
  }
  .fsp-index .fsp-search input::placeholder {
    color:var(--fsp-muted);
    font-weight:400;
    opacity:.88;
  }
  html[data-theme=dark] .fsp-index .fsp-search {
    box-shadow:none;
  }
}
