:root {
  --primary: #6657e8;
  --primary-2: #8b6cf6;
  --ink: #182033;
  --muted: #778094;
  --line: #e7e8f2;
  --bg: #f6f7fc;
  --card: #fff;
  --success: #12a66a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.front-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2000;
  max-width: min(340px, calc(100vw - 32px));
  padding: 11px 15px;
  border-radius: 10px;
  background: rgba(24, 32, 51, .94);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}

.front-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shell {
  width: min(1180px, 100%);
  margin: auto;
  padding: 28px 20px 54px;
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #dfdcff;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #f1efff 100%);
  box-shadow: 0 16px 45px rgba(68, 61, 138, .08);
}

.hero:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -58px;
  top: -76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 87, 232, .16), rgba(139, 108, 246, .04));
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions, .filters {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bookmark-button, .group-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(102, 87, 232, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #5747d7;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(70, 57, 154, .1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.group-button {
  border-color: rgba(16, 185, 129, .28);
  background: linear-gradient(135deg, #16b981, #10a8a1);
  color: #fff;
}

.bookmark-button:hover, .group-button:hover, .item:hover, .ad-card:hover {
  transform: translateY(-2px);
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 9px 0 6px;
  font-size: 30px;
  line-height: 1.2;
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.searchbar {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(42, 48, 80, .05);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.searchbar button, .more, .lock-button, .collection-modal-primary {
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.searchbar button {
  height: 44px;
  padding: 0 24px;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
}

.ad-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 58px;
  aspect-ratio: 3.15 / 1;
  overflow: hidden;
  border: 1px solid rgba(102, 87, 232, .16);
  border-radius: 14px;
  background: linear-gradient(135deg, #eeebff, #f7f5ff);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(48, 42, 105, .07);
}

.ad-card img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.ad-card.asset-failed {
  background: linear-gradient(135deg, #eeebff, #f7f5ff);
}

.ad-card.asset-failed img {
  display: none;
}

.ad-art {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  padding: 10px 12px 10px 46px;
  color: #40379a;
  font-size: 15px;
  font-weight: 900;
  isolation: isolate;
}

.ad-art:before,
.ad-art:after,
.ad-figure {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
}

.ad-art:before {
  width: 48px;
  height: 48px;
  left: 18px;
  bottom: -10px;
}

.ad-art:after {
  width: 64px;
  height: 64px;
  right: -13px;
  top: -15px;
}

.ad-figure {
  width: 30px;
  height: 58px;
  left: 14px;
  bottom: -9px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, rgba(24, 32, 51, .68), rgba(24, 32, 51, .12));
  transform: rotate(-9deg);
}

.ad-card:nth-child(1) .ad-art { background: linear-gradient(135deg, #ff64a0, #6e5bff 54%, #ffd56c); color: #fff; }
.ad-card:nth-child(2) .ad-art { background: linear-gradient(135deg, #232238, #9a5b2f 58%, #ffd057); color: #fff7d7; }
.ad-card:nth-child(3) .ad-art { background: linear-gradient(135deg, #d9ffe9, #ffe2ef 58%, #8ee6b5); color: #0f8d56; }
.ad-card:nth-child(4) .ad-art { background: linear-gradient(135deg, #e5d5ff, #fff 52%, #b37cff); color: #7b31d4; }

.ad-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(24, 32, 51, .64);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 2px 15px;
}

.count {
  color: var(--muted);
  font-size: 13px;
}

.filter {
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #626a7b;
  cursor: pointer;
}

.filter.active {
  border-color: #dad4ff;
  color: var(--primary);
  background: #f0edff;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 10px 28px rgba(37, 44, 76, .045);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.item,
.item * {
  text-decoration: none !important;
}

.cover {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e4ff, #f4f1ff);
}

.cover-art {
  position: absolute;
  inset: 0;
  background: #e7e4ff;
}

.cover-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item:nth-child(4n+1) .cover { background: linear-gradient(135deg, #6d5df0, #11b6ad); }
.item:nth-child(4n+2) .cover { background: linear-gradient(135deg, #f05f8d, #ffc05a); }
.item:nth-child(4n+3) .cover { background: linear-gradient(135deg, #3159d4, #70c4ff); }
.item:nth-child(4n+4) .cover { background: linear-gradient(135deg, #1f2937, #8b6cf6); }

.badge {
  position: absolute;
  z-index: 2;
  left: 11px;
  top: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(24, 32, 51, .76);
  backdrop-filter: blur(8px);
}

.play-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: rgba(20, 24, 38, .58);
  transform: translate(-50%, -50%);
}

.play-icon:after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #fff;
}

.body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 17px;
}

.title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.summary {
  display: -webkit-box;
  min-height: 38px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #f0f1f6;
  color: #9a9faf;
  font-size: 11px;
}

.meta span:first-child { min-width: 0; white-space: nowrap; }
.open { color: var(--primary); font-weight: 800; }

.is-detail {
  background: #fff;
}

.detail-shell {
  max-width: 560px;
  padding: 0 0 72px;
  background: #fff;
}

.detail-sitebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 66px;
  align-items: center;
  min-height: 58px;
  padding: 0 10px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  color: #333b4e;
}

.detail-sitebar a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #30384c;
  font-size: 24px;
  text-decoration: none;
}

.detail-sitebar span {
  overflow: hidden;
  color: #5c6576;
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-sitebar .detail-close {
  border: 1px solid #e4e6ee;
  color: #30384c;
  font-size: 14px;
}

.detail-page {
  padding: 28px 18px 52px;
}

.detail-page h2 {
  margin: 0 0 19px;
  color: #1f2937;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 900;
}

.detail-meta {
  margin: -8px 0 18px;
  color: #7b8496;
  font-size: 13px;
}

.detail-cover,
.detail-video {
  display: block;
  width: 100%;
  margin: 12px 0 17px;
  overflow: hidden;
  background: #f1f2f6;
}

.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-video {
  max-height: 78vh;
  object-fit: contain;
}

.detail-summary {
  margin: 0 0 16px;
  color: #2b3243;
  font-size: 16px;
  line-height: 1.85;
}

.detail-body {
  color: #232b3d;
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

.detail-body p,
.detail-body div {
  margin: 0 0 16px;
}

.detail-body h1,
.detail-body h2,
.detail-body h3 {
  margin: 24px 0 14px;
  line-height: 1.35;
}

.detail-body img,
.detail-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0 20px;
}

.detail-body video {
  width: 100%;
  max-height: 78vh;
  background: #000;
}

.detail-body a {
  color: #3567d6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.missing-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.state {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #dcddeb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
}

.more {
  display: none;
  margin: 25px auto 0;
  padding: 11px 25px;
  border: 1px solid #dcd9ff;
  background: #fff;
  color: var(--primary);
}

.more.show { display: block; }

body.collection-locked { overflow: hidden; }
body.collection-locked .shell {
  filter: blur(11px);
  transform: scale(1.015);
  pointer-events: none;
  user-select: none;
}

.lock-layer, .collection-modal-layer, .ad-task {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 35, 55, .42);
  backdrop-filter: blur(3px);
}

.lock-layer.show, .collection-modal-layer.show, .ad-task.show { display: flex; }

.lock-card, .collection-modal-card, .ad-task-card {
  position: relative;
  width: min(390px, 100%);
  padding: 26px 24px 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 28px 90px rgba(20, 24, 50, .32);
  text-align: center;
}

.lock-close, .collection-modal-close, .viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f0f1f7;
  color: #5e6678;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lock-icon, .collection-modal-icon {
  display: flex;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ebe8ff, #ddd5ff);
  color: var(--primary);
  font-weight: 900;
}

.lock-title, .collection-modal-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.lock-hint, .collection-modal-content {
  margin: 7px 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.lock-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.lock-mode {
  flex: 1;
  padding: 9px;
  border: 1px solid #e3e4ec;
  border-radius: 10px;
  background: #fff;
  color: #697083;
  cursor: pointer;
}

.lock-mode.active {
  border-color: #d9d3ff;
  color: var(--primary);
  background: #f1efff;
  font-weight: 800;
}

.lock-panel { display: none; }
.lock-panel.active { display: block; }

.lock-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dfe1ea;
  border-radius: 11px;
  outline: none;
  text-align: center;
}

.lock-button {
  width: 100%;
  height: 46px;
  margin-top: 10px;
}

.lock-button.secondary {
  color: #5e6473;
  border: 1px solid #e0e2ea;
  background: #fff;
}

.lock-button.pay { background: linear-gradient(135deg, #12a66a, #24c77b); }

.lock-error {
  min-height: 19px;
  margin-top: 9px;
  color: #e5484d;
  font-size: 12px;
}

.timer-number {
  margin: 4px 0 10px;
  color: var(--primary);
  font-size: 42px;
  font-weight: 900;
}

.timer-result { display: none; margin: 2px 0 13px; }
.timer-result.show { display: block; }
.timer-result-icon { font-size: 28px; font-weight: 900; color: var(--primary); }
.timer-result-title { color: #20283b; font-size: 21px; font-weight: 900; }
.timer-result-hint { margin-top: 8px; color: #687184; font-size: 13px; line-height: 1.65; }

.timer-tutorial-link {
  margin-top: 11px;
  border: 0;
  background: transparent;
  color: #6557dd;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.unlock-validity {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #ececf4;
  color: #7a8294;
  font-size: 12px;
}

.viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  flex-direction: column;
  background: #fff;
}

.viewer.show { display: flex; }

.viewer-bar {
  position: relative;
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  padding: 10px 62px 10px 18px;
  border-bottom: 1px solid #333;
  background: #1a1a2e;
  color: #fff;
}

.viewer-close {
  background: #ff4757;
  color: #fff;
}

.viewer-body {
  flex: 1;
  overflow: auto;
  background: #fff;
}

.demo-video {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 32%, #3f348f, #111827 65%);
  color: #fff;
}

.demo-player {
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.article-view {
  width: min(760px, 100%);
  margin: auto;
  padding: 34px 22px 80px;
  line-height: 1.9;
}

.article-view h2 { margin-top: 0; font-size: 26px; }

.collection-modal-card { width: min(420px, 100%); }
.collection-modal-content.center { text-align: center; }
.collection-modal-primary { width: 100%; min-height: 46px; padding: 11px 18px; }
.bookmark-copy-state {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #087a53;
  font-size: 12px;
  font-weight: 800;
}

.group-modal-card {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: hidden;
  padding: 22px;
  text-align: left;
}

.group-modal-heading { display: flex; align-items: center; gap: 11px; padding-right: 42px; }
.group-modal-heading .collection-modal-icon { width: 46px; height: 46px; margin: 0; border-radius: 15px; }
.group-content-frame {
  display: flex;
  min-height: 280px;
  max-height: 66vh;
  align-items: center;
  justify-content: center;
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid #e2e5ee;
  border-radius: 16px;
  background: #f7f8fc;
}

.qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #60697b;
  text-align: center;
}

.qr-card strong { color: #20283b; }

.qr-grid {
  width: 148px;
  height: 148px;
  border: 10px solid #fff;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px, #111 40px 50px, transparent 50px),
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px, #111 40px 50px, transparent 50px);
  background-size: 50px 50px;
  background-color: #fff;
  box-shadow: 0 14px 35px rgba(35, 40, 67, .13);
}

.group-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.group-external-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid #dedaff;
  border-radius: 11px;
  background: #f5f3ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ad-task { z-index: 1400; }
.ad-task-card h2 { margin: 8px 0 8px; }
.ad-task-card p { color: var(--muted); line-height: 1.7; }
.ad-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f7;
  margin: 18px 0;
}
.ad-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: width .2s linear;
}

.ad-locked { min-height: 100vh; overflow: hidden; background: #eef0f6; }
body.ad-modal-open { overflow: hidden; }
body.ad-modal-open .shell {
  filter: blur(8px);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}
.locked-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 5vh 7vw;
  filter: blur(16px);
  transform: scale(1.04);
  background: linear-gradient(140deg, #e8eaf4, #f7f8fc 48%, #e9eaf4);
}
.locked-backdrop-bar {
  height: 62px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 30px rgba(35,40,67,.08);
}
.locked-backdrop-block {
  height: min(35vh, 330px);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 14px 42px rgba(35,40,67,.08);
}
.locked-backdrop-block.short { height: 14vh; }
.ad-unlock-layer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(32,35,54,.38);
  backdrop-filter: blur(7px);
}
.ad-unlock-layer[hidden] { display: none !important; }
.ad-unlock-card {
  position: relative;
  width: min(520px, 100%);
  padding: 58px 32px 28px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 30px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 28px 90px rgba(20,24,50,.2);
  text-align: center;
}
.ad-unlock-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f2f7;
  color: #656c7c;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.ad-unlock-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: #eeeaff;
  font-size: 35px;
}
.ad-unlock-card h1 {
  margin: 0;
  color: #171b29;
  font-size: 27px;
  line-height: 1.35;
}
.ad-unlock-description {
  margin: 16px 0 25px;
  color: #9297a4;
  font-size: 16px;
  line-height: 1.75;
}
.ad-unlock-primary {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(100deg, #6347ed, #7652ed);
  box-shadow: 0 8px 20px rgba(104,75,229,.18);
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
}
.ad-unlock-primary:disabled { opacity: .72; cursor: wait; }
.ad-unlock-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 25px auto 0;
  color: #7251d8;
  font-size: 15px;
  text-decoration: none;
}
.ad-unlock-tutorial span { font-size: 12px; }
.ad-unlock-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #eceef3;
  color: #969aa5;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shell { width: 100%; max-width: none; margin: 0 auto; padding: 1px 8px 34px; overflow: visible; }
  .detail-shell { padding: 0 0 60px; }
  .hero { margin-top: 0; padding: 26px 14px 18px; border-radius: 13px; }
  .hero-top { align-items: center; flex-direction: row; justify-content: space-between; gap: 8px; }
  .hero-actions { width: auto; justify-content: flex-end; flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
  .eyebrow { min-width: 0; font-size: 12px; white-space: nowrap; }
  .bookmark-button, .group-button { min-height: 31px; padding: 5px 9px; font-size: 11px; }
  .hero h1 { margin-top: 8px; font-size: 23px; }
  .hero p { font-size: 13px; }
  .searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 8px;
    margin: 13px 0 13px;
    padding: 9px;
    border-radius: 13px;
  }
  .searchbar input { height: 38px; padding: 0 8px; font-size: 14px; }
  .searchbar button { width: auto; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
  .ad-card { min-height: 56px; aspect-ratio: 2.38 / 1; border-radius: 7px; }
  .ad-label { top: 3px; left: 3px; padding: 2px 6px; font-size: 9px; }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 6px; }
  .filters { order: 1; width: auto; gap: 8px; }
  .count { order: 2; font-size: 13px; }
  .filter {
    flex: 0 0 52px;
    width: 52px;
    height: 36px;
    padding: 0;
    border-radius: 18px;
    font-size: 14px;
    text-align: center;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item { min-height: 244px; border-radius: 8px; box-shadow: 0 8px 20px rgba(33, 38, 70, .05); }
  .cover { aspect-ratio: 1.27 / 1; }
  .cover-art { display: block; padding: 0; font-size: initial; }
  .body { min-height: 94px; padding: 9px 10px 10px; }
  .title { min-height: 40px; font-size: 13px; line-height: 1.45; }
  .summary { display: none; }
  .meta { margin-top: auto; padding-top: 9px; font-size: 10px; }
  .badge { left: 7px; top: 7px; padding: 3px 7px; font-size: 10px; }
  .play-icon { width: 44px; height: 44px; }
  .play-icon:after { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 14px; }
  .lock-layer, .collection-modal-layer, .ad-task { padding: 15px; }
  .ad-unlock-layer { padding: 18px; }
  .ad-unlock-card { padding: 58px 22px 22px; border-radius: 25px; }
  .ad-unlock-icon { width: 68px; height: 68px; margin-bottom: 20px; }
  .ad-unlock-card h1 { font-size: 24px; }
  .ad-unlock-description { font-size: 14px; }
  .ad-unlock-primary { min-height: 54px; font-size: 17px; }
  .ad-unlock-footer { margin-top: 32px; padding-top: 18px; font-size: 13px; }
  .detail-page { padding: 24px 18px 48px; }
  .detail-page h2 { margin-bottom: 19px; font-size: 25px; }
  .detail-meta { display: none; }
  .detail-body, .detail-summary { font-size: 16px; line-height: 1.9; }
}
