/* Hero Section */
.manga-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: blur(100px) brightness(0.3);
    opacity: 0.6;
}

.manga-content {
    padding-top: 60px;
    padding-bottom: 100px;
}

.manga-header-section {
    display: flex;
    gap: 48px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.manga-thumbnail-wrapper {
    flex-shrink: 0;
    width: 320px;
}

.manga-thumbnail {
    width: 100%;
    border-radius: 24px;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.manga-info-wrapper {
    flex: 1;
}

.manga-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 16px 0 8px;
    color: white;
}

.manga-alt-title {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 24px;
    font-weight: 400;
}

.manga-meta-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.manga-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.manga-genre {
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
}

.manga-actions {
    display: flex;
    gap: 16px;
}

/* Body Section */
.manga-summary-box {
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.manga-summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

/* Chapters Section */
.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chapters-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sort-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.sort-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
}

.chapters-filter input {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    width: 250px;
}

/* Skeleton Overrides for Detail Page */
.manga-title.skeleton { width: 300px; height: 3.5rem; margin-bottom: 1rem; }
.manga-summary.skeleton { width: 100%; height: 6rem; }
.chapter-item.skeleton { height: 60px; pointer-events: none; }

.chapter-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.chapter-item:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.chapter-info {
    display: flex;
    flex-direction: column;
}

.chapter-name {
    font-weight: 700;
    color: white;
}

.chapter-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.chapter-item:hover .chapter-name,
.chapter-item:hover .chapter-date {
    color: white;
}

@media (max-width: 992px) {
    .manga-header-section { flex-direction: column; align-items: center; text-align: center; }
    .manga-meta-grid { justify-content: center; }
    .manga-genres { justify-content: center; }
}

@media (max-width: 640px) {
    .manga-title { font-size: 2.25rem; }
    .manga-thumbnail-wrapper { width: 220px; }
}
