:root {
  --bg: #07090f;
  --bg-2: #0d121d;
  --bg-3: #131a29;
  --border: rgba(148, 163, 184, 0.16);
  --border-hi: rgba(245, 184, 65, 0.42);
  --text: #eef2f8;
  --muted: #94a3b8;
  --gold: #f5b841;
  --gold-soft: rgba(245, 184, 65, 0.14);
  --cyan: #38bdf8;
  --green: #10b981;
  --rose: #f43f5e;
  --radius: 14px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.ico { width: 17px; height: 17px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }

/* ==================== TOP BAR ==================== */
.top-bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.top-bar-inner {
  max-width: 1280px; margin: 0 auto; height: 60px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f5b841, #d97706); color: #07090f;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 16px; letter-spacing: 0.02em; }
.brand-copy small { font-size: 9.5px; color: var(--muted); letter-spacing: 0.12em; }

.top-tabs { display: flex; align-items: center; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 12px; border: 1px solid var(--border); }
.nav-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: all 0.16s ease;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-tab.active { color: #07090f; background: var(--gold); }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .vip-pill-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.vip-pill-btn { border-color: var(--border-hi); background: var(--gold-soft); color: var(--gold); }
.vip-pill-btn.is-vip { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.5); color: var(--green); }

/* ==================== MAIN LAYOUT ==================== */
.main-wrap { max-width: 1280px; margin: 0 auto; padding: 18px 16px 88px; }

.hero-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(19, 26, 41, 0.92), rgba(13, 18, 29, 0.96));
  border: 1px solid var(--border);
}
.hero-copy h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
.hero-copy p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 640px; line-height: 1.5; }
.hero-copy b { color: var(--gold); }

.hero-search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 440px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 4px 6px 4px 12px;
}
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13.5px; height: 36px; }
.search-ico { color: var(--muted); display: inline-flex; }

.cat-strip {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 14px 0 8px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active { color: var(--gold); border-color: var(--border-hi); background: var(--gold-soft); }

/* ==================== BUTTONS ==================== */
.btn-primary, .btn-ghost, .btn-subtle, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
}
.btn-primary { background: linear-gradient(135deg, #f5b841, #e0981f); color: #07090f; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-subtle { background: var(--bg-3); border-color: var(--border); color: var(--text); min-height: 40px; padding: 0 12px; font-size: 12.5px; }
.btn-danger { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.48); color: #fda4af; }

/* ==================== FEED CARDS ==================== */
.feed-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 12px;
}
.x-feed-ad-wrap { grid-column: 1 / -1; }
.x-card {
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.16s ease, border-color 0.16s ease;
}
.x-card:hover { transform: translateY(-2px); border-color: rgba(245, 184, 65, 0.35); }
.x-card-media-wrap { position: relative; }
.x-card-media {
  position: relative; display: block; aspect-ratio: 16 / 10; background: #0a0e18; overflow: hidden;
}
.x-card-media.is-portrait-media { aspect-ratio: 4 / 5; }
.x-card-media img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.25s ease, transform 0.25s ease; }
.x-card-media.is-portrait-media img { object-position: center 20%; }
.nsfw-thumb-img.is-blurred { filter: blur(14px) brightness(0.76); transform: scale(1.08); }
.card-eye-btn {
  position: absolute; top: 6px; right: 6px; z-index: 6;
  min-width: 44px; min-height: 44px; padding: 0; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 9, 15, 0.78); backdrop-filter: blur(8px);
  color: #f8fafc; cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.card-eye-btn:hover, .card-eye-btn.is-open { border-color: var(--gold); color: var(--gold); background: rgba(13, 18, 29, 0.92); }
.nsfw-lock-pill {
  position: absolute; left: 9px; bottom: 8px; z-index: 4; pointer-events: none;
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px;
  background: rgba(244, 63, 94, 0.22); border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3; font-size: 10.5px; font-weight: 700; backdrop-filter: blur(8px);
}
.nsfw-lock-pill .ico { width: 12px; height: 12px; }
.thumb-fallback {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); font-size: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(245, 184, 65, 0.15), rgba(13, 18, 29, 0.98));
}
.type-chip {
  position: absolute; top: 9px; left: 9px; z-index: 4; padding: 3px 8px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; backdrop-filter: blur(8px);
}
.type-video { background: rgba(56, 189, 248, 0.22); color: #bae6fd; border: 1px solid rgba(56, 189, 248, 0.4); }
.type-nsfw { background: rgba(244, 63, 94, 0.24); color: #fecdd3; border: 1px solid rgba(244, 63, 94, 0.48); }
.type-album { background: rgba(245, 184, 65, 0.22); color: #fde68a; border: 1px solid rgba(245, 184, 65, 0.45); }
.type-story { background: rgba(16, 185, 129, 0.22); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.42); }
.media-pill {
  position: absolute; bottom: 8px; right: 8px; z-index: 4; padding: 2px 7px; border-radius: 6px;
  background: rgba(7, 9, 15, 0.82); color: #f8fafc; font-size: 11px; font-family: var(--mono);
}
.x-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.x-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; }
.cat-link { color: var(--cyan); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.badge-grad { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-nsfw { background: rgba(244, 63, 94, 0.14); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.36); }
.badge-trial { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(245, 184, 65, 0.35); }
.badge-archive { background: rgba(148, 163, 184, 0.12); color: var(--muted); border: 1px solid var(--border); }
.badge-ai { background: rgba(56, 189, 248, 0.12); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-creator { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.48); }

.card-kho-buy { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.card-kho-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.card-kho-btn {
  min-height: 38px; padding: 0 8px; font-size: 11.5px; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-kho-btn .ico { width: 13px; height: 13px; }
@media (max-width: 768px) {
  .card-kho-btn { min-height: 44px; font-size: 11px; padding: 0 5px; }
  .feed-grid[data-view-mode="compact"] .card-kho-actions { grid-template-columns: 1fr; }
}

/* ==================== MODE STRIP & VNCHICH LOGIN-BAIT ==================== */
.mode-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 8px 10px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.mode-pills { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.mode-pills::-webkit-scrollbar { display: none; }
.mode-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  min-height: 40px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 700;
  color: var(--muted); background: var(--bg-3); border: 1px solid var(--border); white-space: nowrap;
}
.mode-pill.active { background: var(--gold); color: #07090f; border-color: var(--gold); }
.mode-pill-nsfw { color: #fda4af; border-color: rgba(244, 63, 94, 0.32); background: rgba(244, 63, 94, 0.08); }
.mode-pill-nsfw.active { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; border-color: transparent; }
.nsfw-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px;
  border-radius: 9px; border: 1px solid var(--border-hi); background: var(--gold-soft);
  color: var(--gold); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.nsfw-toggle-btn.is-active { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.5); color: var(--green); }

.vnchich-unlock-banner, .vnchich-bait-section {
  margin-top: 16px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(13, 18, 29, 0.96));
  border: 1px solid rgba(244, 63, 94, 0.28);
}
.vnchich-unlock-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.vnchich-unlock-title, .vnchich-bait-title { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; color: #fda4af; }
.vnchich-unlock-copy p, .vnchich-bait-sub { margin: 5px 0 0; font-size: 13px; color: var(--muted); max-width: 660px; line-height: 1.5; }
.vnchich-unlock-actions, .vnchich-bait-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vnchich-bait-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.x-card-title { margin: 0; font-size: 14px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-card-teaser { margin: 0; font-size: 12.2px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gem-mini-bar { margin-top: auto; padding-top: 6px; }
.gem-mini-track { height: 4px; border-radius: 99px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.gem-mini-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #f5b841, #10b981); transition: width 0.25s ease; }
.gem-mini-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.gem-mini-meta .ico { width: 13px; height: 13px; color: var(--gold); }
.x-card-meta-clean {
  margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: var(--muted);
}
.x-card-meta-clean .ico { width: 13px; height: 13px; color: var(--muted); }
.x-card-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #cbd5e1; }

/* ==================== CLEAN AD SLOTS ==================== */
.x-ad-slot {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(19, 26, 41, 0.8), rgba(10, 14, 24, 0.9));
  border: 1px dashed rgba(245, 184, 65, 0.28);
}
.x-ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 11.5px; }
.x-ad-tag { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.x-ad-vip-btn { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.x-ad-placeholder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.x-ad-placeholder strong { color: var(--text); }

/* ==================== DETAIL PAGES ==================== */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--gold); }
/* ==================== ANTI-IOS CANVAS PLAYER & NSFW GATE ==================== */
body.player-fs-lock { overflow: hidden; }
.hidden-ios-video {
  position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0.01;
  pointer-events: none; z-index: 1;
}
.fallback-inline-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; pointer-events: none; z-index: 1;
}
.player-frame {
  position: relative; width: 100%; max-width: 100%; background: #05070d; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.player-frame.is-portrait {
  aspect-ratio: 9 / 16; max-width: 420px; max-height: 76vh; margin: 0 auto;
}
.player-frame.is-nsfw-locked { aspect-ratio: auto; min-height: 360px; width: 100%; max-width: 100%; }
.player-frame.is-pseudo-fs {
  position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100dvh;
  max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; border: 0;
  margin: 0; background: #000;
}
.player-canvas { position: relative; z-index: 2; width: 100%; height: 100%; display: block; cursor: pointer; }
.player-center-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(245, 184, 65, 0.55);
  background: rgba(7, 9, 15, 0.72); backdrop-filter: blur(8px); color: var(--gold);
  display: grid; place-items: center; cursor: pointer; transition: opacity 0.2s, transform 0.16s;
}
.player-center-play .ico { width: 26px; height: 26px; }
.player-center-play.is-playing { opacity: 0; pointer-events: none; }
.player-status {
  position: absolute; left: 12px; top: 12px; z-index: 6; max-width: calc(100% - 24px);
  padding: 5px 10px; border-radius: 8px; background: rgba(7, 9, 15, 0.84);
  border: 1px solid var(--border); font-size: 12px; color: var(--cyan);
}
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  padding: 20px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(3, 5, 10, 0.94) 0%, rgba(3, 5, 10, 0.62) 58%, transparent 100%);
  transition: opacity 0.25s ease;
}
.player-controls.is-faded { opacity: 0; pointer-events: none; }
.p-scrub-wrap {
  position: relative; display: flex; align-items: center;
  height: 24px; margin: 0 4px 2px; touch-action: none;
}
.p-scrub-track {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 3.5px; border-radius: 999px; background: rgba(255, 255, 255, 0.34);
  overflow: hidden; pointer-events: none; transition: height 0.14s ease;
}
.p-scrub-wrap.is-scrubbing .p-scrub-track,
.p-scrub-wrap:hover .p-scrub-track { height: 5px; }
.p-scrub-fill {
  width: 0%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ff6b2b, #ff4518);
}
.p-scrubber {
  position: relative; z-index: 2; width: 100%; height: 24px; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  cursor: pointer; touch-action: none;
}
.p-scrubber::-webkit-slider-runnable-track { height: 4px; background: transparent; border: 0; }
.p-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%;
  background: #ff4d1f; border: 2px solid #fff3eb;
  box-shadow: 0 0 10px rgba(255, 77, 31, 0.78);
  transition: transform 0.14s ease;
}
.p-scrub-wrap.is-scrubbing .p-scrubber::-webkit-slider-thumb { transform: scale(1.22); }
.p-scrubber::-moz-range-track { height: 4px; background: transparent; border: 0; }
.p-scrubber::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #ff4d1f; border: 2px solid #fff3eb;
  box-shadow: 0 0 10px rgba(255, 77, 31, 0.78);
}
.p-scrub-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(11, 14, 22, 0.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff; font-family: var(--mono); font-size: 11.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); z-index: 12;
}
.p-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.p-left, .p-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
.p-btn {
  min-width: 38px; min-height: 38px; padding: 0 6px; border-radius: 50%;
  border: 0; background: transparent; color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; font-size: 12px; flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.p-btn .ico { width: 20px; height: 20px; }
.p-btn:hover { background: rgba(255, 255, 255, 0.14); }
.p-btn.is-active { background: rgba(255, 255, 255, 0.22); color: #ffb347; }
.p-btn:active { transform: scale(0.92); }
.p-time-btn {
  border: 0; background: transparent; color: #f1f5f9;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 6px 6px; border-radius: 8px; cursor: pointer; flex-shrink: 0;
  letter-spacing: -0.01em;
}
.p-time-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Artplayer-grade Dark Glass 5-Item Settings Menu (auto-i18n) */
.p-settings-pop {
  position: absolute; right: 8px; bottom: 72px; z-index: 16;
  width: min(296px, calc(100% - 12px)); max-height: calc(100% - 86px);
  overflow-y: auto; scrollbar-width: thin;
  padding: 6px; border-radius: 13px;
  background: rgba(14, 17, 25, 0.94); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
  color: #f8fafc;
}
.p-set-row, .p-set-opt, .p-set-back {
  width: 100%; border: 0; background: transparent; color: #f8fafc;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 9px; border-radius: 9px; cursor: pointer; text-align: left;
  font-size: 12px; font-weight: 700; transition: background 0.14s ease;
}
.p-set-row:hover, .p-set-opt:hover, .p-set-back:hover { background: rgba(255, 255, 255, 0.1); }
.p-set-row:disabled { opacity: 0.42; cursor: not-allowed; }
.p-set-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-set-row-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.p-set-row-l .ico { width: 16px; height: 16px; color: #e2e8f0; flex-shrink: 0; }
.p-set-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.p-set-row-r {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  font-size: 11.5px; font-weight: 600; color: #94a3b8; white-space: nowrap;
}
.p-set-row-r .ico { width: 14px; height: 14px; opacity: 0.8; }
.p-set-back {
  justify-content: flex-start; gap: 6px; padding: 8px 10px;
  margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px 8px 0 0; color: #cbd5e1; font-size: 12px;
}
.p-set-back .ico { width: 15px; height: 15px; }
.p-set-opt { padding: 8px 12px; font-weight: 600; }
.p-set-opt.is-selected { color: #ff6b2b; font-weight: 800; background: rgba(255, 107, 43, 0.12); }
.p-set-opt .ico { width: 15px; height: 15px; color: #ff6b2b; }
.p-set-switch {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; color: #94a3b8;
}
.p-set-switch-pill {
  position: relative; width: 32px; height: 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2); transition: background 0.18s ease; flex-shrink: 0;
}
.p-set-switch-pill::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #ffffff; transition: transform 0.18s ease;
}
.p-set-switch.is-on { color: #34d399; }
.p-set-switch.is-on .p-set-switch-pill { background: #10b981; }
.p-set-switch.is-on .p-set-switch-pill::after { transform: translateX(14px); }

@media (max-width: 480px) {
  .player-controls { padding: 16px 4px calc(6px + env(safe-area-inset-bottom)); }
  .p-btn { min-width: 32px; min-height: 36px; padding: 0 4px; }
  .p-btn .ico { width: 18px; height: 18px; }
  .p-left, .p-right { gap: 1px; }
  .p-time-btn { font-size: 11px; padding: 4px 4px; }
  .p-settings-pop { bottom: 64px; width: min(296px, calc(100% - 12px)); right: 6px; }
}

.nsfw-gate-overlay {
  position: relative; z-index: 12; width: 100%; min-height: inherit;
  display: grid; place-items: center; padding: 18px 14px;
  overflow: hidden; background: #07090f;
}
.player-frame.is-nsfw-locked .player-canvas { position: absolute; inset: 0; }
.nsfw-gate-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.nsfw-gate-bg.is-blurred { filter: blur(18px) brightness(0.55); transform: scale(1.08); }
.nsfw-gate-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 15, 0.56), rgba(7, 9, 15, 0.88));
}
.nsfw-gate-card {
  position: relative; z-index: 2; max-width: 440px; width: 100%; text-align: center;
  padding: 18px 16px; border-radius: 14px;
  background: rgba(13, 18, 29, 0.86); backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 63, 94, 0.38);
}
.nsfw-gate-pill {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 4px 10px; border-radius: 99px;
  background: rgba(244, 63, 94, 0.18); border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3; font-size: 11.5px; font-weight: 700; max-width: 100%;
}
.nsfw-gate-card h2 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; }
.nsfw-gate-card p { margin: 0 0 14px; font-size: 12.8px; color: #cbd5e1; line-height: 1.5; }
.nsfw-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nsfw-gate-actions > button { white-space: normal; text-align: center; }

/* ==================== COMPACT 1-ROW SERVER STRIP & ECOSYSTEM BAR ==================== */
.server-strip {
  display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin-top: 10px; padding: 6px 8px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.server-strip::-webkit-scrollbar { display: none; }
.server-strip-lbl {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); padding: 0 4px;
}
.srv-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  color: var(--text); background: var(--bg-3); border: 1px solid var(--border); white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.srv-pill:hover { border-color: var(--gold); color: var(--gold); }
.srv-pill.is-current { background: var(--gold-soft); border-color: var(--border-hi); color: var(--gold); }

.eco-bar {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.08), rgba(13, 18, 29, 0.96));
  border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.eco-bar-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eco-bar-copy strong { font-size: 13.5px; color: var(--gold); }
.eco-bar-copy span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.eco-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-btn { min-height: 44px; justify-content: center; }

@media (max-width: 480px) {
  .server-strip {
    gap: 5px; padding: 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  }
  .srv-pill { padding: 0 10px; font-size: 12px; }
  .eco-bar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .eco-btn { width: 100%; min-width: 0; padding: 0 8px; font-size: 12px; white-space: normal; text-align: center; }
}

.whitelist-strip {
  margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px;
}
.wl-lbl { color: var(--muted); font-weight: 700; }
.wl-pill {
  padding: 3px 8px; border-radius: 99px; background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; font-weight: 700;
}

/* ==================== CURRENCY TOGGLE, 2-CHOICE BANNER, AUCTION ROOM & PAY-PER-UNLOCK ==================== */
.currency-toggle {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px;
}
.cur-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: var(--bg-3); border: 1px solid var(--border); cursor: pointer;
  text-align: center;
}
.cur-pill.active {
  color: var(--gold); background: var(--gold-soft); border-color: var(--border-hi);
}
.choice-banner {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--border-hi);
}
.choice-actions, .unlock-gate-actions, .auc-cta-row, .auc-empty-actions {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px;
}
.unlock-gate {
  margin-top: 14px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.10), rgba(13, 18, 29, 0.96));
  border: 1px solid var(--border-hi);
}
.unlock-gate-head {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--gold); margin-bottom: 6px;
}
.unlock-gate p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.reader-body.is-locked-preview {
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.masonry-locked-wrap { position: relative; overflow: hidden; cursor: default; }
.locked-blur-img { filter: blur(16px); transform: scale(1.08); }
.locked-blur-ph { width: 100%; aspect-ratio: 3 / 4; background: var(--bg-3); }
.img-lock-tag {
  position: absolute; inset: auto 8px 8px; display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; padding: 6px 10px; border-radius: 99px; background: rgba(7, 9, 15, 0.85);
  border: 1px solid var(--border-hi); color: var(--gold); font-size: 11.5px; font-weight: 700;
}

.auc-hero {
  margin-bottom: 18px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.09), rgba(13, 18, 29, 0.96));
  border: 1px solid var(--border);
}
.auc-hero-title { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.auc-hero-title h1 { margin: 0; font-size: clamp(18px, 3vw, 24px); color: var(--text); }
.auc-hero-head p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.auc-rules-strip {
  margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px; font-size: 12px; color: var(--muted);
}
.auc-rules-strip span {
  padding: 8px 10px; border-radius: 10px; background: rgba(7, 9, 15, 0.55); border: 1px solid var(--border); line-height: 1.4;
}
.auc-rules-strip b { color: var(--text); }
.auc-filter-tabs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.auc-filter-tabs .mode-pill { min-height: 44px; padding: 0 14px; }

.auc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.auc-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
}
.auc-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden;
}
.auc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.auc-round-pill, .auc-state-pill {
  position: absolute; top: 8px; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 800;
}
.auc-round-pill { left: 8px; top: 8px; background: rgba(7, 9, 15, 0.84); color: var(--gold); border: 1px solid var(--border-hi); }
.auc-state-pill { top: auto; bottom: 8px; right: 8px; background: rgba(16, 185, 129, 0.28); color: #d1fae5; border: 1px solid rgba(16, 185, 129, 0.52); backdrop-filter: blur(8px); }
.auc-state-pill.state-buy_now { background: rgba(245, 184, 65, 0.28); color: #fef3c7; border-color: var(--border-hi); }
.auc-state-pill.state-minted { background: rgba(56, 189, 248, 0.28); color: #e0f2fe; border-color: rgba(56, 189, 248, 0.5); }
.auc-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.auc-title { margin: 0; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.auc-title a { color: var(--text); }
.auc-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--gold); }
.auc-timer { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); white-space: nowrap; flex-shrink: 0; }
.auc-card .x-card-top { flex-wrap: wrap; row-gap: 4px; }
.auc-meta-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; }
.auc-empty { text-align: center; padding: 28px 16px; }
.auc-empty .auc-empty-actions { justify-content: center; }
.auc-bid-card { max-width: 440px; }
.auc-modal-note { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.auc-bid-form { display: flex; flex-direction: column; gap: 10px; }
.auc-input-label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.auc-input-label input {
  min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-3); color: var(--text); font-size: 15px; font-family: var(--mono);
}

@media (max-width: 960px) {
  .auc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .auc-hero { padding: 14px 12px; margin-bottom: 12px; }
  .auc-hero-head p { font-size: 12.5px; margin-top: 6px; }
  .auc-rules-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; font-size: 11px; }
  .auc-rules-strip span { padding: 6px 8px; line-height: 1.35; }
  .auc-filter-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .auc-filter-tabs .mode-pill { width: 100%; min-height: 44px; padding: 0 6px; font-size: 12.5px; text-align: center; justify-content: center; }
  .auc-grid { grid-template-columns: 1fr; }
  .choice-actions, .auc-cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .unlock-gate-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 8px; }
  .choice-actions > *, .unlock-gate-actions > *, .auc-cta-row > * { width: 100%; min-width: 0; white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .cur-pill { padding: 0 6px; font-size: 11.5px; gap: 4px; }
  .auc-filter-tabs .mode-pill { padding: 0 4px; font-size: 11.5px; }
}

/* ==================== BACKUP MIRRORS CARD (404 FALLBACK) ==================== */
.mirrors-card {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.mirrors-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.mirrors-title { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--gold); }
.mirrors-note { font-size: 12px; color: var(--muted); }
.mirrors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mirror-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 54px; padding: 10px 12px; border-radius: 11px;
  background: var(--bg-3); border: 1px solid var(--border);
  transition: border-color 0.16s, transform 0.16s;
}
.mirror-btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.mirror-vn69 { border-color: rgba(56, 189, 248, 0.36); background: rgba(56, 189, 248, 0.08); }
.mirror-vnchich { border-color: rgba(245, 184, 65, 0.4); background: rgba(245, 184, 65, 0.09); }
.mirror-v2 { border-color: rgba(148, 163, 184, 0.28); }
.mirror-name { font-size: 13.5px; font-weight: 800; color: var(--text); }
.mirror-btn small { font-size: 11px; color: var(--muted); }
.mirrors-pass-bar {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted);
}

.x-toast {
  position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 260;
  max-width: min(92vw, 440px); padding: 11px 16px; border-radius: 12px;
  background: rgba(11, 15, 25, 0.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  color: var(--text); font-size: 13px; font-weight: 600; text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); pointer-events: none;
}
.detail-header { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail-badges .type-chip { position: static; }
.detail-header h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.detail-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.detail-desc { margin: 12px 0 0; font-size: 14px; color: #cbd5e1; line-height: 1.65; }
.side-heading { margin: 0 0 12px; font-size: 15px; color: var(--gold); }
.side-list { display: flex; flex-direction: column; gap: 12px; }

/* ==================== GEM 60/40 SUPPORT BOX ==================== */
.gem-box {
  margin-top: 16px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.08), rgba(13, 18, 29, 0.96));
  border: 1px solid var(--border-hi);
}
.gem-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.gem-box-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--gold); }
.gem-box-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.gem-box-counter { text-align: right; font-family: var(--mono); }
.gem-box-counter strong { font-size: 20px; color: var(--gold); }
.gem-box-counter span { display: block; font-size: 11.5px; color: var(--muted); }
.gem-progress-lg { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, 0.16); margin: 12px 0; overflow: hidden; }
.gem-progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #f5b841, #10b981); transition: width 0.3s ease; }
.gem-tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gem-tip-btn {
  min-height: 44px; border-radius: 10px; border: 1px solid var(--border-hi);
  background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer;
}
.gem-tip-btn:hover { background: var(--gold-soft); color: var(--gold); }
.gem-tip-hot { background: linear-gradient(135deg, #f5b841, #d97706); color: #07090f; border: 0; }
.gem-split-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.gem-feedback { color: var(--green); font-weight: 600; }
.gem-feedback.is-warn { color: var(--gold); }

/* ==================== ALBUM GALLERY GRID & LIGHTBOX ==================== */
.masonry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.masonry-item { margin: 0; }
.masonry-btn { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.masonry-btn img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.img-index { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(7,9,15,0.8); font-size: 11px; font-family: var(--mono); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(4, 6, 11, 0.96); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-height: 90vh; max-width: 92vw; object-fit: contain; border-radius: 10px; }
.lb-close, .lb-nav { position: fixed; border: 1px solid var(--border); background: rgba(13,18,29,0.86); color: #fff; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; font-size: 24px; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 99px; background: rgba(13,18,29,0.86); font-family: var(--mono); font-size: 12px; }

/* ==================== STORY NIGHT READER ==================== */
.story-reader { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.story-reader.theme-sepia { background: #1c1914; color: #e7dec8; }
.story-reader.theme-midnight { background: #04060a; color: #dbeafe; }
.reader-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.reader-ch-label { font-weight: 700; color: var(--gold); }
.reader-controls { display: flex; gap: 6px; }
.reader-body { padding: 18px 0; font-size: 17px; line-height: 1.85; letter-spacing: 0.01em; }
.reader-body p { margin: 0 0 16px; }
.chapter-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.chapter-list-box { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.chapter-list-box h3 { margin: 0 0 10px; font-size: 15px; }
.chapter-list { display: flex; flex-direction: column; gap: 6px; }
.chapter-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border); font-size: 13.5px; }
.chapter-link.active, .chapter-link:hover { border-color: var(--border-hi); color: var(--gold); }
.story-cta-row { margin-top: 14px; }

/* ==================== MISSION CONTROL 3D (/status) ==================== */
.mc-shell { font-family: var(--mono); display: flex; flex-direction: column; gap: 12px; }
.mc-ticker-bar {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  background: #050810; border: 1px solid rgba(56, 189, 248, 0.28); overflow: hidden;
}
.mc-live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(244, 63, 94, 0.2); color: #fda4af; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mc-dot { width: 7px; height: 7px; border-radius: 50%; background: #f43f5e; display: inline-block; }
.mc-ticker-track { flex: 1; min-width: 0; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; font-size: 11.5px; color: #94a3b8; white-space: nowrap; mask-image: linear-gradient(90deg, #000 84%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%); }
.mc-ticker-track::-webkit-scrollbar { display: none; }
.mc-lite-btn { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2); color: var(--cyan); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.mc-empty { font-size: 11.5px; color: #94a3b8; line-height: 1.5; padding: 10px 8px; border-radius: 8px; background: rgba(15, 23, 42, 0.5); border: 1px dashed var(--border); }
.mc-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mc-panel { background: #070b14; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; padding: 14px; }
.mc-label, .mc-panel-title { font-size: 10.5px; letter-spacing: 0.1em; color: #64748b; text-transform: uppercase; margin-bottom: 6px; }
.mc-big { font-size: 26px; font-weight: 800; line-height: 1.15; }
.mc-green { color: #34d399; }
.mc-cyan { color: #38bdf8; }
.mc-gold { color: #f5b841; }
.mc-sub { margin-top: 6px; font-size: 11px; color: #94a3b8; }
.mc-sub b { color: #e2e8f0; }

.mc-stage-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr) 290px; gap: 12px; align-items: stretch; }
.mc-edge-active { padding: 7px 10px; border-radius: 8px; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; font-size: 11.5px; margin-bottom: 8px; }
.mc-list { display: flex; flex-direction: column; gap: 6px; }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 7px; background: rgba(15, 23, 42, 0.7); font-size: 11.5px; border: 1px solid transparent; }
.mc-row.is-you { border-color: rgba(16, 185, 129, 0.55); background: rgba(16, 185, 129, 0.1); }
.mc-code { color: #e2e8f0; font-weight: 700; }
.mc-city { color: #94a3b8; }
.mc-ms { color: #38bdf8; }
.mc-status-ok { color: #34d399; font-size: 10.5px; }

.mc-torus-panel { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
#mc-torus-canvas { width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08), #04070e 72%); }
.mc-torus-foot { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 10px; font-size: 11px; color: #94a3b8; }
.mc-torus-foot b { color: var(--gold); }

.mc-trials-list { display: flex; flex-direction: column; gap: 7px; }
.mc-trial-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; background: rgba(15, 23, 42, 0.75); border: 1px solid var(--border); }
.mc-score { min-width: 42px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: 11.5px; }
.mc-trial-meta { min-width: 0; }
.mc-trial-meta b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e2e8f0; }
.mc-trial-meta small { color: #94a3b8; font-size: 10.5px; }
.mc-log-tail { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; color: #94a3b8; }
.mc-log-line code { color: #38bdf8; }
.mc-log-line b { color: #34d399; }

/* ==================== ADMIN STUDIO & 6-BOX PIN ==================== */
.admin-login-wrap, .takedown-wrap { display: grid; place-items: center; min-height: 68vh; }
.admin-login-card, .takedown-card { width: 100%; max-width: 440px; padding: 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.takedown-card { max-width: 620px; }
.login-brand, .takedown-head { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.login-brand h1, .takedown-head h1 { margin: 0; font-size: 20px; color: var(--text); }
.login-sub { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #cbd5e1; }
.stack-form input[type="text"], .stack-form input[type="password"], .stack-form input[type="number"], .stack-form select, .stack-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; outline: none;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: var(--gold); }
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { padding-right: 48px; }
.pw-eye-btn { position: absolute; right: 2px; border: 0; background: transparent; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; }
.pw-eye-btn:hover { color: var(--gold); }
.pin-field { display: flex; flex-direction: column; gap: 8px; }
.pin-label-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #cbd5e1; }
.pin-label-row .pw-eye-btn { position: static; }
.pin-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pin-box {
  height: 48px; text-align: center; font-size: 20px; font-weight: 700; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--gold); outline: none;
}
.pin-box:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 184, 65, 0.16); }

.admin-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-topbar h1 { margin: 0; font-size: 22px; }
.admin-topbar small { color: var(--muted); }
.admin-actions { display: flex; gap: 8px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.seg-tab {
  flex: 0 0 auto; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.seg-tab.active { background: var(--gold); color: #07090f; border-color: var(--gold); }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-kpi-box { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.admin-kpi-box small { display: block; color: var(--muted); font-size: 11.5px; }
.admin-kpi-box strong { font-size: 20px; color: var(--gold); font-family: var(--mono); }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.sub-card { padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.form-msg { font-size: 13px; color: var(--cyan); min-height: 20px; }

/* ==================== MODALS & FOOTER ==================== */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 11, 0.84); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.modal-card { width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto; padding: 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.age-card { max-width: 440px; text-align: center; }
.age-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: 12px; margin-bottom: 10px; }
.age-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); }
.close-btn { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-3); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.ai-search-form { display: flex; gap: 8px; width: 100%; }
.ai-search-form input { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; }
/* === VNC PASS · SẢNH THƯỞNG BOTTOM SHEET + 30/70 SPLIT DOCKED VIDEO (CHUẨN VN69-VIP) === */
.vnc-pass-backdrop {
  position: fixed; inset: 0; z-index: 2147483644;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: none;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  transition: background 0.2s ease;
}
.vnc-pass-backdrop.hidden { display: none !important; }
.vnc-pass-backdrop.split-mode {
  top: 30dvh; background: transparent; pointer-events: none;
}
.vnc-pass-sheet {
  width: min(940px, 100%); max-width: 100%; height: 90dvh; max-height: 92dvh; min-height: 360px;
  padding: 0; margin: 0; background: #06060b;
  border-top: 1.5px solid rgba(245, 184, 65, 0.55);
  border-left: 1px solid rgba(245, 184, 65, 0.28);
  border-right: 1px solid rgba(245, 184, 65, 0.28);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 65px rgba(0, 0, 0, 0.92);
  display: flex; flex-direction: column; overflow: hidden; pointer-events: auto;
  transition: height 0.22s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.22s ease;
  animation: vpSheetUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.vnc-pass-backdrop.split-mode .vnc-pass-sheet {
  height: 70dvh; max-height: 70dvh; min-height: 300px;
  box-shadow: 0 -14px 48px rgba(0, 0, 0, 0.88);
}
@keyframes vpSheetUp {
  from { transform: translateY(36px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
.vp-sheet-bar {
  height: 48px; padding: 0 12px; flex-shrink: 0;
  background: linear-gradient(90deg, #161229, #0a0814);
  border-bottom: 1px solid rgba(245, 184, 65, 0.22);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.vp-sheet-title {
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0;
  font-size: 12.5px; font-weight: 800; color: #ffe89e; letter-spacing: 0.02em;
}
.vp-sheet-title span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vp-sheet-handle {
  width: 34px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.25); flex-shrink: 0;
}
.vp-sheet-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.vp-expand-btn {
  padding: 5px 9px; border-radius: 999px;
  background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.42);
  color: #bae6fd; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.vp-ext-link {
  padding: 5px 10px; border-radius: 999px;
  background: rgba(245, 184, 65, 0.14); border: 1px solid rgba(245, 184, 65, 0.38);
  color: #ffe89e; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.vp-close-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.28), rgba(225, 29, 72, 0.45));
  border: 1.8px solid rgba(255, 226, 138, 0.92); color: #ffffff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(245, 184, 65, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.vp-close-btn .ico { width: 17px; height: 17px; }
.vp-close-btn:hover { transform: scale(1.08); filter: brightness(1.15); }
.vnc-pass-frame-wrap {
  flex: 1; width: 100%; min-height: 0; position: relative;
  border-radius: 0; border: 0; overflow: hidden; background: #000;
}
.vnc-pass-frame-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000;
}
/* 30dvh Split-Screen Docked Video (active player stays playing cleanly above the 70dvh sheet!) */
html.vnc-dock-active, html.vnc-dock-active body { overflow: hidden !important; }
.vnc-dock-ancestor { z-index: 2147483635 !important; transform: none !important; filter: none !important; overflow: visible !important; }
[data-vnc-docked-player="1"] {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important; max-width: 100vw !important;
  height: 30dvh !important; max-height: 30dvh !important; min-height: 0 !important;
  aspect-ratio: auto !important; z-index: 2147483640 !important;
  background: #000 !important; margin: 0 !important; padding: 0 !important;
  border-radius: 0 !important; border: 0 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.88) !important;
}
[data-vnc-docked-player="1"] .player-canvas,
[data-vnc-docked-player="1"] video { width: 100% !important; height: 100% !important; max-height: 30dvh !important; object-fit: contain !important; }
@media (max-width: 480px) {
  .vp-sheet-handle { display: none; }
  .vp-sheet-bar { padding: 0 8px; gap: 5px; }
  .vp-sheet-title { font-size: 11px; letter-spacing: 0; }
  .vp-sheet-actions { gap: 4px; }
  .vp-expand-btn, .vp-ext-link { padding: 4px 7px; font-size: 10.5px; }
  .vp-close-btn { width: 30px; height: 30px; }
  .vp-close-btn .ico { width: 15px; height: 15px; }
}
.ai-status-line { margin: 10px 0; font-size: 12.5px; color: var(--muted); }
.ai-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-res-item { align-items: flex-start; gap: 8px; }
.ai-res-title { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.ai-res-tags { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ai-tag {
  padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800;
  white-space: nowrap; letter-spacing: 0.01em;
}
.ai-tag-trial { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.38); }
.ai-tag-grad { background: rgba(245, 184, 65, 0.16); color: #fde68a; border: 1px solid rgba(245, 184, 65, 0.42); }
.ai-tag-video { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.34); }
.ai-tag-album { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.38); }
.ai-tag-story { background: rgba(251, 191, 36, 0.14); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.34); }
.ai-tag-nsfw { background: rgba(244, 63, 94, 0.16); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.38); }
.ai-empty-msg { grid-column: 1 / -1; text-align: center; padding: 20px 12px; font-size: 13px; color: var(--muted); }

.pager-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.pager-bar.pager-numbered {
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border);
}
.pager-nav-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; max-width: 100%;
}
.pg-nums { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.pg-btn, .pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 700; font-family: var(--mono); cursor: pointer;
  white-space: nowrap; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pg-num { padding: 0 8px; }
.pg-btn:hover:not(.is-disabled), .pg-num:hover:not(.is-active) {
  border-color: var(--gold); color: var(--gold);
}
.pg-num.is-active {
  background: var(--gold); color: #07090f; border-color: var(--gold); cursor: default;
}
.pg-btn.is-disabled { opacity: 0.42; pointer-events: none; cursor: default; }
.pg-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; color: var(--muted); font-family: var(--mono); }
.pager-meta { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.pager-meta b { color: var(--text); }
.mc-terminal.is-light .pager-bar.pager-numbered { border-top-color: var(--t-border); }
.mc-terminal.is-light .pg-btn,
.mc-terminal.is-light .pg-num { background: var(--t-card-2); border-color: var(--t-border); color: #0f172a; }
.mc-terminal.is-light .pg-num.is-active { background: #b45309; color: #ffffff; border-color: #b45309; }
.mc-terminal.is-light .pager-meta { color: var(--t-muted); }
.mc-terminal.is-light .pager-meta b { color: #0f172a; }
.pager-info { font-size: 13px; color: var(--muted); }
.empty-box { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 20px 16px 86px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--gold); }

.mobile-bottom-nav { display: none; }

/* ==================== RESPONSIVE BREAKPOINTS (360 / 390 / 430 / 1024) ==================== */
@media (max-width: 1080px) {
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .mc-stage-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .top-tabs { display: none; }
  .top-bar-inner { height: 58px; padding: 0 12px; }
  .brand { min-height: 44px; }
  .brand-copy small { display: none; }
  .icon-btn span { display: none; }
  .icon-btn { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .vip-pill-btn { min-height: 44px; padding: 0 12px; font-size: 12.5px; }
  .btn-subtle { min-height: 44px; }
  .cat-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
  .hero-search input { height: 44px; }
  .x-ad-vip-btn { min-height: 44px; padding: 0 6px; }
  .mode-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; overflow: visible; }
  .mode-pill { justify-content: center; padding: 0 6px; font-size: 12px; min-height: 44px; min-width: 0; }
  .nsfw-toggle-btn { width: 100%; justify-content: center; min-height: 44px; }
  .mirrors-grid { grid-template-columns: 1fr; }
  .player-frame.is-nsfw-locked { min-height: 360px; }
  .nsfw-gate-card { padding: 14px 12px; }
  .nsfw-gate-card h2 { font-size: 15.5px; }
  .p-time { font-size: 10.5px; }
  .mc-lite-btn { min-height: 44px; padding: 0 12px; }
  .mc-ticker-bar { flex-wrap: wrap; row-gap: 8px; }
  .mc-ticker-track { flex: 1 1 100%; order: 3; }
  .main-wrap { padding: 12px 12px 84px; }
  .hero-strip { padding: 14px; }
  .hero-copy h1 { font-size: 18px; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mc-kpi-row { grid-template-columns: 1fr; }
  .gem-tip-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .ai-results-grid { grid-template-columns: 1fr; }
  .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reader-controls .btn-subtle { min-width: 44px; min-height: 44px; padding: 0 10px; }

  .mobile-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(7, 9, 15, 0.94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; min-height: 44px;
  }
  .mnav-item.active { color: var(--gold); }
}

@media (max-width: 480px) {
  .feed-grid { grid-template-columns: 1fr; }
  .pin-box { height: 46px; font-size: 18px; }
  .player-frame.is-portrait:not(.is-pseudo-fs) { width: 100%; max-width: 340px; max-height: 70vh; }
  .nsfw-gate-actions { flex-direction: column; width: 100%; }
  .nsfw-gate-actions > button { width: 100%; }
  .gem-box-counter { text-align: left; display: flex; align-items: baseline; gap: 8px; width: 100%; }
  .chapter-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .chapter-nav > a { min-width: 0; padding: 0 6px; font-size: 12px; justify-content: center; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 380px) {
  .mode-pill { padding: 0 4px; gap: 3px; font-size: 11.5px; }
  .eco-btn { padding: 0 6px; gap: 4px; font-size: 11.5px; }
  .eco-btn .ico { width: 14px; height: 14px; }
  .chapter-nav > a { padding: 0 4px; font-size: 11.5px; }
  .feed-grid[data-view-mode="compact"] .type-chip { font-size: 10px; padding: 2px 6px; }
}

/* ==================== UNIVERSAL CLEAN/ALL/18+ TOOLBAR & 3 VIEW MODES (LỚN | NHỎ | LIST) ==================== */
.filter-toolbar { gap: 10px; }
.tier-pills-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.pill-cnt {
  font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px; background: rgba(7, 9, 15, 0.28); color: inherit; opacity: 0.9;
}
.mode-pill.active .pill-cnt { background: rgba(7, 9, 15, 0.22); }
.stage-quick-pills { display: inline-flex; align-items: center; gap: 6px; }
.stage-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 11px;
  border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: var(--bg-3); border: 1px solid var(--border); white-space: nowrap;
}
.stage-chip:hover, .stage-chip.active { color: var(--cyan); border-color: rgba(56, 189, 248, 0.48); background: rgba(56, 189, 248, 0.12); }

.toolbar-right-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.view-switch {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--border);
}
.view-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 36px; padding: 0 10px; border-radius: 7px; border: 0;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all 0.15s ease;
}
.view-btn .ico { width: 15px; height: 15px; }
.view-btn:hover { color: var(--text); }
.view-btn.is-active { background: var(--gold); color: #07090f; }

.auc-toolbar { margin-bottom: 14px; }
.auc-thumb-wrap { position: relative; }

/* View mode: COMPACT (Nhỏ — 4-col desktop, 3-col tablet, 2-col mobile across ALL grids!) */
.feed-grid[data-view-mode="compact"],
.auc-grid[data-view-mode="compact"],
.term-market-board[data-view-mode="compact"] {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}

/* View mode: LARGE (Lớn — 2-col desktop, 1-col mobile cinema) */
.feed-grid[data-view-mode="large"],
.auc-grid[data-view-mode="large"],
.term-market-board[data-view-mode="large"] {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.feed-grid[data-view-mode="large"] .x-card-title,
.auc-grid[data-view-mode="large"] .auc-title,
.term-market-board[data-view-mode="large"] .t-mkt-title { font-size: 16px; }
.feed-grid[data-view-mode="large"] .x-card-media,
.auc-grid[data-view-mode="large"] .auc-thumb,
.term-market-board[data-view-mode="large"] .t-mkt-thumb { aspect-ratio: 16 / 9; }

/* View mode: LIST (Horizontal 2-col row on all viewports — strict width containment, ZERO thumb bleed!) */
.feed-grid[data-view-mode="list"],
.auc-grid[data-view-mode="list"],
.term-market-board[data-view-mode="list"] {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.feed-grid[data-view-mode="list"] .x-card,
.auc-grid[data-view-mode="list"] .auc-card,
.term-market-board[data-view-mode="list"] .t-mkt-card {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: stretch;
  overflow: hidden;
}
.feed-grid[data-view-mode="list"] .x-card-media-wrap,
.auc-grid[data-view-mode="list"] .auc-thumb-wrap {
  width: 100%; min-width: 0; height: 100%; overflow: hidden;
}
.feed-grid[data-view-mode="list"] .x-card-media,
.auc-grid[data-view-mode="list"] .auc-thumb,
.term-market-board[data-view-mode="list"] .t-mkt-thumb {
  position: relative; width: 100%; height: 100%; min-width: 0; min-height: 132px; aspect-ratio: auto !important; overflow: hidden;
}
.feed-grid[data-view-mode="list"] .x-card-media > img,
.auc-grid[data-view-mode="list"] .auc-thumb > img,
.term-market-board[data-view-mode="list"] .t-mkt-thumb > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.feed-grid[data-view-mode="list"] .x-card-media.is-portrait-media { aspect-ratio: auto !important; }
.feed-grid[data-view-mode="list"] .x-card-body,
.auc-grid[data-view-mode="list"] .auc-body,
.term-market-board[data-view-mode="list"] .t-mkt-body {
  padding: 12px 14px; justify-content: center; min-width: 0; min-height: 0;
}

@media (max-width: 1080px) {
  .feed-grid[data-view-mode="compact"],
  .auc-grid[data-view-mode="compact"],
  .term-market-board[data-view-mode="compact"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .filter-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .tier-pills-group { width: 100%; flex-direction: column; align-items: stretch; }
  .stage-quick-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .stage-chip { justify-content: center; min-height: 44px; }
  .toolbar-right-controls { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .view-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .view-btn { min-height: 44px; padding: 0 6px; }

  .feed-grid[data-view-mode="compact"],
  .auc-grid[data-view-mode="compact"],
  .term-market-board[data-view-mode="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feed-grid[data-view-mode="compact"] .x-card-body,
  .auc-grid[data-view-mode="compact"] .auc-body,
  .term-market-board[data-view-mode="compact"] .t-mkt-body { padding: 9px; gap: 6px; }
  .feed-grid[data-view-mode="compact"] .x-card-title,
  .auc-grid[data-view-mode="compact"] .auc-title,
  .term-market-board[data-view-mode="compact"] .t-mkt-title { font-size: 13px; }
  .auc-grid[data-view-mode="compact"] .eco-btn { font-size: 11.5px; padding: 0 6px; }

  .feed-grid[data-view-mode="large"],
  .auc-grid[data-view-mode="large"],
  .term-market-board[data-view-mode="large"] { grid-template-columns: 1fr; gap: 14px; }

  .feed-grid[data-view-mode="list"] .x-card,
  .auc-grid[data-view-mode="list"] .auc-card,
  .term-market-board[data-view-mode="list"] .t-mkt-card { grid-template-columns: 128px minmax(0, 1fr); }
  .feed-grid[data-view-mode="list"] .x-card-media,
  .auc-grid[data-view-mode="list"] .auc-thumb,
  .term-market-board[data-view-mode="list"] .t-mkt-thumb { width: 100%; height: 100%; min-width: 0; min-height: 92px; aspect-ratio: auto !important; }
  .feed-grid[data-view-mode="list"] .x-card-body,
  .auc-grid[data-view-mode="list"] .auc-body,
  .term-market-board[data-view-mode="list"] .t-mkt-body { padding: 9px 10px; gap: 5px; min-width: 0; }
  .feed-grid[data-view-mode="list"] .x-card-title,
  .auc-grid[data-view-mode="list"] .auc-title,
  .term-market-board[data-view-mode="list"] .t-mkt-title { font-size: 13px; }
  .auc-grid[data-view-mode="list"] .auc-cta-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .feed-grid[data-view-mode="list"] .x-card,
  .auc-grid[data-view-mode="list"] .auc-card,
  .term-market-board[data-view-mode="list"] .t-mkt-card { grid-template-columns: 112px minmax(0, 1fr); }
  .auc-grid[data-view-mode="list"] .auc-round-pill,
  .auc-grid[data-view-mode="list"] .auc-state-pill,
  .feed-grid[data-view-mode="list"] .type-chip,
  .term-market-board[data-view-mode="list"] .t-stage-stamp { font-size: 9.5px; padding: 2px 5px; }
  .auc-grid[data-view-mode="list"] .nsfw-lock-pill { display: none; }
  .auc-grid[data-view-mode="compact"] .auc-cta-row { grid-template-columns: 1fr; }
}

/* ==================== XEMCL INCUBATOR TERMINAL (/status — OBSIDIAN DARK + LIGHT PAPER TOGGLE) ==================== */
.mc-terminal {
  --t-bg: #070b14;
  --t-card: #0c1220;
  --t-card-2: #11192b;
  --t-border: rgba(148, 163, 184, 0.18);
  --t-text: #eef2f8;
  --t-muted: #94a3b8;
  --t-accent: #f5b841;
  --t-green: #10b981;
  --t-cyan: #38bdf8;
  --t-rose: #f43f5e;
  --t-canvas-bg: radial-gradient(circle at center, rgba(245, 184, 65, 0.08), rgba(7, 11, 20, 0.96) 72%);
  font-family: var(--font);
  color: var(--t-text);
  display: flex; flex-direction: column; gap: 14px;
}

.mc-terminal.is-light {
  --t-bg: #f6f3ec;
  --t-card: #fffdf8;
  --t-card-2: #f1ece0;
  --t-border: rgba(15, 23, 42, 0.14);
  --t-text: #0f172a;
  --t-muted: #475569;
  --t-accent: #b45309;
  --t-green: #047857;
  --t-cyan: #0369a1;
  --t-rose: #be123c;
  --t-canvas-bg: radial-gradient(circle at center, rgba(245, 184, 65, 0.12), #faf6ee 74%);
  background: var(--t-bg);
  padding: 14px; border-radius: 18px; border: 1px solid var(--t-border);
}
.mc-terminal .mc-panel {
  background: var(--t-card); border: 1px solid var(--t-border); border-radius: 14px; padding: 14px;
}
.mc-terminal.is-light .mc-sub b,
.mc-terminal.is-light .mc-code { color: #0f172a; }
.mc-terminal.is-light .mc-row { background: var(--t-card-2); }
.mc-terminal.is-light .mc-label,
.mc-terminal.is-light .mc-panel-title,
.mc-terminal.is-light .mc-sub,
.mc-terminal.is-light .mc-city { color: var(--t-muted); }
.mc-terminal.is-light .mc-green { color: #047857; }
.mc-terminal.is-light .mc-cyan { color: #0369a1; }
.mc-terminal.is-light .mc-gold { color: #b45309; }
.mc-terminal.is-light .mc-ms { color: #0369a1; font-weight: 700; }
.mc-terminal.is-light .mc-status-ok { color: #047857; font-weight: 700; }
.mc-terminal.is-light .mc-edge-active { color: #047857; background: rgba(4, 120, 87, 0.1); border-color: rgba(4, 120, 87, 0.32); }
.mc-terminal.is-light .mc-log-line code { color: #0369a1; font-weight: 700; }
.mc-terminal.is-light .mc-log-line b { color: #047857; }
.mc-terminal.is-light .log-album,
.mc-terminal.is-light .log-story,
.mc-terminal.is-light .log-trial_30d { color: #b45309; }
.mc-terminal.is-light .log-auction { color: #0369a1; }
.mc-terminal.is-light .log-buy_now,
.mc-terminal.is-light .log-minted,
.mc-terminal.is-light .log-ledger { color: #047857; }
.mc-terminal.is-light .log-archive { color: #475569; }
.mc-terminal.is-light .view-switch { background: var(--t-card-2); border-color: var(--t-border); }
.mc-terminal.is-light .view-btn { color: #334155; }
.mc-terminal.is-light .view-btn:hover { color: #0f172a; }
.mc-terminal.is-light .view-btn.is-active { background: #b45309; color: #ffffff; }
.mc-terminal.is-light .btn-subtle { background: var(--t-card-2); border-color: var(--t-border); color: #0f172a; }
.mc-terminal.is-light .tseg-btn.active,
.mc-terminal.is-light .tb-tab.active,
.mc-terminal.is-light .t-mkt-cta { background: #b45309; color: #ffffff; border-color: #b45309; }
.mc-terminal.is-light .term-log-row { color: var(--t-muted); }
.mc-terminal.is-light .tseg-btn.tseg-nsfw.active { background: #be123c; color: #ffffff; }
.mc-terminal.is-light .thumb-fallback { background: linear-gradient(135deg, #efe7d5, #f8f4ea); color: #334155; }
.mc-terminal.is-light .term-ver { background: rgba(3, 105, 161, 0.12); color: #0369a1; border-color: rgba(3, 105, 161, 0.28); }
.mc-terminal.is-light .st-tag { background: rgba(15, 23, 42, 0.08); color: #334155; }
.mc-terminal.is-light .st-tag-scan,
.mc-terminal.is-light .st-tag-wait { background: rgba(180, 83, 9, 0.14); color: #92400e; }
.mc-terminal.is-light .st-tag-pass,
.mc-terminal.is-light .st-tag-mint { background: rgba(4, 120, 87, 0.14); color: #065f46; }
.mc-terminal.is-light .st-tag-live { background: rgba(3, 105, 161, 0.14); color: #075985; }
.mc-terminal.is-light .flow-src-type { color: #0369a1; }
.mc-terminal.is-light .tt-pill.active { background: rgba(3, 105, 161, 0.14); color: #0369a1; border-color: rgba(3, 105, 161, 0.42); }
.mc-terminal.is-light .t-type-pill { background: rgba(15, 23, 42, 0.86); color: #ffffff; }
.mc-terminal.is-light .spot-type-row .t-type-pill { background: var(--t-card-2); color: #0f172a; border-color: var(--t-border); }

.term-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: var(--t-card); border: 1px solid var(--t-border);
}
.term-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.term-dots { display: inline-flex; align-items: center; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-dots .dot-r { background: #ff5f57; }
.term-dots .dot-y { background: #febc2e; }
.term-dots .dot-g { background: #28c840; }
.term-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--t-text); }
.term-brand .ico { color: var(--t-accent); }
.term-ver {
  padding: 2px 7px; border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  background: rgba(56, 189, 248, 0.14); color: var(--t-cyan); border: 1px solid rgba(56, 189, 248, 0.32);
  white-space: nowrap; flex-shrink: 0;
}
.term-clock { font-family: var(--mono); font-size: 12px; color: var(--t-muted); }

@keyframes mcPulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.mc-terminal .mc-live-pill {
  background: rgba(16, 185, 129, 0.16); color: var(--t-green); border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--mono);
}
.mc-terminal .mc-dot { background: var(--t-green); animation: mcPulseDot 1.6s infinite; }

.term-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.term-tier-seg {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border-radius: 10px; background: var(--t-card-2); border: 1px solid var(--t-border);
}
.tseg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 36px; padding: 0 11px; border-radius: 7px; border: 0;
  background: transparent; color: var(--t-muted); font-size: 12px; font-weight: 700; cursor: pointer;
}
.tseg-btn .ico { width: 14px; height: 14px; }
.tseg-btn.active { background: var(--gold); color: #07090f; }
.tseg-btn.tseg-nsfw.active { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; }
.term-ctl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--t-border);
  background: var(--t-card-2); color: var(--t-text); font-size: 12px; font-weight: 700; cursor: pointer;
}
.term-ctl-btn:hover { border-color: var(--t-accent); color: var(--t-accent); }

.term-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.term-kpi .mc-big { font-family: var(--mono); font-size: clamp(20px, 2.2vw, 26px); }
.term-inline-link { color: var(--t-accent); font-weight: 700; text-decoration: underline; }

.term-workspace { display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 14px; align-items: start; }
.term-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.term-col-head .mc-panel-title { margin-bottom: 0; }
.term-pill-ok {
  font-family: var(--mono); font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  background: rgba(16, 185, 129, 0.16); color: var(--t-green); border: 1px solid rgba(16, 185, 129, 0.35);
}

.term-stations-list { display: flex; flex-direction: column; gap: 8px; }
.term-station {
  width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 10px; border-radius: 11px; border: 1px solid var(--t-border);
  background: var(--t-card-2); color: var(--t-text); text-align: left; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.16s;
}
.term-station:hover { border-color: rgba(245, 184, 65, 0.5); }
.term-station.is-active {
  border-color: var(--t-green);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45), 0 0 22px rgba(16, 185, 129, 0.18);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), var(--t-card-2));
}
.st-num {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  background: rgba(148, 163, 184, 0.14); color: var(--t-muted);
}
.term-station.is-active .st-num { background: var(--t-green); color: #04120c; }
.st-copy { min-width: 0; }
.st-copy strong { display: block; font-size: 12.5px; line-height: 1.28; white-space: normal; }
.st-copy small { display: block; font-size: 10.5px; color: var(--t-muted); line-height: 1.35; margin-top: 2px; }
.st-tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 800; padding: 3px 6px; border-radius: 6px;
  background: rgba(148, 163, 184, 0.14); color: var(--t-muted);
}
.st-tag-scan, .st-tag-wait { background: rgba(245, 184, 65, 0.16); color: var(--t-accent); }
.st-tag-pass, .st-tag-mint { background: rgba(16, 185, 129, 0.16); color: var(--t-green); }
.st-tag-live { background: rgba(56, 189, 248, 0.16); color: var(--t-cyan); }

.term-stage-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.term-flow-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.term-flow-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--t-muted); line-height: 1.45; }
.term-flow-sub b { color: var(--t-text); }
.term-stamp-badge {
  flex: 0 0 auto; padding: 5px 11px; border-radius: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  color: var(--t-accent); border: 1.5px dashed var(--t-accent); background: rgba(245, 184, 65, 0.1);
  transform: rotate(-1.5deg);
}

.term-flow-arena { display: grid; grid-template-columns: 205px minmax(0, 1fr) 172px; gap: 12px; align-items: center; }
.term-flow-sources, .term-flow-dests { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flow-src-card {
  width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--t-border);
  background: var(--t-card-2); color: var(--t-text); text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; transition: border-color 0.16s, transform 0.16s;
}
.flow-src-card:hover, .flow-src-card.is-selected {
  border-color: var(--t-accent); box-shadow: 0 0 0 1px rgba(245, 184, 65, 0.35);
}
.flow-src-type { font-family: var(--mono); font-size: 9.5px; font-weight: 800; color: var(--t-cyan); letter-spacing: 0.06em; }
.flow-src-card strong { display: block; width: 100%; max-width: 100%; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-src-card small { display: block; width: 100%; max-width: 100%; font-size: 10.5px; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.term-flow-canvas-wrap {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--t-border); background: var(--t-canvas-bg);
}
#mc-flow-canvas { width: 100%; height: auto; display: block; aspect-ratio: 520 / 250; }

.flow-dest-tile {
  width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--t-border);
  background: var(--t-card-2); color: var(--t-text); text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; transition: border-color 0.2s, box-shadow 0.2s;
}
.flow-dest-tile.is-focus, .flow-dest-tile:hover {
  border-color: var(--t-green); box-shadow: 0 0 16px rgba(16, 185, 129, 0.18);
}
.flow-dest-tile span { font-size: 10.5px; font-weight: 700; color: var(--t-muted); }
.flow-dest-tile strong { font-family: var(--mono); font-size: 18px; color: var(--t-accent); line-height: 1.2; }
.flow-dest-tile small { font-size: 10px; color: var(--t-muted); }

.term-mid-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 14px; align-items: stretch; }
.spot-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: start; }
.spot-cover {
  display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--t-border); background: var(--t-card-2);
}
.spot-cover img { width: 100%; height: 100%; object-fit: cover; }
.spot-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.spot-type-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spot-info h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.spot-info p { margin: 0; font-size: 12.2px; color: var(--t-muted); line-height: 1.48; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot-metrics { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--t-muted); font-family: var(--mono); }
.spot-metrics b { color: var(--t-accent); }
.spot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

@keyframes termBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.term-cursor-pill {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--t-green);
}
.term-cursor { width: 7px; height: 12px; background: var(--t-green); display: inline-block; animation: termBlink 1s step-end infinite; }
.term-log-stream { max-height: 228px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; }
.term-log-row {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 8px; border-radius: 7px;
  background: var(--t-card-2); border: 1px solid transparent; line-height: 1.4;
}
.term-log-row:hover { border-color: var(--t-border); }
.log-tag { flex: 0 0 auto; font-size: 10.5px; }
.log-album, .log-story, .log-trial_30d { color: var(--t-accent); }
.log-auction { color: var(--t-cyan); }
.log-buy_now, .log-minted, .log-ledger { color: var(--t-green); }
.log-archive { color: var(--t-muted); }
.log-msg { min-width: 0; color: var(--t-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Distribution Bar & Investment Board */
.term-dist-wrap { margin-bottom: 14px; }
.term-dist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.term-dist-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--t-muted); font-family: var(--mono); }
.lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.lg-trial, .seg-trial { background: #f5b841; }
.lg-auction, .seg-auction { background: #38bdf8; }
.lg-buynow, .seg-buynow { background: #10b981; }
.lg-archive, .seg-archive { background: #64748b; }
.term-dist-track {
  display: flex; width: 100%; height: 9px; border-radius: 99px; overflow: hidden;
  background: var(--t-card-2); gap: 2px;
}
.dist-seg { height: 100%; transition: width 0.35s ease; }

.term-board-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--t-border);
}
.term-stage-tabs, .term-type-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.term-board-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-tab, .tt-pill {
  min-height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--t-border);
  background: var(--t-card-2); color: var(--t-muted); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tb-tab.active { background: var(--gold); color: #07090f; border-color: var(--gold); }
.tt-pill.active { background: rgba(56, 189, 248, 0.18); color: var(--t-cyan); border-color: rgba(56, 189, 248, 0.45); }

.t-mkt-card {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: var(--t-card-2); border: 1px solid var(--t-border); transition: border-color 0.16s, transform 0.16s;
}
.t-mkt-card:hover { transform: translateY(-2px); border-color: rgba(245, 184, 65, 0.45); }
.t-mkt-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; background: #090e1a; overflow: hidden;
}
.t-mkt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-stage-stamp {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; backdrop-filter: blur(8px);
}
.st-trial { background: rgba(245, 184, 65, 0.22); color: #fde68a; border: 1px solid rgba(245, 184, 65, 0.48); }
.st-auction { background: rgba(56, 189, 248, 0.24); color: #bae6fd; border: 1px solid rgba(56, 189, 248, 0.48); }
.st-buy_now, .st-minted { background: rgba(16, 185, 129, 0.24); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.48); }
.st-archived { background: rgba(100, 116, 139, 0.34); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.42); }
.mc-terminal.is-light .st-trial { background: #fef3c7; color: #92400e; }
.mc-terminal.is-light .st-auction { background: #e0f2fe; color: #075985; }
.mc-terminal.is-light .st-buy_now, .mc-terminal.is-light .st-minted { background: #d1fae5; color: #065f46; }
.mc-terminal.is-light .st-archived { background: #e2e8f0; color: #334155; }

.t-type-pill {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px;
  background: rgba(7, 9, 15, 0.84); color: #f8fafc; font-size: 10.5px; font-weight: 700;
}
.spot-type-row .t-type-pill { position: static; background: var(--t-card-2); color: var(--t-text); border: 1px solid var(--t-border); }
.t-mkt-body { padding: 11px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.t-mkt-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--t-muted); }
.t-tier-dot { padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.tier-clean { background: rgba(16, 185, 129, 0.16); color: var(--t-green); }
.tier-nsfw { background: rgba(244, 63, 94, 0.18); color: var(--t-rose); }
.t-mkt-views { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }
.t-mkt-views .ico { width: 13px; height: 13px; }
.t-mkt-title { margin: 0; font-size: 13.5px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-mkt-foot { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--t-border); display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.t-mkt-metric { font-family: var(--mono); font-size: 10.5px; color: var(--t-muted); }
.t-mkt-cta {
  padding: 5px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 800;
  background: var(--gold); color: #07090f; white-space: nowrap;
}

@media (max-width: 1120px) {
  .term-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-workspace { grid-template-columns: minmax(0, 1fr); }
  .term-stations-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .term-infra-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 860px) {
  .term-flow-arena { grid-template-columns: minmax(0, 1fr); }
  .term-flow-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-flow-dests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-mid-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .term-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .term-kpi { padding: 11px; }
  .term-stations-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .term-station { padding: 8px; min-height: 52px; }
  .term-infra-block { grid-template-columns: 1fr; }
  .term-top-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .term-tier-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tseg-btn { min-height: 44px; padding: 0 6px; font-size: 11.5px; }
  .term-ctl-btn { min-height: 44px; padding: 0 10px; }
  .spot-body { grid-template-columns: 1fr; }
  .term-stage-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tb-tab { min-height: 44px; padding: 0 6px; font-size: 11.5px; }
  .term-board-right { width: 100%; flex-direction: column; align-items: stretch; }
  .term-type-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .tt-pill { min-height: 44px; padding: 0 4px; font-size: 11.5px; }
  .flow-src-card, .flow-dest-tile { min-height: 48px; }
  .t-mkt-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; width: 100%; }
  .term-market-board[data-view-mode="list"] .t-mkt-cta { width: auto; padding: 0 12px; }
}

@media (max-width: 480px) {
  .term-kpi-grid { grid-template-columns: 1fr; }
  .term-stations-list { grid-template-columns: 1fr; }
  .term-top-actions { grid-template-columns: 1fr 1fr; }
  .term-tier-seg { grid-column: 1 / -1; }
  .term-flow-sources { grid-template-columns: 1fr; }
}

/* Guarantee Pseudo-Fullscreen always overrides all responsive & portrait rules */
.player-frame.is-pseudo-fs {
  position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100dvh;
  max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; border: 0;
  margin: 0; background: #000;
}

/* ==================== SYSTEM QR SHARE MODAL & AUCTION QR BUTTON ==================== */
.auc-cta-with-qr {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.auc-cta-with-qr > .eco-btn {
  flex: 1 1 auto;
  min-width: 0;
}
.btn-auc-qr {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.btn-share-qr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qr-share-card {
  max-width: 410px;
  width: calc(100% - 24px);
  text-align: center;
}
.qr-share-nsfw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.36);
  color: #fda4af;
  font-size: 11.5px;
  font-weight: 700;
}
.qr-share-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qr-share-canvas-wrap {
  display: inline-flex;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  margin-bottom: 12px;
}
.qr-share-canvas-wrap canvas {
  display: block;
  width: 196px;
  height: 196px;
}
.qr-share-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.qr-share-url-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.btn-qr-copy {
  flex: 0 0 auto;
  padding: 9px 14px;
  min-height: 44px;
  white-space: nowrap;
}
.qr-share-lock-box {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.qr-lock-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.qr-lock-pin-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.qr-lock-pin-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
}
.qr-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.qr-share-status {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.btn-bookmark.is-saved {
  border-color: rgba(245, 184, 65, 0.62);
  color: #f5b841;
}

/* === QUICK-BOOKMARK CORNER BUTTON ON CARDS === */
.card-save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 10, 20, 0.72);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.is-nsfw-card .card-save-btn {
  top: 56px;
  right: 12px;
}
.saved-card.is-nsfw-card .card-save-btn {
  top: 8px;
  right: 8px;
}
@media (max-width: 768px) {
  .is-nsfw-card .card-eye-btn {
    min-width: 34px;
    min-height: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .is-nsfw-card .card-save-btn {
    top: 44px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
}
.card-save-btn .ico {
  width: 15px;
  height: 15px;
}
.card-save-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.92);
}
.card-save-btn.is-saved {
  color: #facc15;
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(250, 204, 21, 0.75);
}
.card-save-btn.is-saved svg {
  fill: currentColor;
}

/* === /DA-LUU SAVED LIBRARY PAGE === */
.saved-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0 24px;
}
.saved-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.saved-head h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 4px;
}
.saved-head h1 .ico {
  width: 20px;
  height: 20px;
  color: #facc15;
}
.saved-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.saved-guest-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 184, 65, 0.34);
}
.sgb-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 620px;
}
.sgb-copy strong {
  font-size: 13.5px;
  color: #fde68a;
}
.sgb-copy span {
  font-size: 12px;
  color: var(--muted);
}
.saved-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.saved-filter-pills {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
}
.saved-filter-pills .mode-pill {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .saved-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .saved-filter-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
  }
  .saved-filter-pills .mode-pill {
    justify-content: center;
    padding: 7px 3px;
    font-size: 11.5px;
    gap: 3px;
    min-width: 0;
  }
  .saved-filter-pills .mode-pill .ico {
    display: none;
  }
}
.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 42px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.28);
}
.saved-empty-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  background: rgba(245, 158, 11, 0.14);
}
.saved-empty-ico .ico { width: 22px; height: 22px; }
.saved-empty h2 { margin: 0; font-size: 16px; }
.saved-empty p { margin: 0; max-width: 420px; font-size: 13px; color: var(--muted); }
.saved-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

/* === DUAL WATCH-TO-EARN UI (1: COMPACT BAR UNDER PLAYER + 2: FLOATING ORB LIKE VN69-VIP) === */
.xemcl-watch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 24, 42, 0.92), rgba(10, 15, 28, 0.96));
  border: 1px solid rgba(245, 184, 65, 0.26);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.xemcl-watch-bar.is-counting {
  border-color: rgba(16, 185, 129, 0.56);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.14);
}
.xwb-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.xwb-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
}
.xwb-ico .ico { width: 16px; height: 16px; }
.xwb-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.xwb-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.xwb-hh-pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fe2c55, #f59e0b);
  border: 1px solid rgba(255, 243, 196, 0.72);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.xwb-copy strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}
.xwb-copy span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.xwb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.xwb-prog-track {
  width: 66px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.xwb-prog-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #facc15);
  transition: width 0.35s linear;
}
.xwb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.48);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.xwb-cta-btn .ico { width: 13px; height: 13px; }

/* Floating Watch-to-Earn Orb (matching vn69-vip 100%: gem-3d.gif + top-right cyan 44s + bottom x2 + drag/snap!) */
.xemcl-watch-orb {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 44;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 184, 65, 0.58);
  background: radial-gradient(circle at 32% 28%, #22193d, #090814 78%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 184, 65, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.2s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.xemcl-watch-orb:hover { transform: scale(1.06); }
.xemcl-watch-orb.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
  transform: scale(1.08) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), 0 0 26px rgba(245, 184, 65, 0.52) !important;
}
.xemcl-watch-orb.is-snapping {
  transition: left 0.24s cubic-bezier(0.22, 1, 0.36, 1), top 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease, opacity 0.22s ease !important;
}
.xemcl-watch-orb.is-counting {
  border-color: rgba(103, 232, 249, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 22px rgba(56, 189, 248, 0.4);
}
.xemcl-watch-orb.is-dock-open {
  z-index: 2147483645 !important;
  left: 12px !important;
  right: auto !important;
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  bottom: auto !important;
  opacity: 0.92;
}
.xwo-ring {
  position: absolute;
  inset: -3px;
  width: 60px;
  height: 60px;
  transform: rotate(-90deg);
  pointer-events: none;
}
.xwo-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.6;
}
.xwo-ring-fg {
  fill: none;
  stroke: #f5b841;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  transition: stroke-dashoffset 0.35s linear, stroke 0.2s ease;
}
.xemcl-watch-orb.is-counting .xwo-ring-fg {
  stroke: #38bdf8;
}
.xwo-gem-svg {
  width: 32px;
  height: 32px;
  display: block;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.62));
  animation: xwoGemFloat 3.4s ease-in-out infinite;
  will-change: transform;
}
.xwo-gem-svg .g-sheen {
  animation: xwoGemSheen 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}
.xwo-gem-svg .g-sp1 {
  transform-origin: 11px 9px;
  animation: xwoGemSp1 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}
.xwo-gem-svg .g-sp2 {
  transform-origin: 37px 13px;
  animation: xwoGemSp2 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes xwoGemFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-1.4px) scale(1.035); }
}
@keyframes xwoGemSheen {
  0%, 62% { transform: translateX(-46px) skewX(-22deg); opacity: 0; }
  72% { opacity: 0.88; }
  88%, 100% { transform: translateX(48px) skewX(-22deg); opacity: 0; }
}
@keyframes xwoGemSp1 {
  0%, 58%, 100% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  72% { opacity: 1; transform: scale(1.1) rotate(35deg); }
  86% { opacity: 0; transform: scale(0.45) rotate(70deg); }
}
@keyframes xwoGemSp2 {
  0%, 22%, 62%, 100% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  38% { opacity: 0.95; transform: scale(1.05) rotate(-35deg); }
  52% { opacity: 0; transform: scale(0.4) rotate(-70deg); }
}
@media (prefers-reduced-motion: reduce) {
  .xwo-gem-svg, .xwo-gem-svg .g-sheen, .xwo-gem-svg .g-sp1, .xwo-gem-svg .g-sp2 { animation: none !important; }
}
.xwo-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe28a, #f59e0b);
  color: #170d02;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: background 0.16s ease, color 0.16s ease;
}
.xemcl-watch-orb.is-counting .xwo-badge {
  background: linear-gradient(135deg, #67e8f9, #06b6d4);
  color: #041d29;
}
.xwo-hh-pill {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fe2c55, #f59e0b);
  border: 1px solid rgba(255, 243, 196, 0.72);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.2px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.xwo-pop {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #090d1a;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
}
.xwo-pop.is-pop {
  animation: xwoPopRise 1.85s ease-out forwards;
}
@keyframes xwoPopRise {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.85); }
  18% { opacity: 1; transform: translate(-50%, -6px) scale(1.06); }
  80% { opacity: 1; transform: translate(-50%, -18px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(0.95); }
}

@media (max-width: 768px) {
  .xemcl-watch-bar { padding: 9px 10px; gap: 8px; }
  .xwb-prog-track { display: none; }
  .xwb-copy strong { font-size: 12px; }
  .xwb-copy span { font-size: 10.5px; }
  .xwb-cta-btn { padding: 7px 10px; font-size: 11px; }
  /* Dock upper-right on mobile (matching vn69-vip pos-tok) — 100% clear of player controls, watch-bar CTA, and bottom nav! */
  .xemcl-watch-orb {
    top: calc(env(safe-area-inset-top, 0px) + 100px);
    right: 10px;
    bottom: auto;
    width: 48px;
    height: 48px;
    opacity: 0.95;
  }
  .xwo-ring { width: 52px; height: 52px; }
  .xwo-gem-svg { width: 28px; height: 28px; }
  .xwo-badge { top: -6px; right: -6px; padding: 1.5px 5px; font-size: 8.5px; line-height: 1.15; }
}

