:root {
  --dy-red: #fe2c55;
  --dy-cyan: #25f4ee;
  --dy-black: #0b0b0f;
  --dy-ink: #161823;
  --dy-gray: #86878b;
  --dy-line: #ececef;
  --dy-panel: #f5f5f7;
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dy-ink);
  background: #08080a;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overscroll-behavior: none; }
body { min-height: 100dvh; background: radial-gradient(circle at 50% 10%, #24242a, #08080a 54%); overflow: hidden; }
button, input, textarea { font: inherit; }
button { border: 0; margin: 0; padding: 0; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--dy-red); outline-offset: 2px; }
button:active { transform: scale(.96); }
img { display: block; max-width: 100%; }
svg.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.sr-only, .sr-only * { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.desktop-stage { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.phone-shell {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  height: min(844px, calc(100dvh - 36px));
  overflow: hidden;
  border-radius: 34px;
  background: var(--dy-black);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255,255,255,.11), inset 0 0 0 1px rgba(255,255,255,.04);
  isolation: isolate;
}
.phone-shell::before {
  content: "";
  position: absolute;
  z-index: 200;
  top: 8px;
  left: 50%;
  width: 88px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0,0,0,.92);
  transform: translateX(-50%);
  opacity: .74;
  pointer-events: none;
}
.phone-shell.light-theme::before { background: #161823; opacity: .96; }
.page { position: absolute; inset: 0; overflow: hidden; }
.light-page { background: #f6f6f8; color: var(--dy-ink); }

/* Boot / error */
.boot-screen, .error-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: white; }
.boot-logo { position: relative; width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(145deg, #18181d, #050506); box-shadow: -6px 4px 0 rgba(37,244,238,.7), 6px -4px 0 rgba(254,44,85,.76); }
.boot-logo svg { width: 38px; height: 38px; }
.boot-logo span { position: absolute; inset: -14px; border: 1px solid rgba(255,255,255,.08); border-radius: 30px; animation: boot-ring 1.8s linear infinite; }
.boot-screen strong { font-size: 22px; letter-spacing: .02em; }
.boot-screen p { margin: 9px 0 24px; color: rgba(255,255,255,.56); font-size: 13px; }
.boot-progress { width: 164px; height: 3px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); }
.boot-progress i { display: block; height: 100%; width: 48%; border-radius: inherit; background: linear-gradient(90deg, var(--dy-cyan), white, var(--dy-red)); animation: boot-progress 1.1s ease-in-out infinite; }
.error-state { color: var(--dy-ink); background: white; }
.error-state strong { font-size: 22px; }
.error-state p { color: var(--dy-gray); line-height: 1.6; }
.error-state button { margin-top: 12px; padding: 11px 24px; border-radius: 8px; color: white; background: var(--dy-red); }
@keyframes boot-ring { to { transform: rotate(360deg); } }
@keyframes boot-progress { from { transform: translateX(-120%); } to { transform: translateX(320%); } }

/* Bottom navigation */
.bottom-nav {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(68px + var(--safe-bottom));
  padding: 7px 38px var(--safe-bottom);
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: start;
}
.bottom-nav.dark { color: rgba(255,255,255,.7); background: linear-gradient(180deg, transparent, rgba(0,0,0,.78) 25%, rgba(0,0,0,.96)); }
.bottom-nav.light { color: #87888d; background: rgba(255,255,255,.96); border-top: 1px solid rgba(22,24,35,.07); box-shadow: 0 -8px 28px rgba(25,25,35,.05); backdrop-filter: blur(18px); }
.nav-item { position: relative; min-width: 58px; height: 54px; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; transition: transform .13s ease, color .18s ease; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { color: white; }
.bottom-nav.light .nav-item.active { color: var(--dy-ink); }
.nav-icon-wrap { position: relative; display: grid; place-items: center; }
.nav-badge { position: absolute; top: -7px; right: -14px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid #111; color: white; background: var(--dy-red); font-size: 9px; line-height: 1; }
.bottom-nav.light .nav-badge { border-color: white; }
.nav-create { height: 52px; display: grid; place-items: center; transition: transform .13s ease; }
.nav-create-shape { position: relative; width: 50px; height: 33px; display: grid; place-items: center; border-radius: 9px; color: #101015; background: white; box-shadow: -5px 0 0 var(--dy-cyan), 5px 0 0 var(--dy-red); }
.nav-create-shape svg { width: 22px; }
.bottom-nav.light .nav-create-shape { color: white; background: var(--dy-ink); }
.nav-create.active .nav-create-shape { transform: translateY(-2px); box-shadow: -5px 0 0 var(--dy-cyan), 5px 0 0 var(--dy-red), 0 7px 14px rgba(22,24,35,.18); }

/* Feed */
.feed-page { color: white; background: #08080a; }
.feed-topbar {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: calc(58px + var(--safe-top));
  padding: calc(20px + var(--safe-top)) 15px 0;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.42), transparent);
  pointer-events: none;
}
.feed-topbar > * { pointer-events: auto; }
.feed-tabs { display: flex; justify-content: center; gap: 22px; }
.feed-tabs button { position: relative; padding: 5px 1px 10px; color: rgba(255,255,255,.62); font-size: 16px; font-weight: 700; text-shadow: 0 1px 5px rgba(0,0,0,.35); }
.feed-tabs button.active { color: white; }
.feed-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 24px; height: 3px; border-radius: 999px; background: white; transform: translateX(-50%); }
.top-icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; filter: drop-shadow(0 2px 5px rgba(0,0,0,.4)); }
.top-icon-button svg { width: 24px; }
.top-avatar-mini { justify-self: end; width: 31px; height: 31px; color: var(--dy-ink); background: rgba(255,255,255,.9); }
.top-avatar-mini svg { width: 18px; }
.feed-stage { position: absolute; inset: 0; overflow: hidden; }
.feed-track { height: 100%; transform: translateY(calc(var(--feed-index) * -100%)); transition: transform .3s var(--ease-sheet); will-change: transform; }
.feed-slide { position: relative; height: 100%; overflow: hidden; background: #111; }
.feed-media-zone { position: absolute; inset: 0; overflow: hidden; touch-action: pan-x; user-select: none; }
.feed-gallery { width: 100%; height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.feed-gallery::-webkit-scrollbar { display: none; }
.feed-image-frame { flex: 0 0 100%; width: 100%; height: 100%; margin: 0; scroll-snap-align: start; background: #0d0d10; }
.feed-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 22%, transparent 48%, rgba(0,0,0,.22) 64%, rgba(0,0,0,.82) 100%), linear-gradient(90deg, transparent 56%, rgba(0,0,0,.14)); }
.gallery-dots { position: absolute; z-index: 5; left: 50%; bottom: 166px; display: flex; gap: 5px; transform: translateX(-50%); }
.gallery-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .18s ease, background .18s ease; }
.gallery-dots i.active { width: 14px; border-radius: 999px; background: white; }
.action-bar { position: absolute; z-index: 10; right: 10px; bottom: 88px; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.avatar-action { position: relative; width: 48px; height: 52px; display: grid; place-items: start center; }
.avatar-action img { width: 45px; height: 45px; object-fit: cover; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 9px rgba(0,0,0,.35); }
.avatar-action b { position: absolute; left: 50%; bottom: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--dy-red); font-size: 16px; font-weight: 500; transform: translateX(-50%); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.action-button { width: 50px; min-height: 49px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: white; filter: drop-shadow(0 2px 4px rgba(0,0,0,.42)); }
.action-button svg { width: 31px; height: 31px; fill: rgba(255,255,255,.08); stroke-width: 1.8; }
.action-button span { font-size: 10px; font-weight: 600; }
.action-button.is-active svg { color: var(--dy-red); fill: var(--dy-red); }
.record-button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #3b3b40 0 18%, #121215 19% 38%, #29292e 39% 42%, #111 43%); box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.record-button > span { width: 29px; height: 29px; overflow: hidden; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.record-button img { width: 100%; height: 100%; object-fit: cover; }
.record-button.is-playing { animation: spin 4.2s linear infinite; }
.feed-copy { position: absolute; z-index: 9; left: 14px; right: 72px; bottom: calc(75px + var(--safe-bottom)); text-shadow: 0 1px 5px rgba(0,0,0,.48); }
.feed-copy h2 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.feed-copy p { max-height: 44px; margin: 0 0 9px; overflow: hidden; color: rgba(255,255,255,.95); font-size: 14px; line-height: 1.5; }
.music-marquee { width: 100%; height: 27px; display: flex; align-items: center; gap: 6px; color: white; overflow: hidden; text-align: left; }
.music-marquee svg { width: 18px; height: 18px; }
.music-marquee > span { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, black 85%, transparent); }
.music-marquee i { display: inline-block; font-style: normal; font-size: 12px; animation: marquee 8s linear infinite; }
.music-marquee.is-playing svg { color: var(--dy-cyan); }
.similar-button { height: 36px; margin-top: 8px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: white; background: rgba(0,0,0,.24); backdrop-filter: blur(12px); font-size: 12px; font-weight: 700; }
.similar-button > svg { width: 17px; color: var(--dy-cyan); }
.similar-button span { display: grid; place-items: center; margin-left: 2px; }
.similar-button span svg { width: 14px; }
.double-tap-hint { position: absolute; left: 50%; bottom: 83px; padding: 6px 9px; border-radius: 999px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.22); backdrop-filter: blur(8px); font-size: 9px; transform: translateX(-50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.feed-slide.is-active .double-tap-hint { animation: hint-in 2.8s ease 1.2s both; }
.feed-progress-rail { position: absolute; z-index: 12; right: 2px; top: 48%; display: flex; flex-direction: column; gap: 3px; transform: translateY(-50%); opacity: .45; }
.feed-progress-rail i { width: 2px; height: 11px; border-radius: 999px; background: rgba(255,255,255,.45); }
.feed-progress-rail i.active { height: 23px; background: white; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { 0%, 16% { transform: translateX(0); } 75%, 100% { transform: translateX(-38%); } }
@keyframes hint-in { 0%, 100% { opacity: 0; transform: translate(-50%, 5px); } 15%, 70% { opacity: 1; transform: translate(-50%, 0); } }

/* Guide */
.guide-mask { position: absolute; z-index: 180; inset: 0; overflow: hidden; color: white; background: rgba(3,3,5,.78); backdrop-filter: blur(7px); }
.guide-mask::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 48% 43%, transparent 0 72px, rgba(0,0,0,.08) 74px); }
.guide-top { position: absolute; top: 112px; left: 30px; right: 30px; }
.guide-top > span { display: inline-block; padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: var(--dy-cyan); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.guide-top strong { display: block; margin-top: 14px; font-size: 28px; line-height: 1.22; letter-spacing: -.04em; }
.guide-top p { margin: 12px 0 0; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.65; }
.gesture-demo { position: absolute; left: 50%; top: 46%; width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transform: translate(-50%,-50%); }
.gesture-demo > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--dy-red), #ff6684); box-shadow: 0 14px 35px rgba(254,44,85,.35); animation: double-tap 1.5s ease infinite; }
.gesture-demo svg { width: 30px; }
.gesture-demo i { position: absolute; inset: -14px; border: 1px solid rgba(37,244,238,.4); border-radius: 50%; animation: pulse-ring 1.5s ease infinite; }
.gesture-demo b { position: absolute; bottom: -29px; font-size: 12px; }
.guide-arrow { position: absolute; bottom: 120px; left: 50%; display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,.75); transform: translateX(-50%); font-size: 11px; }
.guide-arrow svg { animation: arrow-up 1.1s ease infinite; }
.guide-mask > button { position: absolute; bottom: 50px; left: 32px; right: 32px; height: 46px; border-radius: 8px; color: var(--dy-ink); background: white; font-weight: 800; }
@keyframes double-tap { 0%, 100% { transform: scale(1); } 18% { transform: scale(.88); } 34% { transform: scale(1); } 50% { transform: scale(.88); } 68% { transform: scale(1); } }
@keyframes pulse-ring { 0% { transform: scale(.65); opacity: 0; } 50% { opacity: .8; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes arrow-up { 0%,100% { transform: translateY(5px); opacity: .45; } 50% { transform: translateY(-5px); opacity: 1; } }

/* Light page common */
.light-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: calc(58px + var(--safe-top)); padding: calc(18px + var(--safe-top)) 14px 0; display: grid; grid-template-columns: 62px 1fr 72px; align-items: center; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(22,24,35,.06); backdrop-filter: blur(18px); }
.light-header h1 { margin: 0; text-align: center; font-size: 17px; }
.header-back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.header-back svg { width: 23px; }
.header-help { justify-self: end; color: #4f5057; font-size: 12px; }
.light-scroll { position: absolute; inset: calc(58px + var(--safe-top)) 0 calc(68px + var(--safe-bottom)); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.light-scroll::-webkit-scrollbar { display: none; }
.eyebrow { color: var(--dy-red); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel { background: white; border-radius: 14px; box-shadow: 0 1px 0 rgba(22,24,35,.04), 0 10px 30px rgba(22,24,35,.035); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-title h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.section-title > small { color: var(--dy-gray); font-size: 11px; }
.section-title.compact h3 { font-size: 16px; }

/* Create */
.create-scroll { padding: 0 14px 34px; scroll-behavior: smooth; }
.create-hero { padding: 30px 4px 22px; }
.create-hero h2 { margin: 9px 0 11px; font-size: 27px; line-height: 1.22; letter-spacing: -.045em; }
.create-hero p { margin: 0; color: #777880; font-size: 13px; line-height: 1.65; }
.upload-panel { padding: 15px; }
.panel-heading { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.panel-heading > div { display: flex; align-items: center; gap: 8px; }
.panel-heading h3 { margin: 0; font-size: 15px; }
.panel-heading span { min-width: 34px; padding: 3px 7px; border-radius: 999px; color: var(--dy-red); background: rgba(254,44,85,.08); text-align: center; font-size: 10px; font-weight: 700; }
.panel-heading small { color: #9a9ba1; font-size: 10px; }
.upload-dropzone { width: 100%; min-height: 138px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1.5px dashed #cfd0d5; border-radius: 12px; color: var(--dy-ink); background: linear-gradient(145deg, #fafafa, #f3f3f5); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.upload-dropzone.is-dragover { border-color: var(--dy-red); background: rgba(254,44,85,.035); transform: scale(1.02); }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 2px; border-radius: 14px; color: var(--dy-red); background: white; box-shadow: 0 8px 24px rgba(22,24,35,.09); }
.upload-icon svg { width: 24px; }
.upload-dropzone strong { font-size: 14px; }
.upload-dropzone small { color: #96979d; font-size: 10px; }
.upload-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upload-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #eee; animation: thumb-in .25s var(--ease-sheet) both; animation-delay: calc(var(--thumb-index) * 35ms); touch-action: none; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.upload-thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); border-radius: inherit; pointer-events: none; }
.upload-thumb > button { position: absolute; z-index: 3; top: 4px; right: 4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(0,0,0,.58); backdrop-filter: blur(8px); }
.upload-thumb > button svg { width: 13px; }
.thumb-order { position: absolute; left: 5px; bottom: 5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border-radius: 6px; color: white; background: rgba(0,0,0,.56); font-size: 9px; font-weight: 800; }
.thumb-drag { position: absolute; right: 5px; bottom: 5px; color: white; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); opacity: .8; }
.thumb-drag svg { width: 17px; }
.upload-thumb.is-long-pressed, body.is-reordering .upload-thumb:hover { z-index: 10; transform: scale(1.08) rotate(1deg); box-shadow: 0 12px 28px rgba(22,24,35,.22); }
.caption-field { position: relative; display: block; margin-top: 14px; }
.caption-field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.caption-field em { color: #aaa; font-size: 10px; font-style: normal; font-weight: 500; }
.caption-field textarea { width: 100%; height: 96px; padding: 11px 12px 25px; resize: none; border: 1px solid transparent; border-radius: 10px; outline: none; color: var(--dy-ink); background: #f5f5f7; font-size: 12px; line-height: 1.6; transition: border .16s, background .16s; }
.caption-field textarea:focus { border-color: rgba(254,44,85,.45); background: white; }
.caption-field textarea::placeholder { color: #a6a7ac; }
.caption-field > b { position: absolute; right: 10px; bottom: 9px; color: #aaa; font-size: 9px; font-weight: 500; }
.examples-section { padding: 24px 0 4px; }
.example-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.example-card { position: relative; aspect-ratio: 1.25; overflow: hidden; border-radius: 11px; text-align: left; background: #ddd; transition: transform .15s, box-shadow .18s; }
.example-card img { width: 100%; height: 100%; object-fit: cover; }
.example-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78)); }
.example-check { position: absolute; top: 8px; right: 8px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: transparent; border: 1px solid rgba(255,255,255,.65); background: rgba(0,0,0,.15); backdrop-filter: blur(7px); }
.example-check svg { width: 14px; }
.example-card.is-selected { box-shadow: 0 0 0 2px var(--dy-red), 0 8px 20px rgba(254,44,85,.2); transform: translateY(-2px); }
.example-card.is-selected .example-check { color: white; border-color: var(--dy-red); background: var(--dy-red); }
.example-copy { position: absolute; left: 10px; right: 9px; bottom: 9px; color: white; }
.example-copy strong, .example-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.example-copy strong { font-size: 11px; }
.example-copy small { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 9px; }
.match-cta-wrap { padding: 24px 0 9px; }
.primary-button { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; color: #a5a6aa; background: #e4e4e7; font-size: 14px; font-weight: 800; transition: transform .14s, color .18s, background .18s, box-shadow .18s; }
.primary-button svg { width: 20px; }
.primary-button.is-ready { color: white; background: var(--dy-red); box-shadow: 0 10px 24px rgba(254,44,85,.22); animation: cta-breathe 2.2s ease-in-out infinite; }
.primary-button:disabled { cursor: not-allowed; }
.match-cta-wrap p { margin: 9px 0 0; color: #9a9ba0; text-align: center; font-size: 9px; }
@keyframes thumb-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes cta-breathe { 0%,100% { box-shadow: 0 8px 20px rgba(254,44,85,.18); } 50% { box-shadow: 0 12px 30px rgba(254,44,85,.34); } }

/* Analyze overlay */
.analysis-overlay { position: absolute; z-index: 120; inset: 0; padding: 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; background: rgba(9,9,13,.94); backdrop-filter: blur(22px); }
.analysis-overlay::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(254,44,85,.18), transparent 64%); }
.analysis-orbit { position: relative; width: 122px; height: 122px; display: grid; place-items: center; }
.analysis-core { position: relative; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--dy-red), #ff5f7f); box-shadow: -5px 4px 0 rgba(37,244,238,.72), 0 18px 45px rgba(254,44,85,.35); animation: analysis-float 1.5s ease-in-out infinite; }
.analysis-core svg { width: 28px; }
.analysis-orbit > i { position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; animation: analysis-orbit 2.4s linear infinite; }
.analysis-orbit > i:nth-child(3) { inset: 17px; border-color: rgba(37,244,238,.25); animation-duration: 1.8s; animation-direction: reverse; }
.analysis-orbit > i:nth-child(4) { inset: -11px; border-style: dashed; border-color: rgba(254,44,85,.3); animation-duration: 4s; }
.keyword-reveal { position: relative; z-index: 2; min-height: 78px; margin-top: 18px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.keyword-reveal span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.07); font-size: 12px; animation: keyword-pop .42s var(--ease-sheet) both; animation-delay: calc(var(--i) * 90ms); }
.analysis-overlay h3 { position: relative; margin: 20px 0 8px; font-size: 18px; }
.analysis-overlay p { position: relative; margin: 0; color: rgba(255,255,255,.5); font-size: 11px; }
.analysis-progress { position: relative; width: 190px; height: 3px; margin-top: 22px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.11); }
.analysis-progress i { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dy-cyan), white, var(--dy-red)); animation: boot-progress 1.2s ease-in-out infinite; }
@keyframes analysis-float { 0%,100% { transform: translateY(-4px) rotate(-2deg); } 50% { transform: translateY(5px) rotate(2deg); } }
@keyframes analysis-orbit { to { transform: rotate(360deg); } }
@keyframes keyword-pop { from { opacity: 0; transform: translateY(12px) scale(.72); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Music sheet */
.sheet-backdrop { position: absolute; z-index: 130; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); animation: fade-in .22s ease both; }
.music-sheet { --sheet-drag-y: 0px; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; overflow: hidden; border-radius: 18px 18px 0 0; color: var(--dy-ink); background: white; box-shadow: 0 -18px 48px rgba(0,0,0,.18); transform: translateY(var(--sheet-drag-y)); transition: height .28s var(--ease-sheet), transform .18s var(--ease-sheet); animation: sheet-in .3s var(--ease-sheet) both; }
.music-sheet.is-expanded { height: 92%; }
.sheet-grab-zone { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 25px; display: grid; place-items: center; touch-action: none; }
.sheet-handle { width: 36px; height: 4px; border-radius: 999px; background: #d7d7db; }
.sheet-header { position: absolute; z-index: 7; top: 20px; left: 0; right: 0; height: 56px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #f0f0f2; }
.sheet-header h2 { margin: 1px 0 0; font-size: 18px; }
.sheet-kicker { color: var(--dy-red); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.sheet-header > button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f4f4f6; }
.sheet-header svg { width: 19px; }
.sheet-scroll { position: absolute; inset: 76px 0 0; padding: 0 14px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sheet-scroll::-webkit-scrollbar { display: none; }
.keyword-strip { min-height: 52px; padding: 10px 0 8px; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.keyword-strip::-webkit-scrollbar { display: none; }
.keyword-strip button { flex: 0 0 auto; height: 28px; padding: 0 7px 0 10px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; color: var(--dy-red); background: rgba(254,44,85,.075); font-size: 11px; font-weight: 700; }
.keyword-strip button svg { width: 12px; }
.keyword-strip small { flex: 0 0 auto; margin-left: auto; color: #aaa; font-size: 9px; }
.confidence-warning { margin-bottom: 10px; padding: 9px 10px; display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; color: #6d6e74; background: #f2f2f4; font-size: 10px; line-height: 1.45; }
.confidence-warning svg { width: 16px; color: #8a8b91; }
.mini-player { position: sticky; z-index: 5; top: 0; min-height: 68px; margin: 0 -3px 17px; padding: 8px 9px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid #ececef; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 9px 24px rgba(22,24,35,.08); backdrop-filter: blur(16px); }
.mini-player.is-idle { grid-template-columns: 42px 1fr 38px; }
.mini-cover { width: 48px; height: 48px; display: grid; place-items: center; object-fit: cover; border-radius: 8px; color: var(--dy-red); background: #f3f3f5; }
.mini-player.is-idle .mini-cover { width: 42px; height: 42px; }
.mini-cover.is-spinning { border-radius: 50%; animation: spin 4s linear infinite; }
.mini-main { min-width: 0; display: grid; gap: 2px; }
.mini-main strong, .mini-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-main strong { font-size: 12px; }
.mini-main small, .mini-player.is-idle small { color: var(--dy-gray); font-size: 9px; }
.mini-player.is-idle strong { display: block; font-size: 11px; }
.player-progress { --progress: 0%; width: 100%; height: 13px; margin: 1px 0 -3px; appearance: none; background: transparent; cursor: pointer; }
.player-progress::-webkit-slider-runnable-track { height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--dy-red) var(--progress), #dedee1 var(--progress)); }
.player-progress::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -4px; appearance: none; border-radius: 50%; background: var(--dy-red); box-shadow: 0 1px 4px rgba(254,44,85,.35); }
.mini-controls { display: flex; align-items: center; gap: 2px; }
.mini-controls button, .mini-player.is-idle > button { width: 28px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.mini-controls svg { width: 17px; }
.mini-controls .play-toggle { width: 34px; height: 34px; color: white; background: var(--dy-ink); }
.player-time { position: absolute; right: 10px; bottom: 2px; color: #aaa; font-size: 7px; }
.player-time b { font-weight: 500; }
.top3-section { margin-top: 2px; }
.top3-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.top-song-card { position: relative; min-width: 0; padding: 5px 5px 7px; border: 1px solid #ededf0; border-radius: 12px; background: white; box-shadow: 0 5px 16px rgba(22,24,35,.05); animation: top-card-in .38s var(--ease-sheet) both; animation-delay: calc(var(--i) * 80ms); }
.top-song-card.is-first { border-color: rgba(254,44,85,.48); box-shadow: 0 7px 21px rgba(254,44,85,.14); transform: translateY(-3px); }
.top-cover { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eee; }
.top-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.top-song-card.is-playing .top-cover img { transform: scale(1.05); }
.rank-badge, .score-badge { position: absolute; top: 5px; padding: 3px 5px; border-radius: 5px; color: white; font-size: 7px; font-weight: 900; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.rank-badge { left: 5px; background: rgba(17,17,20,.78); }
.score-badge { right: 5px; background: var(--dy-red); }
.cover-play { position: absolute; left: 50%; top: 50%; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(0,0,0,.55); backdrop-filter: blur(7px); transform: translate(-50%,-50%); }
.cover-play svg { width: 16px; }
.top-card-copy { min-width: 0; padding: 7px 2px 5px; }
.top-card-copy strong, .top-card-copy small, .top-card-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-card-copy strong { font-size: 11px; }
.top-card-copy small { height: 15px; margin-top: 2px; color: var(--dy-gray); font-size: 8px; }
.top-card-copy small em { margin-right: 3px; color: #8c8d92; font-style: normal; }
.top-card-copy > span { margin-top: 2px; color: #aaa; font-size: 8px; }
.use-button { width: 100%; height: 29px; border-radius: 6px; color: white; background: var(--dy-red); font-size: 9px; font-weight: 800; }
.use-button.is-used { display: flex; align-items: center; justify-content: center; gap: 3px; background: #17181d; }
.use-button svg { width: 12px; }
.top-collect { position: absolute; top: 75px; right: 8px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); }
.top-collect svg { width: 15px; }
.top-collect.is-active { color: white; background: var(--dy-red); }
.candidate-section { margin-top: 23px; }
.candidate-section .section-title > div > span { display: block; margin-top: 3px; color: var(--dy-gray); font-size: 9px; }
.candidate-section .section-title > button { padding: 7px 9px; display: flex; align-items: center; gap: 4px; border-radius: 7px; color: var(--dy-red); background: rgba(254,44,85,.07); font-size: 9px; font-weight: 800; }
.candidate-section .section-title > button svg { width: 13px; }
.song-list { margin-top: 8px; }
.song-row { position: relative; min-height: 64px; display: grid; grid-template-columns: 1fr 38px; align-items: center; border-bottom: 1px solid #f0f0f2; transition: background .13s; }
.song-row:active { background: #f6f6f7; }
.song-row.is-current { background: linear-gradient(90deg, rgba(254,44,85,.055), transparent); }
.song-row-main { min-width: 0; height: 64px; display: grid; grid-template-columns: 48px minmax(0,1fr) 38px; gap: 9px; align-items: center; text-align: left; }
.song-cover { position: relative; width: 48px; height: 48px; overflow: hidden; border-radius: 8px; background: #eee; }
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-index { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgba(0,0,0,.18); font-size: 9px; font-style: normal; text-shadow: 0 1px 4px rgba(0,0,0,.7); opacity: 0; }
.song-row:hover .row-index { opacity: 1; }
.sound-wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; background: rgba(0,0,0,.35); }
.sound-wave b { width: 2px; height: 12px; border-radius: 99px; background: white; animation: wave .65s ease-in-out infinite alternate; }
.sound-wave b:nth-child(2) { animation-delay: .16s; height: 18px; }
.sound-wave b:nth-child(3) { animation-delay: .32s; height: 9px; }
.song-copy { min-width: 0; }
.song-copy > strong, .song-copy > small, .song-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-copy > strong { font-size: 12px; }
.song-row.is-current .song-copy > strong { color: var(--dy-red); }
.song-copy > strong em { margin-left: 5px; padding: 1px 4px; border-radius: 4px; color: var(--dy-red); background: rgba(254,44,85,.08); font-size: 7px; font-style: normal; }
.song-copy > small { margin-top: 3px; color: var(--dy-gray); font-size: 9px; }
.cloud-label { margin-right: 4px; padding: 1px 4px; border-radius: 3px; color: #777; background: #ededf0; font-style: normal; }
.song-copy > span { margin-top: 3px; color: #aaa; font-size: 8px; }
.row-score { justify-self: end; min-width: 31px; padding: 4px 5px; border-radius: 5px; color: white; background: var(--dy-red); text-align: center; font-size: 8px; font-weight: 900; }
.row-star { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #999; }
.row-star svg { width: 21px; }
.row-star.is-active { color: var(--dy-red); }
.row-star.is-active svg { fill: var(--dy-red); }
.row-flash { animation: row-flash .7s ease; }
.sheet-loading { height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; color: var(--dy-gray); font-size: 11px; }
.sheet-loading i { width: 31px; height: 31px; border: 3px solid #eee; border-top-color: var(--dy-red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes top-card-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wave { to { height: 4px; } }
@keyframes row-flash { 0%,100% { background: transparent; } 40% { background: rgba(254,44,85,.12); } }

/* Library */
.library-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; min-height: calc(159px + var(--safe-top)); padding: calc(33px + var(--safe-top)) 16px 13px; background: white; }
.library-title-wrap { display: grid; grid-template-columns: 70px 1fr; gap: 13px; align-items: center; }
.library-avatar { width: 70px; height: 70px; display: grid; grid-template-columns: repeat(2,1fr); overflow: hidden; border-radius: 50%; color: white; background: var(--dy-ink); box-shadow: 0 0 0 3px white, 0 0 0 4px #ececef; }
.library-avatar img { width: 35px; height: 35px; object-fit: cover; }
.library-avatar > svg { grid-column: 1 / -1; place-self: center; width: 30px; }
.library-title-wrap h1 { margin: 3px 0 3px; font-size: 21px; letter-spacing: -.03em; }
.library-title-wrap p { margin: 0; color: var(--dy-gray); font-size: 10px; line-height: 1.45; }
.library-stats { margin: 15px 0 0 83px; display: flex; gap: 18px; }
.library-stats span { color: #8b8c91; font-size: 9px; }
.library-stats b { display: block; margin-bottom: 2px; color: var(--dy-ink); font-size: 15px; }
.library-tabs { position: absolute; z-index: 11; top: calc(159px + var(--safe-top)); left: 0; right: 0; height: 45px; display: grid; grid-template-columns: repeat(3,1fr); background: white; border-top: 1px solid #f1f1f3; border-bottom: 1px solid #ececef; }
.library-tabs button { position: relative; color: #8a8b90; font-size: 12px; font-weight: 600; }
.library-tabs button.active { color: var(--dy-ink); font-weight: 800; }
.library-tabs button.active::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 30px; height: 2px; border-radius: 99px; background: var(--dy-ink); transform: translateX(-50%); }
.tag-filter { position: absolute; z-index: 10; top: calc(204px + var(--safe-top)); left: 0; right: 0; height: 48px; padding: 9px 12px; display: flex; gap: 7px; overflow-x: auto; background: #f7f7f8; scrollbar-width: none; }
.tag-filter::-webkit-scrollbar { display: none; }
.tag-filter button { flex: 0 0 auto; height: 29px; padding: 0 13px; border-radius: 6px; color: #77787e; background: white; border: 1px solid #ececef; font-size: 10px; }
.tag-filter button.active { color: white; border-color: var(--dy-ink); background: var(--dy-ink); }
.library-scroll { inset: calc(252px + var(--safe-top)) 0 calc(68px + var(--safe-bottom)); padding: 4px 5px 20px; background: #f4f4f5; }
.card-wall { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; align-items: start; }
.collection-card { position: relative; min-width: 0; animation: collection-in .34s var(--ease-sheet) both; animation-delay: calc(var(--card-index) * 45ms); }
.collection-card:nth-child(4n+1) .card-open { aspect-ratio: .78; }
.collection-card:nth-child(4n+2) .card-open { aspect-ratio: .88; }
.collection-card:nth-child(4n+3) .card-open { aspect-ratio: .82; }
.collection-card:nth-child(4n+4) .card-open { aspect-ratio: .9; }
.card-open { position: relative; width: 100%; overflow: hidden; border-radius: 3px; color: white; background: #ddd; text-align: left; }
.card-open > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-open:hover > img { transform: scale(1.03); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02), transparent 42%, rgba(0,0,0,.82)); }
.card-record { position: absolute; top: 8px; right: 8px; width: 31px; height: 31px; padding: 3px; border-radius: 50%; background: #17171b; box-shadow: 0 3px 9px rgba(0,0,0,.24); }
.card-record img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.card-tags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 3px; }
.card-tags i { padding: 3px 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; background: rgba(0,0,0,.23); backdrop-filter: blur(6px); font-size: 7px; font-style: normal; }
.card-copy { position: absolute; left: 9px; right: 9px; bottom: 9px; }
.card-copy strong, .card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-copy strong { font-size: 12px; }
.card-copy small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 8px; }
.collection-card.is-managing { animation: card-shake .18s linear infinite alternate; }
.card-delete { position: absolute; z-index: 5; top: -6px; right: -4px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: var(--dy-red); box-shadow: 0 4px 10px rgba(254,44,85,.3); }
.card-delete svg { width: 15px; }
.empty-library { min-height: 440px; padding: 48px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-card-visual { position: relative; width: 142px; height: 176px; display: grid; place-items: center; border: 1.5px dashed #c7c8cd; border-radius: 14px; background: linear-gradient(145deg, white, #eeeef1); transform: rotate(-3deg); }
.empty-card-visual::before { content: ""; position: absolute; z-index: -1; inset: 9px -13px -10px 12px; border: 1px solid #e0e0e3; border-radius: 14px; background: white; transform: rotate(6deg); }
.empty-card-visual > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--dy-red); background: rgba(254,44,85,.08); }
.empty-card-visual i { position: absolute; left: 20px; right: 20px; bottom: 30px; height: 6px; border-radius: 99px; background: #dedee2; }
.empty-card-visual i:nth-of-type(2) { bottom: 18px; right: 48px; }
.empty-card-visual i:nth-of-type(3) { top: 20px; left: auto; right: 18px; width: 27px; height: 27px; border-radius: 50%; background: #ddd; }
.empty-library h2 { margin: 28px 0 7px; font-size: 18px; }
.empty-library p { margin: 0 0 20px; color: var(--dy-gray); font-size: 11px; line-height: 1.6; }
.empty-library .primary-button { max-width: 230px; height: 43px; animation: none; }
.text-button { margin-top: 12px; color: #777; font-size: 11px; text-decoration: underline; }
@keyframes collection-in { from { opacity: 0; transform: translateY(15px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes card-shake { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }

/* Card detail */
.card-detail-backdrop { position: absolute; z-index: 150; inset: 0; display: grid; place-items: center; padding: 30px 24px; background: rgba(5,5,7,.88); backdrop-filter: blur(18px); animation: fade-in .22s ease both; }
.card-detail { position: relative; width: 100%; max-width: 330px; animation: detail-in .36s var(--ease-sheet) both; perspective: 1000px; }
.detail-close { position: absolute; z-index: 5; top: -13px; right: -13px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(255,255,255,.14); backdrop-filter: blur(9px); }
.detail-close svg { width: 20px; }
.detail-card-face { --progress: 0deg; position: relative; width: 100%; aspect-ratio: .73; overflow: hidden; border-radius: 20px; color: white; background: #111; box-shadow: 0 28px 60px rgba(0,0,0,.42); transform-style: preserve-3d; }
.detail-bg { width: 100%; height: 100%; object-fit: cover; }
.detail-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.1) 45%, rgba(0,0,0,.92)); }
.detail-record-ring { position: absolute; left: 50%; top: 31%; width: 132px; height: 132px; padding: 5px; border-radius: 50%; background: conic-gradient(var(--dy-red) var(--progress), rgba(255,255,255,.18) var(--progress)); transform: translate(-50%,-50%); box-shadow: 0 16px 38px rgba(0,0,0,.35); }
.detail-record-ring > span { width: 100%; height: 100%; padding: 11px; display: block; border-radius: 50%; background: radial-gradient(circle, #35353a 0 12%, #111 13% 31%, #2b2b30 32% 35%, #121215 36%); }
.detail-record-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.detail-copy { position: absolute; left: 23px; right: 23px; bottom: 24px; }
.detail-copy > div { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-copy i { padding: 4px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(0,0,0,.2); font-size: 8px; font-style: normal; }
.detail-copy h2 { margin: 13px 0 3px; font-size: 24px; letter-spacing: -.035em; }
.detail-copy p { margin: 0; color: rgba(255,255,255,.66); font-size: 12px; }
.detail-copy small { display: block; margin-top: 10px; color: rgba(255,255,255,.38); font-size: 8px; }
.detail-actions { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.detail-actions button { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; color: white; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); font-size: 9px; }
.detail-actions button:nth-child(2) { background: var(--dy-red); }
.detail-actions svg { width: 20px; }
@keyframes detail-in { from { opacity: 0; transform: translateY(30px) scale(.84) rotateY(-12deg); } to { opacity: 1; transform: translateY(0) scale(1) rotateY(0); } }

/* Dialogs and global feedback */
.dialog-backdrop { position: absolute; z-index: 190; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.48); backdrop-filter: blur(5px); }
.confirm-dialog { width: 100%; max-width: 310px; padding: 24px 20px 18px; border-radius: 16px; text-align: center; background: white; box-shadow: 0 24px 60px rgba(0,0,0,.22); animation: dialog-in .28s var(--ease-sheet) both; }
.dialog-icon { width: 50px; height: 50px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 16px; color: var(--dy-red); background: rgba(254,44,85,.08); }
.confirm-dialog h2 { margin: 0; font-size: 17px; }
.confirm-dialog p { margin: 8px 0 20px; color: var(--dy-gray); font-size: 10px; line-height: 1.6; }
.confirm-dialog > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.confirm-dialog button { height: 40px; border-radius: 8px; background: #f1f1f3; font-size: 11px; font-weight: 700; }
.confirm-dialog button.danger { color: white; background: var(--dy-red); }
#global-layer { position: fixed; z-index: 9999; inset: 0; pointer-events: none; }
.global-toast { position: fixed; left: 50%; top: 14%; max-width: min(330px, calc(100vw - 40px)); padding: 10px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: white; background: rgba(24,24,28,.9); box-shadow: 0 12px 35px rgba(0,0,0,.25); backdrop-filter: blur(18px); font-size: 12px; font-weight: 650; text-align: center; opacity: 0; transform: translate(-50%,-12px) scale(.96); transition: opacity .2s, transform .22s var(--ease-sheet); }
.global-toast.show { opacity: 1; transform: translate(-50%,0) scale(1); }
.note-burst { position: fixed; width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; transform: translate(-50%,-50%); animation: note-burst .82s var(--ease-sheet) both; filter: drop-shadow(0 8px 14px rgba(0,0,0,.32)); }
.note-burst::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--dy-cyan); border-radius: 50%; animation: pulse-ring .7s ease both; }
.note-burst svg { width: 44px; height: 44px; color: var(--dy-red); fill: var(--dy-red); }
.note-burst span { margin-top: 5px; font-size: 10px; font-weight: 800; }
.fly-card { position: fixed; width: 52px; height: 68px; border: 2px solid white; border-radius: 9px; background-size: cover; background-position: center; box-shadow: 0 10px 24px rgba(0,0,0,.28); will-change: transform; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(15px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes note-burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4) rotate(-10deg); } 30% { opacity: 1; transform: translate(-50%,-50%) scale(1.15) rotate(4deg); } 100% { opacity: 0; transform: translate(-50%,-90%) scale(.88) rotate(8deg); } }

@media (max-width: 600px) {
  body { background: #000; }
  .desktop-stage { padding: 0; }
  .phone-shell { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
  .phone-shell::before { display: none; }
}

@media (max-height: 700px) {
  .action-bar { gap: 10px; bottom: 76px; }
  .feed-copy { bottom: calc(68px + var(--safe-bottom)); }
  .create-hero { padding-top: 18px; }
  .create-hero h2 { font-size: 24px; }
  .music-sheet { height: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
