.reader-page {
    max-width: 1060px;
    margin: 0 auto;
}

.reader-header {
    padding: 34px 0 28px;
}

.mode-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.mode-nav a {
    text-decoration: none;
    padding: 8px 13px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 999px;
    font-size: 14px;
    opacity: 0.72;
}

.mode-nav a.active {
    opacity: 1;
    font-weight: 700;
}

.reader-eyebrow,
.reader-step {
    margin-top: 22px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 800;
    opacity: 0.62;
}

.reader-header h1 {
    max-width: 760px;
    margin-top: 9px;
    margin-bottom: 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.reader-intro {
    max-width: 690px;
    font-size: 18px;
    line-height: 1.55;
    opacity: 0.8;
}

.reader-network-note {
    margin-top: 18px;
    font-size: 13px;
    opacity: 0.56;
}

.reader-main {
    padding-bottom: 80px;
}

.reader-picker,
.reader-results-section {
    border: 1px solid rgba(127, 127, 127, 0.22);
    border-radius: 22px;
    padding: 28px;
    margin-top: 20px;
}

.picker-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.picker-heading h2,
.reader-results-section h2 {
    margin: 7px 0 0;
    font-size: 28px;
}

.selection-count {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    font-size: 13px;
    font-weight: 700;
}

.picker-copy,
.results-copy {
    max-width: 690px;
    opacity: 0.69;
    line-height: 1.55;
}

.reader-search-wrap {
    position: relative;
    margin-top: 24px;
}

.reader-search {
    width: 100%;
    box-sizing: border-box;
    padding: 17px 18px;
    border-radius: 14px;
    border: 1px solid rgba(127, 127, 127, 0.32);
    background: inherit;
    color: inherit;
    font: inherit;
    font-size: 16px;
}

.reader-search:focus {
    outline: none;
    border-color: currentColor;
}

.reader-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.reader-search-results {
    background: #11151c;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.reader-search-option,
.reader-search-empty {
    width: 100%;
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: #11151c;
    color: #f5f7fa;
    font: inherit;
}

.reader-search-option {
    cursor: pointer;
}

.reader-search-option:hover {
    background: #1a202b;
}

.search-story-title {
    color: #f5f7fa;
    font-weight: 650;
}

.search-story-add {
    flex-shrink: 0;
    color: #b7c7e6;
    opacity: 0.9;
    font-size: 13px;
}

.selected-stories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.selected-story {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(127, 127, 127, 0.24);
    border-radius: 999px;
    padding: 8px 9px 8px 13px;
    font-size: 14px;
}

.remove-story {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
}

.reader-message {
    min-height: 24px;
    margin-top: 13px;
    font-size: 14px;
}

.reader-cta {
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

.reader-cta:disabled {
    cursor: default;
    opacity: 0.45;
}

.reader-results-section {
    margin-top: 28px;
}

.reader-results {
    margin-top: 24px;
}

.reader-result {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 17px;
    align-items: start;
    padding: 22px 0;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.reader-result:first-child {
    border-top: 0;
}

.result-rank {
    font-size: 25px;
    font-weight: 800;
    opacity: 0.28;
}

.result-body h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.result-body h3 a {
    color: inherit;
    text-decoration: none;
}

.result-body h3 a:hover {
    text-decoration: underline;
}

.result-breadth {
    font-size: 14px;
    opacity: 0.74;
}

.result-connections {
    margin-top: 14px;
}

.connection-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    opacity: 0.53;
}

.connection-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.connection-pill {
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(127, 127, 127, 0.11);
    font-size: 12px;
}

.rr-link {
    white-space: nowrap;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.62;
}

.no-reader-results {
    padding: 26px 0;
}

.reader-footer {
    padding: 0 0 42px;
    font-size: 12px;
    opacity: 0.48;
    line-height: 1.55;
}

@media (max-width: 700px) {

    .reader-header {
        padding-top: 22px;
    }

    .reader-picker,
    .reader-results-section {
        padding: 20px;
        border-radius: 17px;
    }

    .reader-result {
        grid-template-columns: 30px 1fr;
    }

    .rr-link {
        grid-column: 2;
    }

    .picker-heading {
        gap: 12px;
    }
}

/* Reader Mode dark-theme control fixes */

.selected-story {
    background: rgba(255, 255, 255, 0.055);
    color: #f5f7fa;
}

.remove-story {
    background: rgba(255, 255, 255, 0.10);
    color: #f5f7fa;
}

.remove-story:hover {
    background: rgba(255, 255, 255, 0.18);
}

.reader-cta {
    background: #f5f7fa;
    color: #0b0e13;
}

.reader-cta:not(:disabled):hover {
    background: #ffffff;
}

.reader-search {
    color: #f5f7fa;
}

.reader-search::placeholder {
    color: rgba(245, 247, 250, 0.48);
}

/* Keep autocomplete compact */
.reader-search-results {
    max-height: 330px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Slightly nicer scrollbar */
.reader-search-results::-webkit-scrollbar {
    width: 8px;
}

.reader-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.reader-search-results::-webkit-scrollbar-track {
    background: transparent;
}

/* Strong selected state for Reader feedback */

.feedback-button.selected {
    background: #f5f7fa;
    color: #0b0e13;
    border-color: #f5f7fa;
    font-weight: 800;
}

.feedback-button.selected::before {
    content: "✓ ";
}



/* ========================================
   Shareable Reader Signal
   ======================================== */

.reader-share-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.reader-share-button,
.share-primary-cta {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #f5f7fa;
    color: #0b0e13;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.reader-share-button:hover,
.share-primary-cta:hover {
    background: #ffffff;
}

.reader-share-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.reader-share-status {
    max-width: 580px;
    font-size: 12px;
    opacity: 0.58;
    overflow-wrap: anywhere;
}

.share-primary-cta {
    margin-top: 18px;
}

.share-seed-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.share-seed {
    display: inline-block;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.045);
    color: inherit;
    text-decoration: none;
    font-size: 13px;
}

.share-seed:hover {
    background: rgba(255, 255, 255, 0.08);
}

.share-bottom-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    margin-top: 28px;
    padding: 28px;

    border: 1px solid rgba(127, 127, 127, 0.22);
    border-radius: 22px;
}

.share-bottom-cta h2 {
    margin: 7px 0 8px;
}

.share-bottom-cta p {
    margin: 0;
    opacity: 0.68;
}

@media (max-width: 700px) {

    .share-bottom-cta {
        display: block;
        padding: 20px;
    }

}


/* ========================================
   Scrykeeper Brand V1
   ======================================== */

.scrykeeper-tagline {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.02em;
    opacity: 0.62;
}

.scrykeeper-wordmark {
    font-weight: 850;
    letter-spacing: -0.025em;
}

