/* VIEW ページ：配信中のメンバーの画面を並べる */
.view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.view-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(var(--c-primary-rgb), 0.5);
  transition: box-shadow 0.2s, transform 0.2s;
}

.view-tile:hover,
.view-tile:focus-visible {
  box-shadow: 0 0 0 1px var(--c-primary-bright), 0 0 26px rgba(var(--c-primary-rgb), 0.45);
  transform: translateY(-2px);
}

.view-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.view-actions {
  display: flex;
  padding: 0 14px 14px;
}

.view-kick {
  width: 100%;
  justify-content: center;
}

.view-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.view-thumb,
.view-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* 映像はクリックを通す（マス全体がリンクのまま） */
.view-frame {
  pointer-events: none;
  background: #000;
}

.view-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.view-air {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
}

.view-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 0 1px rgba(var(--c-primary-bright-rgb), 0.6);
  opacity: 0;
  transition: opacity 0.2s;
}

.view-tile:hover .view-hint,
.view-tile:focus-visible .view-hint {
  opacity: 1;
}

.view-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.view-name {
  font-family: var(--font-serif, inherit);
  font-size: 1.1rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-title {
  margin: 0;
  min-height: 2.8em;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 2px;
}

.view-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--c-muted);
  box-shadow: inset 0 0 0 1px rgba(var(--c-primary-rgb), 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.view-empty-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-text);
}

@media (max-width: 1000px) {
  .view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .view-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* スマホなど、カーソルがない端末では「視聴する」の表示を出さない */
@media (hover: none) {
  .view-hint {
    display: none;
  }
}

/* ページの上の「配信中のメンバーの名前」のボタン（視聴画面のものと同じ見た目。スマホでも、横スクロールにせず折り返して全員を見せる） */
.view-names {
  margin: 0 0 22px;
}

@media (max-width: 720px) {
  .view-names {
    flex-wrap: wrap;
    overflow: visible;
  }
}
