/* Below The Show — Addendum J phone craft.
   Desktop A12 table UNCHANGED — phone rules only inside max-width media queries.
   Cream paper stays. Stitch rare. Sunlight-readable type.
*/

/* ---- A2HS toast (non-blocking) ---- */
.bts-a2hs {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface, #FFFAF3);
  color: var(--ink, #1A1A1A);
  border: 1px solid var(--hairline, #D9D1C5);
  border-left: 3px solid var(--stitch, #9C3B2D);
  padding: 12px 14px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bts-a2hs[hidden] { display: none !important; }
.bts-a2hs p { margin: 0; flex: 1; }
.bts-a2hs .bts-a2hs-dismiss {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--hairline, #D9D1C5);
  color: var(--mute, #6B645C);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}
.bts-a2hs .bts-a2hs-dismiss:hover { color: var(--ink, #1A1A1A); border-color: var(--ink, #1A1A1A); }

/* ---- Offline Wire banner ---- */
.bts-offline-banner {
  background: var(--error-red, #8B1E1E);
  color: var(--paper, #F4EFE6);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  margin: 0;
}
.bts-offline-banner[hidden] { display: none !important; }

/* ---- Bottom nav + phone shell (aligned with bts.css phone-rebuild-2026-09-28) ---- */
.bts-bottom-nav { display: none; }

@media (max-width: 800px) {
  .bts-bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--surface, #FFFAF3);
    border-top: 1px solid var(--hairline, #D9D1C5);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    box-shadow: 0 -4px 16px rgba(26, 26, 26, 0.04);
  }
  .bts-bottom-nav a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    text-decoration: none;
    color: var(--mute, #6B645C);
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-height: 52px;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.15;
    text-align: center;
  }
  .bts-bottom-nav a[aria-current="page"],
  .bts-bottom-nav a.is-active { color: var(--ink, #1A1A1A); }
  .bts-bottom-nav a[aria-current="page"] .bts-nav-mark,
  .bts-bottom-nav a.is-active .bts-nav-mark { background: var(--stitch, #9C3B2D); }
  .bts-nav-mark {
    width: 18px; height: 3px; background: transparent; border-radius: 0; flex-shrink: 0;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    font-size: 17px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
  }
  .site-main {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .wire-title, .page-title, .player-name {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    letter-spacing: -0.01em;
  }
  .wire-sub, .tagline, .player-meta {
    font-size: 1rem;
    color: var(--mute, #6B645C);
  }
  .search-input, .bts-search-focus {
    font-size: 17px !important;
    min-height: 48px;
  }

  .primary-nav { display: none !important; }
  .header-search,
  .site-header .search-wrap { display: none !important; }
  .site-header .header-inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 10px 14px;
  }

  /* Wire cards */
  .wire-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .wire-table, .wire-table tbody, .wire-table tr, .wire-table td {
    display: block; width: 100%;
  }
  .wire-table tr {
    border-bottom: 1px solid var(--ink, #1A1A1A);
    padding: 14px 0;
    max-width: 393px;
    margin: 0 auto;
  }
  .wire-table tr:first-child { border-top: 1px solid var(--hairline, #D9D1C5); }
  .wire-table td { border: none; padding: 2px 0; white-space: normal; }
  .wire-table .col-time { font-size: 0.75rem; color: var(--mute, #6B645C); }
  .wire-table .col-org { display: inline; font-weight: 600; margin-right: 8px; }
  .wire-table .col-player { display: inline; font-size: 1.05rem; font-weight: 700; }
  .wire-table .col-from, .wire-table .col-to { display: inline; font-size: 0.9rem; }
  .wire-table .col-from::after { content: " → "; color: var(--mute, #6B645C); }
  .wire-table .col-note { margin-top: 6px; font-size: 0.95rem; }
  .wire-table tbody tr:hover td { background: transparent; }

  /* Player dossier stacks; frames don’t overflow */
  .player-folder {
    padding: 16px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .player-folder.is-hot,
  .player-folder.is-cold {
    border-width: 6px;
  }
  .dossier {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .dossier-photo {
    width: 96px !important;
    height: 120px !important;
  }
  .player-name { word-break: break-word; }
  .heat-mark { margin-left: 0.15em; }
  .tx-row, .tx-list .tx-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px;
  }
  .rates-table { width: 100%; font-size: 0.88rem; }
  .player-corners {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.7rem;
  }

  /* Empty states on player cards */
  .empty-state, .bts-empty {
    background: var(--surface, #FFFAF3);
    border: 1px solid var(--hairline, #D9D1C5);
    border-left: 3px solid var(--stitch, #9C3B2D);
    padding: 16px 14px;
    margin: 12px 0;
    color: var(--mute, #6B645C);
    font-size: 0.95rem;
  }

  /* Seams phone scale (site.css player path) */
  .seam-break {
    height: 28px !important;
    background-size: 100% 28px !important;
    margin: 24px 0 !important;
    max-width: 100%;
  }
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

  .bts-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 14px;
    min-height: 44px;
    background: var(--surface, #FFFAF3);
    border: 1px solid var(--hairline, #D9D1C5);
    color: var(--ink, #1A1A1A);
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .bts-watch-btn[aria-pressed="true"] {
    border-color: var(--stitch, #9C3B2D);
    color: var(--stitch, #9C3B2D);
  }

  .kill-banner {
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (max-width: 430px) {
  .bts-bottom-nav a { font-size: 0.52rem; letter-spacing: 0.04em; padding: 6px 1px; }
  .player-folder.is-hot, .player-folder.is-cold { border-width: 5px; }
  .site-main { padding-left: 12px; padding-right: 12px; }
  .seam-break {
    height: 22px !important;
    background-size: 100% 22px !important;
    margin: 18px 0 !important;
  }
}

@media (min-width: 721px) {
  .bts-bottom-nav { display: none !important; }
}

/* Watch / Search page helpers (all widths; cream A12) */
.bts-watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bts-watch-list li {
  border-bottom: 1px solid var(--hairline, #D9D1C5);
  padding: 14px 0;
}
.bts-watch-list a {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.bts-watch-list a:hover { color: var(--stitch, #9C3B2D); text-decoration: underline; }
.bts-watch-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.8rem;
  color: var(--mute, #6B645C);
  margin-top: 4px;
}
.bts-search-page .search-wrap {
  max-width: 480px;
}
.bts-search-page .search-input {
  width: 100%;
  font-size: 17px;
  min-height: 48px;
}
.bts-more-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-width: 480px;
}
.bts-more-links li {
  border-bottom: 1px solid var(--hairline, #D9D1C5);
}
.bts-more-links a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.bts-more-links a:hover { color: var(--stitch, #9C3B2D); }

/* Heat/ice has no phone-specific frame override; cards stay neutral A12. */


/* PHONE PLAYER 2026-09-28 — overflow + empty cells; desktop >800 untouched */
@media (max-width: 800px) {
  .player-folder {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .player-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em;
    word-break: break-word;
  }
  .rates-table td.is-empty {
    color: var(--mute, #6B645C);
    font-style: italic;
    font-size: 0.82rem;
  }
  .empty-state .bts-empty-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 6px;
  }
  .empty-state .cta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
@media (min-width: 801px) {
  .bts-bottom-nav { display: none !important; }
}

/* ---- Home X-roster feed shell (OWNER 2026-09-29) ---- */
.x-feed-hero { margin: 0 0 24px; }
.x-feed-hero .page-title { margin-bottom: 8px; }
.x-feed-honest {
  border: 1px solid var(--hairline, #D9D0C3);
  background: var(--surface, #FFFAF3);
  padding: 12px 14px;
  margin: 0 0 20px;
  color: var(--mute, #6B645C);
  font-size: 0.92rem;
  line-height: 1.45;
}
.x-feed-honest strong { color: var(--ink, #1A1A1A); font-weight: 700; }
.x-feed-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px;
}
.x-feed-toolbar input[type="search"] {
  flex: 1 1 180px; min-width: 140px;
  border: 1px solid var(--hairline, #D9D0C3);
  background: var(--surface, #FFFAF3);
  padding: 8px 10px; font: inherit; color: var(--ink, #1A1A1A);
}
.x-feed-toolbar button {
  background: transparent; border: 1px solid var(--hairline, #D9D0C3);
  font: inherit; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 10px; cursor: pointer;
  color: var(--mute, #6B645C);
}
.x-feed-toolbar button[aria-pressed="true"] {
  border-color: var(--ink, #1A1A1A); color: var(--ink, #1A1A1A);
}
.x-feed-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem; color: var(--mute, #6B645C);
  letter-spacing: 0.04em; margin: 0 0 12px;
}
#x-feed { display: flex; flex-direction: column; gap: 0; }
.x-account {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline, #D9D0C3);
}
.x-account-main { flex: 1 1 220px; min-width: 0; }
.x-handle {
  font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink, #1A1A1A);
}
.x-handle:hover { color: var(--stitch, #9C3B2D); }
.x-org {
  margin: 4px 0 0; font-size: 0.9rem; color: var(--ink, #1A1A1A);
}
.x-notes {
  margin: 4px 0 0; font-size: 0.8rem; color: var(--mute, #6B645C);
}
.x-account-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex: 0 0 auto;
}
.x-tier {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute, #6B645C);
}
.x-open {
  font-size: 0.8rem; color: var(--stitch, #9C3B2D); text-decoration: none;
  letter-spacing: 0.02em;
}
.x-open:hover { text-decoration: underline; }
.x-feed-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
@media (max-width: 720px) {
  .x-account-meta { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
}


/* ---- HOME FEED LIVE 2026-09-29 — elite phone-first ---- */
.home-feed .feed-hero { margin-bottom: 8px; }
.home-feed .feed-hero .section-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute, #6B645C);
  margin: 0 0 6px;
}
.home-feed .feed-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 12px;
}
.home-feed .x-feed-honest {
  background: var(--paper, #F4EFE6);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 12%, transparent);
  border-left: 3px solid var(--stitch, #9C3B2D);
  border-radius: 2px;
  padding: 12px 14px;
  margin: 0 0 16px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink, #1A1A1A) 4%, transparent);
}
.home-feed .x-timeline {
  margin: 0 0 8px;
}
.home-feed .x-timeline-empty {
  background: var(--paper, #F4EFE6);
  border: 1px dashed color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  border-radius: 2px;
  padding: 20px 16px;
  text-align: left;
}
.home-feed .x-timeline-empty .bts-empty-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.home-feed #x-feed .x-account {
  background: var(--paper, #F4EFE6);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  border-radius: 2px;
  padding: 14px 14px;
  margin: 0 0 8px;
  transition: border-color 0.15s ease;
}
.home-feed #x-feed .x-account:hover {
  border-color: color-mix(in srgb, var(--stitch, #9C3B2D) 45%, transparent);
}
.home-feed .x-feed-cta-row .ghost-btn {
  font-size: 0.82rem;
  padding: 6px 10px;
}
.home-feed .x-feed-toolbar {
  margin: 12px 0 14px;
}
.home-feed .x-feed-toolbar input[type="search"] {
  background: var(--paper, #F4EFE6);
  border-radius: 2px;
  padding: 10px 12px;
}
@media (max-width: 720px) {
  .home-feed .feed-hero .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-feed .feed-hero .cta-row > a {
    text-align: center;
  }
  .home-feed .x-feed-cta-row {
    gap: 8px;
  }
}


/* ---- Elite hamburger menu (mobile+desktop) — OWNER 2026-09-29 ---- */
.bts-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 16%, transparent);
  background: var(--paper, #F4EFE6);
  color: var(--ink, #1A1A1A);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  z-index: 120;
}
.bts-menu-btn:hover,
.bts-menu-btn[aria-expanded="true"] {
  border-color: var(--stitch, #9C3B2D);
  color: var(--stitch, #9C3B2D);
}
.bts-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.bts-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
.bts-menu-btn-label { line-height: 1; }
.bts-menu-scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink, #1A1A1A) 42%, transparent);
  z-index: 200;
}
.bts-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(22rem, 92vw);
  z-index: 210;
  pointer-events: none;
}
.bts-menu-drawer:not([hidden]) { pointer-events: auto; }
.bts-menu-panel {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper, #F4EFE6);
  border-left: 3px solid var(--stitch, #9C3B2D);
  box-shadow: -12px 0 40px color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  padding: 18px 16px 96px;
}
.bts-menu-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 12%, transparent);
}
.bts-menu-kicker {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute, #6B645C);
}
.bts-menu-title {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.6rem;
  color: var(--ink, #1A1A1A);
}
.bts-menu-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink, #1A1A1A);
}
.bts-menu-close:hover { border-color: var(--stitch, #9C3B2D); color: var(--stitch, #9C3B2D); }
.bts-menu-section {
  margin: 18px 0 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute, #6B645C);
}
.bts-menu-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  text-decoration: none;
  color: var(--ink, #1A1A1A);
}
.bts-menu-link:hover,
.bts-menu-link[aria-current="page"] {
  color: var(--stitch, #9C3B2D);
}
.bts-menu-link-label {
  font-weight: 700;
  font-size: 1.05rem;
}
.bts-menu-note {
  font-size: 0.78rem;
  color: var(--mute, #6B645C);
}
body.bts-menu-open { overflow: hidden; }
@media (min-width: 801px) {
  /* Desktop keeps primary-nav AND hamburger (Wire/overflow live here) */
  .bts-menu-btn { margin-left: 12px; }
  .header-inner { align-items: center; }
}
@media (max-width: 800px) {
  .bts-menu-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bts-menu-btn { padding: 10px; }
}
@media print {
  .bts-menu-btn, .bts-menu-drawer, .bts-menu-scrim { display: none !important; }
}


/* ---- Home calm — OWNER FIX 2026-09-29 ---- */
.home-calm .home-build {
  margin: 8px 0 20px;
  text-align: left;
}
.home-calm .home-build .page-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}
.home-calm .home-build .cta-row { margin: 0; }
.home-calm .feed-section-title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.home-calm .x-feed-hero { margin: 0 0 32px; }
.home-calm .x-timeline { gap: 14px; }
.home-calm .x-timeline-empty {
  padding: 28px 0;
  border: none;
  background: transparent;
}
.home-calm .x-timeline-empty .bts-empty-copy {
  margin: 0;
  color: var(--mute, #6B645C);
  font-size: 1rem;
}
.home-calm .x-post {
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  background: transparent;
  box-shadow: none;
}
.home-calm .site-main { max-width: 40rem; }


/* ---- OWNER Home fix 2026-09-29 — Build My Rankings + Feed only ---- */
.home-feed .feed-hero {
  margin-bottom: 12px;
}
.home-feed .feed-hero .page-title {
  margin: 0 0 10px;
}
.home-feed .feed-hero .page-title a {
  color: inherit;
  text-decoration: none;
}
.home-feed .feed-hero .page-title a:hover {
  color: var(--stitch, #9C3B2D);
}
.home-feed .feed-section-title {
  font-size: 1.75rem;
  margin: 0 0 14px;
}
.home-feed .x-feed-hero {
  margin: 0 0 24px;
}
.home-feed .x-timeline {
  margin: 0;
}
.home-feed .x-timeline-empty {
  background: var(--paper, #F4EFE6);
  border: 1px dashed color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  border-radius: 2px;
  padding: 20px 16px;
}
.home-feed .x-timeline-empty .bts-empty-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.home-feed .x-timeline-empty .bts-empty-copy {
  margin: 0;
  color: var(--mute, #6B645C);
}
@media (max-width: 720px) {
  .home-feed .feed-hero .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-feed .feed-hero .cta-row > a {
    text-align: center;
  }
}


/* Home calm apply without .home-calm class too */
.home-feed .feed-hero .page-title { margin: 0 0 14px; font-size: clamp(1.75rem, 4vw, 2.35rem); }
.home-feed .feed-section-title { margin: 0 0 16px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.home-feed.home-calm .site-main,
.home-feed .site-main { max-width: 42rem; }
