/* ============================================================
   APP STYLES — MEDIA / SOCIAL
   Momento (Instagram-style), Music, Photos, Camera, Weather
   ============================================================ */

/* ----------------------------------------------------------
   Momento / Instagram-style social app
   ---------------------------------------------------------- */
.mo-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 54px 16px 0; height: 100px; display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-bottom: .5px solid var(--sep); }
.wordmark { font-family: var(--wordmark); font-style: italic; font-weight: 600; font-size: 28px; letter-spacing: -.01em; }
.mo-top .acts { display: flex; gap: 20px; align-items: center; }
.mo-top svg { width: 25px; height: 25px; }
.mo-top .dotb { position: relative; }
.mo-top .dotb::after { content: ""; position: absolute; top: -1px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #ff3040; border: 1.5px solid var(--bg); }
.mo .scroll { padding-top: 100px; }
.stories { display: flex; gap: 14px; padding: 10px 12px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: .5px solid var(--sep); }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; width: 70px; flex: none; }
.ring { padding: 2.5px; border-radius: 50%; background: conic-gradient(from 200deg, #ff8a3d, #ff3d77, #a43dff, #ff8a3d); }
.ring.close { background: #2ec24a; }
.ring.seen { background: var(--sep); }
.ring > div { border: 3px solid var(--bg); border-radius: 50%; display: flex; }
.story span { max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post { border-bottom: .5px solid var(--sep); padding-bottom: 12px; }
.post-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.post-h .u { font-size: 14px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; }
.post-h svg { width: 20px; height: 20px; }
.post-img { position: relative; aspect-ratio: 4/5; width: 100%; max-width: 100%; }
.post-img .media { position: absolute; inset: 0; }
.burst { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px; color: #fff; pointer-events: none; animation: burst .8s ease both; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.post-a { display: flex; align-items: center; gap: 16px; padding: 10px 12px 6px; }
.post-a svg { width: 25px; height: 25px; }
.post-a .sp { flex: 1; }
.post-a .liked { color: #ff3040; animation: pop .35s; }
.post-t { padding: 0 12px; font-size: 14px; line-height: 1.38; }
.post-t b { font-weight: 600; }
.post-t .muted { color: var(--label2); }
.post-t .date { font-size: 11.5px; color: var(--label2); margin-top: 4px; display: block; }
.comments { padding: 6px 12px; display: flex; flex-direction: column; gap: 12px; }
.cm { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; align-items: flex-start; }
.cm b { font-weight: 600; }
.cm small { display: block; color: var(--label2); font-size: 12px; margin-top: 2px; }
.prof-h { display: flex; align-items: center; gap: 22px; padding: 12px 16px 10px; }
.prof-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 13px; }
.prof-stats b { display: block; font-size: 17px; font-weight: 600; }
.prof-bio { padding: 0 16px; font-size: 14px; line-height: 1.38; white-space: pre-line; }
.prof-bio b { font-weight: 600; display: block; }
.prof-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 16px; }
.prof-btns button { height: 32px; border-radius: 8px; background: var(--fill2); font-size: 14px; font-weight: 600; }
.prof-btns button.pri { background: var(--blue); color: #fff; }
.highlights { display: flex; gap: 16px; padding: 4px 16px 14px; overflow-x: auto; scrollbar-width: none; }
.hl { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; }
.hl > div { padding: 2px; border: 1px solid var(--sep); border-radius: 50%; display: flex; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; border-top: .5px solid var(--sep); }
.mgrid button { aspect-ratio: 4/5; max-width: 100%; }
.mgrid .media { width: 100%; height: 100%; }
.story-view { background: #000; color: #fff; }
.story-bars { position: absolute; top: 56px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.story-bars i { flex: 1; height: 2.5px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.story-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-who { position: absolute; top: 68px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; z-index: 3; }
.story-who span { opacity: .7; font-weight: 400; }
.story-who .x { margin-left: auto; font-size: 26px; font-weight: 300; line-height: 1; }
.story-frame { position: absolute; inset: 44px 0 86px; border-radius: 12px; overflow: hidden; }
.story-frame .media { position: absolute; inset: 0; }
.story-text { position: absolute; left: 0; right: 0; top: 44%; text-align: center; padding: 0 30px; font-size: 26px; font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.story-reply.mine { justify-content: flex-start; border: 0; gap: 0; }
.story-reply.mine .av { margin-right: -6px; box-shadow: 0 0 0 2px #000; }
.story-reply.mine span { margin-left: 14px; }
.story-reply { position: absolute; left: 12px; right: 12px; bottom: 28px; height: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; color: rgba(255,255,255,.8); gap: 10px; justify-content: space-between; }
.story-reply svg { width: 24px; height: 24px; }

/* ----------------------------------------------------------
   Music app
   ---------------------------------------------------------- */
.mu-art { width: 240px; height: 240px; margin: 6px auto 14px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.22); overflow: hidden; }
.mu-art .media { width: 100%; height: 100%; }
.mu-title { text-align: center; font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.mu-owner { text-align: center; color: var(--tint); font-size: 20px; margin-top: 2px; }
.mu-meta { text-align: center; color: var(--label2); font-size: 12.5px; margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }
.mu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 8px; }
.mu-btns button { height: 48px; border-radius: 12px; background: var(--fill); color: var(--tint); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mu-btns svg { width: 16px; height: 16px; }
.mu-desc { padding: 6px 20px 10px; font-size: 14px; color: var(--label2); line-height: 1.4; }
.track { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding-left: 20px; }
.track .num { width: 16px; text-align: center; color: var(--label2); font-size: 16px; font-variant-numeric: tabular-nums; flex: none; }
.track .row-main { padding: 11px 20px 11px 0; }
.track .t { font-size: 17px; }
.track .a { font-size: 14px; color: var(--label2); }
.track.cur .t { color: var(--tint); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; flex: none; color: var(--tint); }
.eq i { flex: 1; background: currentColor; border-radius: 1px; height: 40%; }
.eq.play i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s !important; }
.eq i:nth-child(3) { animation-delay: .4s !important; }
.tagx { display: inline-block; font-size: 10px; font-weight: 700; color: var(--label2); border: 1px solid var(--label3); border-radius: 3px; padding: 0 3px; margin-left: 6px; vertical-align: 2px; letter-spacing: .03em; }
.mini { position: absolute; left: 8px; right: 8px; bottom: 28px; height: 62px; border-radius: 14px; background: var(--bar); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 6px 24px rgba(0,0,0,.14); display: flex; align-items: center; gap: 12px; padding: 0 14px 0 8px; z-index: 8; text-align: left; }
.mini .media { width: 46px; height: 46px; border-radius: 7px; flex: none; }
.mini .mt { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini svg { width: 24px; height: 24px; }
.np { color: #fff; }
.np-bg { position: absolute; inset: 0; background: #111; }
.np-bg .media { position: absolute; inset: -40px; filter: blur(50px) saturate(1.3) brightness(.6); }
.np-in { position: relative; flex: 1; display: flex; flex-direction: column; padding: 62px 28px 40px; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.45); margin: 0 auto 26px; }
.np-art { width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); transition: transform .45s cubic-bezier(.2,.9,.25,1); }
.np-art.paused { transform: scale(.84); }
.np-art .media { width: 100%; height: 100%; }
.np-cue { min-height: 42px; margin-top: 16px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.75); font-style: italic; }
.np-meta { display: flex; align-items: flex-end; gap: 10px; }
.np-meta div { flex: 1; min-width: 0; }
.np-meta b { display: block; font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta span { font-size: 19px; color: rgba(255,255,255,.65); }
.np-meta svg { width: 28px; height: 28px; opacity: .85; }
input[type=range].bar { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 14px 0 0; --p: 0%; }
input[type=range].bar::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.85) var(--p), rgba(255,255,255,.25) var(--p)); }
input[type=range].bar::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
input[type=range].bar::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
input[type=range].bar::-moz-range-progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.85); }
input[type=range].bar::-moz-range-thumb { width: 0; height: 0; border: 0; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; margin-top: 2px; }
.np-ctrl { display: flex; justify-content: center; align-items: center; gap: 46px; margin: 22px 0; }
.np-ctrl svg { width: 38px; height: 38px; }
.np-ctrl .pp svg { width: 48px; height: 48px; }
.np-vol { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); }
.np-vol svg { width: 16px; height: 16px; flex: none; }
.np-vol input { margin: 0; }

/* ----------------------------------------------------------
   Photos app
   ---------------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pgrid button { aspect-ratio: 1; max-width: 100%; }
.pgrid .media { width: 100%; height: 100%; }
.albums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 0 16px; }
.album { text-align: left; display: flex; flex-direction: column; gap: 4px; }
.album .cv { aspect-ratio: 1; max-width: 100%; border-radius: 10px; overflow: hidden; position: relative; background: var(--fill); }
.album .cv .media { position: absolute; inset: 0; }
.album .cv .lk { position: absolute; inset: 0; display: grid; place-items: center; color: var(--label2); background: var(--fill); }
.album .cv .lk svg { width: 34px; height: 34px; }
.album b { font-size: 15px; font-weight: 500; }
.album span { font-size: 14px; color: var(--label2); }
.faceid { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,0,0,.25); animation: bubIn .2s both; }
.faceid div { width: 150px; height: 150px; border-radius: 30px; background: var(--bar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 15px; color: var(--label); }
.faceid svg { width: 60px; height: 60px; color: var(--label); }
.faceid.ok svg { color: var(--green); }
.viewer { background: #000; color: #fff; }
.viewer .nav { color: #fff; --tint: #fff; }
.viewer .nav.solid { background: rgba(0,0,0,.55); border-bottom-color: transparent; }
.viewer-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 94px 0 120px; }
.viewer-main .media { width: 100%; aspect-ratio: 4/5; max-width: 100%; }
.viewer-cap { position: absolute; left: 0; right: 0; bottom: 88px; padding: 0 20px; font-size: 15px; line-height: 1.4; text-align: center; color: rgba(255,255,255,.88); }
.viewer-tools { position: absolute; bottom: 0; left: 0; right: 0; height: 84px; display: flex; justify-content: space-around; padding-top: 12px; color: #fff; background: rgba(0,0,0,.55); }
.viewer-tools svg { width: 24px; height: 24px; }
.viewer-tools .liked { color: #ff375f; }

/* ----------------------------------------------------------
   Camera app (placeholder)
   ---------------------------------------------------------- */
.camera { background: #000; color: #fff; }
.camera .nav { color: #fff; --tint: #fff; }
.camera .view { background: #000; }
.camera-preview { position: absolute; inset: 0; background: #000; }
.camera-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px 40px; display: flex; justify-content: center; gap: 30px; }
.camera-btn { width: 80px; height: 80px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.camera-btn svg { width: 34px; height: 34px; color: #000; }
.camera-switch { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; }
.camera-switch svg { width: 24px; height: 24px; }

/* ----------------------------------------------------------
   Weather app
   ---------------------------------------------------------- */
.weather .scroll { padding-top: 100px; }
.weather-header { padding: 16px; text-align: center; }
.weather-city { font-size: 36px; font-weight: 300; margin-bottom: 4px; }
.weather-temp { font-size: 96px; font-weight: 200; line-height: 1; margin-bottom: 8px; }
.weather-cond { font-size: 22px; color: var(--label2); margin-bottom: 16px; }
.weather-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px 16px; }
.weather-detail { text-align: center; padding: 12px; background: var(--cell); border-radius: 12px; }
.weather-detail .label { font-size: 12px; color: var(--label2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.weather-detail .value { font-size: 24px; font-weight: 600; }
.weather-hourly { padding: 16px; border-top: .5px solid var(--sep); }
.weather-hourly h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.hourly-scroll { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.hourly-scroll::-webkit-scrollbar { display: none; }
.hourly-item { flex: none; width: 60px; text-align: center; }
.hourly-time { font-size: 13px; color: var(--label2); margin-bottom: 4px; }
.hourly-icon { width: 36px; height: 36px; margin: 0 auto 4px; }
.hourly-temp { font-size: 17px; font-weight: 600; }
.weather-daily { padding: 16px; }
.daily-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: .5px solid var(--sep); }
.daily-row:last-child { border-bottom: none; }
.daily-day { width: 80px; font-size: 17px; font-weight: 500; }
.daily-icon { width: 28px; height: 28px; flex: none; }
.daily-temps { display: flex; gap: 12px; color: var(--label2); font-size: 17px; }
.daily-high { color: var(--label); font-weight: 600; }