.zp-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #1a1a1a;
}
.zp-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0ede8;
    padding-bottom: 16px;
}
.zp-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    color: #2b2b2b;
}
.zp-header .zp-sub {
    color: #8a8580;
    font-size: 14px;
    margin-top: 4px;
}
.zp-add-btn {
    display: inline-block;
    background: #e8722c;
    color: #fff;
    padding: 9px 18px;
    border-radius: 22px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.zp-add-btn:hover { background: #d5641f; color: #fff; }

.zp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .zp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .zp-grid { grid-template-columns: 1fr; }
    .zp-header h1 { font-size: 24px; }
}

.zp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0ede8;
    transition: box-shadow .15s ease, transform .15s ease;
}
.zp-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.zp-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg,#f2c94c,#e8722c);
    overflow: hidden;
}
.zp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.zp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.zp-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zp-card-excerpt {
    font-size: 14px;
    color: #5c5852;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.zp-card-meta {
    font-size: 12px;
    color: #a39d95;
    display: flex;
    gap: 10px;
    align-items: center;
}
.zp-badge-manual {
    display: inline-block;
    background: #eef7ee;
    color: #3a8a3a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.zp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.zp-pagination a, .zp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 10px;
    text-decoration: none;
    color: #2b2b2b;
    background: #f5f2ee;
    font-size: 14px;
}
.zp-pagination a:hover { background: #eee0d3; }
.zp-pagination .active { background: #e8722c; color: #fff; font-weight: 700; }

.zp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8a8580;
}

/* Detail page */
.zp-detail-back {
    display: inline-block;
    margin-bottom: 18px;
    color: #8a8580;
    text-decoration: none;
    font-size: 14px;
}
.zp-detail-back:hover { color: #e8722c; }
.zp-detail-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}
.zp-detail-meta {
    color: #a39d95;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.zp-detail-gallery {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}
.zp-detail-gallery img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.zp-detail-text {
    font-size: 17px;
    line-height: 1.65;
    color: #292623;
}
.zp-detail-text p { margin: 0 0 16px; }
.zp-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 22px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.zp-source-btn:hover { background: #333; color: #fff; }

/* Admin form */
.zp-form label {
    display: block;
    font-weight: 600;
    margin: 18px 0 6px;
    font-size: 14px;
}
.zp-form input[type=text], .zp-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd8d0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}
.zp-form textarea { min-height: 220px; resize: vertical; }
.zp-form input[type=file] { margin-top: 4px; }
.zp-submit-btn {
    margin-top: 22px;
    background: #e8722c;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.zp-submit-btn:hover { background: #d5641f; }
.zp-denied {
    padding: 60px 20px;
    text-align: center;
    color: #a33;
}
