.chapter-reader-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.chapter-controls {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(138, 180, 248, 0.2);
    flex-shrink: 0;
}

.chapter-select {
    background: rgba(2, 6, 18, 0.9);
    color: #e2f0ff;
    border: 1px solid rgba(0, 168, 204, 0.5);
    padding: 10px 20px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    width: 100%;
    max-width: 350px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.chapter-select:focus, .chapter-select:hover {
    border-color: #8ab4f8;
    box-shadow: 0 0 15px rgba(0, 168, 204, 0.4);
}

.chapter-select option {
    background: #051b24;
    color: #c4d7ed;
}

.scrollable-text-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
    scroll-behavior: smooth;
}

.scrollable-text-area::-webkit-scrollbar {
    width: 6px;
}
.scrollable-text-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}
.scrollable-text-area::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 204, 0.4);
    border-radius: 4px;
}
.scrollable-text-area::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 204, 0.8);
}

.chapter-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.chapter-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chapter-header-image {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.chapter-banner {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}

.chapter-body {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.9;
}

.chapter-body p.description {
    margin-bottom: 1.2em;
    text-indent: 1.5em;
}

.chapter-body p.description:first-of-type {
    text-indent: 0;
}

.scene-break {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    width: 100%;
}

.scene-break-img {
    max-width: 220px;
    width: 40%;
    height: auto;
    opacity: 0.85;
}

.chapter-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 10px;
    gap: 10px;
}

.chapter-nav-btn {
    max-width: 140px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.chapter-nav-placeholder {
    display: inline-block;
    width: 140px;
}

.back-to-top-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.info-section {
    margin-top: 35px;
    padding: 20px 24px;
    background: rgba(0, 20, 35, 0.6);
    border: 1px solid rgba(0, 168, 204, 0.2);
    border-left: 3px solid rgba(0, 168, 204, 0.6);
    border-radius: 6px;
}

.info-heading {
    font-family: 'Metamorphous', serif;
    color: #8ab4f8;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(138, 180, 248, 0.15);
}

.info-body {
    color: #c4d7ed;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 16px 0;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-line {
    color: #a8c4e0;
    font-family: 'Georgia', serif;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.meta-label {
    color: #00a8cc;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.trident-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trident-list li {
    color: #c4d7ed;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 28px;
    position: relative;
}

.trident-list li::before {
    content: '🔱';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.85rem;
}

.kofi-section {
    margin-top: 45px;
    padding: 24px;
    background: rgba(0, 20, 35, 0.6);
    border: 1px solid rgba(0, 168, 204, 0.2);
    border-left: 3px solid rgba(0, 168, 204, 0.6);
    border-radius: 6px;
    text-align: center;
}

.kofi-message {
    color: #c4d7ed;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 18px;
}

.kofi-btn-wrap {
    display: flex;
    justify-content: center;
}