/* Video CMS Template - Bold Monochrome Edition */

:root {
    --ink: #111111;
    --ink-soft: #444444;
    --ink-muted: #999999;
    --ink-light: #cccccc;
    --canvas: #ffffff;
    --canvas-off: #f5f5f5;
    --canvas-pale: #fafafa;
    --topbar-bg: #111111;
    --topbar-text: #ffffff;
    --hi: #3d5afe;
    --hi-dark: #283593;
    --hi-light: #e8eaff;
    --hi2: #ff3d00;
    --border: #e0e0e0;
    --border-dark: #cccccc;
    --shadow-xs: rgba(0,0,0,0.06);
    --shadow-sm: rgba(0,0,0,0.11);
    --shadow-md: rgba(0,0,0,0.18);
    --r: 4px;
    --r-sm: 3px;
    --ease: all 0.22s ease;
    --grad: linear-gradient(135deg, var(--hi) 0%, #5c6bc0 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', Helvetica, Arial, sans-serif;
    background: var(--canvas-off);
    color: var(--ink);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* =========== TOP BRAND BAR =========== */
.brand-topbar {
    background: var(--topbar-bg);
    padding: 12px 0;
    border-bottom: 3px solid var(--hi);
}

.brand-topbar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

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

.brand-logo-link:hover .brand-name { opacity: 0.82; }

.brand-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--topbar-text);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.brand-domain-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 3px;
}

.brand-domain-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--hi);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-domain-val {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-family: 'Courier New', 'Consolas', monospace;
}

/* =========== CONTAINER =========== */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content {
    padding: 8px 0;
}

/* =========== NAV BLOCK =========== */
.nav-container {
    background: var(--canvas);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px var(--shadow-xs);
}

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

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

.nav-row .nav-label {
    font-weight: 900;
    font-size: 13px;
    color: var(--canvas);
    background: var(--ink);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.nav-row .nav-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--canvas-pale);
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    background: var(--canvas);
    border: 1px solid var(--border-dark);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

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

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

/* =========== SEARCH =========== */
.seach {
    background: var(--ink);
    border-radius: var(--r);
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px var(--shadow-sm);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: var(--ease);
}

.seach input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(61,90,254,0.25);
}

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

.seach button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--hi);
    color: var(--canvas);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.seach button:hover { background: var(--hi-dark); }

/* =========== HOT TAGS =========== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--canvas);
    border-radius: var(--r);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.grid-item {
    padding: 4px 12px;
    background: var(--canvas-off);
    border-radius: var(--r-sm);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--ease);
    border: 1px solid var(--border-dark);
}

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

/* =========== SECTION HEADINGS =========== */
.mhlleset { margin-bottom: 14px; }
.mhlleset-main { }

.mhlleset-heading {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
}

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

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

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

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: #e8e8e8;
    border: 1px solid var(--border);
}

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

.thumbnail2:hover {
    border-color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.thumbnail2:hover img { transform: scale(1.06); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.thumbnail2:hover::after { opacity: 1; }

.thumbnail2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 20px;
    border-color: transparent transparent transparent rgba(255,255,255,0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3;
}

.thumbnail2:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

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

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

/* =========== VIDEO PLAYER =========== */
.video-container {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--ink);
    position: relative;
    border: 2px solid var(--ink);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 4px 4px 0 var(--ink);
    border: 2px solid var(--ink);
}

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

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

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

/* =========== DOWNLOAD BUTTONS =========== */
.download {
    text-align: center;
    padding: 14px;
    background: var(--canvas);
    border-radius: var(--r);
    margin: 12px 0;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--ink);
    color: var(--canvas);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 800;
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.down_btn:hover {
    background: var(--hi);
    border-color: var(--hi);
    box-shadow: 3px 3px 0 var(--hi-dark);
}

/* =========== SHARE SECTION =========== */
.share-section {
    background: var(--canvas);
    border-radius: var(--r);
    padding: 14px 16px;
    margin: 12px 0;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--canvas-off);
    border: 1px solid var(--border-dark);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--ink);
    color: var(--canvas);
    border: 2px solid var(--ink);
    border-radius: var(--r-sm);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.share-copy-btn:hover {
    background: var(--hi);
    border-color: var(--hi);
    box-shadow: 3px 3px 0 var(--hi-dark);
}

.share-copy-btn:active { transform: translate(1px, 1px); }

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

/* =========== PAGINATION =========== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.a_page_info {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
    background: var(--canvas);
    color: var(--ink);
    border: 1.5px solid var(--border-dark);
}

.a_page_info:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--canvas);
    box-shadow: 2px 2px 0 var(--ink-soft);
}

.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    font-weight: 800;
    font-size: 13px;
    min-width: 34px;
    text-align: center;
    background: var(--hi);
    color: var(--canvas);
    border: 1.5px solid var(--hi);
    cursor: default;
    box-shadow: 2px 2px 0 var(--hi-dark);
}

/* =========== FRIEND LINKS =========== */
.txtguanggao2 {
    padding: 10px 14px;
    background: var(--canvas);
    border-radius: var(--r);
    border: 1px solid var(--border);
}

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

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

.txtguanggao2 a:hover { color: var(--hi); text-decoration: underline; }

/* =========== FOOTER =========== */
.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--ink);
    margin-top: 8px;
    background: var(--canvas);
}

.footer p { margin: 5px 0; color: var(--ink-muted); font-size: 13px; }
.footer a { color: var(--ink-muted); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--hi); }

/* =========== HIDE UTILS =========== */
.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; } }

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

img[data-original] { background: #ebebeb; }

/* =========== RESPONSIVE MOBILE =========== */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .content { padding: 7px 0; }
    .brand-topbar { padding: 9px 0; }
    .brand-name { font-size: 18px; }
    .brand-domain-wrap { padding: 4px 10px; gap: 6px; }
    .brand-domain-label { font-size: 9px; }
    .brand-domain-val { font-size: 15px; }

    /* nav: 15% label / 85% links */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
        line-height: 1.3;
    }
    .nav-row .nav-links {
        width: 85%;
        font-size: 12px;
        gap: 4px;
        padding: 7px 5px;
    }
    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

    .video-container {
        height: 56.25vw;
        max-height: 360px;
        margin-bottom: 10px;
        box-shadow: 2px 2px 0 var(--ink);
    }

    .seach { padding: 9px 10px; }
    .seach input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .seach button { padding: 8px 10px; font-size: 12px; }

    .mhlleset-title { font-size: 15px; }
    .mhlleset { margin-bottom: 11px; }
    .grid-container { padding: 8px 10px; gap: 5px; }
    .grid-item { font-size: 12px; padding: 3px 9px; }
    .download { padding: 10px 8px; gap: 7px; }
    .down_btn { padding: 9px 14px; font-size: 13px; }
    .share-section { padding: 10px 12px; margin: 10px 0; gap: 8px; }
    .share-url-display { padding: 8px 10px; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 11px; }
    .share-copy-btn { padding: 8px 11px; font-size: 12px; }
    .a_page_info, .page_info_focus { padding: 6px 10px; font-size: 12px; min-width: 30px; }
    .video-info h5 { font-size: 12px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 17px; }
    .brand-domain-val { font-size: 14px; }
    .brand-domain-label { font-size: 8px; }

    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 6px 3px; }
    .nav-row .nav-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

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

    .video-container {
        height: 56.25vw;
        max-height: 260px;
        box-shadow: 2px 2px 0 var(--ink);
    }

    .down_btn { padding: 8px 10px; font-size: 12px; }
    .share-section { padding: 8px; margin: 9px 0; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
    .share-icon { font-size: 13px; }
    .mhlleset-title { font-size: 14px; }
    .video-info h5 { font-size: 12px; }
}
