* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #1a202c;
    line-height: 1.5;
}

.site-header {
    background: #1a202c;
    padding: 14px 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #2b6cb0;
}

.site-header-inner {
    max-width: 1500px;
    margin: 0 auto;
    color: #e2e8f0;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
}

.site-header-inner span {
    color: #e2e8f0;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 400px 1fr 350px;
    gap: 30px;
    align-items: start;
}

.book-cover {
    text-align: center;
}

.book-cover .main-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin-bottom: 10px;
}

.thumbnail-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.thumbnail-row a {
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-row a:hover,
.thumbnail-row a.active {
    border-color: #2b6cb0;
}

.thumbnail-row img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    display: block;
}

.follow-author-sidebar {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: left;
}

.follow-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.author-row-sidebar {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.small-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-link {
    color: #1a202c;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.author-name-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.author-info-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-page-button {
    display: block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #1a202c;
    font-size: 13px;
    max-width: 120px;
}

.author-page-button:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.book-details {
    padding-right: 20px;
}

.book-title {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.kindle-edition {
    color: #718096;
    font-size: 14px;
}

.author {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 14px;
}

.author:hover {
    color: #2c5282;
    text-decoration: underline;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 14px;
}

.stars {
    color: #d69e2e;
    letter-spacing: 2px;
}

.rating-number {
    color: #2b6cb0;
}

.review-count {
    color: #2b6cb0;
    text-decoration: none;
}

.review-count:hover {
    color: #2c5282;
    text-decoration: underline;
}

.series-info {
    color: #2b6cb0;
    font-size: 14px;
    margin-bottom: 10px;
}

.series-link {
    color: #2b6cb0;
    text-decoration: none;
}

.series-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.genre-breadcrumb {
    font-size: 12px;
    color: #718096;
    margin: 6px 0;
}

.see-all-formats {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 13px;
    float: right;
}

.see-all-formats:hover {
    color: #2c5282;
    text-decoration: underline;
}

.description {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
}

.description p {
    margin: 12px 0;
}

.description em {
    font-style: italic;
}

.divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

.purchase-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.format-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.format-link-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #1a202c;
    transition: background 0.2s, border-color 0.2s;
    gap: 4px;
}

.format-link-button:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.format-name {
    font-weight: 400;
    font-size: 14px;
}

.format-price {
    color: #1a202c;
    font-weight: 700;
    font-size: 14px;
}

.buy-button {
    width: 100%;
    padding: 12px;
    background: #2b6cb0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    font-weight: 400;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background 0.2s;
}

.buy-button:hover {
    background: #2c5282;
}

.buy-button-disabled {
    background: #e2e8f0;
    color: #718096;
    cursor: default;
}

.buy-button-disabled:hover {
    background: #e2e8f0;
}

.store-notice {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    color: #718096;
}

.other-stores-link {
    color: #2b6cb0;
    text-decoration: none;
}

.other-stores-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.publisher-section {
    margin-top: 30px;
}

.section-title {
    font-size: 21px;
    font-weight: 700;
    margin: 20px 0 15px 0;
}

.subsection-title {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 15px 0;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.character {
    text-align: center;
}

.character-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.character-name {
    font-size: 17px;
    font-weight: 400;
    margin: 10px 0 5px 0;
}

.character-quote {
    font-size: 13px;
    font-style: italic;
    margin: 5px 0;
    line-height: 1.4;
}

.character-description {
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
}

.map-section {
    margin: 30px 0;
}

.map-image {
    width: 100%;
    max-width: 970px;
    height: auto;
    margin: 15px 0;
}

.map-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.book-series {
    margin: 30px 0;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.book-item {
    text-align: center;
}

.book-cover-small {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 8px;
}

.book-grid-sidebar .book-cover-small {
    max-width: 80px;
}

.book-item .book-title-small {
    font-size: 12px;
    line-height: 1.3;
    margin: 5px 0;
    display: block;
    color: #2b6cb0 !important;
    text-decoration: none !important;
}

.book-item .book-title-small:hover {
    color: #2c5282 !important;
    text-decoration: underline !important;
}

.catalog-sidebar {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 15px;
}

.catalog-group-title {
    font-size: 14px;
    font-weight: 700;
    margin: 15px 0 10px 0;
}

.catalog-group-title:first-of-type {
    margin-top: 5px;
}

.book-series-sidebar {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.book-grid-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.buying-options-button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #1a202c;
    font-size: 12px;
}

.buying-options-button:hover {
    background: #f7fafc;
}

.mobile-buy-scroll {
    display: none;
}

@media (max-width: 1200px) {
    .mobile-buy-scroll {
        display: block;
        text-align: center;
        padding: 12px;
        background: #2b6cb0;
        color: #fff;
        border-radius: 6px;
        text-decoration: none;
        font-size: 16px;
        margin: 16px 0;
    }

    .mobile-buy-scroll:hover {
        background: #2c5282;
    }
    .container {
        grid-template-columns: 1fr;
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
