:root {
    --g-green: #5cb800;
    --g-green-dark: #4a9600;
    --g-green-nav: #6dc21e;
    --g-green-light: #e8f5d0;
    --g-green-pale: #f3fae8;
    --g-orange: #f57c00;
    --g-orange-light: #fff3e0;
    --g-red: #e53935;
    --g-red-soft: #ffebee;
    --g-yellow: #fdd835;
    --g-yellow-dark: #f9a825;
    --g-bg: #f0f0f0;
    --g-white: #ffffff;
    --g-border: #d4d4d4;
    --g-border2: #c5e8a0;
    --g-text: #333333;
    --g-text-dim: #555555;
    --g-text-muted: #999999;
    --g-title: #2e7d00;
    --r-xs: 2px;
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 8px;
    --sh: 0 1px 3px rgba(0,0,0,0.12);
    --sh2: 0 2px 8px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--g-bg);
    color: var(--g-text);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--g-green-dark); }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.gp-box {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

.cf::after { content: ''; display: table; clear: both; }

/* ===== TOP HEADER / BRAND ===== */
.gp-topbar {
    background: linear-gradient(180deg, #72cc20 0%, #5cb800 50%, #4a9600 100%);
    border-bottom: 2px solid #3d8000;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.gp-topbar .gp-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.gp-site-name {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.2);
    white-space: nowrap;
}

.gp-site-name:hover { color: #ffffcc; }

.gp-domain-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--r-sm);
    padding: 3px 12px;
}

.gp-domain-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    font-weight: 600;
}

.gp-domain-val {
    font-size: 15px;
    font-weight: 800;
    color: #ffffcc;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ===== BANNER ===== */
.gp-banner-zone { margin: 4px 0; }
.gp-banner-zone img { border-radius: var(--r-sm); box-shadow: var(--sh); }

/* ===== NAV TABLE ===== */
.gp-nav-table {
    background: var(--g-white);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh);
}

.gp-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e8f5d0;
}

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

.gp-zone-cell {
    background: linear-gradient(180deg, #7dd630 0%, #5cb800 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
    width: 15%;
    min-width: 40px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.gp-nav-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    padding: 3px 6px;
    gap: 2px;
    align-items: center;
    background: var(--g-white);
}

.gp-nav-links a {
    color: var(--g-text-dim);
    font-size: 13px;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}

.gp-nav-links a:hover,
.gp-nav-links a.active {
    background: var(--g-green);
    color: #fff;
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.gp-searchbar {
    background: var(--g-white);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-md);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh);
}

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

.gp-searchbar input[type="text"] {
    flex: 1;
    min-width: 0;
    background: var(--g-green-pale);
    border: 1.5px solid var(--g-border2);
    border-radius: var(--r-sm);
    color: var(--g-text);
    font-size: 13px;
    padding: 6px 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.gp-searchbar input[type="text"]:focus { border-color: var(--g-green); }
.gp-searchbar input[type="text"]::placeholder { color: var(--g-text-muted); }

.gp-searchbar button {
    background: linear-gradient(180deg, #7dd630 0%, #5cb800 100%);
    color: #fff;
    border: 1px solid #4a9600;
    border-radius: var(--r-sm);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.12s, transform 0.1s;
    font-family: inherit;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.gp-searchbar button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== HOT TAGS ===== */
.gp-hottags {
    background: var(--g-white);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-md);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh);
}

.gp-hottags h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--g-orange);
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.gp-tag-list a {
    display: inline-block;
    background: var(--g-green-light);
    border: 1px solid var(--g-border2);
    color: var(--g-green-dark);
    font-size: 12px;
    padding: 2px 9px;
    border-radius: var(--r-xs);
    transition: all 0.12s;
    font-weight: 500;
}

.gp-tag-list a:hover {
    background: var(--g-green);
    color: #fff;
    border-color: var(--g-green);
}

/* ===== SECTION HEADING ===== */
.gp-sec-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 2px solid var(--g-green);
}

.gp-sec-head::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--g-orange);
    border-radius: 2px;
    flex-shrink: 0;
    transform: rotate(45deg);
}

.gp-sec-head h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--g-title);
    letter-spacing: 0.3px;
}

.gp-sec-head h3 a { color: inherit; }
.gp-sec-head h3 a:hover { color: var(--g-orange); }

.gp-sec-head h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--g-title);
}

.gp-count-tag {
    font-size: 0.78em;
    font-weight: 400;
    color: var(--g-text-muted);
    margin-left: 5px;
}

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

.gp-media-grid li {
    min-width: 0;
}

.gp-cover-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: #e8e8e8;
    aspect-ratio: 600 / 350;
    box-shadow: var(--sh);
    border: 1px solid var(--g-border);
    transition: transform 0.15s, box-shadow 0.15s;
    width: 100%;
}

.gp-cover-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh2);
    border-color: var(--g-green);
}

.gp-cover-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    transition: transform 0.25s;
}

.gp-cover-link:hover img { transform: scale(1.05); }

.gp-title-cell { padding: 4px 1px 2px; }

.gp-title-cell h5 {
    font-size: 12px;
    color: var(--g-text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.gp-title-cell h5 a:hover { color: var(--g-green-dark); }

/* ===== CONTENT BLOCK ===== */
.gp-panel {
    background: var(--g-white);
    border: 1px solid var(--g-border);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin: 4px 0;
    box-shadow: var(--sh);
}

/* ===== PAGE TITLE ===== */
.gp-entry-title {
    background: var(--g-white);
    border: 1px solid var(--g-border2);
    border-left: 4px solid var(--g-green);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
    margin: 4px 0;
    box-shadow: var(--sh);
    color: var(--g-text);
}

.gp-entry-title .gp-cat-ref {
    color: var(--g-green-dark);
    margin-right: 7px;
    font-weight: 800;
}

/* ===== TORRENT META ===== */
.gp-torrent-info {
    background: var(--g-white);
    border: 1px solid var(--g-border);
    border-radius: var(--r-md);
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.9;
    margin: 4px 0;
    box-shadow: var(--sh);
}

.gp-stills picture,
.gp-stills img {
    width: 100%;
    display: block;
    border-radius: var(--r-sm);
    margin-top: 8px;
    border: 1px solid var(--g-border);
}

/* ===== DOWNLOAD BUTTONS ===== */
.gp-dl-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.gp-dl-btn {
    display: inline-block;
    background: linear-gradient(180deg, #7dd630 0%, #5cb800 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 24px;
    border-radius: var(--r-sm);
    border: 1px solid #4a9600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
    box-shadow: 0 2px 6px rgba(92,184,0,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.gp-dl-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 12px rgba(92,184,0,0.45);
}

/* ===== BT CLIENT ===== */
.gp-client-row {
    text-align: center;
    padding: 7px;
    font-size: 12px;
}

.gp-client-row a { color: var(--g-green-dark); font-weight: 700; }
.gp-client-row a:hover { text-decoration: underline; }

/* ===== SHARE ===== */
.gp-share-row {
    background: var(--g-white);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0;
    box-shadow: var(--sh);
}

.gp-share-url-part {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.gp-share-badge {
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    font-weight: 700;
    background: var(--g-green);
    padding: 2px 8px;
    border-radius: var(--r-xs);
}

.gp-share-url {
    font-size: 12px;
    color: var(--g-text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-share-copy {
    background: var(--g-green-light);
    color: var(--g-green-dark);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-sm);
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.12s;
    flex-shrink: 0;
    font-family: inherit;
}

.gp-share-copy:hover {
    background: var(--g-green);
    border-color: var(--g-green);
    color: #fff;
}

/* ===== PLAYER ===== */
.gp-player {
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh2);
}

/* ===== PAGINATION ===== */
.gp-pager {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.gp-pager a,
.gp-pager-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border-radius: var(--r-xs);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.12s;
}

.gp-pager a {
    background: var(--g-white);
    border: 1px solid var(--g-border);
    color: var(--g-text-dim);
}

.gp-pager a:hover {
    background: var(--g-green);
    border-color: var(--g-green);
    color: #fff;
}

.gp-pager-cur {
    background: var(--g-orange);
    color: #fff;
    border: 1px solid var(--g-orange);
}

/* ===== FOOTER LINKS ===== */
.gp-flinks-box {
    background: var(--g-white);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin: 4px 0;
    box-shadow: var(--sh);
}

.gp-flinks-box dl { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-flinks-box dd { margin: 0; }

.gp-flink {
    display: inline-block;
    padding: 2px 10px;
    background: var(--g-green-light);
    border: 1px solid var(--g-border2);
    border-radius: var(--r-xs);
    color: var(--g-green-dark);
    font-size: 12px;
    transition: all 0.12s;
}

.gp-flink:hover {
    background: var(--g-green);
    color: #fff;
    border-color: var(--g-green);
}

.gp-copyright {
    text-align: center;
    padding: 10px 0 6px;
    font-size: 11px;
    color: var(--g-text-muted);
    border-top: 1px solid var(--g-border);
    margin-top: 4px;
}

/* ===== UTILS ===== */
.hide-mobile { display: block; }
.hide-pc { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .gp-media-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .hide-mobile { display: none !important; }
    .hide-pc { display: block !important; }
    .gp-zone-cell { font-size: 10px; width: 15%; min-width: 38px; padding: 4px 2px; }
    .gp-nav-links a { font-size: 12px; padding: 3px 4px; }
}

@media (max-width: 640px) {
    .gp-nav-links { display: grid; grid-template-columns: repeat(4, 1fr); }
    .gp-nav-links a { font-size: 12px; text-align: center; }
    .gp-site-name { font-size: 17px; }
    .gp-domain-val { font-size: 13px; }
    .gp-searchbar button { padding: 6px 8px; font-size: 12px; }
}

@media (min-width: 641px) and (max-width: 960px) {
    .gp-nav-links { display: grid; grid-template-columns: repeat(4, 1fr); }
    .gp-nav-links a { font-size: 13px; text-align: center; }
}

@media (min-width: 961px) {
    .gp-zone-cell { font-size: 12px; width: auto; min-width: 68px; padding: 5px 8px; }
    .gp-nav-links { display: flex; flex-wrap: nowrap; }
    .gp-nav-links a { flex: 1; text-align: center; }
    .gp-media-grid { grid-template-columns: repeat(4, 1fr); }
}
