/* ==========================================================================
   XCUT Hub — 2026 home (assets/css/home.css)
   Soft canvas · borderless white surfaces · pill buttons · image-first feed
   ========================================================================== */

:root {
  --x-canvas: #f4f4f1;
  --x-surface: #ffffff;
  --x-surface-2: #ececE8;
  --x-ink: #0e0f0e;
  --x-ink-2: #2b2d2b;
  --x-muted: #6c706c;
  --x-faint: #a3a7a3;

  --x-brand: #1d6b45;          /* XCUT emerald */
  --x-brand-deep: #0f3b2a;     /* feature panel */
  --x-brand-soft: #e3f1e8;
  --x-live: #ff4d3d;
  --x-love: #ff5a7a;

  --x-radius-sm: 14px;
  --x-radius: 22px;
  --x-radius-lg: 32px;
  --x-pill: 999px;

  --x-shadow-sm: 0 1px 2px rgba(14, 15, 14, 0.04), 0 4px 14px rgba(14, 15, 14, 0.04);
  --x-shadow: 0 2px 6px rgba(14, 15, 14, 0.04), 0 18px 40px rgba(14, 15, 14, 0.07);
  --x-shadow-float: 0 10px 30px rgba(14, 15, 14, 0.12);

  /* 8pt spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --x-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --x-wrap: 1180px;
  --x-gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.x26 {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--x-canvas);
  color: var(--x-ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:where(.x26) a { color: inherit; text-decoration: none; }
.x26 img { display: block; max-width: 100%; }
.x26 h1, .x26 h2, .x26 h3, .x26 p { margin: 0; }
.x26 button { font: inherit; color: inherit; }
.x26 :focus-visible { outline: 2px solid var(--x-brand); outline-offset: 3px; }
.x26 [data-lucide], .x26 svg.lucide { width: 18px; height: 18px; flex: 0 0 auto; }

.x-wrap {
  width: 100%;
  max-width: var(--x-wrap);
  margin-inline: auto;
  padding-inline: var(--x-gutter);
}

.x-main { padding-bottom: var(--s5); }
.x-muted { color: var(--x-muted); }
.x-small { font-size: 0.875rem; }
.x-inline-form { display: inline-flex; margin: 0; }

/* ---------- Buttons (all pills) ---------- */
.x-btn, .x-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--x-pill);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--x-ease), background-color 180ms var(--x-ease), box-shadow 240ms var(--x-ease);
}
.x-btn { background: var(--x-ink); color: #fff !important; }
.x-btn:hover { background: #262826; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 15, 14, 0.18); }
.x-btn-soft { background: var(--x-surface-2); color: var(--x-ink) !important; }
.x-btn-soft:hover { background: #e2e2dd; transform: translateY(-1px); }
.x-btn:active, .x-btn-soft:active { transform: scale(0.97); }
.x-btn-light { background: #fff; color: var(--x-ink) !important; }
.x-btn-light:hover { background: #f1f1ec; }
.x-btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.x-btn-xs { min-height: 34px; padding: 0 14px; font-size: 0.82rem; }

.x-round-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--x-ink);
  color: #fff !important;
  cursor: pointer;
  transition: transform 180ms var(--x-ease);
}
.x-round-btn:hover { transform: scale(1.06); }
.x-round-btn-lg { width: 52px; height: 52px; }
.x-sr-label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.x-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
  transition: transform 180ms var(--x-ease);
}
.x-icon-btn:hover { transform: translateY(-1px); }

.x-link { font-weight: 600; font-size: 0.92rem; color: var(--x-muted); }
.x-link:hover { color: var(--x-ink); }
.x-link-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.x-link-quiet { font-weight: 600; font-size: 0.95rem; color: var(--x-ink-2); padding: 0 var(--s3); }

/* ---------- Header ---------- */
.x-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 241, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.x-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 76px;
}
.x-brand { display: inline-flex; align-items: center; gap: 10px; }
.x-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--x-ink);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.x-brand-word { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }

.x-nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: 5px;
  border-radius: var(--x-pill);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
}
.x-nav a {
  padding: 9px 18px;
  border-radius: var(--x-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--x-muted);
  transition: color 180ms var(--x-ease), background-color 180ms var(--x-ease);
}
.x-nav a:hover { color: var(--x-ink); }
.x-nav a.is-active { background: var(--x-ink); color: #fff; }

.x-header-actions { display: flex; align-items: center; gap: var(--s2); }

.x-account { position: relative; }
.x-account > summary { list-style: none; cursor: pointer; }
.x-account > summary::-webkit-details-marker { display: none; }
.x-avatar-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--x-brand);
  color: #fff;
  font-weight: 700;
}
.x-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: var(--s2);
  border-radius: var(--x-radius);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-float);
  animation: x-pop 220ms var(--x-ease);
}
.x-account-name { padding: 10px 12px 8px; font-weight: 700; font-size: 0.92rem; }
.x-account-menu a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 11px 12px;
  border-radius: var(--x-radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--x-ink-2);
}
.x-account-menu a:hover { background: var(--x-canvas); }

/* ---------- Hero ---------- */
.x-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--s7);
  padding-top: var(--s7);
  padding-bottom: var(--s6);
}
.x-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px 14px;
  border-radius: var(--x-pill);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--x-ink-2);
}
.x-display {
  margin-top: var(--s5) !important;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.x-display strong { font-weight: 800; }
.x-display-sm { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: var(--s3) !important; }
.x-lead {
  max-width: 440px;
  margin-top: var(--s5) !important;
  font-size: 1.08rem;
  color: var(--x-muted);
}
.x-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s6); }
.x-btn-play { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 600; }
.x-play-ring {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
  transition: transform 180ms var(--x-ease);
}
.x-btn-play:hover .x-play-ring { transform: scale(1.06); }

.x-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--x-brand); flex: 0 0 8px; }
.x-dot-live { background: var(--x-live); animation: x-pulse 1.8s ease-out infinite; }

.x-hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.x-arch {
  aspect-ratio: 11 / 14;
  overflow: hidden;
  border-radius: 999px 999px var(--x-radius-lg) var(--x-radius-lg);
  background: linear-gradient(160deg, #cfdcd3, #9fb8a8);
  box-shadow: var(--x-shadow);
}
.x-arch img { width: 100%; height: 100%; object-fit: cover; }
.x-arch-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(160deg, var(--x-brand), var(--x-brand-deep));
}
.x-arch-fallback span { color: rgba(255, 255, 255, 0.9); font-size: 3.2rem; font-weight: 800; letter-spacing: 0.08em; }

.x-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px 14px;
  border-radius: var(--x-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--x-shadow-float);
  font-size: 0.85rem;
  font-weight: 600;
  animation: x-float 6s ease-in-out infinite;
}
.x-float-top { top: 18%; left: -36px; }
.x-float-card {
  left: -28px;
  right: -28px;
  bottom: 28px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--x-radius);
  animation-delay: 0.6s;
}
.x-float-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.x-float-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.x-float-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--x-muted); font-weight: 500; font-size: 0.8rem; }
.x-float-love { top: 4%; right: -30px; max-width: 250px; font-weight: 500; animation-delay: 1.2s; }
.x-float-love strong { font-weight: 700; }

.x-love-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #ffe8ee;
  color: var(--x-love);
}
.x-love-icon [data-lucide], .x-love-icon svg { width: 16px; height: 16px; fill: currentColor; }

.x-results-hero { padding-top: var(--s7); padding-bottom: var(--s5); }
.x-results-hero .x-muted { margin-top: var(--s3); }

/* ---------- Search ---------- */
.x-search {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: 8px 8px 8px 22px;
  border-radius: var(--x-pill);
  background: var(--x-surface);
  box-shadow: var(--x-shadow);
  color: var(--x-faint);
}
.x-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--x-ink);
  font: inherit;
  font-size: 1rem;
}
.x-search input::placeholder { color: var(--x-faint); }
.x-search:focus-within { box-shadow: 0 0 0 4px var(--x-brand-soft), var(--x-shadow); }

/* ---------- Sections ---------- */
.x-section { margin-top: var(--s8); }
.x-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.x-section-head h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.x-section-head-tight { margin-bottom: var(--s4); }
.x-h3 { font-size: 1.1rem !important; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Stories (artists) ---------- */
.x-stories {
  display: flex;
  gap: var(--s5);
  overflow-x: auto;
  padding: var(--s1) var(--s1) var(--s3);
  margin-inline: calc(var(--s1) * -1);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.x-stories::-webkit-scrollbar { display: none; }
.x-story { flex: 0 0 auto; scroll-snap-align: start; }
.x-story button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  width: 88px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.x-story-ring {
  display: block;
  width: 80px;
  height: 80px;
  padding: 3px;
  border-radius: 50%;
  background: #d8dad6;
  transition: transform 220ms var(--x-ease);
}
.x-story-ring.is-active { background: conic-gradient(from 200deg, #1d6b45, #7fd49b, #f2c14e, #1d6b45); }
.x-story button:hover .x-story-ring { transform: scale(1.05); }
.x-story-ring img, .x-story-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--x-canvas);
  object-fit: cover;
}
.x-story-fallback {
  display: grid;
  place-items: center;
  background: var(--x-surface);
  font-weight: 700;
  color: var(--x-brand);
}
.x-story-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--x-ink-2);
}

/* ---------- Feed + sidebar layout ---------- */
.x-layout {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 340px);
  justify-content: space-between;
  gap: var(--s7);
  align-items: start;
}
.x-feed { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.x-feed > .x-section-head { margin-bottom: 0; }

/* ---------- Post (Instagram-style) ---------- */
.x-post {
  overflow: hidden;
  border-radius: var(--x-radius-lg);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
  transition: box-shadow 280ms var(--x-ease), transform 280ms var(--x-ease);
}
.x-post:hover { box-shadow: var(--x-shadow); }
.x-post-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
}
.x-post-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.x-post-who strong { font-size: 0.95rem; font-weight: 700; }
.x-post-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; color: var(--x-muted); }

.x-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--x-surface-2);
}
.x-avatar-sm { width: 40px; height: 40px; flex-basis: 40px; }
.x-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--x-brand-soft);
  color: var(--x-brand);
  font-weight: 700;
  font-size: 0.85rem;
}

.x-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--x-pill);
  background: var(--x-canvas);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--x-ink-2);
}
.x-tag-live { background: #ffeceA; color: #c4291b; }

.x-post-media {
  display: block;
  position: relative;
  margin-inline: var(--s3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--x-radius);
  background: var(--x-surface-2);
}
.x-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--x-ease); }
.x-post:hover .x-post-media img { transform: scale(1.025); }
.x-post-fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s2);
  height: 100%;
  padding: var(--s6);
  background:
    radial-gradient(circle at 80% 15%, rgba(127, 212, 155, 0.45), transparent 45%),
    linear-gradient(160deg, var(--x-brand), var(--x-brand-deep));
  color: #fff;
}
.x-post-fallback-mode { font-size: 0.8rem; font-weight: 600; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.x-post-fallback-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.x-media-chip {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  padding: 8px 14px;
  border-radius: var(--x-pill);
  background: rgba(14, 15, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.x-post-body { padding: var(--s5); }
.x-post-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.x-post-caption {
  margin-top: var(--s2) !important;
  color: var(--x-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.x-post-date {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3) !important;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--x-ink-2);
}
.x-post-date [data-lucide], .x-post-date svg { width: 16px; height: 16px; color: var(--x-muted); }
.x-post-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

/* ---------- Sidebar ---------- */
.x-side { min-width: 0; }
.x-side-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--s5); }
.x-panel {
  padding: var(--s5);
  border-radius: var(--x-radius-lg);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
}
.x-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s4); }
.x-person { display: flex; align-items: center; gap: var(--s3); }
.x-person-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.x-person-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.x-person-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--x-muted); }

.x-panel-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 212, 155, 0.28), transparent 50%),
    var(--x-brand-deep);
  color: #eef6f0;
}
.x-panel-dark p { margin: var(--s2) 0 var(--s5) !important; color: rgba(238, 246, 240, 0.72); font-size: 0.92rem; }
.x-panel-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #c9f0d6;
}
.x-side-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding-inline: var(--s2); font-size: 0.8rem; color: var(--x-faint); }
.x-side-links a:hover { color: var(--x-ink); }

/* ---------- Empty state ---------- */
.x-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  padding: var(--s8) var(--s5);
  border-radius: var(--x-radius-lg);
  background: var(--x-surface);
  text-align: center;
}
.x-empty h3 { font-size: 1.1rem; }
.x-empty .x-btn-soft { margin-top: var(--s3); }
.x-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--x-canvas);
  color: var(--x-muted);
}

/* ---------- Toast ---------- */
.x-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: min(380px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  border-radius: var(--x-radius);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-float);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 260ms var(--x-ease), transform 320ms var(--x-ease);
}
.x-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.x-toast-text { flex: 1; min-width: 0; line-height: 1.4; }
.x-toast-head { font-size: 0.75rem; color: var(--x-muted); margin-bottom: 2px; }
.x-toast .muted { color: var(--x-muted); }
.x-toast-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 50%;
  background: var(--x-canvas);
  cursor: pointer;
}
.x-toast-close [data-lucide], .x-toast-close svg { width: 15px; height: 15px; }

/* ---------- Mobile dock ---------- */
.x-dock { display: none; }

/* ---------- Motion ---------- */
@keyframes x-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes x-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0.5); } 100% { box-shadow: 0 0 0 9px rgba(255, 77, 61, 0); } }
@keyframes x-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .x26 *, .x26 *::before, .x26 *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .x-layout { grid-template-columns: minmax(0, 1fr); }
  .x-feed { max-width: 620px; width: 100%; margin-inline: auto; }
  .x-side { max-width: 620px; width: 100%; margin-inline: auto; }
  .x-side-sticky { position: static; }
}

@media (max-width: 860px) {
  :root { --x-gutter: 16px; }
  .x-nav { display: none; }
  .x-hero { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s5); }
  .x-hero-art { width: min(100%, 360px); }
  .x-float-top { left: -8px; }
  .x-float-love { right: -8px; }
  .x-float-card { left: -8px; right: -8px; }
  .x-section { margin-top: var(--s7); }

  .x-dock {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 55;
    display: flex;
    align-items: center;
    gap: var(--s3);
  }
  .x-dock-bar {
    flex: 1;
    display: flex;
    justify-content: space-around;
    padding: 6px;
    border-radius: var(--x-pill);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--x-shadow-float);
  }
  .x-dock-bar a {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--x-faint);
  }
  .x-dock-bar a.is-active { background: var(--x-canvas); color: var(--x-ink); }
  .x-dock-bar [data-lucide], .x-dock-bar svg { width: 26px; height: 26px; }
  .x-dock-fab {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    background: var(--x-ink);
    color: #fff;
    box-shadow: var(--x-shadow-float);
  }
  .x-dock-fab [data-lucide], .x-dock-fab svg { width: 28px; height: 28px; }
  .x-main { padding-bottom: var(--s5); }
  .x-toast { left: 16px; right: 16px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .x-hide-sm { display: none; }
  .x-display { font-size: 2.6rem; }
  .x-post { border-radius: var(--x-radius); }
  .x-post-head { padding: var(--s3) var(--s4); }
  .x-post-media { margin-inline: var(--s2); border-radius: var(--x-radius-sm); }
  .x-post-body { padding: var(--s4); }
  .x-post-actions .x-btn, .x-post-actions .x-btn-soft { min-height: 44px; }
  .x-float-love { display: none; }
  .x-search { padding-left: 18px; }
  .x-search input { height: 46px; }
  .x-round-btn-lg { width: 46px; height: 46px; }
}

/* ==========================================================================
   XHUB live-code additions (2026-2): logo, menus, releases, tracks,
   mobile-app card with store badges, footer, social icons.
   ========================================================================== */

/* XHUB "Twisted Signal" logo: ink wave + emerald wave, same SVGs as the rest of the site */
.x-brand-mark {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 0;
  background: none;
}
.x-brand-mark::before,
.x-brand-mark::after { content: ""; position: absolute; inset: 0; }
.x-brand-mark::before {
  background: var(--x-ink);
  -webkit-mask: url("../img/xhub-mark-ink.svg") center / contain no-repeat;
  mask: url("../img/xhub-mark-ink.svg") center / contain no-repeat;
}
.x-brand-mark::after {
  background: var(--x-brand);
  -webkit-mask: url("../img/xhub-mark-accent.svg") center / contain no-repeat;
  mask: url("../img/xhub-mark-accent.svg") center / contain no-repeat;
}

/* Dropdown menus (Explore, account) */
.x-menu { position: relative; }
.x-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.x-menu > summary::-webkit-details-marker { display: none; }
.x-nav .x-menu > summary {
  padding: 9px 14px 9px 18px;
  border-radius: var(--x-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--x-muted);
}
.x-nav .x-menu > summary:hover,
.x-nav .x-menu[open] > summary { color: var(--x-ink); }
.x-menu > summary [data-lucide], .x-menu > summary svg { width: 16px; height: 16px; transition: transform 200ms var(--x-ease); }
.x-menu[open] > summary [data-lucide], .x-menu[open] > summary svg { transform: rotate(180deg); }
.x-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  width: 230px;
  padding: var(--s2);
  border-radius: var(--x-radius);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-float);
  animation: x-pop 220ms var(--x-ease);
}
.x-menu-right { left: auto; right: 0; }
.x-menu-panel a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 11px 12px;
  border-radius: var(--x-radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--x-ink-2);
}
.x-menu-panel a:hover { background: var(--x-canvas); }
.x-account-menu { display: none; }
/* The avatar circle is also a menu summary: keep its letter dead-centre. */
.x-menu > summary.x-avatar-btn {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

/* Latest releases: swipe rail */
.x-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: var(--s5);
  overflow-x: auto;
  padding: var(--s1) var(--s1) var(--s4);
  margin-inline: calc(var(--s1) * -1);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.x-rail::-webkit-scrollbar { display: none; }
.x-release { display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; min-width: 0; }
.x-release-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: var(--s2);
  border-radius: var(--x-radius);
  background: linear-gradient(160deg, #e2ebe5, #cfdcd3);
  box-shadow: var(--x-shadow-sm);
}
.x-release-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--x-ease); }
.x-release:hover .x-release-art img { transform: scale(1.04); }
.x-release-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(14, 15, 14, 0.25);
}
.x-release-tag,
.x-release-price {
  position: absolute;
  top: var(--s3);
  padding: 5px 10px;
  border-radius: var(--x-pill);
  font-size: 0.72rem;
  font-weight: 700;
}
.x-release-tag { left: var(--s3); background: rgba(255, 255, 255, 0.92); color: var(--x-ink); }
.x-release-price { right: var(--s3); background: var(--x-ink); color: #fff; }
.x-release strong { font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-release > span:last-child { font-size: 0.85rem; color: var(--x-muted); }

/* New tracks list (sidebar) */
.x-tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.x-track { margin: 0; }
.x-track button {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: var(--x-radius-sm);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms var(--x-ease);
}
.x-track button:hover { background: var(--x-canvas); }
.x-track-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--x-brand-soft);
  color: var(--x-brand);
}
.x-track-art img { width: 100%; height: 100%; object-fit: cover; }
.x-track-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(14, 15, 14, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 180ms var(--x-ease);
}
.x-track-play [data-lucide], .x-track-play svg { width: 18px; height: 18px; fill: currentColor; }
.x-track button:hover .x-track-play { opacity: 1; }
.x-track-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.x-track-text strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-track-text span { font-size: 0.8rem; color: var(--x-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* XHUB Mobile card with store badges */
.x-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: var(--s7);
  overflow: hidden;
  padding: 56px;
  border-radius: var(--x-radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(127, 212, 155, 0.3), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(127, 212, 155, 0.12), transparent 40%),
    var(--x-brand-deep);
  color: #eef6f0;
}
.x-app-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px 14px;
  border-radius: var(--x-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #c9f0d6;
  font-size: 0.82rem;
  font-weight: 600;
}
.x-dot-glow { background: #7fd49b; box-shadow: 0 0 0 4px rgba(127, 212, 155, 0.2); }
.x-app h2 {
  margin: var(--s5) 0 var(--s4);
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.x-app p { max-width: 460px; color: rgba(238, 246, 240, 0.72); font-size: 1.02rem; }
.x-app-stores { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.x-store {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 58px;
  padding: 10px 22px 10px 18px;
  border-radius: var(--x-pill);
  background: #ffffff;
  color: var(--x-ink);
  transition: transform 180ms var(--x-ease), box-shadow 240ms var(--x-ease);
}
.x-store svg { width: 24px; height: 24px; flex: 0 0 24px; }
.x-store > span { display: flex; flex-direction: column; line-height: 1.15; }
.x-store small { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--x-muted); }
.x-store strong { font-size: 1.05rem; font-weight: 700; }
a.x-store:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25); }
.x-store.is-soon { background: rgba(255, 255, 255, 0.1); color: #fff; cursor: default; }
.x-store.is-soon small { color: #7fd49b; }
.x-app-note { margin-top: var(--s4) !important; font-size: 0.88rem !important; }

.x-app-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.x-phone {
  width: 190px;
  height: 380px;
  padding: 10px;
  border-radius: 38px;
  background: #0b0c0b;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-8deg);
  animation: x-float 7s ease-in-out infinite;
}
.x-phone-notch { width: 64px; height: 18px; margin: 4px auto 0; border-radius: var(--x-pill); background: #000; }
.x-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% - 22px);
  margin-top: -18px;
  padding: 30px 14px 14px;
  border-radius: 30px;
  background: var(--x-canvas);
}
.x-phone-brand { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: var(--x-ink); }
.x-phone-art {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(160deg, #4fbf83, var(--x-brand-deep));
}
.x-phone-line { height: 8px; width: 60%; border-radius: var(--x-pill); background: #dcdcd6; }
.x-phone-line.is-wide { width: 85%; background: #c8c8c1; }
.x-phone-player { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.x-phone-play { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--x-ink); }
.x-phone-bar { flex: 1; height: 4px; border-radius: var(--x-pill); background: #dcdcd6; overflow: hidden; }
.x-phone-bar span { display: block; width: 40%; height: 100%; background: var(--x-brand); }
.x-phone-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.x-phone-tiles span { aspect-ratio: 1 / 1; border-radius: 10px; background: #e4e4df; }

/* Footer */
.x-footer { padding-top: var(--s6); padding-bottom: var(--s7); }
.x-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-bottom: var(--s5);
}
.x-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid rgba(14, 15, 14, 0.06);
  font-size: 0.85rem;
  color: var(--x-muted);
}
.x-footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.x-footer-bottom a:hover { color: var(--x-ink); }

/* Social icons (markup from services/social_links.php) */
.x26 .xsoc-follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.x26 .xsoc-follow > span { font-weight: 600; font-size: 0.9rem; color: var(--x-ink-2); }
.x26 .xsoc-icons { display: flex; flex-wrap: wrap; gap: var(--s2); }
.x26 .xsoc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--x-surface);
  box-shadow: var(--x-shadow-sm);
  color: var(--x-ink);
  transition: transform 180ms var(--x-ease), background-color 180ms var(--x-ease), color 180ms var(--x-ease);
}
.x26 .xsoc-icon svg { width: 20px; height: 20px; }
.x26 .xsoc-icon:hover { background: var(--x-ink); color: #fff; transform: translateY(-2px); }

/* First-use tips (assets/js/tips.js) need a light look here too */
.x26 .xcut-tip { font-family: inherit; }

@media (max-width: 860px) {
  .x-nav .x-menu { display: none; }
  .x-app { grid-template-columns: 1fr; padding: 36px 28px; gap: var(--s5); }
  .x-app-visual { min-height: 0; order: -1; justify-items: start; }
  .x-phone { width: 140px; height: 280px; border-radius: 30px; }
  .x-phone-screen { border-radius: 22px; padding: 26px 10px 10px; gap: 7px; }
  .x-footer { padding-bottom: 130px; }
}
@media (max-width: 560px) {
  .x-rail { grid-auto-columns: 160px; gap: var(--s4); }
  .x-store { min-height: 52px; padding: 8px 18px 8px 14px; }
  .x-app-visual { display: none; }
}

/* Bolder icons site-wide (owner's request, 2026-12-02): every 24x24 line icon - Lucide and inline SVGs - drawn thicker. */
svg[viewBox="0 0 24 24"], svg[viewBox="0 0 24 24"] * { stroke-width: 2.5; }

/* Phone/tablet: no top menu on the home page (owner's request, 2026-12-02); the bottom dock is the menu there. Desktop keeps it. */
@media (max-width: 860px) {
  .x-header { display: none; }
  .x-main { padding-top: calc(var(--s4) + env(safe-area-inset-top)); }
}
/* Dock icons: bigger and bolder (owner's request). Same look as includes/dock.php on other pages. */
html body .x-dock svg, html body .x-dock svg * { stroke-width: 2.6; }
html body .x-dock-bar a:not(.is-active) { color: rgba(14, 15, 14, .55); }
html body .x-dock-bar svg.lucide, html body .x-dock-bar [data-lucide] { width: 26px; height: 26px; }
html body .x-dock-fab svg.lucide, html body .x-dock-fab [data-lucide] { width: 28px; height: 28px; }
/* Phones: 7px edge (owner's request). */
@media (max-width: 640px) { :root { --x-gutter: 7px; } .x-dock { left: 7px; right: 7px; } }

/* New tracks: the cover is a 30-second preview button; the title opens the artist's music (owner's request). */
.x-track-row { display: flex; align-items: center; gap: 4px; }
.x-track-row > .x-track-art { margin-left: 6px; }
.x-track-row .x-track { flex: 1; min-width: 0; }
.x-track-preview { padding: 0; border: 0; cursor: pointer; }
.x-track-preview .x-track-play { opacity: 1; background: rgba(14, 15, 14, 0.32); }
.x-track-preview:hover .x-track-play { background: rgba(14, 15, 14, 0.5); }
html body .x-track-play svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.x-track-play .x-i-pause { display: none; }
.x-track-preview.is-playing .x-track-play { background: color-mix(in srgb, var(--x-brand) 72%, transparent); }
.x-track-preview.is-playing .x-i-play { display: none; }
.x-track-preview.is-playing .x-i-pause { display: block; }
.x-track-preview.is-unavailable { cursor: default; }
.x-track-preview.is-unavailable .x-track-play { display: none; }