/* VoiceOut 2.0 experience layer (vo2.js). Sits on top of index.html without
   replacing any of its logic: every like / comment / share still goes through
   the original buttons. Keeps the cyberpunk-neon brand (cyan / pink / lime on black). */
:root { --vo2-pink: #ff2e88; --vo2-cyan: #00E5FF; --vo2-lime: #ccff00; --vo2-glass: rgba(14, 18, 22, 0.82); }

/* ---------- sticky feed bar ---------- */
#vo2-bar { position: sticky; top: -10px; z-index: 50; margin: -10px -5px 8px; padding: 10px 10px 6px;
  background: linear-gradient(180deg, rgba(5,5,5,0.98) 70%, rgba(5,5,5,0.85)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vo2-row { display: flex; align-items: center; gap: 8px; }
.vo2-tabs { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.vo2-tabs::-webkit-scrollbar { display: none; }
.vo2-tabs button { flex: 0 0 auto; background: none; border: none; color: #8a8f98; font-size: 0.92rem; padding: 6px 9px; position: relative; cursor: pointer; letter-spacing: 0.5px; transition: color .2s; }
.vo2-tabs button.active { color: #fff; text-shadow: 0 0 10px rgba(0,229,255,0.7); }
.vo2-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 3px; border-radius: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--vo2-cyan), var(--vo2-pink)); box-shadow: 0 0 8px var(--vo2-cyan); }
.vo2-tool { flex: 0 0 auto; height: 32px; min-width: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(0,229,255,0.35); background: rgba(0,229,255,0.06);
  color: var(--vo2-cyan); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 0.8rem; }
.vo2-tool.play { border: none; color: #000; background: linear-gradient(90deg, var(--vo2-cyan), var(--vo2-pink)); box-shadow: 0 0 14px rgba(255,46,136,0.45); font-weight: 900; }
.vo2-tool.on { background: var(--vo2-cyan); color: #000; }

/* ---------- 熱議 stories row ---------- */
#vo2-stories { display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; }
#vo2-stories::-webkit-scrollbar { display: none; }
#vo2-stories:empty { display: none; }
.vo2-story { flex: 0 0 auto; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; background: none; border: none; padding: 0; color: #ddd; }
.vo2-ring { width: 56px; height: 56px; border-radius: 50%; padding: 2.5px; background: conic-gradient(var(--vo2-cyan), var(--vo2-pink), var(--vo2-lime), var(--vo2-cyan)); animation: vo2-spin 6s linear infinite; }
.vo2-ring span { width: 100%; height: 100%; border-radius: 50%; background: #0b0b0d; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; animation: vo2-spin 6s linear infinite reverse; }
.vo2-story small { font-size: 0.62rem; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bbb; }
.vo2-story.active small { color: var(--vo2-lime); }
.vo2-story.active .vo2-ring { background: var(--vo2-lime); }
@keyframes vo2-spin { to { transform: rotate(360deg); } }

/* ---------- card restyle (list view) ---------- */
#timeline-content .voice-card.vo2-card { border-radius: 16px; border: 1px solid rgba(0,229,255,0.16);
  background: linear-gradient(180deg, rgba(20,24,28,0.88), rgba(8,9,11,0.92)); box-shadow: 0 8px 26px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 12px !important; margin-bottom: 12px !important; transition: transform .15s ease, box-shadow .25s ease, opacity .5s ease; }
#timeline-content .voice-card.vo2-card:active { transform: scale(0.992); }
#timeline-content .voice-card.vo2-card .clickable-img,
#timeline-content .voice-card.vo2-card video,
#timeline-content .voice-card.vo2-card .carousel-container { border-radius: 12px !important; border-color: rgba(255,255,255,0.06) !important; }
#timeline-content .vo2-card .action-container { border-top: 1px solid rgba(255,255,255,0.06) !important; }
#timeline-content .vo2-card .action-btn { opacity: 0.92; background: rgba(255,255,255,0.05); border-radius: 999px; padding: 5px 11px; font-size: 0.88rem; }
#timeline-content .vo2-card .action-btn:hover { transform: none; background: rgba(0,229,255,0.12); }
#timeline-content .vo2-card .action-btn.liked { background: rgba(255,46,136,0.16); color: var(--vo2-pink); box-shadow: 0 0 10px rgba(255,46,136,0.35); animation: vo2-pop .35s ease; }
#timeline-content .vo2-card .action-btn.disliked { background: rgba(255,51,51,0.14); }
#timeline-content .vo2-card.vo2-enter { animation: vo2-enter .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vo2-enter { 0% { opacity: 0; transform: translateY(-14px) scale(.98); box-shadow: 0 0 0 rgba(0,229,255,0); }
  50% { box-shadow: 0 0 26px rgba(0,229,255,0.55); } 100% { opacity: 1; transform: none; } }
@keyframes vo2-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
#timeline-content.vo2-hide { display: none; }

/* ---------- skeleton ---------- */
.vo2-skel { height: 150px; border-radius: 16px; margin-bottom: 12px; background: linear-gradient(90deg, #0d0f12 25%, #161a1f 50%, #0d0f12 75%); background-size: 200% 100%; animation: vo2-sh 1.3s infinite; border: 1px solid rgba(0,229,255,0.08); }
.vo2-skel.s2 { height: 220px; }
@keyframes vo2-sh { to { background-position: -200% 0; } }

/* ---------- grid view (小紅書 waterfall) ---------- */
#vo2-grid { display: none; gap: 8px; align-items: flex-start; }
#vo2-grid.on { display: flex; }
.vo2-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vo2-tile { border-radius: 14px; overflow: hidden; background: #0e1013; border: 1px solid rgba(0,229,255,0.12); cursor: pointer; animation: vo2-tile .35s ease both; position: relative; }
@keyframes vo2-tile { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vo2-cover { position: relative; background: #000; }
.vo2-cover img, .vo2-cover video { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.vo2-tcover { aspect-ratio: 3/4; padding: 16px 12px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.vo2-tcover::before { content: "“"; position: absolute; left: 8px; top: -10px; font-size: 80px; opacity: .22; color: #fff; font-family: Georgia, serif; }
.vo2-tcover p { margin: 0; color: #fff; font-size: 1.02rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; text-shadow: 0 0 10px rgba(0,0,0,0.35); }
.vo2-badge { position: absolute; left: 8px; top: 8px; font-size: 0.62rem; color: #fff; background: rgba(0,0,0,0.55); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.vo2-badge.hot { background: linear-gradient(90deg, var(--vo2-pink), #ff7a45); }
.vo2-badge.r { left: auto; right: 8px; }
.vo2-play-ic { position: absolute; right: 8px; bottom: 8px; color: #fff; font-size: 1rem; text-shadow: 0 0 6px #000; }
.vo2-tbody { padding: 8px 10px 10px; }
.vo2-tbody h4 { margin: 0 0 8px; color: #eee; font-size: 0.82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.vo2-tfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.66rem; color: #8a8f98; }
.vo2-tfoot .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vo2-tfoot .l { flex: 0 0 auto; color: #ccc; }
.vo2-tfoot .l.on { color: var(--vo2-pink); }

/* ---------- new-signal pill ---------- */
#vo2-newpill { position: absolute; left: 50%; top: 128px; transform: translate(-50%, -20px); z-index: 55; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--vo2-cyan), var(--vo2-pink)); color: #000; font-weight: 900; font-size: 0.78rem; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255,46,136,0.45); transition: all .25s ease; border: none; cursor: pointer; white-space: nowrap; }
#vo2-newpill.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------- heart burst ---------- */
.vo2-burst { position: fixed; z-index: 20000; pointer-events: none; color: var(--vo2-pink); font-size: 92px; line-height: 1; filter: drop-shadow(0 0 18px rgba(255,46,136,0.85));
  animation: vo2-burst .85s ease-out forwards; }
@keyframes vo2-burst { 0% { transform: translate(-50%,-50%) scale(.2) rotate(var(--r)); opacity: 0; } 20% { transform: translate(-50%,-50%) scale(1.15) rotate(var(--r)); opacity: 1; }
  40% { transform: translate(-50%,-50%) scale(.95) rotate(var(--r)); } 100% { transform: translate(-50%,-170%) scale(1.4) rotate(var(--r)); opacity: 0; } }

/* ---------- 刷刷 immersive (抖音) ---------- */
#vo2-swipe { position: fixed; inset: 0; z-index: 3000; background: #000; display: none; }
#vo2-swipe.open { display: block; animation: vo2-fade .2s ease; }
@keyframes vo2-fade { from { opacity: 0; } to { opacity: 1; } }
body.vo2-immersive #mobile-composer-toggle { display: none !important; }
.vo2-sw-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: linear-gradient(rgba(0,0,0,0.55), transparent); pointer-events: none; }
.vo2-sw-top > * { pointer-events: auto; }
.vo2-sw-top .side { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.vo2-sw-top .side.r { justify-content: flex-end; }
.vo2-sw-btn { background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.22); color: #fff; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  font-size: 0.78rem; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vo2-sw-btn.post { border: none; color: #000; background: linear-gradient(90deg, var(--vo2-cyan), var(--vo2-pink)); box-shadow: 0 0 12px rgba(255,46,136,0.5); font-size: 1rem; }
.vo2-bal { background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.35); color: var(--gold-color, #FFD700); height: 30px; padding: 0 10px; border-radius: 999px; font-size: 0.74rem;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 6px rgba(255,215,0,0.5); }
.vo2-bal:empty { display: none; }
.vo2-sw-tabs { flex: 0 0 auto; display: flex; gap: 18px; }
.vo2-sw-tabs button { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.02rem; padding: 4px 0; cursor: pointer; position: relative; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.vo2-sw-tabs button.active { color: #fff; }
.vo2-sw-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 22px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 8px var(--vo2-cyan); }
.vo2-track { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.vo2-track::-webkit-scrollbar { display: none; }
.vo2-slide { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.vo2-sbg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); transform: scale(1.1); }
.vo2-sbg.grad { filter: brightness(.6); inset: 0; transform: none; background-size: 220% 220% !important; animation: vo2-drift 14s ease-in-out infinite alternate; }
@keyframes vo2-drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.vo2-smedia { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 70px 0 190px; box-sizing: border-box; }
.vo2-smedia img, .vo2-smedia video { max-width: 100%; max-height: 100%; object-fit: contain; }
.vo2-smedia iframe { width: 100%; height: 100%; border: 0; }
.vo2-stext { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 80px 80px 220px 20px; box-sizing: border-box; }
.vo2-stext h2 { margin: 0 0 12px; color: #fff; font-size: 1.6rem; line-height: 1.3; text-shadow: 0 0 18px rgba(0,229,255,0.6); word-break: break-word; }
.vo2-stext p { margin: 0; color: #f2f2f2; font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.vo2-rail { position: absolute; right: 8px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vo2-rail button { background: none; border: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.7rem; text-shadow: 0 1px 4px #000; padding: 0; }
.vo2-rail .ic { font-size: 1.85rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); transition: transform .15s; }
.vo2-rail button:active .ic { transform: scale(.85); }
.vo2-rail button.on .ic { color: var(--vo2-pink); filter: drop-shadow(0 0 10px rgba(255,46,136,0.9)); animation: vo2-pop .35s ease; }
.vo2-rail button.off { opacity: .45; }
.vo2-av { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: #000; font-weight: 900;
  background: linear-gradient(135deg, var(--vo2-cyan), var(--vo2-pink)); box-shadow: 0 0 14px rgba(0,229,255,0.5); }
.vo2-sinfo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 80px calc(18px + env(safe-area-inset-bottom)) 16px; background: linear-gradient(transparent, rgba(0,0,0,0.78) 45%); }
.vo2-sinfo .who { color: #fff; font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vo2-sinfo .meta { color: #aab; font-size: 0.72rem; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.vo2-sinfo .meta .near { color: #00FF41; text-shadow: 0 0 6px #00FF41; }
.vo2-sinfo .meta .timer { color: var(--gold-color, #FFD700); }
.vo2-sinfo .cap { color: #eee; font-size: 0.88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.vo2-sinfo .cap.open { -webkit-line-clamp: unset; max-height: 32vh; overflow-y: auto; }
.vo2-sinfo .tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.vo2-sinfo .tags span { color: var(--vo2-lime); font-size: 0.82rem; cursor: pointer; text-shadow: 0 0 6px rgba(204,255,0,0.5); }
.vo2-gone { position: absolute; inset: 0; z-index: 6; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 0.9rem; letter-spacing: 1px; }
.vo2-end { height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #aaa; text-align: center; padding: 20px; }
.vo2-end .big { font-size: 3rem; }
.vo2-coach { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-size: 0.95rem; text-align: center; line-height: 1.7; cursor: pointer; }
.vo2-coach .hand { font-size: 3rem; animation: vo2-up 1.4s ease-in-out infinite; }
@keyframes vo2-up { 0% { transform: translateY(30px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.vo2-progress { position: absolute; top: calc(4px + env(safe-area-inset-top)); left: 14px; right: 14px; height: 2px; z-index: 6; display: flex; gap: 3px; pointer-events: none; }
.vo2-progress i { flex: 1; background: rgba(255,255,255,0.18); border-radius: 2px; }
.vo2-progress i.on { background: var(--vo2-cyan); box-shadow: 0 0 6px var(--vo2-cyan); }
@media (min-width: 768px) {
  .vo2-smedia { padding: 70px calc(50% - 300px) 170px; }
  .vo2-stext { padding: 90px calc(50% - 260px) 230px; }
  .vo2-stext h2 { font-size: 2.2rem; } .vo2-stext p { font-size: 1.25rem; }
  .vo2-rail { right: calc(50% - 360px); }
  .vo2-sinfo { padding-left: calc(50% - 300px); padding-right: calc(50% - 300px); }
}
@media (prefers-reduced-motion: reduce) { .vo2-ring, .vo2-ring span, .vo2-coach .hand { animation: none; } }

/* ======================================================================
   "Neon as accent" (owner decision 2026-11-10, option B).
   Users found the all-neon look tiring to read. Keep the brand — black
   background, logo, cyan actions, gradient 刷刷 button, story rings —
   but make reading calm: white body text with no glow, no blinking,
   neutral dark cards.
   ====================================================================== */
body { color: #e9e9ec; }
/* post body text: renderVoiceList sets an inline cyan glow; override it */
.voice-card > div[style*="pre-wrap"] { text-shadow: none !important; color: #e4e4e8 !important; font-size: 0.95rem !important; line-height: 1.62 !important; font-weight: 400; }
.voice-card .voice-title { text-shadow: none !important; color: #fff !important; font-weight: 800; }
.voice-card span[onclick^="filterByHashtag"] { text-shadow: none !important; color: #7fe3ff !important; }
.voice-card .user-display-id { font-weight: 700; }
.card-header, .dist-tag, .countdown-timer, #geo-location, #active-post-counter, #menu-btn, #noti-bell-btn { text-shadow: none !important; }
.countdown-timer { color: #9a9aa2 !important; }
.countdown-timer.timer-danger { color: #ff6b6b !important; }
/* stop the always-on breathing / scanning effects */
#user-balance, #brand-slogan, .gold-breath-text { animation: none !important; text-shadow: none !important; }
#user-balance { color: var(--gold-color) !important; font-weight: 900; }
#radar-scan-line { display: none !important; }
/* quieter chrome */
#top-header { border-bottom-color: #1c1c20 !important; box-shadow: none !important; }
#balance-dashboard { border-bottom-color: #1c1c20 !important; background: none !important; }
#bottom-footer { border-top-color: #1f1f24; }
#timeline-content .voice-card.vo2-card { background: #121215 !important; border-color: #1f1f24 !important; box-shadow: none !important; }
#timeline-content .vo2-card .action-btn { color: #cfcfd4; }
.vo2-tile { border-color: #1f1f24; }
.vo2-tbody h4 { font-weight: 600; }
.vo2-tabs button { font-weight: 600; }
.vo2-tabs button.active { text-shadow: none; font-weight: 800; }
.vo2-stext p, .vo2-sinfo .cap { font-weight: 400; }
.vo2-stext h2 { text-shadow: 0 2px 16px rgba(0,0,0,0.35); font-weight: 900; }
/* index.html has a global h2 size rule; full-screen titles must stay big */
.vo2-stext h2 { font-size: 1.7rem !important; line-height: 1.3 !important; margin: 0 0 14px !important; }
@media (min-width: 768px) { .vo2-stext h2 { font-size: 2.2rem !important; } }
