/* ===== 基本・背景 ===== */
body {
  font-family: "Segoe UI", "Hiragino Sans", sans-serif;
  margin: 0;
  padding: 20px;
  padding-top:60px;
  background: #121217;
  color: #EDEAF5;
  display: flex;
  justify-content: center;
}

#container {
  width: 100%;
  max-width: 1280px; /* ★ 中央1280px */
}

/* ===== ヘッダー ===== */
header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #D7A7E9;
  text-shadow: 0 0 6px rgba(215, 167, 233, 0.4);
}

/* ===== セレクタ ===== */
#selector {
  margin: 20px 0;
}

#series-select {
  background: #1D1A22;
  color: #EDEAF5;
  border: 1px solid #8A4FB7;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
}

/* ===== 統計エリア ===== */
#stats {
  background: #1D1A22;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  border-left: 4px solid #8A4FB7;
}

/* ===== 配信カード一覧（3列グリッド） ===== */
#list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ★ 3列表示 */
  gap: 20px;
}

/* ===== 配信カード ===== */
.card {
  background: #1A1920;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(138, 79, 183, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.7);
  border-color: rgba(215, 167, 233, 0.7);
}

/* ===== サムネ（クリックリンクQR） ===== */
.thumb-wrapper {
  display: block; /* aタグをブロック化してクリック範囲をサムネ全体へ */
}

.thumb {
  width: 100%;
  border-radius: 10px;
  border: 2px solid #8A4FB7;
}

/* ===== カード内部 ===== */
.title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #D7A7E9;
  margin: 10px 0 6px 0;
  text-shadow: 0 0 6px rgba(138, 79, 183, 0.4);
}

.meta {
  font-size: 0.9rem;
  color: #C5BAD5;
  line-height: 1.4;
}

a {
  color: #A678FF;
  text-decoration: none;
}

a:hover {
  color: #D7A7E9;
  text-shadow: 0 0 4px rgba(215, 167, 233, 0.6);
}

.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;

  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;

  color: #ffffff;
  text-decoration: none;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  backdrop-filter: blur(6px);

  transition: all 0.25s ease;
  z-index: 9999; /* 何があっても前面 */
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-3px);
}

/* ===== レスポンシブ対応 ===== */

/* ▼ タブレット（1024px以下）：2列 */
@media (max-width: 1024px) {
  #list {
    grid-template-columns: repeat(2, 1fr);
  }

  body {
    padding: 16px;
    padding-top: 60px;
  }
}

/* ▼ スマホ（640px以下）：1列 */
@media (max-width: 640px) {
  #list {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 10px;
  }

  .title {
    font-size: 1rem;
  }

  .meta {
    font-size: 0.85rem;
  }
}
