.phaser-social-media-poster-card {
    box-sizing: border-box;
    width: min(100%, 202px, 30dvh);
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 7px;
    color: #222d3e;
    text-align: left;
}

.phaser-social-media-launch {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform .18s ease;
}

.phaser-social-media-poster-card.is-minimal {
    grid-template-rows: 1fr;
    gap: 0;
}

.phaser-social-media-preview-static {
    cursor: default;
}

.phaser-social-media-launch:hover,
.phaser-social-media-launch:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.phaser-social-media-launch:focus-visible {
    outline: 2px solid #577cb4;
    outline-offset: 3px;
}

.artist-popup-media-list > .artist-popup-media-card--social {
    width: min(100%, 360px);
    justify-self: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.artist-popup-media-card--social .phaser-social-media-poster-card {
    width: min(100%, 202px, 30dvh);
}

.phaser-social-media-inline-player {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
}

.artist-popup-media-card--social.is-social-inline-open {
    overflow: visible;
}

.artist-popup-media-card--social .phaser-social-media-inline-player .phaser-social-media-embed {
    overflow: visible;
    background: transparent;
}

.phaser-social-media-poster {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: min(360px, 54dvh);
    overflow: hidden;
    border: 1px solid rgba(116, 139, 175, .48);
    border-radius: 11px;
    background: #090d14;
    box-shadow: 0 5px 14px rgba(19, 31, 49, .14);
}

.phaser-social-media-thumbnail,
.phaser-social-media-poster-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.phaser-social-native-poster {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #090d14;
    pointer-events: none;
}

.phaser-social-native-poster .phaser-social-media-embed-tiktok {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto;
}

.phaser-social-native-poster .phaser-social-media-embed-tiktok iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    pointer-events: none;
}

.phaser-social-native-poster .phaser-social-media-embed-instagram,
.phaser-social-native-poster .phaser-social-media-embed-instagram blockquote.instagram-media,
.phaser-social-native-poster .phaser-social-media-embed-instagram iframe {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.phaser-social-native-poster .phaser-social-media-embed-instagram iframe {
    position: absolute !important;
    inset: 0 !important;
}

.phaser-social-media-thumbnail {
    display: block;
    object-fit: cover;
}

.phaser-social-media-thumbnail[hidden] {
    display: none;
}

.phaser-social-media-poster-shade {
    background: linear-gradient(0deg, rgba(5, 9, 16, .62), transparent 64%);
    pointer-events: none;
}

.phaser-social-media-launch.has-thumbnail .phaser-social-media-poster {
    background-color: #111827;
}

.phaser-social-media-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(226, 235, 255, .38);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    padding-left: 3px;
    color: #fff;
    font: 700 15px/1 system-ui, sans-serif;
}

.phaser-social-media-platform {
    position: absolute;
    bottom: 9px;
    left: 11px;
    color: #fff;
    font: 700 9px/1.2 system-ui, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.phaser-social-media-title {
    display: block;
    overflow: hidden;
    color: #26364d;
    font: 600 12px/1.35 system-ui, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phaser-social-media-modal {
    position: fixed;
    z-index: 9900;
    inset: 0;
    box-sizing: border-box;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(7, 10, 16, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.phaser-social-media-modal .media-player-shell.is-social-vertical {
    box-sizing: border-box;
    width: min(440px, 100%);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 14px;
    border: 1px solid rgba(209, 220, 241, .28);
    border-radius: 18px;
    background: #0c111a;
    box-shadow: 0 28px 76px rgba(0, 0, 0, .46);
}

.phaser-social-media-modal .phaser-social-media-embed-host {
    box-sizing: border-box;
    display: block;
    width: min(100%, 405px);
    max-height: calc(100dvh - 110px);
    margin: 0 auto;
    overflow: auto;
    border-radius: 12px;
    background: #fff;
}

.phaser-social-media-modal .phaser-social-media-embed-host[hidden] {
    display: none !important;
}

.phaser-social-media-embed {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
}

/* Instagram controls the embed's own height. Keep its frame proportional to
   the available width and let the card grow instead of clipping its footer. */
.phaser-social-media-embed blockquote.instagram-media {
    box-sizing: border-box !important;
    width: min(328px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.phaser-social-media-embed-instagram,
.phaser-social-media-embed-instagram > div,
.phaser-social-media-embed-instagram > span,
.phaser-social-media-embed-instagram iframe {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.phaser-social-media-embed-instagram iframe {
    display: block !important;
    margin-inline: auto !important;
    border: 0 !important;
}

.artist-popup-media-card--social .phaser-social-media-embed-instagram,
.artist-popup-media-card--social .phaser-social-media-embed-instagram > div,
.artist-popup-media-card--social .phaser-social-media-embed-instagram > span {
    width: min(328px, 100%) !important;
    min-width: 0 !important;
    margin-inline: auto !important;
}

.phaser-social-media-embed-tiktok {
    aspect-ratio: 9 / 16;
    max-height: min(72dvh, 720px);
}

.phaser-social-media-embed-tiktok iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    background: #05070b;
}

.artist-popup-media-card--social .phaser-social-media-embed-tiktok {
    width: min(100%, 253px);
    max-height: min(72dvh, 450px);
    margin-inline: auto;
}

.media-wrapper .phaser-social-media-embed {
    width: min(100%, 220px);
    min-height: 0;
    border-radius: 12px;
}

.media-wrapper .phaser-social-media-embed iframe,
.media-wrapper .phaser-social-media-embed a {
    pointer-events: auto;
}

.media-wrapper .phaser-social-media-embed-tiktok {
    height: min(54dvh, 420px);
    min-height: 280px;
}

.media-wrapper .phaser-social-media-embed-tiktok iframe {
    min-height: 280px;
}

.media-wrapper .phaser-social-media-poster-card {
    width: min(100%, 202px, 30dvh);
}

.phaser-social-media-embed.is-embed-unavailable {
    display: none;
}

.phaser-social-media-modal #mediaPlayer.is-social-vertical {
    display: block;
    width: min(100%, 40.5dvh, calc(56.25dvh - 56.25px), 405px);
    height: min(72dvh, calc(100dvh - 100px), 720px);
    min-height: 0;
    max-height: calc(100dvh - 110px);
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border: 0;
    border-radius: 12px;
    background: #05070b;
}

.phaser-social-media-modal #mediaPlayer[hidden] {
    display: none !important;
}

.phaser-social-media-modal .media-player-close {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    padding: 0 16px;
    border: 1px solid rgba(208, 220, 241, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: #edf3ff;
    font: 700 12px/1 system-ui, sans-serif;
    cursor: pointer;
}

.phaser-social-media-modal .media-player-close:hover,
.phaser-social-media-modal .media-player-close:focus-visible {
    border-color: rgba(168, 193, 239, .68);
    background: rgba(255, 255, 255, .12);
    outline: none;
}

@media (max-width: 480px) {
    .phaser-social-media-poster-card {
        width: min(100%, 196px, 30dvh);
    }

    .phaser-social-media-modal .media-player-shell.is-social-vertical {
        padding: 10px;
        border-radius: 14px;
    }

    .artist-popup-media-card--social .phaser-social-media-embed blockquote.instagram-media {
        width: min(328px, 100%) !important;
        min-width: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phaser-social-media-launch {
        transition: none;
    }
}
