#novel-view
{
    height: 100vh; 
    overflow-y: auto;
    position: relative; 
    box-sizing: border-box; 
    padding-bottom: 100px;
}

.novel-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.novel-card
{
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.novel-card:hover
{
    transform: translateY(-5px);
    border-color: #3eabe9;
}
.novel-card img
{
    width: 100%;
    height: 300px;
    object-fit: contain;
}
.novel-card h3
{
    margin: 15px 0;
    font-size: 1.1rem;
    color: rgb(68, 68, 68);
    padding: 0 10px;
}

#novel-modal
{
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; visibility: hidden;
}
#novel-modal.open
{
    opacity: 1;
    visibility: visible;
}

.modal-box
{
    background: #fff;
    color: #333;
    width: 90%; max-width: 1000px; height: 80vh;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.close-modal
{
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px; font-weight: bold;
    cursor: pointer; color: #333; z-index: 10;
}

.modal-left
{
    width: 35%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-left img
{
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-right
{
    width: 65%;
    padding: 40px 30px;
    overflow-y: auto;
}

.volume-item
{
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.vol-img
{
    width: 100px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.vol-info h4
{
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #333;
}
.vol-desc
{
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.action-btn
{
    display: inline-block;
    padding: 8px 15px;
    background: #3eabe9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 10px;
}
.dl-btn
{
    background: #333;
}

.video-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item
{
    position: relative;;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-item iframe
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}