/* Video Site Template - Clean Corporate Style */

:root {
    --clr-accent: #e85d1a;
    --clr-accent-dark: #c94d0f;
    --clr-accent-light: #fff2eb;
    --clr-navy: #1a3a5c;
    --clr-navy-mid: #2d5986;
    --clr-sky: #4a90c4;
    --clr-gold: #f0a500;
    --clr-text: #1e2d3d;
    --clr-text-sub: #5a6a7a;
    --clr-text-muted: #8a9aaa;
    --clr-bg: #f0f4f8;
    --clr-surface: #ffffff;
    --clr-surface2: #f7fafc;
    --clr-line: #d8e4ef;
    --clr-line-strong: #b8cde0;
    --radius-lg: 10px;
    --radius-md: 7px;
    --radius-sm: 5px;
    --ease: all 0.25s ease;
    --shadow-xs: 0 1px 4px rgba(26,58,92,0.07);
    --shadow-sm: 0 2px 8px rgba(26,58,92,0.10);
    --shadow-md: 0 4px 16px rgba(26,58,92,0.13);
    --grad-accent: linear-gradient(135deg, #e85d1a 0%, #f0a500 100%);
    --grad-navy: linear-gradient(135deg, #1a3a5c 0%, #2d5986 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== SITE HEADER (non-sticky) ===== */
.site-topbar {
    background: var(--clr-navy);
    padding: 10px 0;
}

.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.brand-sep {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.domain-badge .badge-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-badge .badge-url {
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-gold);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.row-section {
    padding: 8px 0;
}

/* ===== NAVIGATION ===== */
.cate-panel {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 10px;
}

.cate-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-line);
}

.cate-row:last-child {
    border-bottom: none;
}

.cate-zone {
    width: 10%;
    min-width: 56px;
    background: var(--clr-surface2);
    border-right: 1px solid var(--clr-line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-navy);
    text-align: center;
    line-height: 1.3;
}

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

.cate-links a {
    display: inline-block;
    color: var(--clr-text-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-line);
    background: var(--clr-bg);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    transition: var(--ease);
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cate-links a:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-sm);
}

.cate-links a.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ===== BANNER ZONE ===== */
.promo-zone {
    margin-bottom: 10px;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    padding: 12px 14px;
    margin-bottom: 10px;
}

.search-bar form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 9px 13px;
    border: 1.5px solid var(--clr-line);
    border-radius: var(--radius-md);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.search-bar input[type="text"]:focus {
    border-color: var(--clr-sky);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74,144,196,0.12);
}

.search-bar input[type="text"]::placeholder {
    color: var(--clr-text-muted);
}

.search-bar button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    line-height: 1;
}

.search-bar button[onclick] {
    background: var(--grad-navy);
    color: #fff;
}

.search-bar button[name="type"][value="1"] {
    background: var(--grad-accent);
    color: #fff;
}

.search-bar button[name="type"][value="2"] {
    background: var(--clr-navy-mid);
    color: #fff;
}

.search-bar button:hover {
    opacity: 0.88;
    box-shadow: var(--shadow-sm);
}

/* ===== HOT TAG CLOUD ===== */
.tag-cloud-wrap {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    margin-bottom: 10px;
}

.tag-cloud-head {
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--clr-line);
}

.tag-cloud-head strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-navy);
}

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 14px;
}

.tag-cloud-list a {
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: var(--clr-text-sub);
    background: var(--clr-bg);
    border: 1px solid var(--clr-line);
    transition: var(--ease);
}

.tag-cloud-list a:hover {
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

/* ===== SECTION BLOCK ===== */
.media-block {
    margin-bottom: 14px;
}

.block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--clr-line);
    position: relative;
}

.block-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 52px;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
}

.block-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--clr-navy);
    margin: 0;
    letter-spacing: -0.2px;
}

.block-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.block-title a:hover {
    color: var(--clr-accent);
}

/* ===== VIDEO CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.card-grid li {
    animation: fadeUp 0.5s ease backwards;
}

.card-grid li:nth-child(1) { animation-delay: 0.04s; }
.card-grid li:nth-child(2) { animation-delay: 0.08s; }
.card-grid li:nth-child(3) { animation-delay: 0.12s; }
.card-grid li:nth-child(4) { animation-delay: 0.16s; }
.card-grid li:nth-child(5) { animation-delay: 0.20s; }
.card-grid li:nth-child(6) { animation-delay: 0.24s; }
.card-grid li:nth-child(7) { animation-delay: 0.28s; }
.card-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 600 / 350;
    background: var(--clr-bg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

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

.card-thumb:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--clr-sky);
}

.card-thumb:hover img {
    transform: scale(1.08);
}

.card-thumb::before {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255,255,255,0.9);
    background: rgba(26,58,92,0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.card-thumb:hover::before {
    opacity: 1;
}

.card-caption {
    padding: 7px 2px 0;
}

.card-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--clr-text);
}

.card-caption h5 a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}

.card-caption h5 a:hover {
    color: var(--clr-accent);
}

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 620px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    position: relative;
}

.video-container iframe,
.video-container video,
.video-container #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-md);
}

/* ===== DETAIL INFO CARDS ===== */
.info-title-card {
    line-height: 1.8;
    text-align: center;
    padding: 18px 16px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(26,58,92,0.07) 0%, rgba(74,144,196,0.07) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
}

.meta-info-card {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    margin: 14px 0;
}

/* ===== TORRENT CAPTURE ===== */
.capture-display {
    margin-top: 12px;
}

.capture-display picture {
    display: block;
    width: 100%;
}

.capture-display picture img,
.capture-display img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-line);
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.dl-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 16px;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    margin: 14px 0;
    text-align: center;
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.dl-btn:hover {
    opacity: 0.88;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
    box-shadow: var(--shadow-xs);
    padding: 18px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.share-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--clr-sky);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 13px;
    color: var(--clr-text-sub);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 11px 22px;
    background: var(--grad-navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    opacity: 0.88;
    box-shadow: var(--shadow-md);
}

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

/* ===== FRIEND LINKS ===== */
.link-panel {
    padding: 12px 14px;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-line);
}

.link-panel dl { margin: 0; }

.link-panel dd {
    display: inline-block;
    margin: 4px;
}

.link-panel a {
    color: var(--clr-sky);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.link-panel a:hover {
    color: var(--clr-accent);
}

/* ===== PAGINATION ===== */
.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.page-btn,
.page-cur {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.page-btn {
    background: var(--clr-surface);
    color: var(--clr-text);
    border: 1px solid var(--clr-line);
}

.page-btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
}

.page-cur {
    background: var(--grad-accent);
    color: #fff;
    border: 1px solid transparent;
    cursor: default;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--clr-line);
    margin-top: 20px;
    background: var(--clr-surface);
}

.site-footer p {
    margin: 6px 0;
    color: var(--clr-text-muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--ease);
}

.site-footer a:hover {
    color: var(--clr-accent);
}

/* ===== UTILITIES ===== */
.clearfix::after { content: ""; display: table; clear: both; }

.hide-mobile { display: block; }
.hide-pc     { display: block; }

@media (max-width: 768px)  { .hide-mobile { display: none !important; } }
@media (min-width: 769px)  { .hide-pc     { display: none !important; } }

img[data-original] { background: var(--clr-bg); }

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }

    .topbar-inner {
        gap: 10px;
        padding: 0 10px;
    }

    .brand-name { font-size: 20px; }

    .domain-badge .badge-label { font-size: 10px; }
    .domain-badge .badge-url  { font-size: 15px; }

    .row-section { padding: 5px 0; }

    /* Mobile nav: zone 15% + links 85%, 4 per row */
    .cate-row {
        align-items: stretch;
    }

    .cate-zone {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 6px 3px;
        word-break: keep-all;
        line-height: 1.2;
    }

    .cate-links {
        width: 85%;
        gap: 4px;
        padding: 6px 5px;
    }

    .cate-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Mobile search: one line */
    .search-bar { padding: 9px 10px; }
    .search-bar form { flex-wrap: nowrap; gap: 5px; }

    .search-bar input[type="text"] {
        min-width: 50px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Mobile card grid: 2 per row */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-caption h5 { font-size: 12px; }

    .block-title { font-size: 17px; }

    .video-container {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 12px;
    }

    .share-section {
        padding: 12px;
        margin: 12px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-url-display { padding: 9px 11px; flex: 1; min-width: 0; }
    .share-label { font-size: 12px; }
    .share-url   { font-size: 11px; }

    .share-copy-btn {
        padding: 9px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .dl-actions {
        padding: 12px 8px;
        margin: 12px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .dl-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .page-nav { padding: 14px 0; gap: 5px; }
    .page-btn, .page-cur { padding: 6px 11px; font-size: 12px; min-width: 32px; }

    .site-footer { padding: 16px 0; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 18px; }
    .domain-badge .badge-url { font-size: 14px; }

    /* Extra-small: zone 15%, links 85%, 4 per row */
    .cate-zone {
        width: 15%;
        font-size: 10px;
        padding: 5px 2px;
    }

    .cate-links {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

    .cate-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .search-bar input[type="text"] {
        min-width: 40px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .search-bar button {
        padding: 7px 8px;
        font-size: 11px;
    }

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

    .block-title { font-size: 16px; }

    .video-container {
        height: 56.25vw;
        max-height: 280px;
    }

    .dl-btn { padding: 8px 10px; font-size: 12px; }

    .share-copy-btn { padding: 8px 10px; font-size: 12px; }

    .tag-cloud-list a { padding: 3px 10px; font-size: 12px; }
}

/* Compatibility aliases for old class names used in tpl files */
.mhlleset         { margin-bottom: 14px; }
.mhlleset-main    { }
.mhlleset-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--clr-line); position: relative; }
.mhlleset-heading::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 52px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.mhlleset-title   { font-size: 19px; font-weight: 700; color: var(--clr-navy); margin: 0; }
.mhlleset-title a { color: inherit; text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--clr-accent); }

.thumbnail2-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; }
.thumbnail2-group li { animation: fadeUp 0.5s ease backwards; }
.thumbnail2-group li:nth-child(1) { animation-delay: 0.04s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.16s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.20s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.24s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.28s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.32s; }

.thumbnail2 { display: block; position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 600/350; background: var(--clr-bg); border: 1px solid var(--clr-line); box-shadow: var(--shadow-xs); transition: var(--ease); }
.thumbnail2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.thumbnail2:hover { box-shadow: var(--shadow-md); border-color: var(--clr-sky); }
.thumbnail2:hover img { transform: scale(1.08); }
.thumbnail2::before { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(255,255,255,0.9); background: rgba(26,58,92,0.35); opacity: 0; transition: opacity 0.25s ease; z-index: 1; }
.thumbnail2:hover::before { opacity: 1; }

.video-info { padding: 7px 2px 0; }
.video-info h5 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.video-info h5 a { color: var(--clr-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--ease); }
.video-info h5 a:hover { color: var(--clr-accent); }

.download { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 16px; background: var(--clr-surface); border-radius: var(--radius-lg); border: 1px solid var(--clr-line); box-shadow: var(--shadow-xs); margin: 14px 0; text-align: center; }
.down_btn { display: inline-block; padding: 10px 22px; background: var(--grad-accent); color: #fff; text-decoration: none; border-radius: var(--radius-md); font-weight: 700; font-size: 14px; transition: var(--ease); border: 2px solid transparent; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.down_btn:hover { opacity: 0.88; box-shadow: var(--shadow-md); }

.grid-container { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 10px 14px; }
.grid-item { padding: 4px 13px; border-radius: 20px; font-size: 13px; text-decoration: none; color: var(--clr-text-sub); background: var(--clr-bg); border: 1px solid var(--clr-line); transition: var(--ease); }
.grid-item:hover { background: var(--clr-accent-light); color: var(--clr-accent); border-color: var(--clr-accent); }

.seach { background: var(--clr-surface); border-radius: var(--radius-lg); border: 1px solid var(--clr-line); box-shadow: var(--shadow-xs); padding: 12px 14px; margin-bottom: 10px; }
.seach form { display: flex; gap: 7px; flex-wrap: nowrap; align-items: center; }
.seach input[type="text"] { flex: 1; min-width: 60px; padding: 9px 13px; border: 1.5px solid var(--clr-line); border-radius: var(--radius-md); background: var(--clr-bg); color: var(--clr-text); font-size: 14px; outline: none; transition: var(--ease); }
.seach input[type="text"]:focus { border-color: var(--clr-sky); background: #fff; box-shadow: 0 0 0 3px rgba(74,144,196,0.12); }
.seach input[type="text"]::placeholder { color: var(--clr-text-muted); }
.seach button { padding: 9px 14px; border: none; border-radius: var(--radius-md); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: var(--ease); line-height: 1; background: var(--grad-accent); color: #fff; }
.seach button:hover { opacity: 0.88; box-shadow: var(--shadow-sm); }

.page_info_div { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 18px 0; }
.a_page_info { display: inline-block; padding: 7px 13px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 13px; transition: var(--ease); min-width: 36px; text-align: center; background: var(--clr-surface); color: var(--clr-text); border: 1px solid var(--clr-line); }
.a_page_info:hover { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }
.page_info_focus { display: inline-block; padding: 7px 13px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 13px; min-width: 36px; text-align: center; background: var(--grad-accent); color: #fff; border: 1px solid transparent; cursor: default; }

.footer { padding: 22px 0; text-align: center; border-top: 1px solid var(--clr-line); margin-top: 20px; background: var(--clr-surface); }
.footer p { margin: 6px 0; color: var(--clr-text-muted); font-size: 13px; }
.footer a { color: var(--clr-text-muted); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--clr-accent); }

.txtguanggao2 { padding: 12px 14px; background: var(--clr-surface); border-radius: var(--radius-lg); border: 1px solid var(--clr-line); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 4px; }
.txtguanggao2 a { color: var(--clr-sky); text-decoration: none; transition: var(--ease); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--clr-accent); }

.nav-container { background: var(--clr-surface); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 10px; border: 1px solid var(--clr-line); box-shadow: var(--shadow-xs); }
.nav-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--clr-line); }
.nav-row:last-child { border-bottom: none; }
.nav-row .nav-label { font-weight: 700; font-size: 13px; color: var(--clr-navy); white-space: nowrap; width: 10%; text-align: center; border-right: 1px solid var(--clr-line); display: flex; align-items: center; justify-content: center; padding: 8px 6px; flex-shrink: 0; background: var(--clr-surface2); }
.nav-row .nav-links { font-size: 13px; width: 90%; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; align-items: center; }
.nav-row .nav-links a { display: inline-block; color: var(--clr-text-sub); text-decoration: none; padding: 5px 4px; border-radius: var(--radius-sm); transition: var(--ease); background: var(--clr-bg); border: 1px solid var(--clr-line); white-space: nowrap; text-align: center; width: calc((100% - 42px) / 8); flex-shrink: 0; flex-grow: 0; }
.nav-row .nav-links a:hover { background: var(--clr-accent); color: white; border-color: var(--clr-accent); }
.nav-row .nav-links a.active { background: var(--clr-accent); color: white; border-color: var(--clr-accent); font-weight: 600; }

/* ===== NAV RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-row .nav-label {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 6px 3px;
    }

    .nav-row .nav-links {
        width: 85%;
        font-size: 12px;
        gap: 4px;
        padding: 6px 5px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
    }

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

    .download {
        padding: 12px 8px;
        margin: 12px 0;
        gap: 8px;
    }

    .down_btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 5px 2px;
    }

    .nav-row .nav-links {
        width: 85%;
        font-size: 12px;
        gap: 3px;
        padding: 5px 3px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        width: calc((100% - 9px) / 4);
        padding: 3px 1px;
    }

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

    .seach input[type="text"] { min-width: 40px; padding: 7px 8px; font-size: 12px; }
    .seach button { padding: 7px 8px; font-size: 11px; }

    .down_btn { padding: 8px 8px; font-size: 11px; }
}

/* Larger screens - keep 4 columns */
@media (min-width: 769px) {
    .thumbnail2-group { grid-template-columns: repeat(4, 1fr); }
}

.torrent-capture-grid picture { display: block; width: 100%; }
.torrent-capture-grid picture img,
.torrent-capture-grid img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--clr-line); display: block; }
