*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.card {
    max-width: 48rem;
    width: 100%;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
    padding: 3rem 2rem 0;
}

.hero-image img {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.content {
    text-align: center;
    padding: 2rem 2.5rem 3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 2rem;
}

.divider {
    width: 3rem;
    height: 2px;
    background: #d1d5db;
    margin: 0 auto 2rem;
}

.bio {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.book-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.book-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.book-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.book-type {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.book-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: #1e3a5f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.book-link:hover {
    background: #2d5a8e;
}

h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
}

.adaptations-intro {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.books-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 7rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.book-card:hover {
    transform: translateY(-3px);
}

.book-card-image {
    position: relative;
}

.book-card-image img {
    width: 6rem;
    max-width: 6rem;
    height: auto;
    border-radius: 0.2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.book-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 24rem;
    padding: 0.75rem 1rem;
    background: #1e3a5f;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
    z-index: 10;
    pointer-events: none;
}

.book-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e3a5f;
}

.book-card-image:hover .book-tooltip {
    display: block;
}

.book-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.3;
    text-align: center;
}

.book-card-author {
    font-size: 0.625rem;
    color: #6b7280;
    text-align: center;
}

.download-counter {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 1.25rem;
}

.footer-text {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

@media (max-width: 767px) {
    .page-wrapper {
        padding: 0;
        align-items: flex-start;
    }

    .card {
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: 100vh;
    }

    .hero-image {
        padding: 2rem 1.5rem 0;
    }

    .hero-image img {
        width: 9rem;
        height: 9rem;
    }

    .content {
        padding: 1.5rem 1.25rem 2rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .bio {
        font-size: 0.9375rem;
    }

    .book-section {
        padding: 1.25rem 1rem;
    }

    .book-title {
        font-size: 1.1875rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .books-gallery {
        gap: 0.75rem;
    }

    .book-card {
        width: 5.5rem;
        flex-shrink: 0;
    }

    .book-card-image img {
        width: 5rem;
        max-width: 5rem;
    }

    .book-tooltip {
        width: 12rem;
        font-size: 0.6875rem;
    }

    .book-card-title {
        font-size: 0.625rem;
    }

    .book-card-author {
        font-size: 0.5625rem;
    }
}

@media (max-width: 374px) {
    h1 {
        font-size: 1.5rem;
    }

    .bio {
        font-size: 0.875rem;
    }
}
