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

:root {
    --bg: #121212;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    --bg-input: #2c2c2c;
    --neon-pink: #ff6188;
    --neon-cyan: #00e5ff;
    --neon-green: #69ff47;
    --neon-purple: #c678dd;
    --neon-yellow: #ffd866;
    --neon-orange: #fc9867;
    --accent: #ff6188;
    --accent2: #00e5ff;
    --txt: #f0f0f0;
    --txt2: #b0b0b0;
    --txt3: #666666;
    --border: #2e2e2e;
    --border2: #3a3a3a;
    --shadow1: 0 2px 8px rgba(0,0,0,.4);
    --shadow2: 0 4px 18px rgba(0,0,0,.55);
    --shadow3: 0 6px 28px rgba(0,0,0,.7);
    --radius: 10px;
    --radius2: 7px;
    --radius3: 24px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.g-header {
    background: #0d0d0d;
    border-bottom: 2px solid var(--border);
    padding: 9px 0;
}

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

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

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

.g-site-name {
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--txt);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -.2px;
    background: linear-gradient(90deg, var(--neon-pink) 0%, var(--neon-cyan) 50%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius3);
    padding: 4px 14px;
}

.g-domain-tag .dt-lbl {
    font-size: 0.68rem;
    color: var(--txt3);
    white-space: nowrap;
}

.g-domain-tag .dt-val {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--neon-cyan);
    white-space: nowrap;
    letter-spacing: .3px;
}

/* ===== BANNER ===== */
.g-banner {
    margin: 5px 0 4px;
    border-radius: var(--radius);
    overflow: hidden;
}
.g-banner img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.g-nav-block {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

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

.g-zone-tag {
    background: #181818;
    color: var(--txt2);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.g-zone-links a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 4px;
    border-radius: var(--radius3);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1.5px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.g-zone-links a:hover {
    background: rgba(255,97,136,.12);
    color: var(--neon-pink);
    border-color: rgba(255,97,136,.35);
}

.g-zone-links a.active {
    background: var(--neon-pink);
    color: #fff;
    border-color: var(--neon-pink);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.g-search-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

.g-search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius3);
    padding: 0 16px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-input);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.g-search-box input[type="text"]::placeholder { color: var(--txt3); }

.g-search-box input[type="text"]:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}

.g-search-box button {
    height: 38px;
    padding: 0 13px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius3);
    background: var(--bg-input);
    color: var(--txt2);
    font-size: .81rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}

.g-search-box button:hover { border-color: var(--txt2); color: var(--txt); }

.g-search-box button[value="1"] {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: #fff;
}
.g-search-box button[value="1"]:hover {
    background: #e8436f;
    border-color: #e8436f;
}

.g-search-box button[value="2"] {
    background: var(--neon-yellow);
    border-color: var(--neon-yellow);
    color: #111;
}
.g-search-box button[value="2"]:hover {
    background: #e8c040;
    border-color: #e8c040;
}

/* ===== HOT TAGS ===== */
.g-hot-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.g-hot-box h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--neon-yellow);
    margin-bottom: 6px;
}

.g-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.g-tag-row .g-tag {
    display: inline-block;
    background: var(--bg-input);
    color: var(--txt2);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius3);
    padding: 3px 11px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
    font-weight: 500;
}

.g-tag-row .g-tag:hover {
    background: rgba(0,229,255,.1);
    color: var(--neon-cyan);
    border-color: rgba(0,229,255,.4);
    transform: translateY(-1px);
}

/* ===== CONTENT SECTION ===== */
.g-section {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 13px 11px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

.g-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--border);
    position: relative;
}

.g-sec-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 2px;
}

.g-sec-head h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--txt);
}

.g-sec-head h3 a { color: var(--txt); }
.g-sec-head h3 a:hover { color: var(--neon-pink); }

.g-sec-head h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
}

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

.g-grid li {
    border-radius: var(--radius2);
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: #181818;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.g-grid li:hover {
    box-shadow: var(--shadow3);
    transform: translateY(-3px);
    border-color: var(--neon-pink);
}

.g-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: #1a1a1a;
}

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

.g-thumb:hover img { transform: scale(1.06); }

.g-caption {
    padding: 5px 7px 7px;
}

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

.g-caption h5 a { color: var(--txt2); }
.g-caption h5 a:hover { color: var(--neon-cyan); }

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

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

.g-pager-btns a.gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius2);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.g-pager-btns a.gp-btn:hover {
    background: rgba(255,97,136,.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.g-pager-btns a.gp-btn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--neon-pink);
    border: 1.5px solid var(--neon-pink);
    border-radius: var(--radius2);
    font-size: .83rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 0 12px rgba(255,97,136,.4);
}

/* ===== FOOTER ===== */
.g-flinks-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

.g-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.g-flinks dd { display: inline; }

.g-flinks a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 10px;
    border-radius: var(--radius3);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    text-decoration: none;
    transition: all .18s;
}

.g-flinks a:hover {
    color: var(--neon-cyan);
    border-color: rgba(0,229,255,.4);
    background: rgba(0,229,255,.06);
}

.g-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.g-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .96rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    border-top: 3px solid var(--neon-pink);
}

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

.g-dtl-info {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    margin: 5px 0;
    color: var(--txt2);
}

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

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

/* ===== DL BUTTONS ===== */
.g-dl-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}

.g-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--neon-pink);
    color: #fff;
    border: none;
    border-radius: var(--radius3);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255,97,136,.35);
}

.g-dl-btn:hover {
    background: #e8436f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255,97,136,.55);
}

.g-cli-tip {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.g-cli-tip a { color: var(--neon-cyan); font-weight: 600; }
.g-cli-tip a:hover { color: var(--neon-pink); }

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

.g-share .gs-lbl { font-size: .76rem; color: var(--txt3); white-space: nowrap; }
.g-share .gs-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.g-share .gs-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--neon-cyan);
    color: #111;
    border: none;
    border-radius: var(--radius3);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    flex-shrink: 0;
}

.g-share .gs-btn:hover {
    background: #00c8e0;
    transform: translateY(-1px);
}

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

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

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

    .g-site-name { font-size: 1.1rem; }
    .g-domain-tag .dt-val { font-size: .9rem; }

    .g-nav-line { align-items: stretch; }

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

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

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

    /* Search: all in one row, no wrap */
    .g-search-box form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .g-search-box input[type="text"] {
        height: 34px;
        font-size: .76rem;
        padding: 0 8px;
    }

    .g-search-box button {
        height: 34px;
        padding: 0 7px;
        font-size: .71rem;
    }

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

    .g-thumb { aspect-ratio: 600 / 350; }
    .g-caption h5 { font-size: .71rem; }
    .g-section { padding: 10px 10px 8px; }
    .g-dl-btn { padding: 9px 15px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .g-zone-tag { font-size: 10px; }
    .g-zone-links a { font-size: 12px; }
    .g-search-box button { padding: 0 5px; font-size: .65rem; }
}
