/* Feed (beta): full-screen vertical posts. Computers: a centred 9:16 card with the buttons beside it and comments
   in a side panel. Phones: edge-to-edge posts with the buttons over the picture and comments in a bottom sheet. */
.page.feed-page { padding: 0; overflow: hidden; display: flex; position: relative; background: #000; color: #fff; }
.feed-shell { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
.feed-top { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; position: relative; z-index: 4; }
.feed-tabs { display: flex; gap: 22px; }
.feed-tabs button { position: relative; padding: 6px 0; background: none; border: 0; color: #ffffffa0; font: 700 16px var(--font-display, inherit); cursor: pointer; transition: color .15s; }
.feed-tabs button:hover { color: #fff; }
.feed-tabs button.on { color: #fff; }
.feed-tabs button.on::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 22px; height: 3px; border-radius: 3px; background: #fff; transform: translateX(-50%); }
.feed-top-actions { position: absolute; right: 16px; display: flex; gap: 8px; align-items: center; }
.feed-post-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--gold, #f5c518); color: #111; font: 700 14px inherit; cursor: pointer; }
.feed-round { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #ffffff1f; color: #fff; cursor: pointer; transition: background .15s, transform .1s; }
.feed-round:hover { background: #ffffff33; }
.feed-round:active { transform: scale(.94); }
.feed-note { margin: 0; padding: 6px 16px; font-size: 12.5px; color: #ffffffb0; text-align: center; background: #ffffff0d; }

.feed-body { flex: 1; min-height: 0; position: relative; display: flex; }
.feed-scroll { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; outline: none; scrollbar-width: none; }
.feed-scroll::-webkit-scrollbar { display: none; }
.feed-nav { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; z-index: 3; }
.feed-nav .feed-round { width: 44px; height: 44px; }

.feed-item { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 14px 0; box-sizing: border-box; }
.feed-stage { height: 100%; display: flex; align-items: flex-end; gap: 16px; max-width: 100%; }
.feed-card { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 120px); border-radius: 16px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px #ffffff14; isolation: isolate; }
/* the picture is always shown whole; a blurred copy fills the rest of the frame */
.feed-blur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(32px) brightness(.55) saturate(1.2); z-index: 0; pointer-events: auto; }
.feed-media { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; cursor: pointer; }
.feed-media video, .feed-media img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.feed-sound { position: absolute; top: 12px; left: 12px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #0007; color: #fff; cursor: pointer; }
.feed-paused { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .15s; }
.feed-paused svg { width: 72px; height: 72px; color: #ffffffd0; filter: drop-shadow(0 2px 10px #0008); }
.feed-item.paused .feed-paused { opacity: 1; }
.feed-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 70px 16px 18px; display: grid; gap: 4px; background: linear-gradient(transparent, #000000c0); pointer-events: none; text-shadow: 0 1px 2px #0008; }
.feed-info > * { pointer-events: auto; }
.feed-by { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; cursor: pointer; justify-self: start; }
.feed-by b { font-size: 16px; }
.feed-by small, .feed-sub { color: #ffffffb8; font-size: 13px; }
.feed-sub { display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.feed-sub svg { width: 12px; height: 12px; }
.feed-caption { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; max-height: 4.2em; overflow: auto; overflow-wrap: anywhere; scrollbar-width: none; }
.feed-caption a { color: #fff; font-weight: 600; }
.feed-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #ffffff2e; color: #fff; justify-self: start; text-shadow: none; }
.feed-chip.warn { background: #a16207; }
.feed-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 14px; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; }
.feed-progress::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff33; transition: height .12s; }
.feed-progress i { position: relative; height: 3px; width: calc(var(--p, 0) * 100%); background: #fff; transition: height .12s; }
.feed-progress:hover::before, .feed-progress:hover i, .feed-progress.seeking::before, .feed-progress.seeking i { height: 6px; }

.feed-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 6px; z-index: 2; }
.feed-act { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #fff; font: 700 12.5px inherit; cursor: pointer; }
.feed-act-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #ffffff1f; transition: background .15s, transform .12s; }
.feed-act-ic svg { width: 24px; height: 24px; }
.feed-act:hover .feed-act-ic { background: #ffffff33; }
.feed-act:active .feed-act-ic { transform: scale(.9); }
.feed-act:disabled { opacity: .45; cursor: default; }
.feed-act[data-feed-react="1"].on { color: #fe2c55; }
.feed-act[data-feed-react="1"].on .feed-act-n { color: #fff; }
.feed-act[data-feed-react="-1"].on .feed-act-ic { background: #ffffff; color: #111; }
.feed-act.pop .feed-act-ic { animation: feed-pop .4s cubic-bezier(.2, .8, .2, 1.4); }
.feed-avatar { margin-bottom: 4px; }
.feed-face { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #f5c518, #fb923c); color: #111; font-weight: 800; }
.feed-face img, .feed-face .server-icon, .feed-face > :not(b) { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.feed-face b { line-height: 1; }
.feed-face.sm { width: 32px; height: 32px; font-size: 13px; }
.feed-avatar .feed-face { width: 48px; height: 48px; box-shadow: 0 0 0 2px #fff; }
.feed-burst { position: absolute; z-index: 4; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #fe2c55; pointer-events: none; animation: feed-burst .85s ease-out forwards; filter: drop-shadow(0 4px 14px #0007); }
.feed-burst svg { width: 100%; height: 100%; }
.feed-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 20px; color: #fff; }
.feed-empty h3 { margin: 8px 0 0; } .feed-empty p { margin: 0; color: #ffffffa0; }

/* comments */
.feed-sheet-back { display: none; }
.feed-sheet { position: absolute; z-index: 10; top: 0; right: 0; bottom: 0; width: min(400px, 40vw); display: flex; flex-direction: column; background: #121212; border-left: 1px solid #ffffff14; transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); color: #fff; }
.feed-sheet.open { transform: none; }
.feed-page.comments-open .feed-nav { right: calc(min(400px, 40vw) + 22px); }
.feed-page.comments-open .feed-body, .feed-page.comments-open .feed-top { padding-right: min(400px, 40vw); }
.feed-page.comments-open .feed-top-actions { right: calc(min(400px, 40vw) + 16px); }
.feed-sheet-grip { display: none; }
.feed-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.feed-sheet h3 { margin: 0; font-size: 16px; }
.feed-sheet-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 16px; display: grid; align-content: start; gap: 18px; overscroll-behavior: contain; }
.feed-comment { display: flex; gap: 12px; align-items: flex-start; }
.feed-comment > .feed-face { width: 36px; height: 36px; font-size: 14px; }
.feed-comment-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.feed-comment-body b { font-size: 13px; color: #ffffffa8; font-weight: 600; cursor: pointer; justify-self: start; }
.feed-comment-body p { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.feed-comment-body small { color: #ffffff70; font-size: 12.5px; }
.feed-comment-body small button { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.feed-comment-body small button:hover { color: #fff; }
.feed-sheet-empty { display: grid; justify-items: center; gap: 4px; padding: 40px 0; color: #ffffff80; text-align: center; }
.feed-sheet-empty svg { width: 36px; height: 36px; margin-bottom: 4px; }
.feed-sheet-empty b { color: #fff; }
.feed-sheet-form { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #ffffff14; }
.feed-pill { flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 99px; background: #ffffff14; }
.feed-pill:focus-within { box-shadow: 0 0 0 1px #ffffff40; }
.feed-pill input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 15px inherit; padding: 8px 0; outline: none; }
.feed-pill input::placeholder { color: #ffffff70; }
.feed-pill button { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fe2c55; color: #fff; cursor: pointer; transition: opacity .15s; }
.feed-pill button:disabled { opacity: .3; cursor: default; }
.feed-sheet-note { margin: 0; padding: 12px 16px 16px; color: #ffffff80; font-size: 13px; text-align: center; border-top: 1px solid #ffffff14; }

@keyframes feed-burst { 0% { transform: rotate(var(--tilt)) scale(.3); opacity: 0; } 15% { transform: rotate(var(--tilt)) scale(1.2); opacity: 1; } 30% { transform: rotate(var(--tilt)) scale(.95); } 70% { opacity: 1; transform: rotate(var(--tilt)) scale(1) translateY(-10px); } 100% { opacity: 0; transform: rotate(var(--tilt)) scale(1.4) translateY(-70px); } }
@keyframes feed-pop { 40% { transform: scale(1.25); } }

/* phones (and narrow windows): posts edge to edge, buttons on top, comments as a bottom sheet */
@media (max-width: 760px) {
  .feed-top { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(#000000a0, transparent); padding: 10px 12px 18px; }
  .feed-top { justify-content: space-between; }
  .feed-top-actions { position: static; gap: 6px; }
  .feed-top-actions .feed-round, .feed-post-btn { width: 34px; height: 34px; }
  .feed-post-btn span { display: none; }
  .feed-post-btn { width: 36px; padding: 0; justify-content: center; }
  .feed-tabs { gap: 14px; min-width: 0; }
  .feed-tabs button { font-size: 15px; }
  .feed-note { position: absolute; top: 58px; left: 0; right: 0; z-index: 4; background: #0008; }
  .feed-nav { display: none; }
  .feed-item { padding: 0; }
  .feed-stage { width: 100%; position: relative; gap: 0; }
  .feed-card { width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .feed-rail { position: absolute; right: 8px; bottom: 84px; gap: 16px; }
  .feed-act-ic { background: none; width: 44px; height: 40px; }
  .feed-act-ic svg { width: 32px; height: 32px; filter: drop-shadow(0 1px 3px #0009); }
  .feed-act { text-shadow: 0 1px 2px #0009; }
  .feed-act[data-feed-react="-1"].on .feed-act-ic { background: none; color: var(--gold, #f5c518); }
  .feed-info { right: 64px; padding-bottom: 20px; }
  .feed-sound { top: 64px; }
  .feed-page.comments-open .feed-body, .feed-page.comments-open .feed-top { padding-right: 12px; }
  .feed-sheet-back { display: block; position: absolute; inset: 0; z-index: 9; background: #0006; }
  .feed-sheet { top: auto; left: 0; width: auto; height: 72%; border-left: 0; border-radius: 16px 16px 0 0; transform: translateY(100%); box-shadow: 0 -10px 40px #0008; }
  .feed-sheet.open { transform: none; }
  .feed-sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: #ffffff40; margin: 8px auto 0; padding: 8px 40px; background-clip: content-box; touch-action: none; cursor: grab; box-sizing: content-box; }
  .feed-sheet header { justify-content: center; position: relative; padding-top: 4px; }
  .feed-sheet header .feed-round { position: absolute; right: 12px; top: 0; background: none; }
}

:root[data-theme="light"] .page.feed-page { background: #000; color: #fff; }
.reduce-motion .feed-burst, .reduce-motion .feed-act.pop .feed-act-ic { animation: none; }
.reduce-motion .feed-sheet { transition: none; }
@media (prefers-reduced-motion: reduce) { .feed-burst, .feed-act.pop .feed-act-ic { animation: none; } .feed-sheet { transition: none; } }

/* who posted: Vexel staff and verified creators */
.feed-chip.role-staff, .feed-chip.role-creator { display: inline-flex; align-items: center; gap: 3px; }
.feed-chip.role-staff { background: #f5c518; color: #111; }
.feed-chip.role-creator { background: #20d5ec; color: #04272c; }
.feed-chip svg { width: 11px; height: 11px; }

/* ---------- feed sounds ---------- */
.feed-sound-line { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 6px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; cursor: pointer; text-shadow: 0 1px 2px #0008; }
.feed-sound-line > span { overflow: hidden; white-space: nowrap; max-width: min(260px, 60vw); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.feed-sound-line > span > span { display: inline-block; }
.feed-item.current .feed-sound-line > span > span { animation: feedMarquee 9s linear infinite; padding-right: 40px; }
@keyframes feedMarquee { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(-60%); } }
.feed-disc { width: 44px; height: 44px; margin-top: 6px; border-radius: 50%; border: 9px solid #1b1d24; background: #2a2d36; color: #fff; display: grid; place-items: center; padding: 0; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px #fff2; }
.feed-disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.feed-item.current .feed-disc { animation: feedSpin 5s linear infinite; }
@keyframes feedSpin { to { transform: rotate(360deg); } }
.feed-sound-sheet { display: grid; justify-items: center; gap: 12px; text-align: center; }
.feed-sound-sheet > img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; }
.feed-sound-sheet small { display: block; color: var(--muted); }
.feed-sound-sheet .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .feed-item.current .feed-disc, .feed-item.current .feed-sound-line > span > span { animation: none; } }

/* ---------- Vexel Studio ---------- */
.studio { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, #1a1608 0%, #07080b 55%); color: #fff; animation: fade .15s ease-out; }
.studio-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); text-align: center; }
.studio-top b { font-family: var(--font-display); font-size: 17px; letter-spacing: .2px; }
.studio-top [data-back] svg { transform: rotate(180deg); }
.studio-round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ffffff1a; color: #fff; cursor: pointer; transition: background .15s, transform .12s; }
.studio-round:hover { background: #ffffff2e; }
.studio-round:active { transform: scale(.94); }
.studio-round.on { background: var(--gold); color: #111; }
.studio-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.studio-stage { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.studio-frame { position: relative; flex: 1; min-height: 0; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px #0009, 0 0 0 1px #ffffff14; display: grid; }
.studio-frame > * { grid-area: 1 / 1; }
.studio-live, .studio-media { width: 100%; height: 100%; object-fit: cover; }
.studio-media { object-fit: contain; position: relative; z-index: 1; }
.studio-blur { width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.6); transform: scale(1.15); }
.studio-live.mirror { transform: scaleX(-1); }
.studio-drop { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; cursor: pointer; border: 2px dashed #ffffff30; border-radius: 18px; margin: 10px; transition: border-color .15s, background .15s; }
.studio-drop:hover, .studio-drop.over { border-color: var(--gold); background: #f5c5180d; }
.studio-drop svg { width: 40px; height: 40px; color: var(--gold); }
.studio-drop span { color: #ffffffa0; font-size: 13px; max-width: 260px; }
.studio-drop.small { margin: 0 0 12px; padding: 18px; border-color: var(--line); }
.studio-drop.small span { color: var(--muted); }
.studio-check { display: flex; gap: 6px; align-items: center; font-size: 13px; color: #ffffffc0; cursor: pointer; }
.studio-side { position: absolute; top: 12px; right: 12px; display: grid; gap: 10px; z-index: 2; }
.studio-side .studio-round { background: #0006; backdrop-filter: blur(6px); }
.studio-rec-time { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: #000a; font-variant-numeric: tabular-nums; font-weight: 600; }
.studio-rec-time[hidden], .studio-progress[hidden] { display: none; }
.studio-rec-time i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; animation: studioBlink 1s steps(2) infinite; }
@keyframes studioBlink { 50% { opacity: .2; } }
.studio-progress { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 4px; background: #ffffff30; }
.studio-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--gold), #ff3b5c); transition: width .2s linear; }
.studio-fx { display: flex; gap: 8px; max-width: min(100%, 560px); overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.studio-fx[hidden] { display: none; }
.studio-fx::-webkit-scrollbar { display: none; }
.studio-fx-chip { flex: none; display: grid; justify-items: center; gap: 2px; width: 62px; padding: 6px 2px; border-radius: 12px; border: 1px solid #ffffff1f; background: #ffffff0f; color: #fff; cursor: pointer; transition: border-color .15s, transform .12s; }
.studio-fx-chip span { font-size: 22px; line-height: 1.1; }
.studio-fx-chip small { font-size: 10px; color: #ffffffb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.studio-fx-chip:hover { transform: translateY(-2px); }
.studio-fx-chip.on { border-color: var(--gold); background: #f5c5181f; box-shadow: inset 0 0 0 1px var(--gold); }
.studio-fx-chip.loading { opacity: .55; }
.studio-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: min(100%, 460px); }
.studio-lengths { display: flex; gap: 2px; justify-self: start; padding: 3px; border-radius: 99px; background: #ffffff14; }
.studio-lengths button { border: 0; background: none; color: #ffffffa8; padding: 5px 9px; border-radius: 99px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.studio-lengths button.on { background: #fff; color: #111; }
.studio-rec { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #ffffffd0; background: none; padding: 5px; cursor: pointer; display: grid; transition: transform .12s; }
.studio-rec i { border-radius: 50%; background: #ff3b5c; transition: border-radius .2s, transform .2s; }
.studio-rec:hover { transform: scale(1.05); }
.studio-rec:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.studio.recording .studio-rec i { border-radius: 8px; transform: scale(.55); }
.studio.recording .studio-lengths, .studio.recording .studio-modes, .studio.recording .studio-side, .studio.recording .studio-fx, .studio.recording .studio-sound-btn { opacity: .35; pointer-events: none; }
.studio-sound-btn { justify-self: end; display: inline-flex; align-items: center; gap: 6px; max-width: 150px; border: 0; padding: 7px 12px; border-radius: 99px; background: #ffffff1a; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.studio-sound-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-modes { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: #ffffff12; }
.studio-modes button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #ffffffa0; padding: 8px 16px; border-radius: 99px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.studio-modes button.on { background: var(--gold); color: #111; }
.studio > .studio-error { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 3; margin: 0; max-width: 90vw; text-align: center; color: #fff; font-size: 13px; }
.studio-error:not(:empty) { background: #b4233ce0; color: #fff; padding: 8px 14px; border-radius: 10px; }
.studio-panel .studio-error { margin: 0; font-size: 13px; }
/* edit step: preview on the left, settings on the right (stacked on phones) */
.studio-body.edit { flex-direction: row; align-items: stretch; justify-content: center; gap: 22px; }
.studio-body.edit .studio-stage { flex: 0 1 auto; width: auto; }
.studio-play { position: relative; z-index: 2; align-self: end; justify-self: start; margin: 12px; background: #0008; }
.studio-panel { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 2px 4px 2px 0; }
.studio-sec { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #ffffff0d; border: 1px solid #ffffff14; }
.studio-sec h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #ffffff90; }
.studio-sec label { display: grid; gap: 6px; font-size: 13px; color: #ffffffd0; }
.studio-sec label[hidden] { display: none; }
.studio-sec .input, .studio-sec .select { background: #0006; border-color: #ffffff1f; color: #fff; }
.studio-count { justify-self: end; margin-top: -6px; color: #ffffff70; font-size: 11px; }
.studio-sound, .sound-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; }
.studio-sound img, .sound-row img, .studio-disc { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.studio-disc { display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #ff3b5c); color: #111; }
.studio-disc.big { width: 120px; height: 120px; border-radius: 14px; }
.studio-disc.big svg { width: 44px; height: 44px; }
.studio-sound b, .sound-row b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-sound small { color: #ffffff90; }
.sound-row small { color: var(--muted); }
.studio-sound > div, .sound-row > div { min-width: 0; }
.studio-add-sound { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px dashed #ffffff40; background: none; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.studio-add-sound:hover { border-color: var(--gold); }
.studio-add-sound > svg { color: var(--gold); flex: none; }
.studio-add-sound small { display: block; color: #ffffff90; font-size: 12px; }
.studio-sec .studio-range { grid-template-columns: 1fr auto; }
.studio-range b { justify-self: end; font-variant-numeric: tabular-nums; }
.studio-range input { grid-column: 1 / -1; accent-color: var(--gold); }
.studio-link { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; }
.studio-link span { width: 100%; color: #ffffff90; }
.studio-sec .studio-link label { display: flex; gap: 5px; align-items: center; cursor: pointer; }
.studio-audience { margin: 0; color: #ffffff90; }
.studio-post { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 10px 0 2px; background: linear-gradient(transparent, #07080b 30%); }
.studio-post .btn.primary { min-width: 120px; justify-content: center; }
.studio-upload { flex: 1 1 100%; display: grid; gap: 4px; font-size: 12px; color: #ffffffb0; }
.studio-upload[hidden] { display: none; }
.studio-upload i { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) calc(var(--p, 0) * 100%), #ffffff20 0); }
/* the sound picker (a normal modal over the studio) */
.sound-picker { display: grid; gap: 12px; min-height: 340px; align-content: start; }
.sound-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sound-list { display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; }
.sound-row { padding: 6px; border-radius: 10px; }
.sound-row:hover { background: var(--bg-hover); }
.sound-upload { display: grid; gap: 10px; }
.sound-upload label { display: grid; gap: 6px; font-size: 13px; }
@media (max-width: 760px) {
  .studio-body.edit { flex-direction: column; overflow-y: auto; align-items: center; justify-content: flex-start; }
  .studio-body.edit .studio-stage { flex: none; height: 46vh; }
  .studio-panel { overflow: visible; }
  .studio-frame { border-radius: 14px; }
  .studio-controls { gap: 8px; }
  .studio-rec { width: 64px; height: 64px; }
  .studio-modes button { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .studio-rec-time i { animation: none; } }

/* ---------- filter strip extras ---------- */
.studio-fx-chip { position: relative; }
.studio-fx-chip.make { border-style: dashed; border-color: #ffffff40; background: transparent; }
.studio-fx-chip.make span { font-size: 20px; color: var(--gold); }
.studio-fx-chip.custom { background: linear-gradient(160deg, #f5c5181a, #ffffff08); }
.studio-fx-edit { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #1b1d24; border: 1px solid #ffffff30; cursor: pointer; }
.studio-fx-edit:hover { background: var(--gold); }
.studio-fx { padding-top: 8px; }
.fx-sub { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feed-mod .feed-act-ic { background: color-mix(in srgb, var(--red) 55%, #0006); }

/* ---------- filter maker ---------- */
.modal.fm-modal { width: min(980px, 96vw); max-width: none; }
.fm { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 18px; align-items: start; }
.fm-preview { position: sticky; top: 0; aspect-ratio: 9 / 16; max-height: 62vh; border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.fm-preview video { width: 100%; height: 100%; object-fit: cover; }
.fm-preview video.mirror { transform: scaleX(-1); }
.fm-preview span { position: absolute; padding: 16px; text-align: center; color: #fff9; font-size: 13px; }
.fm-side { min-width: 0; display: grid; gap: 12px; }
.fm-tabs { flex-wrap: wrap; }
.fm-pane { display: grid; gap: 12px; max-height: 52vh; overflow-y: auto; padding: 2px 4px 2px 0; }
.fm-pane label { display: grid; gap: 6px; font-size: 13px; }
.fm-range { grid-template-columns: 1fr auto; }
.fm-range b { justify-self: end; font-variant-numeric: tabular-nums; color: var(--text-2); }
.fm-range input { grid-column: 1 / -1; accent-color: var(--gold); }
.fm-row { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.fm-row > label { flex: 1 1 120px; }
.fm-color input { width: 56px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); cursor: pointer; }
.fm-looks { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-look { border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fm-look:hover { border-color: var(--gold); }
.fm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.fm-card { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fm-card span { font-size: 22px; }
.fm-card.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-soft); }
.fm-upload { display: flex !important; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; cursor: pointer; }
.fm-upload img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.fm-label { margin: 4px 0 0; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fm-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-palette button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 20px; cursor: pointer; transition: transform .1s; }
.fm-palette button:hover { transform: scale(1.1); border-color: var(--gold); }
.fm-palette button.on { border-color: var(--gold); background: var(--gold-soft); }
.fm-stickers { display: grid; gap: 8px; }
.fm-sticker { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.fm-sticker .fm-mini { grid-column: span 1; font-size: 11px; color: var(--muted); }
.fm-sticker .fm-mini input { accent-color: var(--gold); width: 100%; }
.fm-sticker .icon-btn { grid-row: 1; grid-column: 3; }
.fm-emoji { text-align: center; font-size: 20px; padding: 4px; }
.fm-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fm-foot .fm-icon { width: 54px; text-align: center; font-size: 18px; flex: none; }
.fm-foot input[name=name] { flex: 1 1 160px; }
.fm-share { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.fm-foot .form-error { flex-basis: 100%; margin: 0; }
@media (max-width: 720px) {
  .fm { grid-template-columns: 1fr; }
  .fm-preview { position: relative; max-height: 34vh; width: auto; height: 34vh; justify-self: center; }
  .fm-pane { max-height: none; overflow: visible; }
}

/* ---------- community filters ---------- */
.fb { display: grid; gap: 12px; }
.fb-grid { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.fb-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.fb-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--gold-soft), transparent); }
.fb-card b { display: block; } .fb-card small { color: var(--muted); }
.fb-tags { display: flex; gap: 4px; margin-top: 4px; } .fb-tags i { font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--bg-4); color: var(--text-2); }
.fb-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
@media (max-width: 520px) { .fb-card { grid-template-columns: 40px 1fr; } .fb-actions { grid-column: 1 / -1; justify-content: start; } }
