/* ═══════════════════════════════════════════════════════════════
   EROME — style.css  (single source of truth)
   ═══════════════════════════════════════════════════════════════ */
imgx {opacity: 0 !important;}
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; line-height: 1.6; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ── Design tokens ── */
:root, [data-theme="dark"] {
  --bg:      #0f0f0f;
  --bg2:     #000;
  --bg3:     #181818;
  --bg4:     #202020;
  --border:  #272727;
  --border2: #333333;
  --tx:      #d4d3d1;
  --tx2:     #aaaaaa;
  --tx3:     #a09f9d;
  --accent:  #f16095;
  --accent2: #f45891;
  --t:       180ms ease;
  --r:       4px;
  --font:    'Montserrat', 'Verdana', sans-serif;
  --f-accent-color: #f16095;
     --bg5: #272727;

 }
[data-theme="light"] {
  --f-accent-color: #f16095;
  --bg:      #f5f5f5;
  --bg2:     #ffffff;
  --bg3:     #efefef;
  --bg4:     #e5e5e5;
  --border:  #dddddd;
  --border2: #cccccc;
  --tx:      #111111;
  --tx2:     #444444;
  --tx3:     #888888;
  --accent:  #f16095;
  --accent2: #f45891;
   --bg5: #efefef;

}

body {
 font-family: var(--font);
  font-size:   15px;           /* bumped from 14px → 15px globally */
  line-height: 1.5;            /* slightly looser than 1.428 for readability */
  color:       var(--tx3);     /* #a09f9d — your exact value via token */
  background:  var(--bg);      /* #232323 */
  letter-spacing: 0.5px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--tx); }

/* ── Layout ── */
.container { max-width: 1380px; margin-inline: auto; padding-inline: 16px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; gap: 6px; position: relative;
  width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: 16px;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800;
  color: var(--accent); white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ── Search bar in header ── */
.header-search { flex: 1; position: relative; max-width: 480px; }
.header-search-input {
  width: 100%; height: 36px;
  padding: 0 36px 0 13px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; font-size: 13px; color: var(--tx);
  outline: none; transition: border-color var(--t);
}
.header-search-input::placeholder { color: var(--tx3); }
.header-search-input:focus { border-color: var(--accent); background: var(--bg4); }
.header-search-btn {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--tx3); transition: color var(--t);
}
.header-search-btn:hover { color: var(--accent); }

/* Search dropdown */
#search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r); overflow: hidden;
  z-index: 200; display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
#search-dropdown.is-open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 13px;
  color: var(--tx2); font-size: 13px;
  transition: background var(--t);
}
.search-result-item:hover, .search-result-item.focused {
  background: var(--bg3); color: var(--tx);
}
.search-result-thumb { width: 52px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--bg4); }
.search-result-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-see-all {
  display: block; padding: 8px 13px;
  font-size: 13px; color: var(--accent);
  border-top: 1px solid var(--border);
  transition: background var(--t);
}
.search-see-all:hover { background: var(--bg3); }

/* Header nav + right buttons */
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav-link {
  padding: 5px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--tx2);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.header-nav-link:hover, .header-nav-link.active { color: var(--tx); background: var(--bg3); }
.header-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.btn-icon {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tx2); background: none;
  transition: color var(--t), background var(--t);
}
.btn-icon:hover { color: var(--tx); background: var(--bg3); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-primary { background: var(--accent);  color: var(--bg3); border: 1px solid transparent; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: var(--bg3); color: var(--tx2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--bg4); color: var(--tx); }

/* ── Feed tabs (Latest / Hot) ── */
.feed-tabs {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px; padding-top: 16px;
}
.feed-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--tx2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t), border-color var(--t);
}
.feed-tab:hover { color: var(--tx); }
.feed-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Album grid ── */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  padding: 0 0 24px;
}
@media (min-width: 640px)  { .albums-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .albums-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .albums-grid { grid-template-columns: repeat(6, 1fr); } }

.profile-badge-group * {display:inline-block}

/* ── Album card ── */
.album-card {
  background: var(--bg2); border-radius: var(--r);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  cursor: pointer;
}
.album-card:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.card-thumb-wrap { display: block; position: relative; overflow: hidden;   background: var(--bg4); }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.album-card:hover .card-thumb { transform: scale(1.04); }

/* Play overlay */
.card-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); opacity: 0;
  transition: background 200ms, opacity 200ms;
}
.album-card:hover .card-play-btn { background: rgba(0,0,0,.3); opacity: 1; }

/* Badges */
.card-views.cardbs {position: absolute; bottom: 6px; left: 6px; display: flex; gap: 4px;font-size:12px;}

.card-badges { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; }
.card-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 5px; border-radius: 3px;
  font-size: 12px; font-weight: 400;
  background: var(--bg5); color: var(--tx3);;
}

/* Cutscene progress bar */
.card-cut-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.1); }
.card-cut-progress { height: 100%; width: 0; background: var(--accent); }

/* Card body */
.card-body { padding: 8px; }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13px; line-height: 1.4;
  color: var(--tx); margin-bottom: 4px;
  transition: color var(--t);
}
.card-title:hover { color: var(--accent); }

/* Card user row */
.card-user-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 6px; margin-top: 4px;
}
.card-user {
  display: flex; align-items: center; gap: 5px;
  min-width: 0; color: var(--tx3); font-size: 12px;
  transition: color var(--t); overflow: hidden;
}
.card-user:hover { color: var(--accent); }
.card-user-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg4); }
.card-user-initial {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--tx3); flex-shrink: 0;
}
.card-username { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-verified { flex-shrink: 0; }
.card-views { display: flex; align-items: center; gap: 3px; font-size: 13px; color: var(--tx3); white-space: nowrap; flex-shrink: 0; }
.card-user-row-compact { justify-content: flex-start; }

/* ── Pagination ── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px; padding: 24px 0;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 6px; font-size: 14px;
  background: var(--bg3); color: var(--tx2); border: 1px solid var(--border);
  transition: background var(--t), color var(--t);
}
.page-btn:hover { background: var(--bg4); color: var(--tx); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-ellipsis { display: flex; align-items: center; color: var(--tx3); padding: 0 4px; font-size: 13px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 20px 0; margin-top: 32px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  max-width: 1380px; margin-inline: auto; padding-inline: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-link { font-size: 13px; color: var(--tx3); transition: color var(--t); }
.footer-link:hover { color: var(--tx2); }
.footer-copy { font-size: 13px; color: var(--tx3); }

/* ── Age gate ── */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95); align-items: center; justify-content: center;
  padding: 16px;
}
.age-gate-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 13px; padding: 32px 24px;
  max-width: 400px; width: 100%; text-align: center;
}
.age-gate-title { font-size: 22px; font-weight: 700; color: var(--tx); margin-bottom: 10px; }
.age-gate-text { font-size: 13px; color: var(--tx3); margin-bottom: 24px; line-height: 1.6; }
.age-gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.age-gate-yes { background: var(--accent); color: #fff; padding: 10px 24px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: background var(--t); }
.age-gate-yes:hover { background: var(--accent2); }
.age-gate-no  { background: var(--bg3); color: var(--tx2); padding: 10px 24px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--border2); transition: background var(--t); }
.age-gate-no:hover { background: var(--bg4); }

/* ── GDPR banner ── */
.gdpr-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--bg2); border-top: 1px solid var(--border2);
  padding: 13px 16px; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--tx3);
}
.gdpr-text { flex: 1; min-width: 200px; }
.gdpr-text a { color: var(--accent); }
.gdpr-accept {
  padding: 6px 16px; border-radius: 6px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
   background var(--t);
}
.gdpr-accept:hover { background: var(--accent2); }

/* ═══════════════════════════════════════════════════════════════
   ALBUM PAGE — Media feed
   ═══════════════════════════════════════════════════════════════ */
.ap-main { background: var(--bg); }
.ap-wrap { max-width: 1360px; margin-inline: auto; padding: 20px 16px 56px; }

/* Breadcrumb */
.ap-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--tx3); margin-bottom: 13px;
}
.ap-breadcrumb a { color: var(--tx3); transition: color var(--t); }
.ap-breadcrumb a:hover { color: var(--accent); }
.ap-breadcrumb-current { color: var(--tx2); }

/* Title */
.ap-title { font-size: clamp(15px, 2.5vw, 21px); font-weight: 700; color: var(--tx); line-height: 1.3; margin-bottom: 13px; }

/* Meta row */
.ap-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.ap-user { display: flex; align-items: center; gap: 8px; color: var(--tx2); font-size: 13px; transition: color var(--t); }
.ap-user:hover { color: var(--accent); }
.ap-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border2); }
.ap-avatar-fallback {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--tx2);
}
.ap-username { font-size: 13px; font-weight: 600; }
.ap-verified-icon { flex-shrink: 0; }
.ap-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ap-stat { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--tx3); }

/* Action buttons */
.ap-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ap-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  background: var(--bg3); color: var(--tx2); border: 1px solid var(--border2);
  transition: background var(--t), color var(--t);
}
.ap-action-btn:hover { background: var(--bg4); color: var(--tx); }
.ap-like.liked, .ap-like:active { background: rgba(224,64,64,.15); color: var(--accent); border-color: rgba(224,64,64,.3); }

/* Media feed */
.ap-media-feed { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.ap-media-item { border-radius: 0px; margin: 10px 0px; position: relative;}

/* Video wrap */
.ap-video-wrap { position: relative; background: #000;  overflow: hidden; }
.ap-video-wrap video, .ap-video-wrap .plyr { width: 100% !important; }
.ap-vid-duration {
  position: absolute; bottom: 8px; right: 8px; z-index: 5;
  padding: 2px 7px; background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff;
  pointer-events: none;
}
.ap-vid-index {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); border-radius: 4px;
  font-size: 10px; font-weight: 700; color: var(--tx3); pointer-events: none;
}

/* Image */
.ap-image-link { display: block; position: relative;  overflow: hidden; cursor: zoom-in; height: 99svh; }
.ap-image { display: block;/* width: 100%; */ height: auto;      margin: 10px auto;}
.ap-img-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); color: #fff; opacity: 0;
  transition: opacity 200ms, background 200ms;
}
.ap-image-link:hover .ap-img-overlay { opacity: 1; background: rgba(0,0,0,.3); }

/* Tags */
.ap-tags-section { margin-top: 20px; margin-bottom: 8px; }
.ap-tags-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tx3); margin-bottom: 8px; }
.ap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--tx2);
  transition: color var(--t), background var(--t);
}
.ap-tag:hover { color: var(--accent); background: rgba(224,64,64,.08); border-color: rgba(224,64,64,.25); }

/* Plyr accent */
.plyr--video .plyr__control--overlaid,
.plyr--video .plyr__control--overlaid:focus,
.plyr--video .plyr__control--overlaid:hover { background: var(--accent) !important; }
.plyr--full-ui input[type=range] { color: var(--accent) !important; }
.plyr--video .plyr__controls { background: linear-gradient(transparent, rgba(0,0,0,.7)) !important; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════ */
.profile-hero { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 28px 0; }
.profile-hero-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border2); background: var(--bg3); }
.profile-avatar-fallback {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--bg3); border: 3px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--tx2);
}
.profile-info { flex: 1; min-width: 0; }
.profile-username { font-size: clamp(16px, 3vw, 22px); font-weight: 700; color: var(--tx); margin-bottom: 6px; line-height: 1.2; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.profile-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--tx3); }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-badge-img { width: 22px; height: 22px; object-fit: contain; }
.profile-albums-section { padding: 20px 0 48px; }
.profile-sort-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.profile-section-title { font-size: 14px; font-weight: 700; color: var(--tx); text-transform: uppercase; letter-spacing: .06em; }
.sort-chips { display: flex; gap: 6px; }
.sort-chip {
  padding: 4px 13px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border); color: var(--tx2);
  transition: color var(--t), background var(--t);
}
.sort-chip:hover { color: var(--tx); background: var(--bg4); }
.sort-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.profile-follow-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--accent); color: #fff; border: none; cursor: pointer; transition: background var(--t); }
.profile-follow-btn:hover { background: var(--accent2); }

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════════ */
.search-hero { padding: 20px 0 13px; }
.search-hero-wrap { position: relative; width: 100%; max-width: 640px; }
.search-hero-input {
  width: 100%; height: 44px; padding: 0 48px 0 16px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 8px; font-size: 15px; color: var(--tx); outline: none;
  transition: border-color var(--t);
}
.search-hero-input::placeholder { color: var(--tx3); }
.search-hero-input:focus { border-color: var(--accent); }
.search-hero-btn { position: absolute; right: 0; top: 0; bottom: 0; width: 48px; display: flex; align-items: center; justify-content: center; color: var(--tx2); transition: color var(--t); }
.search-hero-btn:hover { color: var(--accent); }
.search-meta { font-size: 13px; color: var(--tx3); margin-top: 8px; }
.search-meta strong { color: var(--tx); }
.search-results-section { padding-bottom: 48px; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════════════════════════ */
.cat-hero { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 20px 0; }
.cat-breadcrumb { font-size: 13px; color: var(--tx3); margin-bottom: 8px; }
.cat-breadcrumb a { color: var(--tx3); transition: color var(--t); }
.cat-breadcrumb a:hover { color: var(--accent); }
.cat-title { font-size: clamp(22px, 3vw, 26px); font-weight: 700; color: var(--tx); }
.cat-desc  { font-size: 13px; color: var(--tx3); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px; color: var(--tx3); }
.empty-state-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--tx3); }
.empty-state h2 { font-size: 16px; font-weight: 600; color: var(--tx2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--tx3); }
.empty-state p a { color: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════════════ */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 32px 16px; }
.error-inner { text-align: center; max-width: 480px; }
.error-code { font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; color: var(--border2); line-height: 1; margin-bottom: 8px; }
.error-title { font-size: 20px; font-weight: 700; color: var(--tx); margin-bottom: 8px; }
.error-desc { font-size: 14px; color: var(--tx3); margin-bottom: 24px; }
.error-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
#lightbox { display: none; position: fixed; inset: 0; z-index: 9500; align-items: center; justify-content: center; }
#lightbox.is-open { display: flex; }
.lb-bg { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(6px); }
.lb-img-wrap { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background 180ms; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 13px; color: rgba(255,255,255,.6); background: rgba(0,0,0,.4); padding: 3px 10px; border-radius: 20px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .header-nav { display: none; }
  .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ap-wrap { padding: 13px 8px 40px; }
  .profile-hero-inner { flex-direction: column; align-items: flex-start; }
  .ap-actions-row { gap: 6px; }
  .ap-action-btn { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
  .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .ap-tags { gap: 4px; }
  .ap-tag { font-size: 12px; padding: 2px 8px; }
}

/* ── focus-visible ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Age gate inner elements ── */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  /* display managed by JS only — never set here */
  align-items: center; justify-content: center;
  padding: 16px;
}
.age-gate-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--accent);
  margin-bottom: 16px;
}
.age-gate-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(224,64,64,.15); border: 1px solid rgba(224,64,64,.3);
  font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: .05em; margin-bottom: 13px;
}
.age-gate-legal {
  font-size: 12px; color: var(--tx3); margin-top: 16px; line-height: 1.6;
}
.age-gate-legal a { color: var(--tx3); text-decoration: underline; }
.age-gate-legal a:hover { color: var(--accent); }

/* ── GDPR inner elements ── */
.gdpr-actions { display: flex; gap: 8px; flex-shrink: 0; }
.gdpr-link { color: var(--accent); }
.gdpr-btn {
  padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background var(--t), color var(--t);
}
.gdpr-accept { background: var(--accent); color: #fff; border: none; }
.gdpr-accept:hover { background: var(--accent2); }
.gdpr-more {
  background: var(--bg3); color: var(--tx2);
  border: 1px solid var(--border2);
}
.gdpr-more:hover { background: var(--bg4); }

/* ── Footer extended ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 28px 0 16px; margin-top: 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 24px;
  max-width: 1380px; margin-inline: auto; padding-inline: 16px;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.footer-tagline { font-size: 12px; color: var(--tx3); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tx3); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--tx3); transition: color var(--t); }
.footer-col a:hover { color: var(--tx2); }
.footer-bottom {
  max-width: 1280px; margin-inline: auto; padding: 16px 16px 0;
  border-top: 1px solid var(--border); margin-top: 20px;
  font-size: 12px; color: var(--tx3); line-height: 1.7;
}
.footer-disclaimer { color: var(--tx3); opacity: .7; }




/* ═══════════════════════════════════════════════════════════════
   HEADER — missing classes (header.ejs uses these names)
   ═══════════════════════════════════════════════════════════════ */

/* Search form wrapper */
.search-form { flex: 1; max-width: 440px; }

.search-wrap {
  position: relative;   /* ← CRITICAL: keeps dropdown anchored to input */
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 36px 0 13px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-size: 14px;
  color: var(--tx);
  outline: none;
  transition: border-color var(--t), background var(--t);
}
.search-input::placeholder { color: var(--tx3); }
.search-input:focus {
  border-color: var(--accent);
  background: var(--bg4);
}

.search-btn {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tx3);
  transition: color var(--t);
}
.search-btn:hover { color: var(--accent); }

/* Search dropdown — anchored inside .search-wrap */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  z-index: 300;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  min-width: 280px;
}
.search-dropdown.is-open { display: block; }

/* Nav links */
.nav-link {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tx2);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-link:hover { color: var(--tx); background: var(--bg3); }
.nav-link.active { color: var(--tx); background: var(--bg3); }

/* Header action buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0; position: absolute;right:6px;
}

/* Small button variant */
.btn-sm {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
}

/* ── Hamburger button ── */
.hamburger {
  display: none;   /* hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--tx2);
  flex-shrink: 0;
  transition: color var(--t), background var(--t);
}
.hamburger:hover { color: var(--tx); background: var(--bg3); }

/* ── Mobile nav panel ── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-nav[hidden] { display: none; }

.mobile-nav-link {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--tx2);
  transition: color var(--t), background var(--t);
}
.mobile-nav-link:hover { color: var(--tx); background: var(--bg3); }

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.mobile-nav-upload {
  color: var(--accent);
  font-weight: 600;
}
.mobile-nav-upload:hover { color: var(--accent2); }

/* ── Mobile breakpoint: show hamburger, hide desktop nav/actions ── */
@media (max-width: 640px) {
  .header-nav,
  .header-actions { display: none; }
  .hamburger { display: flex; }
  .search-form { max-width: none; }
}

.feed-tabs-inner {
      width: 100%;
    display: flex;
}





/* ── Expand button (top-right of inline player → opens Fancybox) ── */
.ap-expand-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  opacity: 0;
  transition: opacity 200ms, background 200ms;
}
.ap-video-wrap:hover .ap-expand-btn { opacity: 1; }
.ap-expand-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Video.js skin tweaks ── */
.video-js .vjs-big-play-button {
  background: rgba(0,0,0,.55) !important;
  border: 2px solid rgba(255,255,255,.3) !important;
  border-radius: 50% !important;
  width: 60px !important; height: 60px !important;
  line-height: 56px !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
.video-js:hover .vjs-big-play-button {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.video-js .vjs-play-progress,
.video-js .vjs-volume-level { background: var(--accent) !important; }
.video-js .vjs-slider { background: rgba(255,255,255,.2) !important; }
.video-js .vjs-control-bar {
  background: linear-gradient(transparent, rgba(0,0,0,.75)) !important;
}

/* Video.js inside Fancybox lightbox */
.fancybox__content .video-js {
  width: 100% !important;
  max-height: 80vh !important;
  min-height: 300px;
}
.ap-fb-video-holder { display: none; } /* always hidden on page, cloned by Fancybox */

 
/* Video.js wrapper inside Fancybox */
.fb-vjs-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.fb-vjs-wrap .video-js {
  width: 100% !important;
  min-height: 280px;
  max-height: 80vh;
}

/* Loading placeholder shown before Video.js inits */
.fb-vjs-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  letter-spacing: .05em;
}

/* Fancybox Video.js wrapper */
.fb-vjs-wrap { width: 100%; }
.fb-vjs-wrap .video-js { width: 100% !important; min-height: 260px; max-height: 80vh; }

/* Loading spinner inside placeholder */
.fbvjs-ph {
  width: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.fbvjs-spin {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: #e04040;
  border-radius: 50%;
  animation: fbspin .75s linear infinite;
}
@keyframes fbspin { to { transform: rotate(360deg); } }

 



.lp-main  { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem); }
.lp-wrap  { max-width: 720px; margin-inline: auto; padding-inline: 1.25rem; }
.lp-hero  { margin-bottom: 1.25rem;    padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.lp-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.lp-title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; color: var(--color-text); line-height: 1.2; margin-bottom: 0.5rem; }
.lp-updated { font-size: 0.8rem; color: var(--color-text-muted); }
.lp-body h2 { font-size: 1rem; font-weight: 600; color: var(--color-text); margin: 2rem 0 0.6rem; }
.lp-body p, .lp-body li { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 0.75rem; }
.lp-body ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.lp-body li { list-style: disc; }
.lp-body a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.lp-body strong { color: var(--color-text); font-weight: 600; }


/* Theme toggle button */
.theme-toggle {
  display     : flex;
  align-items : center;
  justify-content: center;
  width       : 36px;
  height      : 36px;
  border-radius: var(--radius-md, 6px);
  border      : 1px solid var(--color-border);
  background  : var(--color-surface);
  color       : var(--color-text-muted);
  cursor      : pointer;
  transition  : background 150ms ease, color 150ms ease, border-color 150ms ease;
  flex-shrink : 0;
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color     : var(--color-text);
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.hidden {display: none !important;}
.ap-source-link {margin-top:15px;}


                 .img-list-box {
    /* max-height: 70svh; */
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0px;
}

.img-list-box a img {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100% !important;
    display: block;
    margin: auto;
    z-index: 2;
}

 .imgx-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.imgx-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: blur(15px);
    display: block;
}
.f-caption {display: none !important;}


/* ── Lock Video.js player size — no zoom on play ── */
.ap-video-wrap {
  position       : relative;
  width          : 100%;
  aspect-ratio   : 16 / 9;   /* locks the box before metadata loads */
  background     : #000;
  border-radius  : var(--radius-md, 8px);
  overflow       : hidden;
}

.ap-video-wrap .video-js {
  position : absolute !important;
  inset    : 0 !important;
  width    : 100% !important;
  height   : 100% !important;

  /* kill any vjs-fluid resize transitions */
  transition : none !important;
}

/* Remove vjs-fluid's padding-top trick — we use aspect-ratio instead */
.ap-video-wrap .vjs-fluid:not(.vjs-audio-only-mode) {
  padding-top : 0 !important;
  height      : 100% !important;
}

.ap-video-wrap .vjs-tech {
  position   : absolute !important;
  inset      : 0 !important;
  width      : 100% !important;
  height     : 100% !important;
  object-fit : contain;  /* contain = no crop; use cover to fill */
}

.bio-txt {
  font-size  : 13px;
  color      : var(--color-text-muted);
  line-height: 1.6;
  margin-top : 0.5rem;
   white-space: pre-wrap;   /* preserves line breaks from API */
  word-break : break-word;
}

.pr-website {
  display    : inline-flex;
  align-items: center;
  gap        : 0.35rem;
  margin-top : 0.5rem;
  font-size  : 0.8rem;
  color      : var(--color-primary);
  text-decoration: none;
   overflow   : hidden;
  text-overflow: ellipsis;
  white-space  : nowrap;
  transition : color 150ms ease, opacity 150ms ease;
}

.pr-website:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-title {font-size: 18px;
    margin: 15px 0px 15px 0px;
    font-weight: 500;}
.more-posts {margin-top:25px;display: block;border-top: 1px solid var(--border);}

.ap-source-link {margin-top:15px;font-size:13px;}
