/* RESET */
.truyen-layout * {
    box-sizing: border-box;
}

/* LAYOUT */
.truyen-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 2 CỘT */
.truyen-main {
    width: 78%;
}

.truyen-sidebar {
    width: 22%;
}

/* HEADER */
.truyen-header {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

.truyen-thumb img {
    width: 160px;
    border-radius: 8px;
}

/* INFO */
.truyen-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
}

.truyen-meta-line{
    margin:8px 0;

    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.meta-item{
    color:#666;
}

/* BADGE */

.badge{
    display:inline-flex;
    white-space:nowrap;
    align-items:center;

    padding:5px 12px;

    border-radius:999px;

    font-size:12px;
    font-weight:700;

    margin-right:6px;

    line-height:1.2;
}

/* tình trạng */
.status{
    background:#2563eb;
    color:#fff;
}

/* thể loại */
.genre{
    background:#374151;
    color:#fff;
}

/* BUTTON */
.actions {
    margin-top: 10px;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn.read { background: #6c5ce7; color: #fff; }
.btn.follow { background: #eee; }

/* TAB */
.truyen-tabs {
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.tab-nav li {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-nav li.active {
    border-bottom: 3px solid #6c5ce7;
    color: #6c5ce7;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

/* CHAPTER */
.chapter-list {
    margin: 0;
    padding: 0;
}

.chapter-list li {
    list-style: none;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* SIDEBAR */
.truyen-sidebar .box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

/* PC LỚN */
@media (min-width: 1300px) {
    .truyen-layout {
        gap: 30px;
    }

    .truyen-title {
        font-size: 26px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .truyen-layout {
        flex-direction: column;
    }

    .truyen-main,
    .truyen-sidebar {
        width: 100%;
    }

    .truyen-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .truyen-thumb img {
        width: 120px;
    }
}


.chapter-pagination {
    margin-top: 15px;
    text-align: center;
}

.chapter-pagination a {
    display: inline-block;
    padding: 6px 10px;
    margin: 3px;
    border-radius: 6px;
    background: #f1f1f1;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.chapter-pagination a.active {
    background: #6c5ce7;
    color: #fff;
    font-weight: bold;
}


/* =========================
TÁC GIẢ
========================= */

.author-link{
    color:#111;
    text-decoration:none;
    font-weight:700;

    padding:6px 14px;

    border-radius:999px;

    background:#f3f3f3;

    transition:.25s;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.author-link:hover{
    background:#111;
    color:#fff;

    transform:translateY(-2px);
}

/* =========================
SIDEBAR BOX
========================= */

.truyen-sidebar .box{
    background:#fff;

    border-radius:24px;

    padding:22px;

    margin-bottom:22px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.06);
}

.truyen-sidebar .box h3{
    margin:0 0 18px;

    font-size:18px;
    font-weight:800;

    color:#111;
}

/* =========================
TRUYỆN CÙNG TÁC GIẢ
========================= */

.author-story-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.author-story-item{
    display:flex;
    gap:12px;

    text-decoration:none;

    padding:10px;

    border-radius:18px;

    transition:.25s;

    background:#fafafa;
}

.author-story-item:hover{
    background:#f0f0f0;

    transform:translateY(-2px);
}

.author-story-thumb{
    width:60px;
    min-width:60px;
}

.author-story-thumb img{
    width:100%;
    height:84px;

    object-fit:cover;

    border-radius:12px;

    display:block;
}

.author-story-info{
    flex:1;

    display:flex;
    align-items:center;
}

.author-story-title{
    font-size:14px;
    line-height:1.5;

    color:#111;

    font-weight:700;

    display:-webkit-box;

    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

    .truyen-sidebar .box{
        border-radius:20px;
        padding:18px;
    }

    .author-story-thumb{
        width:54px;
        min-width:54px;
    }

    .author-story-thumb img{
        height:78px;
    }

    .author-story-title{
        font-size:13px;
    }

}






/* ======================================
TANG DONATE
====================================== */

/* =========================
OVERLAY
========================= */
.yy-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* =========================
BOX
========================= */
.yy-modal-box {
    width: 360px;
    background: linear-gradient(145deg, #141824, #0f121b);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    color: #fff;
    position: relative;
    animation: modalPop .25s ease;
}

/* TITLE */
.yy-modal-box h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* =========================
INPUT
========================= */
#yy-donate-amount {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b0e15;
    color: #fff;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: 0.2s;
    font-weight: 600;
}

#yy-donate-amount:focus {
    border-color: #7c5cff;
    box-shadow: 0 0 0 3px rgba(124,92,255,0.2);
}

/* RANGE NOTE */
.yy-range-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* =========================
QUICK AMOUNT
========================= */
.yy-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.yy-quick button {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #101522;
    color: #ddd;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.yy-quick button:hover {
    border-color: #7c5cff;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
ACTIONS
========================= */
.yy-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* CONFIRM */
#yy-donate-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #00d4ff);
    box-shadow: 0 10px 25px rgba(124,92,255,0.25);
    transition: 0.2s;
}

#yy-donate-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(124,92,255,0.35);
}

/* CLOSE */
#yy-donate-close {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

#yy-donate-close:hover {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* =========================
ANIMATION
========================= */
@keyframes modalPop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================
TANG QUA TRUYEN RIENG
========================= */
.yy-donate-list {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.yy-donate-list h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.yy-donate-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yy-donate-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 8px;
    transition: 0.2s;
}

.yy-donate-list li:hover {
    background: #f9fafb;
}

.yy-donate-list img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.yy-donate-list strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
}

.yy-donate-list .amount {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 999px;
}
.yy-donate-list {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;

    /* VIỀN ĐEN */
    border: 1px solid #000;

    /* giữ nhẹ shadow để không bị cứng */
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn.donate-btn {
    border: 1px solid #000;
    margin: 6px;
}

.truyen-donate-section{
    margin-bottom:20px; /* 👈 tạo khoảng cách xuống block dưới */
}