:root {
  --blue: #2196f3;
  --navy: #0052b0;
  --ink: #222;
  --muted: #a1a1a1;
  --line: #e5e5e5;
  --line-soft: #e0e0e0;
  --gray: #eaeaea;
  --gray-2: #e1e1e1;
  --pink: #f53f9f;
  --amber: #f59e0b;
  --amber-hover: #fbbf24;
  --header-h: 50px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
img { max-width: 100%; }

.site-header {
  height: var(--header-h);
  background: var(--navy);
}
.header-inner {
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand .ic-logo { width: 30px; height: 30px; color: #fff; }
.nav { display: flex; align-items: center; gap: 10px; height: 100%; }
.nav-link {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.nav-link .ic { width: 24px; height: 24px; color: #fff; }
.nav-link:hover,
.nav-link.on {
  text-shadow: 0 0 12px #fff, 0 0 2px #fff;
}
@media (max-width: 480px) {
  .nav-link span { display: none; }
  .header-inner { justify-content: space-between; }
}

#app { flex: 1; }
.wrap {
  max-width: 1920px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  padding: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }

.more-status {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.more-status[hidden] { display: none; }

.card {
  position: relative;
  display: block;
  transform: scale(1);
  transition: transform .3s ease;
}
.card:hover { transform: scale(1.05); z-index: 3; }
.thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, .38);
}
.thumb img,
.shot img,
.side-thumb img,
.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 10px;
  border: 2px solid #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover .overlay { opacity: 1; }
.overlay span {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  padding: 0 4px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  background: var(--navy);
  color: #fff;
}
.footer-inner {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.footer-inner a { font-size: 14px; }
.footer-inner a:hover { color: #333; text-decoration: underline; }

.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) {
  .top-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
.detail-body { display: flex; gap: 10px; align-items: flex-start; }
.sidebar { width: 320px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.side-card {
  display: flex;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 12px;
  transition: transform .3s ease;
}
.side-card:hover { transform: scale(1.04); }
.side-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .4);
}
.side-copy { width: calc(100% - 90px); display: flex; flex-direction: column; justify-content: space-evenly; min-width: 0; }
.side-copy strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { width: 20px; height: 20px; }
.rate-num { margin-left: 4px; font-size: 14px; color: #444; }

.panel {
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 20px;
  width: calc(100% - 330px);
  min-width: 0;
}
.crumbs { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.crumbs a:hover { text-decoration: underline; }
.hero-row { display: flex; justify-content: space-between; gap: 10px; }
.ad-slot { width: 380px; flex: none; max-width: 100%; }
.ad-label { color: #b1b1b1; font-size: 12px; text-align: center; margin-bottom: 4px; }
.ad-box {
  height: 100%;
  width:100%;
}
.hero-main { width: calc(100% - 400px); display: flex; flex-direction: column; min-width: 0; }
.identity { display: flex; gap: 10px; padding: 20px 0; }
.cover-wrap {
  width: 100px;
  height: 100px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .4);
  position: relative;
}
.cover { position: absolute; }
.identity h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity .stars .rate-num { font-size: 16px; font-weight: 700; }

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.meta {
  height: 40px;
  flex: 1 1 calc(50% - 5px);
  display: flex;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-width: 140px;
}
.meta .ic { width: 30px; height: 30px; color: #666; margin: 5px; }
.meta div { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.meta b, .meta span { font-size: 12px; line-height: 16px; }
.meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vote-q { margin: 14px 0 8px; font-size: 14px; }
.votes { display: flex; flex-wrap: wrap; gap: 10px; }
.vote {
  border: 0;
  background: #f3f3f3;
  color: #777;
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.vote .ic { width: 18px; height: 18px; }
.vote:hover { background: var(--gray); color: #444; }
.vote.on,
.vote:has(input:checked),
.vote.on:hover,
.vote:has(input:checked):hover {
  background: var(--blue);
  color: #fff;
}
.vote:nth-child(2).on,
.vote:nth-child(2):has(input:checked),
.vote:nth-child(2).on:hover,
.vote:nth-child(2):has(input:checked):hover { background: #fe9904; }
.vote:nth-child(3).on,
.vote:nth-child(3):has(input:checked),
.vote:nth-child(3).on:hover,
.vote:nth-child(3):has(input:checked):hover { background: #f4473a; }
.vote.on .ic,
.vote:has(input:checked) .ic { filter: brightness(0) invert(1); }

.shots {
  margin-top: 16px;
  height: 270px;
  background: rgba(177, 177, 177, .2);
  border-radius: 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
}
.shots img {
  height: 250px;
  width: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, .4);
  flex: none;
}
.ad-block { margin-top: 8px; }
.ad-block .ad-box { min-height: 90px; }

.safety {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.safety .ic { width: 40px; height: 40px; }
.safety b { font-size: 16px; }
.safety p { margin: 0; font-size: 12px; color: #444; }

.block {
  border: 1px solid var(--line-soft);
  padding: 24px;
  margin-bottom: 16px;
}
.block h2 { margin: 0 0 20px; font-size: 18px; }
.block p { margin: 0; font-size: 14px; white-space: pre-line; line-height: 1.55; }

.stores h2, .comments h2, .info-table-wrap h2, .related-title {
  font-size: 20px;
  margin: 0 0 8px;
}
.store-row { display: flex; gap: 20px; }
.store {
  flex: 1;
  display: flex;
  min-width: 0;
}
.store-btn {
  flex: 1;
  height: 50px;
  background: var(--gray);
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.store-btn:hover { background: var(--gray-2); }
.store-btn span { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; }
.store-btn small { font-size: 12px; font-weight: 400; color: #666; }
.store-btn .ic { width: 20px; height: 20px; }
.qr-btn {
  width: 50px;
  height: 50px;
  background: var(--gray-2);
  border: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-btn .ic { width: 30px; height: 30px; }
.qr-pop {
  display: none;
  position: absolute;
  bottom: 65px;
  left: -70px;
  width: 180px;
  background: #fff;
  padding: 12px;
  box-shadow: rgba(0, 0, 0, .2) 6px 7px 20px 0;
  z-index: 5;
  color: #333;
  font-size: 12px;
  word-break: break-all;
  text-align: left;
}
.qr-btn:hover .qr-pop, .qr-btn:focus .qr-pop { display: block; }

.comment-box {
  height: 120px;
  background: var(--gray-2);
  border-radius: 10px;
  padding: 20px;
}
.comment-box textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 20px;
}
.comment-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.send {
  width: 130px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.send:hover { filter: brightness(1.05); }
.comment-list { margin: 12px 0 0; padding: 0; list-style: none; }
.comment-list li {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  white-space: pre-wrap;
}

.tabs { display: flex; }
.tab {
  flex: 1;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  color: #555;
}
.tab .ic { width: 20px; height: 20px; }
.tab.on,
.panel:has(#plat-0:checked) label[for="plat-0"],
.panel:has(#plat-1:checked) label[for="plat-1"],
.panel:has(#plat-2:checked) label[for="plat-2"] {
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--blue);
}
.plat-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.shots-set,
.info-set { display: none; }
.panel:has(#plat-0:checked) .shots-set[data-plat="0"],
.panel:has(#plat-1:checked) .shots-set[data-plat="1"],
.panel:has(#plat-2:checked) .shots-set[data-plat="2"] { display: flex; }
.panel:has(#plat-0:checked) .info-set[data-plat="0"],
.panel:has(#plat-1:checked) .info-set[data-plat="1"],
.panel:has(#plat-2:checked) .info-set[data-plat="2"] { display: block; }
.vote { position: relative; }
.vote input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.info-table { background: var(--gray); }
.info-row { height: 38px; display: flex; align-items: center; }
.info-row b, .info-row span { width: 50%; font-size: 14px; }
.info-row b { padding-left: 20px; }

.related-title { text-align: center; font-size: 24px; font-weight: 700; margin: 16px 0 8px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.rel {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 6);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, .4);
}
.rel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel h2 {
  position: absolute;
  left: 0;
  bottom: 10px;
  margin: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel .frame {
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  opacity: 0;
  z-index: 2;
}
.rel:hover .frame { opacity: 1; }
.rel:hover { transform: scale(1.03); }

.policy {
  max-width: 900px;
  margin: 16px auto;
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 28px 32px 36px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}
.policy h1 { margin: 0 0 16px; font-size: 32px; }
.policy h2 { margin: 18px 0 8px; font-size: 18px; }
.policy p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.policy a { color: var(--blue); }

.empty {
  background: #fff;
  color: #333;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}

@media (max-width: 1023px) {
  .sidebar { display: none; }
  .panel { width: 100%; }
}
@media (max-width: 800px) {
  .hero-row, .store-row { flex-direction: column; }
  .ad-slot, .hero-main { width: 100%; }
  .rel { flex-basis: calc((100% - 16px) / 3); }
  .shots { height: 180px; }
  .shots img { height: 160px; }
  .policy { margin: 10px; padding: 18px; }
}
