.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-content, .read-content {
    margin: 0;
    background: #fff;
    padding: 25px 35px;
    border-radius: 12px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.modal.show .modal-content,
.modal.show .read-content {
    transform: translateY(0);
}
.read-content {
    width: 90%;
    max-width: 600px;
    height: 90%;
}
.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #333;
}
#episodeList {
    max-height: 200px;
    overflow-y: auto;
    padding-left: 20px;
}
#episodeList::-webkit-scrollbar {
    width: 6px;
}
#episodeList::-webkit-scrollbar-thumb {
    background: #424d47;
    border-radius: 4px;
}
#episodeList li {
    margin: 8px 0;
}
#episodeList li a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: 0.2s;
    background: #f5f5f5;
}
#episodeList li a:hover {
    background: #00d564;
    color: #fff;
}
.comic-detail-card {
    background: #fdfdfd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.comic-detail {
    display: flex;
    gap: 15px;
}
.comic-detail img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
}
.comic-text h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #00d564;
}
.comic-text p {
    margin: 5px 0;
    font-size: 14px;
    color: #444;
}
.comic-pages img {
    width: 100%;
    max-width: 600px;
    height: auto;
}
#comicSynopsis {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.6;
    text-align: justify;
    margin-top: 5px;
}