/* Comic-Platform Style — Clean White & Bold Black */

:root {
    --ink: #111111;
    --ink-soft: #444444;
    --ink-muted: #888888;
    --ink-faint: #cccccc;
    --canvas: #ffffff;
    --canvas-off: #f7f7f7;
    --canvas-section: #fafafa;
    --border-line: #e8e8e8;
    --radius-pill: 999px;
    --radius-card: 10px;
    --radius-btn: 8px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
    --anim: all 0.22s ease;
    --font-ui: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Helvetica Neue', sans-serif;
    --font-reading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-reading);
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────── */
/* NOT sticky/fixed — scrolls with page */
.header {
    background: var(--canvas);
    border-bottom: 2px solid var(--ink);
    padding: 10px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo {
    text-decoration: none;
    display: inline-block;
    transition: var(--anim);
}

.logo:hover { opacity: 0.75; }

.site-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--ink);
    font-family: var(--font-ui);
    letter-spacing: -0.5px;
    line-height: 1;
}

.domain-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    background: var(--canvas);
}

.domain-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.domain-url {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Courier New', monospace;
}

/* ── LAYOUT ─────────────────────────────── */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
}

.content { padding: 12px 0; }

/* ── NAV GRID ────────────────────────────── */
.nav-container {
    background: var(--canvas);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-line);
}
.nav-row:last-child { border-bottom: none; }

.nav-row .nav-label {
    width: 10%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--canvas);
    background: var(--ink);
    padding: 10px 4px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.nav-row .nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
}

.nav-row .nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    background: var(--canvas-off);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-pill);
    padding: 4px 4px;
    text-align: center;
    white-space: nowrap;
    transition: var(--anim);
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
}

.nav-row .nav-links a.active {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
    font-weight: 800;
}

/* ── SEARCH ──────────────────────────────── */
.seach {
    background: var(--canvas);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.seach form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.seach input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 16px;
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--ink);
    background: var(--canvas-off);
    outline: none;
    transition: var(--anim);
    font-family: var(--font-reading);
}

.seach input[type="text"]:focus {
    border-color: var(--ink);
    background: var(--canvas);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.seach input[type="text"]::placeholder { color: var(--ink-muted); }

.seach button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--canvas);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--anim);
    font-family: var(--font-reading);
}

.seach button:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

/* ── TAG CLOUD ───────────────────────────── */
.grid-container {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 14px;
    background: var(--canvas);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-card);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.grid-item {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-line);
    background: var(--canvas-off);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--anim);
}

.grid-item:hover {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
}

/* ── SECTION HEADING ─────────────────────── */
.mhlleset { margin-bottom: 24px; }
.mhlleset-main { width: 100%; }

.mhlleset-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}

.mhlleset-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.3px;
    font-family: var(--font-ui);
    margin: 0;
}

.mhlleset-title a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--anim);
}

.mhlleset-title a:hover { color: var(--ink-soft); }

/* ── CARD GRID ───────────────────────────── */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li { animation: cardIn 0.5s ease backwards; }
.thumbnail2-group li:nth-child(1) { animation-delay: 0.03s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.07s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.11s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.15s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.19s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.23s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.27s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.31s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-card);
    aspect-ratio: 600 / 350;
    background: var(--canvas-off);
    border: 1.5px solid var(--border-line);
    position: relative;
    transition: var(--anim);
}

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.thumbnail2:hover { box-shadow: var(--shadow-hover); border-color: var(--ink-faint); }
.thumbnail2:hover img { transform: scale(1.05); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.thumbnail2:hover::after { opacity: 1; }

.video-info { padding: 8px 2px 0; }

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.video-info h5 a {
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--anim);
}

.video-info h5 a:hover { color: var(--ink-soft); }

/* ── VIDEO PLAYER ────────────────────────── */
.MacPlayer {
    background: #000;
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 14px;
}

/* ── TORRENT CAPTURE ─────────────────────── */
.torrent-capture-grid { }

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-btn);
    border: 1.5px solid var(--border-line);
}

.torrent-capture-grid .img_item { width: 100%; }

/* ── DOWNLOAD BUTTONS ────────────────────── */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 16px;
    margin: 14px 0;
    background: var(--canvas-section);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-card);
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--ink);
    color: var(--canvas);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--anim);
    font-family: var(--font-reading);
}

.down_btn:hover {
    background: var(--canvas);
    color: var(--ink);
    box-shadow: var(--shadow-md);
}

/* ── SHARE BOX ───────────────────────────── */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 14px 0;
    background: var(--canvas-section);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-card);
}

.share-url-display {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--canvas);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
}

.share-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--ink-soft);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--ink-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--canvas);
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--anim);
    font-family: var(--font-reading);
}

.share-copy-btn:hover { background: var(--canvas); color: var(--ink); }
.share-copy-btn:active { transform: scale(0.97); }

.share-icon { font-size: 15px; }

/* ── PAGINATION ──────────────────────────── */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.a_page_info, .page_info_focus {
    display: inline-block;
    padding: 7px 14px;
    min-width: 36px;
    text-align: center;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--anim);
}

.a_page_info {
    background: var(--canvas-off);
    color: var(--ink);
    border: 1.5px solid var(--border-line);
}

.a_page_info:hover {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
}

.page_info_focus {
    background: var(--ink);
    color: var(--canvas);
    border: 1.5px solid var(--ink);
    cursor: default;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
    border-top: 2px solid var(--ink);
    padding: 24px 0 16px;
    margin-top: 32px;
    text-align: center;
    background: var(--canvas);
}

.footer p { color: var(--ink-muted); font-size: 12px; margin: 6px 0; }
.footer a { color: var(--ink-muted); text-decoration: none; transition: var(--anim); }
.footer a:hover { color: var(--ink); }

.txtguanggao2 {
    padding: 12px 14px;
    background: var(--canvas-off);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-card);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 4px; }

.txtguanggao2 a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--anim);
    padding: 3px 8px;
}

.txtguanggao2 a:hover { color: var(--ink); }
.pd5 { padding: 4px 8px; }

/* ── VISIBILITY HELPERS ───────────────────── */
.hide_mobile { display: block; }
.hide_pc { display: block; }

/* ── MISC ─────────────────────────────────── */
img[data-original] { background: var(--canvas-off); }
.clearfix::after { content: ""; display: table; clear: both; }

/* ── RESPONSIVE 768px ────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .content { padding: 8px 0; }

    .site-name { font-size: 20px; }
    .domain-url { font-size: 12px; }

    /* Nav mobile: shrink label, bigger link font, 2×4 layout */
    .nav-row .nav-label {
        width: 13%;
        font-size: 12px;
        padding: 8px 2px;
    }
    .nav-row .nav-links {
        width: 87%;
        font-size: 14px;
        gap: 5px;
        padding: 7px 5px;
    }
    .nav-row .nav-links a {
        font-size: 14px;
        padding: 6px 2px;
        width: calc((100% - 15px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
        border-radius: var(--radius-btn);
    }

    /* 2 columns on mobile */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .seach { padding: 10px; }
    .seach button { padding: 9px 10px; font-size: 11px; }

    .mhlleset-title { font-size: 17px; }
    .mhlleset { margin-bottom: 18px; }

    .share-section { padding: 10px 12px; gap: 8px; }
    .share-copy-btn { padding: 9px 12px; font-size: 11px; }
    .share-url { font-size: 11px; }

    .down_btn { padding: 9px 14px; font-size: 12px; }
    .download { padding: 12px 8px; gap: 8px; }

    .page_info_div { padding: 14px 0; gap: 5px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }

    .footer { padding: 18px 0 12px; margin-top: 20px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .site-name { font-size: 17px; }

    .nav-row .nav-label { width: 14%; font-size: 11px; padding: 6px 2px; }
    .nav-row .nav-links { width: 86%; font-size: 13px; gap: 4px; padding: 6px 4px; }
    .nav-row .nav-links a { font-size: 13px; padding: 5px 1px; width: calc((100% - 12px) / 4); }

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .mhlleset-title { font-size: 15px; }
    .down_btn { padding: 8px 10px; font-size: 11px; }
    .download { gap: 6px; }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
}
