

/* ============================
   Page Header
   ============================ */
.page-header {
    background: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
}

/* ============================
   Filters
   ============================ */
.search-filters {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-container {
    position: relative;
}

.search-icon,
.filter-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
}

/* ============================
   Livers Grid
   ============================ */
.livers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.liver-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.liver-card:hover {
    transform: translateY(-4px);
}

.liver-image-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.liver-image-main img {
    width: 300px;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
}

.liver-image-sub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    padding-top: 0.5rem;
}

.liver-sub-image {
    width: 100px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #d1d5db;
    /* フレーム追加 */
    padding: 2px;
    background: #fff;
}

.liver-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.liver-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.liver-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #6366f1;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.viewer-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.liver-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.liver-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.liver-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.liver-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-liver {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ec4899;
    color: #fff;
    font-weight: bold;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-liver:hover {
    background: #db2777;
}

.btn-secondary {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
}

.no-results-icon {
    width: 3rem;
    height: 3rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .liver-actions {
        flex-direction: column;
    }

    .liver-image-group {
        flex-direction: column;
        align-items: center;
    }

    .liver-image-sub {
        flex-direction: row;
        justify-content: center;
        padding-top: 1rem;
    }
}
