/* =============================================
   影视站模板 — 白底深红商务风格
   参照: M2Catalyst 配色方案
   ============================================= */

:root {
    --mc-red:        #c0392b;
    --mc-red-dark:   #962d22;
    --mc-red-light:  #d44638;
    --mc-black:      #1a1a1a;
    --mc-gray-dark:  #2d2d2d;
    --mc-gray:       #555555;
    --mc-gray-light: #888888;
    --mc-border:     #e0e0e0;
    --mc-bg:         #f5f5f5;
    --mc-white:      #ffffff;
    --mc-card-bg:    #ffffff;
    --mc-dark-card:  #1c2531;
    --mc-nav-bg:     #1a1a1a;
    --mc-nav-text:   #ffffff;
    --mc-stripe:     #c0392b;
    --mc-tag-bg:     #fdf0ef;
    --mc-tag-text:   #c0392b;
    --rd-sm: 3px;
    --rd-md: 6px;
    --sh-sm: 0 1px 4px rgba(0,0,0,0.08);
    --sh-md: 0 2px 10px rgba(0,0,0,0.12);
    --fn: 'PingFang SC','Microsoft YaHei','Hiragino Sans GB',sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--fn);
    background: var(--mc-bg);
    color: var(--mc-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mc-red); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* =============================================
   布局容器
   ============================================= */

.mc-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after { content: ''; display: table; clear: both; }

/* =============================================
   顶部红色条纹装饰
   ============================================= */

.top-stripe {
    height: 5px;
    background: var(--mc-stripe);
}

/* =============================================
   品牌/Header 区域 — 白底黑字
   ============================================= */

.mc-header {
    background: var(--mc-white);
    border-bottom: 1px solid var(--mc-border);
    padding: 8px 0;
    box-shadow: var(--sh-sm);
}

.mc-header .mc-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.mc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.mc-site-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--mc-black);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -0.3px;
    white-space: nowrap;
    line-height: 1;
}

.mc-site-title:hover { color: var(--mc-red); }

.mc-domain-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--mc-tag-bg);
    border: 1px solid #f0c4c0;
    border-radius: 20px;
    padding: 3px 13px;
    white-space: nowrap;
}

.mc-domain-pill .dp-lbl {
    font-size: 11px;
    color: var(--mc-gray-light);
}

.mc-domain-pill .dp-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--mc-red);
    letter-spacing: 0.2px;
}

/* =============================================
   横幅区域
   ============================================= */

.mc-banner-zone {
    background: var(--mc-white);
    margin-bottom: 4px;
}

/* =============================================
   栏目导航面板
   ============================================= */

.mc-nav-panel {
    background: var(--mc-nav-bg);
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

.nav-row-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    min-height: 38px;
}

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

.nav-zone-badge {
    background: var(--mc-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    min-width: 46px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

.nav-link-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.nav-link-group a {
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    padding: 7px 11px;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.nav-link-group a:hover,
.nav-link-group a.active {
    background: var(--mc-red);
    color: #fff;
}

/* =============================================
   搜索栏
   ============================================= */

.mc-search-zone {
    background: var(--mc-white);
    padding: 8px 0;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--mc-red);
    box-shadow: var(--sh-sm);
}

.srch-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.srch-row form {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.srch-row input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 2px solid var(--mc-border);
    border-radius: var(--rd-sm);
    padding: 0 12px;
    font-size: 13px;
    font-family: var(--fn);
    color: var(--mc-black);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.srch-row input[type="text"]:focus {
    border-color: var(--mc-red);
}

.srch-row button {
    height: 36px;
    padding: 0 12px;
    background: var(--mc-red);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: 12px;
    font-family: var(--fn);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.srch-row button:hover { background: var(--mc-red-dark); }

/* =============================================
   热搜标签
   ============================================= */

.mc-kw-row {
    background: var(--mc-white);
    padding: 7px 0;
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

.kw-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.kw-inner strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--mc-red);
    white-space: nowrap;
    flex-shrink: 0;
}

.kw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kw-tags a {
    font-size: 12px;
    color: var(--mc-tag-text);
    background: var(--mc-tag-bg);
    border: 1px solid #f0c4c0;
    border-radius: var(--rd-sm);
    padding: 2px 8px;
    transition: all 0.15s;
}

.kw-tags a:hover {
    background: var(--mc-red);
    color: #fff;
    border-color: var(--mc-red);
}

/* =============================================
   内容区块
   ============================================= */

.mc-content { padding: 4px 0; }

.film-module {
    background: var(--mc-card-bg);
    margin-bottom: 6px;
    border-radius: var(--rd-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border-top: 3px solid var(--mc-red);
}

.film-module-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: var(--mc-white);
    border-bottom: 1px solid var(--mc-border);
}

.film-module-hd h3.mod-title,
.film-module-hd h4.mod-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--mc-black);
    padding-left: 10px;
    position: relative;
}

.film-module-hd h3.mod-title::before,
.film-module-hd h4.mod-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: var(--mc-red);
    border-radius: 2px;
}

.film-module-hd h3.mod-title a,
.film-module-hd h4.mod-title a { color: var(--mc-black); }
.film-module-hd h3.mod-title a:hover,
.film-module-hd h4.mod-title a:hover { color: var(--mc-red); }

/* 影片网格 */
.film-grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 14px;
}

.film-entry {
    position: relative;
    min-width: 0;
    width: 100%;
}

.film-poster {
    display: block;
    overflow: hidden;
    border-radius: var(--rd-sm);
    background: #ddd;
    aspect-ratio: 600 / 350;
    width: 100%;
}

.film-poster img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.film-poster:hover img { transform: scale(1.04); }

.film-caption { padding: 5px 2px 2px; }

.film-caption h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--mc-black);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.film-caption h5 a:hover { color: var(--mc-red); }

/* =============================================
   详情页
   ============================================= */

.detail-bar {
    background: var(--mc-white);
    border-left: 4px solid var(--mc-red);
    padding: 11px 15px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-all;
    box-shadow: var(--sh-sm);
    border-radius: 0 var(--rd-sm) var(--rd-sm) 0;
}

.detail-bar .ref-cat {
    color: var(--mc-red);
    font-weight: 700;
    margin-right: 8px;
}

.detail-spec {
    background: var(--mc-dark-card);
    color: #e8e8e8;
    padding: 16px 18px;
    margin-bottom: 6px;
    border-radius: var(--rd-md);
    font-size: 14px;
    line-height: 2;
    box-shadow: var(--sh-sm);
    border-top: 3px solid var(--mc-red);
}

/* 截图 */
.torrent-preview { margin-top: 12px; }
.torrent-preview picture { display: block; width: 100%; }
.torrent-preview picture img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
}

/* 播放器 */
.player-box {
    background: #000;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    overflow: hidden;
}

/* 下载按钮组 */
.dl-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    flex-wrap: wrap;
}

.dl-action-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--mc-red);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fn);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
}

.dl-action-btn:hover {
    background: var(--mc-red-dark);
    color: #fff;
    transform: translateY(-1px);
}

.client-hint-pc, .client-hint-mb {
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
}

.client-hint-pc a, .client-hint-mb a {
    color: var(--mc-red);
    font-weight: 600;
}

/* =============================================
   分享面板
   ============================================= */

.share-strip {
    background: var(--mc-white);
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-left: 3px solid var(--mc-red);
}

.share-url-seg {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.share-url-seg .su-lbl {
    font-size: 12px;
    color: var(--mc-gray-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url-seg .su-txt {
    font-size: 12px;
    color: var(--mc-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--mc-red);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: 12px;
    font-family: var(--fn);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-copy-link:hover { background: var(--mc-red-dark); }

/* =============================================
   分页
   ============================================= */

.mc-pager-zone {
    margin: 10px 0 5px;
    display: flex;
    justify-content: center;
}

.pager-list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pager-list a, .pager-list .pager-cur {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: var(--rd-sm);
    font-size: 13px;
    padding: 0 6px;
}

.pager-list a {
    background: var(--mc-white);
    color: var(--mc-black);
    border: 1px solid var(--mc-border);
    transition: all 0.15s;
}

.pager-list a:hover {
    background: var(--mc-red);
    color: #fff;
    border-color: var(--mc-red);
}

.pager-list .pager-cur {
    background: var(--mc-red);
    color: #fff;
    border: 1px solid var(--mc-red);
    font-weight: 700;
}

/* =============================================
   友情链接
   ============================================= */

.mc-flinks {
    background: var(--mc-white);
    padding: 8px 14px;
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
    border-top: 2px solid var(--mc-border);
}

.mc-flinks .flinks-hd {
    font-size: 13px;
    font-weight: 700;
    color: var(--mc-gray);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--mc-border);
}

.flinks-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.flinks-dl dd { margin: 0; }

.flinks-dl a.fl-lnk {
    display: inline-block;
    font-size: 12px;
    color: var(--mc-gray);
    background: #f9f9f9;
    border: 1px solid var(--mc-border);
    padding: 2px 10px;
    border-radius: var(--rd-sm);
    transition: all 0.15s;
}

.flinks-dl a.fl-lnk:hover {
    background: var(--mc-red);
    color: #fff;
    border-color: var(--mc-red);
}

/* =============================================
   页脚
   ============================================= */

.mc-footer {
    background: var(--mc-nav-bg);
    padding: 14px 0;
    margin-top: 6px;
}

.footer-info {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.9;
}

/* 底部红色条纹 */
.mc-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--mc-red);
    margin-bottom: 14px;
}

/* =============================================
   显示/隐藏辅助
   ============================================= */

.vis-pc { display: block; }
.vis-mb { display: none; }

.num-badge {
    font-size: 12px;
    font-weight: 400;
    color: var(--mc-gray-light);
    margin-left: 6px;
}

/* =============================================
   响应式 — ≤768px 大屏手机
   ============================================= */

@media (max-width: 768px) {
    .vis-pc { display: none; }
    .vis-mb { display: block; }

    .mc-wrap { padding: 0 9px; }

    /* 品牌 */
    .mc-site-title { font-size: 17px; }
    .mc-domain-pill .dp-val { font-size: 13px; }

    /* 导航：分区标签15%，链接区85%，每行4列 */
    .nav-zone-badge {
        font-size: 10px;
        width: 15%;
        min-width: 36px;
        padding: 0 3px;
    }

    .nav-link-group {
        width: 85%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-link-group a {
        font-size: 13px;
        padding: 5px 3px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 搜索同行不换行 */
    .srch-row { flex-wrap: nowrap; }
    .srch-row form { flex-wrap: nowrap; }
    .srch-row input[type="text"] { height: 32px; font-size: 12px; }
    .srch-row button { height: 32px; font-size: 11px; padding: 0 7px; }

    /* 影片2列 */
    .film-grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px 9px;
    }

    .detail-bar { font-size: 13px; padding: 9px 11px; }
    .detail-spec { font-size: 13px; padding: 11px; }

    .dl-action-btn { padding: 8px 15px; font-size: 13px; }

    .pager-list a, .pager-list .pager-cur {
        min-width: 28px; height: 28px; line-height: 28px; font-size: 12px;
    }
}

/* =============================================
   响应式 — ≤480px 小屏手机
   ============================================= */

@media (max-width: 480px) {
    .mc-site-title { font-size: 15px; }
    .mc-domain-pill .dp-val { font-size: 12px; }
    .mc-domain-pill { padding: 2px 8px; }

    .nav-zone-badge { font-size: 10px; width: 15%; min-width: 32px; }
    .nav-link-group a { font-size: 12px; padding: 5px 2px; }

    .srch-row input[type="text"] { height: 30px; font-size: 11px; }
    .srch-row button { height: 30px; font-size: 11px; padding: 0 6px; }

    .film-caption h5 { font-size: 11px; }
    .dl-action-btn { padding: 7px 11px; font-size: 12px; }
    .dl-actions { gap: 7px; }
}

/* =============================================
   响应式 — ≥769px PC端
   ============================================= */

@media (min-width: 769px) {
    .nav-row-item { min-height: 40px; }

    .nav-zone-badge {
        font-size: 13px;
        min-width: 72px;
        padding: 0 10px;
    }

    .nav-link-group {
        display: flex;
        flex-wrap: nowrap;
    }

    .nav-link-group a {
        flex: 1;
        font-size: 14px;
        padding: 8px 6px;
        text-align: center;
    }
}
