.sa-snap-celebrities-page {
    --celeb-yellow: #fffc00;
    --celeb-yellow-soft: #fffbd6;
    --celeb-ink: #171923;
    --celeb-muted: #667085;
    --celeb-line: #e7eaf0;
    --celeb-surface: #fff;
    --celeb-soft: #f7f8fb;
}

.sa-celeb-main {padding: 0 0 44px;}
.sa-celeb-main .sa-breadcrumbs {margin-block: 18px;}

.sa-celeb-directory-hero,
.sa-celeb-profile-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--celeb-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 8% 15%, rgba(255,252,0,.33), transparent 26%),
        linear-gradient(135deg, #fff 0%, #fffdf0 62%, #fff8a6 100%);
    box-shadow: 0 18px 55px rgba(21,27,45,.09);
}
.sa-celeb-directory-hero::after,
.sa-celeb-profile-hero::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border: 34px solid rgba(255,255,255,.55);
    border-radius: 50%;
    inset-inline-start: -70px;
    inset-block-end: -105px;
    pointer-events: none;
}
.sa-celeb-directory-hero {
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.sa-celeb-directory-hero__content {position: relative; z-index: 1; max-width: 780px;}
.sa-celeb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #766d00;
    font-size: 13px;
    font-weight: 700;
}
.sa-celeb-directory-hero h1,
.sa-celeb-profile-hero h1 {margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.25; color: var(--celeb-ink);}
.sa-celeb-directory-hero h1 mark {padding: 0; background: transparent; color: #c9ad00;}
.sa-celeb-directory-hero p {max-width: 720px; margin: 13px 0 0; color: var(--celeb-muted); font-size: clamp(14px, 1.5vw, 17px);}
.sa-celeb-directory-hero__stat {
    position: relative;
    z-index: 1;
    min-width: 165px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(174,151,0,.22);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(12px);
}
.sa-celeb-directory-hero__stat strong {display: block; font-size: 38px; color: #1d2433;}
.sa-celeb-directory-hero__stat span {display: block; color: var(--celeb-muted); font-size: 12px;}

.sa-celeb-filters {
    margin: 18px 0;
    padding: 17px;
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(170px,.7fr) minmax(180px,.7fr) auto;
    gap: 12px;
    align-items: end;
    border: 1px solid var(--celeb-line);
    border-radius: 19px;
    background: var(--celeb-surface);
    box-shadow: 0 10px 30px rgba(21,27,45,.05);
}
.sa-celeb-filters label {display: grid; gap: 6px; min-width: 0;}
.sa-celeb-filters label > span {font-size: 12px; font-weight: 700; color: var(--celeb-muted);}
.sa-celeb-filters input,
.sa-celeb-filters select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--celeb-line);
    border-radius: 12px;
    background: #fff;
    color: var(--celeb-ink);
    outline: none;
}
.sa-celeb-search {position: relative;}
.sa-celeb-search i {position: absolute; inset-inline-start: 15px; inset-block-end: 16px; color: #8a93a3;}
.sa-celeb-search input {padding-inline-start: 42px;}

.sa-celeb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.sa-celeb-card {
    position: relative;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--celeb-line);
    border-radius: 21px;
    background: var(--celeb-surface);
    box-shadow: 0 10px 30px rgba(21,27,45,.055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sa-celeb-card:hover {transform: translateY(-4px); border-color: #ded777; box-shadow: 0 20px 45px rgba(21,27,45,.1);}
.sa-celeb-card.is-featured {border-color: #e4d336; background: linear-gradient(180deg,#fffef4,#fff);}
.sa-celeb-card__featured {position: absolute; inset-block-start: 11px; inset-inline-start: 11px; padding: 5px 9px; border-radius: 99px; background: #fff8ad; color: #705e00; font-size: 10px; font-weight: 800;}
.sa-celeb-card__profile {display: flex; align-items: center; gap: 13px; min-width: 0;}
.sa-celeb-avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fffb84;
    border-radius: 50%;
    background: var(--celeb-yellow);
    color: #232323;
    font-size: 30px;
}
.sa-celeb-avatar img {width: 100%; height: 100%; object-fit: cover;}
.sa-celeb-card__identity {min-width: 0; display: block;}
.sa-celeb-card__identity strong {display: block; overflow-wrap: anywhere; color: var(--celeb-ink); font-size: 18px;}
.sa-celeb-card__identity small {display: block; color: var(--celeb-muted); direction: ltr; text-align: right;}
.sa-celeb-card__identity em {display: inline-flex; margin-top: 7px; padding: 3px 8px; border-radius: 99px; background: #f2f4f7; color: #566071; font-size: 10px; font-style: normal;}
.sa-celeb-card > p {min-height: 48px; margin: 14px 0; color: var(--celeb-muted); font-size: 12px; line-height: 1.8;}
.sa-celeb-card__stats {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 13px;}
.sa-celeb-card__stats span {min-width: 0; padding: 9px 5px; display: grid; place-items: center; border-radius: 11px; background: var(--celeb-soft); text-align: center;}
.sa-celeb-card__stats i {color: #a58e00;}
.sa-celeb-card__stats b {font-size: 13px; color: var(--celeb-ink);}
.sa-celeb-card__stats small {font-size: 9px; color: var(--celeb-muted);}
.sa-celeb-card__actions {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px;}
.sa-celeb-card__actions a {min-height: 40px; padding: 7px 5px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--celeb-line); border-radius: 10px; color: #3c4657; font-size: 10px; font-weight: 700; text-align: center;}
.sa-celeb-card__actions a:first-child {border-color: #e2d22a; background: #fffcce; color: #584e00;}
.sa-celeb-card__updated {display: block; margin-top: 12px; color: #7b8493; font-size: 10px;}

.sa-celeb-profile-hero {padding: clamp(22px,4vw,42px);}
.sa-celeb-profile-hero__identity {position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; max-width: 850px;}
.sa-celeb-profile-avatar {width: 138px; height: 138px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 6px solid #fff; outline: 4px solid #ffed33; border-radius: 50%; background: var(--celeb-yellow); box-shadow: 0 14px 38px rgba(60,52,0,.16); font-size: 50px;}
.sa-celeb-profile-avatar img {width: 100%; height: 100%; object-fit: cover;}
.sa-celeb-username {margin: 4px 0; color: #6d7280; direction: ltr; text-align: right; font-size: 15px;}
.sa-celeb-bio {max-width: 760px; margin: 10px 0 0; color: #535c6d; font-size: 14px;}
.sa-celeb-profile-hero__actions {position: relative; z-index: 1; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px;}
.sa-celeb-refresh-ok {margin: 14px 0; padding: 12px 16px; border: 1px solid #a8e2be; border-radius: 13px; background: #effcf4; color: #287745; font-size: 12px; font-weight: 700;}
.sa-celeb-refresh-ok i {margin-inline-end: 5px;}
.sa-celeb-profile-stats {margin: 16px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px;}
.sa-celeb-profile-stats > * {min-width: 0; min-height: 104px; padding: 15px; display: grid; place-items: center; border: 1px solid var(--celeb-line); border-radius: 17px; background: #fff; box-shadow: 0 8px 25px rgba(21,27,45,.045); text-align: center;}
.sa-celeb-profile-stats i {font-size: 23px; color: #b89f00;}
.sa-celeb-profile-stats strong {max-width: 100%; overflow-wrap: anywhere; font-size: 20px; color: var(--celeb-ink);}
.sa-celeb-profile-stats small {color: var(--celeb-muted); font-size: 10px;}
.sa-celeb-tabs {margin: 16px 0; padding: 7px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; border: 1px solid var(--celeb-line); border-radius: 16px; background: #fff;}
.sa-celeb-tabs a {min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; color: #687181; font-weight: 700; font-size: 13px;}
.sa-celeb-tabs a.is-active {background: #242b37; color: #fff; box-shadow: 0 8px 20px rgba(24,29,39,.14);}

.sa-celeb-overview-section,
.sa-celeb-results {margin-top: 16px; padding: clamp(15px,2.5vw,24px); border: 1px solid var(--celeb-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 32px rgba(21,27,45,.045);}
.sa-celeb-overview-section > header {margin-bottom: 15px; display: flex; align-items: end; justify-content: space-between; gap: 16px;}
.sa-celeb-overview-section header span {color: #9a8500; font-size: 11px; font-weight: 800;}
.sa-celeb-overview-section h2 {margin: 2px 0 0; font-size: clamp(20px,2vw,27px);}
.sa-celeb-overview-section header > a {color: #665b00; font-size: 12px; font-weight: 700;}
.sa-celeb-media-grid {grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0;}
.sa-celeb-no-media,
.sa-celeb-empty {padding: 48px 22px; border: 1px dashed #d9dde5; border-radius: 19px; background: #fafbfc; text-align: center; color: #737c8c;}
.sa-celeb-no-media i,
.sa-celeb-empty__icon {display: block; margin-bottom: 10px; color: #b09a00; font-size: 42px;}
.sa-celeb-no-media strong {display: block; color: #222a36;}
.sa-celeb-no-media p,
.sa-celeb-empty p {margin: 5px auto 18px; max-width: 550px;}
.sa-celeb-empty h1,
.sa-celeb-empty h2 {margin: 0; color: #202733;}
.sa-celeb-results .sa-snap-results__heading {padding: 0 0 17px;}
.sa-snap-directory-link {display: inline-flex; align-items: center; gap: 5px; color: #675a00; font-weight: 700;}

[data-sa-theme="dark"] .sa-snap-celebrities-page,
[data-sa-theme="dark"] .sa-celeb-main {--celeb-ink:#f3f5f8;--celeb-muted:#aeb6c4;--celeb-line:#313846;--celeb-surface:#171c24;--celeb-soft:#202630;}
[data-sa-theme="dark"] .sa-celeb-directory-hero,
[data-sa-theme="dark"] .sa-celeb-profile-hero {background: radial-gradient(circle at 8% 15%,rgba(255,252,0,.15),transparent 27%),linear-gradient(135deg,#171c24,#22251b);}
[data-sa-theme="dark"] .sa-celeb-filters,
[data-sa-theme="dark"] .sa-celeb-card,
[data-sa-theme="dark"] .sa-celeb-profile-stats > *,
[data-sa-theme="dark"] .sa-celeb-tabs,
[data-sa-theme="dark"] .sa-celeb-overview-section,
[data-sa-theme="dark"] .sa-celeb-results {background: var(--celeb-surface);}
[data-sa-theme="dark"] .sa-celeb-filters input,
[data-sa-theme="dark"] .sa-celeb-filters select {background:#202630;color:#f4f6f9;border-color:#394150;}
[data-sa-theme="dark"] .sa-celeb-card.is-featured {background: linear-gradient(180deg,#292719,#171c24);}
[data-sa-theme="dark"] .sa-celeb-no-media,
[data-sa-theme="dark"] .sa-celeb-empty {background:#191f28;border-color:#394150;}
[data-sa-theme="dark"] .sa-celeb-no-media strong,
[data-sa-theme="dark"] .sa-celeb-empty h1,
[data-sa-theme="dark"] .sa-celeb-empty h2 {color:#f3f5f8;}

@media (max-width: 1050px) {
    .sa-celeb-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
    .sa-celeb-filters {grid-template-columns: minmax(220px,1fr) 1fr 1fr;}
    .sa-celeb-filters .sa-button {grid-column: 1/-1;}
    .sa-celeb-media-grid {grid-template-columns: repeat(3,minmax(0,1fr));}
}
@media (max-width: 760px) {
    .sa-celeb-directory-hero {align-items: flex-start; flex-direction: column;}
    .sa-celeb-directory-hero__stat {width: 100%; min-width: 0; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;}
    .sa-celeb-directory-hero__stat strong {font-size: 27px;}
    .sa-celeb-filters {grid-template-columns: 1fr;}
    .sa-celeb-filters .sa-button {grid-column: auto; width: 100%;}
    .sa-celeb-grid {grid-template-columns: 1fr;}
    .sa-celeb-profile-hero__identity {align-items: flex-start;}
    .sa-celeb-profile-avatar {width: 104px; height: 104px;}
    .sa-celeb-profile-stats {grid-template-columns: repeat(2,minmax(0,1fr));}
    .sa-celeb-media-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
}
@media (max-width: 480px) {
    .sa-celeb-profile-hero__identity {flex-direction: column;}
    .sa-celeb-profile-hero__actions .sa-button {width: 100%;}
    .sa-celeb-tabs {grid-template-columns: 1fr;}
    .sa-celeb-card__stats {grid-template-columns: repeat(3,minmax(0,1fr));}
    .sa-celeb-card__actions {grid-template-columns: 1fr;}
    .sa-celeb-media-grid {grid-template-columns: 1fr;}
    .sa-celeb-overview-section > header {align-items: flex-start; flex-direction: column;}
}

/* V12: preserve button contrast in profile actions on every theme. */
.sa-celeb-profile-hero .sa-button--dark,.sa-celeb-profile-hero .sa-button--dark:visited,.sa-celeb-profile-hero .sa-button--dark:hover{background:#252d39!important;color:#fff!important}
.sa-celeb-profile-hero .sa-button--dark i{color:inherit!important}
@media(max-width:620px){.sa-celeb-profile-hero__actions .sa-button{width:100%;min-height:48px;text-align:center}.sa-celeb-card__actions{grid-template-columns:1fr}.sa-celeb-card__actions a{min-height:44px}}


/* V12.1: visible manual-refresh action and one-hour cache status. */
.sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button,
.sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button:visited {
    border: 1px solid #253044 !important;
    background: #ffffff !important;
    color: #253044 !important;
    box-shadow: 0 8px 22px rgba(28, 37, 53, .09);
}
.sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button i {
    color: #a58e00 !important;
}
.sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button:hover,
.sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button:focus-visible {
    border-color: #e3c900 !important;
    background: #fffbe0 !important;
    color: #171d28 !important;
    transform: translateY(-1px);
}
.sa-celeb-refresh-info {
    margin: 14px 0;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #cbd7e8;
    border-radius: 13px;
    background: #f3f7fc;
    color: #40516a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}
.sa-celeb-refresh-info i {margin-top: 5px; color: #5279ad;}
[data-sa-theme="dark"] .sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button,
[data-sa-theme="dark"] .sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button:visited {
    border-color: #707a89 !important;
    background: #2a323f !important;
    color: #ffffff !important;
}
[data-sa-theme="dark"] .sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button:hover,
[data-sa-theme="dark"] .sa-celeb-profile-hero .sa-button--outline.sa-celeb-refresh-button:focus-visible {
    border-color: #ffe34c !important;
    background: #373824 !important;
    color: #ffffff !important;
}
[data-sa-theme="dark"] .sa-celeb-refresh-info {
    border-color: #3b4d65;
    background: #202a38;
    color: #d2dbea;
}
@media (max-width: 620px) {
    .sa-celeb-refresh-info {font-size: 11px;}
}
