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

:root {
    --bg-root: #111111;
    --bg-card: #1c1c1c;
    --bg-card2: #222222;
    --bg-card3: #2a2a2a;
    --bg-input: #242424;
    --indigo: #4353ff;
    --indigo-dk: #3242e8;
    --indigo-lt: rgba(67,83,255,.18);
    --indigo-glow: rgba(67,83,255,.35);
    --white: #ffffff;
    --white80: rgba(255,255,255,.80);
    --white55: rgba(255,255,255,.55);
    --white30: rgba(255,255,255,.30);
    --white12: rgba(255,255,255,.12);
    --white08: rgba(255,255,255,.08);
    --white05: rgba(255,255,255,.05);
    --txt: #ffffff;
    --txt2: rgba(255,255,255,.80);
    --txt3: rgba(255,255,255,.45);
    --bdr: rgba(255,255,255,.10);
    --bdr2: rgba(255,255,255,.18);
    --sh1: 0 1px 4px rgba(0,0,0,.4);
    --sh2: 0 2px 12px rgba(0,0,0,.5);
    --sh3: 0 6px 24px rgba(0,0,0,.6);
    --r: 10px;
    --r2: 7px;
    --r3: 12px;
}

html { font-size: 15px; }

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

a { color: #a5b4fc; text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

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

/* ===== SITE HEADER ===== */
.fp-header {
    background: #111111;
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
}

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

.fp-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

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

.fp-sitename {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--white);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.fp-domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white08);
    border: 1px solid var(--bdr2);
    border-radius: 22px;
    padding: 4px 14px;
}

.fp-domain-chip .dc-label {
    font-size: 0.7rem;
    color: var(--white30);
    white-space: nowrap;
}

.fp-domain-chip .dc-url {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.fp-promo {
    margin: 4px 0 3px;
}
.fp-promo img { border-radius: var(--r); width: 100%; }

/* ===== CATEGORY NAV ===== */
.fp-navboard {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.fp-navrow:last-child { border-bottom: none; }

.fp-zone-tag {
    background: var(--bg-card3);
    color: var(--white55);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--bdr);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.fp-navlinks a {
    font-size: .82rem;
    color: var(--white55);
    padding: 3px 6px;
    border-radius: var(--r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.fp-navlinks a:hover {
    background: var(--indigo-lt);
    color: var(--white);
    border-color: rgba(67,83,255,.4);
}

.fp-navlinks a.active {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.fp-searchpanel {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.fp-searchpanel input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--bdr2);
    border-radius: 20px;
    padding: 0 16px;
    font-size: .88rem;
    color: var(--white);
    background: var(--bg-input);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.fp-searchpanel input[type="text"]::placeholder { color: var(--white30); }

.fp-searchpanel input[type="text"]:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px var(--indigo-glow);
}

.fp-searchpanel button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: 20px;
    background: var(--bg-card3);
    color: var(--white80);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    font-family: inherit;
    border: 1px solid var(--bdr2);
}

.fp-searchpanel button:hover {
    background: var(--white12);
    color: var(--white);
    border-color: var(--white30);
}

.fp-searchpanel button[value="1"] {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}
.fp-searchpanel button[value="1"]:hover { background: var(--indigo-dk); }

.fp-searchpanel button[value="2"] {
    background: transparent;
    color: #a5b4fc;
    border: 1px solid rgba(67,83,255,.5);
}
.fp-searchpanel button[value="2"]:hover {
    background: var(--indigo-lt);
    color: #fff;
}

/* ===== HOT TAGS ===== */
.fp-tagpanel {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.fp-tagpanel h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--white80);
    margin-bottom: 5px;
}

.fp-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fp-taglist .fp-tag {
    display: inline-block;
    background: var(--white05);
    color: var(--white55);
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.fp-taglist .fp-tag:hover {
    background: var(--indigo-lt);
    color: var(--white);
    border-color: rgba(67,83,255,.45);
}

/* ===== CONTENT SECTION ===== */
.fp-module {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.fp-module-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 2px;
    background: var(--indigo);
    border-radius: 2px;
}

.fp-module-hd h3 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--white);
}

.fp-module-hd h3 a { color: var(--white); }
.fp-module-hd h3 a:hover { color: #a5b4fc; }

.fp-module-hd h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
}

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

.fp-grid li {
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--bg-card2);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.fp-grid li:hover {
    box-shadow: 0 6px 24px rgba(67,83,255,.25);
    transform: translateY(-2px);
    border-color: rgba(67,83,255,.35);
}

.fp-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-card3);
}

.fp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.fp-cover:hover img { transform: scale(1.04); }

.fp-item-caption {
    padding: 5px 7px 7px;
}

.fp-item-caption h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--white80);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-item-caption h5 a { color: var(--white80); }
.fp-item-caption h5 a:hover { color: #fff; }

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

.fp-pgnums {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.fp-pgnums a.fpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card2);
    border: 1px solid var(--bdr2);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--white55);
    text-decoration: none;
    transition: all .15s;
}

.fp-pgnums a.fpg:hover {
    background: var(--indigo-lt);
    border-color: rgba(67,83,255,.45);
    color: var(--white);
}

.fp-pgnums a.fpg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--indigo);
    border: 1px solid var(--indigo);
    border-radius: var(--r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 10px var(--indigo-glow);
}

/* ===== FOOTER ===== */
.fp-flinks-wrap {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.fp-flinks dd { display: inline; }

.fp-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--white30);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: var(--white05);
    text-decoration: none;
    transition: all .15s;
}

.fp-flinks a:hover {
    color: var(--white);
    border-color: var(--bdr2);
    background: var(--white12);
}

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

/* ===== DETAIL PAGES ===== */
.fp-entry-bar {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-left: 3px solid var(--indigo);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    color: var(--white80);
}

.fp-entry-bar a {
    color: #a5b4fc;
    font-weight: 700;
    margin-right: 6px;
}

.fp-entry-bar a:hover { color: #fff; }

.fp-entry-detail {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--white80);
}

.fp-snap-box {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.fp-snap-box picture,
.fp-snap-box img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

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

.fp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 24px;
    background: var(--indigo);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 3px 14px var(--indigo-glow);
}

.fp-cta-btn:hover {
    background: var(--indigo-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--indigo-glow);
}

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

.fp-dl-note a { color: var(--white55); font-weight: 600; }
.fp-dl-note a:hover { color: var(--white); }

/* ===== SHARE BAR ===== */
.fp-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.fp-share-bar .sb-lbl { font-size: .77rem; color: var(--white30); white-space: nowrap; }
.fp-share-bar .sb-url { font-size: .79rem; color: var(--white55); flex: 1; min-width: 0; word-break: break-all; }

.fp-share-bar .sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--indigo);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.fp-share-bar .sb-btn:hover { background: var(--indigo-dk); }

/* ===== VIS HELPERS ===== */
.for-pc { display: block; }
.for-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .fp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .for-pc { display: none; }
    .for-mb { display: block; }
}

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

    .fp-sitename { font-size: 1.06rem; }
    .fp-domain-chip .dc-url { font-size: .94rem; }

    .fp-navrow { align-items: stretch; }

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

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

    .fp-navlinks a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: single row, no wrap */
    .fp-searchpanel form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .fp-searchpanel input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 10px;
    }

    .fp-searchpanel button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

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

    .fp-cover { aspect-ratio: 600 / 350; }
    .fp-item-caption h5 { font-size: .72rem; }
    .fp-module { padding: 9px 9px 7px; }
    .fp-cta-btn { padding: 9px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .fp-zone-tag { font-size: 10px; }
    .fp-navlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .fp-zone-tag { font-size: 10px; }
    .fp-navlinks a { font-size: 12px; }
    .fp-searchpanel button { padding: 0 5px; font-size: .68rem; }
}
