/* ==========================================================
   หน้าเว็บฝั่งผู้ใช้งาน (รายการสถานที่ / สินค้า / วิดีโอ / ข่าว)
   ใช้ร่วมกับ js/public-pages.js — ไม่พึ่งคลาส Tailwind ที่ต้อง build ใหม่
   ========================================================== */
:root {
    --pp-bg: #f7f6f3;
    --pp-surface: #ffffff;
    --pp-ink: #1f2937;
    --pp-ink-2: #4b5563;
    --pp-muted: #8b93a1;
    --pp-line: #ebe8e2;
    --pp-line-2: #f3f1ec;
    --pp-brand: #d97706;
    --pp-brand-ink: #b45309;
    --pp-brand-soft: #fff7ed;
    --pp-brand-line: #fde3bf;
    --pp-green: #15803d;
    --pp-green-soft: #ecfdf3;
    --pp-blue: #1d4ed8;
    --pp-blue-soft: #eff6ff;
    --pp-radius: 16px;
    --pp-shadow: 0 1px 2px rgba(31, 41, 55, .04), 0 4px 14px rgba(31, 41, 55, .05);
    --pp-shadow-hover: 0 2px 4px rgba(31, 41, 55, .05), 0 14px 32px rgba(31, 41, 55, .10);
}

body.pp-body {
    font-family: 'Sarabun', sans-serif;
    background: var(--pp-bg);
    color: var(--pp-ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    /* clip แทน hidden เพื่อให้ position: sticky ยังทำงาน */
    overflow-x: clip;
}
.pp-body ::selection { background: #fde68a; color: #78350f; }
.pp-body [hidden] { display: none !important; }
.pp-main { flex: 1 0 auto; }
.pp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.pp-wrap-narrow { max-width: 820px; }

/* ---------- Hero ---------- */
.pp-hero {
    background:
        radial-gradient(900px 260px at 0% 0%, #fff1dc 0%, rgba(255, 241, 220, 0) 70%),
        var(--pp-surface);
    border-bottom: 1px solid var(--pp-line);
    padding: 28px 0 26px;
}
.pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--pp-muted); margin-bottom: 14px; }
.pp-crumbs a { color: var(--pp-muted); text-decoration: none; }
.pp-crumbs a:hover { color: var(--pp-brand); }
.pp-crumbs i { font-size: 9px; opacity: .6; }
.pp-crumbs span { color: var(--pp-ink-2); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-hero-row { display: flex; align-items: center; gap: 16px; }
.pp-hero-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--pp-brand-soft); color: var(--pp-brand);
    border: 1px solid var(--pp-brand-line);
    font-size: 22px;
}
.pp-hero h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--pp-ink); }
.pp-hero p { margin: 4px 0 0; color: var(--pp-ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- Toolbar (ค้นหา + ตัวกรอง) ---------- */
.pp-toolbar {
    position: sticky; top: 72px; z-index: 30;
    background: rgba(247, 246, 243, .92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    padding: 14px 0;
    transition: border-color .2s;
}
.pp-toolbar.is-stuck { border-bottom-color: var(--pp-line); }
.pp-toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.pp-search > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--pp-muted); font-size: 14px; pointer-events: none; }
.pp-search input {
    width: 100%; box-sizing: border-box;
    height: 44px; padding: 0 40px 0 40px;
    border: 1px solid var(--pp-line); border-radius: 999px;
    background: var(--pp-surface); color: var(--pp-ink);
    font: inherit; font-size: 15px;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.pp-search input::placeholder { color: #a8afba; }
.pp-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pp-search input:focus { border-color: #f3b765; box-shadow: 0 0 0 4px rgba(217, 119, 6, .12); }
.pp-search-clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: var(--pp-line-2); color: var(--pp-ink-2); cursor: pointer;
    display: none; align-items: center; justify-content: center; font-size: 12px;
}
.pp-search.has-value .pp-search-clear { display: flex; }
.pp-count { margin-left: auto; font-size: 14px; color: var(--pp-muted); white-space: nowrap; }
.pp-count b { color: var(--pp-ink); font-weight: 600; }

.pp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.pp-chips::-webkit-scrollbar { display: none; }
.pp-chips:empty { display: none; }
.pp-chip {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--pp-line);
    background: var(--pp-surface); color: var(--pp-ink-2);
    font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.pp-chip i { font-size: 13px; color: var(--pp-muted); }
.pp-chip:hover { border-color: #f3b765; color: var(--pp-brand-ink); }
.pp-chip-n { font-size: 12px; color: var(--pp-muted); font-weight: 500; }
.pp-chip.is-active { background: var(--pp-ink); border-color: var(--pp-ink); color: #fff; }
.pp-chip.is-active i, .pp-chip.is-active .pp-chip-n { color: rgba(255, 255, 255, .7); }

/* Tabs แบบปุ่มกลุ่ม (หน้าข่าว) */
.pp-tabs { display: inline-flex; background: #eceae4; border-radius: 999px; padding: 4px; gap: 2px; }
.pp-tab {
    border: 0; background: transparent; color: var(--pp-ink-2);
    height: 36px; padding: 0 16px; border-radius: 999px;
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.pp-tab.is-active { background: var(--pp-surface); color: var(--pp-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ---------- Grid & Card ---------- */
.pp-section-body { padding: 22px 0 56px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pp-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.pp-card {
    display: flex; flex-direction: column;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    overflow: hidden;
    text-decoration: none; color: inherit;
    box-shadow: var(--pp-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pp-card:hover { transform: translateY(-3px); box-shadow: var(--pp-shadow-hover); border-color: #e3ded4; }
.pp-card:focus-visible { outline: 3px solid rgba(217, 119, 6, .45); outline-offset: 2px; }
.pp-card-media { position: relative; aspect-ratio: 4 / 3; background: #f1efea; overflow: hidden; }
.pp-card-media.is-wide { aspect-ratio: 16 / 9; }
.pp-card-media > .pp-ph,
.pp-card-media > img { position: absolute; inset: 0; }
.pp-card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pp-card:hover .pp-card-media img { transform: scale(1.04); }
.pp-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    max-width: calc(100% - 24px);
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--pp-ink);
    font-size: 12px; font-weight: 600; line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-badge i { color: var(--pp-brand); font-size: 11px; }
.pp-badge-more { color: var(--pp-muted); font-weight: 500; }
.pp-card-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.pp-card-title {
    margin: 0 0 6px; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--pp-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pp-card:hover .pp-card-title { color: var(--pp-brand-ink); }
.pp-card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pp-muted); margin-bottom: 8px; min-width: 0; }
.pp-card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-card-text {
    margin: 0; font-size: 14px; line-height: 1.65; color: var(--pp-ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pp-card-foot {
    margin-top: auto; padding-top: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pp-price { font-size: 17px; font-weight: 700; color: var(--pp-brand-ink); }
.pp-price small { font-size: 12px; font-weight: 500; color: var(--pp-muted); margin-right: 4px; }
.pp-price-ask { font-size: 14px; font-weight: 600; color: var(--pp-green); }
.pp-more { font-size: 13px; font-weight: 600; color: var(--pp-muted); display: inline-flex; align-items: center; gap: 6px; transition: color .15s, gap .15s; }
.pp-card:hover .pp-more { color: var(--pp-brand); gap: 9px; }

/* รูปสำรองเมื่อไม่มีภาพ */
.pp-ph {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #fbf4e8 0%, #f1ece2 100%);
    color: #d6b98c; font-size: 38px;
}

/* การ์ดเด่นแบบแนวนอน (ข่าวล่าสุด) */
.pp-feature { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 24px; }
.pp-feature .pp-card-media { aspect-ratio: auto; min-height: 300px; }
.pp-feature .pp-card-body { padding: 28px 30px; justify-content: center; }
.pp-feature .pp-card-title { font-size: 24px; -webkit-line-clamp: 3; margin-bottom: 12px; }
.pp-feature .pp-card-text { -webkit-line-clamp: 4; font-size: 15px; }
.pp-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; margin-bottom: 10px; color: var(--pp-brand-ink); }
.pp-kicker.is-act { color: var(--pp-green); }
.pp-kicker.is-pr { color: var(--pp-blue); }

/* ---------- Empty & Pager ---------- */
.pp-empty { text-align: center; padding: 64px 20px; background: var(--pp-surface); border: 1px dashed #dcd7cc; border-radius: var(--pp-radius); }
.pp-empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-line-2); color: var(--pp-muted); font-size: 24px; }
.pp-empty h3 { margin: 0 0 4px; font-size: 18px; color: var(--pp-ink); }
.pp-empty p { margin: 0; color: var(--pp-muted); font-size: 14px; }
.pp-empty button { margin-top: 16px; }

.pp-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pp-pager button {
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 12px; border: 1px solid var(--pp-line);
    background: var(--pp-surface); color: var(--pp-ink-2);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.pp-pager button:hover:not(:disabled) { border-color: #f3b765; color: var(--pp-brand-ink); }
.pp-pager button.is-active { background: var(--pp-brand); border-color: var(--pp-brand); color: #fff; }
.pp-pager button:disabled { opacity: .4; cursor: default; }
.pp-pager-gap { color: var(--pp-muted); padding: 0 4px; }

/* ---------- Buttons ---------- */
.pp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px;
    border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.pp-btn:hover { transform: translateY(-1px); }
.pp-btn-primary { background: var(--pp-brand); color: #fff; box-shadow: 0 6px 16px rgba(217, 119, 6, .25); }
.pp-btn-primary:hover { background: var(--pp-brand-ink); }
.pp-btn-dark { background: var(--pp-ink); color: #fff; }
.pp-btn-dark:hover { background: #111827; }
.pp-btn-ghost { background: var(--pp-surface); border-color: var(--pp-line); color: var(--pp-ink); }
.pp-btn-ghost:hover { border-color: #f3b765; color: var(--pp-brand-ink); }
.pp-btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.pp-btn.is-disabled { background: var(--pp-line-2); color: #a8afba; border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none; }

/* ---------- หน้ารายละเอียดสถานที่/สินค้า ---------- */
.pp-detail {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "gallery panel" "desc panel";
    column-gap: 28px; align-items: start; padding: 24px 0 8px;
}
.pp-detail-gallery { grid-area: gallery; min-width: 0; }
.pp-detail > .pp-panel { grid-area: panel; }
.pp-detail-desc { grid-area: desc; }
.pp-gallery-main {
    position: relative; aspect-ratio: 4 / 3;
    background: #efece6; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--pp-line);
}
.pp-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: opacity .2s; }
.pp-gallery-zoom {
    position: absolute; right: 14px; bottom: 14px;
    height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
    background: rgba(17, 24, 39, .72); color: #fff; font: inherit; font-size: 13px;
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
.pp-gallery-main .pp-ph { font-size: 64px; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb {
    flex: 0 0 84px; height: 64px; padding: 0;
    border-radius: 12px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background: #efece6;
    opacity: .7; transition: opacity .15s, border-color .15s;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { opacity: 1; }
.pp-thumb.is-active { opacity: 1; border-color: var(--pp-brand); }

.pp-panel {
    position: sticky; top: 92px;
    background: var(--pp-surface); border: 1px solid var(--pp-line);
    border-radius: 20px; padding: 24px; box-shadow: var(--pp-shadow);
}
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pp-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    background: var(--pp-brand-soft); color: var(--pp-brand-ink);
    border: 1px solid var(--pp-brand-line);
    font-size: 13px; font-weight: 600; text-decoration: none;
}
a.pp-tag:hover { background: #ffedd5; }
.pp-panel h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.35; font-weight: 700; }
.pp-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.pp-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--pp-ink-2); line-height: 1.5; }
.pp-facts i { width: 16px; text-align: center; color: var(--pp-muted); margin-top: 3px; }
.pp-price-box { padding: 16px 0; border-top: 1px solid var(--pp-line-2); border-bottom: 1px solid var(--pp-line-2); margin-bottom: 18px; }
.pp-price-box .lbl { font-size: 13px; color: var(--pp-muted); margin-bottom: 2px; }
.pp-price-box .val { font-size: 30px; font-weight: 700; color: var(--pp-brand-ink); line-height: 1.2; }
.pp-price-box .val small { font-size: 15px; font-weight: 500; color: var(--pp-muted); margin-left: 4px; }
.pp-price-box .val.ask { font-size: 22px; color: var(--pp-green); }
.pp-actions { display: grid; gap: 10px; }
.pp-actions-2 { grid-template-columns: 1fr 1fr; }
.pp-share { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--pp-muted); }
.pp-share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--pp-line); background: var(--pp-surface); color: var(--pp-ink-2);
    display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 14px;
    transition: all .15s;
}
.pp-share-btn:hover { border-color: #f3b765; color: var(--pp-brand); }

.pp-block { margin-top: 28px; background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: 20px; padding: 24px 26px; }
.pp-block-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 19px; font-weight: 700; }
.pp-block-title i { color: var(--pp-brand); font-size: 16px; }
.pp-prose { font-size: 16px; line-height: 1.9; color: #374151; white-space: pre-line; word-break: break-word; }

.pp-related { padding: 44px 0 64px; }
.pp-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pp-related-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.pp-related-head p { margin: 2px 0 0; color: var(--pp-muted); font-size: 14px; }
.pp-link { color: var(--pp-brand-ink); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pp-link:hover { color: var(--pp-brand); }

/* ---------- หน้าอ่านข่าว ---------- */
.pp-article-head { padding: 26px 0 22px; }
.pp-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--pp-muted); }
.pp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pp-pill.is-act { background: var(--pp-green-soft); color: var(--pp-green); }
.pp-pill.is-pr { background: var(--pp-blue-soft); color: var(--pp-blue); }
.pp-article-head h1 { margin: 0; font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
/* รูปปกข่าว: แสดงตามสัดส่วนจริง (แนวตั้ง/แนวนอน) ไม่ครอป และสูงไม่เกินหน้าจอ */
.pp-cover {
    display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 0; border: 0;
    border-radius: 20px; overflow: hidden; cursor: zoom-in;
    background: #efece6; box-shadow: var(--pp-shadow);
}
.pp-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 85vh; }
.pp-article-body { padding: 30px 0 8px; font-size: 17px; line-height: 2; color: #374151; white-space: pre-line; word-break: break-word; }
/* ภาพกิจกรรม: เรียงแบบ masonry แต่ละรูปคงสัดส่วนจริง (แนวตั้ง/แนวนอน) ไม่ครอป */
.pp-gallery { columns: 3 200px; column-gap: 10px; }
.pp-gallery button {
    display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0;
    break-inside: avoid; -webkit-column-break-inside: avoid;
    border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #efece6;
}
.pp-gallery img { width: 100%; height: auto; display: block; transition: transform .4s; }
.pp-gallery button:hover img { transform: scale(1.06); }
.pp-article-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--pp-line);
}

/* ---------- วิดีโอ ---------- */
.pp-play {
    position: absolute; inset: 0; z-index: 1;
    display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35) 100%);
}
.pp-play span {
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--pp-ink);
    font-size: 18px; padding-left: 4px; box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform .2s;
}
.pp-card:hover .pp-play span { transform: scale(1.08); }
.pp-card-media .pp-vbadge { left: auto; right: 12px; }
.pp-vbadge.is-youtube i { color: #dc2626; }
.pp-vbadge.is-tiktok i { color: #111827; }
.pp-vbadge.is-facebook i { color: #1877f2; }
.pp-ph-video { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); color: rgba(255, 255, 255, .35); }
button.pp-card { padding: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }

/* ---------- Modal / Lightbox ---------- */
.pp-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10, 12, 16, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 16px 24px;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.pp-modal.is-open { opacity: 1; visibility: visible; }
.pp-modal-close, .pp-lb-nav {
    position: absolute; border: 0; cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px;
    display: grid; place-items: center; transition: background .15s;
}
.pp-modal-close { top: 14px; right: 14px; }
.pp-modal-close:hover, .pp-lb-nav:hover { background: rgba(255, 255, 255, .24); }
.pp-lb-nav { top: 50%; transform: translateY(-50%); }
.pp-lb-prev { left: 14px; }
.pp-lb-next { right: 14px; }
.pp-lb-img { max-width: min(1100px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.pp-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 14px; background: rgba(0, 0, 0, .4); padding: 4px 14px; border-radius: 999px; }
.pp-vbox { width: min(960px, 100%); }
.pp-vbox-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.pp-vbox.is-vertical { width: min(380px, 100%); }
.pp-vbox.is-vertical .pp-vbox-frame { aspect-ratio: 9 / 16; max-height: calc(100vh - 160px); }
.pp-vbox-frame iframe, .pp-vbox-frame video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.pp-vbox-html { display: flex; justify-content: center; max-height: calc(100vh - 160px); overflow: auto; }
.pp-vbox-title { color: #fff; font-size: 17px; font-weight: 600; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-vbox-title a { color: #fbbf24; font-size: 14px; text-decoration: none; white-space: nowrap; }

.pp-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    background: var(--pp-ink); color: #fff; padding: 10px 18px; border-radius: 999px;
    font-size: 14px; z-index: 2100; opacity: 0; transition: all .2s; pointer-events: none;
}
.pp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .pp-detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "panel" "desc"; }
    .pp-panel { position: static; margin-top: 20px; }
    .pp-detail-desc { margin-top: 20px; }
    .pp-feature { grid-template-columns: 1fr; }
    .pp-feature .pp-card-media { min-height: 0; aspect-ratio: 16 / 9; }
    .pp-feature .pp-card-body { padding: 20px; }
    .pp-feature .pp-card-title { font-size: 20px; }
}
@media (max-width: 640px) {
    .pp-wrap { padding: 0 16px; }
    .pp-chips { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .pp-hero { padding: 20px 0; }
    .pp-hero h1 { font-size: 22px; }
    .pp-hero p { font-size: 14px; }
    .pp-hero-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .pp-search { max-width: none; }
    .pp-count { margin-left: 0; width: 100%; }
    .pp-grid, .pp-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pp-card-body { padding: 12px 12px 14px; }
    .pp-card-title { font-size: 15px; }
    .pp-card-text { display: none; }
    .pp-card-meta { font-size: 12px; }
    .pp-price { font-size: 15px; }
    .pp-more { display: none; }
    .pp-badge { top: 8px; left: 8px; font-size: 11px; padding: 4px 8px; }
    .pp-play span { width: 46px; height: 46px; font-size: 15px; }
    .pp-panel, .pp-block { padding: 20px; border-radius: 16px; }
    .pp-panel h1 { font-size: 22px; }
    .pp-gallery-main { border-radius: 16px; }
    .pp-article-head h1 { font-size: 25px; }
    .pp-article-body { font-size: 16px; line-height: 1.9; }
    .pp-gallery { columns: 2; column-gap: 6px; }
    .pp-gallery button { border-radius: 10px; margin-bottom: 6px; }
    .pp-lb-nav { width: 40px; height: 40px; }
    .pp-lb-prev { left: 6px; }
    .pp-lb-next { right: 6px; }
}
@media (max-width: 380px) {
    .pp-grid, .pp-grid-3 { grid-template-columns: 1fr; }
    .pp-card-text { display: -webkit-box; }
}
@media (prefers-reduced-motion: reduce) {
    .pp-card, .pp-card-media img, .pp-btn, .pp-gallery img { transition: none; }
    .pp-card:hover { transform: none; }
}
