.book-details-container {
    max-width: 1100px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    animation: fadeIn 0.5s ease;
}

.book-details-left {
    position: sticky;
    top: 90px;
}

.book-cover-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-cover-wrapper:hover {
    transform: translateY(-5px);
}

.book-details-cover {
    width: 100%;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.download-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-badge i {
    color: var(--primary-color);
}

.book-details-right {
    display: flex;
    flex-direction: column;
}

.book-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.book-details-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
}

/* Meta Grid Layout */
.book-meta-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Meta Info List */
.meta-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-icon {
    width: 24px;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
}

.meta-label {
    font-weight: 700;
    color: var(--text-main);
    min-width: 90px;
}

.meta-value {
    font-weight: 500;
    color: var(--text-muted);
}

.meta-value.green-text {
    color: var(--primary-color);
    font-weight: 600;
}

.meta-value.author-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

.lang-flag {
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Stats Box Replaced with Minimal Clean Design */
.stats-minimal {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-left: 20px;
    margin-top: 1rem;
}

.vote-group {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.vote-pill {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.vote-pill.upvote {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.vote-pill.downvote {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.vote-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
}

.stat-val {
    color: var(--text-main);
    font-weight: 700;
}

/* Popularity Bar */
.pop-container {
    margin-top: 10px;
}

.pop-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pop-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.pop-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.pop-val {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 800;
    text-align: right;
    margin-top: 4px;
}

/* Description & Actions */
.book-description {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.book-description-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-description-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.book-description-text {
    line-height: 1.8;
    color: var(--text-muted);
}

.main-download-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(46, 173, 99, 0.25);
}

.main-download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(46, 173, 99, 0.35);
}

@media (max-width: 900px) {
    .book-details-container {
        grid-template-columns: 1fr;
    }

    .book-meta-grid {
        grid-template-columns: 1fr;
    }

    .book-details-left {
        max-width: 300px;
        margin: 0 auto;
        position: static;
    }

    .stats-minimal {
        padding-left: 0;
    }
}