/* SSTV 頁框（add-web-sstv）。只在 body.mode-sstv 出現；版面與共用的 .wfx-* 樣式同 WEFAX（wefax.css）。 */
body:not(.mode-sstv) #sstv-panel { display: none !important; }
body.mode-sstv #qso-bar { display: none; } /* FT8 的通聯控制列在 SSTV 沒有意義 */
body.mode-sstv #tx-panel, body.mode-sstv #strip-tx { display: none; } /* 這一版只收不發：沒有發射區塊與發射鍵 */

/* 影像：整張圖永遠看得到（不捲動），依模式的長寬比縮放置中；還沒收到的行是黑的 */
.sstv-viewer { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.sstv-viewer .wfx-empty { color: #ccc; }
#sstv-canvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
#sstv-canvas[hidden] { display: none; }
#sstv-pause[aria-pressed="true"] { outline: 2px solid var(--qsl-green); }
.sstv-sideband { font-weight: 600; }

@media (max-width: 599px) { /* 同 phone.css */
  body.mode-sstv[data-ptab="call"] .wfx-back-row { display: flex; }
  body.mode-sstv[data-ptab="call"] #spectrum-panel,
  body.mode-sstv[data-ptab="decode"] #spectrum-panel { order: 2; flex: none; height: 150px; } /* 頁框在上、瀑布圖在下 */
  body.mode-sstv[data-ptab="call"] #sstv-panel,
  body.mode-sstv[data-ptab="decode"] #sstv-panel { flex: 1; min-height: 0; overflow-y: auto; margin: 0; border: 0; border-radius: 0; padding: 6px 8px 4px; }
  #sstv-back { width: 32px; height: 32px; }
  #sstv-back svg { width: 20px; height: 20px; }
}
