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

:root {
    /* Meitu coral-pink / violet-blue palette */
    --coral:       #f0524a;
    --coral-lt:    #ff7b6b;
    --coral-dk:    #d03c36;
    --pink:        #f06090;
    --pink-lt:     #ff80aa;
    --rose:        #e8385a;
    --violet:      #7c4dff;
    --violet-lt:   #9c6fff;
    --violet-dk:   #5c2de0;
    --indigo:      #4a3cc8;
    --periwinkle:  #8090f0;

    /* Gradient combos */
    --grad-hero:   linear-gradient(135deg, #f0916a 0%, #e85070 30%, #a040d0 65%, #5030c0 100%);
    --grad-hd:     linear-gradient(90deg, #f06090 0%, #c840a0 40%, #7c4dff 100%);
    --grad-btn:    linear-gradient(135deg, #f0524a 0%, #f060a0 60%, #9060e0 100%);
    --grad-btn2:   linear-gradient(135deg, #7c4dff 0%, #4a3cc8 100%);
    --grad-tag:    linear-gradient(135deg, #f06090 0%, #c840a0 100%);
    --grad-card:   linear-gradient(145deg, #fff8fc 0%, #f8f6ff 100%);

    /* Backgrounds */
    --bg-page:     #faf8ff;
    --bg-white:    #ffffff;
    --bg-card:     #ffffff;
    --bg-soft:     #fdf6ff;
    --bg-pink:     #fff0f5;
    --bg-violet:   #f5f0ff;

    /* Text */
    --txt-hd:      #1a0a20;
    --txt-main:    #2a1a30;
    --txt-sub:     #5a4060;
    --txt-muted:   #a890b0;

    /* Borders */
    --bdr:         #ecd8f0;
    --bdr2:        #dcc0e8;
    --bdr-pink:    #f0c0d8;

    /* Shadows */
    --shade1: 0 2px 10px rgba(200,60,160,.09);
    --shade2: 0 4px 20px rgba(180,50,180,.14);
    --shade3: 0 8px 32px rgba(160,40,200,.20);

    --radius:    14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --radius-xl: 32px;
}

html { font-size: 15px; }

body {
    background: var(--bg-page);
    color: var(--txt-main);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
}

a { color: var(--coral); text-decoration: none; transition: color .18s; }
a:hover { color: var(--rose); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.mtfix::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.mt-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.mt-hd {
    background: var(--bg-white);
    border-bottom: 1.5px solid var(--bdr);
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(200,60,160,.08);
}

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

.mt-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

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

.mt-sitename {
    font-size: 1.44rem;
    font-weight: 900;
    color: var(--coral);
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    background: var(--grad-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-hd);
    border-radius: var(--radius-xl);
    padding: 4px 18px;
    box-shadow: 0 2px 10px rgba(200,60,160,.20);
}

.mt-domain .mtd-tag {
    font-size: 0.66rem;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

.mt-domain .mtd-url {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ===== BANNER ZONE ===== */
.mt-bnr {
    margin: 5px 0 3px;
}
.mt-bnr img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.mt-nav {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

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

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

.mt-zone-nm {
    background: var(--grad-hd);
    color: rgba(255,255,255,.92);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.mt-cat-links {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.mt-cat-links a {
    font-size: .82rem;
    color: var(--txt-sub);
    padding: 4px 5px;
    border-radius: var(--radius-sm);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.mt-cat-links a:hover {
    background: var(--bg-pink);
    color: var(--coral);
    border-color: var(--bdr-pink);
}

.mt-cat-links a.active {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(240,82,74,.25);
}

/* ===== SEARCH BAR ===== */
.mt-srch {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

.mt-srch form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.mt-srch input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-main);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.mt-srch input[type="text"]:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(240,96,144,.12);
    background: var(--bg-white);
}

.mt-srch button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(124,77,255,.15);
    color: var(--violet-dk);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}

.mt-srch button:hover { background: rgba(124,77,255,.25); transform: translateY(-1px); }

.mt-srch button[value="1"] {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 2px 8px rgba(240,82,74,.22);
}
.mt-srch button[value="1"]:hover { opacity: .9; }

.mt-srch button[value="2"] {
    background: var(--grad-btn2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,77,255,.22);
}
.mt-srch button[value="2"]:hover { opacity: .9; }

/* ===== HOT TAGS ===== */
.mt-hotbox {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

.mt-hotbox h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 5px;
}

.mt-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mt-tag-cloud .mt-tag {
    display: inline-block;
    background: var(--bg-pink);
    color: var(--txt-sub);
    border: 1px solid var(--bdr-pink);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.mt-tag-cloud .mt-tag:hover {
    background: var(--grad-tag);
    color: #fff;
    border-color: transparent;
}

/* ===== CONTENT SECTION ===== */
.mt-sect {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-lg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

.mt-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bdr);
    position: relative;
}

.mt-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 52px;
    height: 2px;
    background: var(--grad-btn);
    border-radius: 2px;
}

.mt-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt-hd);
}

.mt-sect-hd h3 a { color: var(--txt-hd); }
.mt-sect-hd h3 a:hover { color: var(--coral); }

.mt-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt-hd);
}

/* ===== FILM GRID ===== */
.mt-vgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mt-vgrid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--grad-card);
    transition: box-shadow .2s, transform .2s;
}

.mt-vgrid li:hover {
    box-shadow: var(--shade3);
    transform: translateY(-3px);
    border-color: var(--bdr-pink);
}

.mt-vthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-pink);
}

.mt-vthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.mt-vthumb:hover img { transform: scale(1.07); }

.mt-vcap {
    padding: 5px 7px 7px;
}

.mt-vcap h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt-main);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mt-vcap h5 a { color: var(--txt-main); }
.mt-vcap h5 a:hover { color: var(--coral); }

/* ===== PAGINATION ===== */
.mt-pager {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

.mt-pg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.mt-pg-row a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .18s;
}

.mt-pg-row a.pgb:hover {
    background: var(--bg-pink);
    border-color: var(--bdr-pink);
    color: var(--coral);
}

.mt-pg-row a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--grad-btn);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 10px rgba(240,82,74,.28);
}

/* ===== FOOTER ===== */
.mt-ftr {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

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

.mt-flinks dd { display: inline; }

.mt-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-muted);
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .18s;
}

.mt-flinks a:hover { color: var(--coral); border-color: var(--bdr-pink); background: var(--bg-pink); }

.mt-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt-muted);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.mt-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
    position: relative;
    overflow: hidden;
}

.mt-dtl-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-btn);
}

.mt-dtl-title a {
    color: var(--coral);
    font-weight: 700;
    margin-right: 6px;
}

.mt-dtl-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
    margin: 5px 0;
}

.mt-capture {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.mt-capture picture,
.mt-capture img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

/* ===== DL BUTTONS ===== */
.mt-btn-grp {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.mt-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(240,82,74,.28);
}

.mt-action-btn:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,82,74,.36);
}

.mt-dl-hint {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.mt-dl-hint a { color: var(--violet); font-weight: 600; }
.mt-dl-hint a:hover { color: var(--coral); }

/* ===== SHARE BAR ===== */
.mt-shrbar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.mt-shrbar .mshr-lbl { font-size: .77rem; color: var(--txt-muted); white-space: nowrap; }
.mt-shrbar .mshr-url { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.mt-shrbar .mshr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.mt-shrbar .mshr-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ===== VISIBILITY HELPERS ===== */
.mt-pcvis { display: block; }
.mt-mbvis { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .mt-vgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .mt-pcvis { display: none; }
    .mt-mbvis { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .mt-sitename { font-size: 1.1rem; }
    .mt-domain .mtd-url { font-size: .92rem; }

    .mt-nav-row { align-items: stretch; }

    .mt-zone-nm {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mt-cat-links {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .mt-cat-links a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: one row no wrap */
    .mt-srch form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .mt-srch input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 7px;
    }

    .mt-srch button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

    /* Film grid: 2 cols */
    .mt-vgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .mt-vthumb { aspect-ratio: 600 / 350; }
    .mt-vcap h5 { font-size: .72rem; }
    .mt-sect { padding: 9px 9px 7px; }
    .mt-action-btn { padding: 9px 18px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .mt-zone-nm { font-size: 10px; }
    .mt-cat-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .mt-zone-nm { font-size: 10px; }
    .mt-cat-links a { font-size: 12px; }
    .mt-srch button { padding: 0 5px; font-size: .68rem; }
}
