/* PS3 World - PS3 Exclusives (loaded after style.css) */

.xc-search {
  position: sticky;
  top: 72px;
  z-index: 5;
  margin: 8px 0 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.xc-box input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a849c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px 50% / 20px no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.xc-box input:focus { border-color: var(--ps-blue-2); box-shadow: var(--ring); }

.xc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.xc-chips, .xc-selects { display: flex; flex-wrap: wrap; gap: 8px; }

.xc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px 5px 13px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.xc-chip:hover { color: #fff; border-color: color-mix(in srgb, var(--ps-sky) 55%, transparent); }
.xc-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.xc-chip[aria-pressed="true"] { border-color: var(--ps-sky); background: color-mix(in srgb, var(--ps-sky) 16%, transparent); color: #fff; }
.xc-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.xc-chip[aria-pressed="true"] .xc-count { background: rgba(0, 0, 0, 0.25); color: #fff; }

.xc-selects select {
  height: 34px;
  padding: 0 30px 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2acc0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.xc-selects select option { background: var(--bg-2); color: var(--text); }
.xc-selects select:focus-visible { outline: none; border-color: var(--ps-cyan); box-shadow: var(--ring); }

.xc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.xc-status { margin: 0; color: var(--text-3); font-size: 13px; }
.xc-random {
  padding: 7px 14px;
  border: 1px solid rgba(74, 217, 255, 0.4);
  border-radius: var(--pill);
  background: rgba(43, 143, 255, 0.12);
  color: var(--ps-cyan);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.xc-random:hover { background: rgba(43, 143, 255, 0.22); }
.xc-random:disabled { opacity: 0.5; cursor: default; }
.xc-random:focus-visible { outline: 2px solid var(--ps-cyan); outline-offset: 2px; }

/* Grid */
.xc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.xc {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  scroll-margin-top: 260px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.xc[hidden] { display: none; }
.xc.is-picked { border-color: var(--ps-sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ps-sky) 30%, transparent); }
.xc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.xc-year { color: var(--ps-cyan); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.xc-genre, .xc-tag {
  padding: 1px 8px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.xc-tag--psn { background: rgba(43, 143, 255, 0.16); color: #9fcbff; }
.xc-tag--jp { background: rgba(255, 92, 122, 0.14); color: #ff9db0; }
.xc h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.xc-who { margin: 0 0 12px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.xc-badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
}
.xc-badge--only { background: rgba(61, 220, 132, 0.14); color: #6ef0a6; }
.xc-badge--re { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.xc-note { margin: 8px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }

.xc-foot-note { margin: 0 0 56px; color: var(--text-3); font-size: 14px; line-height: 1.6; }

@media (max-width: 860px) {
  .xc-search { position: static; padding: 14px; }
  .xc-box input { font-size: 16px; }
  .xc-row { display: block; }
  .xc-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 10px 0; padding-right: 14px; scrollbar-width: none; }
  .xc-chips::-webkit-scrollbar { display: none; }
  .xc-chip { flex: none; }
  .xc-selects select { flex: 1 1 auto; }
  .xc-selects label { flex: 1 1 45%; display: flex; }
  .xc { scroll-margin-top: 80px; }
}

/* Helghast is tall: size by height so he stays behind the hero */
.page-hero .page-char { width: auto; height: 620px; max-width: none; }
@media (max-width: 600px) { .page-hero .page-char { height: 440px; } }
