/* ==========================================================
   HyphySpace Theme — Dark Instagram, Gold-Orange Accents
   ========================================================== */

:root {
  --hs-bg:        #0a0a0b;
  --hs-bg-2:      #131316;
  --hs-bg-3:      #1c1c20;
  --hs-elev:      #1f1f24;
  --hs-line:      #2a2a30;
  --hs-line-2:    #3a3a44;
  --hs-text:      #ededf0;
  --hs-text-2:    #b6b6c0;
  --hs-text-3:    #7a7a85;
  --hs-gold:      #ffb347;
  --hs-gold-2:    #ff8c1a;
  --hs-gold-3:    #e76a00;
  --hs-gold-soft: rgba(255,140,26,0.15);
  --hs-gold-ring: rgba(255,179,71,0.35);
  --hs-danger:    #ff5470;
  --hs-success:   #4ade80;
  --hs-radius:    14px;
  --hs-radius-sm: 10px;
  --hs-radius-lg: 22px;
  --hs-shadow:    0 8px 30px rgba(0,0,0,0.35);
  --hs-shadow-2:  0 16px 48px rgba(255,140,26,0.18);
  --hs-font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --hs-font-head: 'Sora', var(--hs-font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--hs-bg); color: var(--hs-text); font-family: var(--hs-font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--hs-gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--hs-gold-2); }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* --------- Buttons --------- */
.hyphy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; background: var(--hs-bg-3); color: var(--hs-text); font-weight: 600; font-size: 14px; line-height: 1; transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease; }
.hyphy-btn:hover { transform: translateY(-1px); }
.hyphy-btn--primary { background: linear-gradient(135deg, var(--hs-gold) 0%, var(--hs-gold-2) 60%, var(--hs-gold-3) 100%); color: #1a0e00; box-shadow: 0 6px 22px rgba(255,140,26,0.35); }
.hyphy-btn--primary:hover { box-shadow: 0 10px 28px rgba(255,140,26,0.55); color: #1a0e00; }
.hyphy-btn--ghost { background: transparent; border-color: var(--hs-line-2); color: var(--hs-text); }
.hyphy-btn--ghost:hover { border-color: var(--hs-gold); color: var(--hs-gold); }
.hyphy-link { background: none; border: 0; color: var(--hs-gold); padding: 0; cursor: pointer; font-weight: 600; }
.hyphy-link:hover { color: var(--hs-gold-2); }

/* --------- Topbar --------- */
.hyphy-topbar { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,0.85); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--hs-line); }
.hyphy-topbar__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 12px 20px; }
.hyphy-topbar__left { display: flex; align-items: center; }
.hyphy-topbar__right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.hyphy-topbar__center { display: flex; justify-content: center; }

.hyphy-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hs-text); font-family: var(--hs-font-head); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.hyphy-brand__mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); color: #1a0e00; font-weight: 900; box-shadow: 0 6px 16px rgba(255,140,26,0.35); }
.hyphy-brand:hover .hyphy-brand__mark { transform: rotate(-4deg) scale(1.04); transition: transform .2s ease; }
.hyphy-brand__name { background: linear-gradient(135deg, #fff 0%, var(--hs-gold) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Search */
.hyphy-search { display: flex; align-items: center; gap: 8px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); padding: 8px 12px; border-radius: 999px; min-width: 260px; transition: border-color .15s ease, box-shadow .2s ease; }
.hyphy-search:focus-within { border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-search svg { fill: var(--hs-text-3); flex: 0 0 auto; }
.hyphy-search input { background: transparent; color: var(--hs-text); border: 0; outline: 0; width: 100%; font-size: 14px; }
.hyphy-search input::placeholder { color: var(--hs-text-3); }

/* Nav */
.hyphy-nav { display: flex; gap: 4px; align-items: center; }
.hyphy-nav__link { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; color: var(--hs-text-2); transition: background .15s, color .15s; position: relative; background: transparent; border: 0; }
.hyphy-nav__link:hover { background: var(--hs-bg-3); color: var(--hs-gold); }
.hyphy-nav__link svg { fill: currentColor; }
.hyphy-nav__compose { color: var(--hs-gold); }
.hyphy-nav--guest { gap: 10px; }

/* Avatar */
.hyphy-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hs-line); background: var(--hs-bg-3); }
.hyphy-avatar--sm { width: 28px; height: 28px; border-width: 1px; }
.hyphy-avatar--xl { width: 96px; height: 96px; border: 3px solid; border-color: transparent; background-image: linear-gradient(var(--hs-bg), var(--hs-bg)), linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); background-origin: border-box; background-clip: padding-box, border-box; padding: 3px; }

/* --------- Main shell --------- */
.hyphy-main { padding: 28px 20px 80px; }
.hyphy-shell { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.hyphy-shell__main { min-width: 0; }
.hyphy-shell__main--wide { grid-column: 1 / -1; max-width: 960px; margin: 0 auto; }
.hyphy-shell__main--center { grid-column: 1 / -1; max-width: 1080px; margin: 0 auto; }
.hyphy-shell__rail { position: sticky; top: 84px; }
.hyphy-shell__rail--left { padding-top: 6px; }
@media (max-width: 1080px) { .hyphy-shell { grid-template-columns: 1fr; } .hyphy-shell__rail { position: static; } .hyphy-shell__rail--right { order: 3; } }

/* Side nav */
.hyphy-side-nav { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--hs-radius); background: var(--hs-bg-2); border: 1px solid var(--hs-line); }
.hyphy-side-nav a, .hyphy-side-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--hs-text); background: transparent; border: 0; font-weight: 600; }
.hyphy-side-nav a:hover, .hyphy-side-nav button:hover { background: var(--hs-bg-3); color: var(--hs-gold); }
.hyphy-side-nav__compose { color: var(--hs-gold) !important; }

/* Right rail */
.hyphy-right-rail { display: flex; flex-direction: column; gap: 16px; }
.hyphy-widget { background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius); padding: 16px; }
.hyphy-widget__title { font-family: var(--hs-font-head); margin: 0 0 12px; font-size: 16px; }
.hyphy-trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hyphy-trend-list li { display: flex; flex-direction: column; }
.hyphy-trend-list a { font-weight: 700; color: var(--hs-text); }
.hyphy-trend-list a:hover { color: var(--hs-gold); }
.hyphy-trend-list small { color: var(--hs-text-3); }
.hyphy-tiny-tag { color: var(--hs-text-3); font-size: 12px; text-align: center; padding: 6px 0; }

/* --------- Page heads --------- */
.hyphy-page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.hyphy-page-title { font-family: var(--hs-font-head); font-size: 28px; margin: 0; letter-spacing: -0.02em; }
.hyphy-page-sub { color: var(--hs-text-2); margin: 0; }
.hyphy-section-title { font-family: var(--hs-font-head); font-size: 20px; margin: 22px 0 12px; }

/* Feed switcher (Following / Hashtags) */
.hyphy-feed-switcher { display: inline-flex; padding: 6px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 999px; gap: 4px; align-self: flex-start; }
.hyphy-feed-switch { background: transparent; border: 0; padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--hs-text-2); }
.hyphy-feed-switch:hover { color: var(--hs-gold); }
.hyphy-feed-switch.is-active { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); color: #1a0e00; box-shadow: 0 6px 16px rgba(255,140,26,0.35); }

/* --------- Cards / Feed --------- */
.hyphy-feed { display: flex; flex-direction: column; gap: 18px; }
.hyphy-feed--profile, .hyphy-feed--explore { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hyphy-feed--tag { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.hyphy-card { background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.hyphy-card:hover { border-color: var(--hs-line-2); }
.hyphy-card__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.hyphy-card__author { display: flex; align-items: center; gap: 10px; color: var(--hs-text); }
.hyphy-card__author-meta { display: flex; flex-direction: column; line-height: 1.25; }
.hyphy-card__author-meta strong { font-size: 14px; }
.hyphy-card__author-meta small { color: var(--hs-text-3); font-size: 12px; }
.hyphy-card__type { color: var(--hs-gold); font-weight: 700; letter-spacing: 0.02em; }
.hyphy-card__badge { background: var(--hs-gold-soft); color: var(--hs-gold); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--hs-gold-ring); }

.hyphy-card__media { background: #000; }
/* v1.9.9 — Feed cards now show the photo/video at its NATIVE aspect ratio
   too (not just the single-post detail page). Previously the card image was
   cropped to a fixed 720 px tall cover, so 5:7 portraits and 16:9
   landscapes were both mashed into the same box. `object-fit: contain` +
   auto height = real ratios, capped at 90 vh so a really tall portrait
   doesn't push everything else off-screen. */
.hyphy-card__image, .hyphy-card__video { width: 100%; height: auto; max-height: 90vh; object-fit: contain; display: block; }
.hyphy-card__video { background: #000; }

/* v1.9.6 — Carousel (multi-photo post). Used in feed cards and single-post
   page; same JS, same markup. */
.hyphy-carousel { position: relative; background: #000; overflow: hidden; }
.hyphy-carousel__viewport { width: 100%; overflow: hidden; touch-action: pan-y; }
.hyphy-carousel__track { display: flex; transition: transform .35s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hyphy-carousel__slide { flex: 0 0 100%; min-width: 100%; display: flex; align-items: center; justify-content: center; }
.hyphy-carousel__slide img,
.hyphy-carousel__img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; display: block; background: #000; }
/* v1.9.9 — Carousel slides inside feed cards now also keep the native
   aspect ratio (was: object-fit: cover, which cropped every slide). */
.hyphy-carousel__prev,
.hyphy-carousel__next { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, opacity .2s ease; padding: 0; }
.hyphy-carousel__prev:hover,
.hyphy-carousel__next:hover { background: rgba(0,0,0,0.8); }
.hyphy-carousel__prev { left: 10px; }
.hyphy-carousel__next { right: 10px; }
.hyphy-carousel__prev.is-hidden,
.hyphy-carousel__next.is-hidden { opacity: 0; pointer-events: none; }
.hyphy-carousel__counter { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.hyphy-carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.hyphy-carousel__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background .15s, transform .15s; cursor: pointer; pointer-events: auto; }
.hyphy-carousel__dots span.is-active { background: #fff; transform: scale(1.25); }

.hyphy-card__body { padding: 12px 16px 0; }
.hyphy-card__hyphe { font-family: var(--hs-font-head); font-weight: 600; font-size: 17px; line-height: 1.5; color: var(--hs-text); white-space: pre-wrap; }
.hyphy-card__caption { color: var(--hs-text-2); font-size: 14.5px; line-height: 1.55; }
.hyphy-card__caption p, .hyphy-card__hyphe p { margin: 0 0 8px; }
.hyphy-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.hyphy-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--hs-gold-soft); color: var(--hs-gold); font-size: 12px; font-weight: 700; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.hyphy-chip:hover { background: rgba(255,140,26,0.25); border-color: var(--hs-gold-ring); color: var(--hs-gold-2); }

/* v1.9.5 — Tagged people row ("👥 with @user @user"). Previously had no
   styles, so the chips rendered as bare links and went unnoticed by
   viewers. Now matches the hashtag-chip treatment so taggings are visible
   on every post card AND on the single-post page. */
.hyphy-card__people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.hyphy-card__people-label { color: var(--hs-text-2); font-size: 13px; font-weight: 600; }
.hyphy-people-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--hs-line); color: var(--hs-text); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.hyphy-people-chip:hover { background: var(--hs-gold-soft); border-color: var(--hs-gold-ring); color: var(--hs-gold); }
.hyphy-people-chip .hyphy-avatar--xs { width: 22px; height: 22px; border-radius: 50%; }
.hyphy-avatar--xs img, img.hyphy-avatar--xs { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.hyphy-card__actions { display: flex; align-items: center; gap: 4px; padding: 8px 12px 14px; }

/* v1.9.10 — Infinite-scroll loader & end-of-feed marker. */
.hyphy-feed__loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; color: var(--hs-text-3); font-size: 14px; }
.hyphy-feed__loader[hidden] { display: none; }
.hyphy-feed__spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--hs-gold); animation: hyphy-spin 0.8s linear infinite; }
@keyframes hyphy-spin { to { transform: rotate(360deg); } }
.hyphy-feed__end { text-align: center; padding: 32px 16px 40px; color: var(--hs-text-3); font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }
.hyphy-feed__end[hidden] { display: none; }
.hyphy-card__actions button, .hyphy-card__action { display: inline-flex; align-items: center; gap: 6px; color: var(--hs-text-2); background: transparent; border: 0; padding: 8px 10px; border-radius: 10px; font-weight: 600; }
.hyphy-card__actions button:hover, .hyphy-card__action:hover { color: var(--hs-gold); background: var(--hs-bg-3); }
.hyphy-card__actions button svg, .hyphy-card__action svg { fill: currentColor; }
.hyphy-like-btn.is-liked { color: var(--hs-danger); }
.hyphy-like-btn.is-liked svg { fill: var(--hs-danger); }
.hyphy-card__permalink { margin-left: auto; }

.hyphy-empty { background: var(--hs-bg-2); border: 1px dashed var(--hs-line-2); border-radius: var(--hs-radius); padding: 28px; color: var(--hs-text-2); text-align: center; }

/* --------- Single post --------- */
/* v1.9.8/1.9.9 — Single-post detail page renders media at its NATIVE aspect
   ratio (no cropping, no forced letterboxing). The wide selector below
   catches every <img>/<video> inside the media column regardless of which
   class hyphyspace_render_carousel happened to emit (it uses
   .hyphy-card__image for single-image posts and .hyphy-carousel__img for
   multi-image posts). */
.hyphy-single { display: flex; align-items: flex-start; gap: 24px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); overflow: hidden; }
.hyphy-single__media { background: #000; display: block; flex: 1 1 62%; min-width: 0; }
.hyphy-single__media img,
.hyphy-single__media video,
.hyphy-single__image, .hyphy-single__video { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; }
.hyphy-single__side { flex: 1 1 38%; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: stretch; }
/* Carousel inside a single-post detail page: same native-aspect rules. */
.hyphy-single .hyphy-carousel { width: 100%; }
.hyphy-single .hyphy-carousel__slide img,
.hyphy-single .hyphy-carousel__img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; }
@media (max-width: 860px) { .hyphy-single { flex-direction: column; } .hyphy-single__media, .hyphy-single__side { flex: 1 1 auto; width: 100%; } }

/* --------- Composer --------- */
.hyphy-composer { background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hyphy-composer__tabs { display: inline-flex; gap: 4px; background: var(--hs-bg-3); padding: 4px; border-radius: 999px; align-self: flex-start; }
.hyphy-composer__tabs button { background: transparent; border: 0; padding: 6px 14px; border-radius: 999px; color: var(--hs-text-2); font-weight: 700; }
.hyphy-composer__tabs button.is-active { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); color: #1a0e00; }
.hyphy-composer__text { width: 100%; min-height: 110px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: var(--hs-radius-sm); color: var(--hs-text); padding: 12px 14px; resize: vertical; font: inherit; }
.hyphy-composer__text:focus { outline: 0; border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-composer__preview { display: none; gap: 8px; }
.hyphy-composer.is-media .hyphy-composer__preview { display: flex; flex-direction: column; gap: 8px; }
.hyphy-composer__preview img { max-height: 220px; border-radius: var(--hs-radius-sm); object-fit: cover; }
/* v1.9.6 — Multi-photo (carousel) preview strip in the composer. */
.hyphy-composer__multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.hyphy-composer__multi-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--hs-radius-sm); background: var(--hs-bg-3); }
.hyphy-composer__multi-thumb img { width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: 0; }
.hyphy-composer__multi-count { color: var(--hs-text-3); font-size: 12px; }
.hyphy-composer__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hyphy-composer__count { color: var(--hs-text-3); font-size: 13px; }
.hyphy-composer__count.over { color: var(--hs-danger); font-weight: 700; }
.hyphy-composer__count .current { color: var(--hs-text); font-weight: 700; }
.hyphy-composer__message { color: var(--hs-text-2); font-size: 13px; min-height: 16px; }

/* Composer Modal */
.hyphy-composer-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-composer-modal[hidden] { display: none; }
.hyphy-composer-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); }
.hyphy-composer-modal__panel { position: relative; width: 100%; max-width: 600px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); box-shadow: var(--hs-shadow); overflow: hidden; animation: hsZoom .2s ease; }
@keyframes hsZoom { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hyphy-composer-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hs-line); }
.hyphy-composer-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 18px; }
.hyphy-composer-modal__head button { background: transparent; border: 0; color: var(--hs-text); font-size: 24px; line-height: 1; }
.hyphy-composer-modal__head button:hover { color: var(--hs-gold); }
.hyphy-composer-modal__body { padding: 18px; max-height: 70vh; overflow-y: auto; }

/* --------- Profile --------- */
.hyphy-profile-hero { display: flex; gap: 24px; align-items: center; padding: 24px; background: linear-gradient(180deg, rgba(255,140,26,0.06), transparent), var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); margin-bottom: 18px; }
.hyphy-profile-hero__meta h1 { margin: 0; font-family: var(--hs-font-head); font-size: 24px; }
.hyphy-profile-hero__meta p { margin: 4px 0; color: var(--hs-text-2); }
.hyphy-profile-hero__bio { color: var(--hs-text); font-size: 15px; max-width: 540px; }
.hyphy-profile-tabs { display: flex; gap: 4px; padding: 4px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 999px; align-self: flex-start; margin-bottom: 16px; }
.hyphy-profile-tabs a { padding: 8px 18px; border-radius: 999px; color: var(--hs-text-2); font-weight: 700; }
.hyphy-profile-tabs a.is-active { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); color: #1a0e00; }
.hyphy-profile-tabs a:hover { color: var(--hs-gold); }
.hyphy-profile-tabs a.is-active:hover { color: #1a0e00; }
@media (max-width: 720px) { .hyphy-profile-hero { flex-direction: column; text-align: center; } }

/* --------- Tag hero --------- */
.hyphy-tag-hero { padding: 22px 24px; background: linear-gradient(135deg, rgba(255,140,26,0.18), rgba(255,179,71,0.05)); border: 1px solid var(--hs-gold-ring); border-radius: var(--hs-radius-lg); margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hyphy-tag-hero h1 { margin: 0; font-family: var(--hs-font-head); font-size: 30px; }
.hyphy-tag-hero p { margin: 0; color: var(--hs-text-2); }

/* --------- Explore --------- */
.hyphy-tag-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 18px; }
.hyphy-tag-chip { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); color: var(--hs-text); font-weight: 700; }
.hyphy-tag-chip:hover { border-color: var(--hs-gold); color: var(--hs-gold); }
.hyphy-tag-chip span { color: var(--hs-text-3); font-weight: 500; font-size: 12px; }

/* --------- Pagination --------- */
.hyphy-pagination, .nav-links { display: flex; gap: 6px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.hyphy-pagination a, .hyphy-pagination span, .nav-links a, .nav-links span { padding: 8px 12px; border-radius: 10px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); color: var(--hs-text-2); }
.hyphy-pagination .current, .nav-links .current { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); color: #1a0e00; border-color: transparent; font-weight: 700; }
.hyphy-pagination a:hover, .nav-links a:hover { color: var(--hs-gold); border-color: var(--hs-gold); }

/* --------- Landing / Auth --------- */
.hyphy-landing-hero { position: relative; overflow: hidden; min-height: calc(100vh - 70px); display: flex; align-items: center; padding: 40px 20px; }
.hyphy-landing-hero__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; width: 100%; }
.hyphy-landing-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hyphy-landing-hero__bg .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: hsFloat 12s ease-in-out infinite; }
.hyphy-landing-hero__bg .orb--a { width: 420px; height: 420px; background: var(--hs-gold-2); top: -120px; left: -100px; }
.hyphy-landing-hero__bg .orb--b { width: 360px; height: 360px; background: var(--hs-gold); bottom: -120px; right: -80px; animation-delay: -4s; }
.hyphy-landing-hero__bg .orb--c { width: 260px; height: 260px; background: #ffd29a; top: 30%; right: 35%; opacity: 0.25; animation-delay: -8s; }
@keyframes hsFloat { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }

.hyphy-landing-hero__title { font-family: var(--hs-font-head); font-size: clamp(40px, 6vw, 76px); line-height: 1; margin: 0 0 14px; letter-spacing: -0.03em; background: linear-gradient(135deg, #fff 0%, var(--hs-gold) 65%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hyphy-landing-hero__tagline { font-size: 20px; color: var(--hs-text-2); margin: 0 0 24px; max-width: 520px; }
.hyphy-landing-hero__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--hs-text); }
.hyphy-landing-hero__bullets li { display: flex; align-items: center; gap: 12px; }

.hyphy-landing-hero__form { display: flex; justify-content: center; }

@media (max-width: 920px) { .hyphy-landing-hero__inner { grid-template-columns: 1fr; gap: 30px; } .hyphy-landing-hero__title { text-align: center; } .hyphy-landing-hero__tagline { text-align: center; } .hyphy-landing-hero__bullets { align-items: center; } }

/* Auth card */
.hyphy-auth-card { width: 100%; max-width: 420px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); padding: 28px; box-shadow: var(--hs-shadow); }
.hyphy-auth-brand { text-align: center; margin-bottom: 18px; }
/* v1.9.3 — Auth-card Log in / Sign up toggle pills. The ACTIVE pill uses the
   same gold/orange treatment as the primary header "Sign up" CTA so the two
   surfaces feel like the same brand element. */
.hyphy-auth-toggle { display: inline-flex; gap: 6px; padding: 4px; margin: 0 auto 18px; border-radius: 999px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); justify-content: center; }
.hyphy-auth-card .hyphy-auth-toggle { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.hyphy-auth-toggle button { appearance: none; border: 0; background: transparent; color: var(--hs-text-2); font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; line-height: 1; }
.hyphy-auth-toggle button:hover { color: var(--hs-gold); }
.hyphy-auth-toggle button.is-active { background: linear-gradient(135deg, var(--hs-gold) 0%, var(--hs-gold-2) 60%, var(--hs-gold-3) 100%); color: #1a0e00; box-shadow: 0 6px 18px rgba(255,140,26,0.35); }
.hyphy-auth-toggle button.is-active:hover { color: #1a0e00; box-shadow: 0 8px 22px rgba(255,140,26,0.55); }
.hyphy-auth-brand .hyphy-logo { font-family: var(--hs-font-head); font-weight: 800; font-size: 28px; background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hyphy-tagline { color: var(--hs-text-3); margin: 6px 0 0; font-size: 13px; }
.hyphy-auth-form { display: none; flex-direction: column; gap: 12px; }
.hyphy-auth-form.is-active { display: flex; }
.hyphy-auth-form h2 { font-family: var(--hs-font-head); margin: 0 0 4px; font-size: 22px; }
.hyphy-auth-form input[type=text], .hyphy-auth-form input[type=email], .hyphy-auth-form input[type=password] { width: 100%; padding: 12px 14px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 12px; color: var(--hs-text); font-size: 15px; }
.hyphy-auth-form input:focus { outline: 0; border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-auth-form input::placeholder { color: var(--hs-text-3); }
.hyphy-checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--hs-text-2); font-size: 13px; }
.hyphy-auth-form .hyphy-btn { width: 100%; padding: 12px 18px; font-size: 15px; }
.hyphy-form-msg { color: var(--hs-danger); font-size: 13px; min-height: 16px; }
.hyphy-auth-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--hs-text-3); }
.hyphy-auth-meta a, .hyphy-auth-meta button { color: var(--hs-gold); }

/* --------- Comments --------- */
.hyphy-comments { background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: var(--hs-radius); padding: 18px; margin-top: 16px; }
.hyphy-comments__title { font-family: var(--hs-font-head); font-size: 16px; margin: 0 0 12px; }
.hyphy-comments__list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 12px; }
.hyphy-comments .comment-body { background: var(--hs-bg-3); padding: 10px 12px; border-radius: 10px; }
.hyphy-comments textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { width: 100%; padding: 10px 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; color: var(--hs-text); }
.hyphy-comments textarea:focus, .comment-form input:focus { outline: 0; border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.comment-form .submit, .form-submit input[type=submit] { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); color: #1a0e00; border: 0; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* --------- Toast --------- */
.hyphy-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--hs-bg-2); color: var(--hs-text); border: 1px solid var(--hs-line); border-radius: 999px; padding: 10px 18px; box-shadow: var(--hs-shadow); opacity: 0; transition: opacity .25s ease, transform .25s ease; z-index: 200; font-weight: 600; }
.hyphy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hyphy-toast--success { border-color: var(--hs-success); color: var(--hs-success); }

/* --------- 404 --------- */
.hyphy-404 { text-align: center; padding: 80px 20px; }
.hyphy-404 h1 { font-family: var(--hs-font-head); font-size: 96px; margin: 0 0 12px; background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hyphy-404 p { color: var(--hs-text-2); margin-bottom: 20px; }

/* --------- Footer --------- */
.hyphy-footer { border-top: 1px solid var(--hs-line); padding: 24px 20px; margin-top: 40px; background: var(--hs-bg-2); }
.hyphy-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; color: var(--hs-text-3); font-size: 13px; }
.hyphy-footer__brand span { color: var(--hs-text-2); }
.hyphy-footer__nav ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.hyphy-footer__nav a { color: var(--hs-text-2); }
.hyphy-footer__nav a:hover { color: var(--hs-gold); }

/* --------- BuddyPress overrides (general) --------- */
#buddypress { background: transparent; }
#buddypress div.item-list-tabs ul li a { color: var(--hs-text-2); }
#buddypress div.item-list-tabs ul li.selected a, #buddypress div.item-list-tabs ul li.current a { color: var(--hs-gold); }
#buddypress button, #buddypress a.button, #buddypress input[type=submit] { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-3)) !important; color: #1a0e00 !important; border: 0 !important; border-radius: 999px !important; padding: 8px 16px !important; }
#buddypress .activity-list .activity-content .activity-header { color: var(--hs-text-2); }

/* Hashtag link in content */
.hyphy-hashtag-link { color: var(--hs-gold); font-weight: 700; }
.hyphy-hashtag-link:hover { color: var(--hs-gold-2); }

/* Prose */
.hyphy-prose { color: var(--hs-text); line-height: 1.7; }
.hyphy-prose a { color: var(--hs-gold); }
.hyphy-prose h2 { font-family: var(--hs-font-head); }

/* Selection */
::selection { background: var(--hs-gold-soft); color: var(--hs-text); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--hs-bg-2); }
::-webkit-scrollbar-thumb { background: var(--hs-line-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--hs-gold-3); }

/* ==========================================================================
   v1.8.3 — Stories bar, viewer modal, YouTube facade, Hyphe GIF
   ========================================================================== */

/* Horizontal stories bar above the feed */
.hyphy-stories-bar {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    margin: 0 0 14px;
    background: var(--hs-bg-2);
    border: 1px solid var(--hs-line);
    border-radius: var(--hs-radius);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.hyphy-stories-bar::-webkit-scrollbar { height: 6px; }
.hyphy-story-pill {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--hs-text);
    min-width: 72px; max-width: 84px;
}
.hyphy-story-pill__ring {
    position: relative; display: inline-block; padding: 3px;
    border-radius: 50%;
    background: var(--hs-bg-3);
}
.hyphy-story-pill.has-active .hyphy-story-pill__ring {
    background: conic-gradient(from 0deg, var(--hs-gold), var(--hs-gold-3), #ff5e87, var(--hs-gold));
}
.hyphy-story-pill__ring img {
    display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--hs-bg-2);
}
.hyphy-story-pill__add {
    position: absolute; right: 0; bottom: 2px; width: 20px; height: 20px; line-height: 18px;
    text-align: center; background: var(--hs-gold); color: #1a0e00; border-radius: 50%;
    font-weight: 800; font-size: 13px; border: 2px solid var(--hs-bg-2);
}
.hyphy-story-pill__label {
    font-size: 12px; color: var(--hs-text-2); white-space: nowrap;
    max-width: 80px; overflow: hidden; text-overflow: ellipsis;
}
.hyphy-story-pill:hover .hyphy-story-pill__label { color: var(--hs-text); }

/* Stories full-screen viewer */
.hyphy-stories-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.hyphy-stories-modal[hidden] { display: none; }
.hyphy-stories-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.hyphy-stories-modal__panel {
    position: relative; width: 100%; max-width: 440px; height: min(92vh, 800px);
    background: #000; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.hyphy-stories-modal__bars { display: flex; gap: 4px; padding: 10px 12px 0; }
.hyphy-stories-modal__bar {
    flex: 1; height: 3px; background: rgba(255,255,255,0.25); border-radius: 2px; overflow: hidden;
    position: relative;
}
.hyphy-stories-modal__bar i {
    display: block; height: 100%; width: 0; background: #fff;
}
.hyphy-stories-modal__bar.is-done i { width: 100%; }
.hyphy-stories-modal__bar.is-active i { animation: hyphyStoryBar 5s linear forwards; }
@keyframes hyphyStoryBar { from { width: 0; } to { width: 100%; } }

.hyphy-stories-modal__head {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; color: #fff;
}
.hyphy-stories-modal__author {
    display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
    flex: 1; min-width: 0;
}
.hyphy-stories-modal__avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.4);
}
.hyphy-stories-modal__name { font-weight: 700; }
.hyphy-stories-modal__ago { color: rgba(255,255,255,0.7); font-size: 12px; }
.hyphy-stories-modal__author-actions { display: flex; gap: 6px; }
.hyphy-stories-action {
    background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 32px; height: 32px;
    border-radius: 50%; font-size: 14px; cursor: pointer;
}
.hyphy-stories-action:hover { background: rgba(255,255,255,0.22); }
.hyphy-stories-modal__close {
    background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.hyphy-stories-modal__stage {
    position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: #000;
}
.hyphy-stories-modal__img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    user-select: none; -webkit-user-drag: none;
}
.hyphy-stories-modal__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45); color: #fff; border: 0; width: 40px; height: 40px;
    border-radius: 50%; font-size: 22px; cursor: pointer;
}
.hyphy-stories-modal__nav--prev { left: 8px; }
.hyphy-stories-modal__nav--next { right: 8px; }
.hyphy-stories-modal__nav:hover { background: rgba(0,0,0,0.7); }
.hyphy-stories-modal__caption {
    color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 12px 14px; min-height: 16px; font-size: 14px;
}
.hyphy-stories-modal__caption:empty { display: none; }

/* YouTube click-to-play facade */
.hyphy-yt {
    position: relative; display: block; width: 100%;
    aspect-ratio: 16 / 9; background: #000; border-radius: var(--hs-radius-sm); overflow: hidden;
    margin: 8px 0; max-width: 640px;
}
.hyphy-yt__poster {
    display: block; width: 100%; height: 100%; position: relative; cursor: pointer;
}
.hyphy-yt__poster img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .25s ease, filter .25s ease;
}
.hyphy-yt:hover .hyphy-yt__poster img { transform: scale(1.02); filter: brightness(0.85); }
.hyphy-yt__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.hyphy-yt__play svg { filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55)); transition: transform .2s ease; }
.hyphy-yt:hover .hyphy-yt__play svg { transform: scale(1.06); }
.hyphy-yt__iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Hyphe attached GIF */
.hyphy-card__hyphe-gif {
    margin-top: 10px; border-radius: var(--hs-radius-sm); overflow: hidden;
    max-width: 360px; background: var(--hs-bg-3); border: 1px solid var(--hs-line);
}
.hyphy-card__hyphe-gif img { display: block; width: 100%; height: auto; }

/* Composer GIF preview + buttons */
.hyphy-composer__tools { display: flex; align-items: center; gap: 12px; }
.hyphy-composer__gif-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--hs-bg-3); border: 1px solid var(--hs-line); color: var(--hs-text);
    padding: 6px 10px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.hyphy-composer__gif-btn:hover { border-color: var(--hs-gold); color: var(--hs-gold); }
.hyphy-composer__gif-preview {
    position: relative; display: inline-block; max-width: 240px; margin-top: 4px;
    border-radius: var(--hs-radius-sm); overflow: hidden; border: 1px solid var(--hs-line);
}
.hyphy-composer__gif-preview[hidden] { display: none; }
.hyphy-composer__gif-preview img { display: block; max-width: 100%; height: auto; }
.hyphy-composer__gif-clear {
    position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,0.7); color: #fff; border: 0; font-size: 16px; cursor: pointer;
}

/* Comment row fallback (rendered when a comment crashes) */
.hyphy-comment-row--fallback { opacity: 0.85; }
.hyphy-comment-row--fallback .hyphy-comment-row__text { color: var(--hs-text-2); font-style: italic; }


/* ==========================================================================
   v1.8.6 — Profile story ring matches the feed pill ring; profile story tiles
   match the photo tile grid; mobile-safe profile uploads
   v1.8.7 — Profile avatar reverts to original (no ring at all). Feed pill keeps
   the ring but greys out / hides once the viewer has watched all active stories.
   ========================================================================== */

/* No story ring on the profile avatar. */
.hyphy-ig-head__avatar-wrap { position: relative; display: inline-block; }
/* Backward-compatibility: any legacy `.has-active-story` markup is neutralised. */
.hyphy-ig-head__avatar-wrap.has-active-story,
.hyphy-ig-head__avatar-wrap.has-active-story.is-seen {
    background: transparent !important;
    padding: 0 !important;
}
.hyphy-ig-head__avatar-wrap.has-active-story .hyphy-ig-avatar {
    border: 0 !important;
    background: transparent !important;
}
/* Feed pill: after the viewer has watched all active stories, fade the ring. */
.hyphy-story-pill.is-seen .hyphy-story-pill__ring {
    background: var(--hs-line, #2a2a30) !important;
}

/* Profile Stories tab: square tiles, identical to Photos tab grid. */
.hyphy-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
@media (min-width: 768px) {
    .hyphy-stories-grid { gap: 6px; }
}
.hyphy-stories-tile {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden;
    background: var(--hs-bg-3, #1c1c20); border: 0; padding: 0; cursor: pointer;
    border-radius: 0;
}
.hyphy-stories-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .25s ease, filter .25s ease;
}
.hyphy-stories-tile:hover img { transform: scale(1.03); }
.hyphy-stories-tile.is-hidden img { filter: brightness(0.5) grayscale(0.4); }
.hyphy-stories-tile__badge {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px;
    border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hyphy-stories-tile.is-active .hyphy-stories-tile__badge {
    background: linear-gradient(135deg, #f4a020, #ff7a3a); color: #1a0e00;
}
.hyphy-stories-tile__badge--hidden {
    top: auto !important; bottom: 6px; background: rgba(0,0,0,0.85) !important;
}
.hyphy-stories-tile__ago {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.6); color: #fff; padding: 2px 6px;
    border-radius: 4px; font-size: 10px;
}

/* v1.8.5 — Viewers panel inside the story viewer (author only). */
.hyphy-stories-action--views { padding: 0 10px; min-width: 44px; width: auto; gap: 4px; }
.hyphy-stories-action__num { font-weight: 700; }
.hyphy-stories-viewers {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 65%;
    background: #0d0d0f;
    color: #eee;
    border-top-left-radius: 14px; border-top-right-radius: 14px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    animation: hyphyViewersSlideUp .22s ease-out;
    z-index: 5;
}
@keyframes hyphyViewersSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.hyphy-stories-viewers__head {
    padding: 12px 14px 8px; border-bottom: 1px solid #1f1f22;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
}
.hyphy-stories-viewers__head strong { font-size: 15px; }
.hyphy-stories-viewers__head small { color: #8c8c92; margin-left: auto; font-size: 11px; }
.hyphy-stories-viewers__list { overflow-y: auto; padding: 4px 0 8px; }
.hyphy-stories-viewers__row {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px;
    text-decoration: none; color: inherit;
}
.hyphy-stories-viewers__row:hover { background: #15151a; }
.hyphy-stories-viewers__row img {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.hyphy-stories-viewers__row-name { display: flex; flex-direction: column; line-height: 1.2; }
.hyphy-stories-viewers__row-name small { color: #8c8c92; font-size: 11px; }
.hyphy-stories-viewers__empty { padding: 20px 14px; text-align: center; color: #8c8c92; }

/* v1.8.6 — Profile upload error banner. */
.hyphy-profile-flash {
    margin: 10px 0; padding: 10px 14px; border-radius: 8px;
    background: #2a1818; border: 1px solid #5a2929; color: #ffb6b6; font-size: 14px;
}
.hyphy-profile-flash--success { background: #18271a; border-color: #295a2c; color: #b9f7c1; }

/* v1.8.6 — Delete button on photo/video cards (alongside Edit). */
.hyphy-card__head-actions .hyphy-delete-post {
    background: transparent; border: 0; color: var(--hs-text-3); cursor: pointer;
    padding: 4px 6px; border-radius: 6px; font-size: 14px;
}
.hyphy-card__head-actions .hyphy-delete-post:hover { color: #ff6b6b; background: var(--hs-bg-3); }

/* v1.8.6 — Tiny delete overlay on grid tiles (only the owner sees it). */
.hyphy-grid-tile-wrap { position: relative; }
.hyphy-grid-tile-wrap .hyphy-grid-tile { display: block; }
/* v1.9.3 — Instagram-style 3-column profile grid (Photos & Videos tabs).
   Without this rule the .hyphy-grid container had no display:grid and tiles
   stacked one per row. */
.hyphy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.hyphy-grid--ig { gap: 4px; }
.hyphy-grid .hyphy-grid-tile-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: var(--hs-bg-3, #1c1c20); border-radius: 0; }
.hyphy-grid .hyphy-grid-tile,
.hyphy-grid .hyphy-grid-tile__videobg { width: 100%; height: 100%; position: relative; overflow: hidden; }
.hyphy-grid .hyphy-grid-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.hyphy-grid .hyphy-grid-tile:hover .hyphy-grid-tile__img { transform: scale(1.03); }
.hyphy-grid .hyphy-grid-tile__hyphe { width: 100%; height: 100%; padding: 14px; background: linear-gradient(135deg, #1c1c20, #2a2a30); color: var(--hs-text, #f3f3f5); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.hyphy-grid .hyphy-grid-tile__badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.55); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
/* v1.9.6 — Stacked-photos indicator for multi-image carousel posts. */
.hyphy-grid .hyphy-grid-tile__badge--multi { padding: 4px; line-height: 0; display: inline-flex; align-items: center; justify-content: center; }
.hyphy-grid .hyphy-grid-tile__badge--multi svg { display: block; }
@media (min-width: 768px) { .hyphy-grid, .hyphy-grid--ig { gap: 6px; } }
@media (max-width: 480px) { .hyphy-grid, .hyphy-grid--ig { gap: 2px; } }
.hyphy-grid-tile__delete {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,0,0,0.55); color: #fff; border: 0; cursor: pointer;
    font-size: 13px; line-height: 1;
    opacity: 0; transition: opacity .15s ease, background .15s ease;
    z-index: 2;
}
.hyphy-grid-tile-wrap:hover .hyphy-grid-tile__delete,
.hyphy-grid-tile__delete:focus-visible { opacity: 1; }
.hyphy-grid-tile__delete:hover { background: #c0392b; }
/* On touch devices the hover-reveal never triggers, so show it persistently. */
@media (hover: none) {
    .hyphy-grid-tile__delete { opacity: 0.9; }
}


