/* ===========================================
 * ED曲一覧ページ（/ed-list）
 * =========================================== */

.edlist-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.edlist-header-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

/* ページネーション */
.edlist-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.edlist-pagination .page-info {
  font-size: 14px;
  color: #555;
  min-width: 80px;
  text-align: center;
}

/* テーブル */
.edlist-table-wrap {
  overflow-x: auto;
}

.edlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.edlist-table thead th {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.edlist-table tbody tr {
  border-bottom: 1px solid #eee;
}

.edlist-table tbody tr:hover {
  background: #fafafa;
}

.edlist-table td {
  padding: 10px 8px;
  vertical-align: top;
}

.col-num {
  width: 60px;
  text-align: center;
  font-weight: 600;
}

.col-num a {
  color: #0066cc;
  text-decoration: none;
}

.col-num a:hover {
  text-decoration: underline;
}

/* 本編動画カード */
.main-video-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.main-thumb-wrap {
  flex-shrink: 0;
  width: 130px;
}

.main-thumb-wrap a {
  display: block;
}

.thumb-container {
  width: 130px;
  height: 73px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-container .loading {
  color: #aaa;
  font-size: 12px;
}

.main-info {
  flex: 1;
  min-width: 0;
}

.main-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.main-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.main-uploader {
  display: flex;
  align-items: center;
  gap: 4px;
}

.uploader-icon {
  border-radius: 50%;
  flex-shrink: 0;
}

/* ED曲カード */
.ed-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ed-thumb-wrap {
  flex-shrink: 0;
  width: 100px;
}

.ed-thumb-wrap a {
  display: block;
}

.ed-thumb-wrap .thumb-container {
  width: 100px;
  height: 100px;
  border-radius: 6px;
}

.ed-info {
  flex: 1;
  min-width: 0;
}

.ed-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.ed-artist {
  color: #555;
  font-size: 13px;
  margin-bottom: 2px;
}

.ed-etc {
  color: #888;
  font-size: 12px;
  margin-bottom: 4px;
}

.ed-link {
  display: inline-block;
  color: #0066cc;
  font-size: 12px;
  text-decoration: none;
}

.ed-link:hover {
  text-decoration: underline;
}

/* ジャケ画プレースホルダー（生成画像） */
.ed-cover-generated {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  border-radius: 6px;
}

.ed-cover-generated .cover-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.ed-cover-generated .cover-artist {
  font-size: 10px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

/* ===========================================
 * レスポンシブ
 * =========================================== */
@media (max-width: 768px) {
  .edlist-wrapper {
    padding: 8px;
  }

  .edlist-table thead {
    display: none;
  }

  .edlist-table,
  .edlist-table tbody,
  .edlist-table tr,
  .edlist-table td {
    display: block;
    width: 100%;
  }

  .edlist-table tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
  }

  .col-num {
    width: auto;
    text-align: left;
    font-size: 15px;
    padding-bottom: 4px;
  }

  .col-num::before {
    content: '第';
  }

  .col-num a::after {
    content: '号';
  }

  .main-video-card {
    flex-direction: row;
  }

  .main-thumb-wrap {
    width: 100px;
  }

  .thumb-container {
    width: 100px;
    height: 56px;
  }

  .ed-card {
    flex-direction: row;
  }

  .ed-thumb-wrap {
    width: 80px;
  }

  .ed-thumb-wrap .thumb-container {
    width: 80px;
    height: 80px;
  }
}
