.comic-wrap {
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 1100px) {
    .comic-wrap {
        margin: 0.5rem 0 0 0;
    }
}

.comic-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.6rem 0.75rem;
    background: #fff;
    border: 3px solid #222;
    border-radius: 8px;
    box-shadow: 4px 4px 0 #222;
}
html.dark-mode .comic-nav {
    background: #2a2a2a;
    border-color: #555;
    box-shadow: 4px 4px 0 #111;
}

.comic-nav-btn {
    font-family: 'Original Surfer', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1.1rem;
    background: #bada55;
    color: #222;
    border: 2px solid #222;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 3px 3px 0 #222;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}
.comic-nav-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #222;
}
.comic-nav-btn--disabled {
    background: #ddd;
    color: #999;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}
html.dark-mode .comic-nav-btn {
    background: #4c8cbf !important;
    color: #fff;
    border-color: #333;
    box-shadow: 3px 3px 0 #111;
}
html.dark-mode .comic-nav-btn--disabled {
    background: #444 !important;
    color: #666;
    box-shadow: none;
}

.comic-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    text-align: center;
}
.comic-num-title {
    font-family: 'Original Surfer', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.comic-jump {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border: 2px solid #222;
    border-radius: 5px;
    background: #f9f9f9;
    color: #222;
    cursor: pointer;
    max-width: 260px;
    width: 100%;
}
html.dark-mode .comic-jump {
    background: #333;
    color: #d3d3d3;
    border-color: #555;
}

.comic-stage {
    border: 3px solid #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 0 #222;
    background: #fff;
    line-height: 0;
}
html.dark-mode .comic-stage {
    border-color: #555;
    box-shadow: 5px 5px 0 #111;
    background: #1a1a1a;
}
.comic-img {
    width: 100%;
    height: auto;
    display: block;
}

.comic-meta {
    margin-top: 0.6rem;
    text-align: right;
    font-size: 0.8rem;
    color: #888;
}

.comic-empty,
.comic-not-found {
    text-align: center;
    padding: 3rem 1rem;
    font-family: 'Original Surfer', sans-serif;
}

@media (max-width: 600px) {
    .comic-nav-btn { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
    .comic-num-title { font-size: 0.85rem; }
}