.app-comment .voice-player, .social-comment .voice-player, .app-comment-form .voice-player, .social-comment-form .voice-player { width: min(100%, 300px); gap: 9px; padding: 6px 10px 6px 6px; border-radius: 18px; }
.app-comment .voice-play, .social-comment .voice-play, .app-comment-form .voice-play, .social-comment-form .voice-play { flex: 0 0 36px; width: 36px; height: 36px; }
.app-post-audio { padding: 4px 0 !important; background: transparent !important; }
.social-more-replies { margin: 10px 0; }
.social-more-replies > summary { width: fit-content; padding: 8px 12px; border-radius: 12px; color: var(--app-green, #9cddbf); background: #9cddbf0b; font-size: 12px; cursor: pointer; }
.social-more-replies > div { padding-top: 8px; }
.app-comment { margin-left: calc(min(var(--comment-depth, 0), 3) * 10px) !important; }
.social-comment { margin-left: calc(min(var(--comment-depth, 0), 3) * 8px) !important; }
.social-reply-target { display: flex; flex: 1 1 100%; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; box-sizing: border-box; border-left: 2px solid #9cddbf; border-radius: 8px; background: #9cddbf09; font-size: 11px; color: var(--app-muted, var(--social-muted, #aaa)); }
.social-reply-target button, .app-comment-form .social-reply-target button { flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.social-readable-text { display: block; }
.social-readable-text > .social-text-content { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.social-readable-text.is-expanded > .social-text-content { display: block; overflow: visible; }
.social-text-expand { display: block; margin-top: 6px; padding: 3px 0; border: 0; background: transparent; color: var(--app-green, #9cddbf); font: inherit; font-size: 12px; cursor: pointer; }
.social-comment-feedback { flex: 1 1 100%; width: 100%; margin: 4px 0; font-size: 11px; color: var(--app-muted, var(--social-muted, #aaa)); }
.social-comment-feedback[data-phase="success"] { color: #9cddbf; }
.social-comment-feedback[data-phase="error"] { color: #f4937c; }
.social-comment-feedback button { width: auto !important; padding: 5px 8px; margin-left: 8px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font-size: 11px; cursor: pointer; }
.social-new-posts { display: block; width: fit-content; max-width: 100%; margin: 12px auto; padding: 10px 16px; border: 1px solid #9cddbf44; border-radius: 24px; background: var(--app-surface, var(--social-surface, #202329)); color: #9cddbf; font: inherit; font-size: 12px; cursor: pointer; }
.social-new-posts[hidden] { display: none; }
.social-new-posts { position: fixed; top: calc(78px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 35; box-shadow: 0 6px 24px #0005; }
.app-post-actions, body[data-page="social"] .social-post-actions { gap: 6px; padding-top: 8px; }
.app-comment-form[hidden], .social-comment-form[hidden], .social-comment-form.is-hidden { display: none; }
.app-comment-tools > button, .social-comment-reply { padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--app-muted, var(--social-muted, #aaa)); font: inherit; font-size: 11px; cursor: pointer; }
.app-comment-tools > button:hover, .social-comment-reply:hover { color: #9cddbf; background: #9cddbf0b; }

/* Reserve space before loading; contain keeps portrait photos uncropped. */
.app-post-media > .app-media-open,
body[data-page="social"] .social-post-media:not(.social-post-gallery) > .social-media-open-button { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; background: #090a0c; }
.app-post-media > .app-post-video { width: 100%; aspect-ratio: 16 / 9; }
.app-post-media > .app-media-open > img,
.app-post-media > .app-post-video > video,
body[data-page="social"] .social-post-media:not(.social-post-gallery) > .social-media-open-button > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
body[data-page="social"] .social-post-media:not(.social-post-gallery) > video { aspect-ratio: 16 / 9; object-fit: contain; background: #090a0c; }
.app-post-gallery > :is(.app-media-open,.app-post-video) { aspect-ratio: 1; }
.app-post-gallery > :is(.app-media-open,.app-post-video) > :is(img,video) { height: 100%; object-fit: contain; }

/* Press feedback never changes the space occupied by a control. */
:is(.app-bottom-nav,.app-post-actions,.app-comment-tools,.hub-player-controls,.hub-mini-player,.social-post-actions,.social-comment-tools) button,
.voice-play { transition: scale 120ms ease-out, background-color 120ms ease-out; }
:is(.app-bottom-nav,.app-post-actions,.app-comment-tools,.hub-player-controls,.hub-mini-player,.social-post-actions,.social-comment-tools) button:not(:disabled):active,
.voice-play:not(:disabled):active { scale: .96; }
html.app-reduced-motion :is(button,.hub-artwork-flight) { scale: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  :is(.app-bottom-nav,.app-post-actions,.app-comment-tools,.hub-player-controls,.hub-mini-player,.social-post-actions,.social-comment-tools) button,
  .voice-play { scale: none !important; transition: none !important; }
}
