/* 色・フォント・ボタン類は /shared/base.css に置いてある。ここはこのページ固有の分だけ */

.head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.panel { border-top: 1px solid var(--rule); padding: 18px 0; }

/* チャンネル選択。チェックボックスは隠して [x] / [ ] で状態を出す */
#channels { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#channels label { cursor: pointer; user-select: none; display: inline-flex; align-items: baseline; gap: 6px; }
#channels label input { position: absolute; opacity: 0; width: 0; height: 0; }
#channels label::before { content: "[ ]"; color: var(--sub); }
#channels label:has(input:checked)::before { content: "[x]"; color: var(--text); }
#channels label:hover { text-decoration: underline; }
#channels label:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
#channels .count { color: var(--sub); font-size: 12px; }

.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.controls label { font-size: 13px; color: var(--sub); display: inline-flex; align-items: center; gap: 4px; }

#status { font-size: 13px; color: var(--sub); margin-top: 10px; min-height: 1.2em; }

summary { cursor: pointer; font-size: 13px; color: var(--sub); font-weight: 700; user-select: none; }
#history { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
#history li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; font-size: 13px; }
#history .t { cursor: pointer; flex: 1 1 auto; min-width: 0; }
#history .t:hover { text-decoration: underline; }
#history .meta { color: var(--sub); font-size: 11px; white-space: nowrap; margin-left: auto; }
#history .empty { color: var(--sub); }

#player-area { display: none; }
#player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
#player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
#now-playing { margin-top: 10px; font-size: 14px; }
#now-playing .ch { color: var(--sub); font-size: 12px; }
