:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #75809a;
  --line: #e8edf6;
  --accent: #2f6dff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% -20%, #ffffff, var(--bg));
  color: var(--text);
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

.shell {
  max-width: 860px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.top,
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 10px;
  align-items: center;
}

.icon-link,
.icon-btn {
  text-decoration: none;
  color: #54607b;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-link svg,
.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand,
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge,
.brand-dot,
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-badge,
.brand-dot {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #4461ff, #9245ff);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand h1,
.brand-wrap h1 {
  margin: 0;
  font-size: 19px;
}

.brand p,
.brand-wrap p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.wrap {
  padding: 8px 14px 14px;
}

.title {
  margin: 0 0 14px;
  font-size: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  overflow: hidden;
}

.thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gradient-1 { background: linear-gradient(140deg, #2472ff, #7f52ff); }
.gradient-2 { background: linear-gradient(140deg, #0b0f1f, #39466f); }
.gradient-3 { background: radial-gradient(circle, #ceff2f, #0f1726); }
.gradient-4 { background: linear-gradient(140deg, #ff6ac2, #ff7d6b); }

.card h3 {
  margin: 10px 0 4px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #5b637b;
}

.crumb {
  margin: 0 0 12px;
  color: #8390a8;
  font-size: 17px;
}

.crumb a {
  color: #2f6dff;
  text-decoration: none;
  font-weight: 600;
}

.crumb a:hover {
  text-decoration: underline;
}

.post-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.5px;
}

.poster {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0 auto 16px;
}

.poster .avatar {
  font-size: 88px;
  font-weight: 700;
  opacity: 0.92;
}

.poster-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vip-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #29b44a;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  padding: 6px 12px;
  font-weight: 700;
}

.section-title {
  margin: 0 0 10px;
  font-size: 40px;
}

.detail-grid {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-row + .detail-row {
  border-top: 1px solid var(--line);
}

.detail-item {
  padding: 16px 10px;
  text-align: center;
}

.detail-item + .detail-item {
  border-left: 1px solid var(--line);
}

.detail-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
}

.detail-icon svg {
  width: 100%;
  height: 100%;
  stroke: #49aa59;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 6px;
}

.detail-label {
  color: #6f7a93;
  font-size: 12px;
}

.detail-value {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
}

.summary {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: #465069;
  line-height: 1.45;
  font-size: 16px;
}

.quick-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.meta-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.meta-box .label {
  color: #6d7891;
  font-size: 13px;
}

.meta-box .value {
  margin-top: 4px;
  font-size: 27px;
  font-weight: 700;
}

.store-badge {
  display: inline-block;
  margin-top: 8px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.rating-wrap {
  margin-top: 16px;
}

.rating-wrap h4,
.mod-wrap h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.stars {
  color: #f6b81a;
  font-size: 24px;
  letter-spacing: 2px;
}

.stars .dim {
  color: #cfd6e6;
}

.rating-note {
  color: #818ba1;
  font-size: 14px;
  margin-left: 8px;
}

.download-wide {
  margin-top: 14px;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #13b541;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
}

.mod-wrap {
  margin-top: 16px;
}

.mod-box {
  background: #fff2bd;
  border: 1px solid #f2dc92;
  border-radius: 12px;
  padding: 12px 14px;
}

.mod-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mod-list li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  color: #6f5517;
  font-size: 17px;
  line-height: 1.35;
}

.mod-list li::before {
  content: "●";
  position: absolute;
  left: 8px;
  top: 0;
  color: #9e6c0f;
}

.mod-extra {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.mod-extra h5 {
  margin: 10px 0 6px;
  font-size: 16px;
  color: #24314f;
}

.mod-extra h5:first-child {
  margin-top: 0;
}

.mod-extra p {
  margin: 0;
  color: #505b74;
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.light {
  background: #edf3ff;
  color: #2850b8;
}

@media (max-width: 640px) {
  .post-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 34px;
  }

  .poster {
    width: min(100%, 280px);
  }

  .detail-value {
    font-size: 15px;
  }

  .meta-box .value {
    font-size: 21px;
  }

  .download-wide {
    font-size: 18px;
  }

  .mod-list li {
    font-size: 15px;
  }

  .mod-extra h5 {
    font-size: 14px;
  }

  .mod-extra p {
    font-size: 13px;
  }
}

/* ── Summary Lines ──────────────────────────────── */
.summary-section {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.summary-section:empty { display: none; }
.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.summary-item:last-child { border-bottom: none; }
.summary-item:hover,
.summary-item:active { background: #f4f7fb; }
.summary-txt { flex: 1; }
.summary-arr {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--muted);
}

/* ── Slide Overlay ──────────────────────────────── */
.slide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.slide-overlay.on {
  opacity: 1;
  pointer-events: all;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.menu-overlay.on {
  opacity: 1;
  pointer-events: all;
}

.menu-sheet {
  width: min(320px, calc(100% - 28px));
  height: 100%;
  background: #fff;
  padding: 18px 16px;
  box-shadow: 18px 0 50px rgba(18, 31, 61, 0.16);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-overlay.on .menu-sheet {
  transform: translateX(0);
}

.menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.menu-head h3 {
  margin: 0;
  font-size: 20px;
  color: #24314f;
}

.menu-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-links a,
.menu-links button {
  border: 1px solid var(--line);
  background: #fff;
  color: #24314f;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.menu-links button {
  width: 100%;
}

.menu-note {
  margin-top: auto;
  border-radius: 14px;
  background: #f6f8fd;
  border: 1px solid var(--line);
  padding: 14px;
}

.menu-note strong {
  display: block;
  margin-bottom: 8px;
  color: #24314f;
}

.menu-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #556178;
}

.site-footer {
  margin-top: 24px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #6b748b;
}

.site-footer-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

.site-footer-links a {
  text-decoration: none;
  color: #44506b;
  font-size: 12px;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.slide-sheet {
  background: #fff;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.slide-overlay.on .slide-sheet { transform: translateY(0); }
.slide-hdr {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sdots { display: flex; gap: 8px; flex: 1; }
.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d0d7e8;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.sdot.active { background: var(--accent); transform: scale(1.3); }
.slide-x {
  border: none;
  background: #edf3ff;
  color: #2850b8;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.slide-track {
  display: flex;
  flex: 1;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.slide-pane {
  flex: 0 0 100%;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
  max-height: calc(80vh - 56px);
}
.slide-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}
.sinfo-list { list-style: none; margin: 0; padding: 0; }
.sinfo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  gap: 8px;
}
.sinfo-list li:last-child { border-bottom: none; }
.sinfo-list li span { color: var(--muted); flex-shrink: 0; }
.sinfo-list li strong { color: var(--text); text-align: right; }
.smod-list { list-style: none; margin: 0; padding: 0; }
.smod-list li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #3d4a62;
}
.smod-list li:last-child { border-bottom: none; }
.smod-list li::before {
  content: "●";
  position: absolute;
  left: 2px;
  color: #49aa59;
  font-size: 10px;
  top: 11px;
}
.disc-p {
  font-size: 13px;
  color: #505b74;
  line-height: 1.6;
  margin: 0 0 12px;
}
.disc-p:last-child { margin-bottom: 0; }
