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

:root {
    /* Navy header / footer background */
    --navy:         #0d0f1e;
    --navy-mid:     #151829;
    --navy-soft:    #1c2038;
    /* Warm off-white content area */
    --cream:        #eceae4;
    --cream-dark:   #e2dfd8;
    --cream-deeper: #d6d2ca;
    /* Card / panel black tones */
    --card-blk:     #111111;
    --card-blk2:    #1a1a1a;
    /* Red accent */
    --red:          #e8334a;
    --red-dk:       #c4243a;
    --red-bg:       rgba(232,51,74,.10);
    /* Text */
    --txt-light:    #f2f0eb;
    --txt-cream:    #c8c4bb;
    --txt-dim:      #8a8680;
    --txt-dark:     #1a1a2a;
    --txt-dark2:    #3a3a4a;
    --txt-muted:    #7a7870;
    /* Borders */
    --bdr-navy:     rgba(255,255,255,.08);
    --bdr-cream:    #ccc9c2;
    --bdr-dark:     #2e3050;
    /* Shadows */
    --shd-xs:       0 1px 4px rgba(0,0,0,.18);
    --shd-sm:       0 3px 12px rgba(0,0,0,.22);
    --shd-md:       0 6px 24px rgba(0,0,0,.28);
    /* Radii */
    --r:            6px;
    --rsm:          4px;
    --rlg:          10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.fx-header {
    background: var(--navy);
    border-bottom: 2px solid var(--red);
    padding: 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

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

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

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

.fx-sitename {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--txt-light);
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
}

.fx-sitename span {
    color: var(--red);
}

.fx-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy-soft);
    border: 1px solid var(--bdr-dark);
    border-radius: 3px;
    padding: 4px 12px;
}

.fx-domain-tag .dt-lbl {
    font-size: 0.67rem;
    color: var(--txt-dim);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fx-domain-tag .dt-url {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--txt-light);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.fx-nav-panel {
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

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

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

.fx-zone-tag {
    background: var(--red);
    color: #fff;
    font-size: .67rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(0,0,0,.2);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

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

.fx-cat-links a:hover {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(232,51,74,.3);
}

.fx-cat-links a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.fx-search {
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

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

.fx-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--bdr-dark);
    border-radius: var(--rsm);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--txt-light);
    background: var(--navy-mid);
    outline: none;
    transition: border-color .2s;
}

.fx-search input[type="text"]::placeholder { color: var(--txt-dim); }
.fx-search input[type="text"]:focus { border-color: var(--red); }

.fx-search button {
    height: 36px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rsm);
    background: var(--navy-soft);
    color: var(--txt-cream);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .17s, color .17s;
    flex-shrink: 0;
    border: 1px solid var(--bdr-dark);
}

.fx-search button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.fx-search button[value="1"] { background: var(--red); color: #fff; border-color: var(--red-dk); }
.fx-search button[value="1"]:hover { background: var(--red-dk); }
.fx-search button[value="2"] { background: var(--navy-soft); color: var(--txt-cream); }
.fx-search button[value="2"]:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== HOT TAGS ===== */
.fx-hotbox {
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

.fx-hotbox h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fx-tags .fx-tag {
    display: inline-block;
    background: var(--navy-soft);
    color: var(--txt-cream);
    border: 1px solid var(--bdr-dark);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .17s;
}

.fx-tags .fx-tag:hover {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(232,51,74,.35);
}

/* ===== CONTENT SECTION ===== */
.fx-sect {
    background: var(--cream-dark);
    border: 1px solid var(--bdr-cream);
    border-radius: var(--rlg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shd-xs);
}

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

.fx-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.fx-sect-hd h3 {
    font-size: .97rem;
    font-weight: 900;
    color: var(--txt-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fx-sect-hd h3 a { color: var(--txt-dark); }
.fx-sect-hd h3 a:hover { color: var(--red); }

.fx-sect-hd h4 {
    font-size: .94rem;
    font-weight: 900;
    color: var(--txt-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

.fx-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--bdr-cream);
    background: var(--card-blk);
    transition: box-shadow .2s, transform .2s;
}

.fx-grid li:hover {
    box-shadow: var(--shd-md);
    transform: translateY(-2px);
    border-color: var(--red);
}

.fx-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--card-blk2);
}

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

.fx-thumb:hover img { transform: scale(1.05); }

.fx-cap {
    padding: 5px 7px 7px;
    background: var(--card-blk);
}

.fx-cap h5 {
    font-size: .77rem;
    font-weight: 500;
    color: var(--txt-cream);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fx-cap h5 a { color: var(--txt-cream); }
.fx-cap h5 a:hover { color: var(--red); }

/* ===== PAGINATION ===== */
.fx-pager {
    margin: 13px 0 5px;
    display: flex;
    justify-content: center;
}

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

.fx-pgbtns a.fpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--cream-dark);
    border: 1px solid var(--bdr-cream);
    border-radius: var(--rsm);
    font-size: .83rem;
    color: var(--txt-dark2);
    text-decoration: none;
    transition: all .17s;
}

.fx-pgbtns a.fpb:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.fx-pgbtns a.fpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--rsm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.fx-flinks {
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shd-xs);
}

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

.fx-flink-dl dd { display: inline; }

.fx-flink-dl a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt-dim);
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid var(--bdr-dark);
    background: var(--navy-mid);
    text-decoration: none;
    transition: all .17s;
}

.fx-flink-dl a:hover { color: var(--red); border-color: rgba(232,51,74,.4); }

.fx-copyright {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt-muted);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.fx-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-left: 4px solid var(--red);
    border-radius: var(--r);
    box-shadow: var(--shd-xs);
    color: var(--txt-light);
}

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

.fx-dtl-info {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--r);
    box-shadow: var(--shd-xs);
    margin: 5px 0;
    color: var(--txt-cream);
}

.fx-preview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.fx-preview picture,
.fx-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--rsm);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.fx-btnrow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: var(--navy);
    color: var(--txt-light);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--rsm);
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .14s, color .2s, border-color .2s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fx-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red-dk);
    transform: translateY(-1px);
}

.fx-cli-tip {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.fx-cli-tip a { color: var(--red); font-weight: 600; }
.fx-cli-tip a:hover { color: var(--red-dk); }

/* ===== SHARE BAR ===== */
.fx-sharebar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.fx-sharebar .fsb-lbl { font-size: .76rem; color: var(--txt-dim); white-space: nowrap; }
.fx-sharebar .fsb-url { font-size: .78rem; color: var(--txt-cream); flex: 1; min-width: 0; word-break: break-all; }

.fx-sharebar .fsb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: var(--navy-soft);
    color: var(--txt-cream);
    border: 1px solid var(--bdr-dark);
    border-radius: var(--rsm);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .17s, color .17s, border-color .17s;
    flex-shrink: 0;
}

.fx-sharebar .fsb-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== VISIBILITY ===== */
.dsp-pc { display: block; }
.dsp-mb { display: none; }

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

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

    .fx-sitename { font-size: 1.05rem; }
    .fx-domain-tag .dt-url { font-size: .9rem; }

    .fx-nav-strip { align-items: stretch; }

    .fx-zone-tag {
        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;
    }

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

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

    /* Search: no wrap */
    .fx-search form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .fx-search input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 6px;
    }

    .fx-search button {
        height: 34px;
        padding: 0 6px;
        font-size: .72rem;
    }

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

    .fx-thumb { aspect-ratio: 600 / 350; }
    .fx-cap h5 { font-size: .71rem; }
    .fx-sect { padding: 9px 9px 7px; }
    .fx-btn { padding: 9px 13px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .fx-zone-tag { font-size: 10px; }
    .fx-cat-links a { font-size: 12px; }
    .fx-search button { padding: 0 4px; font-size: .66rem; }
}
