.pmlh-wrap, .pmlh-grid-wrap { --pmlh-bg:#0b0f1a; --pmlh-fg:#e6ecff; --pmlh-muted:#9aa4b2; --pmlh-accent:#6ea8fe; --pmlh-logo-size:64px; --pmlh-card-w:280px; --pmlh-card-h:360px; }
.pmlh-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin: 0 0 16px; }
.pmlh-filter-label { font-size:14px; }
.pmlh-search, .pmlh-filter{
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  color: #111;
  line-height: 1.3;
  min-height: 44px;
  height: auto;
  box-sizing: border-box;
}
.pmlh-search{ flex: 1 1 320px; }
.pmlh-filter{ flex: 0 0 240px; max-width: 100%; }
.pmlh-reset{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.2);
  background:#fff;
  cursor:pointer;
}
.pmlh-search:focus, .pmlh-filter:focus, .pmlh-btn:focus, .pmlh-reset:focus { outline: 3px solid #6ea8fe; outline-offset: 2px; }

.pmlh-table-wrap { overflow-x:auto; }
.pmlh-table { width: 100%; border-collapse: collapse; }
.pmlh-table th, .pmlh-table td { padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: middle; }
.pmlh-table th { text-align: left; cursor: pointer; user-select: none; }
.pmlh-table th:focus { box-shadow: inset 0 0 0 2px #6ea8fe; }
.pmlh-table tr:hover { background: rgba(0,0,0,.03); }

.pmlh-logo{ width: var(--pmlh-logo-size); height: var(--pmlh-logo-size); object-fit: cover; border-radius: 8px; display:inline-block; }
.pmlh-card-media{ display:flex; align-items:center; justify-content:center; padding: 12px; }

.pmlh-badge { display:inline-block; margin-left:8px; font-size:12px; padding:2px 8px; border-radius:999px; background: rgba(110,168,254,.15); color:#1b4b91; border:1px solid rgba(110,168,254,.35); }
.pmlh-btn { display:inline-block; padding: 10px 14px; border-radius:10px; font-weight:700; text-decoration:none; border:none; cursor:pointer; }
.pmlh-btn--visit { background:#ffde59; color:#151d1f; }
.pmlh-btn--visit:hover { background:#ffd633; }
.pmlh-btn--copy { background:#e6ecff; color:#151d1f; }
.pmlh-btn--copy:hover { opacity:.9; }
.pmlh-sort-asc::after { content:" ▲"; opacity:.8; }
.pmlh-sort-desc::after { content:" ▼"; opacity:.8; }

/* GRID with configurable size */
.pmlh-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(var(--pmlh-card-w), 1fr)); gap: 16px; }
.pmlh-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; display:flex; flex-direction: column; min-height: var(--pmlh-card-h); }
.pmlh-card-body { padding: 14px; display:flex; flex-direction:column; gap:10px; }
.pmlh-card-excerpt { color: var(--pmlh-muted); margin:0; }
.pmlh-card-meta { font-size: 12px; color: var(--pmlh-muted); margin:0; }
.pmlh-card-actions { display:flex; gap:8px; flex-wrap:wrap; }

@media (max-width: 480px){
  .pmlh-table th, .pmlh-table td { padding: 10px 8px; }
}
.screen-reader-text { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px; }