:root {
  --bg: #010409;
  --surface: #12161b;
  --surface-strong: #0b0d10;
  --panel: #12161b;
  --panel-2: #1a1c20;
  --border: #12161b;
  --text: #f7fbff;
  --muted: rgba(230, 241, 252, .76);
  --muted-2: rgba(214, 229, 244, .56);
  --accent: #5aa9ff;
  --accent-strong: #18324f;
  --accent-soft: rgba(90, 169, 255, .14);
  --accent-contrast: #07111c;
  --h1: #5aa9ff;
  --danger: #c35c78;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 18% 0%, #123b65 0, transparent 34rem), var(--bg); }
body:not(.app-ready) .app-shell { visibility: hidden; }
a { color: #a8d5ff; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.76rem; background: #102a45; color: var(--text); cursor: pointer; }
button:hover:not(:disabled) { border-color: #85c7ff; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
.primary { border-color: #4ea7f4; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; }
.danger { border-color: #a95670; background: #421c2c; }

.app-shell { min-height: 100vh; padding-bottom: 4.7rem; }
.topbar, .mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; border-bottom: 1px solid rgba(106, 167, 220, .38); background: #061423; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.topbar { position: sticky; z-index: 10; top: 0; width: 100%; margin: 0; padding: 0.72rem max(1rem, calc((100% - 1180px) / 2)); border-radius: 0; }
.mobile-header { display: none; padding: 0.55rem 0.75rem; }
.mobile-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; min-width: 0; }
.mobile-header-tools button { padding: .48rem .58rem; font-size: .78rem; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 0; color: #fff; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand-copy { display: grid; }
.brand-copy strong { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.05em; font-size: 1.34rem; font-weight: 400; }
.brand-copy small { color: var(--muted-2); font-size: 0.7rem; }
.nav-links { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center; gap: 0.45rem; overflow-x: auto; }
.nav-group { display: flex; align-items: center; gap: 0.25rem; }
.nav-group-label { color: var(--muted-2); font-size: 0.64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-links a { border-radius: 7px; padding: 0.5rem 0.7rem; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.09); }
.wallet-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; white-space: nowrap; }
.wallet-connect-button { display: inline-flex; min-height: 2.45rem; align-items: center; justify-content: center; gap: .48rem; overflow: hidden; border-radius: 8px; padding: .48rem .7rem; }
.wallet-connect-button.is-connected { border-color: #65b6ff; background: #123d62; }
.wallet-control-avatar { display: grid; width: 1.6rem; height: 1.6rem; flex: 0 0 1.6rem; place-items: center; overflow: hidden; border: 1px solid rgba(191, 229, 255, .72); border-radius: 999px; background: #15446d; color: #fff; font-size: .58rem; font-weight: 800; }
.wallet-control-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wallet-control-address { font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.wallet-control-arrow { width: .95rem; height: .95rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wallet-connect-icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wallet-connect-label { font-size: .67rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.wallet-button-initials { font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.wallet-button-spinner { animation: walletButtonSpin .8s linear infinite; }
@keyframes walletButtonSpin { to { transform: rotate(360deg); } }
.ens-search-form { display: grid; grid-template-columns: minmax(150px, 220px) auto; gap: .35rem; align-items: center; min-width: 0; }
.ens-search-form input { min-width: 0; padding: .5rem .62rem; border-radius: 8px; font-size: .86rem; }
.ens-search-form button { padding: .5rem .68rem; white-space: nowrap; }
.ens-search-form .search-icon-button { display: grid; width: 2.35rem; min-width: 2.35rem; height: 2.35rem; place-items: center; padding: 0; line-height: 1; }
.search-icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page { width: min(980px, calc(100% - 2rem)); margin: 0 auto; padding: 1.1rem 0 2rem; }
.card { position: relative; overflow: hidden; margin: .5rem 0; padding: 1rem; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 12px; background: linear-gradient(135deg, rgba(5,16,29,0.98), var(--surface)); box-shadow: 0 18px 45px rgba(0,0,0,0.24); }
.profile-card { display: flex; min-height: clamp(320px, 40vw, 460px); flex-direction: column; isolation: isolate; background: linear-gradient(180deg, #030916 0%, #061326 58%, #07111d 100%); }
.profile-card > * { position: relative; z-index: 1; }
.profile-card .profile-top-row { margin-top: auto; }
.digital-earth { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.digital-earth::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(21,116,255,.11), transparent 31%), linear-gradient(180deg, rgba(0,5,16,.05), rgba(2,8,17,.14) 50%, rgba(3,9,17,.74)); }
.digital-earth svg { position: absolute; left: 50%; bottom: -13%; width: max(1180px, 125vw); height: auto; transform: translateX(-50%) scale(calc(1 + var(--hero-scroll-progress, 0) * .42)); transform-origin: 50% 100%; transition: transform .08s linear; will-change: transform; }
.digital-earth .earth-grid { stroke: #087ef5; stroke-width: 1.3; fill: none; opacity: .55; }
.digital-earth .earth-route { stroke: #6bdcff; stroke-width: 1.5; fill: none; opacity: .52; stroke-dasharray: 3 8; }
.digital-earth .earth-node { fill: #dbf8ff; filter: url(#earth-glow); }
.digital-earth .earth-horizon { fill: none; stroke: #b8f6ff; stroke-width: 3; filter: url(#earth-glow); }
.hero-stars { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.eth-star { position: absolute; width: clamp(17px, 2vw, 30px); color: #82d9ff; filter: drop-shadow(0 0 7px rgba(29,151,255,.85)); animation: ethDrift 7s ease-in-out infinite alternate, ethTwinkle 2.8s ease-in-out infinite; }
.eth-star svg { display: block; width: 100%; height: auto; }
.eth-star polygon:first-child, .eth-star polygon:nth-child(3) { fill: currentColor; }
.eth-star polygon:nth-child(2), .eth-star polygon:nth-child(4) { fill: #e2f8ff; }
.eth-star-1 { top: 18%; left: 12%; animation-delay: -1.2s, -.4s; }
.eth-star-2 { top: 33%; left: 25%; width: clamp(13px, 1.55vw, 23px); animation-delay: -4.2s, -1.5s; }
.eth-star-3 { top: 20%; right: 16%; animation-delay: -2.3s, -2.2s; }
.eth-star-4 { top: 43%; right: 8%; width: clamp(13px, 1.4vw, 21px); animation-delay: -5.1s, -.9s; }
.eth-star-5 { top: 11%; left: 48%; width: clamp(11px, 1.25vw, 18px); animation-delay: -3.4s, -1.1s; }
.eth-star-6 { top: 8%; left: 6%; width: clamp(10px, 1.1vw, 16px); animation-delay: -2.8s, -2.1s; }
.eth-star-7 { top: 63%; left: 16%; width: clamp(12px, 1.35vw, 20px); animation-delay: -1.9s, -.5s; }
.eth-star-8 { top: 61%; right: 22%; width: clamp(10px, 1.1vw, 16px); animation-delay: -4.6s, -1.7s; }
.eth-star-9 { top: 13%; right: 31%; width: clamp(10px, 1.1vw, 16px); animation-delay: -5.6s, -2.4s; }
.eth-star-10 { top: 38%; left: 5%; animation-delay: -3.7s, -1.9s; }
.eth-star-11 { top: 7%; right: 7%; width: clamp(15px, 1.75vw, 25px); animation-delay: -1.4s, -.2s; }
.eth-star-12 { top: 69%; right: 6%; width: clamp(10px, 1.15vw, 17px); animation-delay: -4.9s, -1.3s; }
.eth-star-13 { top: 31%; right: 33%; width: clamp(9px, 1vw, 15px); animation-delay: -2.1s, -2.6s; }
.eth-star.is-shiny { color: #f1fdff; filter: drop-shadow(0 0 9px rgba(115,215,255,.98)); animation: ethDrift 7s ease-in-out infinite alternate, ethTwinkle 2.2s ease-in-out infinite, ethShine 4.8s ease-in-out infinite; }
.eth-star-10.is-shiny { animation-delay: -3.7s, -1.9s, -3.1s; }
.eth-star-11.is-shiny { animation-delay: -1.4s, -.2s, -2.4s; }
.hero-ens-avatars { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.ens-orbit-avatar { position: absolute; width: var(--avatar-size); height: var(--avatar-size); overflow: hidden; border: 1px solid rgba(176,236,255,.72); border-radius: 5px; background: #0b3156; box-shadow: 0 0 0 3px rgba(19,123,233,.15), 0 0 18px rgba(51,175,255,.6); cursor: pointer; opacity: .84; pointer-events: auto; text-decoration: none; animation: ensAvatarFloat 8s ease-in-out infinite alternate, ensAvatarGlow 4.5s ease-in-out infinite; }
.ens-orbit-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ens-orbit-avatar.is-bright { border-color: #e6fbff; box-shadow: 0 0 0 4px rgba(85,187,255,.2), 0 0 26px rgba(105,218,255,.95); }
.avatar-slot-1 { top: 15%; left: 19%; animation-delay: -1.8s, -.7s; }
.avatar-slot-2 { top: 64%; left: 28%; animation-delay: -4.5s, -2.1s; }
.avatar-slot-3 { top: 21%; left: 37%; animation-delay: -2.9s, -1.3s; }
.avatar-slot-4 { top: 17%; right: 27%; animation-delay: -5.3s, -.4s; }
.avatar-slot-5 { top: 61%; right: 30%; animation-delay: -3.6s, -2.6s; }
.avatar-slot-6 { top: 41%; right: 16%; animation-delay: -1.2s, -1.8s; }
.avatar-slot-7 { top: 39%; left: 12%; animation-delay: -6.1s, -.9s; }
.avatar-slot-8 { top: 8%; left: 59%; animation-delay: -3.1s, -2.9s; }
.hero-wordmark { position: absolute; z-index: 2; top: 47%; left: 50%; display: grid; place-items: center; color: #f7fcff; text-align: center; transform: translate(-50%, -50%) scale(calc(.72 + var(--hero-scroll-progress, 0) * .78)); transform-origin: center; transition: transform .06s linear; will-change: transform; pointer-events: none; }
.hero-wordmark-copy { display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(.72); }
body.app-ready .hero-wordmark-copy { animation: heroWordmarkIntro .72s cubic-bezier(.16, 1, .3, 1) .12s both; }
.hero-wordmark-copy strong { background: linear-gradient(180deg, #fff 12%, #c5dfff 46%, #168cff 100%); background-clip: text; -webkit-background-clip: text; color: transparent; font-family: "Manrope", system-ui, sans-serif; font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 800; letter-spacing: -.105em; line-height: .8; text-shadow: 0 0 22px rgba(30,142,255,.24); }
.hero-wordmark-copy small { margin-top: .9rem; color: #49aaff; font-size: clamp(.55rem, 1.2vw, .85rem); font-weight: 800; letter-spacing: clamp(.25rem, .8vw, .58rem); padding-left: clamp(.25rem, .8vw, .58rem); text-transform: uppercase; text-shadow: 0 0 14px rgba(35,154,255,.78); }
@keyframes ethDrift { from { transform: translate3d(-4px, -7px, 0) rotate(-5deg); } to { transform: translate3d(6px, 8px, 0) rotate(6deg); } }
@keyframes ethTwinkle { 0%, 100% { opacity: .36; } 50% { opacity: 1; } }
@keyframes ethShine { 0%, 62%, 100% { filter: drop-shadow(0 0 7px rgba(115,215,255,.65)); } 72% { filter: drop-shadow(0 0 18px rgba(213,250,255,1)) brightness(1.45); } 82% { filter: drop-shadow(0 0 10px rgba(115,215,255,.88)); } }
@keyframes ensAvatarFloat { from { transform: translate3d(-5px, -7px, 0) rotate(-3deg); } to { transform: translate3d(7px, 8px, 0) rotate(3deg); } }
@keyframes ensAvatarGlow { 0%, 100% { opacity: .62; } 50% { opacity: .96; } }
@keyframes heroWordmarkIntro { 0% { opacity: 0; transform: translateY(8px) scale(.72); } 72% { opacity: 1; transform: translateY(-1px) scale(1.07); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .digital-earth svg, .hero-wordmark { transition: none; } .eth-star, .eth-star.is-shiny, .ens-orbit-avatar { animation: none; opacity: .75; } .hero-wordmark-copy, body.app-ready .hero-wordmark-copy { animation: none; opacity: 1; transform: none; } }
.hero-ens-search { position: absolute; z-index: 2; top: .85rem; left: 50%; display: grid; width: min(360px, calc(100% - 1.7rem)); grid-template-columns: 1fr; gap: .42rem; padding: .72rem; border: 1px solid rgba(141, 203, 255, .72); border-radius: 10px; background: rgba(4, 17, 30, .64); box-shadow: 0 12px 30px rgba(0,0,0,.32); backdrop-filter: blur(8px); transform: translateX(-50%); }
.hero-search-label { color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.hero-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .42rem; }
.hero-search-help { margin: 0; color: #d7ecff; font-size: .73rem; line-height: 1.35; }
.hero-ens-search input { height: 2.65rem; border: 0; background: rgba(16, 42, 69, .9); color: #f4f9ff; caret-color: #56d6b6; font-size: .82rem; font-weight: 700; }
.hero-ens-search input::placeholder { color: #b9d3e8; opacity: 1; }
.hero-ens-search .search-submit-button { display: inline-flex; min-height: 2.65rem; align-items: center; justify-content: center; gap: .38rem; border: 0; background: #1683ff; color: #fff; font-weight: 800; }
.profile-top-row { display: flex; align-items: flex-start; justify-content: flex-end; gap: 1rem; }
.profile-header { display: flex; align-items: center; gap: 0.95rem; }
.profile-cta-stack { display: grid; flex: 0 0 min(220px, 34%); gap: .55rem; }
.profile-cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.45rem; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .76rem; background: #102a45; color: var(--text); font-size: .88rem; font-weight: 800; text-align: center; }
.profile-cta-button:hover { border-color: #85c7ff; }
.profile-cta-button.primary { border-color: #4ea7f4; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; }
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar-edit-button { position: absolute; right: -6px; bottom: -6px; min-width: 0; padding: .34rem .44rem; border-radius: 5px; }
.avatar, .mini-avatar { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 2px solid #75bcf7; background: #15446d; color: #fff; font-weight: 800; }
.avatar { width: 104px; height: 104px; border-radius: 5px; font-size: 1.65rem; }
.avatar img, .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-avatar { width: 38px; height: 38px; border-radius: 5px; font-size: .76rem; }
.eyebrow { margin: 0; color: #8dcbff; font-size: 0.72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.03rem; }
.wallet-text, .muted-copy { color: var(--muted); }
.profile-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.stat-pill { border: 1px solid rgba(129,192,246,.36); border-radius: 5px; padding: .42rem .7rem; background: rgba(37,117,183,.15); color: #c8e7ff; font-size: .84rem; }
.stat-pill-button { cursor: pointer; }
.stat-pill-button:hover { border-color: #85c7ff; background: rgba(37,117,183,.26); }
.action-row, .post-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.icon-action-button { display: inline-grid; width: 2.35rem; height: 2.35rem; place-items: center; padding: 0; font-size: 1.05rem; line-height: 1; }
.icon-action-button .action-icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.counted-action-button { display: inline-flex; width: auto; min-width: 3.4rem; gap: .35rem; padding: 0 .62rem; }
.action-count { color: #c8e7ff; font-size: .78rem; font-weight: 800; line-height: 1; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack { display: grid; gap: .4rem; }
.stack-head { margin-top: .8rem; }
.posts-feed-head { align-items: center; }
.feed-section { display: grid; gap: .5rem; }
.feed-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: .85rem; flex-wrap: wrap; }
.feed-tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .25rem; border: 1px solid var(--border); border-radius: 5px; background: rgba(2,11,22,.54); }
.feed-tab { border: 0; border-radius: 5px; background: transparent; padding: .5rem .82rem; color: var(--muted); }
.feed-tab.active { background: #175b92; color: #fff; }
.feed-tabs-actions { display: flex; gap: .45rem; align-items: center; }
.feed-pane[hidden] { display: none !important; }
.segmented { display: inline-flex; gap: .25rem; padding: .2rem; border: 1px solid var(--border); border-radius: 9px; background: rgba(2,11,22,.54); }
.segmented button { border: 0; background: transparent; padding: .4rem .58rem; }
.segmented button.active { background: #175b92; }
.empty-state { border: 1px dashed rgba(129,192,246,.43); border-radius: 10px; padding: 1.2rem; color: var(--muted); text-align: center; }
.empty-state.compact { padding: .76rem; }
.network-list { display: grid; gap: .55rem; margin-top: .75rem; }
.network-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid rgba(123,173,214,.18); }
.network-wallet { display: flex; align-items: center; min-width: 0; gap: .62rem; }
.network-wallet span:last-child { display: grid; min-width: 0; }
.network-wallet strong { overflow: hidden; color: #f3f8ff; text-overflow: ellipsis; white-space: nowrap; }
.network-wallet small { overflow: hidden; color: var(--muted-2); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--muted-2); font-size: .76rem; }
.post-excerpt { margin: .7rem 0 0; color: #d6e6f5; line-height: 1.55; white-space: pre-wrap; }
.post-excerpt-group { display: grid; gap: .45rem; }
.post-excerpt-toggle { width: fit-content; margin-top: 0; border-radius: 8px; padding: .5rem .75rem; background: #102a45; color: var(--text); }
.media-preview-shell { margin-top: .8rem; overflow: hidden; border: 1px solid rgba(123,173,214,.18); border-radius: 10px; background: rgba(8, 24, 40, .55); }
.media-preview-shell.media-link-preview { display: grid; min-height: 150px; place-items: center; padding: 1rem; background: linear-gradient(135deg, rgba(6,18,31,.98), rgba(14,47,74,.86)); }
.media-link-preview a { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; border: 1px solid #65b6ff; border-radius: 999px; padding: .7rem 1rem; background: rgba(8,53,99,.88); color: #fff; font-weight: 800; text-align: center; }
.media-preview { display: block; width: 100%; max-width: 100%; min-height: 420px; max-height: min(86vh, 760px); object-fit: contain; background: rgba(3, 14, 24, .92); }
.media-preview.media-preview-image { height: auto; min-height: 0; max-height: none; object-fit: contain; background: transparent; }
.media-audio { display: block; width: 100%; max-width: 100%; min-width: 0; }
.media-player-card { width: min(880px, 100%); }
.media-player-head { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: .9rem; padding: 1rem; border: 1px solid rgba(120, 191, 247, .2); border-radius: 16px; background: linear-gradient(135deg, rgba(9, 28, 46, .96), rgba(14, 47, 74, .88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.media-player-artwork { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(120, 191, 247, .22); border-radius: 18px; background: radial-gradient(circle at 30% 20%, rgba(45, 144, 226, .45), rgba(5, 18, 32, .92)); color: #dff3ff; font-family: "Bebas Neue", sans-serif; font-size: 2rem; letter-spacing: .08em; }
.media-player-artwork img { width: 100%; height: 100%; object-fit: cover; }
.media-player-copy { display: grid; gap: .8rem; min-width: 0; }
.media-player-meta { margin: 0; color: #d6efff; font-size: .92rem; line-height: 1.5; }
.media-player-transport { display: flex; flex-wrap: wrap; gap: .55rem; }
.media-player-transport button { min-width: 110px; }
.media-player-status { margin: .75rem 0 0; }
.media-player-frame { width: 100%; min-height: min(68vh, 620px); border: 0; border-radius: 10px; background: rgba(3, 14, 24, .92); }
.media-player-video, .media-player-image { display: block; width: 100%; max-height: min(68vh, 620px); border-radius: 10px; background: rgba(3, 14, 24, .92); object-fit: contain; }
.media-player-audio { width: 100%; }
.status { margin: .5rem 0; padding: .76rem .9rem; border: 1px solid rgba(83,169,255,.5); border-radius: 10px; background: rgba(17,74,122,.35); color: #d6efff; }
.modal-shell { position: fixed; z-index: 20; inset: 0; display: grid; place-items: start center; padding: calc(2.5rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); overflow-y: auto; scroll-padding-top: calc(2.5rem + env(safe-area-inset-top, 0px)); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.modal-card { z-index: 1; width: min(650px, 100%); max-height: calc(100dvh - 3.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); margin: 0; overflow: auto; overscroll-behavior: contain; }
.network-modal-card { width: min(760px, 100%); }
.network-modal-card > .section-head { position: static; }
.network-modal-card > .segmented { margin: .9rem 0 .75rem; }
.network-modal-list { max-height: min(62vh, 560px); overflow: auto; padding-right: .2rem; }
.comments-modal-card { display: flex; width: min(720px, 100%); height: calc(100dvh - 4rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); flex-direction: column; }
.post-detail-modal-card { display: flex; width: min(780px, 100%); max-height: calc(100dvh - 3.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); flex-direction: column; overflow: hidden; border-top-color: #1683ff; }
.post-detail-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 1rem; }
.post-detail-post { display: grid; gap: .9rem; padding: .15rem 0 0; }
.post-detail-post h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.25; }
.post-detail-post .media-preview-shell { margin-top: 0; }
.post-detail-post .media-preview { min-height: 0; max-height: min(56vh, 620px); }
.post-detail-post .media-preview.media-preview-image { height: auto; max-height: none; }
.post-detail-body { color: #e3eef8; font-size: .98rem; line-height: 1.68; overflow-wrap: anywhere; }
.post-detail-actions { position: sticky; z-index: 2; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .2rem; padding: .75rem 0 .15rem; border-top: 1px solid rgba(123,173,214,.22); background: linear-gradient(0deg, rgba(5,16,29,1) 74%, rgba(5,16,29,.88)); }
.post-detail-action { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .45rem; font-weight: 800; }
.post-detail-action .action-icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.post-detail-action .action-count { color: inherit; }
.comments-list { display: grid; flex: 1 1 auto; gap: .65rem; min-height: 0; margin-top: .8rem; overflow: auto; padding-right: .2rem; }
.comment-row { padding: .75rem; border: 1px solid rgba(123,173,214,.18); border-radius: 10px; background: rgba(8,24,40,.55); }
.comment-form { margin-top: .8rem; }
.modal-card > .section-head { position: sticky; top: 0; z-index: 2; margin: -1rem -1rem 0; padding: 1rem; background: linear-gradient(180deg, rgba(5,16,29,.98), rgba(5,16,29,.94)); border-bottom: 1px solid rgba(123,173,214,.18); }
.modal-actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -1rem -1rem; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(5,16,29,.98), rgba(5,16,29,.94)); border-top: 1px solid rgba(123,173,214,.18); }
.composer-form { display: grid; gap: .75rem; }
.field { display: grid; gap: .4rem; margin-top: .75rem; color: #d7e9f9; font-size: .88rem; }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: center; }
.upload-row input[type="file"] { min-width: 0; padding: .5rem; }
.upload-row button { white-space: nowrap; }
.split-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.helper-copy { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
input, textarea { width: 100%; border: 1px solid #416789; border-radius: 8px; padding: .65rem; background: #071727; color: var(--text); }
select { width: 100%; border: 1px solid #416789; border-radius: 8px; padding: .65rem; background: #071727; color: var(--text); }
textarea { resize: vertical; }
.row-form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: .85rem; }
.wallet-assets-toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.wallet-assets-filter-label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wallet-assets-filter { width: auto; min-width: 180px; max-width: 100%; }
.list-card { display: grid; gap: .4rem; }
.list-cover { width: 100%; overflow: hidden; border-radius: 10px; background: rgba(16, 42, 69, .92); }
.list-cover img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.list-meta, .list-items, .list-item-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { display: inline-flex; align-items: center; border: 1px solid rgba(129,192,246,.36); border-radius: 5px; padding: .26rem .6rem; background: rgba(20,76,123,.2); color: #c8e7ff; font-size: .74rem; }
.icon-pill { justify-content: center; width: 2rem; height: 2rem; padding: .28rem; }
.icon-pill img { width: 100%; height: 100%; object-fit: contain; }
.efp-pill { gap: .32rem; text-decoration: none; }
.efp-pill img { width: 14px; height: 14px; border-radius: 3px; object-fit: cover; }
.icon-pill.efp-pill img { width: 100%; height: 100%; }
.ub-pill img { border-radius: 5px; }
.list-items { display: grid; gap: .55rem; }
.list-item { display: grid; gap: .5rem; padding: .75rem; border: 1px solid rgba(123,173,214,.18); border-radius: 10px; background: rgba(8, 24, 40, .55); }
.list-item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.list-item-copy { color: #d6e6f5; line-height: 1.5; white-space: pre-wrap; }
.list-item-actions { margin-top: .1rem; }
.subtle-status { border-style: dashed; background: rgba(12, 41, 66, .24); }
.asset-grid { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.asset-card { display: grid; gap: .7rem; padding: .9rem; border: 1px solid rgba(123,173,214,.18); border-radius: 12px; background: rgba(8, 24, 40, .55); }
.asset-card-media { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: rgba(16, 42, 69, .92); display: grid; place-items: center; min-width: 0; }
.asset-card-media img { width: 100%; height: 100%; object-fit: contain; }
.asset-card-placeholder { padding: .8rem; text-align: center; color: var(--muted); font-weight: 800; letter-spacing: .06em; }
.asset-card-copy { display: grid; gap: .35rem; min-width: 0; }
.asset-card-copy p { margin: 0; color: #d6e6f5; }
.asset-card-title { font-size: 1rem; font-weight: 700; color: #fff; }
.asset-card-meta { color: var(--muted); font-size: .8rem; }
.asset-card-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.mobile-bottom-nav { display: none; }
.startup-loader { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 18%, #123b65 0, transparent 24rem), var(--bg); transition: opacity .18s ease, visibility .18s ease; }
.startup-loader-card { display: grid; gap: .85rem; place-items: center; padding: 1.5rem; text-align: center; }
.startup-loader-brand { width: 74px; height: 74px; border-radius: 18px; object-fit: cover; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.startup-loader-title { font-family: "Bebas Neue", sans-serif; font-size: 2.4rem; letter-spacing: .06em; }
.startup-loader-ens { width: 88px; max-width: 34vw; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); animation: ensDrop .78s cubic-bezier(.16,1,.3,1) both; }
.startup-loader-copy { margin: 0; color: #dff3ff; font-size: .9rem; font-weight: 800; letter-spacing: .18em; }
body.app-ready .startup-loader { visibility: hidden; opacity: 0; pointer-events: none; }
@keyframes ensDrop {
  0% { opacity: 0; transform: translateY(-120px) scale(.82); filter: drop-shadow(0 2px 4px rgba(0,0,0,.1)); }
  62% { opacity: 1; transform: translateY(10px) scale(1.06); filter: drop-shadow(0 24px 28px rgba(0,0,0,.34)); }
  78% { transform: translateY(-7px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }
}

@media (max-width: 780px) {
  .desktop-topbar { display: none; }
  .mobile-header { display: flex; position: sticky; z-index: 5; top: 0; }
  .mobile-header .brand-copy small { display: none; }
  .brand.compact .brand-copy small { display: none; }
  .page { width: min(100% - 1rem, 980px); padding-bottom: 4.5rem; }
  .mobile-header-tools { flex: 1 1 auto; }
  .mobile-header-tools .wallet-connect-button { min-height: 2.5rem; padding: .48rem .58rem; }
  .hero-ens-search { top: .6rem; right: .5rem; left: .5rem; width: auto; padding: .62rem; transform: none; }
  .hero-wordmark { top: 48%; }
  .hero-wordmark-copy strong { font-size: clamp(3.05rem, 14vw, 4.2rem); }
  .hero-wordmark-copy small { margin-top: .65rem; }
  .hero-ens-search .search-submit-button { padding-inline: .7rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .posts-feed-head { align-items: center; flex-direction: row; }
  .posts-feed-head button { margin-left: auto; }
  .profile-top-row { flex-direction: column; }
  .profile-cta-stack { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-header { align-items: flex-start; }
  .meta-row { flex-direction: column; align-items: flex-start; }
  .media-preview-shell { border-radius: 8px; }
  .media-preview { min-height: 360px; max-height: min(78vh, 620px); object-fit: contain; }
  .media-audio, .media-player-audio, audio { width: 100%; max-width: 100%; min-width: 0; }
  .media-player-head { grid-template-columns: 1fr; padding: .8rem; }
  .media-player-artwork { max-width: 220px; width: 100%; margin: 0 auto; }
  .media-player-transport { width: 100%; }
  .media-player-transport button { flex: 1 1 0; min-width: 0; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-card-media { aspect-ratio: auto; min-height: 180px; max-height: 260px; }
  .asset-card-media img { height: auto; max-height: 260px; object-fit: contain; }
  .wallet-assets-filter { width: 100%; min-width: 0; }
  .action-row, .post-actions, .list-item-actions { width: 100%; }
  .action-row > *, .post-actions > *, .list-item-actions > *, .feed-tabs-actions > * { max-width: 100%; }
  .list-item-head, .section-head, .feed-tabs-row, .feed-tabs-actions, .asset-card, .list-card, .list-item, .network-row { min-width: 0; }
  .network-row { display: grid; grid-template-columns: 1fr; gap: .55rem; align-items: start; }
  .network-wallet { width: 100%; }
  .network-row .list-item-actions { justify-content: flex-start; }
  .network-modal-card > .segmented { width: 100%; }
  .network-modal-card > .segmented button { flex: 1 1 0; line-height: 1.25; }
  .profile-cta-button { min-width: 0; font-size: .82rem; line-height: 1.25; }
  .modal-shell { place-items: start center; padding: calc(1.75rem + env(safe-area-inset-top, 0px)) .5rem calc(5.25rem + env(safe-area-inset-bottom, 0px)); scroll-padding-top: calc(1.75rem + env(safe-area-inset-top, 0px)); }
  .modal-card { width: 100%; max-height: calc(100dvh - 7rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border-radius: 12px; }
  .comments-modal-card { height: calc(100dvh - 7rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .post-detail-modal-card { height: auto; max-height: calc(100dvh - 7rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .post-detail-post { gap: .7rem; }
  .post-detail-actions { gap: .35rem; }
  .post-detail-action { padding-inline: .35rem; font-size: .82rem; }
  .modal-card > .section-head { flex-direction: row; align-items: center; }
  .modal-card > .section-head button { margin-left: auto; }
  .modal-actions { position: sticky; }
  .feed-tabs-row { align-items: flex-start; }
  .feed-tabs { width: 100%; }
  .split-fields { grid-template-columns: 1fr; }
  .row-form, .upload-row { grid-template-columns: 1fr; }
  .mobile-bottom-nav { position: fixed; z-index: 9; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .15rem; padding: .45rem; border-top: 1px solid var(--border); background: rgba(5,18,32,.96); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { display: grid; place-items: center; gap: .12rem; border: 0; border-radius: 8px; padding: .4rem; background: transparent; color: var(--muted); font-size: .67rem; }
  .mobile-bottom-nav a.active, .mobile-bottom-nav button.active { color: #fff; background: rgba(39,133,209,.34); }
  .mobile-bottom-nav strong { font-size: .65rem; }
}

body .page.app-profile { width: min(1180px, calc(100% - 2rem)); }
.profile-content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem; align-items: start; }
.profile-side-panel { display: grid; gap: .5rem; align-self: start; }
.side-card { margin: 0; }
.side-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.side-card-head button { justify-self: end; padding: .42rem .58rem; }
.ens-stats-card { border-top-color: #6bb8ff; }
.ens-stats-refresh { padding: .42rem .58rem; }
.ens-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.ens-stat-tile { display: grid; gap: .22rem; min-width: 0; padding: .75rem; border: 1px solid rgba(123,173,214,.18); border-radius: 8px; background: rgba(8,24,40,.55); }
.ens-stat-tile-wide { grid-column: 1 / -1; }
.ens-stat-label { color: var(--muted-2); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ens-stat-value { color: #f5f9ff; font-size: 1.28rem; font-weight: 800; line-height: 1.1; }
.ens-stat-value-name { overflow-wrap: anywhere; font-size: 1.05rem; }
.ens-stat-change { font-size: .78rem; font-weight: 800; }
.ens-stat-change.positive { color: #34d399; }
.ens-stat-change.negative { color: #f87171; }
.ens-gas-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem; color: #d6e6f5; font-size: .84rem; }
.ens-stats-note { margin: .35rem 0 0; color: var(--muted-2); font-size: .72rem; }
.ens-stats-footer { margin: .75rem 0 0; color: var(--muted-2); font-size: .72rem; text-align: center; }
.ens-stats-status { grid-column: 1 / -1; padding: .9rem; color: var(--muted); text-align: center; }
.side-card-copy { margin: .45rem 0 .75rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.top-powers-card { border-top-color: #a78bfa; }
.top-powers-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.top-power-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .55rem; border: 1px solid rgba(167,139,250,.22); border-radius: 8px; background: rgba(33,24,64,.38); }
.top-power-rank { display: grid; width: 1.55rem; height: 1.55rem; place-items: center; border-radius: 999px; background: rgba(124,58,237,.34); color: #ede9fe; font-size: .72rem; font-weight: 800; }
.top-power-identity { display: grid; min-width: 0; }
.top-power-identity a, .top-power-identity > strong { overflow: hidden; color: #d8c9ff; font-size: .8rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.top-power-identity small, .top-power-row > strong small { overflow: hidden; color: var(--muted-2); font-size: .64rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-power-row > strong { color: #fff; font-size: .78rem; text-align: right; }
.nft-sales-card { border-top-color: #f59e0b; }
.nft-sales-list { display: flex; gap: .5rem; overflow-x: auto; margin: 0; padding: 0 0 .3rem; list-style: none; scroll-snap-type: x proximity; scrollbar-color: rgba(245,158,11,.55) transparent; }
.nft-sale-row { flex: 0 0 76px; scroll-snap-align: start; }
.nft-sale-row a { position: relative; display: grid; width: 76px; height: 76px; overflow: hidden; border: 1px solid rgba(245,158,11,.3); border-radius: 8px; place-items: center; background: rgba(69,39,9,.34); color: #fde7b0; }
.nft-sale-row img { width: 100%; height: 100%; object-fit: cover; }
.nft-sale-thumbnail-fallback { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #5b3a08, #1b1205); color: #fde7b0; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.nft-sale-row a:hover, .nft-sale-row a:focus-visible { border-color: #fbbf24; box-shadow: 0 0 0 2px rgba(245,158,11,.22); }
.free-gas-card { border-top-color: #34d399; background: linear-gradient(160deg, rgba(8,48,45,.46), rgba(10,29,48,.92)); }
.free-gas-recipient { margin: .6rem 0; color: #d1fae5; font-size: .78rem; overflow-wrap: anywhere; }
.free-gas-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.free-gas-modal-card h3 { margin: 1rem 0 .35rem; color: #d1fae5; }
.free-gas-about-copy { color: var(--muted); line-height: 1.65; }
.free-gas-about-copy ol { padding-left: 1.25rem; }
.free-gas-address { padding: .7rem; border: 1px solid rgba(52,211,153,.28); border-radius: 8px; background: rgba(6,78,59,.18); color: #d1fae5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; overflow-wrap: anywhere; }
.chain-links-title { color: #4ea7f4; }
.profile-links-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.profile-link-icon img { border-radius: 4px; }
.profile-links-toggle { width: 100%; margin-top: .6rem; padding: .42rem .6rem; }
.profile-main-column { min-width: 0; }
.profile-editor-priority { margin-top: .75rem; padding: .75rem; border: 1px solid rgba(129,192,246,.36); border-radius: 10px; background: rgba(20,76,123,.16); }
.profile-editor-priority .field { margin-top: .45rem; }
.profile-editor-links { display: grid; gap: .6rem; }
.profile-editor-link-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.profile-link-rows { display: grid; gap: .55rem; }
.profile-link-row { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(180px, 1fr) auto; gap: .5rem; align-items: center; }
.profile-link-row input { min-width: 0; }
.profile-link-row button { white-space: nowrap; }
.facebook-post { border-top-color: rgba(129,192,246,.5); }
.post-author-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.post-author-link { color: inherit; text-decoration: none; }
.post-author-link:hover .post-author-copy strong { color: #9bd1ff; }
.post-author-avatar { width: 44px; height: 44px; border-radius: 999px; }
.post-author-copy { display: grid; min-width: 0; }
.post-author-copy strong { overflow: hidden; color: #f5f9ff; text-overflow: ellipsis; white-space: nowrap; }
.post-author-copy span { color: var(--muted-2); font-size: .78rem; }
.bb-content a { color: #9bd1ff; text-decoration: underline; text-underline-offset: 2px; }
.media-preview-player { position: relative; display: grid; min-height: 220px; place-items: center; overflow: hidden; background: linear-gradient(135deg, rgba(6,18,31,.98), rgba(14,47,74,.86)); }
.media-preview-player[style*="--media-preview-artwork"] { background: linear-gradient(180deg, rgba(3,12,22,.22), rgba(3,12,22,.74)), var(--media-preview-artwork) center/cover; }
.media-preview-resolving { display: grid; min-height: 180px; place-items: center; color: var(--muted); font-weight: 800; }
.media-play-button { position: relative; z-index: 1; width: auto; min-width: 150px; border-radius: 999px; padding: .8rem 1.1rem; background: linear-gradient(135deg, #1683ff, #0a57c9); box-shadow: 0 12px 28px rgba(0,0,0,.38); }
.media-play-button span::before { content: ">"; margin-right: .45rem; }
.themed-player { display: grid; gap: .8rem; }
.themed-player-video .themed-player-media { display: block; width: 100%; max-height: min(40vh, 360px); border-radius: 10px; object-fit: contain; background: rgba(3, 14, 24, .92); }
.themed-player-audio .themed-player-media { display: none; }
.themed-player-art { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(120,191,247,.18); border-radius: 10px; background: linear-gradient(135deg, rgba(8,24,40,.98), rgba(14,47,74,.9)); color: #dff3ff; font-family: "Bebas Neue", sans-serif; font-size: 3rem; }
.themed-player-art img { width: 100%; height: 100%; object-fit: cover; }
.themed-player-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .75rem; border: 1px solid rgba(120,191,247,.18); border-radius: 12px; background: rgba(4,16,28,.9); }
.themed-player-play { min-width: 86px; border-radius: 999px; background: linear-gradient(135deg, #1683ff, #0a57c9); }
.themed-player-timeline { display: grid; gap: .35rem; min-width: 0; }
.themed-player-range { width: 100%; accent-color: #4ea7f4; }
.themed-player-time { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; }
#mediaPlayerModal.media-player-dock .media-player-card { border-top-color: #4ea7f4; }
#mediaPlayerModal.media-player-dock .media-player-head { border-radius: 12px; background: linear-gradient(135deg, rgba(8,24,40,.98), rgba(10,38,63,.96)); }
#mediaPlayerModal.media-player-dock .media-player-transport button { border-radius: 999px; }
#mediaPlayerModal.media-player-dock .media-player-video,
#mediaPlayerModal.media-player-dock .media-player-image,
#mediaPlayerModal.media-player-dock .media-player-frame { width: 100%; border-radius: 8px; }

@media (max-width: 900px) {
  .profile-content-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .profile-side-panel {
    position: sticky;
    top: 5.6rem;
    max-height: calc(100dvh - 6.6rem);
    overflow: auto;
    overscroll-behavior: contain;
  }
}


/* UBNet app parity update: make the template player persistent instead of modal-only. */
#mediaPlayerModal.media-player-dock {
  position: fixed;
  z-index: 20;
  inset: auto 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) 1rem;
  display: block;
  pointer-events: none;
  padding: 0;
  overflow: visible;
}

#mediaPlayerModal.media-player-dock[hidden] {
  display: none !important;
}

#mediaPlayerModal.media-player-dock .modal-backdrop {
  display: none;
}

#mediaPlayerModal.media-player-dock .media-player-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  pointer-events: auto;
  box-shadow: 0 18px 48px rgba(0,0,0,.46);
}

#mediaPlayerModal.media-player-dock .media-player-head {
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: .7rem;
  padding: .75rem;
}

#mediaPlayerModal.media-player-dock .media-player-artwork {
  width: 72px;
  max-width: 72px;
  border-radius: 12px;
}

#mediaPlayerModal.media-player-dock .media-player-video,
#mediaPlayerModal.media-player-dock .media-player-image {
  max-height: calc(100dvh - 15rem);
  object-fit: contain;
}

#mediaPlayerModal.media-player-dock .media-player-frame {
  min-height: min(72vh, 760px);
}

@media (max-width: 780px) {
  #mediaPlayerModal.media-player-dock {
    inset: auto .5rem calc(4.8rem + env(safe-area-inset-bottom, 0px)) .5rem;
  }

  #mediaPlayerModal.media-player-dock .media-player-card {
    max-height: calc(100dvh - 5.4rem);
  }

  #mediaPlayerModal.media-player-dock .media-player-head {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .65rem;
  }

  #mediaPlayerModal.media-player-dock .media-player-artwork {
    width: 54px;
    max-width: 54px;
  }
}

.feed-load-more {
  border: 1px dashed rgba(129, 192, 246, .34);
  border-radius: 999px;
  margin: .9rem auto 0;
  padding: .7rem 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 420px;
  background: rgba(12, 41, 66, .18);
}

.feed-load-more[data-has-more="true"] {
  cursor: pointer;
  color: var(--text);
  border-color: rgba(129, 192, 246, .58);
}

.feed-load-more[data-has-more="true"]:hover {
  background: rgba(129, 192, 246, .12);
}

@media (max-width: 780px) {
  body .page,
  body .page.app-profile {
    width: 100%;
    max-width: none;
    padding: .5rem 0 4.5rem;
  }

  .profile-content-grid,
  .profile-side-panel,
  .profile-main-column,
  .feed-section,
  .stack {
    width: 100%;
    gap: .5rem;
  }

  .card {
    width: 100%;
    margin: .5rem 0;
    padding: .5rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .side-card,
  .post-card,
  .list-card,
  .asset-card,
  .list-item,
  .empty-state,
  .status {
    padding: .5rem;
  }

  .feed-tabs-row,
  .section-head,
  .profile-stats,
  .action-row,
  .post-actions {
    gap: .45rem;
  }

  .media-preview-shell,
  .list-cover,
  .themed-player,
  .themed-player-art {
    width: calc(100% + 1rem);
    margin-right: -.5rem;
    margin-left: -.5rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .media-preview {
    min-height: 300px;
  }

  .profile-link-row {
    grid-template-columns: 1fr;
  }
}
