/* コテンラジオ配信一覧（/coten_radio/）専用スタイル。すべて .cr- プレフィックスでスコープする */

.cr-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.cr-filter__input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px; /* iOSでのフォーカス時ズームを防ぐため16px以上にする */
}

.cr-filter__count {
  white-space: nowrap;
  font-weight: bold;
  color: #0070f3;
}

.cr-total {
  color: #666;
  font-size: 13px;
  text-align: right;
}

.cr-index {
  margin: 10px 0 20px;
}

.cr-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  gap: 2px 12px;
  margin-bottom: 8px;
}

.cr-index__item {
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-index__item--section {
  display: inline-block;
  margin-right: 16px;
  font-weight: bold;
}

/* 表の体裁はテーマ（Mainroad）のth/td規則に依存せず、ここで完全に確定させる */
.cr-list .cr-table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  border-spacing: 0;
}

.cr-list .cr-table th,
.cr-list .cr-table td {
  padding: 6px 10px;
  border: 1px solid #eaeaea;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
  float: none; /* テーマの [class*="col-"] のような広域セレクタ対策 */
  margin: 0;
}

.cr-list .cr-table thead th {
  font-weight: bold;
  text-align: center;
  background-color: #f8f9fa;
}

.cr-cell-id {
  width: 5.5em;
}

.cr-cell-links {
  width: 15em;
}

.cr-links {
  white-space: nowrap; /* リンクのピルを1行に収める */
}

.cr-id {
  white-space: nowrap;
}

.cr-no {
  color: #999;
  font-size: 12px;
  margin-left: 2px;
}

.cr-links a {
  display: inline-block;
  margin: 1px 2px;
  padding: 1px 8px;
  font-size: 13px;
  border: 1px solid #cde;
  border-radius: 12px;
  background-color: #f4f8fc;
  text-decoration: none;
  white-space: nowrap;
}

.cr-links a:hover {
  background-color: #e0edfa;
}

.cr-nohit {
  color: #666;
  font-style: italic;
  text-align: center;
  margin: 30px 0;
}

.cr-hidden {
  display: none !important;
}

/* スマートフォン: リンク列を縦積みにしてタイトルに幅を回す */
@media (max-width: 640px) {
  .cr-cell-id {
    width: 3.5em;
  }

  .cr-cell-links {
    width: 6em;
  }

  .cr-links a {
    display: block;
    margin: 2px 0;
    text-align: center;
  }

  .cr-no {
    display: none;
  }
}
