/* Tab 4: Social Studio — Pure-Visual Masonry Wall, Platform Rims, Crown/Orb Charms,
   Interactive Album Carousels, iOS Frosted Minimal+ Utility Cards & Decoupled Media Viewer */

.social-section {
    --social-bg: transparent;
    --social-surface: linear-gradient(165deg, rgba(24, 33, 60, 0.88) 0%, rgba(15, 22, 42, 0.92) 100%);
    --social-surface-2: rgba(255, 255, 255, 0.09);
    --social-accent: #a78bfa;
    --social-accent-soft: rgba(167, 139, 250, 0.20);
    --social-border: rgba(255, 255, 255, 0.16);
    --social-border-strong: rgba(255, 255, 255, 0.30);

    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--social-bg);
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}

html[data-theme="light"] .social-section {
    --social-surface: rgba(255, 255, 255, 0.90);
    --social-surface-2: rgba(14, 36, 62, 0.065);
    --social-accent: #7c3aed;
    --social-accent-soft: rgba(124, 58, 237, 0.14);
    --social-border: rgba(14, 36, 62, 0.13);
    --social-border-strong: rgba(14, 36, 62, 0.26);
}

.social-col {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 24px 0 calc(var(--rail-width, 0px) + 24px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* =======================================================
   1. AIRY PINTEREST-STYLE MASONRY WATERFALL
   ======================================================= */
.social-feed-grid {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 36px 0 64px;
}

.masonry-column {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* =======================================================
   2. FILTER CARD CHIPS (ON MASONRY WALL)
   ======================================================= */
.social-filter-reset {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--social-accent);
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    padding: 2px 4px;
}

.social-filter-reset:hover {
    text-decoration: underline;
}

.social-filter-card {
    padding: 16px 14px;
}

.social-filter-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.social-chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    gap: 0;
    height: 32px;
    padding: 0;
    border-radius: 9px;
    border: 0;
    overflow: hidden;
    background: var(--pill-bg);
    color: var(--pill-ink);
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.social-chip:hover {
    background: var(--pill-bg-hover);
    transform: translateY(-1px);
}

.social-chip:active {
    transform: scale(0.97);
}

.social-chip.active {
    background: var(--pill-active-bg);
    color: var(--pill-active-ink);
    box-shadow: 0 4px 14px rgba(139, 108, 246, 0.28);
}

.social-chip:focus:not(:focus-visible) {
    outline: none;
}

.social-chip:focus-visible {
    outline: 2px solid var(--social-accent);
    outline-offset: 2px;
}

.social-filter-pill-thumb {
    width: 22px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}

.social-filter-pill-thumb--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.social-filter-pill-thumb--icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

.social-filter-pill-label {
    padding: 0 9px 0 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.015em;
}

/* =======================================================
   3. HYBRID PLATFORM RIM (PINK TIKTOK / BLUE FB / NEUTRAL)
   ======================================================= */
.platform-rim {
    padding: 1.5px;
    border-radius: 17.5px;
    box-shadow: 0 12px 30px rgba(2, 6, 18, 0.44);
    transition: box-shadow var(--dur-base) ease,
        transform 0.22s var(--ease-out-expo);
}

html[data-theme="light"] .platform-rim {
    box-shadow: 0 10px 26px rgba(14, 36, 62, 0.13);
}

.platform-rim:hover {
    transform: translateY(-2px);
}

.platform-rim--tiktok {
    padding: 2.5px;
    border-radius: 18.5px;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.68), rgba(255, 77, 121, 0.56));
}

.platform-rim--tiktok:hover {
    background: linear-gradient(135deg, #fe2c55, #ff4d79);
    box-shadow: 0 10px 26px rgba(254, 44, 85, 0.38);
}

.platform-rim--facebook {
    padding: 2.5px;
    border-radius: 18.5px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.68), rgba(59, 130, 246, 0.56));
}

.platform-rim--facebook:hover {
    background: linear-gradient(135deg, #1877f2, #3b82f6);
    box-shadow: 0 10px 26px rgba(24, 119, 242, 0.38);
}

.platform-rim--neutral {
    background: rgba(255, 255, 255, 0.14);
}

.platform-rim--neutral:hover {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow-md);
}

html[data-theme="light"] .platform-rim--tiktok {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.62), rgba(255, 77, 121, 0.52));
}

html[data-theme="light"] .platform-rim--facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.62), rgba(59, 130, 246, 0.52));
}

html[data-theme="light"] .platform-rim--neutral {
    background: rgba(14, 36, 62, 0.14);
}

html[data-theme="light"] .platform-rim--neutral:hover {
    background: rgba(14, 36, 62, 0.26);
}

/* =======================================================
   4. PURE-VISUAL MEDIA TILE + TOP-RIGHT CLUSTER & FRESH PILL
   ======================================================= */
.social-tile {
    position: relative;
    width: 100%;
    overflow: visible;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.social-tile:focus-visible {
    outline: 2px solid var(--social-accent);
    outline-offset: 2px;
}

.social-tile-frame {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(110deg, var(--social-surface) 30%, rgba(255, 255, 255, 0.05) 50%, var(--social-surface) 70%);
    background-size: 200% 100%;
}

.social-tile:focus-visible,
.social-min-row:focus-visible,
.social-filter-pill:focus-visible,
.social-popout-btn:focus-visible,
.social-copy-icon-btn:focus-visible,
.social-back-to-top:focus-visible {
    outline: 2px solid var(--studio-social);
    outline-offset: 2px;
}

.social-tile-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(155deg, #1b1d26 0%, #111218 100%);
}

.social-tile-fallback--tiktok {
    background:
        radial-gradient(circle at 22% 18%, rgba(37, 244, 238, 0.18), transparent 52%),
        radial-gradient(circle at 78% 82%, rgba(254, 44, 85, 0.18), transparent 55%),
        linear-gradient(160deg, #161823 0%, #0b0c11 100%);
}

.social-tile-fallback--facebook {
    background:
        radial-gradient(circle at 75% 22%, rgba(24, 119, 242, 0.24), transparent 55%),
        linear-gradient(160deg, #0e192f 0%, #0a0e18 100%);
}

.social-tile-fallback-glyph {
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.16);
}

.social-tile-fallback-glyph svg {
    width: 100%;
    height: 100%;
    display: block;
}

.social-tile-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.social-tile-img.is-loaded {
    opacity: 1;
}

.social-tile-img.is-broken {
    opacity: 0;
}

.social-tile:hover .social-tile-img {
    transform: scale(1.03);
}

.platform-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.platform-logo svg {
    width: 14px;
    height: 14px;
    display: block;
}

.platform-logo--tiktok {
    background: linear-gradient(135deg, #fe2c55 0%, #ff4d79 100%);
    box-shadow: 0 5px 14px rgba(254, 44, 85, 0.46);
}

.platform-logo--facebook {
    background: linear-gradient(135deg, #1877f2 0%, #3b82f6 100%);
    box-shadow: 0 5px 14px rgba(24, 119, 242, 0.46);
}

.social-tr-cluster {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}

.social-plat-anchor {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.platform-logo--tile {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-logo--tile svg {
    width: 22px;
    height: 22px;
}

.platform-logo--tile.has-crown {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.44),
        0 0 18px rgba(255, 200, 32, 0.42);
}

.social-tile:hover .platform-logo--tile,
.social-carousel-card:hover .platform-logo--tile {
    transform: scale(1.07);
}

/* Bold oversized tilted gold game crown perched proudly on top of the 38px logo */
.social-crown-snug {
    position: absolute;
    top: -21px;
    right: -4px;
    z-index: 4;
    width: 36px;
    height: 30px;
    transform: rotate(16deg);
    transform-origin: bottom center;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.72));
    transition: transform var(--dur-base) var(--ease-spring);
}

.social-crown-snug svg {
    width: 100%;
    height: 100%;
    display: block;
}

.social-tile:hover .social-crown-snug,
.social-carousel-card:hover .social-crown-snug {
    transform: rotate(22deg) translateY(-3px) scale(1.12);
}

/* Bold Punchy Diagonal Corner Ribbon ("MỚI", "CHÁY", "MỚI·CHÁY") */
.social-ribbon {
    position: absolute;
    top: 16px;
    left: -34px;
    width: 124px;
    padding: 5.5px 0;
    transform: rotate(-45deg);
    z-index: 5;
    text-align: center;
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.46);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
    pointer-events: none;
    user-select: none;
}

.social-ribbon.is-new {
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
}

.social-ribbon.is-fire {
    background: linear-gradient(90deg, #ff6a00 0%, #ef4444 55%, #e11d48 100%);
}

.social-ribbon.is-combo {
    font-size: 14px;
    letter-spacing: 0;
    padding: 6.5px 0;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 52%, #ec4899 100%);
}

.platform-logo--mini {
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: 3;
    width: 18px;
    height: 18px;
    border: 1.5px solid #12192e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.36);
}

.platform-logo--mini svg {
    width: 11px;
    height: 11px;
}

html[data-theme="light"] .platform-logo--mini {
    border-color: #ffffff;
}

.social-tile-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 16, 0.26);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.social-tile:hover .social-tile-hover {
    opacity: 1;
}

.social-tile-hover-orb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 16, 28, 0.86);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transform: scale(0.9);
    transition: transform 0.22s var(--ease-out-expo), background-color 0.18s ease;
}

.social-tile:hover .social-tile-hover-orb {
    transform: scale(1);
}

.social-tile-hover-orb svg {
    width: 24px;
    height: 24px;
    display: block;
}

.social-tile-hover-orb.is-video svg {
    margin-left: 2px;
}

/* =======================================================
   5. MULTI-SLIDE ALBUM CAROUSEL CARD
   ======================================================= */
.social-carousel-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    contain: layout style;
}

.social-carousel-rim {
    position: relative;
    overflow: visible;
}

.social-carousel-stage {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--social-surface);
    touch-action: pan-y;
}

.social-carousel-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-carousel-stage:hover .social-carousel-img {
    transform: scale(1.025);
}

.social-carousel-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: #e11d48;
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.social-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(12, 12, 18, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.86;
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.social-carousel-nav.is-prev {
    left: 7px;
}

.social-carousel-nav.is-next {
    right: 7px;
}

.social-carousel-nav svg {
    width: 14px;
    height: 14px;
    display: block;
}

.social-carousel-nav:hover {
    opacity: 1;
    background: rgba(12, 12, 18, 0.82);
    transform: translateY(-50%) scale(1.06);
}

.social-carousel-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.social-carousel-cta {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 11px;
    max-width: 100%;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.social-carousel-cta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-carousel-cta svg {
    width: 13px;
    height: 13px;
    display: block;
    flex-shrink: 0;
}

.social-carousel-cta:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.social-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 0 2px;
}

.social-carousel-dot {
    appearance: none;
    border: 0;
    padding: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--social-border-strong);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out-expo), background-color 0.2s ease;
}

.social-carousel-dot.is-active {
    transform: scale(1.4);
    background: var(--social-accent);
}

/* =======================================================
   6. ALBUM COLLAGE CARD ("NỔI BẬT")
   ======================================================= */
.social-album-collage {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--social-border);
    background: var(--social-surface);
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-album-collage:hover {
    transform: translateY(-2px);
    border-color: var(--social-border-strong);
    box-shadow: var(--shadow-md);
}

.social-album-collage.is-active {
    border-color: var(--social-accent);
    box-shadow: 0 0 0 1px var(--social-accent);
}

.social-album-collage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    aspect-ratio: 1.05;
    background: var(--social-bg);
}

.social-album-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
}

.social-album-slot {
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
    background: var(--social-surface-2);
}

.social-album-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-album-slot-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1b1e2b 0%, #101219 100%);
}

.social-album-more-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 16, 0.48);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.social-album-scrim {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 22px 10px 9px;
    background: linear-gradient(to top, rgba(6, 7, 12, 0.86) 0%, rgba(6, 7, 12, 0.35) 60%, transparent 100%);
    color: #ffffff;
    pointer-events: none;
}

.social-album-title {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.social-album-sub {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.88;
    margin-top: 2px;
}

/* =======================================================
   7. iOS FROSTED MINIMAL+ UTILITY CARDS & QUOTE POSTER
   ======================================================= */
.social-frost-card {
    width: 100%;
    border-radius: 20px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.048);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        0 14px 32px rgba(2, 6, 18, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    contain: layout style;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-frost-card:hover {
    border-color: rgba(255, 255, 255, 0.20);
}

.social-frost-card.is-active {
    border-color: var(--social-accent);
    box-shadow: 0 0 0 1px var(--social-accent), 0 14px 32px rgba(2, 6, 18, 0.36);
}

html[data-theme="light"] .social-frost-card {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 10px 26px rgba(14, 36, 62, 0.09),
        0 0 0 1px rgba(14, 36, 62, 0.06),
        inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .social-frost-card:hover {
    border-color: rgba(14, 36, 62, 0.18);
}

.social-frost-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-ink);
}

.social-frost-kicker--btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.16s ease;
}

.social-frost-kicker--btn:hover {
    color: var(--color-ink);
}

.social-kicker-arrow {
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.7;
}

.social-kicker-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #17cb8d;
    box-shadow: 0 0 8px rgba(23, 203, 141, 0.9);
}

.social-min-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-min-row {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    margin: 0 -8px;
    width: calc(100% + 16px);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.social-min-row:hover {
    background: rgba(255, 255, 255, 0.065);
}

.social-min-row.is-active {
    background: var(--social-accent-soft);
}

html[data-theme="light"] .social-min-row:hover {
    background: rgba(14, 36, 62, 0.055);
}

.social-min-thumb-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    overflow: visible;
}

.social-min-thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: var(--social-surface-2);
}

.social-min-thumb--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.social-min-thumb--icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.social-min-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-min-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-min-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-steel);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-rank-num {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 14.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--color-steel);
    width: 22px;
    flex-shrink: 0;
    text-align: center;
}

.social-rank-num.is-gold {
    color: #f5b935;
}

.social-gig-city {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--color-steel);
    opacity: 0.8;
}

.social-gig-list {
    display: flex;
    flex-direction: column;
}

.social-gig-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-gig-row:first-child {
    padding-top: 2px;
}

.social-gig-row:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

html[data-theme="light"] .social-gig-row {
    border-bottom-color: rgba(14, 36, 62, 0.08);
}

.social-gig-row.is-sold-out {
    opacity: 0.42;
    text-decoration: line-through;
}

.social-gig-day {
    width: 24px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-steel);
}

.social-gig-venue {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-gig-time {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--color-steel);
    opacity: 0.72;
}

.social-gig-row.is-next .social-gig-day {
    color: #17cb8d;
}

.social-gig-row.is-next .social-gig-venue {
    font-weight: 700;
}

.social-gig-row.is-next .social-gig-time {
    color: #17cb8d;
    opacity: 0.92;
}

html[data-theme="light"] .social-gig-row.is-next .social-gig-day,
html[data-theme="light"] .social-gig-row.is-next .social-gig-time {
    color: #0d9468;
}

.social-booking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 6px;
    margin: 0 -6px;
    border-radius: 12px;
    transition: background-color 0.16s ease;
}

.social-booking-row:hover {
    background: rgba(255, 255, 255, 0.055);
}

html[data-theme="light"] .social-booking-row:hover {
    background: rgba(14, 36, 62, 0.05);
}

.social-booking-row .social-min-sub {
    font-size: 11px;
    letter-spacing: -0.012em;
}

.social-booking-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}

.social-channel-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.social-channel-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.social-channel-zalo-mark {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
}

.social-channel-icon.is-zalo {
    background: linear-gradient(135deg, #0068ff 0%, #00a2ff 100%);
}

.social-channel-icon.is-tiktok {
    background: linear-gradient(135deg, #fe2c55 0%, #ff4d79 100%);
}

.social-channel-icon.is-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #3b82f6 100%);
}

.social-channel-icon.is-mail {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.social-copy-icon-btn {
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-steel);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.social-copy-icon-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.social-copy-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-ink);
    transform: scale(1.06);
}

.social-copy-icon-btn.is-copied {
    background: rgba(23, 203, 141, 0.24);
    border-color: rgba(23, 203, 141, 0.55);
    color: #34d399;
}

html[data-theme="light"] .social-copy-icon-btn {
    background: rgba(14, 36, 62, 0.06);
    border-color: rgba(14, 36, 62, 0.12);
    color: #475569;
}

html[data-theme="light"] .social-copy-icon-btn:hover {
    background: rgba(14, 36, 62, 0.12);
    color: #0f172a;
}

html[data-theme="light"] .social-copy-icon-btn.is-copied {
    background: #d1fae5;
    border-color: #34d399;
    color: #047857;
}

/* Minimal Social-Synced Quote Card (iOS Frosted Minimal+ + Accent Rail + Kanit Italic) */
.social-quote-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 13px;
    padding: 18px 16px;
}

.social-quote-bar {
    width: 3px;
    border-radius: 999px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #a78bfa 0%, #ec4899 100%);
}

.social-quote-card.is-pink .social-quote-bar {
    background: linear-gradient(180deg, #fe2c55 0%, #ff7a00 100%);
}

.social-quote-card.is-blue .social-quote-bar {
    background: linear-gradient(180deg, #38bdf8 0%, #1877f2 100%);
}

.social-quote-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-quote-eyebrow {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-steel);
}

.social-quote-text {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.005em;
    color: var(--color-ink);
    margin: 0;
}

.social-quote-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-steel);
}

/* Card Entrance Animation */
.fade-in {
    animation: socialFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes socialFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   8. RESPONSIVE & COMPACT MOBILE MODE
   ======================================================= */
@media (max-width: 960px), (max-aspect-ratio: 6 / 5), (max-height: 520px) {
    .social-col {
        padding: 0 12px;
    }

    .social-feed-grid {
        gap: 14px;
        padding: 72px 0 max(44px, env(safe-area-inset-bottom));
    }

    .masonry-column {
        gap: 16px;
    }

    .social-tile-hover {
        display: none;
    }
}

/* =======================================================
   9. IN-PLACE FLIP POP-OUT EXPAND VIEWER (ZERO FULLSCREEN MODAL)
   ======================================================= */
.is-popout-origin {
    opacity: 0 !important;
    pointer-events: none !important;
}

.social-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.social-media-viewer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Soft non-blurring scrim keeps the entire Masonry wall crisp & visible around the expanded card */
.social-viewer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, 0.30);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.social-viewer-scrim.is-fading {
    opacity: 0;
}

html[data-theme="light"] .social-viewer-scrim {
    background: rgba(14, 24, 42, 0.22);
}

.social-popout-card {
    position: fixed;
    z-index: 2;
    padding: 2.5px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.20);
    box-shadow:
        0 28px 72px rgba(2, 6, 18, 0.72),
        0 8px 24px rgba(2, 6, 18, 0.45);
    overflow: hidden;
    will-change: transform;
}

.social-popout-card[data-platform="tiktok"] {
    background: linear-gradient(135deg, #fe2c55, #ff4d79);
    box-shadow:
        0 28px 72px rgba(2, 6, 18, 0.74),
        0 0 32px rgba(254, 44, 85, 0.28);
}

.social-popout-card[data-platform="facebook"] {
    background: linear-gradient(135deg, #1877f2, #3b82f6);
    box-shadow:
        0 28px 72px rgba(2, 6, 18, 0.74),
        0 0 32px rgba(24, 119, 242, 0.28);
}

.social-popout-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 45;
    max-width: calc(100% - 108px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 14, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.social-popout-badge[hidden] {
    display: none;
}

.social-popout-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-popout-btn {
    width: 32px;
    height: 32px;
    background: rgba(10, 14, 24, 0.74);
    border-color: rgba(255, 255, 255, 0.22);
    text-decoration: none;
}

.social-popout-btn[hidden] {
    display: none;
}

.social-popout-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.social-viewer-stage {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 17.5px;
    overflow: hidden;
    background: #070709;
}

.social-viewer-stage[hidden] {
    display: none;
}

.social-viewer-stage.media-studio--video {
    --studio-accent: var(--studio-video);
    --studio-accent-tint: var(--studio-video-tint);
}

.social-viewer-stage.media-studio--gallery {
    --studio-accent: var(--studio-image);
    --studio-accent-tint: var(--studio-image-tint);
}

.social-viewer-stage .media-stage-col {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 17.5px;
    box-shadow: none;
}

/* Keep the expanded card chrome ultra-minimal (no redundant album wheel inside pop-out) */
.social-popout-card .hud-album-anchor {
    display: none;
}

.social-popout-card .hud-bottom {
    padding: 2.6rem 0.85rem 0.75rem;
}

.social-popout-card .hud-right {
    right: 10px;
    bottom: 50px;
}

.social-popout-card.is-single .hud-right {
    display: none;
}

.social-popout-card.is-single .hud-track-title {
    padding-right: 0;
}

@media (max-width: 640px) {
    .social-viewer-scrim {
        background: rgba(4, 7, 15, 0.64);
    }

    html[data-theme="light"] .social-viewer-scrim {
        background: rgba(12, 20, 36, 0.46);
    }

    .social-popout-badge {
        max-width: calc(100% - 118px);
    }

    .social-popout-actions {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .social-popout-btn {
        width: 38px;
        height: 38px;
    }

    .social-popout-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Floating Scroll-to-Top Pill for Long Social Wall */
.social-back-to-top {
    position: fixed;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 40;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(14, 20, 36, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(2, 6, 18, 0.48);
    color: var(--color-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, color 0.18s ease;
}

.social-back-to-top.is-visible {
    opacity: 0.96;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.social-back-to-top:hover {
    transform: translateY(-2px);
    border-color: var(--studio-social);
    color: var(--studio-social);
}

.social-back-to-top svg {
    width: 18px;
    height: 18px;
    display: block;
}

html[data-theme="light"] .social-back-to-top {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(14, 36, 62, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none !important;
    }

    .platform-rim,
    .social-tile-img,
    .social-carousel-img {
        transition-duration: 0.01ms !important;
    }
}
