.comic-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.comic-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.comic-header > div {
    min-width: 0;
}

.comic-cover-large {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.comic-details {
    min-width: 0;
    overflow: hidden;
}

.comic-details h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    word-break: break-word;
}

.comic-author-info {
    color: #718096;
    margin-bottom: 1rem;
}

.comic-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.comic-description {
    margin: 1.5rem 0;
    line-height: 1.8;
    color: #4a5568;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comic-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #edf2f7;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #2d3748;
}

.chapters-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chapters-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.chapters-list {
    display: grid;
    gap: 1rem;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.chapter-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(4px);
}

.chapter-thumbnail {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.chapter-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.chapter-number {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.chapter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.btn-read {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-report-ch {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #cbd5e0;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    z-index: 1;
}
.btn-report-ch:hover {
    color: #e53e3e;
    background: #fff5f5;
}

.empty-chapters {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

@media (max-width: 768px) {
    .comic-header {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .comic-details h1 {
        font-size: 1.4rem;
    }

    .comic-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .chapters-section {
        padding: 1rem;
    }

    .chapter-item {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        align-items: center;
    }

    .chapter-thumbnail {
        width: 52px;
        height: 70px;
        flex-shrink: 0;
    }

    .chapter-meta {
        flex-wrap: wrap;
        gap: 0.35rem;
        font-size: 0.8rem;
    }

    .btn-read {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .comic-detail-container {
        padding: 0 0.5rem;
    }

    .comic-header {
        padding: 0.875rem;
        border-radius: 12px;
    }

    .comic-details h1 {
        font-size: 1.25rem;
    }

    .comic-cover-large {
        max-height: 360px;
        object-fit: cover;
    }

    .stat-value {
        font-size: 1rem;
    }

    .chapters-section {
        padding: 0.875rem;
        border-radius: 12px;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}
