/* PS3 World - multiplayer styles (loaded after style.css on the pages that need them) */

.mp-notes {
  display: grid;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 14px 18px;
  list-style: none;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ps-sky);
  border-radius: var(--radius-md);
  background: rgba(74, 158, 255, 0.05);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.mp-notes li { position: relative; padding-left: 16px; }

.mp-notes li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ps-sky);
}

.mp-notes strong { color: var(--text); }

.mp-toolbar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 24, 0.97);
}

.mp-search {
  position: relative;
  display: flex;
  flex: 1 1 320px;
  align-items: center;
}

.mp-search svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}

.mp-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.mp-search input::placeholder { color: var(--text-3); }

.mp-search input:focus {
  outline: none;
  border-color: var(--ps-blue-2);
  box-shadow: 0 0 0 4px rgba(43, 143, 255, 0.14);
}

.mp-status {
  margin: 0 6px 0 0;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.mp.is-searching .mp-status { color: var(--ps-cyan); }

/* Masonry-style columns so short cards don't leave gaps */
.mp-grid {
  columns: 340px;
  column-gap: 14px;
}

.mp-grid > .mp-card {
  margin-bottom: 14px;
  break-inside: avoid;
}

.mp-grid--single {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  columns: auto;
}

.mp-grid--single > .mp-card { margin-bottom: 0; }

.mp-subhead {
  margin: 18px 0 12px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.mp-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.mp-card[hidden] { display: none; }

.mp-card.is-match {
  border-color: rgba(74, 217, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 217, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mp-card--single { gap: 10px; padding: 14px 16px; }

.mp-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mp-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.mp-card--single h3 { font-size: 15px; }

.mp-card h3 a { color: var(--text); }

.mp-card h3 a:hover { color: var(--ps-cyan); }

.mp-ext {
  margin-left: 5px;
  color: var(--text-3);
  font-size: 0.75em;
  font-weight: 500;
}

.mp-count {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(74, 158, 255, 0.1);
  color: var(--ps-ice);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mp-card--single .mp-count { display: none; }

.mp-dns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.mp-dns-label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.mp-dns-none { color: var(--text-2); font-size: 13.5px; font-style: italic; }

.mp-or { color: var(--text-3); font-size: 12px; }

.mp-ip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.mp-ip code {
  padding: 0;
  background: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2px;
}

.mp-ip-label { color: var(--text-3); font-size: 12px; font-weight: 600; }

.mp-ip svg { width: 14px; height: 14px; color: var(--text-3); }

.mp-ip:hover { border-color: var(--ps-blue-2); background: rgba(43, 143, 255, 0.08); }

.mp-ip:hover svg { color: var(--ps-cyan); }

.mp-ip::after {
  content: 'Copied';
  position: absolute;
  top: -30px;
  left: 50%;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ps-blue-2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.mp-ip.is-copied { border-color: var(--ps-cyan); }

.mp-ip.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

.mp-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 196, 0, 0.06);
  color: var(--gold-soft);
  font-size: 13px;
  line-height: 1.45;
}

.mp-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.mp-games li {
  margin: 0;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.35;
}

.mp-games li.is-hit {
  border-color: rgba(74, 217, 255, 0.5);
  background: rgba(74, 217, 255, 0.12);
  color: var(--text);
}

/* JS collapses long lists; while searching everything is shown */
.mp-js .mp-card.is-collapsible:not(.is-expanded) .mp-extra { display: none; }

.mp.is-searching .mp-card .mp-extra { display: none; }

.mp.is-searching .mp-card .mp-extra.is-hit { display: block; }

.mp.is-searching .mp-more { display: none; }

.mp-more {
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ps-blue-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mp-more:hover { color: var(--ps-cyan); }

.mp-empty {
  margin: 16px 0 0;
  padding: 20px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
  text-align: center;
}

.mp-credit {
  margin: 24px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

@media (max-width: 720px) {
  .mp-toolbar { top: 8px; padding: 8px; }
  .mp-status { width: 100%; margin: 0 4px; }
  .mp-grid { columns: 1; }
  .mp-card--single .mp-dns-label { display: none; }
  .mp-card--single .mp-ip code { font-size: 13px; }
  .mp-card { padding: 16px; }
}

@media (max-width: 720px) {
  .mp-grid--single { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mp-card--single {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .mp-card--single .mp-card-head { min-width: 0; }
  .mp-card--single .mp-dns { flex-shrink: 0; }
}

/* DNS switcher apps (qDNSm, ezDNS) */
.mp-apps { margin: 22px 0 26px; }
.mp-apps-head { margin: 0 0 4px; font-size: 18px; }
.mp-apps-intro { margin: 0 0 14px; color: var(--text-2); font-size: 14.5px; }
.mp-apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.mp-app {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.mp-app > img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: center top; background: #000; cursor: zoom-in; }
.mp-app-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; }
.mp-app h4 { margin: 0; font-size: 17px; }
.mp-app h4 a { color: var(--text); }
.mp-app h4 a:hover { color: var(--ps-cyan); }
.mp-app-by { color: var(--text-3); font-size: 13px; font-weight: 500; }
.mp-app p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.mp-app p strong { color: var(--text); }
.mp-app .mp-app-note { color: var(--text-3); font-size: 13px; }
.mp-app .btn { margin-top: auto; }
