@import url("../theme.css.php");
:root {
  --bg: #060b16;
  --bg-elevated: #0a1325;
  --panel: rgba(8, 15, 30, 0.88);
  --panel-strong: rgba(9, 17, 33, 0.96);
  --line: rgba(126, 153, 198, 0.18);
  --line-strong: rgba(126, 153, 198, 0.3);
  --text: #eef4ff;
  --muted: #aab8d4;
  --accent: #7aa5ff;
  --accent-2: #79e3d2;
  --danger: #df6f86;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 40px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, rgba(53, 83, 170, 0.18), transparent 26%), radial-gradient(circle at bottom right, rgba(76, 173, 159, 0.18), transparent 28%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.page-shell { position: relative; min-height: 100vh; overflow-x: clip; }
.bg-orb, .bg-grid { position: fixed; inset: 0; pointer-events: none; }
.bg-orb-one { background: radial-gradient(circle at 15% 15%, rgba(122,165,255,.16), transparent 23%); }
.bg-orb-two { background: radial-gradient(circle at 85% 78%, rgba(121,227,210,.16), transparent 24%); }
.bg-grid { background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 36px 36px; opacity: .12; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%); }
.container, .auth-wrap, .install-shell, .admin-wrap { width: min(1280px, calc(100vw - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 40; padding: 24px 0 14px; backdrop-filter:none; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(7, 13, 27, 0.84); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line-strong); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 28px; line-height: 1; letter-spacing: .12em; }
.brand-copy small { color: var(--muted); font-size: 16px; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.site-nav a, .footer-links a, .admin-sidebar a { color: var(--muted); transition: .2s ease; }
.site-nav a:hover, .footer-links a:hover, .admin-sidebar a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switcher { display: inline-flex; gap: 8px; }
.lang-pill, .header-icon-btn, .menu-toggle, .button, .site-btn, .player-btn { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); color: var(--text); transition: .2s ease; }
.lang-pill { padding: 10px 14px; font-size: 13px; letter-spacing: .08em; }
.lang-pill.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04111f; border-color: transparent; font-weight: 700; }
.header-icon-btn { width: 52px; height: 52px; display: grid; place-items: center; position: relative; }
.header-icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04111f; font-size: 11px; font-weight: 800; }
.menu-toggle { display: none; width: 52px; height: 52px; padding: 0; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 999px; }
main { padding-bottom: 120px; }
.section-block, .hero-section { padding: 32px 0; }
.hero-grid { display:grid; grid-template-columns:minmax(0,0.95fr) minmax(320px,0.78fr); gap:22px; align-items:center; }
.hero-copy, .hero-visual, .surface-card, .person-card, .track-card, .premium-callout, .shop-card, .featured-card, .content-card, .gallery-card, .profile-sidebar, .messenger-sidebar, .messenger-main, .install-card, .auth-card, .track-admin-card, .gift-admin-card, .metric-card, .file-card, .media-library-card, .premium-order-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-copy, .surface-card, .profile-sidebar, .messenger-sidebar, .messenger-main, .install-card, .auth-card { padding: 32px; }
.hero-copy { display: grid; gap: var(--space-4); }
.eyebrow { display: inline-flex; align-items: center; padding: 8px 14px; width: fit-content; border-radius: 999px; border: 1px solid rgba(121,227,210,.32); background: rgba(121,227,210,.08); color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.hero-copy h1, .section-head h2, .surface-card h2, .admin-topbar h1, .profile-sidebar h1, .messenger-sidebar h1 { margin: 0; line-height: .96; }
.hero-copy h1 { font-size: clamp(48px, 7vw, 88px); max-width: 10ch; }
.hero-copy p, .section-head p, .small, .profile-sidebar p, .messenger-main p, .surface-card p { color: var(--muted); line-height: 1.55; margin: 0; }
.hero-actions, .person-actions, .track-card-actions, .stack-links, .actions, .inline-actions, .footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.button, .site-btn, .player-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; min-height: 50px; font-weight: 700; }
.button:hover, .site-btn:hover, .player-btn:hover, .header-icon-btn:hover, .lang-pill:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.button, .site-btn.primary, .player-btn.is-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04111f; border-color: transparent; }
.button-secondary, .site-btn.secondary, .button.button-secondary { background: rgba(255,255,255,.04); color: var(--text); }
.button-ghost, .site-btn.ghost { background: transparent; }
.site-btn.danger { background: rgba(223,111,134,.12); border-color: rgba(223,111,134,.28); color: #ffd7df; }
.is-disabled { opacity: .55; cursor: not-allowed; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.hero-stat { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.hero-stat strong { display: block; font-size: 28px; margin-bottom: 6px; }
.hero-visual { padding: 26px; display: grid; gap: 16px; }
.visual-main img { width: 100%; height: 420px; object-fit: cover; border-radius: 28px; }
.visual-stack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.stack-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); min-height: 152px; }
.stack-card img { width: 100%; height: 152px; object-fit: cover; }
.stack-card span { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(7,13,27,.72); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head.split-head { align-items: start; }
.featured-grid, .shop-grid, .track-grid, .people-grid, .content-grid, .gallery-grid, .dashboard-grid, .track-admin-grid, .gift-grid, .gift-list, .file-library, .media-library-grid { display: grid; gap: 20px; }
.featured-grid, .shop-grid, .track-grid, .gallery-grid, .dashboard-grid, .media-library-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.people-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.featured-card, .shop-card, .track-card, .person-card, .content-card, .gallery-card { overflow: hidden; }
.featured-media img, .track-cover, .shop-visual img, .gallery-card img, .content-card img { width: 100%; object-fit: cover; }
.featured-media img, .track-cover { height: 300px; }
.featured-copy, .track-card-body, .person-card > div, .shop-copy, .content-card > div { padding: 22px; display: grid; gap: 14px; }
.track-card { display: grid; }
.track-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.track-card-head h3, .featured-copy h3, .person-card h3, .shop-copy h3, .content-card h3 { margin: 0; font-size: 20px; }
.track-card-body p, .featured-copy p, .shop-copy p, .person-card p, .content-card p { margin: 0; color: var(--muted); }
.track-card-actions { align-items: center; }
.track-hint { color: var(--muted); font-size: 14px; }
.person-card { grid-template-columns: 92px 1fr; padding: 22px; display: grid; gap: 18px; align-items: start; }
.person-card img { width: 92px; height: 92px; border-radius: 26px; object-fit: cover; border: 1px solid var(--line); }
.inline-badged-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-badge { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 999px; }
.status-badge svg { width: 16px; height: 16px; fill: currentColor; }
.verified-badge { background: rgba(122,165,255,.18); color: #8cd5ff; border: 1px solid rgba(122,165,255,.32); }
.premium-badge { background: rgba(255,210,91,.16); color: #ffd25b; border: 1px solid rgba(255,210,91,.28); }
.pill, .pill-row .pill { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; font-weight: 700; }
.pill.is-good { background: rgba(121,227,210,.1); border-color: rgba(121,227,210,.24); }
.compact-search { display: flex; gap: 12px; width: min(430px, 100%); }
.search-input, .admin-input, .admin-textarea, select.admin-input { width: 100%; min-height: 54px; padding: 14px 16px; color: var(--text); border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); outline: none; }
.admin-textarea { min-height: 140px; resize: vertical; }
.search-input:focus, .admin-input:focus, .admin-textarea:focus { border-color: rgba(122,165,255,.5); box-shadow: 0 0 0 4px rgba(122,165,255,.12); }
label { display: grid; gap: 10px; color: var(--text); font-weight: 600; }
form { margin: 0; }
.form-grid, .install-grid, .auth-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.form-grid .span-2, .install-actions, .settings-grid .span-2 { grid-column: 1 / -1; }
.stack-form { display: grid; gap: 16px; }
.profile-layout, .messenger-layout, .admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; width: min(1320px, calc(100vw - 48px)); margin: 32px auto; }
.profile-sidebar, .messenger-sidebar { position: sticky; top: 116px; height: fit-content; display: grid; gap: 18px; }
.profile-avatar { width: 128px; height: 128px; object-fit: cover; border-radius: 34px; border: 1px solid var(--line); }
.back-link { color: #c9d7f5; }
.cover-card { overflow: hidden; min-height: 240px; background-size: cover; background-position: center; display: grid; align-items: end; }
.cover-overlay { padding: 28px; background: linear-gradient(180deg, rgba(7,13,27,.15), rgba(7,13,27,.85)); }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.metric-card { padding: 22px; }
.metric-card strong { display: block; margin-top: 10px; font-size: 48px; }
.admin-wrap { padding: 28px 0 48px; }
.admin-topbar { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 22px; }
.admin-grid { grid-template-columns: 260px 1fr; }
.admin-sidebar { padding: 18px; position: sticky; top: 116px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.admin-sidebar a { display: block; padding: 12px 14px; border-radius: 14px; }
.admin-sidebar a:hover { background: rgba(255,255,255,.04); }
.admin-main { display: grid; gap: 22px; }
.admin-flash { padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(121,227,210,.08); margin-bottom: 20px; }
.admin-flash.error { background: rgba(223,111,134,.12); border-color: rgba(223,111,134,.26); }
.track-admin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.track-admin-card, .gift-admin-card, .media-library-card, .premium-order-card { padding: 20px; }
.admin-track-cover { width: 100%; height: 240px; border-radius: 22px; object-fit: cover; border: 1px solid var(--line); }
.premium-callout { padding: 28px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; }
.premium-bank-box, .bank-card { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.premium-bank-box > div, .bank-card > div { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.03); display: grid; gap: 8px; }
.premium-bank-box span, .bank-card span { color: var(--muted); }
.site-footer { padding: 0 0 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(7,13,27,.84); }
.global-player { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60; display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 28px; background: rgba(5, 10, 20, 0.94); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter:none; }
.global-player.is-hidden { display: none; }
.global-player__cover { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; }
.global-player__meta { display: grid; gap: 12px; min-width: 0; }
.global-player__headline { display: grid; gap: 4px; }
.global-player__headline strong { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-player__headline span { color: var(--muted); }
.global-player__seek-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
#globalPlayerSeek { width: 100%; accent-color: #7fd9d3; }
.global-player__controls { display: flex; gap: 10px; }
.player-btn { width: 54px; height: 54px; padding: 0; font-size: 18px; }
.player-btn.is-primary { width: auto; min-width: 100px; padding: 0 18px; }
.user-list-item, .message-item, .gift-item { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); }
.user-list-item img, .message-avatar, .gift-item img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.user-list-item.is-active { border-color: rgba(122,165,255,.4); }
.message-thread { display: grid; gap: 12px; margin: 24px 0; }
.message-item.me { margin-left: 10%; }
.message-item.other { margin-right: 10%; }
.reply-preview { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); margin-bottom: 12px; }
.reply-preview.is-hidden { display: none; }
.install-body { min-height: 100vh; display: grid; align-items: center; }
.install-card { padding: 34px; margin: 24px 0; }
.install-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; margin-bottom: 22px; }
.install-tip.compact { padding: 20px; }
.content-grid > *,.gallery-grid > *,.shop-grid > * { min-width: 0; }
.news-card,.bio-card,.gallery-card,.shop-card { border-radius: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.03); overflow: hidden; }
.news-card > div,.bio-card > div,.gallery-card > div { padding: 22px; }
.shop-visual { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.shop-visual img { width: 100%; height: 100%; }
.media-preview { min-height: 200px; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; place-items: center; background: rgba(255,255,255,.03); }
.media-preview audio { width: 100%; }
.media-meta code { display: block; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-box, .receipt-box, .order-status-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.order-status-card.success { background: rgba(121,227,210,.1); border-color: rgba(121,227,210,.24); }
.receipt-preview { width: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; margin-top: 12px; }
@media (max-width: 1100px) {
  .hero-grid, .premium-callout, .profile-layout, .messenger-layout, .admin-grid, .install-head, .auth-grid, .install-grid, .settings-grid { grid-template-columns: 1fr; }
  .featured-grid, .shop-grid, .track-grid, .gallery-grid, .people-grid, .content-grid, .track-admin-grid, .dashboard-grid, .media-library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-sidebar, .messenger-sidebar, .admin-sidebar { position: static; }
  .site-nav { display: none; position: fixed; top: 108px; left: 16px; right: 16px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(6,12,24,.96); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px) {
  .container, .auth-wrap, .install-shell, .admin-wrap, .profile-layout, .messenger-layout { width: min(calc(100vw - 20px), 100%); }
  .header-inner, .hero-copy, .surface-card, .profile-sidebar, .messenger-sidebar, .messenger-main, .install-card, .auth-card, .track-card-body, .featured-copy, .shop-copy, .content-card > div, .person-card { padding: 20px; }
  .brand-copy strong { font-size: 22px; }
  .brand-copy small { font-size: 14px; }
  .hero-copy h1 { font-size: clamp(34px, 12vw, 56px); }
  .hero-stats, .premium-bank-box, .bank-card, .form-grid, .install-grid, .auth-grid, .settings-grid, .featured-grid, .shop-grid, .track-grid, .gallery-grid, .people-grid, .content-grid, .track-admin-grid, .dashboard-grid, .media-library-grid { grid-template-columns: 1fr; }
  .section-head, .admin-topbar, .footer-row, .header-inner { align-items: start; }
  .section-head, .footer-row, .admin-topbar { flex-direction: column; }
  .header-inner { grid-template-columns: 1fr; }
  .header-actions { width: 100%; justify-content: space-between; }
  .visual-main img, .featured-media img, .track-cover { height: 240px; }
  .global-player { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 60px 1fr; }
  .global-player__controls { grid-column: 1 / -1; justify-content: space-between; }
}


.skip-link{position:absolute;left:-9999px;top:auto}.skip-link:focus{left:16px;top:16px;z-index:99;padding:12px 16px;background:var(--panel-strong);border:1px solid var(--line);border-radius:14px}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .45s ease,transform .45s ease}.reveal.is-visible{opacity:1;transform:none}
.cookie-banner{position:fixed;right:16px;bottom:16px;z-index:60;max-width:380px;padding:18px;border-radius:22px;border:1px solid var(--line);background:var(--panel-strong);box-shadow:var(--shadow)}
.cookie-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.gallery-modal[hidden]{display:none!important}.gallery-modal{position:fixed;inset:0;z-index:80}.gallery-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}.gallery-dialog{position:relative;z-index:1;width:min(1080px,calc(100vw - 32px));margin:4vh auto;padding:20px;border-radius:28px;border:1px solid var(--line);background:var(--panel-strong);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px}.gallery-dialog figure{margin:0}.gallery-dialog img{max-height:76vh;width:auto;max-width:100%;margin:0 auto;border-radius:20px}.gallery-dialog figcaption{margin-top:12px;color:var(--muted);text-align:center}.gallery-close,.gallery-nav{width:52px;height:52px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);font-size:28px}
.player{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.player-button{width:48px;height:48px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#04111f;font-weight:800}.player-range{width:100%}.player-times{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.streaming-panel,.site-footer .footer-inner{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--panel);box-shadow:var(--shadow);padding:28px}.stream-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stream-link{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.03)}.stream-link img{width:28px;height:28px;object-fit:contain}
.site-footer{padding:0 0 36px}.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.footer-meta{display:grid;gap:8px}
@media (max-width:760px){.stream-links{grid-template-columns:1fr}.gallery-dialog{grid-template-columns:1fr;padding:16px}.gallery-nav{display:none}.cookie-banner{left:10px;right:10px;max-width:none}}


.utility-main{width:min(1040px,calc(100vw - 48px));margin:0 auto;padding:32px 0 96px}
.utility-card{padding:32px;display:grid;gap:18px;max-width:100%}
.utility-card h1{margin:0;font-size:clamp(38px,5vw,62px);line-height:1.02}
.utility-actions{display:flex;gap:12px;flex-wrap:wrap}
.legal-list{margin:0;padding-left:24px;display:grid;gap:10px;color:var(--text)}
.legal-list li{line-height:1.6}
.profile-main,.auth-card,.surface-card,.media-library-card,.gift-admin-card,.track-admin-card,.premium-order-card{min-width:0}
.surface-card h2,.surface-card h3,.auth-card h2,.profile-main h2,.profile-main h3{margin:0 0 12px}
.surface-card form,.gift-admin-card form,.track-admin-card form{min-width:0}
.profile-main .surface-card,.profile-main .cover-card{overflow:hidden}
.info-list{display:grid;gap:14px}
.info-list > div{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.03)}
.gift-grid.compact-gifts{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.gift-card{display:grid;gap:12px;padding:18px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.03);min-width:0}
.gift-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:rgba(255,255,255,.03)}
.gift-card strong,.gift-card span{display:block}
.gift-card .admin-input{width:100%}
.admin-input,.admin-textarea{width:100%;max-width:100%}
.admin-textarea{min-height:140px;resize:vertical}
.stack-form{display:grid;gap:16px;min-width:0}
.stack-form label,.form-grid label,.settings-grid label{display:grid;gap:10px;min-width:0}
.auth-grid{align-items:start}
.auth-card .surface-card{padding:24px}
.auth-card .stack-form .site-btn{width:100%}
.auth-inline-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.checkbox-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted)}
.auth-modal[hidden]{display:none!important}
.auth-modal{position:fixed;inset:0;z-index:90}
.auth-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.auth-modal__dialog{position:relative;z-index:1;width:min(460px,calc(100vw - 24px));margin:8vh auto;padding:22px;border-radius:24px;border:1px solid var(--line);background:var(--panel-strong);box-shadow:var(--shadow);display:grid;gap:14px}
.auth-modal__head{display:flex;justify-content:space-between;gap:16px;align-items:start}
.auth-modal__close{width:48px;height:48px;padding:0}
.profile-sidebar,.profile-main,.auth-card,.media-library-card,.gift-admin-card,.track-admin-card,.premium-order-card{overflow-wrap:anywhere}
.media-library-card{padding:18px;display:grid;gap:14px;align-content:start}
.media-library-card .actions{align-items:stretch}
.media-library-card .actions > *{flex:1 1 150px}
.media-library-card .actions form{display:flex;flex:1 1 150px}
.media-library-card .actions form .button{width:100%}
.cover-overlay{padding:32px;display:grid;gap:12px;min-height:210px;align-content:end}
.cover-overlay h2{margin:0;font-size:clamp(30px,4vw,46px);line-height:1.04}
.cover-overlay p{max-width:72ch}
.profile-public-layout .cover-overlay,.profile-layout .cover-overlay{background:linear-gradient(180deg,rgba(4,8,18,.18),rgba(4,8,18,.9))}
@media (max-width:1100px){
  .gift-grid.compact-gifts{grid-template-columns:1fr}
  .utility-main{width:min(calc(100vw - 20px),100%)}
}
@media (max-width:760px){
  .utility-card{padding:20px}
  .auth-modal__dialog{margin:6vh auto;padding:20px}
  .auth-inline-meta{align-items:flex-start;flex-direction:column}
}
.messenger-main { display:grid; gap:18px; }
.message-thread { display:grid; gap:14px; max-height:58vh; overflow:auto; padding-right:6px; }
.message-bubble { max-width:min(680px, 100%); padding:16px 18px; border-radius:20px; border:1px solid var(--line); background:rgba(255,255,255,.04); display:grid; gap:10px; }
.message-bubble.is-me { margin-left:auto; background:linear-gradient(180deg, rgba(92,168,255,.16), rgba(124,241,211,.08)); }
.message-meta,.message-actions-row { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.message-status { color:var(--muted); font-size:.82rem; }
.message-attachment img { display:block; width:min(280px,100%); border-radius:18px; border:1px solid var(--line); }
.message-sticker { width:132px; max-width:100%; display:block; }
.compose-box { display:grid; gap:14px; }
.compose-tools { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.upload-inline-btn input { display:none; }
.sticker-picker{
  display:block;
  width:100%;
  min-width:0;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.03);
}
.sticker-option { border:1px solid var(--line); background:rgba(255,255,255,.05); border-radius:16px; padding:8px; }
.sticker-option img { width:100%; aspect-ratio:1; object-fit:contain; }
.typing-indicator { padding:0 2px; }
.reply-snippet { padding:10px 12px; border-left:3px solid rgba(124,241,211,.55); background:rgba(255,255,255,.04); border-radius:12px; color:var(--muted); }
.gift-item { text-decoration:none; color:inherit; }
@media (max-width: 860px) {
  .message-bubble { max-width:100%; }
  .compose-tools > * { width:100%; }
}


.reply-link,
.site-chip-btn {
  appearance:none;
  border:1px solid rgba(124,241,211,.18);
  background:rgba(124,241,211,.08);
  color:#dffcf5;
  border-radius:999px;
  padding:8px 14px;
  font-weight:700;
  line-height:1;
}
.reply-link:hover,.site-chip-btn:hover { background:rgba(124,241,211,.14); }
.request-item { justify-content:space-between; align-items:center; gap:16px; }
.request-actions { display:flex; gap:10px; flex-wrap:wrap; margin-left:auto; }
.selected-sticker-badge {
  display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.05);
}
.selected-sticker-badge img { width:32px; height:32px; object-fit:contain; }
.sticker-option { display:grid; gap:6px; justify-items:center; color:var(--text); }
.sticker-option span { font-size:.78rem; color:var(--muted); }
.upload-progress { display:grid; gap:8px; margin-top:8px; width:100%; }
.upload-progress__meta { display:flex; justify-content:space-between; gap:12px; font-size:.84rem; color:var(--muted); }
.upload-progress__name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upload-progress__bar { height:8px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; }
.upload-progress__bar span { display:block; height:100%; width:0; border-radius:999px; background:linear-gradient(90deg, var(--accent), var(--accent-2, #7cf1d3)); transition:width .22s ease; }
@media (max-width: 860px) { .request-item { align-items:flex-start; } .request-actions { margin-left:0; width:100%; } }


.upload-progress.is-complete .upload-progress__bar span { background:linear-gradient(90deg, var(--accent-2, #7cf1d3), var(--accent)); }
.upload-progress.is-error .upload-progress__bar span { background:linear-gradient(90deg, #ff7a92, #ffb199); }
.notifications-layout { width:min(1200px, calc(100vw - 24px)); margin:24px auto 60px; display:grid; gap:18px; }
.notifications-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.notifications-filters { display:flex; gap:10px; flex-wrap:wrap; }
.notification-section { display:grid; gap:14px; }
.notification-list { display:grid; gap:12px; }
.notification-card { display:flex; gap:14px; align-items:flex-start; padding:16px; border-radius:20px; border:1px solid var(--line); background:rgba(255,255,255,.04); }
.notification-card img { width:56px; height:56px; border-radius:18px; object-fit:cover; border:1px solid var(--line); background:rgba(255,255,255,.04); }
.notification-card__copy { display:grid; gap:6px; min-width:0; flex:1; }
.notification-card__copy p, .notification-card__copy .small { margin:0; }
.notification-card__meta { display:flex; gap:10px; flex-wrap:wrap; align-items:center; color:var(--muted); font-size:.84rem; }
.notification-pill { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.05); color:var(--muted); font-size:.78rem; font-weight:700; }
.notification-card__actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-left:auto; }
@media (max-width: 860px) {
  .notification-card { flex-direction:column; }
  .notification-card__actions { margin-left:0; width:100%; }
}

.notifications-actions-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.avatar-stack{position:relative;display:inline-block}.online-dot{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border-radius:999px;border:2px solid rgba(9,15,28,.95);background:#687792}.online-dot.is-online{background:#64e5ae;box-shadow:0 0 0 4px rgba(100,229,174,.16)}.toggle-card{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.03)}.toggle-card input{margin-top:4px}.compact-settings-form{align-items:start}.sticker-pack{border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px 12px;background:rgba(255,255,255,.03)}.sticker-pack summary{cursor:pointer;font-weight:700}.sticker-pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;padding-top:12px}.toast-host{position:fixed;top:18px;right:18px;z-index:120;display:grid;gap:10px;max-width:min(360px,calc(100vw - 24px))}.toast-notice{display:grid;gap:6px;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(10,18,33,.95);backdrop-filter:none;color:#eef4ff;transform:translateY(-10px);opacity:0;transition:transform .26s ease,opacity .26s ease, box-shadow .26s ease;box-shadow:0 18px 38px rgba(0,0,0,.35)}.toast-notice.is-visible{transform:translateY(0);opacity:1}.toast-notice.is-messages{border-color:rgba(122,165,255,.35)}.toast-notice.is-friends{border-color:rgba(122,230,210,.35)}.toast-notice.is-gifts{border-color:rgba(255,212,122,.35)}.toast-badge{font-size:12px;font-weight:800;color:#79e3d2}.reply-link.site-chip-btn{padding:8px 12px;border-radius:999px;background:rgba(122,165,255,.12);border:1px solid rgba(122,165,255,.22)}


.header-notice-wrap{position:relative}
.header-notice-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(380px,calc(100vw - 24px));padding:14px;border-radius:22px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(10,18,33,.98),rgba(5,11,22,.98));box-shadow:0 24px 56px rgba(0,0,0,.42);backdrop-filter:none;z-index:85}
.header-notice-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.header-notice-head small{color:#9eb3d7}
.header-notice-list{display:grid;gap:8px;max-height:min(52vh,420px);overflow:auto}.header-notice-list::-webkit-scrollbar{width:10px}.header-notice-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.header-notice-item,.header-notice-list a{display:grid;gap:4px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);color:#eef4ff}
.header-notice-all{display:flex;justify-content:center;align-items:center;margin-top:10px;min-height:46px;border-radius:16px;background:rgba(122,165,255,.12);border:1px solid rgba(122,165,255,.24);color:#fff}
.header-player-close{display:flex;align-items:center;justify-content:center}
.header-player-dialog{max-width:min(1180px,calc(100vw - 24px));max-height:min(82vh,900px)}
.header-player-shell{grid-template-columns:minmax(0,1.35fr) minmax(280px,.72fr);gap:18px}.header-player-stage{padding:22px}.header-player-playlist{padding:18px}
.header-player-now{border-radius:26px;padding:18px;gap:18px;align-items:center}.header-player-cover{width:164px;height:164px;flex:0 0 164px}.header-player-now-copy strong{font-size:clamp(28px,3vw,42px)}.header-player-now-copy span{font-size:22px;color:#b8c8e6}
.header-player-control.is-play .icon-pause,.header-player-control.is-play .play-eq{display:none}.header-player-control.is-play.is-playing .icon-play{display:none}.header-player-control.is-play.is-playing .icon-pause,.header-player-control.is-play.is-playing .play-eq{display:inline-flex}
.play-eq{gap:3px;align-items:flex-end;height:16px}.play-eq i{display:block;width:3px;border-radius:99px;background:#7ae6d2;animation:playerEq 1s ease-in-out infinite}.play-eq i:nth-child(2){animation-delay:.15s}.play-eq i:nth-child(3){animation-delay:.3s}@keyframes playerEq{0%,100%{height:5px}50%{height:15px}}
.home-user-card .avatar-stack>img{width:72px;height:72px;border-radius:22px;object-fit:cover}.home-user-presence{display:block;margin-top:8px;color:#aab8d6;font-size:13px}.home-user-presence.is-online{color:#7ae6d2}
.upload-inline-btn{position:relative;overflow:hidden}.upload-inline-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}
@media (max-width: 900px){.header-player-shell{grid-template-columns:1fr}.header-player-cover{width:112px;height:112px;flex-basis:112px}.header-player-now-copy strong{font-size:26px}.header-player-now-copy span{font-size:18px}}
@media (max-width: 680px){.header-notice-dropdown{right:-20px}.header-player-now{grid-template-columns:1fr;justify-items:start}.header-player-cover{width:96px;height:96px}.message-thread{min-height:240px}}

.header-notice-dropdown[hidden], .header-player-panel[hidden], .auth-modal[hidden]{display:none !important;}
body.header-player-open{overflow:hidden;}
body.header-player-open .site-header{filter:none;}
.header-icon-btn.is-playing,.header-player-btn.is-playing{border-color:rgba(122,230,210,.4);box-shadow:0 0 0 4px rgba(122,230,210,.12);}
.online-state-badge{width:18px;height:18px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.online-state-badge i{display:block;width:8px;height:8px;border-radius:999px;background:#7f8aa1}
.online-state-badge.is-online i{background:#64e5ae;box-shadow:0 0 0 4px rgba(100,229,174,.16)}
.header-notice-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.header-notice-head-actions{display:flex;align-items:center;gap:10px}.header-notice-close{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:var(--text);cursor:pointer}.header-notice-dropdown{display:grid;gap:12px}.header-notice-all{display:flex;align-items:center;justify-content:center}

.auth-wrap{width:min(1180px,calc(100vw - 32px));margin:0 auto;padding:40px 0 60px}.auth-card{display:grid;gap:24px}.auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.auth-card .stack-form{display:grid;gap:14px}.auth-card .stack-form label{display:grid;gap:8px}.auth-inline-meta .button-ghost{padding:10px 14px;min-height:44px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--text);white-space:nowrap}.login-card{min-height:min(72vh,720px);align-content:center}.toggle-card,.checkbox-row,.auth-inline-meta,.profile-main .surface-card,.profile-sidebar,.messenger-main,.messenger-sidebar,.surface-card form,.settings-grid,.dashboard-grid,.gift-list,.gift-grid{min-width:0}.toggle-card strong,.toggle-card span,.admin-label,.small,.surface-card p,.surface-card h2,.surface-card h3{overflow-wrap:anywhere}.public-cover,.cover-card{overflow:hidden}@media(max-width:860px){.auth-grid{grid-template-columns:1fr}.auth-wrap{width:min(calc(100vw - 18px),1180px)}}


/* ===== hotfix 2026-04-14 ===== */
html,body{max-width:100%;overflow-x:hidden}
body.app-shell{min-height:100vh}
body.app-shell .surface-card,body.app-shell .profile-sidebar,body.app-shell .messenger-sidebar,body.app-shell .messenger-main,body.app-shell .auth-card,body.app-shell .install-card{backdrop-filter:blur(14px)}
form,label,.stack-form,.settings-grid,.form-grid,.auth-grid,.dashboard-grid,.gift-grid,.gift-list,.messenger-layout,.profile-layout,.profile-main,.messenger-main,.messenger-sidebar{min-width:0}
label{display:grid;gap:8px}
input,textarea,select,button{max-width:100%}
.admin-input,.admin-textarea,select.admin-input{width:100%;min-width:0}
.form-grid{align-items:start}
.form-grid>.span-2,.settings-grid>.span-2{grid-column:1/-1}
.profile-layout{align-items:start;grid-template-columns:minmax(280px,320px) minmax(0,1fr)}
.profile-main,.messenger-main{display:grid;gap:22px;min-width:0}
.profile-sidebar{position:sticky;top:24px;align-self:start;display:grid;gap:16px}
.profile-sidebar .stack-links{display:grid;grid-template-columns:1fr;gap:10px}
.profile-sidebar .site-btn{width:100%}
.cover-card{background-position:center;background-size:cover;position:relative;overflow:hidden;min-height:280px;display:flex;align-items:flex-end}
.cover-overlay{width:100%;padding:32px;border-radius:24px;background:linear-gradient(180deg,rgba(3,8,18,.12),rgba(3,8,18,.82) 70%)}
.cover-overlay h2{font-size:clamp(2rem,4vw,3.6rem);line-height:1.02;max-width:12ch;margin:0 0 10px}
.cover-overlay p{max-width:62ch}
.bank-card,.colon-bank-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bank-card>div,.colon-bank-box>div,.info-list>div{padding:16px 18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.info-list{display:grid;gap:12px}
#profile-preferences .compact-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.toggle-card{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:14px;align-items:start;padding:18px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025))}
.toggle-card input{width:18px;height:18px;margin:4px 0 0;accent-color:var(--accent)}
.toggle-card span{display:grid;gap:6px;min-width:0}
.toggle-card strong{display:block;font-size:1.05rem;line-height:1.25;color:var(--text);overflow-wrap:anywhere}
.toggle-card small{display:block;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
#profile-preferences .admin-label{display:grid;gap:10px;padding:18px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.025))}
#profile-preferences .site-btn{min-width:220px}
.auth-wrap{padding:32px 0 64px}
.auth-card{padding:32px}
.auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.auth-card .surface-card,.auth-card .stack-form,.auth-grid>.surface-card{height:100%}
.auth-inline-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.checkbox-row{display:flex;align-items:center;gap:10px}
.checkbox-row input{width:18px;height:18px}
.messenger-layout{align-items:start;grid-template-columns:minmax(280px,340px) minmax(0,1fr)}
.messenger-sidebar{position:sticky;top:24px;display:grid;gap:14px;max-height:calc(100vh - 48px);overflow:auto}
.user-list-item{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;padding:14px;border-radius:18px;border:1px solid transparent;background:rgba(255,255,255,.025)}
.user-list-item:hover,.user-list-item.is-active{border-color:rgba(122,165,255,.2);background:rgba(122,165,255,.08)}
.user-list-item img{width:52px;height:52px;border-radius:16px;object-fit:cover}
.message-thread{min-height:360px;max-height:60vh;overflow:auto;padding-right:4px}
.message-bubble{max-width:min(100%,720px)}
.compose-box{display:grid;gap:14px}
.compose-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.compose-tools>*{flex:1 1 180px}
.gift-list{grid-template-columns:1fr}
.gift-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.gift-item img{width:56px;height:56px;border-radius:16px;object-fit:cover}
.request-item{grid-template-columns:56px minmax(0,1fr) auto;align-items:center}
.request-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.notifications-layout .notification-list,.notifications-layout .notification-section{min-width:0}
body.utility-page .header-inner{grid-template-columns:auto 1fr auto}
@media (max-width:1100px){.profile-layout,.messenger-layout{grid-template-columns:1fr}.profile-sidebar,.messenger-sidebar{position:static;max-height:none}.cover-card{min-height:240px}.cover-overlay h2{max-width:none}}
@media (max-width:860px){.auth-grid,.dashboard-grid,.bank-card,.colon-bank-box,#profile-preferences .compact-settings-form,.request-item{grid-template-columns:1fr}.auth-card,.profile-sidebar,.messenger-sidebar,.messenger-main,.surface-card{padding:20px}.compose-tools>*{flex:1 1 100%}.request-actions{justify-content:stretch}.request-actions>*{flex:1 1 100%}.cover-overlay{padding:24px}}
@media (max-width:640px){.container,.auth-wrap,.install-shell,.admin-wrap,.profile-layout,.messenger-layout,.notifications-layout{width:min(calc(100vw - 16px),1320px)}.header-inner{padding:14px 16px}.profile-avatar{width:112px;height:112px}.cover-card{min-height:200px}.cover-overlay h2{font-size:clamp(1.7rem,9vw,2.4rem)}.toggle-card{grid-template-columns:20px minmax(0,1fr);padding:16px}.auth-inline-meta{align-items:stretch}.auth-inline-meta>*{width:100%}.button,.site-btn{width:100%}}

/* ===== fixes 2026-04-14 rev3 ===== */
input[type="range"]{accent-color:var(--accent)}
#profile-preferences input[type="range"]{appearance:none;-webkit-appearance:none;height:12px;border-radius:999px;background:linear-gradient(90deg,var(--accent) 0%,var(--accent) var(--range-fill,70%),rgba(255,255,255,.12) var(--range-fill,70%),rgba(255,255,255,.12) 100%);outline:none}
#profile-preferences input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:999px;background:#1f7cff;border:2px solid #97fff1;box-shadow:0 0 0 4px rgba(31,124,255,.16)}
#profile-preferences input[type="range"]::-moz-range-thumb{width:18px;height:18px;border:none;border-radius:999px;background:#1f7cff;box-shadow:0 0 0 4px rgba(31,124,255,.16)}
.auth-modal__dialog{max-width:min(460px,calc(100vw - 24px))}
.auth-modal__dialog .stack-form,.auth-forgot-form{display:grid;gap:14px;align-content:start}
.auth-modal__dialog .site-btn{width:100%}
.compose-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.compose-tools>*{min-width:0}
.compose-tools .selected-sticker-badge{grid-column:1/-1;justify-self:start}
.improved-sticker-picker{padding:16px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))}
.sticker-pack{padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.03)}
.sticker-pack summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:800;color:var(--text)}
.sticker-pack summary::-webkit-details-marker{display:none}
.sticker-pack-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px}
.sticker-option{padding:12px;border-radius:18px;transition:border-color .2s ease,transform .2s ease,background .2s ease}
.sticker-option:hover{transform:translateY(-2px);border-color:rgba(122,165,255,.24);background:rgba(122,165,255,.08)}
.notification-card__actions .pill,.section-head .pill,.sidebar-headline .pill,.stack-links .pill{display:none}
.notifications-filters .site-btn{min-width:140px;justify-content:center}
.notifications-actions-bar .site-btn{min-width:180px;justify-content:center}
.notification-card{position:relative}
.notification-card__actions{align-self:center}
.gift-item img[src=""],.notification-card img[src=""],.message-attachment img[src=""],.promo-player-cover img[src=""],.header-player-cover img[src=""]{display:none}
.gift-item,.notification-card,.message-bubble,.sticker-pack,.selected-sticker-badge{min-width:0}
.upload-inline-btn{justify-content:center}
.message-bubble p{margin:0;line-height:1.55}
.message-bubble .message-attachment img{max-height:220px;object-fit:cover}
.message-bubble .message-sticker{border-radius:18px;background:rgba(255,255,255,.03);padding:6px}
@media(max-width:980px){.compose-tools{grid-template-columns:1fr 1fr}.compose-tools .site-btn.primary{grid-column:1/-1}}
@media(max-width:640px){.compose-tools{grid-template-columns:1fr}.auth-modal__dialog{margin:8vh auto;padding:18px}}


/* 2026-04-14 fixes */
.site-header,.global-player,.toast-notice,.header-notice-dropdown,.surface-card,.profile-sidebar,.messenger-sidebar,.messenger-main,.auth-card,.install-card{backdrop-filter:none !important;}
body.header-player-open .site-header{filter:none !important;}
.header-player-btn{overflow:hidden;}
.header-player-btn .header-player-mini-eq{display:none;align-items:flex-end;gap:2px;height:16px;}
.header-player-btn .header-player-mini-eq i{display:block;width:3px;height:6px;border-radius:999px;background:currentColor;animation:playerEq 1s ease-in-out infinite;}
.header-player-btn .header-player-mini-eq i:nth-child(2){animation-delay:.15s}
.header-player-btn .header-player-mini-eq i:nth-child(3){animation-delay:.3s}
.header-player-btn.is-playing .header-player-icon{display:none;}
.header-player-btn.is-playing .header-player-mini-eq{display:inline-flex;}
.compose-tools{display:grid;grid-template-columns:repeat(3,minmax(0,max-content));align-items:start;}
.compose-tools .site-btn{max-width:100%;}
.compose-box .upload-progress,.compose-box .sticker-picker,.compose-box .selected-sticker-badge{grid-column:1/-1;}
.compose-box .upload-progress{margin-top:0;}
#messageComposer .upload-inline-btn{white-space:normal;text-align:center;justify-content:center;min-height:52px;display:inline-flex;align-items:center;}
#messageComposer .admin-textarea{min-height:120px;}
@media (max-width: 860px){.compose-tools{grid-template-columns:1fr;}.compose-tools > *{width:100%;}}


.messenger-layout { align-items:start; }
.messenger-main { min-width:0; min-height:calc(100vh - 150px); grid-template-rows:auto auto minmax(280px, 1fr) auto auto; }
.message-thread { display:flex; flex-direction:column; align-items:stretch; min-height:320px; max-height:62vh; overflow:auto; overscroll-behavior:contain; padding-right:8px; }
.message-thread > .small { margin:auto 0; }
.message-bubble { width:min(680px, 100%); box-sizing:border-box; }
.compose-box { min-width:0; }
.compose-box .admin-textarea { min-height:132px; }
.compose-tools { display:grid; grid-template-columns:repeat(3, minmax(0, max-content)); align-items:start; justify-content:start; }
.compose-tools > * { min-width:0; }
.compose-tools .selected-sticker-badge { align-self:center; }
.auth-grid > .surface-card, .auth-card .stack-form { min-width:0; }
.auth-card input, .auth-card textarea, .auth-card button { position:relative; z-index:1; }
.form-grid > label, .form-grid > .span-2, .dashboard-grid > .surface-card { min-width:0; }
.form-grid > label input[type="file"], .stack-form input[type="file"] { width:100%; min-width:0; }
.home-users-section .admin-flash { margin:0 0 18px; }
.home-user-card { min-width:0; }
.home-user-meta { display:grid; gap:14px; min-width:0; }
.home-user-copy { min-width:0; display:grid; gap:8px; }
.home-user-copy > p { overflow-wrap:anywhere; }
.home-user-status { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:.9rem; }
.home-user-status .pill { color:var(--text); }
.home-user-actions form { flex:1 1 180px; min-width:0; }
.home-user-actions form .button, .home-user-actions form .button-secondary, .home-user-actions .pill { width:100%; }
.home-user-actions .pill { justify-content:center; min-height:42px; box-sizing:border-box; }
@media (max-width:980px){ .messenger-main { min-height:auto; grid-template-rows:auto auto minmax(240px, 1fr) auto auto; } .compose-tools{grid-template-columns:repeat(2,minmax(0,1fr));} .compose-tools .site-btn.primary{grid-column:1/-1;} }
@media (max-width:640px){ .message-thread{max-height:none; min-height:260px;} .compose-tools{grid-template-columns:1fr;} }

.header-player-controls,.promo-player-controls{display:flex;align-items:center;gap:10px}
.header-player-control,.promo-player-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--text);padding:0;font-size:1.2rem;line-height:1;box-shadow:none;-webkit-appearance:none;appearance:none;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}
.header-player-control:hover,.promo-player-btn:hover{transform:translateY(-1px);border-color:rgba(121,227,210,.36);background:rgba(255,255,255,.1)}
.header-player-control.is-play,.promo-player-btn.is-play{width:56px;height:56px;background:linear-gradient(135deg,var(--accent),var(--accent-2,#79e3d2));color:#07111f;border-color:transparent;font-weight:800}
.header-player-control.is-play .icon-pause,.header-player-control.is-play .play-eq,.promo-player-btn.is-play .icon-pause,.promo-player-btn.is-play .play-eq{display:none}
.header-player-control.is-play.is-playing .icon-play,.promo-player-btn.is-play.is-playing .icon-play{display:none}
.header-player-control.is-play.is-playing .icon-pause,.header-player-control.is-play.is-playing .play-eq,.promo-player-btn.is-play.is-playing .icon-pause,.promo-player-btn.is-play.is-playing .play-eq{display:inline-flex}
.play-eq{gap:2px;align-items:flex-end}
.play-eq i{display:block;width:3px;height:10px;border-radius:999px;background:currentColor;animation:eqWave 1s ease-in-out infinite}
.play-eq i:nth-child(2){animation-delay:.16s}.play-eq i:nth-child(3){animation-delay:.32s}
@keyframes eqWave{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1.15)}}
.profile-status-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.profile-player-fab{position:fixed;right:22px;bottom:22px;z-index:65;border:1px solid var(--line);border-radius:999px;padding:14px 18px;background:linear-gradient(135deg,var(--accent),var(--accent-2,#79e3d2));color:#07111f;font-weight:800;box-shadow:var(--shadow)}.message-file-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04)}@media(max-width:860px){.profile-status-columns{grid-template-columns:1fr}.profile-player-fab{right:14px;bottom:14px}}

/* r6 targeted fixes */
#edit-profile .profile-edit-grid{margin-top:18px}
.profile-status-columns .pill,.profile-sidebar .pill-row.compact-pill-row .pill{font-size:11px;line-height:1.15;padding:10px 12px}
#friend-requests h2{position:relative;display:inline-flex;align-items:center;padding-right:28px}
#friend-requests h2 .icon-badge{right:0;top:-4px}
.sticker-pack-grid{display:grid}


/* 2026-04-14 r7 profile + messages hotfix */
.messenger-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}
.messenger-head>.user-list-item{flex:1 1 320px;min-width:0}
.messenger-head>form{display:flex;margin-top:8px}
.messenger-head>form .site-btn{min-width:220px}
.profile-main .dashboard-grid>.surface-card{display:grid;gap:16px;align-content:start}
.profile-main .dashboard-grid>.surface-card>strong{display:block;font-size:1.25rem;line-height:1.28;overflow-wrap:anywhere}
.profile-main .dashboard-grid>.surface-card>p,.profile-main .dashboard-grid>.surface-card .small{overflow-wrap:anywhere}
.bank-card,.colon-bank-box{margin-top:2px}
.bank-card>div,.colon-bank-box>div,.order-status-card{min-width:0;align-content:start}
.bank-card>div strong,.colon-bank-box>div strong,.order-status-card strong,.order-status-card p{overflow-wrap:anywhere;word-break:break-word;line-height:1.35}
.order-status-card{display:grid;gap:6px}
.surface-card .stack-form>label,.surface-card .form-grid>label{display:grid;gap:8px;min-width:0}
.notification-list{display:grid;gap:14px}
.profile-player-fab.is-playing{box-shadow:0 0 0 4px rgba(121,227,210,.18),var(--shadow)}
.profile-sidebar .stack-links [data-live-message-count],.profile-sidebar .stack-links [data-live-notice-count]{display:inline-flex !important}
@media (max-width:860px){
  .messenger-head{gap:14px}
  .messenger-head>form{margin-top:0;width:100%}
  .messenger-head>form .site-btn{width:100%;min-width:0}
}


.profile-player-fab{transition:transform .22s ease,opacity .22s ease,background .22s ease,border-color .22s ease,color .22s ease}
.profile-player-fab:hover{transform:translateY(-1px)}


/* 2026-04-14 r12 exact shared player sync */
.header-player-dialog{position:relative;z-index:1;width:min(1240px,calc(100vw - 32px));margin:112px auto 24px;max-height:calc(100vh - 120px);overflow:auto}
.header-player-shell{width:100%;position:relative}
.header-player-close{position:absolute;top:18px;right:18px;z-index:3}
.header-player-playlist{min-height:100%;box-sizing:border-box}
@media (max-width:840px){.header-player-dialog{width:calc(100vw - 20px);margin-top:96px}}


/* 2026-04-14 r13 unified premium player final */
.header-player-panel{position:fixed;inset:0;z-index:80}
.header-player-backdrop{position:absolute;inset:0;background:rgba(2,6,15,.68);backdrop-filter:blur(10px) saturate(1.02)!important}
.header-player-dialog{position:relative;z-index:1;width:min(1220px,calc(100vw - 32px));margin:96px auto 24px;max-height:calc(100vh - 120px);overflow:visible!important}
.header-player-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 360px;width:100%;min-height:min(58vh,620px);overflow:hidden;border-radius:36px;border:1px solid rgba(130,170,255,.2);background:linear-gradient(140deg,rgba(10,19,38,.96),rgba(5,10,22,.97));box-shadow:0 40px 120px rgba(0,0,0,.48)}
.header-player-shell::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top left,rgba(103,164,255,.22),transparent 36%),radial-gradient(circle at bottom right,rgba(124,241,211,.14),transparent 28%);pointer-events:none}
.header-player-close{position:absolute;top:16px;right:16px;z-index:4;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:var(--text);font-size:1.35rem;line-height:1}
.header-player-stage,.header-player-playlist,.header-player-now{position:relative;min-width:0}
.header-player-stage{display:grid;align-content:start;gap:14px;padding:24px}
.header-player-stage h3{margin:0;font-size:clamp(1.55rem,3.2vw,2.45rem)}
.header-player-stage p{margin:0;color:var(--muted);max-width:56ch}
.header-player-now{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:'cover copy' 'controls controls' 'progress progress';gap:16px;max-width:760px;padding:22px;border-radius:28px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025))}
.header-player-cover{grid-area:cover;width:96px;height:96px;aspect-ratio:1;border-radius:26px;overflow:hidden;background:rgba(255,255,255,.04)}
.header-player-cover img{display:block;width:100%;height:100%;object-fit:cover}
.header-player-now-copy{grid-area:copy;display:grid;gap:6px;min-width:0;align-content:center}
.header-player-now-copy strong{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.12;overflow-wrap:anywhere}
.header-player-now-copy span{font-size:1rem;color:#bcc9df;overflow-wrap:anywhere}
.header-player-controls{grid-area:controls;display:flex;align-items:center;gap:10px}
.header-player-progress{grid-area:progress;display:grid;gap:8px;min-width:0}
.header-player-progress input{width:100%}
.header-player-playlist{display:grid;align-content:start;gap:14px;padding:24px 20px;border-left:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));box-sizing:border-box}
.header-player-playlist-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:52px}
.header-player-track{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:14px;border-radius:22px;border:1px solid transparent;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));text-align:left;color:var(--text);box-sizing:border-box}
.header-player-track img{display:block;width:64px;height:64px;border-radius:18px;object-fit:cover;background:rgba(255,255,255,.04)}
.header-player-track-copy{display:grid;gap:4px;min-width:0}
.header-player-track-copy strong,.header-player-track-copy small{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-player-track-copy strong{font-size:1rem;line-height:1.2}
.header-player-track-copy small{font-size:.92rem;color:var(--muted)}
.header-player-index,.header-player-lock{justify-self:end}
@media (max-width:1100px){.header-player-shell{grid-template-columns:1fr}.header-player-playlist{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.header-player-playlist-head{padding-right:52px}}
@media (max-width:760px){.header-player-dialog{width:calc(100vw - 14px);margin-top:74px}.header-player-stage{padding:18px}.header-player-now{grid-template-columns:1fr;grid-template-areas:'cover' 'copy' 'controls' 'progress';padding:18px}.header-player-cover{width:84px;height:84px}.header-player-track{grid-template-columns:56px minmax(0,1fr) auto;gap:12px}.header-player-track img{width:56px;height:56px;border-radius:16px}}

/* 2026-04-15 v12 social/profile/media polish */
html{scroll-behavior:smooth}
body{opacity:1;transition:opacity .18s ease,transform .18s ease}
body.is-page-leaving{opacity:.86;transform:translateY(2px)}
.sticky-col{position:sticky;top:18px;align-self:start}
.profile-layout-extended .profile-main{display:grid;gap:18px}
.profile-quick-nav{display:grid;gap:8px;margin:14px 0 6px}
.profile-quick-nav a{display:block;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.03);color:var(--text);text-decoration:none}
.two-col-equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.inline-form-grid,.search-row,.message-submit-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.feed-stack{display:grid;gap:16px}
.feed-card{display:grid;gap:14px}
.feed-head,.feed-author,.comment-row{display:flex;gap:12px;align-items:flex-start}
.feed-head{justify-content:space-between;flex-wrap:wrap}
.feed-author img,.comment-row img{width:46px;height:46px;border-radius:14px;object-fit:cover}
.feed-content{font-size:1rem;line-height:1.6;color:var(--text)}
.feed-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:start}
.feed-media,.gallery-tile img,.gallery-tile video{display:block;width:100%;height:240px;object-fit:cover;border-radius:20px;background:rgba(255,255,255,.04)}
.feed-audio{width:100%}
.feed-actions{display:flex;gap:10px;flex-wrap:wrap}
.feed-comments{display:grid;gap:10px;padding-top:6px;border-top:1px solid rgba(255,255,255,.08)}
.comment-row{padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.03)}
.comment-row p{margin:.3rem 0 .35rem}
.comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.gallery-grid.profile-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.gallery-tile{margin:0;display:grid;gap:8px}
.gallery-tile figcaption{font-size:.92rem;color:var(--muted);margin-top:2px}
.music-list{display:grid;gap:14px}
.music-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:start;padding:14px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.music-card img{width:92px;height:92px;border-radius:18px;object-fit:cover;background:rgba(255,255,255,.05)}
.music-card h3{margin:0 0 6px}
.music-card p{margin:0 0 10px}
.compact-music-list .music-card{grid-template-columns:76px minmax(0,1fr)}
.compact-music-list .music-card img{width:76px;height:76px;border-radius:16px}
.compact-comment{min-height:96px}
.public-message-form .message-submit-row{margin-top:12px}
.empty-state{padding:18px;border:1px dashed rgba(255,255,255,.14);border-radius:18px;color:var(--muted);background:rgba(255,255,255,.02)}
button.is-loading, .site-btn.is-loading{opacity:.72;pointer-events:none}
button.is-loading::after, .site-btn.is-loading::after{content:'…';margin-left:6px}
@media (max-width:1100px){.sticky-col{position:static}.two-col-equal{grid-template-columns:1fr}}
@media (max-width:760px){
  .profile-layout-extended{display:block}
  .profile-layout-extended .profile-sidebar{margin-bottom:16px}
  .feed-media,.gallery-tile img,.gallery-tile video{height:200px}
  .music-card{grid-template-columns:1fr}
  .music-card img{width:100%;height:220px}
  .comment-form{grid-template-columns:1fr}
  .inline-form-grid,.search-row,.message-submit-row{align-items:stretch}
  .inline-form-grid > *, .search-row > *, .message-submit-row > *{flex:1 1 100%}
}
@media (orientation:portrait) and (max-width:540px){
  .feed-media-grid,.gallery-grid.profile-gallery-grid{grid-template-columns:1fr}
}

.feed-compose-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}.feed-upload-field{min-width:0}.feed-submit-wrap{padding-bottom:2px}.feed-author-copy{display:grid;gap:8px}.feed-date{display:block;margin-top:2px}.track-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.compact-track-card{grid-template-columns:84px minmax(0,1fr);align-items:center}.compact-track-card img{width:84px;height:84px;border-radius:20px;object-fit:cover}.music-search-results .music-card{padding:16px 18px}.public-message-form .message-submit-row{margin-top:18px}.header-player-search{display:block}.header-player-search .admin-input{width:100%}.auth-modal__dialog{max-width:min(460px,calc(100vw - 28px));padding:20px 20px 18px}.auth-modal__head h2{font-size:clamp(1.35rem,2vw,1.8rem)}.auth-forgot-form{gap:14px}.profile-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.music-search-row{margin-bottom:18px}.inline-form{display:inline-flex}.feed-card .feed-head{gap:16px;align-items:flex-start}.feed-card .pill{white-space:nowrap}@media(max-width:980px){.feed-compose-row,.profile-edit-grid{grid-template-columns:1fr}.feed-card .feed-head{display:grid}}@media(max-width:720px){.compact-track-card{grid-template-columns:64px minmax(0,1fr)}.compact-track-card img{width:64px;height:64px;border-radius:16px}.track-action-row,.music-search-row{display:grid;grid-template-columns:1fr}.profile-player-fab{padding:12px 16px}.auth-modal__dialog{max-width:min(400px,calc(100vw - 20px));padding:16px}}


/* 2026-04-15 final patch */
.profile-meta-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.public-track-audio{width:min(100%,320px)}
.feed-compose-shell{display:grid;gap:14px;padding:18px 20px;margin-bottom:20px;border:1px solid rgba(255,255,255,.07);border-radius:22px;background:rgba(255,255,255,.02)}
.feed-compose-shell h3{margin:0}
.password-change-form{padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}
.header-player-playlist{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}
.header-player-playlist::-webkit-scrollbar{width:0;height:0}
.header-player-search .admin-input{padding-right:48px}
.auth-wrap{padding:24px 0 42px}
.login-card{min-height:auto;align-content:start}
.auth-card .surface-card{padding:22px}
.auth-card .site-btn{min-height:50px}
.auth-card .admin-input,.auth-card .admin-textarea,.auth-card select.admin-input{min-height:48px;padding:12px 14px}
.auth-modal__dialog{width:min(380px,calc(100vw - 20px));margin:5vh auto;padding:18px 18px 16px;border-radius:22px}
.auth-modal__close{width:42px;height:42px}
.auth-modal__dialog .admin-input{min-height:46px}
@media(max-width:860px){.auth-card .surface-card{padding:18px}.auth-card .site-btn{width:100%}}

/* 2026-04-15 v15 final ui fixes */
.auth-wrap{width:min(1040px,calc(100vw - 28px));padding:26px 0 42px}.auth-grid{gap:18px}.auth-grid>.surface-card{padding:18px}.auth-card .stack-form{gap:12px}.auth-card .stack-form label{gap:6px}.auth-card .admin-input{min-height:48px}.auth-card .site-btn{min-height:48px;max-width:320px;width:100%;justify-self:start}.auth-inline-meta{margin-top:2px}.auth-inline-meta .button-ghost{min-height:40px;padding:8px 12px}.auth-modal__dialog{width:min(330px,calc(100vw - 18px));margin:4vh auto;padding:14px 14px 12px;border-radius:20px}.auth-modal__head h2{font-size:clamp(1.2rem,2vw,1.7rem);line-height:1.05}.auth-modal__dialog .admin-input{min-height:42px}.auth-modal__close{width:38px;height:38px}.header-player-search .admin-input,.header-player-search input[type=search]{-webkit-appearance:none;appearance:none;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1);color:var(--text);min-height:44px;border-radius:16px}.header-player-search input[type=search]::-webkit-search-decoration,.header-player-search input[type=search]::-webkit-search-cancel-button,.header-player-search input[type=search]::-webkit-search-results-button,.header-player-search input[type=search]::-webkit-search-results-decoration{display:none}.header-player-playlist{scrollbar-width:none}.header-player-playlist::-webkit-scrollbar{width:0;height:0}.site-btn.is-static{pointer-events:none;opacity:.85}.public-track-audio{width:min(100%,300px)}.track-action-row{align-items:center}.profile-meta-list{display:none} @media(max-width:860px){.auth-card .site-btn{max-width:none;width:100%}}

/* ===== css audit fixes 2026-04-15 ===== */
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{-webkit-tap-highlight-color:transparent}
a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"],label[for],summary,.site-btn,.button,.player-btn,.header-icon-btn,.menu-toggle,.header-player-track,.profile-player-fab{touch-action:manipulation}
[hidden]{display:none !important}
.bg-orb,.bg-grid,.stack-card::after,.header-player-shell::before,.header-player-shell::after,.track-cover::after{pointer-events:none}
.site-header,.header-inner,.surface-card,.profile-sidebar,.messenger-sidebar,.messenger-main,.auth-card,.install-card,.header-player-dialog,.header-player-shell,.header-player-stage,.header-player-playlist,.header-notice-dropdown{isolation:isolate}
.auth-modal,.header-player-panel{pointer-events:auto}
.auth-modal[hidden],.header-player-panel[hidden],.header-notice-dropdown[hidden]{opacity:0;visibility:hidden;pointer-events:none}
.auth-modal__backdrop,.header-player-backdrop,.gallery-backdrop{pointer-events:auto}
.header-player-dialog,.auth-modal__dialog,.header-notice-dropdown{pointer-events:auto}
.header-player-track,.header-icon-btn,.site-btn,.button,.player-btn,.profile-player-fab{position:relative}
.profile-player-fab{z-index:79}
.header-player-panel{z-index:90}
.header-notice-dropdown{z-index:86;max-width:min(380px,calc(100vw - 24px))}
.header-player-dialog{overflow:auto!important;-webkit-overflow-scrolling:touch}
@media (max-width: 980px){
  .site-nav{pointer-events:none;visibility:hidden}
  body.menu-open .site-nav{pointer-events:auto;visibility:visible}
}


/* 2026-04-15 auth modal + shared premium player hard-fix */
body.auth-page .auth-wrap{width:min(1240px,calc(100vw - 28px));padding:34px 0 56px}
body.auth-page .auth-card{padding:28px;gap:22px;border-radius:34px;background:linear-gradient(180deg,rgba(3,10,24,.96),rgba(2,8,20,.98));border:1px solid rgba(112,150,233,.18);box-shadow:0 28px 90px rgba(0,0,0,.34)}
body.auth-page .auth-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:stretch}
body.auth-page .auth-grid>.surface-card{display:grid;align-content:start;gap:14px;min-height:100%;padding:26px;border-radius:30px;background:linear-gradient(180deg,rgba(7,16,35,.96),rgba(5,11,24,.98));border:1px solid rgba(120,160,240,.16)}
body.auth-page .auth-grid>.surface-card h2{font-size:clamp(2rem,3.3vw,3rem);margin:0 0 10px;line-height:.96}
body.auth-page .auth-grid>.surface-card label{font-size:1.02rem;font-weight:700;color:#eaf2ff}
body.auth-page .auth-card .admin-input,body.auth-page .auth-card select.admin-input{min-height:58px;padding:16px 18px;border-radius:22px;background:rgba(13,24,48,.88);border:1px solid rgba(126,164,240,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
body.auth-page .auth-card .admin-input::placeholder{color:rgba(214,227,255,.34)}
body.auth-page .auth-inline-meta{margin-top:8px;padding-top:4px}
body.auth-page .auth-inline-meta .checkbox-row{font-size:1rem}
body.auth-page .auth-inline-meta .button-ghost{border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);padding:12px 16px;font-weight:700}
body.auth-page .auth-card .site-btn{min-height:64px;max-width:none;border-radius:24px;font-size:1.1rem;font-weight:800}
body.auth-page .auth-modal{display:grid;place-items:center;padding:18px}
body.auth-page .auth-modal__backdrop{background:rgba(2,7,18,.8);backdrop-filter:blur(12px)}
body.auth-page .auth-modal__dialog{width:min(520px,calc(100vw - 30px));margin:0;padding:24px 24px 22px;border-radius:30px;border:1px solid rgba(121,165,255,.22);background:linear-gradient(180deg,rgba(6,18,42,.98),rgba(4,12,28,.99));box-shadow:0 30px 90px rgba(0,0,0,.55);display:grid;align-content:start;gap:18px}
body.auth-page .auth-modal__dialog.surface-card{min-height:auto}
body.auth-page .auth-modal__dialog .stack-form,body.auth-page .auth-modal__dialog .auth-forgot-form{height:auto!important;min-height:0!important;display:grid;align-content:start;gap:14px}
body.auth-page .auth-modal__head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px}
body.auth-page .auth-modal__head h2{margin:0;font-size:clamp(2rem,3vw,2.6rem);line-height:.95}
body.auth-page .auth-modal__head p.small{margin-top:8px;font-size:1rem;line-height:1.55;color:#c2d0e8}
body.auth-page .auth-modal__close{width:44px;height:44px;border-radius:16px;font-size:1.5rem;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
body.auth-page .auth-modal__dialog label{display:grid;gap:8px;font-size:1rem;font-weight:700;color:#eef4ff}
body.auth-page .auth-modal__dialog .admin-input{min-height:56px;border-radius:20px;padding:15px 16px;background:rgba(14,25,51,.92);border:1px solid rgba(122,165,255,.22)}
body.auth-page .auth-modal__dialog .site-btn{width:100%;min-height:56px;border-radius:20px;font-size:1.02rem}
.header-player-track[hidden]{display:none!important}
.header-player-panel[data-search-empty='1'] .header-player-playlist::after{content:'Ничего не найдено';display:block;padding:14px 16px;border-radius:18px;border:1px dashed rgba(255,255,255,.12);color:var(--muted);background:rgba(255,255,255,.02)}
html[lang='et'] .header-player-panel[data-search-empty='1'] .header-player-playlist::after{content:'Midagi ei leitud'}
@media(max-width:860px){body.auth-page .auth-wrap{width:min(calc(100vw - 16px),1240px);padding:18px 0 32px}body.auth-page .auth-card{padding:18px;border-radius:24px}body.auth-page .auth-grid{grid-template-columns:1fr}body.auth-page .auth-grid>.surface-card{padding:18px;border-radius:24px}body.auth-page .auth-grid>.surface-card h2{font-size:clamp(1.8rem,8vw,2.4rem)}body.auth-page .auth-card .site-btn{min-height:56px}body.auth-page .auth-modal__dialog{width:min(460px,calc(100vw - 16px));padding:18px 18px 16px;border-radius:24px}body.auth-page .auth-modal__head h2{font-size:clamp(1.6rem,7vw,2.2rem)}}

.profile-player-fab.is-promo{background:linear-gradient(135deg,rgba(122,165,255,.96),rgba(121,227,210,.92));color:#07111f}
.profile-player-fab.is-active{transform:translateY(-1px);box-shadow:0 0 0 4px rgba(121,227,210,.18),var(--shadow)}
.premium-upsell-card{display:grid;gap:16px}
.premium-upsell-inline{display:grid;gap:12px;align-items:start}
label.is-disabled[data-notification-volume],.admin-label.is-disabled{opacity:.7}
.admin-label.is-disabled input[type="range"]{cursor:not-allowed;filter:saturate(.7)}


input[type="range"]{appearance:none;-webkit-appearance:none;background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-fill,0%),rgba(255,255,255,.14) var(--range-fill,0%),rgba(255,255,255,.14) 100%)!important;border-radius:999px;height:8px;padding:0;overflow:visible}
input[type="range"]::-webkit-slider-runnable-track{height:8px;background:transparent;border-radius:999px}
input[type="range"]::-moz-range-track{height:8px;background:rgba(255,255,255,.14);border-radius:999px}
input[type="range"]::-moz-range-progress{height:8px;background:var(--accent);border-radius:999px}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#74a8ff;border:0;margin-top:-5px}
input[type="range"]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#74a8ff;border:0}
.message-thread{scrollbar-width:none;-ms-overflow-style:none}
.message-thread::-webkit-scrollbar{width:0;height:0}
.message-voice,.message-bubble audio{width:min(100%,320px)}
.voice-recorder-status{padding:8px 12px;border-radius:14px;border:1px dashed rgba(255,255,255,.14);background:rgba(255,255,255,.03)}
.profile-player-fab{position:fixed!important;right:18px;bottom:22px;left:auto;top:auto;z-index:79;padding:10px 16px!important;min-height:46px;font-size:1rem;border-radius:18px;max-width:calc(100vw - 16px);white-space:nowrap}
.profile-player-fab.is-promo{padding:10px 14px!important}
.profile-player-fab.is-draggable{cursor:grab;user-select:none;touch-action:none}
.profile-player-fab.is-draggable:active{cursor:grabbing}
.feed-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.feed-edit-box{margin-top:12px;padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.025)}
.feed-edit-box summary{cursor:pointer;font-weight:700}
.feed-edit-box form{margin-top:12px}
.feed-media,.gallery-tile img,.gallery-tile video{height:auto;max-height:min(72vh,720px);object-fit:contain;background:#08101d}
.gallery-tile{position:relative}
.gallery-tile-actions{display:flex;justify-content:flex-end}
.gallery-modal[hidden]{display:none!important}
.gallery-modal{position:fixed;inset:0;z-index:95}
.gallery-modal__dialog{position:relative;z-index:1;width:min(1240px,calc(100vw - 24px));margin:3vh auto;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;grid-template-rows:minmax(0,1fr) auto;gap:12px;align-items:center}
.gallery-modal__stage{display:grid;place-items:center;min-height:0;max-height:min(86vh,920px);background:transparent;border:none;border-radius:28px;overflow:visible}
.gallery-modal__stage img,.gallery-modal__stage video{display:block;max-width:100%;max-height:min(86vh,920px);width:auto;height:auto;object-fit:contain;border-radius:28px;box-shadow:0 24px 60px rgba(0,0,0,.34)}
.gallery-modal__close,.gallery-modal__nav{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(5,12,25,.82);color:#fff;font-size:1.75rem;line-height:1;backdrop-filter:blur(10px);box-shadow:0 18px 40px rgba(0,0,0,.28);cursor:pointer}
.gallery-modal__close{position:absolute;top:14px;right:14px;z-index:3;font-weight:600}
.gallery-modal__caption{grid-column:2;color:#dbe5f7;text-align:center;padding:8px 12px;min-height:1.5em}.gallery-modal__caption:empty{display:none}
.gift-item{align-items:flex-start}
.gift-item p.small{overflow-wrap:anywhere;word-break:break-word}
body.auth-page .section-head.split-head{grid-template-columns:1fr!important}
body.auth-page .section-head.split-head>p{display:none!important}
body.auth-page .auth-modal__dialog{transform:translateY(-4vh)}
body.auth-page .auth-wrap:has(form input[name="token"]){padding-top:18px}
body.auth-page .auth-wrap:has(form input[name="token"]) .section-head.split-head{margin-bottom:8px}
body.auth-page .auth-wrap:has(form input[name="token"]) .auth-card{padding-top:22px}
.track-action-row .inline-form{display:inline-flex}
@media (max-width: 860px){.profile-player-fab{right:10px;bottom:12px;padding:9px 13px!important;font-size:.95rem}.gallery-modal__dialog{width:calc(100vw - 10px);margin:2vh auto;grid-template-columns:42px minmax(0,1fr) 42px}.gallery-modal__nav,.gallery-modal__close{width:42px;height:42px;font-size:1.4rem}}


/* 2026-04-16 upload, auth, user player fixes */
.required-field{position:relative}
.required-field>span,.required-field>strong{display:inline-flex;align-items:center;gap:6px}
.required-field::after{content:" *";color:#ff5d73;font-weight:800}
body.auth-page .auth-modal{align-items:center!important;justify-items:center!important;padding:18px}
body.auth-page .auth-modal__dialog{transform:none!important;margin:0!important}
body.public-user-page .promo-player-collapse{display:none!important}
body.public-user-page #headerPlayerPanel .header-player-close{display:inline-flex!important;visibility:visible!important;opacity:1!important}
.upload-progress__bar{position:relative}
.upload-progress__bar span{position:relative;min-width:0;transition:width .12s linear}


/* 2026-04-16 stability/button/required-label fixes */
.required-field{display:grid;gap:8px}
.required-field::after{content:none!important}
.field-label-text{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:inherit;line-height:1.2}
.required-star{display:inline-block;color:#ff5d73;font-weight:900;line-height:1}
body.public-user-page .profile-player-fab{position:fixed!important;right:18px!important;left:auto!important;top:auto!important;bottom:22px!important;transform:none!important;max-width:min(calc(100vw - 20px),220px);overflow:hidden;text-overflow:ellipsis}
body.public-user-page .profile-player-fab.is-promo{max-width:min(calc(100vw - 20px),180px)}
@media (max-width:860px){body.public-user-page .profile-player-fab{right:10px!important;bottom:12px!important;max-width:calc(100vw - 14px)}}
.site-btn[disabled],.button[disabled],.player-btn[disabled]{cursor:not-allowed;opacity:.7}
html{scroll-behavior:smooth}


/* 2026-04-17 stability fixes */
.upload-progress__percent{white-space:nowrap}
.upload-progress[hidden]{display:none!important}
body.public-user-page .profile-player-fab{
  right:max(12px,env(safe-area-inset-right))!important;
  bottom:max(14px,env(safe-area-inset-bottom))!important;
  left:auto!important;
  top:auto!important;
  width:auto;
  min-width:0;
  max-width:min(calc(100vw - 24px),210px);
}
body.public-user-page .profile-player-fab.is-promo{max-width:min(calc(100vw - 24px),170px)}
body.public-user-page .track-action-row .site-btn{max-width:100%}
@media (max-width:860px){
  body.public-user-page .profile-player-fab{right:max(8px,env(safe-area-inset-right))!important;bottom:max(10px,env(safe-area-inset-bottom))!important;max-width:calc(100vw - 16px)}
}


.error-page .utility-main{padding-top:40px;padding-bottom:80px;min-height:100vh;display:flex;align-items:center;justify-content:center}
.error-card{width:min(760px,100%);margin:0 auto;justify-items:start;text-align:left}
.error-logo-wrap{width:100%;display:flex;justify-content:center;align-items:center;margin:0 auto 6px}
.error-logo{display:block;width:min(100%,420px);max-width:420px;height:auto;max-height:320px;object-fit:contain;filter:drop-shadow(0 22px 44px rgba(0,0,0,.28))}
.error-card p{max-width:58ch;font-size:clamp(16px,1.8vw,20px);line-height:1.65}
@media (max-width:760px){
  .error-page .utility-main{padding-top:20px;padding-bottom:48px}
  .error-card{padding:20px;gap:14px}
  .error-logo{max-width:260px;max-height:220px}
}

.cover-overlay:empty{display:none}.bio-story-rich a{color:var(--theme-accent,#7aa5ff);text-decoration:underline}.bio-story-rich p{margin:0 0 1em}

.cover-overlay.is-clean{min-height:220px;padding:0;background:transparent}


/* responsive pass 2026-04-18 */
@media (max-width: 1200px){
  .home-users-grid,.news-grid,.gallery-grid,.featured-grid,.content-grid,.profile-grid,.profile-overview,.profile-sections{grid-template-columns:1fr 1fr;}
  .streaming-panel,.home-premium-panel,.header-player-shell,.profile-hero,.public-profile-hero{grid-template-columns:1fr;}
}
@media (max-width: 980px){
  .home-users-grid,.news-grid,.gallery-grid,.featured-grid,.content-grid,.profile-grid,.profile-overview,.profile-sections,.messages-layout,.notification-layout{grid-template-columns:1fr!important;}
  .stream-links{grid-template-columns:1fr 1fr;}
  .home-users-search{grid-template-columns:1fr!important;}
  .header-player-dialog{width:min(100vw - 20px,1220px)!important;margin:74px auto 16px!important;max-height:calc(100vh - 88px)!important;overflow:auto!important;}
  .header-player-shell{grid-template-columns:1fr!important;gap:18px!important;}
  .header-player-stage,.header-player-playlist{min-width:0;}
  .profile-layout,.profile-shell,.profile-main-shell{grid-template-columns:1fr!important;}
  .profile-sidebar,.profile-main{position:static!important;top:auto!important;}
}
@media (max-width: 720px){
  .stream-links,.footer-inner,.music-toolbar,.track-action-row,.profile-status-columns,.profile-edit-grid,.settings-grid,.notification-card,.home-user-meta,.home-user-actions{grid-template-columns:1fr!important;display:grid;}
  .stream-link,.button,.site-btn,.home-users-search .button,.compose-tools .site-btn{width:100%;}
  .section-head,.section-head.is-compact,.home-users-search,.compose-tools{gap:12px;}
  .container{width:min(100% - 20px, var(--container, 1200px));}
  .surface-card,.streaming-panel,.home-premium-panel,.header-player-shell,.home-user-card,.track-card,.notification-card{padding:16px!important;border-radius:20px!important;}
  .header-player-now{grid-template-columns:1fr!important;text-align:left;}
  .header-player-controls{justify-content:flex-start;flex-wrap:wrap;}
  .profile-player-fab{left:10px;right:10px;bottom:12px;max-width:none;width:auto;text-align:center;justify-content:center;}
}
@media (max-width: 560px){
  h1{font-size:clamp(2rem,10vw,3rem)!important}
  h2{font-size:clamp(1.6rem,8vw,2.4rem)!important}
  .stream-links,.home-users-grid,.news-grid,.gallery-grid,.featured-grid,.content-grid{grid-template-columns:1fr!important;}
  .header-player-close{top:10px;right:10px;}
  .header-player-panel .header-player-dialog{width:calc(100vw - 12px)!important;margin:60px auto 10px!important;}
  .header-player-playlist-head,.footer-meta,.profile-sidebar .actions,.home-user-actions,.compose-tools{display:grid;grid-template-columns:1fr!important;}
  .header-player-track,.stream-link,.toggle-card,.gift-card,.sticker-option{min-width:0;}
  .message-bubble audio,.message-voice,.public-track-audio{width:100%!important;max-width:100%!important;}
}


.split-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.split-head > div{display:grid;gap:4px}.gift-list-preview{grid-template-columns:1fr}.gift-list-full{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));max-height:min(70vh,720px);overflow:auto;padding-right:4px}.gift-list-full::-webkit-scrollbar{width:10px}.gift-list-full::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}.gifts-modal__dialog{width:min(960px,calc(100vw - 24px));max-height:min(84vh,860px)}.gifts-modal__dialog .auth-modal__head{align-items:flex-start}.gifts-modal__dialog .gift-item{min-height:100%}.gifts-modal__dialog .gift-item img{width:64px;height:64px}.lsv-history-list{grid-template-columns:1fr}.lsv-history-item{align-items:center;gap:16px}.lsv-history-sign{display:grid;place-items:center;width:42px;height:42px;border-radius:16px;font-size:1.35rem;font-weight:800;flex:0 0 42px}.lsv-history-item.is-incoming .lsv-history-sign{background:rgba(121,227,210,.14);color:#79e3d2}.lsv-history-item.is-outgoing .lsv-history-sign{background:rgba(122,165,255,.16);color:#7aa5ff}.lsv-history-copy{display:grid;gap:4px;min-width:0}.notifications-filters{padding:8px;border-radius:24px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}.notifications-filters .site-btn{min-width:120px;border-radius:18px}.notification-card{transition:transform .18s ease,border-color .18s ease,background .18s ease}.notification-card:hover{transform:translateY(-1px);border-color:rgba(122,165,255,.24);background:rgba(255,255,255,.055)}.user-list-item strong.inline-badged-name,.messenger-head .inline-badged-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.message-attachment{display:inline-flex;align-items:center;justify-content:center;max-width:min(100%,680px);background:transparent;border:none;padding:0}.message-attachment img{display:block;max-width:100%;max-height:min(72vh,820px);width:auto;height:auto;object-fit:contain;border-radius:24px;box-shadow:0 18px 48px rgba(0,0,0,.28)}@media (max-width:860px){.notifications-filters{width:100%}.notifications-filters .site-btn{flex:1 1 calc(50% - 10px);min-width:unset}.gifts-modal__dialog{width:min(calc(100vw - 14px),960px)}}


/* 2026-04-18 notification badge + gifts modal + dialogs alignment fix */
.header-icon-btn{overflow:visible}
.icon-badge,[data-notice-badge]{position:absolute;top:-7px;right:-7px;min-width:24px;height:24px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#8bc8ff 0%, #7ce7d6 100%);color:#04111f;font-size:11px;font-weight:900;line-height:1;border:2px solid rgba(5,11,24,.92);box-shadow:0 10px 22px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.08)}
[data-notice-badge]{letter-spacing:.01em}

#received-gifts h2 .icon-badge,#allReceivedGiftsModal h2 .icon-badge,[id="received-gifts"] h2 .icon-badge,.gifts-modal h2 .icon-badge{display:none!important}

.gifts-modal__dialog{width:min(960px,calc(100vw - 32px));max-height:min(84vh,860px);padding:24px;border-radius:30px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px;overflow:hidden}
.gifts-modal__dialog .auth-modal__head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;padding-right:0;margin:0}
.gifts-modal__dialog .auth-modal__head h2{margin:0;font-size:clamp(1.9rem,3vw,2.5rem);line-height:1}
.gifts-modal__dialog .auth-modal__head p.small{margin-top:8px}
.gifts-modal__dialog .auth-modal__close{position:static!important;flex:0 0 auto;width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);box-shadow:none}
.gifts-modal__dialog .gift-list-full{grid-template-columns:1fr;align-content:start;max-height:none;overflow:auto;padding-right:8px;padding-bottom:4px;min-height:0}
.gifts-modal__dialog .gift-item{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:16px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.035)}
.gifts-modal__dialog .gift-item img{width:64px;height:64px;border-radius:18px;object-fit:cover}
.gifts-modal__dialog .gift-item strong,.gifts-modal__dialog .gift-item p.small{overflow-wrap:anywhere;word-break:break-word}
@media (min-width:900px){.gifts-modal__dialog .gift-list-full{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){.gifts-modal__dialog{width:min(calc(100vw - 16px),960px);max-height:min(88vh,860px);padding:18px;border-radius:24px}.gifts-modal__dialog .auth-modal__head{gap:12px}.gifts-modal__dialog .auth-modal__head h2{font-size:clamp(1.55rem,7vw,2rem)}.gifts-modal__dialog .auth-modal__close{width:42px;height:42px;border-radius:14px}}

.user-list-item strong.inline-badged-name,.messenger-head .inline-badged-name{display:inline-flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;max-width:100%}
.user-list-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-list-badges{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;white-space:nowrap}
.user-list-badges .status-badge{width:28px;height:28px;flex:0 0 28px}

/* 2026-04-18 profile/user badge placement + gifts modal stacking fix */
.profile-sidebar .inline-badged-name{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;max-width:100%}
.profile-sidebar .inline-badged-name .user-list-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-sidebar .inline-badged-name .user-list-badges{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;white-space:nowrap}
.profile-sidebar .inline-badged-name .user-list-badges:empty{display:none}
.gifts-modal__dialog .gift-list-full{display:grid;grid-template-columns:1fr!important;gap:14px;align-content:start;overflow:auto;min-height:0;padding-right:8px}
.gifts-modal__dialog .gift-item{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:start;gap:14px;padding:14px 16px;border-radius:20px;min-height:auto}
.gifts-modal__dialog .gift-item__body{display:grid;gap:6px;min-width:0;align-content:start}
.gifts-modal__dialog .gift-item__title{display:block;margin:0;font-size:1.05rem;line-height:1.2;word-break:break-word}
.gifts-modal__dialog .gift-item__meta,.gifts-modal__dialog .gift-item__message{display:block;margin:0;line-height:1.45;word-break:break-word;overflow-wrap:anywhere}
.gifts-modal__dialog .gift-item__message{color:#c7d4e8}
@media (max-width:860px){.profile-sidebar .inline-badged-name{gap:8px}.profile-sidebar .inline-badged-name .user-list-name{white-space:normal}}


/* 2026-04-18 stickers categories modal */
.sticker-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.sticker-category-card{display:grid;gap:6px;padding:16px 18px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);text-align:left;color:var(--text);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.sticker-category-card:hover{transform:translateY(-2px);border-color:rgba(122,165,255,.24);background:rgba(122,165,255,.08)}
.sticker-category-card__title{font-weight:800;font-size:1rem}
.sticker-category-card__meta{font-size:.92rem;color:var(--muted)}
.sticker-category-modal__dialog{width:min(920px,calc(100vw - 24px));max-height:min(84vh,860px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px;overflow:hidden}
.sticker-pack-grid--modal{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:14px;align-content:start;overflow:auto;padding-right:6px;min-height:0}
.sticker-pack-grid--modal::-webkit-scrollbar{width:10px}.sticker-pack-grid--modal::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
@media (max-width:720px){.sticker-category-grid{grid-template-columns:1fr 1fr}.sticker-category-modal__dialog{width:min(calc(100vw - 14px),920px);padding:18px}.sticker-pack-grid--modal{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}
@media (max-width:520px){.sticker-category-grid{grid-template-columns:1fr}.sticker-pack-grid--modal{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* sticker packs storefront */
.sticker-category-row{display:flex;gap:14px;overflow:auto;padding-bottom:6px;scrollbar-width:thin}
.sticker-category-row::-webkit-scrollbar{height:10px}
.sticker-category-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.sticker-category-card{flex:0 0 210px;display:grid;gap:10px;align-content:start;text-align:left;padding:16px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025));color:var(--text);transition:transform .2s ease,border-color .2s ease,background .2s ease}
.sticker-category-card:hover{transform:translateY(-2px);border-color:rgba(122,165,255,.28);background:rgba(122,165,255,.08)}
.sticker-category-card.is-locked{border-color:rgba(255,208,122,.22);background:linear-gradient(180deg,rgba(255,208,122,.08),rgba(255,255,255,.03))}
.sticker-category-card__preview{width:72px;height:72px;display:grid;place-items:center;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.sticker-category-card__preview img{width:58px;height:58px;object-fit:contain}
.sticker-category-card__title{font-size:1rem;font-weight:800}
.sticker-category-card__meta{font-size:.84rem;color:var(--muted)}
.sticker-category-card__lock{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,208,122,.24);background:rgba(255,208,122,.08);font-size:.8rem;font-weight:800;color:#ffe7ac;width:max-content}
.sticker-category-card__lock.is-open{border-color:rgba(122,165,255,.22);background:rgba(122,165,255,.08);color:#dcecff}
.sticker-category-modal__dialog{max-width:min(760px,calc(100vw - 24px))}
.sticker-pack-grid--modal{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.sticker-pack-purchase{display:grid;gap:18px;padding-top:8px}
.sticker-pack-purchase__hero{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;align-items:center;padding:16px;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.sticker-pack-purchase__hero img{width:84px;height:84px;object-fit:contain;border-radius:20px;background:rgba(255,255,255,.04)}
.sticker-pack-purchase__form{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:16px;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025)}
.sticker-pack-price{font-size:1.3rem;font-weight:900}
@media (max-width:640px){.sticker-category-card{flex-basis:180px}.sticker-pack-purchase__hero{grid-template-columns:1fr}.sticker-pack-purchase__form>*{width:100%}}


/* 2026-04-18 sticker picker horizontal layout fix */
.sticker-store-panel{display:grid;gap:14px;padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));min-width:0;overflow:hidden}
.sticker-store-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sticker-store-panel__copy{display:grid;gap:4px;min-width:0}
.sticker-store-panel__copy strong{font-size:1rem;line-height:1.15}
.sticker-balance-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid rgba(122,165,255,.22);background:rgba(122,165,255,.08);color:#dcecff;font-weight:700;white-space:nowrap;flex:0 0 auto}
.sticker-balance-chip b{font-weight:900;color:#fff}
.sticker-pack-scroller{display:flex;align-items:stretch;gap:14px;overflow-x:auto;overflow-y:hidden;padding-bottom:6px;scrollbar-width:thin;min-width:0}
.sticker-pack-scroller::-webkit-scrollbar{height:10px}
.sticker-pack-scroller::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.sticker-pack-tile{appearance:none;-webkit-appearance:none;flex:0 0 220px;width:220px;min-width:220px;max-width:220px;display:grid;grid-template-rows:auto auto auto auto;align-content:start;justify-items:start;gap:10px;padding:16px;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));color:var(--text);text-align:left;box-sizing:border-box;transition:transform .2s ease,border-color .2s ease,background .2s ease;overflow:hidden}
.sticker-pack-tile:hover{transform:translateY(-2px);border-color:rgba(122,165,255,.28);background:rgba(122,165,255,.08)}
.sticker-pack-tile.is-locked{border-color:rgba(255,208,122,.22);background:linear-gradient(180deg,rgba(255,208,122,.08),rgba(255,255,255,.03))}
.sticker-pack-tile__preview{width:72px;height:72px;display:grid;place-items:center;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);overflow:hidden}
.sticker-pack-tile__preview img{width:58px;height:58px;object-fit:contain;display:block}
.sticker-pack-tile__preview span{font-size:2rem;line-height:1}
.sticker-pack-tile__title{display:block;width:100%;font-size:1rem;font-weight:800;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sticker-pack-tile__meta{display:block;width:100%;font-size:.88rem;line-height:1.35;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.sticker-pack-tile__action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;padding:7px 12px;border-radius:999px;border:1px solid rgba(255,208,122,.24);background:rgba(255,208,122,.08);font-size:.8rem;font-weight:800;color:#ffe7ac;white-space:normal;overflow-wrap:anywhere}
.sticker-pack-tile__action.is-open{border-color:rgba(122,165,255,.22);background:rgba(122,165,255,.08);color:#dcecff}
@media (max-width:640px){.sticker-store-panel{padding:14px}.sticker-balance-chip{width:100%;justify-content:center}.sticker-pack-tile{flex-basis:176px;width:176px;min-width:176px;max-width:176px}}



/* 2026-04-19 custom media players + maintenance ui */
.custom-media-player{position:relative;display:grid;gap:10px;padding:12px;border-radius:24px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));overflow:hidden}
.custom-media-player__media{display:block;width:100%;border-radius:18px;background:#000}
.custom-media-player.is-video .custom-media-player__media{aspect-ratio:16/9;object-fit:cover}
.custom-media-player__overlay{position:absolute;inset:12px 12px auto 12px;bottom:74px;display:grid;place-items:center;border:0;border-radius:18px;background:linear-gradient(180deg,rgba(2,6,16,.02),rgba(2,6,16,.32));color:#fff;cursor:pointer}
.custom-media-player.is-audio .custom-media-player__overlay{display:none}
.custom-media-player__overlay-icon,.custom-media-player__cover{display:inline-flex;align-items:center;justify-content:center}
.custom-media-player__overlay-icon{width:74px;height:74px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(12px);font-size:1.6rem}
.custom-media-player__controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.custom-media-player__timeline{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;flex:1 1 240px;min-width:0}
.custom-media-player__timeline span{font-size:.86rem;color:var(--muted);font-weight:700}
.custom-media-player__timeline input[type=range]{width:100%;accent-color:var(--accent)}
.custom-media-player__actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.custom-media-player__caption{color:var(--muted);font-size:.9rem;line-height:1.5}
.custom-media-player__audio-shell{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:center}
.custom-media-player__cover{width:64px;height:64px;border-radius:20px;border:1px solid rgba(122,165,255,.2);background:radial-gradient(circle at top left,rgba(122,165,255,.22),rgba(121,227,210,.14));color:#fff;font-size:1.25rem}
.custom-media-player__audio-copy{display:grid;gap:8px;min-width:0}.custom-media-player__audio-copy strong{font-size:1rem;overflow-wrap:anywhere}
.custom-media-player__wave{display:flex;align-items:flex-end;gap:5px;height:20px}.custom-media-player__wave span{display:block;width:5px;border-radius:999px;background:linear-gradient(180deg,var(--accent),var(--accent-2));height:30%;opacity:.72;transform-origin:bottom center}
.custom-media-player.is-playing .custom-media-player__wave span:nth-child(1){animation:mediaWave .9s ease-in-out infinite}.custom-media-player.is-playing .custom-media-player__wave span:nth-child(2){animation:mediaWave 1.1s ease-in-out infinite .12s}.custom-media-player.is-playing .custom-media-player__wave span:nth-child(3){animation:mediaWave .8s ease-in-out infinite .2s}.custom-media-player.is-playing .custom-media-player__wave span:nth-child(4){animation:mediaWave 1s ease-in-out infinite .08s}
.custom-media-player .site-chip-btn{min-height:40px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:var(--text)}
.custom-media-player.is-audio .custom-media-player__media{display:none}

.custom-media-player__cover--static{cursor:default;pointer-events:none}
.custom-media-player__cover--static .custom-media-player__overlay-icon{width:auto;height:auto;border:0;background:transparent;backdrop-filter:none;font-size:1.4rem}
.custom-media-player.is-audio .custom-media-player__audio-shell{grid-template-columns:56px minmax(0,1fr);gap:12px}
.custom-media-player.is-audio .custom-media-player__controls{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center}
.custom-media-player.is-audio .custom-media-player__actions{margin-left:0}
.feed-card .custom-media-player.is-audio,.message-bubble .custom-media-player.is-audio{overflow:hidden}
.message-bubble .custom-media-player{margin-top:8px}
.gallery-tile .custom-media-player{padding:10px;background:transparent;border-color:rgba(255,255,255,.06)}
.gift-delete-form{margin-left:auto;display:flex;align-items:center}
@keyframes mediaWave{0%,100%{transform:scaleY(.45);opacity:.55}50%{transform:scaleY(1);opacity:1}}
@media (max-width:640px){.custom-media-player{padding:10px;border-radius:20px}.custom-media-player__controls{gap:8px}.custom-media-player__timeline{grid-template-columns:1fr;gap:6px}.custom-media-player__actions{width:100%;margin-left:0}.custom-media-player__overlay{bottom:96px}}


/* Media player refinements */
.custom-media-player__overlay{opacity:1;visibility:visible;transition:opacity .22s ease,visibility .22s ease,transform .22s ease;background:linear-gradient(180deg,rgba(2,6,16,.06),rgba(2,6,16,.34))}
.custom-media-player.is-playing .custom-media-player__overlay{opacity:0;visibility:hidden;pointer-events:none;transform:scale(.96)}
.custom-media-player:not(.is-playing) .custom-media-player__overlay:hover .custom-media-player__overlay-icon,.custom-media-player__cover:hover{transform:scale(1.04)}
.custom-media-player__overlay-icon,.custom-media-player__cover,.custom-media-player [data-media-toggle],.custom-media-player [data-media-mute],.custom-media-player [data-media-fullscreen]{transition:transform .18s ease,opacity .18s ease,background .18s ease,border-color .18s ease}
.gallery-tile{align-content:start}
.gallery-tile .custom-media-player{gap:8px;padding:8px;border-radius:22px;background:rgba(255,255,255,.02);border-color:rgba(255,255,255,.05)}
.gallery-tile .custom-media-player.is-video .custom-media-player__media{border-radius:16px;aspect-ratio:4/5;object-fit:cover;max-height:232px}
.gallery-tile .custom-media-player__controls{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center}
.gallery-tile .custom-media-player__timeline{grid-template-columns:42px minmax(0,1fr) 42px;gap:8px}
.gallery-tile .custom-media-player__timeline span{font-size:.8rem}
.gallery-tile .custom-media-player .site-chip-btn{min-width:40px;min-height:40px;padding:0;font-size:1rem}
.gallery-tile .custom-media-player__actions{margin-left:0;gap:6px}
.gallery-tile .custom-media-player__overlay{inset:8px 8px auto 8px;bottom:56px;border-radius:16px}
.gallery-tile .custom-media-player__overlay-icon{width:58px;height:58px;font-size:1.25rem}
.gallery-tile .custom-media-player.is-audio .custom-media-player__audio-shell{grid-template-columns:1fr;gap:8px}
.gallery-tile .custom-media-player.is-audio .custom-media-player__cover{display:none}
.gallery-tile .custom-media-player.is-audio .custom-media-player__audio-copy strong{display:none}
.gallery-tile .custom-media-player.is-audio .custom-media-player__wave{display:none}
.gallery-tile .custom-media-player.is-audio .custom-media-player__controls{grid-template-columns:36px minmax(0,1fr) auto;gap:6px;align-items:center}
.gallery-tile .custom-media-player.is-audio .custom-media-player__actions{justify-self:end;gap:6px}
.message-bubble .custom-media-player.is-audio{padding:14px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.03));max-width:min(100%,640px)}
.message-bubble .custom-media-player.is-audio .custom-media-player__audio-shell{grid-template-columns:1fr;gap:10px;align-items:start}
.message-bubble .custom-media-player.is-audio .custom-media-player__cover{display:none}
.message-bubble .custom-media-player.is-audio .custom-media-player__audio-copy{gap:6px}
.message-bubble .custom-media-player.is-audio .custom-media-player__audio-copy strong{font-size:1.12rem;line-height:1.15}
.message-bubble .custom-media-player.is-audio .custom-media-player__controls{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center}
.message-bubble .custom-media-player.is-audio .custom-media-player__timeline{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;min-width:0}
.message-bubble .custom-media-player.is-audio .custom-media-player__timeline input[type=range]{min-width:0}
.message-bubble .custom-media-player.is-audio .custom-media-player__actions{margin-left:0}
.message-bubble .custom-media-player.is-audio .site-chip-btn{min-width:40px;min-height:40px;padding:0}
.gift-delete-form{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;align-self:center;flex:0 0 auto}
.gift-delete-form .site-btn{min-width:118px;white-space:nowrap;padding:10px 18px;border-radius:16px;writing-mode:horizontal-tb;text-orientation:mixed}
.gift-item{grid-template-columns:56px minmax(0,1fr) auto}
.gift-list-preview .gift-item,.gift-list-full .gift-item{align-items:center}
@media (max-width:640px){
  .gallery-tile .custom-media-player.is-video .custom-media-player__media{max-height:190px}
  .gallery-tile .custom-media-player__controls,.message-bubble .custom-media-player.is-audio .custom-media-player__controls{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center}
  .gallery-tile .custom-media-player__actions,.message-bubble .custom-media-player.is-audio .custom-media-player__actions{width:100%;justify-content:flex-end}
  .gift-item{grid-template-columns:56px minmax(0,1fr)}
  .gift-delete-form{grid-column:1/-1;margin-left:0;justify-content:stretch}
  .gift-delete-form .site-btn{width:100%}
}


/* 2026-04-19 follow-up fixes */
.custom-media-player.is-audio .custom-media-player__audio-shell{grid-template-columns:minmax(0,1fr)!important;gap:8px}
.custom-media-player.is-audio .custom-media-player__cover{display:none!important}
.gallery-tile .custom-media-player__timeline{display:none!important}
.gallery-tile .custom-media-player__controls{display:flex!important;justify-content:space-between;align-items:center;gap:8px}
.gallery-tile .custom-media-player__actions{margin-left:auto;display:flex!important;gap:6px;justify-content:flex-end}
.gallery-tile .custom-media-player [data-media-toggle]{min-width:40px;min-height:40px;padding:0}
.gallery-tile .custom-media-player.is-video .custom-media-player__controls{position:relative;z-index:2}
.message-bubble .custom-media-player.is-audio .custom-media-player__audio-copy strong{display:block;padding-top:0}


.profile-cover-card{position:relative;overflow:hidden;min-height:220px}
.profile-cover-upload-form{position:absolute;right:18px;bottom:18px;z-index:2}
.profile-cover-upload-trigger,.profile-avatar-edit__badge{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:rgba(6,14,30,.74);backdrop-filter:blur(12px);color:#eef4ff;font-weight:700;cursor:pointer;box-shadow:0 18px 32px rgba(0,0,0,.24)}
.profile-avatar-upload-form{display:grid;justify-items:center}
.profile-avatar-edit{position:relative;display:inline-grid;cursor:pointer}
.profile-avatar-edit__badge{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);min-height:36px;padding:0 12px;border-radius:999px;font-size:.86rem;white-space:nowrap}
.profile-avatar-edit:hover .profile-avatar,.profile-cover-upload-trigger:hover,.profile-avatar-edit__badge:hover{filter:brightness(1.06)}
.custom-media-player.is-audio{padding:14px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.08)}
.custom-media-player.is-audio .custom-media-player__audio-copy{margin-top:10px;display:grid;gap:6px}
.custom-media-player.is-audio .custom-media-player__audio-copy strong{font-size:1.05rem;color:#eef4ff}
.custom-media-player.is-audio .custom-media-player__controls{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
.custom-media-player.is-video.is-compact .custom-media-player__controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding-top:12px}
.custom-media-player.is-video.is-compact .custom-media-player__actions{display:flex;justify-content:flex-end;gap:10px}
.custom-media-player.is-video.is-compact .custom-media-player__timeline{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;min-width:0}
.custom-media-player.is-video.is-compact .custom-media-player__timeline span{font-size:.84rem;color:rgba(239,244,255,.82)}
.custom-media-player.is-video.is-compact .custom-media-player__timeline input[type=range]{width:100%;min-width:0;accent-color:var(--accent)}
.profile-gallery-grid .custom-media-player.is-video.is-compact{padding:10px;border-radius:20px}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__media{max-height:220px;border-radius:18px}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__overlay{width:74px;height:74px}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__controls .site-chip-btn{min-width:46px;min-height:46px;border-radius:999px}
@media (max-width:760px){.profile-cover-upload-form{right:12px;bottom:12px}.profile-cover-upload-trigger{padding:0 12px;font-size:.9rem}.profile-avatar-edit__badge{font-size:.78rem}}


.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__overlay{display:none!important}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__controls{grid-template-columns:auto 1fr!important;gap:12px;align-items:center}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__controls [data-media-toggle]{justify-self:start}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__timeline{display:none!important}
.profile-gallery-grid .custom-media-player.is-video.is-compact .custom-media-player__actions{justify-self:end}

.custom-media-player.is-video .custom-media-player__media::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}
.custom-media-player.is-video.is-fullscreen-active .custom-media-player__controls,.custom-media-player.is-video.is-fullscreen-active .custom-media-player__overlay{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

.message-voice-native{padding:14px 16px;border-radius:22px;border:1px solid rgba(126,153,198,.16);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));display:grid;gap:10px}.message-voice-native__label{font-weight:800;color:#eef4ff}.message-voice-native__audio{width:100%;display:block;filter:drop-shadow(0 10px 24px rgba(0,0,0,.18))}.message-voice-native__audio::-webkit-media-controls-enclosure{border-radius:16px;background:rgba(10,19,37,.92)}


/* Voice messages: standalone site-styled player */
.message-voice-shell{margin-top:8px;max-width:min(100%,640px)}
.message-voice-shell .custom-media-player.is-audio.is-voice-message{padding:14px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));border:1px solid rgba(124,164,255,.14);box-shadow:0 18px 40px rgba(0,0,0,.18)}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__audio-copy{order:-1;margin-top:0;gap:8px}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__audio-copy strong{font-size:1.06rem;font-weight:800;color:#eef4ff}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__wave span{background:linear-gradient(180deg,var(--accent),var(--accent-strong));opacity:.95}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__controls{grid-template-columns:44px minmax(0,1fr) auto;gap:10px}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__timeline{grid-template-columns:42px minmax(0,1fr) 42px;gap:8px}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__timeline span{font-size:.84rem;color:rgba(239,244,255,.82)}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .site-chip-btn{min-width:44px;min-height:44px;padding:0;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .site-chip-btn:hover{background:rgba(103,164,255,.12);border-color:rgba(103,164,255,.28)}
.message-voice-shell .custom-media-player.is-audio.is-voice-message input[type=range]{accent-color:var(--accent)}
@media (max-width:640px){.message-voice-shell .custom-media-player.is-audio.is-voice-message{padding:12px 14px}.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__controls{grid-template-columns:40px minmax(0,1fr) auto}}


.gallery-video-cover-field{display:grid;gap:8px}
.gallery-video-cover-field[hidden]{display:none!important}
.gallery-video-cover-field .small{margin:0;color:rgba(232,240,255,.72)}
.message-voice-shell.is-native{margin-top:8px;max-width:min(100%,640px)}
.message-voice-shell.is-native .message-voice-native{padding:14px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));border:1px solid rgba(124,164,255,.14);box-shadow:0 18px 40px rgba(0,0,0,.18)}
.message-voice-shell.is-native .message-voice-native__label{font-size:1.06rem;font-weight:800;color:#eef4ff;margin-bottom:8px}
.message-voice-shell.is-native .message-voice-native__audio{width:100%;display:block;border-radius:18px;overflow:hidden;filter:drop-shadow(0 10px 24px rgba(0,0,0,.18))}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-panel{background:linear-gradient(180deg,rgba(11,20,37,.96),rgba(8,15,30,.92))}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-enclosure{border-radius:18px;background:rgba(10,19,37,.92);border:1px solid rgba(255,255,255,.06)}
@media (max-width:640px){.message-voice-shell.is-native .message-voice-native{padding:12px 14px}}


.gallery-video-cover-field[hidden]{display:none!important}
.gallery-video-cover-field{display:grid;gap:8px;margin-top:4px}
.gallery-video-cover-field .small{margin:0;color:rgba(239,244,255,.72)}

.message-voice-shell.is-native .message-voice-native__audio{
  width:100%;
  display:block;
  border-radius:18px;
  overflow:hidden;
  filter:brightness(1.18) contrast(1.08) invert(1) hue-rotate(180deg);
  background:rgba(8,15,30,.92);
}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-panel{
  background:linear-gradient(180deg,rgba(11,20,37,.96),rgba(8,15,30,.92));
}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-enclosure{
  border-radius:18px;
  background:rgba(10,19,37,.92);
  border:1px solid rgba(255,255,255,.08);
}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-current-time-display,
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-time-remaining-display{
  color:#fff;
}

.custom-media-player.is-audio .custom-media-player__media{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;display:block!important}
.message-voice-shell .custom-media-player.is-audio.is-voice-message{margin-top:8px;max-width:min(100%,640px)}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .site-chip-btn,.message-voice-shell .custom-media-player.is-audio.is-voice-message [data-media-current],.message-voice-shell .custom-media-player.is-audio.is-voice-message [data-media-duration]{color:#fff!important}
.message-voice-shell .custom-media-player.is-audio.is-voice-message .custom-media-player__timeline input[type=range]{accent-color:#7aa5ff}
.message-voice-shell.is-native{display:none!important}


.native-audio-player{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border:1px solid rgba(140,190,255,.18);border-radius:24px;background:linear-gradient(180deg,rgba(42,60,88,.42),rgba(22,34,54,.56));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.native-audio-player__label{font-weight:800;font-size:28px;line-height:1.2;color:#f4f8ff}
.native-audio-player__audio{width:100%;min-height:54px}
.message-voice-shell .native-audio-player{padding:14px 16px;border-radius:22px}
.message-voice-shell .native-audio-player__label{font-size:18px}
@media (max-width: 720px){.native-audio-player__label{font-size:18px}}


/* White native player for messages.php voice messages */
.message-voice-shell.is-native{display:block!important;margin-top:8px;max-width:min(100%,640px)}
.message-voice-shell.is-native .message-voice-native{padding:14px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.18)}
.message-voice-shell.is-native .message-voice-native__label{font-size:1.06rem;font-weight:800;color:#eef4ff;margin-bottom:8px}
.message-voice-shell.is-native .message-voice-native__audio{width:100%;display:block;border-radius:18px;overflow:hidden;filter:brightness(1.18) contrast(1.08) invert(1) hue-rotate(180deg);background:#fff}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-enclosure{background:#fff;border-radius:18px;border:1px solid rgba(0,0,0,.06)}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-panel{background:#fff}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-current-time-display,
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-time-remaining-display{color:#111}


.message-video-shell.is-native{margin-top:8px;max-width:min(100%,640px);padding:12px;border-radius:24px;background:linear-gradient(180deg,rgba(42,60,88,.42),rgba(22,34,54,.56));border:1px solid rgba(140,190,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.message-video-shell__player{display:block;width:100%;max-height:520px;border-radius:18px;background:#000}
.message-video-shell__player::-webkit-media-controls-panel{opacity:1}


/* Separate UI blocks for uploaded audio and recorded voice messages */
.message-audio-shell.is-native{display:block!important;margin-top:8px;max-width:min(100%,640px)}
.message-audio-shell.is-native .message-audio-native{padding:14px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(74,132,255,.14),rgba(53,198,185,.10));border:1px solid rgba(111,211,255,.20);box-shadow:0 18px 40px rgba(0,0,0,.16)}
.message-audio-shell.is-native .message-audio-native__label{font-size:1.02rem;font-weight:800;color:#9fe7ff;margin-bottom:8px;letter-spacing:.01em;text-transform:uppercase}
.message-audio-shell.is-native .message-audio-native__audio{width:100%;display:block;border-radius:18px;overflow:hidden;background:#dff8ff;filter:none}
.message-audio-shell.is-native .message-audio-native__audio::-webkit-media-controls-enclosure{background:#dff8ff;border-radius:18px;border:1px solid rgba(18,68,94,.12)}
.message-audio-shell.is-native .message-audio-native__audio::-webkit-media-controls-panel{background:#dff8ff}
.message-audio-shell.is-native .message-audio-native__audio::-webkit-media-controls-current-time-display,
.message-audio-shell.is-native .message-audio-native__audio::-webkit-media-controls-time-remaining-display{color:#12384e}

.message-voice-shell.is-native{display:block!important;margin-top:8px;max-width:min(100%,640px)}
.message-voice-shell.is-native .message-voice-native{padding:14px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.18)}
.message-voice-shell.is-native .message-voice-native__label{font-size:1.06rem;font-weight:800;color:#eef4ff;margin-bottom:8px}
.message-voice-shell.is-native .message-voice-native__audio{width:100%;display:block;border-radius:18px;overflow:hidden;filter:brightness(1.18) contrast(1.08) invert(1) hue-rotate(180deg);background:#fff}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-enclosure{background:#fff;border-radius:18px;border:1px solid rgba(0,0,0,.06)}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-panel{background:#fff}
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-current-time-display,
.message-voice-shell.is-native .message-voice-native__audio::-webkit-media-controls-time-remaining-display{color:#111}

@media (max-width:640px){
  .message-audio-shell.is-native .message-audio-native,
  .message-voice-shell.is-native .message-voice-native{padding:12px 14px}
}
.message-content-tag{display:inline-flex;align-items:center;gap:6px;margin:8px 0 10px;padding:6px 12px;border-radius:999px;background:rgba(122,165,255,.12);border:1px solid rgba(140,190,255,.22);color:#dfeaff;font-size:.82rem;font-weight:700;letter-spacing:.01em}
.message-bubble.is-me .message-content-tag{background:rgba(121,227,210,.12);border-color:rgba(121,227,210,.24);color:#e3fff9}
.notification-card__copy p{color:#dfe7fb}

/* 2026-04-20 messaging reply targets + unified media skins */
.reply-snippet{
  display:grid;
  gap:4px;
  margin:8px 0 10px;
  padding:10px 12px;
  border-radius:16px;
  border-left:3px solid rgba(122,165,255,.75);
  background:linear-gradient(180deg,rgba(122,165,255,.10),rgba(121,227,210,.06));
  color:#eef4ff;
}
.reply-snippet[role="button"]{cursor:pointer;transition:transform .18s ease, border-color .18s ease, background .18s ease}
.reply-snippet[role="button"]:hover,.reply-snippet[role="button"]:focus-visible{outline:none;transform:translateY(-1px);border-left-color:rgba(121,227,210,.9);background:linear-gradient(180deg,rgba(122,165,255,.14),rgba(121,227,210,.10))}
.reply-snippet__meta,.reply-preview__meta{font-size:.78rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#9fe7ff}
.reply-snippet__text,.reply-preview__text{font-size:.96rem;line-height:1.42;color:#eef4ff;word-break:break-word}
.reply-preview{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 12px;
  align-items:start;
  margin-bottom:12px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(122,165,255,.24);
  background:linear-gradient(180deg,rgba(11,20,38,.88),rgba(9,16,31,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.reply-preview .reply-preview__meta,.reply-preview .reply-preview__text{grid-column:1}
.reply-preview .reply-cancel{grid-column:2;grid-row:1 / span 2;align-self:center}
.reply-preview.is-hidden{display:none!important}
.message-bubble.is-reply-target{box-shadow:0 0 0 1px rgba(121,227,210,.35),0 0 0 5px rgba(121,227,210,.12),0 20px 50px rgba(0,0,0,.24)}
.message-video-shell.is-native{padding:0;border:none;background:none;box-shadow:none;max-width:min(100%,640px)}
.message-video-shell.is-native .custom-media-player.is-video.is-compact{
  padding:12px;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(42,60,88,.42),rgba(22,34,54,.56));
  border:1px solid rgba(140,190,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__controls{
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__timeline{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px;
  gap:8px;
  align-items:center;
  min-width:0;
}
.message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__timeline span{
  font-size:.84rem;
  color:rgba(239,244,255,.82);
}
.message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__timeline input[type=range]{
  width:100%;
  min-width:0;
  accent-color:var(--accent);
}
.message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.message-video-shell.is-native .custom-media-player__media{max-height:520px;border-radius:18px;background:#000}
@media (max-width:640px){
  .message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__controls{
    grid-template-columns:40px minmax(0,1fr);
    gap:10px;
  }
  .message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__timeline{
    grid-template-columns:38px minmax(0,1fr) 38px;
    gap:6px;
  }
  .message-video-shell.is-native .custom-media-player.is-video.is-compact .custom-media-player__actions{
    grid-column:1 / -1;
    justify-content:flex-end;
  }
}
.message-audio-shell.is-native,
.message-voice-shell.is-native,
.profile-audio-shell{display:block!important;margin-top:8px;max-width:min(100%,640px)}
.profile-audio-shell{margin-top:0}
.profile-audio-shell .message-audio-native__label{font-size:1.1rem}
.profile-audio-shell .message-audio-native{padding:16px 18px}


.ui-clear-btn,.site-icon-btn{
  appearance:none;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06));
  color:#eef4ff;border-radius:12px;min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;box-shadow:0 10px 24px rgba(0,0,0,.18)
}
.ui-clear-btn:hover,.site-icon-btn:hover{transform:translateY(-1px);border-color:rgba(122,165,255,.34);background:rgba(122,165,255,.12)}
.ui-clear-btn span,.site-icon-btn{font-size:1rem;font-weight:900;line-height:1}
.reply-preview,.selected-sticker-badge,.selected-upload-badge{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.reply-preview .reply-preview__text,.selected-upload-badge__name{min-width:0;flex:1 1 180px}
.selected-sticker-badge,.selected-upload-badge{
  padding:10px 12px;border-radius:18px;border:1px solid rgba(122,165,255,.18);background:linear-gradient(180deg,rgba(122,165,255,.1),rgba(255,255,255,.03));
}
.selected-upload-badge__label{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(122,165,255,.14);border:1px solid rgba(122,165,255,.2);font-size:.78rem;font-weight:800;color:#cfe0ff}
.selected-upload-badge__name{font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-actions-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.message-inline-form{display:inline-flex;margin:0}
.site-icon-btn.subtle-danger{border-color:rgba(255,122,146,.24);background:linear-gradient(180deg,rgba(255,122,146,.14),rgba(255,255,255,.04));color:#ffdbe3}
.site-icon-btn.subtle-danger:hover{border-color:rgba(255,122,146,.4);background:rgba(255,122,146,.12)}

.message-delete-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:14px;font-weight:800;line-height:1;box-shadow:0 12px 26px rgba(0,0,0,.18)}
.message-delete-btn span:first-child{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:rgba(255,255,255,.08);font-size:1rem;line-height:1}
.message-delete-btn span:last-child{white-space:nowrap}
.message-delete-btn.site-btn.subtle-danger{border:1px solid rgba(255,122,146,.24);background:linear-gradient(180deg,rgba(255,122,146,.14),rgba(255,255,255,.04));color:#ffdbe3}
.message-delete-btn.site-btn.subtle-danger:hover{transform:translateY(-1px);border-color:rgba(255,122,146,.4);background:rgba(255,122,146,.12)}
@media (max-width:640px){.message-delete-btn span:last-child{display:none}.message-delete-btn{padding:9px 11px}.message-delete-btn span:first-child{width:22px;height:22px}}
.compose-box .selected-upload-badge{grid-column:1/-1}
.upload-inline-btn{position:relative;overflow:hidden}


.message-media-label{display:inline-flex;align-items:center;gap:8px;margin:8px 0 10px;padding:7px 14px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid rgba(131,170,255,.18);color:#eef4ff;font-size:.9rem;font-weight:800;letter-spacing:.01em;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.message-media-label::before{content:'';width:10px;height:10px;border-radius:999px;background:linear-gradient(180deg,var(--accent),var(--accent-strong));box-shadow:0 0 0 4px rgba(122,165,255,.12)}
.message-media-label--gift::before{background:linear-gradient(180deg,#ffd86e,#ff9f67);box-shadow:0 0 0 4px rgba(255,184,87,.14)}
.message-media-label--image::before{background:linear-gradient(180deg,#7de4ff,#63b3ff)}
.message-media-label--video::before{background:linear-gradient(180deg,#a78bfa,#6ea8ff)}
.message-media-label--sticker::before{background:linear-gradient(180deg,#79e3d2,#5ac1ff)}
.message-media-label--file::before{background:linear-gradient(180deg,#c7d2fe,#93a7ff)}
.message-content-tag{display:none!important}


.feed-media-grid .profile-audio-shell{max-width:100%;margin-top:0;display:block}
.feed-media-grid .profile-audio-shell .message-audio-native{padding:10px 12px;border-radius:18px;min-height:unset}
.feed-media-grid .profile-audio-shell .message-audio-native__label{font-size:.9rem;line-height:1.05;margin-bottom:6px}
.feed-media-grid .profile-audio-shell .message-audio-native__audio{border-radius:14px}
.feed-media-grid .profile-audio-shell.is-compact .message-audio-native{padding:8px 10px}
.feed-media-grid .profile-audio-shell.is-compact .message-audio-native__label{font-size:.82rem;margin-bottom:4px}
.feed-media-grid .profile-audio-shell.is-compact .message-audio-native__audio{min-height:52px}
.feed-media-grid > .message-audio-shell{align-self:start}

/* 2026-04-20 feed media editor and dense media fixes */
.feed-edit-form{gap:14px}.feed-edit-upload-field{display:grid;gap:8px}.feed-edit-actions{display:flex;align-items:center;justify-content:flex-start;padding-top:4px}
.feed-edit-media-list{display:grid;gap:10px}
.feed-edit-media-item{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025);transition:opacity .18s ease,border-color .18s ease,background .18s ease}.feed-edit-media-item.is-marked-for-delete{opacity:.6;border-color:rgba(255,122,146,.28);background:rgba(255,122,146,.07)}.feed-edit-remove-btn{min-width:160px;justify-content:center}
.feed-edit-media-item .message-media-label{margin:0}
.feed-media-grid.has-many-audio{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.feed-media-grid .custom-media-player.is-audio{padding:10px 12px;border-radius:18px;gap:8px;min-width:0;overflow:visible}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__audio-shell{grid-template-columns:1fr!important;gap:6px}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__audio-copy{margin-top:0;gap:4px}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__audio-copy strong{font-size:.9rem;line-height:1.1}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__wave{display:none}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__controls{grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__timeline{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px;min-width:0}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__timeline span{font-size:.78rem}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__timeline input[type=range]{min-width:0;width:100%}
.feed-media-grid .custom-media-player.is-audio .custom-media-player__actions{display:flex;justify-content:flex-end}
.feed-media-grid .custom-media-player.is-audio .site-chip-btn{min-width:36px;min-height:36px;padding:0}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact{padding:10px;border-radius:18px}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__controls{grid-template-columns:auto 1fr!important;gap:10px;align-items:center}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__timeline{display:none!important}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__actions{margin-left:auto;justify-self:end}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__actions [data-media-mute]{display:inline-flex}
@media (max-width: 860px){
  .feed-media-grid.has-many-audio{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
}
@media (max-width: 640px){
  .feed-edit-media-item{align-items:flex-start}
  .feed-media-grid.has-many-audio{grid-template-columns:1fr 1fr}
}
@media (max-width: 520px){
  .feed-media-grid.has-many-audio{grid-template-columns:1fr}
}


.feed-media-grid.has-many-audio{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.feed-media-grid.has-many-audio .message-audio-shell{width:100%;min-width:0}
.feed-media-grid.has-many-audio .message-audio-native{padding:10px 12px;border-radius:18px}
.feed-media-grid.has-many-audio .message-audio-native__label{font-size:.86rem;line-height:1.05;margin-bottom:6px}
.feed-media-grid.has-many-audio .message-audio-native__audio{display:block;width:100%;min-width:0;max-width:100%;height:44px}
.feed-media-grid.has-many-audio .custom-media-player.is-audio{display:none}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__timeline,
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact [data-media-current],
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact [data-media-duration]{display:none!important}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__controls{grid-template-columns:auto auto!important;justify-content:space-between}
@media (max-width: 640px){
  .feed-edit-actions{padding-top:8px}
  .feed-edit-remove-btn{width:100%}
}


.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact [data-media-toggle]{font-size:0;position:relative}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact [data-media-toggle]::before{content:'▶';font-size:1rem;line-height:1}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact.is-playing [data-media-toggle]::before{content:'⏸';font-size:.95rem}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .custom-media-player__actions{display:flex;gap:8px;align-items:center}
.feed-media-grid.has-many-videos .custom-media-player.is-video.is-compact .site-chip-btn{min-width:40px;min-height:40px}

/* ===== mobile profile/admin/player fixes 2026-04-21 ===== */
.profile-sidebar--cover { --profile-cover:none; }
.profile-sidebar--cover::before { content:none; }

.profile-avatar-upload-form,
.profile-cover-upload-form { min-width:0; }
.profile-avatar-upload-form .upload-progress,
.profile-cover-upload-form .upload-progress {
  width:100%;
  margin-top:12px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(5,10,18,.48);
  box-sizing:border-box;
}
.profile-avatar-upload-form .upload-progress__meta,
.profile-cover-upload-form .upload-progress__meta { flex-wrap:wrap; }
.profile-avatar-upload-form .upload-progress__name,
.profile-cover-upload-form .upload-progress__name { min-width:0; flex:1 1 160px; }
.profile-avatar-upload-form .upload-progress__percent,
.profile-cover-upload-form .upload-progress__percent { margin-left:auto; }
.profile-cover-upload-form { display:grid; justify-items:end; gap:10px; }

@media (max-width: 860px) {
  .header-player-panel { display:grid; place-items:center; padding:16px 8px; }
  .header-player-panel[hidden] { display:none !important; }
  .header-player-panel .header-player-dialog { margin:0 auto !important; max-height:min(84vh,760px) !important; }
  .profile-player-fab { bottom:max(72px, calc(env(safe-area-inset-bottom) + 56px)) !important; }
}

@media (max-width: 760px) {
  .profile-sidebar--cover {
    position:relative;
    overflow:hidden;
    padding-top:132px !important;
  }
  .profile-sidebar--cover::before {
    content:'';
    position:absolute;
    left:0; right:0; top:0;
    height:118px;
    background-image:linear-gradient(180deg,rgba(6,14,30,.08),rgba(6,14,30,.55)), var(--profile-cover);
    background-size:cover;
    background-position:center;
    border-radius:24px 24px 18px 18px;
    display:block;
  }
  .profile-sidebar--cover > * { position:relative; z-index:1; }
  .profile-sidebar--cover .profile-avatar-upload-form,
  .profile-sidebar--cover .profile-avatar { margin-top:-20px; }
  .profile-main > .profile-cover-card,
  .profile-main > .public-cover { display:none; }
}

@media (max-width: 640px) {
  .profile-sidebar--cover { padding-top:122px !important; }
  .profile-sidebar--cover::before { height:108px; }
  .profile-avatar-upload-form .upload-progress,
  .profile-cover-upload-form .upload-progress { margin-top:10px; }
}
