@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #070304;
  --bg2: #110608;
  --panel: #16090b;
  --line: rgba(228, 48, 64, 0.22);
  --line2: rgba(244, 236, 230, 0.08);
  --red: #e43040;
  --red2: #9b1422;
  --red-glow: rgba(228, 48, 64, 0.22);
  --text: #f4ece6;
  --muted: #a39290;
  --gold: #d4a017;
  --ok: #34d399;
  --header: 64px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

body.light {
  --bg: #f3ece8;
  --bg2: #fffaf7;
  --panel: #ffffff;
  --line: rgba(155, 20, 34, 0.18);
  --line2: rgba(20, 8, 10, 0.08);
  --red: #c21b2c;
  --red2: #8a101c;
  --red-glow: rgba(194, 27, 44, 0.16);
  --text: #1b0d10;
  --muted: #6d5759;
  --gold: #9a7408;
  --shadow: 0 16px 32px rgba(80, 20, 28, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(228,48,64,.16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(90,8,16,.45), transparent 55%);
}
body.light::before {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(194,27,44,.10), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(194,27,44,.08), transparent 55%);
}
#stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
#cursor-glow {
  position: fixed; width: 280px; height: 280px; border-radius: 50%;
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--red-glow), transparent 68%);
  opacity: .55; mix-blend-mode: screen; transition: opacity .2s;
}
body.light #cursor-glow { mix-blend-mode: multiply; opacity: .28; }

button:not(:disabled), [role="button"]:not(:disabled), a { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { position: relative; z-index: 2; }

.top {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header);
  height: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-weight: 800; letter-spacing: .12em;
  font-size: 13px; color: var(--red);
  transition: transform .25s ease, filter .25s ease;
}
.brand .lockup {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 13px;
  color: var(--red);
  white-space: nowrap;
}
.brand:hover { transform: translateY(-1px); filter: drop-shadow(0 0 10px var(--red-glow)); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--red);
  display: grid; place-items: center;
  background: rgba(228,48,64,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .mark { transform: rotate(-8deg) scale(1.05); box-shadow: 0 0 16px var(--red-glow); }
.nav-desk { display: none; gap: 6px; }
.nav-desk a {
  font-size: 13px; color: var(--muted); font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
  transition: color .2s, background .2s, transform .2s;
}
.nav-desk a:hover, .nav-desk a.on {
  color: var(--text); background: rgba(228,48,64,.12); transform: translateY(-1px);
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .menu-btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); display: grid; place-items: center; font-size: 18px;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.icon-btn:hover, .menu-btn:hover {
  color: var(--text); background: rgba(228,48,64,.12); border-color: var(--line); transform: translateY(-1px);
}
.menu-btn { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px var(--red-glow); }
.btn-red:hover { box-shadow: 0 12px 28px var(--red-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(228,48,64,.08); }
.btn-full { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 12px; }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
  background: var(--bg2); z-index: 80; border-left: 1px solid var(--line);
  transform: translateX(110%); transition: transform .28s ease;
  padding: 18px 14px; display: flex; flex-direction: column; gap: 2px;
}
.drawer.open { transform: translateX(0); }
.drawer .d-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 16px; color: var(--red);
  font-family: 'Cinzel', serif; letter-spacing: .16em; font-size: 13px;
}
.drawer .d-sec {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: 14px 10px 6px;
}
.drawer a, .drawer button.linkish {
  padding: 11px 12px; border-radius: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; background: none; border: 0;
  font: inherit; text-align: left; width: 100%;
  transition: background .2s, color .2s, transform .2s;
}
.drawer a i, .drawer button.linkish i { width: 18px; text-align: center; }
.drawer a:hover, .drawer a.on, .drawer button.linkish:hover {
  background: linear-gradient(90deg, rgba(228,48,64,.18), transparent);
  color: var(--text); transform: translateX(3px);
}
.drawer .leave { color: #f87171; margin-top: auto; }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none; transition: .2s;
}
.overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }

.hero {
  padding: 48px 18px 28px;
  max-width: 980px; margin: 0 auto;
}
.kicker {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 10px;
}
.hero h1 {
  font-family: 'Cinzel', serif; font-size: clamp(34px, 9vw, 64px);
  line-height: 1.05; font-weight: 800;
}
.hero p { margin-top: 14px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.section { max-width: 980px; margin: 0 auto; padding: 28px 18px; }
.section h2 {
  font-family: 'Cinzel', serif; font-size: 28px; margin: 6px 0 8px;
}
.section .lead { color: var(--muted); line-height: 1.6; max-width: 560px; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 0 1px var(--red-glow);
  border-color: var(--red);
}
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red);
}
.stat b {
  display: block; font-family: 'Cinzel', serif; font-size: 28px; color: var(--red);
}
.stat span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.div-grid { display: grid; gap: 12px; margin-top: 18px; }
.div-card {
  display: block; padding: 20px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.div-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.div-card small { color: var(--red); letter-spacing: .18em; font-size: 10px; font-weight: 700; }
.div-card h3 { font-family: 'Cinzel', serif; margin: 8px 0 6px; }
.div-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.gcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s, border-color .28s;
}
.gcard:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow), 0 0 24px var(--red-glow);
  border-color: var(--red);
}
.gcard .cover {
  height: 110px; background: #1a0a0c center/cover no-repeat;
  position: relative;
  transition: transform .4s ease;
}
.gcard:hover .cover { transform: scale(1.04); }
.gcard .cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--panel), transparent 70%);
}
.gcard .body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard .cat { font-size: 10px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.gcard h3 { font-size: 14px; line-height: 1.3; }
.gcard .meta { font-size: 12px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.badge.vip { color: var(--gold); border-color: rgba(212,160,23,.4); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600;
  transition: .2s;
}
.chip:hover, .chip.on { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-1px); }

.rank { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rank-row:hover { transform: translateX(4px); border-color: var(--red); box-shadow: var(--shadow); }
.rank-row b { width: 24px; color: var(--muted); font-family: 'Cinzel', serif; }
.rank-row b.t1 { color: var(--gold); }
.rank-row b.t2 { color: #c0c0c0; }
.rank-row b.t3 { color: #cd7f32; }
.rank-row .nm { flex: 1; min-width: 0; font-weight: 600; }
.rank-row .n { color: var(--muted); font-size: 12px; }

.search, .select {
  width: 100%; min-height: 44px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px 12px 40px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus, .select:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.search-wrap, .select-wrap { position: relative; margin: 10px 0; }
.search-wrap i, .select-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.staff-grid { display: grid; gap: 12px; margin-top: 16px; }
.staff {
  display: flex; gap: 12px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .25s, box-shadow .25s;
}
.staff:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.avatar {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red2), #2a0a0e);
  display: grid; place-items: center; color: var(--red); font-size: 22px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.form-box {
  max-width: 460px; margin: 40px auto; padding: 28px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
}
.form-box h2 { font-family: 'Cinzel', serif; text-align: center; margin-bottom: 6px; }
.form-box .sub { text-align: center; color: var(--muted); margin-bottom: 18px; font-size: 14px; }
label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 80%, #000);
  border: 1px solid var(--line); color: var(--text); outline: none;
  font-family: inherit;
}
body.light input, body.light textarea, body.light select { background: #fff; }
textarea { min-height: 100px; resize: vertical; }
.ok-box { text-align: center; padding: 20px 0; }
.ok-box i { font-size: 42px; color: var(--ok); }

.footer {
  border-top: 1px solid var(--line); padding: 28px 18px 40px;
  text-align: center; color: var(--muted); font-size: 13px;
}
.footer strong { color: var(--red); font-family: 'Cinzel', serif; letter-spacing: .12em; }
.foot-links { display: flex; justify-content: center; gap: 16px; margin: 12px 0; }
.foot-links a { font-size: 18px; transition: transform .2s, color .2s; }
.foot-links a:hover { color: var(--red); transform: translateY(-3px) scale(1.1); }

.splash {
  position: fixed; inset: 0; z-index: 500; background: #050203;
  display: grid; place-items: center; transition: opacity .55s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash .in { text-align: center; padding: 24px; }
.splash-logo {
  width: 118px; height: 118px; border-radius: 28px; overflow: hidden;
  margin: 0 auto; border: 1px solid rgba(228,48,64,.35);
  box-shadow: 0 0 40px var(--red-glow);
}
.splash-logo img { width: 100%; height: 100%; object-fit: cover; }
.splash i { font-size: 52px; color: var(--red); filter: drop-shadow(0 0 18px var(--red-glow)); }
.splash h1 {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  letter-spacing: .34em; margin-top: 22px; font-size: 13px;
  color: #f4ece6;
}
.splash-bar {
  width: 168px; height: 3px; margin: 22px auto 0;
  background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden;
}
.splash-bar span {
  display: block; height: 100%; width: 0; background: var(--red);
  animation: loadbar 2.5s ease forwards;
}
@keyframes loadbar { from { width: 0; } to { width: 100%; } }
.splash .enter {
  margin-top: 22px; min-width: 180px; border: 0; color: #fff;
  background: linear-gradient(90deg, #e43040, #9b1422 50%, #7c3aed);
  background-size: 160% 100%;
  animation: shine 3s linear infinite;
}
@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-shell {
  min-height: 100dvh; display: grid; place-items: center; padding: 20px; position: relative; z-index: 2;
}
.login-box {
  width: min(320px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px 16px;
  box-shadow: var(--shadow);
}
.login-box h2 { font-family: 'Cinzel', serif; text-align: center; font-size: 18px; }
.login-box .sub { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0 12px; }
.login-box input { min-height: 42px; }

.admin-shell { display: flex; min-height: 100dvh; position: relative; z-index: auto; }
.aside {
  width: 260px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100dvh;
}
.aside .d-head {
  color: var(--red); font-family: 'Cinzel', serif; letter-spacing: .16em;
  font-size: 13px; display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px 16px;
}
.aside .d-sec {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: 14px 10px 6px;
}
.aside a, .aside button.tabbtn {
  padding: 11px 12px; border-radius: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; background: none; border: 0;
  font: inherit; text-align: left; width: 100%;
  transition: background .2s, color .2s, transform .2s;
}
.aside a.on, .aside button.tabbtn.on {
  background: linear-gradient(90deg, rgba(124,58,237,.35), rgba(228,48,64,.18));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(167,139,250,.25);
}
.aside a:hover, .aside button.tabbtn:hover { color: var(--text); transform: translateX(3px); }
.aside .leave { color: #f87171; margin-top: auto; }
.admin-main { flex: 1; padding: 22px 18px 40px; min-width: 0; }
.admin-top {
  display: none; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  padding: 10px 14px; align-items: center; justify-content: space-between;
}
.pane { display: none; }
.pane.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.preview-card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border: 1px dashed var(--line); border-radius: 14px; margin-top: 10px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
}
.preview-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #1a0a0c; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.admin-item {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--panel);
  flex-wrap: wrap;
  transition: transform .2s, border-color .2s;
}
.admin-item:hover { transform: translateY(-2px); border-color: var(--red); }
.admin-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-lab {
  border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; font-size: 12px;
  transition: .2s;
}
.tag-lab:hover { border-color: var(--red); }
.tag-lab:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.tag-lab input { display: none; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal.on { display: flex; }
.modal .box { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; width: min(480px, 100%); max-height: 90dvh; overflow: auto; }

@media (max-width: 859px) {
  .admin-shell { flex-direction: column; }
  .aside { display: none; }
  .aside.open {
    display: flex;
    position: fixed;
    top: 54px;
    left: 0;
    bottom: 0;
    z-index: 4100;
    width: min(300px, 86vw);
    box-shadow: 12px 0 40px rgba(0,0,0,.45);
  }
  .admin-top { display: flex; }
  #closeAside { display: grid !important; }
}

@media (min-width: 860px) {
  .nav-desk { display: flex; }
  .menu-btn.public { display: none; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .div-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 72px; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
}

.brand .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.drawer a {
  position: relative;
}
.drawer a.on {
  background: rgba(228,48,64,.12);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--red);
}
.nav-desk a.on { box-shadow: inset 0 -2px 0 var(--red); background: transparent; }

.hero.tight { padding-top: 28px; padding-bottom: 8px; }
.hero.tight h1 { font-size: clamp(26px, 7vw, 44px); }
.sec-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.count-line { color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.count-line b { color: var(--red); }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
}
.tile-art {
  display: block;
  aspect-ratio: 1 / 1;
  background: #14080a center/cover no-repeat;
  position: relative;
}
.tile-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--red); opacity: .35; font-size: 34px;
}
.tile-vip { position: absolute; top: 8px; right: 8px; z-index: 2; background: #000; }
.tile-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-body h3 {
  font-size: 13px; line-height: 1.3; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-desc {
  font-size: 12px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.empty-note {
  margin-top: 16px; padding: 22px 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: 18px; background: var(--panel);
}
.empty-note i { color: var(--red); font-size: 22px; margin-bottom: 8px; }
.empty-note strong { display: block; margin: 6px 0 4px; }
.empty-note p { color: var(--muted); font-size: 13px; }
.ghost-sq.faint-sq { display: grid; place-items: center; opacity: .55; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--text);
}
.pill.faint { color: var(--muted); }
.tile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ghost-sq {
  min-height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
  transition: .2s;
}
.ghost-sq:hover { color: var(--text); border-color: var(--red); }

.owner-bar {
  margin-top: 16px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(228,48,64,.16), transparent 42%),
    var(--panel);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  position: relative;
}
.owner-bar::before {
  content: '';
  position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.owner-face {
  width: 92px; height: 92px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--red);
  display: grid; place-items: center;
  background: #14080a; color: var(--red); font-size: 32px;
}
.owner-face img { width: 100%; height: 100%; object-fit: cover; }
.owner-copy strong { display: block; font-size: 20px; }
.owner-copy em {
  display: inline-block; margin-top: 6px; font-style: normal;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 999px; padding: 4px 10px;
}
.owner-copy p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.owner-social { display: flex; gap: 10px; }
.owner-social a {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 18px; transition: .2s;
}
.owner-social a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.modal-top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; color: var(--red); }
.box.slim { width: min(360px, 100%); }
.info-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.info-rows > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.info-rows span { color: var(--muted); font-size: 13px; }
.info-rows b { color: var(--red); }
.rep-name { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.solo { display: grid; gap: 16px; }
.solo-art {
  aspect-ratio: 1 / 1; max-width: 420px; border-radius: 22px;
  background: #14080a center/cover no-repeat; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--red); font-size: 48px;
}
.solo-body h1 { font-family: Cinzel, serif; font-size: 28px; }

@media (min-width: 860px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .owner-bar { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
  .solo { grid-template-columns: 360px 1fr; align-items: center; }
}

.overlay { z-index: 70 !important; }
.overlay.show { top: 54px; }
.drawer { z-index: 85 !important; }
.aside.open, #adminAside.open { z-index: 85 !important; }
.admin-top { z-index: 90 !important; }
.menu-btn.is-open { color: var(--red); }
.top { z-index: 90; }
.tile-art { min-height: 0; max-height: none; aspect-ratio: 1 / 1 !important; }
.tile-fallback-img {
  position: absolute; inset: 0; margin: auto; width: 42px; height: 42px;
  object-fit: cover; border-radius: 10px; opacity: .85;
}
#closeAside { display: grid !important; }
@media (min-width: 860px) {
  #closeAside { display: none !important; }
  .admin-top { display: none; }
}
.chips { max-height: 120px; overflow: auto; }

.login-icon { display:flex; justify-content:center; align-items:center; margin:0 0 10px; }
.login-icon img { width:56px; height:56px; border-radius:16px; object-fit:cover; display:block; margin:0 auto; }
.login-box h2, .login-box .sub { text-align:center; }
.sec-title { display:flex; align-items:center; gap:10px; }
.sec-title i { color: var(--red); font-size: .72em; }
.owner-social button.off, .owner-social a.off {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 18px; background: transparent; color: var(--muted); opacity: .7;
}

.view-toggle {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.view-toggle .view-ico {
  display: none;
  width: 16px; height: 16px;
  gap: 2px;
}
.view-toggle .grid-ico {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.view-toggle .grid-ico i {
  display: block; width: 7px; height: 7px;
  border-radius: 1.5px; background: currentColor;
}
.view-toggle .row-ico {
  display: none;
  flex-direction: column;
  justify-content: center;
}
.view-toggle .row-ico i {
  display: block; width: 16px; height: 3px;
  border-radius: 2px; background: currentColor;
}
body.view-grid .view-toggle .grid-ico { display: none; }
body.view-grid .view-toggle .row-ico { display: flex; }
body.view-row .view-toggle .grid-ico { display: grid; }
body.view-row .view-toggle .row-ico { display: none; }

.tiles.view-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  margin-top: 12px;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.tiles.view-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tiles.view-row::-webkit-scrollbar { height: 6px; }
.tiles.view-row::-webkit-scrollbar-thumb {
  background: var(--red); border-radius: 99px;
}
.tiles.view-row .tile {
  flex: 0 0 calc((100% - 12px) / 2);
  max-width: none;
  scroll-snap-align: start;
}
.tiles.view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow: visible;
  cursor: default;
  padding-bottom: 0;
}
@media (min-width: 860px) {
  .tiles.view-grid { grid-template-columns: 1fr 1fr; }
}
