:root {
  color-scheme: dark;
  --ps-blue: #0070cc;
  --ps-light-blue: #2d7aff;
  --ps-plus-gold: #f5d849;
  --bg-page: #0a0e1a;
  --bg-card: #1a1f33;
  --bg-card-hover: #222b4d;
  --bg-sunken: #333645;
  --text: #e5e7eb;
  --text-dim: #8899bb;
  --line-soft: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.10);
  --surface-1: rgba(255,255,255,0.06);
  --shadow: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-xs: 0 2px 8px rgba(0,0,0,0.4);
  --accent-soft-2: rgba(0,112,204,0.2);
  --gold-ink: #f5d849;
  --red-ink: #ff6b6b;
  --blue-ink: #7cb6ff;
  --ps-dark-blue: #003791;
  --badge-plat: #c0c8d8;
  --badge-plat-bg: rgba(192,200,216,0.10);
  --badge-plat-border: rgba(192,200,216,0.20);
  --plat-ps4-a: #b39ddb;
  --plat-ps4-b: #9575cd;
  --plat-ps5-a: #1565c0;
  --plat-ps5-b: #0d47a1;
  --glow-deep: rgba(0,55,145,0.25);
  --glow-deep-2: rgba(0,55,145,0.12);
  --glow-1: rgba(0,112,204,0.15);
  --accent-faint: rgba(0,112,204,0.10);
  --grid: rgba(0,112,204,0.03);
  --sym-tri: #3ba55c;
  --sym-cir: #ff6b6b;
  --sym-squ: #f0c0e0;
  --sym-crs: #2d7aff;
  --sym-plat: #c0c8d8;
  --sym-gold: #ffd700;
  --sym-silver: #b0b8c0;
  --sym-bronze: #cd7f32;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f4f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #eef2f7;
  --bg-sunken: #cbd5e5;
  --text: #17233d;
  --text-dim: #5a6a85;
  --line-soft: rgba(15,35,70,0.07);
  --line: rgba(15,35,70,0.10);
  --line-strong: rgba(15,35,70,0.15);
  --surface-1: rgba(15,35,70,0.04);
  --shadow: 0 8px 30px rgba(23,35,61,0.10);
  --shadow-xs: 0 2px 8px rgba(23,35,61,0.10);
  --accent-soft-2: rgba(11,107,214,0.14);
  --gold-ink: #b45309;
  --red-ink: #d32f2f;
  --blue-ink: #2563eb;
  --ps-light-blue: #0b6bd6;
  --badge-plat: #64748b;
  --badge-plat-bg: rgba(100,116,139,0.10);
  --badge-plat-border: rgba(100,116,139,0.26);
  --plat-ps4-a: #7e57c2;
  --plat-ps4-b: #5e35b1;
  --glow-deep: rgba(0,90,190,0.09);
  --glow-deep-2: rgba(0,112,204,0.06);
  --glow-1: rgba(0,112,204,0.07);
  --accent-faint: rgba(11,107,214,0.08);
  --grid: rgba(0,112,204,0.02);
  --sym-tri: #0e8a45;
  --sym-cir: #d32f2f;
  --sym-squ: #a34d86;
  --sym-crs: #0b6bd6;
  --sym-plat: #7f8aa0;
  --sym-gold: #b58900;
  --sym-silver: #78828f;
  --sym-bronze: #9c5a1e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg-page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  padding-bottom: 60px;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 400px 300px at 10% 10%, var(--glow-deep) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 90% 15%, var(--glow-1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 5% 85%, var(--glow-deep-2) 0%, transparent 70%),
    radial-gradient(ellipse 450px 350px at 95% 80%, var(--accent-faint) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, var(--grid) 40px, var(--grid) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, var(--grid) 40px, var(--grid) 41px);
  pointer-events: none;
  z-index: 0;
}
.ps-symbols {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ps-symbols span {
  position: absolute;
  font-size: 60px;
  font-weight: 900;
  opacity: 0.06;
  user-select: none;
}
.ps-symbols .tri { color: var(--sym-tri); }
.ps-symbols .cir { color: var(--sym-cir); }
.ps-symbols .squ { color: var(--sym-squ); }
.ps-symbols .crs { color: var(--sym-crs); }
.ps-symbols .trophy { font-size: 48px; }
.ps-symbols .trophy-plat { color: var(--sym-plat); opacity: 0.07; }
.ps-symbols .trophy-gold { color: var(--sym-gold); opacity: 0.07; }
.ps-symbols .trophy-silver { color: var(--sym-silver); opacity: 0.06; }
.ps-symbols .trophy-bronze { color: var(--sym-bronze); opacity: 0.06; }
.top-nav {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(10,14,26,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
:root[data-theme="light"] .top-nav {
  background: rgba(244,246,250,0.92);
  border-bottom-color: rgba(15,35,70,0.10);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ps-light-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0,112,204,0.08);
  border: 1px solid rgba(0,112,204,0.2);
  transition: all 0.2s;
}
.back-link:hover { background: var(--ps-blue); color: #fff; }
.back-link svg { width: 16px; height: 16px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 20px 0; position: relative; z-index: 1; }
.post-head { margin-bottom: 22px; }
.post-head-title { font-size: 22px; font-weight: 800; line-height: 1.35; margin: 10px 0 8px; }
.post-head-meta { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#postStats { margin-left: auto; display: inline-flex; align-items: center; }
.post-head-meta .post-stat { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.post-head-meta .post-stat svg { width: 14px; height: 14px; }
.post-like-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.post-like {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  background: var(--surface-1); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; transition: all .15s; user-select: none;
}
.post-like .pl-ico { display: inline-flex; }
.post-like .pl-ico svg { width: 16px; height: 16px; }
.post-like:hover { border-color: var(--ps-blue); color: var(--ps-blue); }
.post-like.on { background: rgba(255,77,109,0.12); border-color: rgba(255,77,109,0.4); color: #ff4d6d; }
.post-like:disabled { opacity: .6; cursor: default; }
.post-like-tip { font-size: 12px; color: var(--text-dim); }
.post-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.post-tag.hui { background: rgba(245,216,73,0.14); color: var(--gold-ink); }
.post-tag.ruku { background: var(--accent-soft-2); color: var(--blue-ink); }
.post-tag.chuku { background: rgba(255,107,107,0.15); color: var(--red-ink); }
.video-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.video-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px;
  background: var(--surface-1); border: 1px solid var(--line);
  color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none;
}
.video-link:hover { background: var(--bg-card-hover); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: all 0.3s;
}
.card:hover { background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-sunken);
}
.card-cover { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; font-weight: 700;
}
.tier-badge-overlay {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 1px;
  box-shadow: var(--shadow-xs);
}
.tier-1 { background: linear-gradient(135deg, #4d83c1 0%, #253f81 100%); color: #fff; }
.tier-2 { background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%); color: #1a1a1a; }
.tier-3 { background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%); color: #ffd700; }
.mc-badge-overlay {
  position: absolute; bottom: 8px; right: 8px;
  padding: 3px 7px; border-radius: 6px;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-xs);
}
.mc-green { background: rgba(129,199,84,0.85); color: #fff; }
.mc-yellow { background: rgba(245,216,73,0.85); color: #1a1a1a; }
.mc-red { background: rgba(229,115,115,0.85); color: #fff; }
.mc-gray { background: rgba(128,128,128,0.6); color: #ccc; }
.cover-bl { position: absolute; bottom: 8px; left: 8px; z-index: 4; display: flex; align-items: center; gap: 4px; }
.hk-none-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.3;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff; box-shadow: var(--shadow-xs); white-space: nowrap;
}
.card-info { padding: 10px 12px 12px; }
.card-name {
  font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.platform-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.plat-ps4 { background: linear-gradient(135deg, var(--plat-ps4-a) 0%, var(--plat-ps4-b) 100%); color: #fff; }
.plat-ps5 { background: linear-gradient(135deg, var(--plat-ps5-a) 0%, var(--plat-ps5-b) 100%); color: #fff; }
.plat-ps3 { background: linear-gradient(135deg, #26a69a 0%, #00897b 100%); color: #fff; }
.plat-psv { background: linear-gradient(135deg, #ffa726 0%, #ef6c00 100%); color: #fff; }
.card-actions { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; }
.badge-has-plat { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--badge-plat-bg); color: var(--badge-plat); border: 1px solid var(--badge-plat-border); width: 48px; box-sizing: border-box; flex-shrink: 0; white-space: nowrap; }
.badge-has-dlc { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: rgba(176,140,224,0.12); color: #b08ce0; border: 1px solid rgba(176,140,224,0.3); width: 48px; box-sizing: border-box; flex-shrink: 0; white-space: nowrap; }
.card-guide-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 4px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--ps-blue) 0%, var(--ps-dark-blue) 100%); text-decoration: none; flex-shrink: 0; white-space: nowrap; width: 48px; box-sizing: border-box; }
.card-guide-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.card { container-type: inline-size; }
@container (max-width: 164px) { .card-actions { gap: 3px; } .badge-has-plat, .badge-has-dlc, .card-guide-btn { width: 44px; padding: 2px 2px; font-size: 10.5px; } }
@container (max-width: 156px) { .card-actions { gap: 2px; } .badge-has-plat, .badge-has-dlc, .card-guide-btn { width: 40px; padding: 2px 1px; font-size: 10px; } }
.nav-row { display: flex; gap: 10px; margin-top: 26px; }
.nav-link {
  flex: 1; padding: 12px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  color: var(--text); text-decoration: none; font-size: 13px;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.nav-link:hover { background: var(--bg-card-hover); }
.nav-link span { color: var(--text-dim); font-size: 11px; }
.nav-link b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-link.next { text-align: right; }
footer {
  text-align: center; color: var(--text-dim); font-size: 12px;
  margin-top: 40px; line-height: 1.9;
}
.state { text-align: center; padding: 60px 0; color: var(--text-dim); font-size: 14px; }
@media (max-width: 380px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-head-title { font-size: 19px; }
  .wrap { padding: 16px 14px 0; }
  .card-name { font-size: 12px; }
}

.cmt-wrap { margin-top: 34px; }
.cmt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.cmt-count { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.cmt-empty { font-size: 13px; color: var(--text-dim); padding: 18px 0; }
.cmt-more {
  display: block; width: 100%; margin-top: 12px; padding: 10px;
  border-radius: 10px; border: 1px dashed var(--line-strong);
  background: transparent; color: var(--text-dim); font-size: 12.5px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.cmt-composer { margin-top: 18px; }
.cmt-replybar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; margin-bottom: 8px;
  border-radius: 10px; font-size: 12.5px;
  background: rgba(0,112,204,0.08); border: 1px solid rgba(0,112,204,0.22);
  color: var(--text-dim);
}
.cmt-replybar b { color: var(--ps-blue); font-weight: 700; }
.cmt-replybar-x {
  margin-left: auto; border: none; background: transparent; cursor: pointer;
  color: var(--text-dim); font-size: 12px; font-weight: 700; font-family: inherit;
  padding: 2px 6px; border-radius: 6px;
}
.cmt-replybar-x:hover { color: var(--red-ink); background: rgba(255,107,107,0.1); }
.cmt-replies { margin: 6px 0 10px 14px; padding-left: 12px; border-left: 2px solid var(--line-soft); }
.cmt-replies .msg { margin-bottom: 8px; }
@media (max-width: 600px) {
  .cmt-replies { margin-left: 6px; padding-left: 8px; }
}
.cmt-ta {
  width: 100%; min-height: 78px; resize: vertical;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text);
  padding: 12px; font-size: 13.5px; line-height: 1.6; font-family: inherit;
}
.cmt-ta:focus { outline: none; border-color: var(--ps-blue); }
.cmt-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.cmt-hint { font-size: 12px; color: var(--text-dim); }
.cmt-send {
  padding: 8px 22px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #00bcff, #0070e0);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cmt-send:disabled { opacity: 0.5; cursor: default; }
.cmt-guest {
  text-align: center; padding: 20px 16px; border-radius: 12px;
  border: 1px dashed var(--line-strong); color: var(--text-dim);
  font-size: 13px; line-height: 1.7;
}
.cmt-guest a { color: var(--ps-light-blue); text-decoration: none; font-weight: 700; }
