.qsg-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; }
.qsg { --qsg-bg: #fff; --qsg-text: #111827; --qsg-muted: #6b7280; --qsg-line: #e5e7eb; --qsg-pill: #eef1f7; --qsg-gap: 12px; --qsg-vis: var(--qsg-cols, 4); margin: 1.2em 0; color: var(--qsg-text); font-family: inherit; line-height: 1.3; }
.qsg *, .qsg *::before, .qsg *::after { box-sizing: border-box; }
.qsg a, .qsg a:hover, .qsg a:focus { text-decoration: none !important; box-shadow: none; }
.qsg button { font-family: inherit; } .qsg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--qsg-line); margin-bottom: 14px; }
.qsg-brand { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: var(--qsg-text); line-height: 1.1; }
.qsg-share { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 14px; border: 1px solid var(--qsg-line); border-radius: 999px; background: var(--qsg-bg); color: var(--qsg-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.qsg-brand + .qsg-share { margin-left: 0; }
.qsg-share:hover { border-color: var(--qsg-accent); color: var(--qsg-accent); } .qsg-pillswrap { margin: 0 0 6px; }
.qsg-pills { display: flex; gap: 10px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qsg-pills::-webkit-scrollbar { display: none; }
.qsg-pill { flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; background: var(--qsg-pill); color: var(--qsg-text) !important; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.qsg-pill:hover, .qsg-pill:focus-visible { background: var(--qsg-accent); color: var(--qsg-ink) !important; } .qsg-sec { padding: 22px 0 8px; border-top: 1px solid var(--qsg-line); scroll-margin-top: 80px; }
.qsg-sec:first-of-type { border-top: 0; }
.qsg-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.qsg-sec-title { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--qsg-text); line-height: 1.2; }
.qsg-more { font-size: 14px; font-weight: 600; color: var(--qsg-accent) !important; white-space: nowrap; } .qsg-rowwrap { position: relative; }
.qsg-row { display: flex; gap: var(--qsg-gap); overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 1px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qsg-row::-webkit-scrollbar { display: none; }
.qsg-row .qsg-card { flex: 0 0 calc((100% - (var(--qsg-vis) - 1) * var(--qsg-gap)) / var(--qsg-vis)); scroll-snap-align: start; }
.qsg-arrow { position: absolute; top: 105px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 18px; line-height: 38px; text-align: center; padding: 0; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
.qsg-arrow[hidden] { display: none; }
.qsg-prev { left: 10px; } .qsg-next { right: 10px; }
.qsg-arrow:hover { background: var(--qsg-accent); color: var(--qsg-ink); } .qsg-grid { display: grid; grid-template-columns: repeat(var(--qsg-cols, 4), minmax(0, 1fr)); gap: var(--qsg-gap); } .qsg-card { display: flex; flex-direction: column; min-width: 0; background: var(--qsg-bg); border: 1px solid var(--qsg-line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.qsg-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.qsg-media { position: relative; display: block; aspect-ratio: 5 / 6; background: #1b1b1f; overflow: hidden; }
.qsg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.qsg-card:hover .qsg-media img { transform: scale(1.05); }
.qsg-badge { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(60, 60, 60, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
.qsg-dashes { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 3px; padding: 26px 8px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.qsg-dashes i { flex: 1 1 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .88); }
.qsg-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 10px; }
.qsg-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--qsg-text) !important; }
.qsg-name:hover { color: var(--qsg-accent) !important; }
.qsg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qsg-foot time { font-size: 13px; color: var(--qsg-muted); }
.qsg-sharebtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--qsg-line); background: var(--qsg-bg); color: var(--qsg-text); cursor: pointer; }
.qsg-sharebtn:hover { border-color: var(--qsg-accent); color: var(--qsg-accent); }
.qsg-flash { position: absolute; right: 0; bottom: 40px; padding: 4px 8px; border-radius: 4px; background: #111; color: #fff; font-size: 12px; white-space: nowrap; } .qsg-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 6px; }
.qsg-pages .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--qsg-line); color: var(--qsg-text) !important; font-weight: 600; }
.qsg-pages a.page-numbers:hover { border-color: var(--qsg-accent); }
.qsg-pages .page-numbers.current { background: var(--qsg-accent); border-color: var(--qsg-accent); color: var(--qsg-ink) !important; }
.qsg-pages .dots { border-color: transparent; }
.qsg-empty { padding: 30px 0; text-align: center; color: var(--qsg-muted); }
@media (max-width: 1100px) { .qsg { --qsg-vis: min(var(--qsg-cols, 4), 3); } .qsg-grid { grid-template-columns: repeat(min(var(--qsg-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 720px) {
.qsg { --qsg-vis: 2.25; --qsg-gap: 10px; }
.qsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qsg-brand { font-size: 20px; }
.qsg-name { font-size: 14px; }
.qsg-body { padding: 10px 10px 8px; }
}
@media (hover: none) { .qsg-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .qsg-card, .qsg-media img { transition: none; } .qsg-card:hover, .qsg-card:hover .qsg-media img { transform: none; } }
@media (prefers-color-scheme: dark) {
.qsg { --qsg-bg: #17181c; --qsg-text: #f3f4f6; --qsg-muted: #9ca3af; --qsg-line: #2b2d33; --qsg-pill: #23252b; }
}