/* SexyShare — lot am4 « site plus attractif » (bannière, top/tendances, badge Nouvelle, 🔥, favoris, tags, profils, plein écran).
   Variables du thème (style.css) réutilisées ; rien dans /js/vendor/. */

/* ── Grande bannière (hero) ─────────────────────────────────────────────── */
.ss4-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 14px 0 6px; padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 44px) !important;
  border-radius: calc(var(--radius, 22px) + 6px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 107, 157, .30), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(233, 196, 106, .26), transparent 60%),
    linear-gradient(135deg, #2a0f1f 0%, #3b1130 46%, #1b0c22 100%);
  color: #fff6fa; box-shadow: 0 24px 60px rgba(120, 20, 70, .28);
}
.ss4-hero::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 160%; z-index: -1;
  background: conic-gradient(from 200deg, rgba(255, 143, 179, .0), rgba(255, 143, 179, .22), rgba(233, 196, 106, .18), rgba(255, 143, 179, 0));
  filter: blur(40px); animation: ss4-glow 14s linear infinite; pointer-events: none;
}
@keyframes ss4-glow { to { transform: rotate(360deg); } }
.ss4-hero .home-intro__badge { background: rgba(255, 255, 255, .12); color: #ffd1e1; }
.ss4-hero h1, .ss4-hero h1 > span { color: #fff; -webkit-text-fill-color: #fff; background: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.ss4-hero h1 em { -webkit-text-fill-color: transparent; text-shadow: none; }
.ss4-hero h1 em { background: linear-gradient(90deg, #ff8fb3, #e9c46a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ss4-hero .home-intro__sub { color: rgba(255, 240, 246, .82); }
.ss4-hero__punch {
  margin: 14px 0 0; font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
  background: linear-gradient(90deg, #fff 0%, #ffc2d6 45%, #e9c46a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ss4-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ss4-hero__cta .btn { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; }
.ss4-hero__share { box-shadow: 0 10px 30px rgba(255, 107, 157, .45); }
.ss4-hero__reel, .ss4-hero__favs { color: #fff !important; border-color: rgba(255, 255, 255, .35) !important; background: rgba(255, 255, 255, .08) !important; text-decoration: none; }
.ss4-hero__reel:hover, .ss4-hero__favs:hover { background: rgba(255, 255, 255, .16) !important; }
.ss4-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e9c46a; color: #2a0f1f; font-size: .78rem; font-weight: 800; }
.ss4-badge[hidden] { display: none; }
.ss4-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 16px 0 0; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; color: #ffe9f1; }
.ss4-live__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ss4-pulse 1.8s ease-out infinite; }
.ss4-live__lab { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; color: #9ff0c2; }
.ss4-live__item strong { font-size: 1.15rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
@keyframes ss4-pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
/* les deux compteurs principaux passent dans la bannière ; la grille garde œuvres / likes / vues */
.ss4-hero .home-intro__stats [data-stat="posts"], .ss4-hero .home-intro__stats [data-stat="users"] { display: none; }
.ss4-hero .home-intro__stats > * { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.ss4-hero .home-intro__stats span { color: rgba(255, 233, 241, .75); }

/* ── Badge « Nouvelle » ─────────────────────────────────────────────────── */
.ss4-new { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #2a0f1f; background: linear-gradient(90deg, #ffd166, #ff8fb3); box-shadow: 0 2px 8px rgba(255, 143, 179, .35); white-space: nowrap; }

/* ── Tags ───────────────────────────────────────────────────────────────── */
.ss4-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; padding: 0 16px; }
.ss4-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none;
  color: var(--accent, #ff6b9d); background: var(--accent-soft, rgba(255, 107, 157, .14)); border: 1px solid transparent; line-height: 1.2; min-height: 28px; }
.ss4-tag:hover, .ss4-tag:focus-visible { border-color: var(--accent, #ff6b9d); }
.ss4-tag small { opacity: .7; font-weight: 700; }
.ss4-tag.is-active { background: var(--accent, #ff6b9d); color: #fff; }
.ss4-tags-row { align-items: center; gap: 8px; flex-wrap: nowrap; }
.ss4-tags-row[hidden] { display: none !important; }
.ss4-tags-row__lab { font-size: .8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.ss4-tags-cloud { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ss4-tag--chip { white-space: nowrap; min-height: 34px; }
.ss4-tag-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-sm, 14px);
  background: var(--gradient-subtle); border: 1px solid var(--border); font-weight: 700; }
.ss4-tag-banner[hidden] { display: none; }
.ss4-tag-banner__x { font-weight: 600; color: var(--accent); text-decoration: none; }

/* ── 🔥 réaction ────────────────────────────────────────────────────────── */
.ss4-fire { filter: grayscale(1) opacity(.65); transition: filter .15s, transform .15s; }
.ss4-fire.is-on { filter: none; }
.ss4-fire:hover { filter: none; }
.ss4-burst { animation: ss4-burst .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ss4-burst { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }
.tiktok-action.ss4-fire { filter: none; opacity: .75; }
.tiktok-action.ss4-fire.is-on { opacity: 1; text-shadow: 0 0 14px rgba(255, 120, 40, .9); }

/* ── Top de la semaine / Tendances ─────────────────────────────────────── */
.ss4-hot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ss4-hot__col { min-width: 0; }
.ss4-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.ss4-hcard { flex: 0 0 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.ss4-hcard__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--gradient-subtle); box-shadow: var(--shadow); }
.ss4-hcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ss4-hcard:hover .ss4-hcard__media img { transform: scale(1.05); }
.ss4-hcard__media.is-empty::before { content: "✨"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; opacity: .6; }
.ss4-hcard__rank { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #ffd166; font-weight: 800; font-size: .8rem; }
.ss4-hcard__media .ss4-new { position: absolute; right: 8px; top: 8px; }
.ss4-hcard__plat { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.ss4-hcard__meta { display: flex; flex-direction: column; line-height: 1.25; }
.ss4-hcard__meta strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss4-hcard__meta small { color: var(--text-muted); font-size: .78rem; }
.ss4-muted { color: var(--text-muted); font-size: .9rem; margin: 6px 0; }
@media (max-width: 860px) { .ss4-hot { grid-template-columns: minmax(0, 1fr); gap: 8px; } .ss4-hcard { flex-basis: 132px; } }

/* ── Profil : liens plateformes ─────────────────────────────────────────── */
.ss4-plats { margin: 16px 0 4px; }
.ss4-plats__title { font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.ss4-plats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ss4-plats--only-share { display: flex; }
.ss4-plat { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #3b1130, #6d1d4d); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 22px rgba(80, 10, 50, .22); transition: transform .15s, box-shadow .15s; font: inherit; text-align: left; }
.ss4-plat:hover, .ss4-plat:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(80, 10, 50, .3); }
.ss4-plat__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .95); flex: 0 0 auto; font-size: 1.3rem; }
.ss4-plat__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ss4-plat__txt strong { font-size: 1rem; }
.ss4-plat__txt small { opacity: .8; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss4-plat__go { margin-left: auto; opacity: .8; font-weight: 800; }
.ss4-plat--mym { background: linear-gradient(135deg, #1f1f2e, #e5486f); }
.ss4-plat--onlyfans { background: linear-gradient(135deg, #0a5ca8, #00aff0); }
.ss4-plat--fansly { background: linear-gradient(135deg, #0f4c81, #1fa1f2); }
.ss4-plat--x { background: linear-gradient(135deg, #000, #2b2b2b); }
.ss4-plat--redgifs { background: linear-gradient(135deg, #7a0019, #e3173e); }
.ss4-plat--civitai { background: linear-gradient(135deg, #1c3d8f, #4c6ef5); }
.ss4-plat--deviantart { background: linear-gradient(135deg, #04342a, #05cc47); }
.ss4-plat--share { background: linear-gradient(135deg, #e9c46a, #ff8fb3); color: #2a0f1f; border: 0; }

/* ── Favoris (dialog) ───────────────────────────────────────────────────── */
.ss4-fav { position: fixed; inset: 0; margin: auto; height: fit-content; overflow: auto; width: min(560px, calc(100vw - 24px)); max-height: min(80vh, 720px); padding: 18px 18px 14px; border: 0; border-radius: 22px; background: var(--bg-card, #fff); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ss4-fav::backdrop { background: rgba(20, 5, 15, .55); backdrop-filter: blur(3px); }
.ss4-fav__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ss4-fav__head h2 { margin: 0; font-size: 1.2rem; }
.ss4-fav__h { margin: 14px 0 6px; font-size: .95rem; }
.ss4-fav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ss4-fav__item { display: flex; align-items: center; gap: 8px; }
.ss4-fav__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 6px; border-radius: 12px; }
.ss4-fav__link:hover { background: var(--accent-soft); }
.ss4-fav__thumb { flex: 0 0 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--gradient-subtle); }
.ss4-fav__thumb--round { border-radius: 50%; }
.ss4-fav__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss4-fav__txt { display: flex; flex-direction: column; min-width: 0; }
.ss4-fav__txt strong, .ss4-fav__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss4-fav__txt small { color: var(--text-muted); }

/* ── Bouton « plein écran » mobile (accueil seulement) ─────────────────── */
.ss4-fab { display: none; }
@media (max-width: 768px) {
  body:not(.tiktok-mode):has(#page-home.active) .ss4-fab {
    position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%; color: #fff; font-size: 1.3rem; text-decoration: none;
    background: linear-gradient(135deg, #ff6b9d, #b5179e); box-shadow: 0 12px 30px rgba(181, 23, 158, .45);
  }
  .ss4-hero { margin-top: 8px; border-radius: 22px; }
  .ss4-hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .ss4-hero__share { flex-basis: 100% !important; }
  .ss4-live { font-size: .88rem; }
  .ss4-tags { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .ss4-hero::after, .ss4-live__dot, .ss4-burst { animation: none; } }

/* ── Onglets am3 : la bannière et les rails gardent leur lisibilité dans les thèmes Modèles / Art ─ */
#page-home[data-ss-zone="models"] .ss4-tag { color: #ff8fb3; }
#page-home[data-ss-zone="art"] .ss4-tag { color: #7b2ff7; background: rgba(123, 47, 247, .1); }
