/* ==========================================================================
   Comic - 一覧ページ
   ========================================================================== */

.comic-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.comic-index h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1f2937;
}

/* タブ */
.comic-list-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.comic-list-tab {
    padding: 8px 16px;
    background: #e5e7eb;
    border-radius: 6px 6px 0 0;
    font-size: 0.85rem;
    text-decoration: none;
    color: #4b5563;
}
.comic-list-tab.active {
    background: #1f2937;
    color: #fff;
}
.comic-list-tab:hover {
    background: #d1d5db;
    color: #111827;
}
.comic-list-tab.active:hover {
    background: #1f2937;
    color: #fff;
}

/* 検索バー */
.comic-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.comic-search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}
.comic-search-bar select {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}
.comic-search-bar button {
    padding: 10px 24px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ジャンル一覧 */
.comic-genre-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.comic-genre-list .comic-genre-tag.active {
    background: #2563eb;
    color: #fff;
}

/* リスト */
.comic-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* リストアイテム */
.comic-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
}
.comic-list-item-img {
    flex-shrink: 0;
    /* width: 80px; */
    width: 120px;
}
.comic-list-item-img img {
    /* width: 80px; */
    width: 120px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
}
.comic-list-item-body {
    flex: 1;
    min-width: 0;
}
.comic-list-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.comic-list-item-title a {
    color: #111827;
    text-decoration: none;
}
.comic-list-item-title a:hover {
    color: #2563eb;
}
.comic-list-item-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}
.comic-list-item-sites {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.comic-site-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: #e5e7eb;
    border-radius: 4px;
    color: #374151;
}
.comic-list-item-episode {
    font-size: 0.8rem;
    color: #4b5563;
}
.comic-update-text {
    color: #dc2626;
    font-weight: 600;
    margin-left: 8px;
}
.comic-list-item-pv {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

.comic-page-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .comic-search-bar {
        flex-direction: column;
    }
    .comic-list-item-img {
        width: 60px;
    }
    .comic-list-item-img img {
        width: 60px;
        height: 85px;
    }
}
