@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0a10;
  --bg-2: #13111b;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f1f8;
  --muted: #a39cb3;
  --c1: #ff7a59;
  --c2: #e0458a;
  --c3: #7b5cff;
  --grad: linear-gradient(120deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  --ok: #3ad29f;
  --warn: #ffb547;
  --err: #ff5a6e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf8f6; --bg-2: #fff; --surface: rgba(20, 10, 40, .03); --surface-2: rgba(20, 10, 40, .06);
    --line: rgba(20, 10, 40, .09); --line-2: rgba(20, 10, 40, .16); --text: #19141f; --muted: #6c6478;
    --shadow: 0 20px 50px -24px rgba(60, 20, 80, .35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(123, 92, 255, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 122, 89, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-bottom: 64px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(224, 69, 138, .5); text-underline-offset: 3px; }
a:hover { color: var(--c1); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: 1.5rem; }
em { font-style: italic; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 620px; margin: 40px auto 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; }
.push-right { margin-left: auto; }
::selection { background: var(--c2); color: #fff; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.4rem/1 var(--serif); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: url(icon.svg) center/cover; box-shadow: 0 6px 20px -6px var(--c2); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav > a:not(.btn):hover, .nav > a.on { color: var(--text); background: var(--surface-2); }
.nav-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; background: var(--grad) border-box; }
.nav-avatar { padding: 0 !important; background: none !important; margin-left: 4px; }

/* ---------- buttons & forms ---------- */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: #fff !important;
  font: 600 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(224, 69, 138, .7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s, background-position .4s;
}
.btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(224, 69, 138, .85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: .875rem; }
.btn-lg { --h: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--c2); }
.btn-danger { background: var(--err); box-shadow: 0 10px 30px -12px var(--err); }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linklike:hover { color: var(--text); }
.linklike.danger:hover { color: var(--err); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.form { padding: 28px; display: grid; gap: 16px; margin-bottom: 20px; }
.form h1, .form h2 { margin: 0; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; }
input:not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--c2); box-shadow: 0 0 0 4px rgba(224, 69, 138, .18); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--c2); width: 18px; height: 18px; flex: none; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--muted); }
.prefix-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 20px 0; border: 1px solid; font-weight: 500; animation: rise .4s ease both; }
.flash-ok { background: rgba(58, 210, 159, .1); border-color: rgba(58, 210, 159, .35); }
.flash-warn { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .35); }
.flash-err { background: rgba(255, 90, 110, .1); border-color: rgba(255, 90, 110, .4); }
.form .flash { margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(56px, 10vw, 120px) 0 56px; isolation: isolate; }
.hero-glow {
  position: absolute; inset: 0 -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(255, 122, 89, .35), transparent 70%),
    radial-gradient(35% 45% at 70% 35%, rgba(123, 92, 255, .38), transparent 70%),
    radial-gradient(30% 40% at 50% 70%, rgba(224, 69, 138, .30), transparent 70%);
  filter: blur(40px); animation: drift 18s ease-in-out infinite alternate;
}
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; margin-bottom: 24px; }
.hero h1 em, .auth-art em {
  font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 56px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 960px; text-align: left; }
.hero-points li { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .95rem; }
.hero-points strong { display: block; color: var(--text); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 24px; }
.page-head h1 { margin: 0; }
.section-title { font-size: 1.35rem; margin: 48px 0 18px; }

/* ---------- creators ---------- */
.creator-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.creator {
  scroll-snap-align: start; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 22px 16px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .25s, border-color .25s;
}
.creator:hover { transform: translateY(-3px); border-color: var(--line-2); color: var(--text); }
.creator img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; padding: 3px; background: var(--grad); }
.creator span { color: var(--muted); font-size: .875rem; }
.creator small { color: var(--muted); font-size: .78rem; margin-top: 6px; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 42vw), 1fr)); gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); text-decoration: none; animation: rise .5s ease both; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 6, 20, .75)); opacity: 0; transition: opacity .35s; }
.tile-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; justify-content: space-between; color: #fff; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(8px); transition: .35s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile-meta, .tile:focus-visible .tile-meta { opacity: 1; transform: none; }
.grid .tile:nth-child(2) { animation-delay: .04s } .grid .tile:nth-child(3) { animation-delay: .08s } .grid .tile:nth-child(4) { animation-delay: .12s }
.grid .tile:nth-child(5) { animation-delay: .16s } .grid .tile:nth-child(6) { animation-delay: .2s } .grid .tile:nth-child(n+7) { animation-delay: .24s }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 40px; align-items: stretch; }
.auth-art { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); min-height: 460px; display: flex; align-items: flex-end; padding: 40px; }
.auth-art p { position: relative; z-index: 1; font: 500 clamp(2.2rem, 4.5vw, 3.6rem)/1.02 var(--serif); letter-spacing: -.03em; margin: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .9; animation: float 12s ease-in-out infinite alternate; }
.o1 { width: 300px; height: 300px; background: radial-gradient(circle at 30% 30%, #ffb199, var(--c1) 60%, transparent 72%); top: -60px; left: -40px; }
.o2 { width: 360px; height: 360px; background: radial-gradient(circle at 30% 30%, #c4b5ff, var(--c3) 60%, transparent 72%); top: 30px; right: -120px; animation-delay: -4s; }
.o3 { width: 240px; height: 240px; background: radial-gradient(circle at 30% 30%, #ff9cc8, var(--c2) 60%, transparent 72%); top: 180px; left: 30%; animation-delay: -8s; }
.auth .form { margin: 0; align-content: start; }

/* ---------- profile ---------- */
.profile { margin: 24px 0 28px; }
.profile-banner {
  height: clamp(140px, 22vw, 240px); border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--grad);
}
.profile-banner[style]::before { content: ''; position: absolute; inset: 0; background: var(--banner) center/cover; filter: blur(28px) saturate(1.3); transform: scale(1.2); }
.profile-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11, 10, 16, .55)); }
.profile-card { display: flex; gap: 24px; align-items: flex-start; padding: 0 24px; margin-top: -64px; position: relative; flex-wrap: wrap; }
.profile-avatar { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; padding: 4px; background: var(--grad); box-shadow: 0 0 0 6px var(--bg), var(--shadow); }
.profile-main { flex: 1; min-width: 240px; padding-top: 72px; }
.profile-main h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.handle { color: var(--muted); margin: 2px 0 10px; }
.bio { margin: 0 0 14px; max-width: 620px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.stats strong { color: var(--text); font-size: 1.05rem; margin-right: 3px; }
.profile-actions { padding-top: 76px; }

/* ---------- post ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.post-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.post-media img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.post-side { padding: 22px; position: sticky; top: 88px; display: grid; gap: 16px; }
.author { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--grad); }
.author span { display: grid; }
.author small { color: var(--muted); }
.caption { margin: 0; white-space: normal; word-wrap: break-word; }
.post-actions { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-block: 1px solid var(--line); flex-wrap: wrap; }
.like { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; transition: .2s; }
.like .heart { color: var(--muted); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1), color .2s; display: inline-block; }
.like:hover { border-color: var(--c2); color: var(--text); }
.like.on { border-color: transparent; background: rgba(224, 69, 138, .16); }
.like.on .heart { color: var(--c2); transform: scale(1.2); }
.like.pop .heart { animation: pop .45s ease; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] { flex-basis: 100%; margin-left: 0; }
.report-form { display: grid; gap: 10px; margin-top: 12px; }
.comments { display: grid; gap: 14px; max-height: 420px; overflow-y: auto; }
.comment { display: flex; gap: 10px; font-size: .94rem; }
.comment img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.comment a { text-decoration: none; }
.comment small { display: block; margin-top: 2px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { border-radius: 999px !important; }

/* ---------- upload ---------- */
.drop { position: relative; display: grid; place-items: center; min-height: 300px; border-radius: var(--radius); border: 2px dashed var(--line-2); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; text-align: center; font-weight: 400; }
.drop:hover, .drop.over { border-color: var(--c2); background: rgba(224, 69, 138, .06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 460px; width: auto; border-radius: var(--radius-sm); }
.drop-hint { color: var(--muted); line-height: 1.7; pointer-events: none; }
.drop-hint strong { color: var(--text); }
.drop-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; box-shadow: 0 12px 30px -10px var(--c2); }
.drop.has-file { min-height: 0; padding: 12px; border-style: solid; }

.avatar-edit { display: flex; align-items: center; gap: 18px; }
.avatar-edit img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; padding: 3px; background: var(--grad); }
.avatar-edit label { cursor: pointer; }
.danger-zone { border-color: rgba(255, 90, 110, .3); }

/* ---------- admin ---------- */
.kpis { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpis li { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }
.kpis strong { display: block; font: 600 2rem/1.1 var(--serif); color: var(--text); }
.kpis .alert { border-color: rgba(255, 90, 110, .45); }
.reports { display: grid; gap: 12px; }
.report-row { display: flex; gap: 18px; padding: 16px; align-items: flex-start; }
.report-row img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
.report-row p { margin: 0 0 6px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- prose / footer ---------- */
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2em; }
.prose .lede { margin: 0 0 1.2em; text-align: left; }
.rules { padding-left: 1.3em; display: grid; gap: 10px; }
.rules li::marker { color: var(--c2); font-weight: 700; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot a { text-decoration: none; }

@media (max-width: 400px) { .brand-name { display: none; } .brand-mark { width: 32px; height: 32px; } }

/* ---------- albums & privacy ---------- */
.hero-points { max-width: 720px; }
.tile-lock { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(10, 6, 20, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); }
.badge-private { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; padding: 3px 10px; border-radius: 999px; font: 600 .75rem/1.4 var(--sans); letter-spacing: 0; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); }
.albums { margin-bottom: 8px; }
.albums-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.albums-head .section-title { margin: 8px 0 14px; }
.album-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.album-card { scroll-snap-align: start; display: grid; gap: 2px; text-decoration: none; }
.album-card:hover { color: var(--text); }
.album-cover { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--grad); margin-bottom: 8px; box-shadow: 6px 6px 0 -1px var(--bg), 6px 6px 0 0 var(--line-2); transition: transform .25s; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card:hover .album-cover { transform: translateY(-3px); }
.album-card small { color: var(--muted); font-size: .8rem; }
.album-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.album-head p { margin: 0; }
.album-line { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.album-line a { text-decoration: none; color: var(--muted); }
.album-line a:hover { color: var(--text); }
.move-album { display: flex; gap: 8px; }
.move-album select { padding: 7px 12px; font-size: .88rem; border-radius: 999px; }
.manage { margin-top: 28px; padding: 0; overflow: hidden; }
.manage summary { cursor: pointer; padding: 16px 22px; font-weight: 600; }
.manage .form { margin: 0; padding-top: 4px; box-shadow: none; }
.new-album { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.new-album[hidden] { display: none; }

/* ---------- profile banner ---------- */
.profile-banner.has-image { background: var(--bg-2) center/cover no-repeat; height: auto; aspect-ratio: 4 / 1; min-height: 140px; }
.profile-banner.has-image::before { display: none; }
.profile-banner.has-image::after { background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 16, .45)); }
.banner-nudge { margin: 8px 0 0; text-align: right; }
.banner-edit { display: grid; gap: 10px; }
.banner-edit .label { font-weight: 500; font-size: .9rem; }
.banner-preview { aspect-ratio: 4 / 1; border-radius: var(--radius-sm); background: var(--grad) center/cover no-repeat; display: grid; place-items: center; border: 1px solid var(--line-2); overflow: hidden; }
.banner-preview[style] { background-color: var(--bg-2); }
.banner-preview span { color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.banner-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.banner-actions label.btn { cursor: pointer; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.hint strong { color: var(--text); }

/* ---------- album hero & cover picker ---------- */
.album-hero { display: flex; align-items: center; gap: 24px; margin: 36px 0 24px; flex-wrap: wrap; }
.album-hero-cover { width: 132px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--grad); flex: none; box-shadow: 8px 8px 0 -1px var(--bg), 8px 8px 0 0 var(--line-2), var(--shadow); }
.album-hero-cover img, .cover-now .album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-hero-text { flex: 1; min-width: 220px; }
.album-hero-text h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.album-hero-text p { margin: 0; }
.cover-panel { display: grid; grid-template-columns: 180px 1fr; gap: 24px 28px; align-items: start; }
.cover-now { display: grid; gap: 8px; justify-items: start; grid-row: span 2; }
.cover-now .album-cover { width: 180px; margin: 0; }
.cover-now p { margin: 0; }
.cover-panel h3 { font-size: 1.05rem; margin: 0 0 6px; }
.cover-upload, .cover-pick { display: grid; gap: 8px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pick { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2); transition: border-color .2s, transform .2s; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pick.on { border-color: var(--c2); box-shadow: 0 0 0 3px rgba(224, 69, 138, .25); }
.pick span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--c2); color: #fff; font: 600 .7rem/1.5 var(--sans); }
@media (max-width: 640px) {
  .cover-panel { grid-template-columns: 1fr; }
  .cover-now { grid-row: auto; }
  .album-hero-cover { width: 96px; }
  .album-hero-btn { width: 100%; }
}

/* ---------- admin ---------- */
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font: 700 .72rem/1 var(--sans); vertical-align: 1px; }
.announce { background: var(--grad); color: #fff; font-weight: 600; font-size: .92rem; text-align: center; padding: 10px 0; }
.notice { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.notice form { margin-left: auto; }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.admin-nav { position: sticky; top: 88px; display: grid; gap: 4px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; }
.admin-nav a:hover { color: var(--text); background: var(--surface-2); }
.admin-nav a.on { color: var(--text); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--c2); }
.admin-who { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; padding: 0 4px 12px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.admin-alert { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 181, 71, .12); border: 1px solid rgba(255, 181, 71, .35); font-size: .82rem; font-weight: 600; }
.admin-main { min-width: 0; }
.admin-main .page-head { margin-top: 0; }
.admin-card { padding: 22px; margin-bottom: 20px; }
.admin-card h2 { font-size: 1.2rem; margin: 0 0 14px; }
.admin-card h2 + h2, .admin-card .log-list + h2 { margin-top: 24px; }
.admin-card hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.admin-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.admin-2col .admin-card { margin-bottom: 0; }
.admin-2col + .admin-card { margin-top: 20px; }
.kpis a { display: block; text-decoration: none; }
.admin .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .admin .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-list .tag { flex: none; }
.act-form > button, .act-form > .btn { justify-self: start; }
.kpis small { display: block; margin-top: 6px; font-size: .78rem; }
.kpis li:hover { border-color: var(--line-2); }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 600 .72rem/1.6 var(--sans); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tag-err { background: rgba(255, 90, 110, .14); color: #ff8796; border-color: rgba(255, 90, 110, .35); }
.tag-warn { background: rgba(255, 181, 71, .14); color: #ffc46b; border-color: rgba(255, 181, 71, .35); }
.tag-brand { background: rgba(224, 69, 138, .16); color: #ff86bd; border-color: rgba(224, 69, 138, .35); }
@media (prefers-color-scheme: light) { .tag-err { color: #c22c41; } .tag-warn { color: #a86400; } .tag-brand { color: #b51f66; } }
.legend { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg-u, .bar-u { background: var(--c3); }
.lg-p, .bar-p { background: var(--c1); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 160px; align-items: end; }
.bar-day { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; border-bottom: 1px solid var(--line); }
.bar-pair span { width: 40%; min-height: 2px; border-radius: 4px 4px 0 0; }
.bar-day small { color: var(--muted); font-size: .72rem; }
.mini-list, .log-list, .reasons, .comment-admin { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; }
.mini-list a:hover { background: var(--surface-2); color: var(--text); }
.mini-list img, .cell-user img, .comment-admin img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.mini-list span, .cell-user span { display: grid; flex: 1; min-width: 0; }
.mini-list small, .cell-user small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.log-list li:last-child { border-bottom: 0; }
.log-list span { color: var(--muted); }
.log-list em { color: var(--muted); font-style: normal; }
.log-list small { display: block; color: var(--muted); font-size: .78rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.sort select { width: auto; padding: 6px 10px; font-size: .85rem; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-user { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 180px; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.report-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 18px; margin-bottom: 14px; }
.report-subject img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius-sm); }
.report-subject blockquote { margin: 0 0 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border-left: 3px solid var(--c2); font-size: .92rem; }
.subject-missing { display: grid; place-items: center; text-align: center; height: 160px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); color: var(--muted); font-size: .85rem; }
.subject-user { display: grid; gap: 8px; text-decoration: none; }
.subject-user img { width: 72px; height: 72px; border-radius: 50%; }
.subject-user small { color: var(--muted); font-size: .8rem; }
.report-title { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 10px; }
.reasons li { padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: .9rem; }
.reasons small { color: var(--muted); }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 14px; }
.report-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.act summary { list-style: none; cursor: pointer; }
.act summary::-webkit-details-marker { display: none; }
.act[open] { flex-basis: 100%; }
.act-form { display: grid; gap: 10px; margin-top: 10px; }
.act-form .checks, .checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.inline-form { display: flex !important; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { flex: 1; min-width: 140px; width: auto; padding: 8px 12px; font-size: .9rem; }
.inline-form select { flex: 0 0 auto; }
.act-form input, .act-form textarea, .act-form select { font-size: .9rem; }
.act-form .label { font-weight: 500; font-size: .9rem; }
.danger-act { margin-top: 16px; }
.member-head { padding: 0; overflow: hidden; margin-bottom: 20px; }
.member-banner { height: 120px; background: center/cover; }
.member-id { display: flex; gap: 18px; align-items: center; padding: 22px 22px 0; }
.member-id img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; padding: 3px; background: var(--grad); flex: none; }
.member-id h1 { font-size: 1.8rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.member-id p { margin: 2px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 24px; margin: 20px 22px 0; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; word-break: break-word; }
.member-stats { padding: 16px 22px 20px; margin-top: 16px; border-top: 1px solid var(--line); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.admin-grid.big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.admin-tile { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; border: 2px solid transparent; }
.admin-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-tile input { position: absolute; top: 8px; left: 8px; z-index: 2; width: 20px; height: 20px; accent-color: var(--c2); }
.admin-tile:has(input:checked) { border-color: var(--c2); box-shadow: 0 0 0 3px rgba(224, 69, 138, .3); }
.admin-tile.is-hidden img { opacity: .35; filter: grayscale(1); }
.tile-flag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(10, 6, 20, .7); color: #fff; font: 600 .7rem/1.5 var(--sans); }
.tile-flag.flag-err { top: auto; bottom: 8px; right: 8px; background: var(--err); }
.admin-grid.big .tile-flag.flag-err { bottom: auto; top: 34px; }
.tile-open { position: absolute; top: 6px; right: 8px; z-index: 2; display: none; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: rgba(10, 6, 20, .7); color: #fff; text-decoration: none; }
.admin-tile:hover .tile-open { display: grid; }
.admin-tile:hover .tile-flag:not(.flag-err) { display: none; }
.tile-cap { display: block; padding: 8px 10px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.tile-cap a { color: var(--text); text-decoration: none; font-weight: 600; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin: 14px 0; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2); }
.bulk-bar.sticky { position: sticky; top: 76px; z-index: 5; margin-top: 0; box-shadow: var(--shadow); }
.bulk-bar input[name=reason] { flex: 1; min-width: 160px; width: auto; padding: 8px 12px; font-size: .88rem; }
.bulk-bar [data-count] { color: var(--muted); font-size: .85rem; min-width: 80px; }
.bulk-bar .check { font-size: .85rem; }
.comment-admin { padding: 6px 0; }
.comment-admin li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.comment-admin li:last-child { border-bottom: 0; }
.comment-admin small { display: block; margin-top: 2px; }
.comment-admin .check { margin: 0; }
.profile-report { margin-top: 8px; text-align: right; }
.profile-report .report-form { text-align: left; min-width: 260px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-who, .admin-alert { display: none; }
  .report-card { grid-template-columns: 1fr; }
  .report-subject img, .subject-missing { width: 100%; height: auto; aspect-ratio: 1; max-width: 260px; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) rotate(-3deg); } to { transform: translate3d(3%, 3%, 0) rotate(3deg); } }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(30px, -24px, 0) scale(1.08); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 200px; padding: 28px; }
  .post { grid-template-columns: 1fr; }
  .post-side { position: static; }
}
@media (max-width: 560px) {
  .topbar-inner { height: 60px; gap: 8px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 26px; height: 26px; }
  .nav { gap: 2px; }
  .nav > a:not(.btn) { padding: 6px 7px; font-size: .86rem; }
  .nav-avatar img { width: 32px; height: 32px; }
  .nav .btn-sm { padding: 0 12px; }
  .grid { gap: 8px; }
  .tile { border-radius: 12px; }
  .tile-meta { display: none; }
  .profile-card { padding: 0 8px; margin-top: -52px; gap: 14px; }
  .profile-avatar { width: 104px; height: 104px; }
  .profile-main { padding-top: 0; flex-basis: 100%; }
  .profile-actions { padding-top: 0; }
  .form { padding: 20px; }
  .report-row img { width: 72px; height: 72px; }
}
