/* section wrapper */
.single-book {
    padding: 60px 60px;
    max-width: 1100px;
    margin: 25px auto;
    display: grid;
    background-color: rgba(0,0,0,0.5);
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0px 0px 10px rgba(255, 0, 204, 0.4);
}


/* book thumbnail */
.book-thumb img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* rating */
.rating {
    margin-top: 14px;
    text-align: center;
}

.rating .stars {
    font-size: 18px;
    color: #f4c150; /* gold */
    letter-spacing: 2px;
    display: block;
}

.rating .score {
    font-size: 13px;
    color: #fff;
    margin-top: 4px;
    display: block;
}   


/* details */
.book-details p {
    font-size: 14px;
    color:  #ff14b8cb;
    margin-bottom: 4px;
}

/* title */
.book-details .title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    padding-bottom: 10px;
}

/* author */
.book-details .author h3 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    padding-bottom: 10px;
}

/* genre */
.book-details .genre h4 {
    font-size: 15px;
    font-weight: 500;
    color: #6a5acd;
    padding-bottom: 10px;
}

/* synopsis */
.synopsis .desc {
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
    margin-top: 6px;
    padding-bottom: 10px;
}

/* tags */
.tags ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tags ul li {
    font-size: 13px;
    padding: 6px 14px;
    background: #eef0ff;
    color: #4b4bd6;
    border-radius: 20px;
    text-transform: capitalize;
    cursor: default;
}

/* addons */
.addons {
    margin-top: 25px;
}

.addon {
    list-style: none;
    display: flex;
    gap: 14px;
    align-items: center;
}

/* subscribe button */
.addon .sub {
    border: none;
    background: linear-gradient(135deg,  #ff14b8cb, #4b4bd6);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.addon .sub a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.addon .sub:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 10px #ff14b8cb;
}

/* wishlist */
.addon .wishlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #dcdcff;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.addon .wishlist i {
    font-size: 16px;
}

/* hover effect */
.addon .wishlist:hover {
    background: #eef0ff;
    color:  #ff14b8cb;
}

/* active / added to wishlist (optional) */
.addon .wishlist.active {
    background: #ffebee;
    border-color: #ff6b6b;
    color: #ff4d4d;
}

.addon .wishlist.active i {
    color: #ff4d4d;
}

/* episodes section */

.book-episodes{
    padding: 60px 60px;
    max-width: 1100px;
    margin: 25px auto;
    background-color: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0px 0px 10px rgba(255, 0, 204, 0.4);
}

.book-episodes h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}


/* limit height to 5 episodes */
.episode-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;

    max-height: calc(5 * 74px); /* approx height of 5 episodes */
    overflow-y: auto;
    padding-right: 8px;
    scroll-behavior: smooth;
}

/* scrollbar styling */
.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episode-list::-webkit-scrollbar-thumb {
    background: #c7c9ff;
    border-radius: 10px;
}

.episode-list::-webkit-scrollbar-track {
    background: transparent;
}

/* episode card */
.episode-list li a {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f7f8ff;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #ececff;
}

/* hover */
.episode-list li a:hover {
    background: #eef0ff;
    transform: translateY(-2px);
}

/* episode number */
.ep-no {
    font-size: 13px;
    color: #6a5acd;
    font-weight: 500;
}

/* episode title */
.ep-title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

/* responsive */
@media (max-width: 900px) {
    .single-book {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .book-thumb {
        max-width: 260px;
        margin: auto;
    }

    .book-details{
        justify-content: center;
    }

    .book-details .title h2 {
        font-size: 24px;
    }
    .addon {
        flex-direction: column;
        align-items: stretch;
    }

    .addon li {
        width: 100%;
    }

    .addon .sub,
    .addon .wishlist {
        width: 100%;
        justify-content: center;
    }

    .episode-list {
        grid-template-columns: 1fr;
    }
}