:root {
    --pk: #e91e8c;
    --pk2: #ff4db8;
    --pk3: #c2006e;
    --bg: #fff0f7;
    --bg2: #fce4f3;
    --dark: #1a0010;
    --text: #2d0020;
    --text2: #7a3060;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border: #f5b8de;
    --accent: #ff8c00;
    --accent2: #ffd700;
    --nav-bg: #fef0fa;
    --nav-label-bg: #e91e8c;
    --shadow: 0 2px 12px rgba(233,30,140,0.10);
    --radius: 10px;
    --radius-sm: 6px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--pk); text-decoration: none; }
a:hover { color: var(--pk3); }

img { max-width: 100%; display: block; }

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

/* ===== LAYOUT ===== */
.wrap-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.inner-box {
    width: 100%;
}

.section-gap { margin-bottom: 8px; }

/* ===== HEADER / BRANDING ===== */
.site-header-bar {
    background: linear-gradient(135deg, var(--pk) 0%, #c2006e 60%, #8b004f 100%);
    padding: 10px 0 8px;
    border-bottom: 3px solid var(--pk3);
}

.site-header-bar .wrap-box { display: flex; align-items: center; justify-content: space-between; }

.brand-zone {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.brand-title-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    text-decoration: none !important;
    font-style: normal;
    border-bottom: none !important;
}

.brand-domain-zone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 3px 14px;
}

.brand-domain-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.brand-domain-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent2);
    letter-spacing: 1px;
}

/* ===== PROMO BANNER ===== */
.promo-wrap {
    width: 100%;
    overflow: hidden;
}

.promo-wrap a { display: block; }
.promo-wrap img { width: 100%; display: block; }

/* ===== NAV SECTION ===== */
.nav-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
}

.nav-group-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

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

.nav-zone-label {
    width: 15%;
    min-width: 44px;
    max-width: 80px;
    background: var(--nav-label-bg);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 2px;
    line-height: 1.3;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.nav-links-zone {
    width: 85%;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 4px;
    gap: 3px;
}

.nav-links-zone a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    flex: 1 0 calc(25% - 3px);
    max-width: calc(25% - 3px);
    min-width: 0;
    text-align: center;
}

.nav-links-zone a:hover,
.nav-links-zone a.active {
    background: var(--pk);
    color: var(--white);
    font-weight: 700;
}

/* ===== SEARCH BOX ===== */
.search-zone {
    background: var(--white);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.search-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 160px;
    height: 38px;
    padding: 0 14px;
    border: 2px solid var(--pk);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="text"]:focus { border-color: var(--pk3); }

.search-form button {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 20px;
    background: var(--pk);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-form button:hover { background: var(--pk3); }

/* ===== HOT SEARCH TAGS ===== */
.hot-tags-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.hot-tags-block h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pk);
    margin-bottom: 8px;
}

.tags-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags-flex-row a {
    display: inline-block;
    padding: 3px 12px;
    background: var(--bg2);
    color: var(--text2);
    border-radius: 14px;
    font-size: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tags-flex-row a:hover {
    background: var(--pk);
    color: var(--white);
    border-color: var(--pk);
}

/* ===== SECTION HEADINGS ===== */
.film-section { margin-bottom: 8px; }

.film-section-inner { width: 100%; }

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--pk);
}

.section-title-bar h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--pk);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title-bar h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--pk);
    border-radius: 2px;
}

.section-title-bar a { color: var(--pk); font-size: 13px; }

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

.film-grid li {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.18s, box-shadow 0.18s;
}

.film-grid li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233,30,140,0.18);
}

.film-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg2);
}

.film-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.film-meta {
    padding: 6px 8px;
}

.film-meta h5 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-meta h5 a {
    color: var(--text);
    text-decoration: none;
}

.film-meta h5 a:hover { color: var(--pk); }

/* ===== PAGINATION ===== */
.pager-zone {
    text-align: center;
    padding: 14px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pager-zone a,
.pager-zone .a_page_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.pager-zone a:hover,
.pager-zone .a_page_info:hover { background: var(--pk); color: var(--white); border-color: var(--pk); }

.pager-zone .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--pk);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}

/* ===== TORRENT DETAIL ===== */
.torrent-title-box {
    line-height: 1.8;
    text-align: center;
    padding: 16px;
    font-size: 17px;
    margin: 12px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(233,30,140,0.08) 0%, rgba(255,77,184,0.05) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.torrent-title-box a {
    color: var(--pk);
    font-weight: 700;
    margin-right: 8px;
}

.torrent-info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    margin: 10px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.capture-grid-layout {
    width: 100%;
    margin-top: 10px;
}

.capture-grid-layout picture,
.capture-grid-layout img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.btn-action-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.btn-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 24px;
    background: var(--pk);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.btn-dl:hover {
    background: var(--pk3);
    transform: translateY(-2px);
    color: var(--white);
}

.client-dl-info {
    text-align: center;
    padding: 12px 0;
}

.client-dl-info a {
    color: var(--pk);
    font-weight: 600;
    font-size: 14px;
}

/* ===== SHARE BOX ===== */
.share-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-url-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    overflow: hidden;
}

.share-lbl {
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
    background: var(--bg2);
    padding: 2px 8px;
    border-radius: 10px;
}

.share-url-val {
    font-size: 12px;
    color: var(--pk3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.share-copy-button {
    background: var(--pk);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-copy-button:hover { background: var(--pk3); }

/* ===== FRIENDLINKS ===== */
.friendlinks-block {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 8px;
}

.friendlinks-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--pk);
    margin-bottom: 8px;
}

.fl-wrap dl { margin: 0; padding: 0; }

.fl-wrap dd {
    display: inline-block;
    margin: 3px 4px;
}

.fl-wrap dd a {
    color: var(--text2);
    font-size: 12px;
    padding: 2px 8px;
    background: var(--bg2);
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.fl-wrap dd a:hover {
    background: var(--pk);
    color: var(--white);
    border-color: var(--pk);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, var(--pk3) 0%, var(--dark) 100%);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    margin-top: 10px;
}

.site-footer a { color: rgba(255,255,255,0.85); }

/* ===== VIDEO PAGE ===== */
.video-title-box {
    line-height: 1.8;
    text-align: center;
    padding: 16px;
    font-size: 17px;
    margin: 12px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(233,30,140,0.08) 0%, rgba(255,77,184,0.05) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.video-title-box a {
    color: var(--pk);
    font-weight: 700;
    margin-right: 8px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .brand-title-text { font-size: 18px; }
    .brand-domain-val { font-size: 14px; }

    .nav-zone-label {
        font-size: 10px;
        width: 15%;
        min-width: 40px;
    }

    .nav-links-zone {
        width: 85%;
    }

    .nav-links-zone a {
        font-size: 12px;
        flex: 1 0 calc(25% - 3px);
        max-width: calc(25% - 3px);
        padding: 4px 2px;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .search-form input[type="text"] { font-size: 13px; }

    .btn-action-row { gap: 8px; }
    .btn-dl { padding: 9px 16px; font-size: 14px; }

    .share-panel { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .nav-links-zone a {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .nav-zone-label {
        font-size: 13px;
        width: auto;
        min-width: 70px;
        max-width: 90px;
    }

    .nav-links-zone a {
        font-size: 14px;
        flex: 1 0 calc(12.5% - 3px);
        max-width: calc(12.5% - 3px);
    }

    .film-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* hide_mobile / hide_pc */
@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }
