/* ── design tokens ───────────────────────────────────────────────────── */
:root {
  --bg:        #0e0e10;
  --surface:   #0a0a0a;
  --surface-2: #1a1a1a;
  --border:    #1d1d1d;
  --text:      #eaeaea;
  --text-dim:  #888;
  --text-mute: #555;
  --pink:      #eb6395;
  --pink-2:    #ff89b1;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --gap:       18px;
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── layout helpers ───────────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* ── topnav ───────────────────────────────────────────────────────────── */
/* The trick: keep the full-width background and bottom border, but use
   a clamped horizontal padding so on wide screens the contents collapse
   into a centered 1320px band (same width as <main>). On narrow screens
   the padding falls back to 16px. */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px max(16px, calc((100% - 1320px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topnav .logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.topnav .logo img { height: 26px; width: auto; }
.topnav .logo .brand { font-weight: 800; letter-spacing: .5px; font-size: 16px; }
.topnav .logo .brand .accent { color: var(--pink); }

/* links: sit immediately next to the logo, no greedy flex-grow */
.nav-links { display: flex; gap: 2px; flex: 0 1 auto; }
.nav-links a {
  font-weight: 700; font-size: 12px; letter-spacing: .4px;
  text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--radius);
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.06); }

/* CTAs hug the right edge of the band */
.nav-cta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* generic icon button — works inside .nav-cta and standalone (e.g. nav-bell) */
.btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius);
  color: var(--text);
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
}
.btn-icon:hover { background: rgba(255,255,255,.06); }
.btn-icon svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.btn-register, .btn-login {
  font-weight: 700; font-size: 12px; letter-spacing: .4px;
  text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius);
  display: inline-block;
  border: 0; cursor: pointer;
}
.btn-register { color: var(--text); border: 1px solid #2a2a2a; }
.btn-register:hover { background: rgba(255,255,255,.06); }
.btn-login { background: var(--pink); color: #fff; }
.btn-login:hover { filter: brightness(1.1); }

.nav-burger {
  display: none; margin-left: auto;
  width: 36px; height: 36px;
  background: transparent; border: 0; border-radius: var(--radius);
}
.nav-burger svg { width: 24px; height: 24px; fill: var(--text); }

/* ── mobile drawer ────────────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 80vw;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 60; transform: translateX(100%);
  transition: transform .25s ease-out;
  display: flex; flex-direction: column;
  padding: 16px;
}
.drawer .drawer-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  background: transparent; border: 0; color: var(--text);
  font-size: 22px; line-height: 1;
}
.drawer-links { display: flex; flex-direction: column; margin-top: 8px; }
.drawer-links a {
  padding: 14px 12px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px; letter-spacing: .4px;
  text-transform: uppercase;
}
.drawer-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.drawer-cta .btn-register, .drawer-cta .btn-login { text-align: center; padding: 12px; }

.backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}

/* ── drawer profile section (mobile, when logged in) ─────────────────── */
.drawer-profile { display: flex; flex-direction: column; }
.drawer-profile[hidden] { display: none; }
.drawer-user {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.drawer-user .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; overflow: hidden;
}
.drawer-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-user div { flex: 1; min-width: 0; }
.drawer-user strong { display: block; font-size: 14px; }
.drawer-user small { display: block; font-size: 11px; color: var(--text-dim);
                     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
  color: var(--text);
  position: relative;
}
.drawer-link svg { width: 18px; height: 18px; fill: var(--pink); }
.drawer-link:hover { background: rgba(255,255,255,.04); }

/* hide cross-brand links inside the mobile drawer (kept in desktop topnav) */
.drawer .drawer-links { display: none; }

/* ── notification bell + badge + panel ──────────────────────────────── */
.notif-bell { position: relative; }
/* bell takes the right slot when visible (mobile especially) — burger then
   sits flush against it. When bell is hidden/absent, burger keeps its own
   auto-margin and goes solo to the right. */
.nav-bell  { flex: 0 0 auto; margin-left: auto; }
.nav-bell:not([hidden]) + .nav-burger { margin-left: 0; }
@media (min-width: 769px) { .nav-bell { margin-left: 0; } }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.drawer-link .notif-badge { position: static; margin-left: auto; }

.notif-panel {
  position: fixed;
  top: 60px; right: max(16px, calc((100% - 1320px) / 2 + 8px));
  width: 360px; max-width: calc(100vw - 24px);
  max-height: 70vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 70;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.notif-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notif-panel header strong { font-size: 14px; font-weight: 800; }
.notif-panel .link {
  background: transparent; border: 0; color: var(--pink);
  font-size: 12px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .3px;
}
.notif-list { overflow-y: auto; }
.notif {
  display: flex; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: flex-start;
}
.notif:last-child { border-bottom: 0; }
.notif .dot {
  flex: 0 0 8px; width: 8px; height: 8px;
  background: transparent;
  border-radius: 50%;
  margin-top: 6px;
}
.notif.unread { background: rgba(235,99,149,.05); }
.notif.unread .dot { background: var(--pink); }
.notif .text { line-height: 1.4; }
.notif .text a { color: var(--text); }
.notif .text a.actor { color: var(--pink); font-weight: 700; }
.notif .when { color: var(--text-dim); font-size: 11px; margin-top: 3px; }
.notif-panel .empty { padding: 24px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* user-chip (top nav, logged in) */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.user-chip:hover { background: rgba(255,255,255,.08); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; overflow: hidden;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .name { font-size: 12px; font-weight: 700; max-width: 120px;
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) { .user-chip .name { display: none; } }
body.nav-open .drawer { transform: translateX(0); }
body.nav-open .backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ── page header (h1 + tabs) ──────────────────────────────────────────── */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 6px;
}
.page-head h1 {
  font-size: 22px; font-weight: 800; margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-head h1 svg { width: 20px; height: 20px; fill: currentColor; }

.tabs {
  display: flex; gap: 18px; border-bottom: 1px solid var(--border);
  margin: 0 0 18px;
}
.tabs a {
  padding: 10px 4px;
  font-weight: 700; font-size: 13px; letter-spacing: .4px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.tabs a.active { color: var(--text); border-bottom-color: var(--pink); }
.tabs a:hover { color: var(--text); }

/* ── orientation filter (gender bar like erome) ──────────────────────── */
.orient-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.orient-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
}
.orient-bar a svg { width: 14px; height: 14px; fill: currentColor; }
.orient-bar a:hover { color: var(--text); border-color: #2a2a2a; }
.orient-bar a.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ── suggested users ──────────────────────────────────────────────────── */
.suggested-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 18px 0 10px;
}
.suggested-title svg { width: 14px; height: 14px; fill: currentColor; }
.suggested {
  display: flex; flex-wrap: nowrap; gap: 16px;
  padding: 4px 2px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a transparent;
}
.suggested::-webkit-scrollbar { height: 6px; }
.suggested::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
.suggested .user { flex: 0 0 auto; }
.suggested .user { width: 80px; text-align: center; }
.suggested .user .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #3e3e3e; color: #cfcfcf;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  margin: 0 auto;
  overflow: hidden;
}
.suggested .user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.suggested .user .username {
  display: block; margin-top: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggested .user:hover .username { color: var(--pink); }

/* ── albums grid ──────────────────────────────────────────────────────── */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  /* anchor each card to the top of its row so they don't stretch to the
     row height when titles wrap differently */
  align-items: start;
}
@media (max-width: 1199px) { .albums-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width:  991px) { .albums-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width:  767px) { .albums-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width:  479px) { .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.album {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;            /* let flex child shrink below intrinsic size */
}
.album .thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  flex: 0 0 auto;          /* never let flex steal height from the thumb */
}
/* belt-and-suspenders aspect-ratio fallback for old WebKit */
@supports not (aspect-ratio: 1 / 1) {
  .album .thumb-wrap { padding-top: 100%; height: 0; }
  .album .thumb-wrap > * { position: absolute; inset: 0; }
}
.album .thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.album .thumb-wrap .badges {
  position: absolute; bottom: 6px; right: 6px;
  display: inline-flex; gap: 4px;
  pointer-events: none;
}
.album .thumb-wrap .badges span {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.6);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.album .thumb-wrap .badges svg { width: 11px; height: 11px; fill: currentColor; }
.album .thumb-wrap .views {
  position: absolute; bottom: 6px; left: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.6);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700; color: #fff;
  pointer-events: none;
}
.album .thumb-wrap .views svg { width: 12px; height: 12px; fill: currentColor; }

.album .meta { display: flex; gap: 8px; margin-top: 8px; align-items: flex-start; min-height: 56px; }
.album .meta .avatar {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  overflow: hidden;
}
.album .meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.album .meta .text { flex: 1; min-width: 0; }
.album .meta .title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2px;
  line-height: 1.3;
  color: var(--text);
}
.album .meta .title:hover { color: var(--pink); }
.album .meta .user {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 700;
  color: var(--pink);
  text-transform: uppercase; letter-spacing: .3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album .meta .user:hover { color: var(--pink-2); }

/* ── pagination ───────────────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 4px;
  list-style: none; padding: 0;
  margin: 32px 0 40px;
}
.pagination li a, .pagination li span {
  display: inline-block; min-width: 36px;
  padding: 8px 12px; text-align: center;
  background: #000; color: #fff;
  border-radius: 4px; font-size: 13px; font-weight: 600;
  user-select: none;
}
.pagination li.active span { background: var(--pink); }
.pagination li.disabled span { color: var(--text-mute); cursor: default; }
.pagination li a:hover { background: var(--pink); }

/* ── empty state ──────────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-dim); font-size: 14px;
  grid-column: 1 / -1;
}
.error { color: #f55; }

/* ── ad rails (sticky side banners on wide desktop) ──────────────────── */
.ad-rail {
  position: fixed;
  top: 88px;
  width: 160px;
  z-index: 5;
  display: none;
}
.ad-rail.left  { right: calc(50% + 670px); }
.ad-rail.right { left:  calc(50% + 670px); }
.ad-slot {
  width: 160px; height: 600px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-mute);
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.ad-slot.filled { border-style: solid; padding: 0; }
.ad-slot iframe, .ad-slot ins, .ad-slot img { max-width: 100%; max-height: 100%; }
@media (min-width: 1660px) { .ad-rail { display: block; } }

/* ── static content pages (faq/terms/dmca/feedback) ──────────────────── */
.page-doc { max-width: 800px; margin: 0 auto; padding: 24px 0 60px; }
.page-doc h1 { font-size: 28px; font-weight: 800; margin: 8px 0 24px; }
.page-doc h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.page-doc h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.page-doc p, .page-doc li { font-size: 14px; line-height: 1.65; color: #c4c4c4; }
.page-doc ul, .page-doc ol { padding-left: 22px; margin: 10px 0; }
.page-doc a { color: var(--pink); }
.page-doc a:hover { text-decoration: underline; }
.page-doc .updated { color: var(--text-dim); font-size: 12px; margin-bottom: 10px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 12px; color: var(--text-dim);
}
.footer a { color: var(--text-dim); margin: 0 6px; }
.footer a:hover { color: var(--text); }

/* ── album page ───────────────────────────────────────────────────────── */
.album-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "avatar title  button"
    "avatar meta   button";
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.album-header .avatar {
  grid-area: avatar;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  overflow: hidden;
  align-self: start;
}
.album-header .title {
  grid-area: title;
  margin: 0;
  font-size: 22px; font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.album-header .meta-line {
  grid-area: meta;
  display: flex; flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}
.album-header .meta-line .by-name { color: var(--pink); font-weight: 700; }
.album-header .meta-line .stat { display: inline-flex; align-items: center; gap: 4px; }
.album-header .meta-line svg { width: 13px; height: 13px; fill: currentColor; }
.album-header .actions { grid-area: button; align-self: center; }

@media (max-width: 600px) {
  .album-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar title"
      "avatar meta"
      "button button";
    column-gap: 12px;
    row-gap: 8px;
  }
  .album-header .avatar { width: 44px; height: 44px; font-size: 18px; }
  .album-header .title { font-size: 17px; line-height: 1.3; }
  .album-header .meta-line { font-size: 12px; gap: 3px 10px; }
  .album-header .actions { margin-top: 6px; }
  .album-header .actions .btn-follow { width: 100%; padding: 12px; }
}
.btn-follow, .btn-like {
  background: var(--pink); color: #fff;
  border: 1px solid var(--pink);
  padding: 0 18px;
  height: 40px;                          /* lock both at the same height */
  border-radius: var(--radius);
  font-weight: 700; font-size: 13px; letter-spacing: .3px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
}
.btn-follow:hover, .btn-like:hover { filter: brightness(1.1); }
.btn-follow.following { background: transparent; color: var(--pink); }
.btn-like svg { width: 14px; height: 14px; fill: currentColor; }
.album-header .actions { display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 600px) {
  .album-header .actions { display: flex; gap: 8px; align-items: stretch; width: 100%; }
  .album-header .actions .btn-like   { flex: 0 0 auto; padding: 0 14px; min-width: 64px; }
  .album-header .actions .btn-follow { flex: 1 1 auto; }
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 768px) { .media-grid { grid-template-columns: 1fr; } }
.media-item {
  background: #000; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.media-item video, .media-item img { width: 100%; height: auto; display: block; }

/* ── custom video player (native controls don't allow tinting the progress
   bar, so we hide them and render our own skin in brand pink) ─────────── */
.player {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.player video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-big {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.0);
  border: 0; cursor: pointer;
  transition: background .15s;
  z-index: 2;
}
.player-big:hover { background: rgba(0,0,0,.15); }
.player.playing .player-big { display: none; }
.player-big svg {
  width: 64px; height: 64px;
  fill: #fff;
  background: var(--pink);
  border-radius: 50%;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
  z-index: 3;
  opacity: 0;
  transition: opacity .2s;
}
.player:hover .player-bar,
.player.playing .player-bar,
.player.paused  .player-bar { opacity: 1; }
.player-bar button {
  background: transparent; border: 0; color: #fff;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.player-bar button svg { width: 18px; height: 18px; fill: currentColor; }
.player-bar .p-time {
  color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
  user-select: none;
  flex: 0 0 auto;
}
.player-bar .p-track {
  flex: 1;
  height: 18px;
  display: flex; align-items: center;
  cursor: pointer;
  position: relative;
}
.player-bar .p-track .p-rail {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.player-bar .p-track .p-fill {
  height: 100%;
  background: var(--pink);
  width: 0;
  transition: width .1s linear;
}
.player-bar .p-track .p-knob {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  background: var(--pink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.3);
}
.player-bar .p-vol {
  position: relative;
  display: inline-flex; align-items: center;
}
.player-bar .p-vol .p-vol-track {
  width: 0; overflow: hidden; transition: width .15s;
  height: 18px; display: flex; align-items: center;
}
.player-bar .p-vol:hover .p-vol-track { width: 70px; }
.player-bar .p-vol .p-vol-rail {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
  overflow: hidden;
}
.player-bar .p-vol .p-vol-fill {
  height: 100%;
  background: var(--pink);
  width: 100%;
}
.player.fullscreen { background: #000; }
.player.fullscreen video { max-height: 100vh; }

/* ── profile page ─────────────────────────────────────────────────────── */
.profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "avatar info button"
    "avatar bio  bio"
    "avatar stats stats";
  column-gap: 18px; row-gap: 8px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.profile-header .avatar {
  grid-area: avatar; align-self: start;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 36px;
  overflow: hidden;
}
.profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header .info     { grid-area: info; min-width: 0; }
.profile-header .info .name { font-size: 24px; font-weight: 800; margin: 0; }
.profile-header .bio      { grid-area: bio;  font-size: 13px; color: #c4c4c4; line-height: 1.5; }
.profile-header .bio:empty { display: none; }
.profile-header .stats {
  grid-area: stats;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.profile-header .stats .stat strong { color: var(--text); font-weight: 800; margin-right: 4px; }
.profile-header .actions  { grid-area: button; align-self: start; }

@media (max-width: 600px) {
  .profile-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar info"
      "avatar stats"
      "bio    bio"
      "button button";
    column-gap: 14px;
  }
  .profile-header .avatar { width: 64px; height: 64px; font-size: 26px; }
  .profile-header .info .name { font-size: 18px; }
  .profile-header .actions .btn-follow { width: 100%; }
}

/* ── comments ─────────────────────────────────────────────────────────── */
.section-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800;
  margin: 32px 0 14px;
}
.section-title svg { width: 16px; height: 16px; fill: currentColor; }
.section-title .count { color: var(--text-dim); font-weight: 600; font-size: 13px; }

.comment-form {
  display: flex; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 20px;
}
.comment-form textarea {
  flex: 1; resize: vertical; min-height: 44px; max-height: 200px;
  background: #000; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 10px;
  font: inherit;
}
.comment-form textarea:focus { outline: 0; border-color: var(--pink); }
.comment-form button {
  align-self: flex-end;
  background: var(--pink); color: #fff;
  border: 0; border-radius: var(--radius);
  padding: 9px 16px;
  font-weight: 700; font-size: 13px; letter-spacing: .3px;
  text-transform: uppercase;
}
.comment-form button[disabled] { opacity: .55; cursor: not-allowed; }
.comment-form .login-cta {
  flex: 1; align-self: center;
  color: var(--text-dim); font-size: 13px;
}
.comment-form .login-cta a { color: var(--pink); font-weight: 700; }

.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment {
  display: flex; gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comment .avatar {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.comment .body { flex: 1; min-width: 0; }
.comment .head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.comment .head .user { color: var(--pink); font-weight: 700; font-size: 13px; }
.comment .head .when { color: var(--text-dim); font-size: 12px; }
.comment .text {
  color: var(--text); font-size: 14px; line-height: 1.45;
  word-wrap: break-word; overflow-wrap: anywhere;
}

/* ── auth forms ───────────────────────────────────────────────────────── */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 40px 16px;
}
.auth-card {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.auth-card h1 {
  font-size: 22px; font-weight: 800; margin: 0 0 22px;
  text-align: center;
}
.auth-card label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .4px;
  margin: 14px 0 6px;
}
.auth-card input {
  width: 100%;
  background: #000; color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
}
.auth-card input:focus { outline: 0; border-color: var(--pink); }
.auth-card .submit {
  width: 100%; margin-top: 22px;
  background: var(--pink); color: #fff; border: 0;
  padding: 12px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; letter-spacing: .4px;
  text-transform: uppercase;
}
.auth-card .submit:hover { filter: brightness(1.1); }
.auth-card .alt {
  margin-top: 14px; text-align: center;
  font-size: 12px; color: var(--text-dim);
}
.auth-card .alt a { color: var(--pink); font-weight: 700; }
.auth-card .err {
  background: rgba(245,85,85,.12); color: #ff8080;
  border: 1px solid rgba(245,85,85,.3);
  padding: 8px 10px; border-radius: var(--radius);
  font-size: 12px;
  margin-top: 14px;
  display: none;
}
.auth-card .err.on { display: block; }
