/* ดูรูป/วิดีโอแบบ Facebook — สื่อซ้าย + คอมเมนต์/สนใจขวา */
.pd-mpv-overlay{
  position:fixed;
  inset:0;
  z-index:20500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:12px;
  background:rgba(0,0,0,.72);
}
.pd-mpv-overlay.show{ display:flex; }

.pd-mpv-dialog{
  position:relative;
  width:min(1180px, calc(100vw - 16px));
  height:min(92vh, 860px);
  max-height:calc(100vh - 16px);
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.pd-mpv-close{
  position:absolute;
  right:12px;
  top:12px;
  z-index:5;
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  color:#050505;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.pd-mpv-close:hover{ background:#f0f2f5; }

.pd-mpv-layout{
  display:flex;
  flex:1;
  min-height:0;
  height:100%;
}

.pd-mpv-media{
  flex:1 1 62%;
  min-width:0;
  background:#000;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
}
.pd-mpv-stage{
  flex:1 1 auto;
  width:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  box-sizing:border-box;
}
.pd-mpv-stage img,
.pd-mpv-stage video{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.pd-mpv-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#050505;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  z-index:2;
  display:grid;
  place-items:center;
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.pd-mpv-nav:hover{ background:#fff; }
.pd-mpv-nav:disabled{ opacity:.35; cursor:not-allowed; }
.pd-mpv-nav--prev{ left:12px; }
.pd-mpv-nav--next{ right:12px; }
.pd-mpv-counter{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  padding:4px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:12px;
  font-weight:600;
  z-index:2;
}

.pd-mpv-media-actions{
  position:static;
  left:auto;
  top:auto;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  width:100%;
  max-width:none;
  padding:0 12px 10px;
  pointer-events:auto;
  flex-shrink:0;
  box-sizing:border-box;
  background:#fff;
}
.pd-mpv-media-actions[hidden]{ display:none !important; }

.pd-mpv-media-actions-stack{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  pointer-events:auto;
}

.pd-mpv-float-dock{
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  width:min(248px, 100%);
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 8px 28px rgba(15,23,42,.16);
}
.pd-mpv-float-dock.pd-mpv-float-dock--row{
  flex-direction:row;
  align-items:stretch;
  gap:0;
  padding:0;
  width:100%;
  max-width:none;
  box-shadow:0 2px 10px rgba(15,23,42,.08);
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-row{
  flex:1 1 0;
  min-width:0;
  width:auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:10px 6px;
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-row + .pd-mpv-float-row{
  border-top:none;
  border-left:1px solid rgba(15,23,42,.06);
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-hint,
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-arr{
  display:none !important;
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-copy{
  align-items:center;
  width:100%;
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-label{
  font-size:10px;
  font-weight:800;
  text-align:center;
  white-space:normal;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-stack-card .pd-mpv-float-ic,
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-stack-card .pd-mpv-float-copy{
  display:none !important;
}
.pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-stack-card{
  gap:5px !important;
}
@media (max-width:400px){
  .pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-label{
    display:none;
  }
  .pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-row{
    padding:10px 4px;
  }
  .pd-mpv-float-dock.pd-mpv-float-dock--row .pd-mpv-float-ic{
    width:36px;
    height:36px;
  }
}

.pd-mpv-float-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:9px 11px;
  border:none;
  background:transparent;
  cursor:pointer;
  text-align:left;
  color:inherit;
  font:inherit;
  text-decoration:none;
  transition:background .15s ease;
}
.pd-mpv-float-row + .pd-mpv-float-row{
  border-top:1px solid rgba(15,23,42,.06);
}
.pd-mpv-float-row:hover{ background:rgba(15,23,42,.04); }
.pd-mpv-float-row:active{ background:rgba(15,23,42,.07); }

.pd-mpv-float-ic{
  position:relative;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:10px;
  display:grid;
  place-items:center;
  line-height:0;
}
.pd-mpv-float-row--map .pd-mpv-float-ic{ background:#ecfdf5; }
.pd-mpv-float-row--appr .pd-mpv-float-ic{ background:#ecfdf5; }
.pd-mpv-float-row--ai .pd-mpv-float-ic{ background:#ecfdf5; }
.pd-mpv-float-ic svg{
  width:18px;
  height:18px;
}

.pd-mpv-float-ai-tag{
  position:absolute;
  top:-4px;
  right:-4px;
  padding:0 4px;
  border-radius:4px;
  font-size:7px;
  font-weight:800;
  letter-spacing:.03em;
  color:#fff;
  background:#22c55e;
  border:1px solid rgba(255,255,255,.2);
  line-height:1.35;
  z-index:1;
}

.pd-mpv-float-copy{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.pd-mpv-float-label{
  font-size:12px;
  font-weight:800;
  line-height:1.25;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pd-mpv-float-hint{
  font-size:10px;
  font-weight:600;
  line-height:1.3;
  color:#64748b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pd-mpv-float-row--appr .pd-mpv-float-hint{ color:#16a34a; }
.pd-mpv-float-stack-card{
  position:relative;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  box-sizing:border-box;
  text-decoration:none;
  color:inherit;
}
.pd-mpv-float-appr-card{
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  text-decoration:none;
  color:inherit;
}
.pd-mpv-float-appr-ic{
  display:grid;
  place-items:center;
  width:34px;
  height:30px;
  line-height:0;
  background:transparent !important;
}
.pd-mpv-float-appr-ic svg{
  width:30px;
  height:32px;
  display:block;
}
.pd-mpv-float-map-ic{
  display:grid;
  place-items:center;
  width:34px;
  height:28px;
  line-height:0;
  background:transparent !important;
}
.pd-mpv-float-map-ic svg{
  width:24px;
  height:24px;
  display:block;
}
.pd-mpv-float-map-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  text-align:center;
  line-height:1.15;
}
.pd-mpv-float-map-label-top{
  font-size:11px;
  font-weight:800;
  color:#1e293b;
  letter-spacing:-0.01em;
}
.pd-mpv-float-map-label-sub{
  font-size:11px;
  font-weight:800;
  color:#2e7d32;
  letter-spacing:-0.01em;
}
.pd-mpv-float-appr-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  text-align:center;
  line-height:1.15;
}
.pd-mpv-float-appr-label-top{
  font-size:11px;
  font-weight:800;
  color:#1e293b;
  letter-spacing:-0.01em;
}
.pd-mpv-float-appr-label-sub{
  font-size:11px;
  font-weight:800;
  color:#2e7d32;
  letter-spacing:-0.01em;
}
.pd-mpv-float-ai-card{
  overflow:hidden;
}
.pd-mpv-float-ai-corner{
  position:absolute;
  top:0;
  right:0;
  z-index:2;
  padding:2px 6px 3px 5px;
  border-bottom-left-radius:8px;
  font-size:8px;
  font-weight:800;
  letter-spacing:.04em;
  line-height:1.2;
  color:#fff;
  background:#28a745;
}
.pd-mpv-float-ai-ic{
  display:grid;
  place-items:center;
  width:34px;
  height:28px;
  margin-top:2px;
  line-height:0;
  background:transparent !important;
}
.pd-mpv-float-ai-ic--word,
.pd-mpv-float-ai-word{
  width:auto;
  height:auto;
  min-height:22px;
  padding:0 2px;
  font-size:15px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
  color:#111827;
  font-family:inherit;
}
.pd-mpv-float-ai-ic svg{
  width:32px;
  height:28px;
  display:block;
}
.pd-mpv-float-ai-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  text-align:center;
  line-height:1.12;
}
.pd-mpv-float-ai-label-line1,
.pd-mpv-float-ai-label-line2{
  font-size:11px;
  font-weight:800;
  color:#1e293b;
  letter-spacing:-0.02em;
}
.pd-mpv-float-ai-label-accent{
  color:#28a745;
}
.pd-mpv-float-label--stack{
  display:block;
  -webkit-line-clamp:unset;
  -webkit-box-orient:unset;
  overflow:visible;
}
.pd-mpv-float-label-accent{ color:#16a34a; }
.pd-mpv-float-row--ai .pd-mpv-float-hint{ color:#16a34a; }

.pd-mpv-float-arr{
  flex:0 0 auto;
  font-size:16px;
  font-weight:700;
  line-height:1;
  color:#94a3b8;
}
.pd-mpv-float-row:hover .pd-mpv-float-arr{ color:#334155; }

.pd-mpv-media-actions-panel{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding:10px;
  border-radius:14px;
  background:linear-gradient(165deg, rgba(15,23,42,.94) 0%, rgba(30,41,59,.9) 100%);
  border:1px solid rgba(148,163,184,.28);
  box-shadow:0 12px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.pd-mpv-summary{
  padding:2px 2px 6px;
  border-bottom:1px solid rgba(148,163,184,.22);
  margin-bottom:2px;
}
.pd-mpv-summary-top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:4px;
}
.pd-mpv-summary-badge{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#e2e8f0;
  background:rgba(51,65,85,.75);
  border:1px solid rgba(148,163,184,.35);
}
.pd-mpv-summary-ref{
  font-size:10px;
  font-weight:700;
  color:#94a3b8;
}
.pd-mpv-summary-title{
  margin:0;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
  color:#f8fafc;
}
.pd-mpv-summary-chips{
  margin:4px 0 0;
  font-size:11px;
  font-weight:600;
  line-height:1.4;
  color:#cbd5e1;
}

.pd-mpv-media-actions-panel .pd-mpv-action-btn{
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(148,163,184,.25);
  border-radius:10px;
  background:rgba(15,23,42,.55);
  cursor:pointer;
  text-align:left;
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn:hover{
  transform:translateY(-1px);
  background:rgba(30,41,59,.85);
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--map{
  border-color:rgba(45,212,191,.45);
  background:linear-gradient(135deg, rgba(13,148,136,.35), rgba(15,23,42,.7));
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--map:hover{
  border-color:rgba(45,212,191,.7);
  background:linear-gradient(135deg, rgba(13,148,136,.5), rgba(15,23,42,.85));
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--appr{
  border-color:rgba(251,191,36,.4);
  background:linear-gradient(135deg, rgba(180,83,9,.28), rgba(15,23,42,.72));
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--appr:hover{
  border-color:rgba(251,191,36,.65);
  background:linear-gradient(135deg, rgba(180,83,9,.42), rgba(15,23,42,.88));
}
.pd-mpv-media-actions-panel .pd-mpv-action-ic{
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:900;
  line-height:1;
  color:#f8fafc;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--map .pd-mpv-action-ic{
  color:#5eead4;
  background:rgba(13,148,136,.35);
  border-color:rgba(45,212,191,.35);
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--appr .pd-mpv-action-ic{
  color:#fcd34d;
  background:rgba(180,83,9,.35);
  border-color:rgba(251,191,36,.35);
}
.pd-mpv-media-actions-panel .pd-mpv-action-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.pd-mpv-media-actions-panel .pd-mpv-action-kicker{
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#94a3b8;
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn--map .pd-mpv-action-kicker{ color:#5eead4; }
.pd-mpv-media-actions-panel .pd-mpv-action-btn--appr .pd-mpv-action-kicker{ color:#fcd34d; }
.pd-mpv-media-actions-panel .pd-mpv-action-title{
  font-size:12px;
  font-weight:800;
  line-height:1.25;
  color:#f8fafc;
}
.pd-mpv-media-actions-panel .pd-mpv-action-sub{
  font-size:10px;
  font-weight:600;
  line-height:1.35;
  color:#cbd5e1;
}
.pd-mpv-media-actions-panel .pd-mpv-action-go{
  flex-shrink:0;
  font-size:18px;
  font-weight:700;
  line-height:1;
  color:#94a3b8;
}
.pd-mpv-media-actions-panel .pd-mpv-action-btn:hover .pd-mpv-action-go{ color:#f8fafc; }

.pd-mpv-side{
  flex:0 0 min(420px, 38%);
  max-width:420px;
  min-width:300px;
  border-left:1px solid #e4e6eb;
  display:flex;
  flex-direction:column;
  min-height:0;
  background:#fff;
}
.pd-mpv-side-head{
  flex-shrink:0;
  padding:14px 16px 10px;
  border-bottom:1px solid #e4e6eb;
  max-height:min(36vh, 280px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.pd-mpv-author{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.pd-mpv-av{
  width:40px;
  height:40px;
  border-radius:999px;
  background:linear-gradient(180deg,#eaebef,#dfe3e8);
  border:1px solid #ccd0d5;
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:700;
  color:#050505;
  flex-shrink:0;
  overflow:hidden;
  text-decoration:none;
}
.pd-mpv-av img{ width:100%; height:100%; object-fit:cover; display:block; }
.pd-mpv-meta{ min-width:0; flex:1; }
.pd-mpv-name{
  font-size:15px;
  font-weight:700;
  color:#050505;
  line-height:1.25;
  text-decoration:none;
}
a.pd-mpv-name:hover{ text-decoration:underline; }
.pd-mpv-time{
  font-size:13px;
  color:#65676b;
  margin-top:2px;
}
.pd-mpv-text{
  margin-top:10px;
  font-size:15px;
  line-height:1.4;
  color:#050505;
  white-space:pre-wrap;
  word-break:break-word;
  max-height:120px;
  overflow:auto;
}

.pd-mpv-listing{
  margin-top:10px;
  padding:12px;
  border-radius:10px;
  background:#f7f8fa;
  border:1px solid #e4e6eb;
  max-height:min(24vh, 180px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.pd-mpv-listing-top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
}
.pd-mpv-listing-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  color:#1e3a5f;
  background:#e8f0fe;
  border:1px solid #c7d8f5;
}
.pd-mpv-listing-ref{
  font-size:11px;
  font-weight:700;
  color:#65676b;
}
.pd-mpv-listing-title{
  margin:0 0 4px;
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  color:#050505;
}
.pd-mpv-listing-sub{
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  color:#65676b;
}
.pd-mpv-listing-facts{
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.pd-mpv-listing-fact{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  line-height:1.35;
}
.pd-mpv-listing-fact dt{
  flex:0 0 52px;
  margin:0;
  font-weight:700;
  color:#65676b;
}
.pd-mpv-listing-fact dd{
  margin:0;
  flex:1;
  min-width:0;
  font-weight:600;
  color:#050505;
  word-break:break-word;
  white-space:pre-wrap;
}

.pd-mpv-ai{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.pd-mpv-ai-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.pd-mpv-ai-badge{
  font-size:13px;
  font-weight:800;
  color:#334155;
}
.pd-mpv-ai-toggle{
  border:0;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  border-radius:999px;
  padding:4px 12px;
  font-size:12px;
  font-weight:900;
  color:#fff;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(37,99,235,.25);
}
.pd-mpv-ai-toggle:hover{ filter:brightness(1.05); }
.pd-mpv-ai-line{
  margin:0 0 4px;
  font-size:13px;
  font-weight:750;
  color:#1e293b;
  line-height:1.45;
}
.pd-mpv-ai-line--sub{
  font-size:12px;
  font-weight:650;
  color:#64748b;
}
.pd-mpv-ai-detail{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed #cbd5e1;
  max-height:min(42vh, 360px);
  overflow:auto;
}
.pd-mpv-ai-detail .pd-lai-sub{ font-size:11px; }
.pd-mpv-ai-detail .pd-lai-deep-grid{ grid-template-columns:1fr; }
.pd-mpv-ai-detail .pd-aidash{
  border:none;
  padding:8px;
  background:#eef1f6;
}
.pd-mpv-ai-detail .pd-aidash-head .pd-aidash-title{ font-size:13px; }

.pd-mpv-listing-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e4e6eb;
}
.pd-mpv-listing-actions .pd-mpv-action-btn{
  background:#fff;
  border-color:#e4e6eb;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.pd-mpv-listing-actions .pd-mpv-action-btn:hover{
  background:#f7f8fa;
  transform:none;
}
.pd-mpv-listing-actions .pd-mpv-action-btn--map{
  border-color:#99f6e4;
  background:linear-gradient(135deg,#f0fdfa,#fff);
}
.pd-mpv-listing-actions .pd-mpv-action-btn--map:hover{
  background:#ecfdf5;
  border-color:#5eead4;
}
.pd-mpv-listing-actions .pd-mpv-action-btn--appr{
  border-color:#fde68a;
  background:linear-gradient(135deg,#fffbeb,#fff);
}
.pd-mpv-listing-actions .pd-mpv-action-btn--appr:hover{
  background:#fef3c7;
  border-color:#fbbf24;
}
.pd-mpv-listing-actions .pd-mpv-action-ic{
  color:#0f766e;
  background:#ccfbf1;
  border-color:#99f6e4;
}
.pd-mpv-listing-actions .pd-mpv-action-btn--appr .pd-mpv-action-ic{
  color:#b45309;
  background:#fef3c7;
  border-color:#fde68a;
}
.pd-mpv-listing-actions .pd-mpv-action-kicker{
  color:#64748b;
}
.pd-mpv-listing-actions .pd-mpv-action-btn--map .pd-mpv-action-kicker{ color:#0d9488; }
.pd-mpv-listing-actions .pd-mpv-action-btn--appr .pd-mpv-action-kicker{ color:#b45309; }
.pd-mpv-listing-actions .pd-mpv-action-title{ color:#050505; }
.pd-mpv-listing-actions .pd-mpv-action-sub{ color:#65676b; }
.pd-mpv-listing-actions .pd-mpv-action-go{ color:#65676b; }

.pd-mpv-engage{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}
.pd-mpv-engage-stats{
  font-size:13px;
  color:#65676b;
  font-weight:600;
  flex:1;
  min-width:0;
}
.pd-mpv-like-btn{
  border:1px solid #d7dce4;
  background:#fff;
  border-radius:999px;
  padding:6px 12px;
  min-height:34px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  color:#050505;
}
.pd-mpv-like-btn:hover{ background:#f0f2f5; }
.pd-mpv-like-btn.liked{
  border-color:#fbcfe8;
  background:#fdf2f8;
  color:#be185d;
}

.pd-mpv-action-bar{
  flex-shrink:0;
  padding:8px 12px 10px;
  border-bottom:1px solid #e4e6eb;
  background:#fff;
}
.pd-mpv-action-stats{
  display:block;
  width:100%;
  margin:0 0 8px;
  padding:0;
  border:none;
  background:transparent;
  font-size:13px;
  font-weight:700;
  color:#65676b;
  text-align:left;
  cursor:pointer;
}
.pd-mpv-action-stats:hover{ color:#334155; }
.pd-mpv-action-pill{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:0;
  width:100%;
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.06);
  padding:4px;
}
.pd-mpv-pill-btn{
  flex:1 1 0;
  min-width:0;
  border:none;
  background:transparent;
  padding:8px 6px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  cursor:pointer;
  font:inherit;
  font-size:11px;
  font-weight:900;
  color:#334155;
  border-radius:10px;
}
.pd-mpv-pill-btn span:first-child{
  font-size:16px;
  line-height:1;
}
.pd-mpv-pill-btn:hover{ background:#f8fafc; }
.pd-mpv-pill-btn.is-liked{ color:#be185d; }
.pd-mpv-pill-sep{
  width:1px;
  align-self:stretch;
  margin:6px 0;
  background:#e2e8f0;
  flex-shrink:0;
}

.pd-mpv-comments{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:10px 12px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
}
.pd-mpv-comments .empty,
.pd-mpv-comments .feed-comment-empty{
  padding:16px 8px;
  font-size:13px;
  color:#65676b;
  text-align:center;
}

/* คอมเมนต์ใน sidebar — สไตล์เดียวกับฟีดโปรไฟล์ */
.pd-mpv-comments .feed-comment-list,
.pd-mpv-comments .pd-mpv-comment-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0;
  padding:0;
  max-height:none;
  overflow:visible;
}
.pd-mpv-comments .feed-comment-node{ margin:0; }
.pd-mpv-comments .feed-comment-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  max-width:100%;
}
.pd-mpv-comments .feed-comment-avatar{
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:999px;
  background:linear-gradient(180deg,#eaebef,#dfe3e8);
  border:1px solid #ccd0d5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  color:#050505;
  overflow:hidden;
  padding:0;
}
.pd-mpv-comments .feed-comment-avatar img,
.pd-mpv-comments .feed-comment-avatar .fb-comment-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:999px;
}
.pd-mpv-comments .feed-comment-col{
  min-width:0;
  flex:1;
  max-width:calc(100% - 40px);
}
.pd-mpv-comments .feed-comment-bubble{
  background:#f0f2f5;
  border-radius:18px;
  padding:8px 12px;
  display:inline-block;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
  border:none;
  box-shadow:none;
}
.pd-mpv-comments .feed-comment-avatar-link,
.pd-mpv-comments .feed-comment-author-link{
  border:none;
  background:transparent;
  padding:0;
  margin:0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  text-align:left;
}
.pd-mpv-comments .feed-comment-author-link:hover{
  text-decoration:underline;
}
.pd-mpv-comments .feed-comment-name{
  font-size:13px;
  font-weight:700;
  color:#050505;
}
.pd-mpv-comments .feed-comment-text{
  margin-top:4px;
  font-size:14px;
  font-weight:400;
  color:#050505;
  line-height:1.34;
  white-space:pre-wrap;
  word-break:break-word;
}
.pd-mpv-comments .feed-comment-meta-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:4px;
  font-size:12px;
  color:#65676b;
}
.pd-mpv-comments .feed-comment-link{
  border:none;
  background:transparent;
  padding:0;
  font:inherit;
  font-weight:600;
  color:#65676b;
  cursor:pointer;
}
.pd-mpv-comments .feed-comment-link:hover{
  text-decoration:underline;
  color:#050505;
}
.pd-mpv-comments .feed-comment-kids{
  margin-top:6px;
  margin-left:12px;
  padding-left:8px;
  border-left:2px solid #e4e6eb;
}
.pd-mpv-comments .feed-comment-media{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-width:100%;
  overflow:hidden;
}
.pd-mpv-comments .feed-comment-media-item,
.pd-mpv-comments .feed-comment-media img,
.pd-mpv-comments .feed-comment-media video{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  max-height:140px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid #e4e6eb;
  background:#f0f2f5;
}
.pd-mpv-comments img,
.pd-mpv-comments video{
  max-width:100%;
}

.pd-mpv-foot .fb-comment-composer-main{
  flex-wrap:nowrap;
}
.pd-mpv-foot .fb-comment-composer-avatar-wrap,
.pd-mpv-foot .fb-comment-composer-avatar{
  width:32px;
  height:32px;
  flex-shrink:0;
}

.pd-mpv-foot{
  flex-shrink:0;
  padding:8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid #e4e6eb;
  background:#fff;
  z-index:2;
}
.pd-mpv-foot .fb-comment-composer-toolbar{
  display:flex !important;
}
.pd-mpv-foot .fb-comment-composer-tools-left{
  display:flex !important;
}
.pd-mpv-foot .fb-comment-composer-tool{
  display:inline-flex !important;
}

@media(max-width:1024px){
  .pd-mpv-dialog{
    width:100%;
    height:100dvh;
    height:100svh;
    max-height:100dvh;
    max-height:100svh;
    border-radius:0;
  }
  .pd-mpv-overlay{ padding:0; }
  .pd-mpv-layout{
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    overflow:hidden;
  }
  .pd-mpv-media{
    flex:0 0 auto;
    min-height:0;
    max-height:none;
    overflow:visible;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    background:#0b0f14;
  }
  .pd-mpv-stage{
    flex:0 0 auto;
    overflow:hidden !important;
    min-height:180px;
    max-height:min(42vh, 360px);
    padding:12px 52px 12px !important;
    box-sizing:border-box !important;
  }
  .pd-mpv-stage img,
  .pd-mpv-stage video{
    max-width:100% !important;
    max-height:100% !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
  }
  .pd-mpv-side{
    flex:1 1 auto;
    max-width:none;
    min-width:0;
    min-height:0;
    overflow:hidden;
    border-left:none;
    border-top:1px solid #e4e6eb;
    display:flex;
    flex-direction:column;
  }
  .pd-mpv-side-head{
    max-height:min(30vh, 220px);
  }
  .pd-mpv-side-head .pd-mpv-ai,
  .pd-mpv-side-head #pdMpvAiBlock{
    display:none !important;
  }
  .pd-mpv-listing{
    max-height:min(20vh, 150px);
  }
  .pd-mpv-action-bar{
    flex-shrink:0;
  }
  .pd-mpv-comments{
    flex:1 1 auto;
    min-height:88px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .pd-mpv-foot{
    flex-shrink:0;
    box-shadow:0 -4px 16px rgba(15,23,42,.08);
  }
  .pd-mpv-media-actions{
    position:static;
    left:auto;
    top:auto;
    width:100%;
    max-width:none;
    padding:0 12px 10px;
    pointer-events:auto;
    flex-shrink:0;
    box-sizing:border-box;
  }
  .pd-mpv-media-actions-stack,
  .pd-mpv-float-dock{
    width:100%;
  }
  .pd-mpv-media-actions-panel{ padding:8px; }
  .pd-mpv-summary-title{ font-size:12px; }
}
