/* Film Portal — Red Chinese Portal Style */

:root {
    --zc-red:        #e8160d;
    --zc-red-dark:   #c4100a;
    --zc-red-deep:   #a50d08;
    --zc-red-lt:     #fff0ef;
    --zc-yellow:     #ffd200;
    --zc-yellow-lt:  #fffbe6;
    --zc-orange:     #ff6600;
    --zc-white:      #ffffff;
    --zc-bg:         #f5f5f5;
    --zc-surface:    #ffffff;
    --zc-surface2:   #fafafa;
    --zc-border:     #e8e8e8;
    --zc-border2:    #d4d4d4;
    --zc-text:       #1a1a1a;
    --zc-text2:      #555555;
    --zc-text3:      #999999;
    --zc-shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
    --zc-shadow-md:  0 2px 10px rgba(0,0,0,0.12);
    --zc-shadow-lg:  0 4px 18px rgba(0,0,0,0.15);
    --zc-r:          4px;
    --zc-r-sm:       2px;
    --zc-r-lg:       6px;
    --zc-ease:       all 0.18s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--zc-bg);
    color: var(--zc-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
    background: var(--zc-red);
    border-bottom: 3px solid var(--zc-red-deep);
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 14px;
    flex-wrap: nowrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: var(--zc-white);
    border-radius: var(--zc-r);
    padding: 3px 10px;
}

.site-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--zc-red);
    letter-spacing: 0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.logo:hover { opacity: 0.92; }

.domain-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--zc-r);
    padding: 5px 14px;
}

.domain-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--zc-yellow);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-url {
    font-size: 16px;
    font-weight: 700;
    color: var(--zc-white);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

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

.content { padding: 8px 0; }

/* ===== NAV BLOCK ===== */
.nav-container {
    background: var(--zc-surface);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--zc-border);
    border-radius: var(--zc-r);
    box-shadow: var(--zc-shadow-sm);
    border-top: 2px solid var(--zc-red);
}

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

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

.nav-row .nav-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--zc-white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    background: var(--zc-red);
}

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

.nav-row .nav-links a {
    display: inline-block;
    color: var(--zc-text2);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--zc-r-sm);
    transition: var(--zc-ease);
    background: var(--zc-surface2);
    border: 1px solid var(--zc-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--zc-red);
    color: var(--zc-white);
    border-color: var(--zc-red);
}

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

/* ===== SEARCH ===== */
.seach {
    background: var(--zc-surface);
    border: 1px solid var(--zc-border);
    border-radius: var(--zc-r);
    border-top: 3px solid var(--zc-red);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: var(--zc-shadow-sm);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--zc-border2);
    border-radius: var(--zc-r-sm);
    background: var(--zc-surface2);
    color: var(--zc-text);
    font-size: 14px;
    outline: none;
    transition: var(--zc-ease);
    font-family: inherit;
}

.seach input[type="text"]:focus {
    border-color: var(--zc-red);
    background: var(--zc-white);
    box-shadow: 0 0 0 2px rgba(232,22,13,0.12);
}

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

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

.seach button:hover { background: var(--zc-red-dark); }
.seach button:active { transform: scale(0.97); }

/* ===== HOT TAGS ===== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 8px 12px;
    background: var(--zc-surface);
    border: 1px solid var(--zc-border);
    border-radius: var(--zc-r);
    margin-bottom: 8px;
    box-shadow: var(--zc-shadow-sm);
    border-left: 3px solid var(--zc-red);
}

.grid-item {
    padding: 3px 10px;
    background: var(--zc-surface2);
    border: 1px solid var(--zc-border);
    border-radius: var(--zc-r-sm);
    color: var(--zc-text2);
    text-decoration: none;
    font-size: 12px;
    transition: var(--zc-ease);
}

.grid-item:hover {
    background: var(--zc-red);
    color: var(--zc-white);
    border-color: var(--zc-red);
}

/* ===== SECTION HEADING ===== */
.mhlleset { margin-bottom: 12px; }
.mhlleset-main { }

.mhlleset-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--zc-border);
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.mhlleset-heading::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 3px;
    height: calc(100% + 2px);
    background: var(--zc-red);
    border-radius: 2px 2px 0 0;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--zc-red);
}

.mhlleset-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    padding-left: 10px;
    color: var(--zc-text);
    letter-spacing: 0.1px;
}

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

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

.thumbnail2-group > li { animation: zcup 0.4s ease backwards; }
.thumbnail2-group > li:nth-child(1) { animation-delay: 0.03s; }
.thumbnail2-group > li:nth-child(2) { animation-delay: 0.06s; }
.thumbnail2-group > li:nth-child(3) { animation-delay: 0.09s; }
.thumbnail2-group > li:nth-child(4) { animation-delay: 0.12s; }
.thumbnail2-group > li:nth-child(5) { animation-delay: 0.15s; }
.thumbnail2-group > li:nth-child(6) { animation-delay: 0.18s; }
.thumbnail2-group > li:nth-child(7) { animation-delay: 0.21s; }
.thumbnail2-group > li:nth-child(8) { animation-delay: 0.24s; }

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--zc-r);
    aspect-ratio: 600 / 350;
    background: var(--zc-surface2);
    border: 1px solid var(--zc-border);
    box-shadow: var(--zc-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.thumbnail2:hover {
    border-color: var(--zc-red);
    box-shadow: 0 4px 14px rgba(232,22,13,0.20);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.26s ease;
}

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

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

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

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

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

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

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

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

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid { width: 100%; }

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

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

/* ===== DOWNLOAD BUTTONS ===== */
.download {
    text-align: center;
    padding: 12px;
    background: var(--zc-surface);
    border-radius: var(--zc-r);
    margin: 12px 0;
    border: 1px solid var(--zc-border);
    border-top: 3px solid var(--zc-red);
    box-shadow: var(--zc-shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--zc-red);
    color: var(--zc-white);
    text-decoration: none;
    border-radius: var(--zc-r);
    font-weight: 700;
    font-size: 13px;
    transition: var(--zc-ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.down_btn:hover {
    background: var(--zc-red-dark);
    box-shadow: 0 3px 12px rgba(232,22,13,0.35);
}

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

.share-url-display {
    background: var(--zc-surface2);
    border: 1px solid var(--zc-border2);
    border-radius: var(--zc-r-sm);
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 11px;
    color: var(--zc-red);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

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

.share-copy-btn {
    padding: 9px 16px;
    background: var(--zc-red);
    color: var(--zc-white);
    border: none;
    border-radius: var(--zc-r);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--zc-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--zc-red-dark);
    box-shadow: 0 3px 10px rgba(232,22,13,0.30);
}

.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 14px; }

/* ===== ITEM HEADLINE ===== */
.item-title-bar {
    line-height: 1.7;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--zc-surface);
    border-radius: var(--zc-r);
    border: 1px solid var(--zc-border);
    border-left: 4px solid var(--zc-red);
    box-shadow: var(--zc-shadow-sm);
    color: var(--zc-text);
}

.item-title-bar a {
    color: var(--zc-red);
    text-decoration: none;
    font-weight: 700;
    margin-right: 6px;
    transition: var(--zc-ease);
}

.item-title-bar a:hover { color: var(--zc-red-dark); }

/* ===== DETAIL INFO BOX ===== */
.detail-infobox {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--zc-surface);
    border-radius: var(--zc-r);
    margin: 12px 0;
    border: 1px solid var(--zc-border);
    border-top: 3px solid var(--zc-red);
    box-shadow: var(--zc-shadow-sm);
    color: var(--zc-text2);
}

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--zc-r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--zc-ease);
    min-width: 34px;
    text-align: center;
}

.a_page_info {
    background: var(--zc-surface);
    color: var(--zc-text2);
    border: 1px solid var(--zc-border2);
}

.a_page_info:hover {
    background: var(--zc-red);
    border-color: var(--zc-red);
    color: var(--zc-white);
}

.page_info_focus {
    background: var(--zc-red);
    color: var(--zc-white);
    border: 1px solid var(--zc-red);
    cursor: default;
}

/* ===== FOOTER ===== */
.footer {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--zc-red);
    margin-top: 16px;
    background: var(--zc-surface);
}

.footer p { margin: 5px 0; color: var(--zc-text3); font-size: 12px; }
.footer a { color: var(--zc-text3); text-decoration: none; transition: var(--zc-ease); }
.footer a:hover { color: var(--zc-red); }

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 9px 12px;
    background: var(--zc-surface);
    border-radius: var(--zc-r);
    border: 1px solid var(--zc-border);
    box-shadow: var(--zc-shadow-sm);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--zc-text2); text-decoration: none; font-size: 13px; transition: var(--zc-ease); }
.txtguanggao2 a:hover { color: var(--zc-red); text-decoration: underline; }
.pd5 { padding: 2px 5px; }

/* ===== SHARE BOX (legacy) ===== */
.share-box {
    background: var(--zc-surface);
    border-radius: var(--zc-r);
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid var(--zc-border);
    box-shadow: var(--zc-shadow-sm);
}
.share-box span { color: var(--zc-text3); font-size: 13px; word-break: break-all; }
.share-box a { color: var(--zc-red); text-decoration: none; font-weight: 600; }
.share-box a:hover { color: var(--zc-red-dark); }

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

/* lazy load */
img[data-original] { background: var(--zc-surface2); }

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

    /* Header */
    .header-content { padding: 7px 10px; gap: 10px; }
    .site-branding { gap: 10px; }
    .logo { padding: 3px 8px; }
    .site-name { font-size: 18px; }
    .domain-info { padding: 4px 10px; gap: 5px; }
    .domain-label { font-size: 10px; }
    .domain-url { font-size: 14px; }

    /* Nav: 15% label, 85% links, 4 per row on mobile */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }
    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }
    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search: single row, no wrap */
    .seach { padding: 8px 10px; margin-bottom: 6px; }
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 0; padding: 7px 8px; font-size: 13px; }
    .seach button { padding: 7px 9px; font-size: 12px; flex-shrink: 0; }

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

    .video-info h5 { font-size: 12px; }

    .mhlleset { margin-bottom: 10px; }
    .mhlleset-heading { margin-bottom: 9px; padding-bottom: 7px; }
    .mhlleset-title { font-size: 15px; }

    .grid-container { padding: 7px 10px; gap: 4px; margin-bottom: 6px; }
    .grid-item { padding: 3px 8px; font-size: 11px; }

    /* Download */
    .download { padding: 10px 8px; margin: 10px 0; gap: 6px; flex-wrap: nowrap; }
    .down_btn { padding: 8px 14px; font-size: 13px; }

    /* Share */
    .share-section { padding: 9px 10px; margin: 10px 0; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 9px; gap: 5px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 12px; flex-shrink: 0; }
    .share-icon { font-size: 13px; }

    .video-container { height: 56.25vw; max-height: 360px; margin-bottom: 10px; }

    .page_info_div { padding: 10px 0; gap: 3px; }
    .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .footer { padding: 14px 0; margin-top: 12px; }
    .item-title-bar { padding: 10px 12px; font-size: 14px; margin: 10px 0; }
    .detail-infobox { padding: 12px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    .site-name { font-size: 16px; }
    .domain-url { font-size: 13px; }
    .domain-label { font-size: 9px; }

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

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .video-info h5 { font-size: 11px; }

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

    .download { padding: 9px 6px; gap: 5px; }
    .down_btn { padding: 7px 12px; font-size: 12px; }

    .share-section { padding: 8px; gap: 5px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }

    .mhlleset-title { font-size: 14px; }
}

@media (min-width: 769px) {
    /* PC: 4 columns, nav 8 links fill row */
    .thumbnail2-group { grid-template-columns: repeat(4, 1fr); }
    .nav-row .nav-links a { width: calc((100% - 28px) / 8); }
}
