/* Čtení, objednávka a platební flow uvnitř domény dílu. */

/* demo.html */
.reader {
    max-width: 820px;
    margin: 0 auto;
}

.reader-head {
    margin-bottom: 30px;
}

.reader-head h1 {
    margin-bottom: 6px;
}

.chapter {
    margin-top: 54px;
}

.chapter h2 {
    margin-bottom: 22px;
}

.chapter-text {
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.8;
}

.chapter-text h2 {
    font-family: Arial, sans-serif;
    font-size: 22px;
    margin-top: 34px;
    margin-bottom: 12px;
}

.chapter-text p {
    margin: 0 0 1.2em;
}

.reader-separator {
    margin: 54px 0;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.16);
}

/* order.html */
.payment {
    text-align: center;
}

.payment h1 {
    margin-top: 0;
}

.payment-qr {
    max-width: 320px;
    width: 100%;
    margin: 24px auto;
    display: block;
}

.payment-details {
    max-width: 520px;
    margin: 30px auto;
    text-align: left;
}

.payment-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid #ddd;
}

.payment-row strong {
    word-break: break-word;
}

.payment-note {
    margin-top: 28px;
    font-size: .95rem;
    opacity: .75;
}

@media (max-width: 600px) {
    .payment-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* reading_settings.html */
.reading-settings {
        max-width: 1000px;
    }

    .reading-intro {
        max-width: 680px;
        margin: 0 0 28px;
        font-size: 18px;
        line-height: 1.55;
        color: #444;
    }

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

    .reading-section h2 {
        margin-bottom: 16px;
    }

    .reading-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .reading-option {
        display: block;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 18px;
        background: rgba(255,255,255,.75);
        cursor: pointer;
    }

    .reading-option:hover {
        border-color: #aaa;
    }

    .reading-option-disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .reading-option-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }

    .reading-option-head input[type="radio"] {
        width: 20px;
        height: 20px;
        margin: 0;
        flex: 0 0 auto;
    }

    .reading-option-title {
        font-size: 19px;
        font-weight: 700;
    }

    .reading-option-description {
        margin: 0;
        color: #555;
        line-height: 1.45;
    }

    .reading-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 16px;
    }

    .reading-field-group {
        margin-top: 4px;
    }

    .reading-field-label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
    }

    .reading-select {
        box-sizing: border-box;
        width: 100%;
        padding: 11px 13px;
        border: 1px solid #bbb;
        border-radius: 10px;
        background: #fff;
        font: inherit;
    }

    .reading-actions {
        margin-top: 28px;
    }

    .reading-note {
        margin-top: 8px;
        font-size: 14px;
        color: #666;
    }

    @media (max-width: 760px) {
        .reading-options,
        .reading-fields {
            grid-template-columns: 1fr;
        }
    }


.start-page .error { margin-top: 20px; color: #a00; }
.start-page button { margin-top: 24px; }



.reader-stream {
    max-width: 1180px;
    margin: 0 auto;
}

.reader-stream-head {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
    padding: 34px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.reader-stream-eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .55;
}

.reader-stream-head h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}

.reader-stream-author {
    margin-top: 10px;
    font-size: 17px;
    opacity: .7;
}

.reader-stream-settings {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reader-stream-settings-current {
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .045);
    font-size: 15px;
    white-space: nowrap;
}


.reader-stream-parts {
    display: grid;
    gap: 26px;
    margin-top: 26px;
}

.reader-part {
    padding: 30px 34px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .06);
}

.reader-part-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.reader-part-number {
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .5;
}

.reader-part h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.15;
}

.reader-part-mode {
    margin-top: 9px;
    font-size: 15px;
    opacity: .62;
}

.reader-part-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reader-part-actions form,
.reader-chapter-action form {
    margin: 0;
}


.reader-chapters {
    border-top: 1px solid rgba(0, 0, 0, .09);
}

.reader-chapter-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 72px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.reader-chapter-number {
    font-size: 15px;
    font-weight: 700;
    opacity: .38;
    font-variant-numeric: tabular-nums;
}

.reader-chapter-title {
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
}

.reader-chapter-status {
    margin-top: 4px;
    font-size: 14px;
    opacity: .55;
}

.reader-chapter-available .reader-chapter-status {
    opacity: .7;
}

.reader-chapter-next {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .035);
}

.reader-chapter-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.reader-chapter-download {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.reader-chapter-download:hover {
    text-decoration: underline;
}


/*
 * Cena uvnitř readerových CTA.
 * Tlačítko zůstává kompaktní:
 *
 * Získat hned | 9,50 Kč
 */
.reader-stream .kp-btn-price {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid currentColor;
    line-height: 1;
}

.reader-stream .kp-btn-price .price {
    margin: 0;
}


@media (max-width: 820px) {
    .reader-stream-head,
    .reader-part-head {
        flex-direction: column;
        align-items: stretch;
    }

    .reader-stream-settings,
    .reader-part-actions {
        justify-content: flex-start;
    }

    .reader-chapter-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .reader-chapter-action {
        grid-column: 2;
        justify-content: flex-start;
        padding-bottom: 4px;
    }
}


@media (max-width: 560px) {
    .reader-stream-head,
    .reader-part {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .reader-stream-settings {
        align-items: stretch;
    }

    .reader-stream-settings-current {
        white-space: normal;
    }

    .reader-chapter-row {
        gap: 10px;
    }

    .reader-part h2 {
        font-size: 24px;
    }
}


.reader-stream-head {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;

    padding: 34px 36px;
    border-radius: 24px;

    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.reader-stream-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;

    border-radius: 18px;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, .16);
}

.reader-stream-head-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reader-stream-eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .55;
}

.reader-stream-head h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.02;
}

.reader-stream-author {
    margin-top: 9px;
    font-size: 18px;
    opacity: .68;
}

.reader-stream-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.reader-stream-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;

    padding: 10px 14px;
    border-radius: 14px;

    background: rgba(0, 0, 0, .045);
}

.reader-stream-stat strong {
    font-size: 19px;
}

.reader-stream-stat span {
    font-size: 14px;
    opacity: .7;
}

.reader-stream-schedule {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: auto;
    padding-top: 26px;
}

.reader-stream-status {
    font-weight: 700;
}

.reader-stream-next {
    font-size: 15px;
}

@media (max-width: 820px) {
    .reader-stream-head {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .reader-stream-head {
        grid-template-columns: 1fr;
    }

    .reader-stream-cover {
        max-width: 220px;
    }
}

.reader-part-full-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.reader-part-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.reader-part-cover-large {
    width: 190px;
}

.reader-part-full-content {
    min-width: 0;
}

.reader-part-full-content .reader-part-actions {
    justify-content: flex-start;
    margin-top: 24px;
}

.reader-part-tagline {
    margin-top: 10px;
    max-width: 680px;
    font-size: 16px;
    line-height: 1.45;
    opacity: .72;
}

.reader-part-head-progressive {
    align-items: center;
}

.reader-part-progressive-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.reader-part-cover-small {
    flex: 0 0 72px;
    width: 72px;
}

.reader-part-cover-small img {
    border-radius: 10px;
}

@media (max-width: 700px) {
    .reader-part-full-grid {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
    }

    .reader-part-cover-large {
        width: 120px;
    }

    .reader-part-progressive-main {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .reader-part-full-grid {
        grid-template-columns: 1fr;
    }

    .reader-part-cover-large {
        width: 150px;
    }
}


.reader-chapter-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 52px;
    padding: 8px 12px;

    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;

    background: rgba(255,255,255,.8);

    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.reader-chapter-download:hover {
    background: rgba(0,0,0,.045);
    text-decoration: none;
}

.reader-stream-book-offer {
    margin-top: 18px;
}

.reader-stream-book-offer .kp-btn {
    display: inline-flex;
}

.reader-stream-book-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}