/* STST Radio broadcaster layout v2
   Keeps the existing left/right column widths, but concentrates controls on the left. */

.broadcast-main-grid--controls-left{
  align-items:start;
}
.broadcast-left-column,
.broadcast-right-column--comments-only{
  min-width:0;
}
.radio-broadcast-control-card{
  min-width:0;
}
.radio-broadcast-control-head,
.radio-broadcast-live-state{
  display:flex;
  align-items:center;
}
.radio-broadcast-control-head{
  justify-content:space-between;
  gap:12px;
}
.radio-broadcast-live-state{gap:10px}
.radio-broadcast-stat-row{margin-top:14px}
.radio-broadcast-wave{
  margin-top:14px;
  min-height:96px;
}
.radio-aw-quick-controls{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.radio-aw-quick-controls .btn{
  min-width:0;
  padding-inline:8px;
  white-space:nowrap;
}
.radio-aw-hold-button.active{
  border-color:#9674d8!important;
  background:#eee8fb!important;
  color:#4f348a!important;
  box-shadow:0 0 0 3px rgba(150,116,216,.10);
}
.radio-aw-censor-button.active{
  border-color:#f26a2a!important;
  background:#fff0e8!important;
  color:#a9471b!important;
}
.radio-aw-hold-note{
  margin:7px 0 0;
  color:#77736a;
  font-size:10px;
  line-height:1.45;
}
.radio-aw-input-volume{
  display:grid;
  gap:8px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--stst-line,#e7e2d8);
}
.radio-aw-input-volume>span{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#555a60;
  font-size:12px;
}
.radio-aw-input-volume output{
  color:#252525;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.radio-aw-input-volume input[type="range"]{
  width:100%;
  accent-color:#252525;
}
.radio-aw-open-button{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin-top:13px;
}
.radio-aw-open-mark{
  display:inline-flex;
  align-items:flex-end;
  gap:2px;
  height:17px;
}
.radio-aw-open-mark i{
  display:block;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,#55d6ff,#9f7aea);
}
.radio-aw-open-mark i:nth-child(1){height:7px}
.radio-aw-open-mark i:nth-child(2){height:14px}
.radio-aw-open-mark i:nth-child(3){height:10px}
.radio-aw-open-mark i:nth-child(4){height:16px}
.radio-aw-open-button[data-engine="online"]{
  border-color:rgba(104,239,193,.55)!important;
  box-shadow:0 0 0 3px rgba(104,239,193,.08);
}

.radio-mic-setting-block{
  margin-top:15px;
  padding:14px;
  border:1px solid #e5e1d7;
  border-radius:13px;
  background:#fbfaf7;
}
.radio-mic-select-field{margin:0!important}
.radio-mic-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.radio-mic-action-row .btn{flex:1 1 150px}
.radio-mic-level-inline{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin-top:12px;
  color:#676a6f;
  font-size:11px;
  font-weight:800;
}
.radio-mic-level-inline .meter{margin:0!important}
.radio-detailed-settings-button{margin-top:14px}

.broadcast-right-column--comments-only{
  align-self:stretch;
}
.radio-host-comments-full{
  min-height:620px;
  height:min(78vh,900px);
  display:flex;
  flex-direction:column;
}
.radio-host-comments-full .comment-list{
  flex:1 1 auto;
  min-height:0!important;
}
.radio-host-comments-full .comment-box{flex:0 0 auto}

/* Detailed settings modal */
.radio-settings-modal[hidden]{display:none!important}
.radio-settings-modal{
  position:fixed;
  inset:0;
  z-index:4200;
  display:grid;
  place-items:center;
  padding:22px;
}
.radio-settings-modal__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(21,22,24,.52);
  backdrop-filter:blur(4px);
}
.radio-settings-modal__dialog{
  position:relative;
  z-index:1;
  width:min(760px,100%);
  max-height:min(88vh,900px);
  overflow:auto;
  padding:24px;
  border:1px solid #e3ded4;
  border-radius:20px;
  background:#fffdf8;
  box-shadow:0 26px 70px rgba(37,37,37,.24);
}
.radio-settings-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:1px solid #dfdad0;
  border-radius:10px;
  background:#fff;
  color:#252525;
  cursor:pointer;
  font-size:22px;
}
.radio-settings-modal__eyebrow{
  margin:0 0 5px;
  color:#f26a2a;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
}
.radio-settings-modal__dialog h2{margin:0 42px 7px 0}
.radio-settings-modal__section{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #ebe6dc;
}
.radio-settings-modal__section.radio-community-settings{
  margin-top:18px;
}
.radio-settings-share-area{margin-top:0!important}


/* Child modals opened from Advanced Settings must always appear above it. */
.thumbnail-modal,.radio-connect-guide-modal{z-index:4700!important}

/* Comment moderation button lives inside the row; menu itself is portalled to body. */
.comment[data-comment-id]{padding-right:42px!important}
.radio-comment-moderation{
  position:absolute!important;
  top:6px!important;
  right:6px!important;
  margin:0!important;
  z-index:4;
}
.radio-comment-moderation-button{
  display:grid;
  place-items:center;
}
.radio-comment-moderation-menu.radio-comment-moderation-menu--floating{
  position:fixed!important;
  top:0;
  left:0;
  right:auto!important;
  z-index:99999!important;
  width:min(240px,calc(100vw - 20px));
  max-height:min(430px,calc(100vh - 20px));
  overflow:auto;
}

body.radio-modal-lock,
body.aw-modal-open{overflow:hidden!important}

@media(max-width:900px){
  .radio-host-comments-full{
    min-height:520px;
    height:66vh;
  }
}
@media(max-width:640px){
  .radio-aw-quick-controls{grid-template-columns:1fr 1fr 1fr;gap:6px}
  .radio-aw-quick-controls .btn{font-size:11px;padding:9px 4px}
  .radio-broadcast-wave{min-height:78px}
  .radio-mic-action-row{display:grid;grid-template-columns:1fr 1fr}
  .radio-mic-action-row .btn{min-width:0}
  .radio-settings-modal{padding:10px}
  .radio-settings-modal__dialog{padding:19px 15px;border-radius:16px;max-height:92vh}
  .radio-host-comments-full{min-height:500px;height:68vh}
}

/* 2026-08 broadcaster comment visible-scroll fix.
   Use an explicit 3-row grid instead of height:0/flex sizing so the
   comment viewport remains visible regardless of legacy .host-comments rules. */
.radio-host-comments-full{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  min-height:620px!important;
  height:min(78vh,900px)!important;
  overflow:hidden!important;
}
.radio-host-comments-full .section-title{
  min-width:0;
}
.radio-host-comments-full .comment-list{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
.radio-host-comments-full .comment-box{
  min-width:0;
  flex:none!important;
}
@media(max-width:900px){
  .radio-host-comments-full{
    min-height:520px!important;
    height:66vh!important;
  }
}
@media(max-width:640px){
  .radio-host-comments-full{
    min-height:500px!important;
    height:68vh!important;
  }
}
