.sp { display: flex; flex-direction: column; gap: 32px; padding-top: 4px; }
.sp-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
.sp-main { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: var(--bg-soft-2); }
.sp-main img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.sp-thumbs button { flex: none; width: 84px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: var(--bg-soft-2); opacity: .6; }
.sp-thumbs button[aria-pressed="true"] { border-color: var(--blue); opacity: 1; }
.sp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sp-game { font-size: 14px; line-height: 20px; color: var(--muted); }
.sp-side h1 { font-size: 28px; line-height: 36px; font-weight: 700; overflow-wrap: anywhere; }
.sp-price { display: flex; align-items: center; gap: 8px; }
.sp-price b { font-size: 32px; line-height: 40px; font-weight: 700; color: #22bd65; }
html[data-theme="light"] .sp-price b { color: #00a846; }
.sp-badges { display: flex; }
.sp-seller { display: flex; align-items: center; gap: 12px; }
.sp-ava { position: relative; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--bg-soft-2); color: var(--blue); }
.sp-ava img { width: 100%; height: 100%; object-fit: cover; }
.sp-ava svg { width: 22px; height: 22px; }
.sp-seller b { display: block; font-size: 18px; line-height: 24px; }
.sp-rate { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.sp-rate strong { color: var(--text); font-size: 16px; }
.sp-rate a { color: #5286ff; }
.sp-stars { display: inline-flex; color: var(--blue); }
.sp-stars svg { width: 16px; height: 16px; fill: none; stroke: none; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-buy, .sp-msg { height: 52px; padding: 0 28px; border: 0; border-radius: 10px; font: 700 18px/28px var(--font); }
.sp-buy { background: var(--tu-radio-on); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); color: #fff; }
.sp-buy:hover { filter: brightness(1.08); }
.sp-msg { background: var(--bg-soft-2); color: var(--text); }
html[data-theme="dark"] .sp-msg { background: #282933; }
.sp-safe { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.sp-safe li { position: relative; padding-left: 36px; font-size: 16px; line-height: 24px; }
.sp-safe li:first-child::before { content: "🔒"; position: absolute; left: 4px; top: 0; }
.sp-check::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 6px; background: #5286ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sp-pay { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.sp-pay img { width: 32px; height: 32px; object-fit: contain; }
.sp-sec h2 { margin-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 700; }
.sp-sec h2 span { color: var(--muted); font-weight: 400; }
.sp-desc { white-space: pre-line; overflow-wrap: anywhere; color: var(--text-2); }
.sp-sum { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.sp-big { font-size: 56px; line-height: 64px; font-weight: 700; }
.sp-dist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; min-width: 240px; font-size: 13px; color: var(--muted); }
.sp-dist > div { display: flex; align-items: center; gap: 8px; }
.sp-dist span:first-child { width: 10px; }
.sp-dist i { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: var(--bg-soft-2); }
.sp-dist em { display: block; height: 100%; background: #5286ff; }
.sp-list { display: flex; flex-direction: column; }
.sp-rev { padding: 16px 0; border-top: 1px solid var(--line); }
.sp-rev-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sp-rev-h time { margin-left: auto; font-size: 14px; color: var(--muted); }
.sp-rev p { margin-top: 8px; overflow-wrap: anywhere; }
.sp-more { padding-top: 16px; }
.sp-more button { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--bg-soft-2); color: var(--text); font: 500 16px/1 var(--font); }
html[data-theme="dark"] .sp-more button { background: #282933; }
.sp-more button[hidden] { display: none; }

.ad { display: flex; flex-direction: column; gap: 24px; max-width: 980px; margin: 0 auto; }
.ad-head { display: flex; align-items: center; justify-content: space-between; }
.ad-head h1 { font-size: 28px; line-height: 36px; font-weight: 700; }
.ad h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.ad h3 { font-size: 16px; line-height: 24px; font-weight: 700; }
.ad button, .ad a.sp-buy { font-family: var(--font); cursor: pointer; }
.ad-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.ad-tabs button { position: relative; height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: 400 18px/28px var(--font); transition: color .18s; }
.ad-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--chip-accent, #ff640a); opacity: 0; transition: opacity .18s; }
.ad-tabs button:hover, .ad-tabs button[aria-pressed="true"] { color: var(--chip-accent, #ff640a); }
.ad-tabs button[aria-pressed="true"]::after { opacity: 1; }
.ad .sp-buy, .ad .sp-msg { height: 44px; padding: 0 20px; font-size: 16px; line-height: 24px; }
.ad-row button, .ad-gen button:not(.sp-buy), .ad-rev button, .ad-img button, .ad-head button { height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--bg-soft-2); color: var(--text); font: 500 15px/20px var(--font); }
html[data-theme="dark"] .ad-row button, html[data-theme="dark"] .ad-gen button:not(.sp-buy), html[data-theme="dark"] .ad-rev button, html[data-theme="dark"] .ad-head button { background: #282933; }
.ad-row button:hover, .ad-gen button:not(.sp-buy):hover { color: var(--blue); }
.ad-login { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 420px; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ad input, .ad select, .ad textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; outline: 0; background: var(--field); color: var(--text); font: 400 16px/24px var(--font); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.ad input:hover, .ad input:focus, .ad select:hover, .ad select:focus, .ad textarea:hover, .ad textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.ad input[type="checkbox"] { flex: none; width: 22px; min-height: 22px; height: 22px; padding: 0; border-radius: 6px; appearance: none; -webkit-appearance: none; background: var(--bg-soft-2) center / 16px no-repeat; cursor: pointer; }
.ad input[type="checkbox"]:checked { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.ad input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.ad input[type="number"]::-webkit-inner-spin-button, .ad input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.ad select { padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238593ab' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; background-size: 20px; }
.ad input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.ad-file { display: inline-flex; flex: none; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--bg-soft-2); color: var(--text); font: 500 15px/20px var(--font); cursor: pointer; transition: color .18s; }
.ad-file:hover { color: var(--blue); }
html[data-theme="dark"] .ad-file { background: #282933; }
.ad textarea { resize: vertical; }
.ad-err { min-height: 20px; color: var(--red); font-size: 14px; line-height: 20px; }
.ad-bar { display: flex; }
.ad-list { display: flex; flex-direction: column; gap: 8px; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ad-row img { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; }
.ad-row > div { flex: 1; min-width: 0; }
.ad-row b { display: block; overflow: hidden; font-size: 16px; line-height: 24px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ad-row span { font-size: 14px; line-height: 20px; color: var(--muted); }
.ad-row a { color: var(--blue); font-size: 15px; }
.ad-roles { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ad-roles .ad-gen input { flex: 1 1 220px; width: auto; }
.ad-roles .ad-gen select { flex: 0 1 220px; width: auto; }
.ad-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ad-f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ad-up { display: flex; gap: 8px; }
.ad-check { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 24px; cursor: pointer; }
.ad-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--field); }
.ad-box input, .ad-box select { background: var(--bg); }
.ad-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-img { position: relative; width: 96px; height: 72px; }
.ad-img img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.ad-img button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border-radius: 50%; line-height: 1; }
.ad-gen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.ad-gen input[type="number"] { width: 84px; }
.ad-revs { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.ad-rev { display: grid; grid-template-columns: 140px 84px 160px 1fr 40px; gap: 8px; }
.ad-rev button { padding: 0; }
.ad-act { display: flex; gap: 12px; }
@media (max-width: 860px) {
  .sp-top { grid-template-columns: 1fr; gap: 20px; }
  .sp-side h1 { font-size: 22px; line-height: 28px; }
  .sp-price b { font-size: 26px; }
  .sp-buy, .sp-msg { flex: 1; }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-rev { grid-template-columns: 1fr 84px; }
  .ad-tabs { gap: 16px; }
  .ad-roles, .ad-form { padding: 16px; }
  .ad-rev [data-r="text"] { grid-column: 1 / -1; }
}

[data-ad-body] { display: flex; flex-direction: column; gap: 20px; }
.ad-empty-note { color: var(--muted); }
.ad-box > .ad-file { align-self: flex-start; }
