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

:root {
    --bg: #121212;
    --bg-card: #1e1e1e;
    --bg-muted: #282828;
    --bg-hover: #323232;
    --white: #ffffff;
    --search-bg: #ffffff;
    --pink: #e646b6;
    --cyan: #00ccff;
    --green: #00ff99;
    --purple: #9b59f5;
    --yellow: #ffcc00;
    --txt: #e8e8e8;
    --txt2: #aaaaaa;
    --txt3: #666666;
    --border: #2e2e2e;
    --border2: #3e3e3e;
    --sh1: 0 1px 6px rgba(0,0,0,.7);
    --sh2: 0 4px 18px rgba(0,0,0,.8);
    --sh3: 0 8px 30px rgba(0,0,0,.85);
    --gp: 6px;
    --gp2: 4px;
    --gp3: 12px;
    --rainbow: linear-gradient(90deg, #e646b6, #9b59f5, #00ccff, #00ff99, #ffcc00);
}

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(--txt2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.gp-cf::after { content: ''; display: table; clear: both; }

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

/* ===== SITE HEADER ===== */
.gp-header {
    background: var(--bg);
    border-bottom: 2px solid transparent;
    border-image: var(--rainbow) 1;
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.7);
}

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

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

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

.gp-sitename {
    font-size: 1.35rem;
    font-weight: 900;
    background: var(--rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
    letter-spacing: -.2px;
    text-decoration: none;
    border-bottom: none;
}

.gp-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-muted);
    border: 1px solid var(--border2);
    border-radius: var(--gp2);
    padding: 4px 12px;
}

.gp-domain-tag .gdt-hint {
    font-size: .67rem;
    color: var(--txt3);
    white-space: nowrap;
}

.gp-domain-tag .gdt-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--cyan);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.gp-navblock {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp3);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.gp-zone-pill {
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border2);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.gp-catrow a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--gp2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.gp-catrow a:hover {
    background: rgba(230,70,182,.12);
    color: var(--pink);
    border-color: rgba(230,70,182,.3);
}

.gp-catrow a.active {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.gp-searchbar {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp3);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.gp-searchbar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: none;
    border-radius: var(--gp2);
    padding: 0 16px;
    font-size: .92rem;
    color: #111;
    background: var(--search-bg);
    outline: none;
    transition: box-shadow .18s;
}

.gp-searchbar input[type="text"]::placeholder { color: #aaa; }
.gp-searchbar input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(230,70,182,.3);
}

.gp-searchbar button {
    height: 38px;
    padding: 0 13px;
    border: none;
    border-radius: var(--gp2);
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.gp-searchbar button:hover { background: var(--bg-hover); color: var(--white); }

.gp-searchbar button[value="1"] {
    background: var(--pink);
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
}
.gp-searchbar button[value="1"]:hover { background: #c8309a; color: #fff; }

.gp-searchbar button[value="2"] {
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
}
.gp-searchbar button[value="2"]:hover { background: #7a3fd6; color: #fff; }

/* ===== HOT TAGS ===== */
.gp-trendbox {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.gp-trendbox h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--txt3);
    margin-bottom: 5px;
    letter-spacing: .4px;
}

.gp-trendbox h4 strong { color: var(--pink); }

.gp-trendlist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gp-trendlist .gptag {
    display: inline-block;
    background: var(--bg-muted);
    color: var(--txt2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.gp-trendlist .gptag:hover {
    background: rgba(230,70,182,.15);
    color: var(--pink);
    border-color: rgba(230,70,182,.35);
}

/* ===== CONTENT SECTION ===== */
.gp-sect {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.gp-sect-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--white);
}

.gp-sect-hd h3 a { color: var(--white); }
.gp-sect-hd h3 a:hover { color: var(--pink); }

.gp-sect-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--white);
}

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

.gp-filmgrid li {
    border-radius: var(--gp);
    overflow: hidden;
    border: 1px solid var(--border2);
    background: var(--bg-muted);
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

.gp-filmgrid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-3px);
}

.gp-filmgrid li:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--gp);
    border: 2px solid var(--pink);
    pointer-events: none;
    z-index: 1;
}

.gp-coverlink {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

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

.gp-coverlink:hover img { transform: scale(1.06); }

.gp-covercap {
    padding: 5px 7px 7px;
}

.gp-covercap h5 {
    font-size: .75rem;
    font-weight: 400;
    color: var(--txt2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gp-covercap h5 a { color: var(--txt2); }
.gp-covercap h5 a:hover { color: var(--pink); }

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

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

.gp-pgrow a.gppg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp2);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.gp-pgrow a.gppg:hover {
    background: rgba(230,70,182,.15);
    border-color: var(--pink);
    color: var(--pink);
}

.gp-pgrow a.gppg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--pink);
    border: 1px solid var(--pink);
    border-radius: var(--gp2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.gp-flinks {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.gp-fldl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.gp-fldl dd { display: inline; }

.gp-fldl a {
    display: inline-block;
    font-size: .74rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--gp2);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    text-decoration: none;
    transition: all .15s;
}

.gp-fldl a:hover { color: var(--pink); border-color: rgba(230,70,182,.35); }

.gp-copyright {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt3);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.gp-item-hd {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-left: 3px solid var(--pink);
    border-radius: var(--gp);
    box-shadow: var(--sh1);
    color: var(--txt);
}

.gp-item-hd a {
    color: var(--cyan);
    font-weight: 700;
    margin-right: 6px;
}

.gp-item-body {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--gp);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--txt2);
}

.gp-snapview {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.gp-snapview picture,
.gp-snapview img {
    width: 100%;
    height: auto;
    border-radius: var(--gp2);
    display: block;
}

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

.gp-dlbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
    letter-spacing: .2px;
}

.gp-dlbtn:hover {
    background: #c8309a;
    color: #fff;
    transform: translateY(-1px);
}

.gp-clientnote {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.gp-clientnote a { color: var(--txt3); font-weight: 600; }
.gp-clientnote a:hover { color: var(--pink); }

/* ===== SHARE ===== */
.gp-shareline {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-muted);
    border: 1px solid var(--border2);
    border-radius: var(--gp);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.gp-shareline .gpsl-lbl { font-size: .73rem; color: var(--txt3); white-space: nowrap; }
.gp-shareline .gpsl-url { font-size: .76rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.gp-shareline .gpsl-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.gp-shareline .gpsl-copy:hover { background: #c8309a; }

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

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

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

    .gp-sitename { font-size: 1.1rem; }
    .gp-domain-tag .gdt-val { font-size: .9rem; }

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

    .gp-zone-pill {
        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;
    }

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

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

    /* Search: NO wrap, all in one row */
    .gp-searchbar form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .gp-searchbar input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 9px;
    }

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

    .gp-filmgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .gp-coverlink { aspect-ratio: 600 / 350; }
    .gp-covercap h5 { font-size: .7rem; }
    .gp-sect { padding: 8px 8px 6px; }
    .gp-dlbtn { padding: 9px 18px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .gp-zone-pill { font-size: 10px; }
    .gp-catrow a { font-size: 13px; }
}

@media (max-width: 380px) {
    .gp-zone-pill { font-size: 10px; }
    .gp-catrow a { font-size: 12px; }
    .gp-searchbar button { padding: 0 4px; font-size: .66rem; }
}
