/**
 * Galaxyz Smartlinks — Public Styles
 * v2.0.0 — Partiful-inspired redesign + rocket loading animation + theme toggle
 */

/* =============================================
   LEGACY CREATE PAGE (kept for fallback)
   ============================================= */

.galaxyz-container {
    max-width: 680px;
    margin: 5% auto;
    padding: 20px;
    text-align: center;
}

.galaxyz-input-group {
    display: flex;
    margin-top: 10px;
}

.galaxyz-input-group input[type="url"],
.galaxyz-input-group input[type="text"] {
    flex-grow: 1;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #333 !important;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.galaxyz-input-group button {
    padding: 15px 25px;
    font-size: 1em;
    border: none;
    background: linear-gradient(90deg, #ff00c7, #e000ff);
    color: #fff;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-weight: bold;
}

#galaxyz-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

#galaxyz-response.success { background-color: #28a745; color: #fff; }
#galaxyz-response.error   { background-color: #dc3545; color: #fff; }

/* =============================================
   NEW CREATE PAGE — FULL SCREEN REDESIGN
   ============================================= */

/* Video background */
.gxz-create-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gxz-create-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Hide iOS native video play button overlay (low-power mode) */
.gxz-create-bg__video::-webkit-media-controls,
.gxz-create-bg__video::-webkit-media-controls-panel,
.gxz-create-bg__video::-webkit-media-controls-play-button,
.gxz-create-bg__video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0 !important;
}

.gxz-create-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(10, 0, 30, 0.82) 60%,
        rgba(0, 0, 0, 0.88) 100%
    );
}

/* Page layout */
.gxz-create-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px 48px;
    gap: 20px;
}

/* ── Hero text ── */
.gxz-create-hero {
    text-align: center;
    max-width: 560px;
    animation: gxz-fade-up 0.7s ease both;
}

.gxz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 5px 14px 5px 10px;
    font-size: 0.78em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.gxz-hero-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff00c7;
    box-shadow: 0 0 8px #ff00c7;
    animation: gxz-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes gxz-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.gxz-hero-title {
    font-size: clamp(2em, 6vw, 4em);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    text-shadow: 0 2px 40px rgba(200, 0, 255, 0.25);
}

.gxz-hero-sub {
    font-size: clamp(0.95em, 2.5vw, 1.1em);
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}

/* ── Input card ── */
.gxz-create-card {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px 22px 18px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: gxz-fade-up 0.7s 0.1s ease both;
    transition: box-shadow 0.3s ease;
}

.gxz-create-card:focus-within {
    box-shadow:
        0 8px 60px rgba(200, 0, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Platform strip */

/* Create form — position:relative so the absolute dropdown anchors to it */
.gxz-create-form {
    display: block;
    width: 100%;
    position: relative;
}

.gxz-platform-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.gxz-platform-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
    cursor: default;
}

.gxz-platform-pill svg {
    width: 18px;
    height: 18px;
}

.gxz-platform-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    color: #fff;
}

.gxz-platform-pill--more {
    font-size: 1.1em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
}

/* Input wrap */
.gxz-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gxz-input-wrap:focus-within {
    border-color: rgba(200, 0, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(200, 0, 255, 0.12);
}

.gxz-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 0 16px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    pointer-events: none;
}

.gxz-input-icon svg {
    width: 18px;
    height: 18px;
}

.gxz-url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 8px 16px 0;
    /* 16px minimum prevents iOS Safari auto-zoom on focus */
    font-size: 16px !important;
    color: #fff !important;
    font-family: inherit;
    min-width: 0;
    -webkit-text-fill-color: #fff !important;
}

.gxz-url-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Paste button */
.gxz-paste-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.gxz-paste-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.gxz-paste-btn svg {
    width: 16px;
    height: 16px;
}

/* Submit button */
.gxz-submit-btn {
    width: 100% !important;
    display: flex !important;
    box-sizing: border-box !important;
    margin-top: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, #c800ff 0%, #ff0080 100%);
    color: #fff !important;
    font-size: 1.05em !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    letter-spacing: 0.03em !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(200, 0, 255, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
    animation: gxz-btn-glow 2.8s ease-in-out infinite;
}

@keyframes gxz-btn-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(200,0,255,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset; }
    50%       { box-shadow: 0 6px 36px rgba(200,0,255,0.65), 0 0 24px rgba(255,0,128,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset; }
}

/* Shimmer sweep */
.gxz-submit-btn__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.22) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    animation: gxz-btn-shimmer 2.4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes gxz-btn-shimmer {
    0%   { background-position: -100% 0; }
    60%  { background-position: 200% 0; }
    100% { background-position: 200% 0; }
}

/* Rocket icon in button */
.gxz-submit-btn__rocket {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    animation: gxz-btn-rocket-bob 1.6s ease-in-out infinite;
    line-height: 1;
}

/* rotate(45deg) points the upward-facing rocket SVG toward upper-right (↗) */
@keyframes gxz-btn-rocket-bob {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50%       { transform: translateY(-4px) rotate(45deg); }
}

.gxz-submit-btn__rocket svg {
    display: block;
    width: 18px;
    height: 18px;
}

.gxz-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.gxz-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(200, 0, 255, 0.5);
}

.gxz-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.gxz-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gxz-submit-btn__arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.gxz-submit-btn:hover:not(:disabled) .gxz-submit-btn__arrow svg {
    transform: translateX(3px);
}

/* Error message */
.gxz-create-error {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff8080;
    font-size: 0.88em;
    display: none;
    text-align: left;
    animation: gxz-fade-in 0.2s ease;
}

.gxz-create-error.visible {
    display: block;
}

/* Trust line */
.gxz-create-trust {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: 0.02em;
    animation: gxz-fade-up 0.7s 0.2s ease both;
}

/* ── Search dropdown (widget) ── */
.gxz-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.gxz-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: rgba(20,8,30,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    /* overflow-y handles scrolling; no overflow:hidden needed here */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
    z-index: 99999;
    max-height: 280px;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    width: 100%;
    box-sizing: border-box;
}

.gxz-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gxz-search-result:last-child { border-bottom: none; }

.gxz-search-result:hover,
.gxz-search-result:focus { background: rgba(255,45,120,0.12); outline: none; }

.gxz-search-result:active { background: rgba(255,45,120,0.2); }

.gxz-search-result__art {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 6px;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    background: rgba(255,255,255,0.08);
    display: block !important;
}

.gxz-search-result__info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.gxz-search-result__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gxz-search-result__meta {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.gxz-search-result__type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,45,120,0.8);
    flex-shrink: 0;
}

.gxz-search-no-results {
    padding: 18px 14px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* ── Search spinner ── */
.gxz-search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #ff2d78;
    border-radius: 50%;
    animation: gxz-widget-spin 0.7s linear infinite;
    flex-shrink: 0;
    margin-right: 4px;
}

@keyframes gxz-widget-spin { to { transform: rotate(360deg); } }

/* ── Selected track preview ── */
.gxz-selected-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 16px;
    padding: 12px 12px 10px;
    margin-bottom: 12px;
    animation: gxz-selected-in 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
    overflow: visible;
}

@keyframes gxz-selected-in {
    from { opacity: 0; transform: scale(0.94) translateY(-6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes gxz-selected-glow {
    /* Animate box-shadow on the <img> itself.
       Large spread + blur makes the glow bloom outward from behind the art
       rather than tracing the edge — a soft neon halo effect. */
    0%, 100% {
        box-shadow:
            0 0 30px 12px  rgba(200, 0, 255, 0.45),
            0 0 70px 30px  rgba(255,  0, 128, 0.25),
            0 0 110px 50px rgba(123, 47, 255, 0.15);
    }
    50% {
        box-shadow:
            0 0 50px 20px  rgba(200, 0, 255, 0.75),
            0 0 100px 50px rgba(255,  0, 128, 0.45),
            0 0 160px 80px rgba(123, 47, 255, 0.30);
    }
}

/* Art wrapper */
.gxz-selected-track__art-wrap {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    /* overflow visible so box-shadow on the img can bleed out */
    overflow: visible;
}

/* Neon glow lives as box-shadow on the img itself.
   A large blur radius makes it bloom outward from behind the art,
   not trace the edge — it looks like the album is glowing. */
.gxz-selected-track__art {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    animation: gxz-selected-glow 2.6s 0.3s ease-in-out infinite;
}

.gxz-selected-track__info {
    width: 100%;
    text-align: center;
    padding: 0 4px;
}

.gxz-selected-track__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gxz-selected-track__artist {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gxz-selected-track__clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 5px;
    width: 28px;
    height: 28px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    z-index: 10;
    align-items: center;
}

.gxz-selected-track__clear:hover { color: #ff2d78; background: rgba(0,0,0,0.65); }

/* ── Rocket loading state ── */
.gxz-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 4px;
    gap: 0;
}

.gxz-loading.active {
    display: flex;
    animation: gxz-fade-in 0.3s ease;
}

/* Rocket wrapper */
.gxz-rocket-wrap {
    position: relative;
    width: 120px;
    height: 160px;
    margin-bottom: 20px;
}

/* Rocket icon */
.gxz-rocket {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    animation: gxz-rocket-fly 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(200, 0, 255, 0.6));
}

@keyframes gxz-rocket-fly {
    0%   { transform: translateX(-50%) translateY(0)    rotate(-5deg); }
    25%  { transform: translateX(-50%) translateY(-12px) rotate(3deg); }
    50%  { transform: translateX(-50%) translateY(-22px) rotate(-3deg); }
    75%  { transform: translateX(-50%) translateY(-10px) rotate(5deg); }
    100% { transform: translateX(-50%) translateY(0)    rotate(-5deg); }
}

/* Exhaust trail */
.gxz-exhaust {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.gxz-exhaust span {
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(to bottom, rgba(255, 100, 50, 0.9), rgba(255, 200, 0, 0.3));
    animation: gxz-exhaust-pulse 0.6s ease-in-out infinite alternate;
}

.gxz-exhaust span:nth-child(1) { height: 18px; animation-delay: 0s; }
.gxz-exhaust span:nth-child(2) { height: 28px; animation-delay: 0.1s; }
.gxz-exhaust span:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.gxz-exhaust span:nth-child(4) { height: 30px; animation-delay: 0.05s; }
.gxz-exhaust span:nth-child(5) { height: 20px; animation-delay: 0.15s; }
.gxz-exhaust span:nth-child(6) { height: 14px; animation-delay: 0.25s; }

@keyframes gxz-exhaust-pulse {
    from { opacity: 0.9; transform: scaleY(1); }
    to   { opacity: 0.3; transform: scaleY(0.5); }
}

/* Star particles around rocket */
.gxz-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    animation: gxz-star-twinkle 1.5s ease-in-out infinite;
}

.gxz-stars span:nth-child(1) { top: 10px;  left: 8px;   animation-delay: 0s; }
.gxz-stars span:nth-child(2) { top: 30px;  right: 10px; animation-delay: 0.3s; }
.gxz-stars span:nth-child(3) { top: 55px;  left: 14px;  animation-delay: 0.6s; }
.gxz-stars span:nth-child(4) { top: 20px;  right: 22px; animation-delay: 0.9s; }
.gxz-stars span:nth-child(5) { top: 70px;  right: 8px;  animation-delay: 0.2s; }
.gxz-stars span:nth-child(6) { top: 80px;  left: 6px;   animation-delay: 0.5s; }
.gxz-stars span:nth-child(7) { top: 5px;   left: 50px;  animation-delay: 0.7s; }
.gxz-stars span:nth-child(8) { top: 45px;  right: 4px;  animation-delay: 1.1s; }

@keyframes gxz-star-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7); }
    50%       { opacity: 1;   transform: scale(1.3); }
}

/* Loading text */
.gxz-loading__headline {
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.gxz-loading__sub {
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 18px;
}

/* Platform scanning indicators */
.gxz-loading__platforms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.gxz-lp-item {
    font-size: 0.72em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.03em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gxz-lp-item.scanning {
    background: rgba(200, 0, 255, 0.18);
    border-color: rgba(200, 0, 255, 0.45);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(200, 0, 255, 0.25);
    animation: gxz-scan-pulse 0.8s ease-in-out infinite alternate;
}

.gxz-lp-item.done {
    background: rgba(0, 200, 100, 0.15);
    border-color: rgba(0, 200, 100, 0.4);
    color: rgba(0, 255, 130, 0.9);
    box-shadow: none;
    animation: none;
}

@keyframes gxz-scan-pulse {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

/* ── Shared keyframes ── */
@keyframes gxz-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gxz-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================
   RELEASE / PREVIEW PAGE — BASE STYLES
   ============================================= */

.galaxyz-release-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    transition: background 0.4s ease;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: background-color 0.4s ease;
}

/* ── Release card wrapper ── */
.galaxyz-release-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 12px);
    max-width: 520px;
    border-radius: 20px;
    padding: 0;
    background: rgba(10, 8, 20, 0.5);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    margin: 20px auto;
    overflow: hidden;
}

/* Theme-specific card tints */
.gxz-sl-theme-galaxy .galaxyz-release-card {
    background: rgba(10, 5, 25, 0.72);
    border-color: rgba(153,0,255,0.18);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(153,0,255,0.12), inset 0 1px 0 rgba(255,255,255,0.07);
}
.gxz-sl-theme-inferno .galaxyz-release-card {
    background: rgba(20, 5, 0, 0.75);
    border-color: rgba(255,80,0,0.22);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,80,0,0.15), inset 0 1px 0 rgba(255,120,0,0.08);
}
.gxz-sl-theme-cyberpunk .galaxyz-release-card {
    background: rgba(2, 0, 22, 0.78);
    border-color: rgba(0,255,200,0.2);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,255,200,0.12), inset 0 1px 0 rgba(0,255,200,0.06);
}

.galaxyz-release-container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 16px 20px;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

/* ── Theme toggle: removed in v2.7.1 (replaced by theme selector in editor) ── */
.gxz-theme-toggle { display: none !important; }

/* ── Light theme overrides ── */
body.gxz-light-theme .galaxyz-release-page {
    background-color: #f0f0f5;
}

body.gxz-light-theme .background-overlay {
    background-color: rgba(240, 240, 250, 0.78);
}

body.gxz-light-theme .galaxyz-release-container {
    color: #111;
}

body.gxz-light-theme .release-info h1 {
    color: #111;
}

body.gxz-light-theme .release-info h2 {
    color: rgba(0, 0, 0, 0.6);
}

body.gxz-light-theme .release-type-badge {
    background-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.65);
}

body.gxz-light-theme .platform-button {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

body.gxz-light-theme .actions {
    border-top-color: rgba(0, 0, 0, 0.12);
}

body.gxz-light-theme .galaxyz-social-section {
    border-top-color: rgba(0, 0, 0, 0.12);
}

body.gxz-light-theme .galaxyz-social-section h3 {
    color: #111;
}

body.gxz-light-theme .section-hint {
    color: rgba(0, 0, 0, 0.45);
}

body.gxz-light-theme .social-link-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111;
}

body.gxz-light-theme .social-link-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

body.gxz-light-theme .social-link-input:focus {
    border-color: rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.07);
}

body.gxz-light-theme .social-input-row .social-icon,
body.gxz-light-theme .social-input-row .social-label {
    color: rgba(0, 0, 0, 0.55);
}

body.gxz-light-theme .artist-socials {
    border-top-color: rgba(0, 0, 0, 0.12);
}

body.gxz-light-theme .socials-label {
    color: rgba(0, 0, 0, 0.45);
}

body.gxz-light-theme .social-button {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.gxz-light-theme .social-button:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}

body.gxz-light-theme .admin-info {
    color: rgba(0, 0, 0, 0.3);
}

body.gxz-light-theme .gxz-theme-toggle {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.7);
}

body.gxz-light-theme .gxz-theme-toggle .icon-moon { display: none; }
body.gxz-light-theme .gxz-theme-toggle .icon-sun  { display: block; }

/* ── Galaxy theme (published smartlink page) ── */
.gxz-sl-theme-galaxy.galaxyz-release-page {
    background-color: #0a0514;
    background-image: url('../img/theme-galaxy.jpg') !important;
    background-size: cover !important;
    background-position: center top !important;
}
.gxz-sl-theme-galaxy .background-overlay {
    background: linear-gradient(180deg, rgba(10,5,20,0.70) 0%, rgba(30,10,60,0.45) 50%, rgba(10,5,20,0.80) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}
.gxz-sl-theme-galaxy .release-artwork {
    box-shadow: 0 8px 40px rgba(153,0,255,0.45);
}

/* ── Inferno theme (published smartlink page) ── */
.gxz-sl-theme-inferno.galaxyz-release-page {
    background-color: #0e0300;
    background-image: url('../img/theme-inferno.jpg') !important;
    background-size: cover !important;
    background-position: center top !important;
}
.gxz-sl-theme-inferno .background-overlay {
    background: linear-gradient(180deg, rgba(14,3,0,0.75) 0%, rgba(60,15,0,0.45) 55%, rgba(14,3,0,0.85) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}
.gxz-sl-theme-inferno .platform-button {
    border-color: rgba(255,80,0,0.25);
    background: rgba(255,60,0,0.08);
}
.gxz-sl-theme-inferno .platform-button:hover {
    background: rgba(255,80,0,0.18);
}
.gxz-sl-theme-inferno .release-artwork {
    box-shadow: 0 8px 40px rgba(255,60,0,0.45);
}

/* ── Cyberpunk theme (published smartlink page) ── */
.gxz-sl-theme-cyberpunk.galaxyz-release-page {
    background-color: #02001a;
    background-image: url('../img/theme-cyberpunk.jpg') !important;
    background-size: cover !important;
    background-position: center top !important;
}
.gxz-sl-theme-cyberpunk .background-overlay {
    background: linear-gradient(180deg, rgba(2,0,26,0.75) 0%, rgba(0,20,30,0.45) 55%, rgba(2,0,26,0.85) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}
.gxz-sl-theme-cyberpunk .platform-button {
    border-color: rgba(0,255,200,0.2);
    background: rgba(0,255,200,0.06);
}
.gxz-sl-theme-cyberpunk .platform-button:hover {
    background: rgba(0,255,200,0.14);
    border-color: rgba(0,255,200,0.35);
}
.gxz-sl-theme-cyberpunk .release-artwork {
    box-shadow: 0 8px 40px rgba(0,255,200,0.3);
}

/* Artwork */
.artwork-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.release-artwork {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.2s ease;
    pointer-events: none;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 0 2px rgba(255,45,120,0.55), 0 4px 24px rgba(255,45,120,0.35);
}

/* SVG play triangle */
.play-icon .gxz-play-svg { display: block; }
.play-icon .gxz-pause-svg { display: none; }
.play-icon .gxz-loading-ring { display: none; }

.artwork-wrapper.playable { cursor: pointer; }

/* Always show on mobile (no hover), hover on desktop */
.artwork-wrapper.playable .play-icon { opacity: 1; }
@media (hover: hover) {
    .artwork-wrapper.playable .play-icon { opacity: 0; }
    .artwork-wrapper.playable:hover .play-icon { opacity: 1; }
}

.artwork-wrapper.playing .play-icon {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255,45,120,0.8), 0 4px 28px rgba(255,45,120,0.5);
}
.artwork-wrapper.playing .play-icon .gxz-play-svg { display: none; }
.artwork-wrapper.playing .play-icon .gxz-pause-svg { display: block; }

.artwork-wrapper.loading .play-icon {
    opacity: 1;
}
.artwork-wrapper.loading .play-icon .gxz-play-svg { display: none; }
.artwork-wrapper.loading .play-icon .gxz-loading-ring { display: block; }

/* Loading spinner ring */
@keyframes gxz-spin {
    to { transform: rotate(360deg); }
}
.gxz-loading-ring {
    animation: gxz-spin 0.8s linear infinite;
    transform-origin: center;
}

/* Release Info */
.release-info h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
}

.release-info h2 {
    font-size: 1.2em;
    font-weight: 400;
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.7);
}

.release-type-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Platform Buttons */
.platform-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 14px;
}

.platform-button {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0 14px;
    height: 58px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.01em;
    transition:
        opacity 0.18s ease,
        transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.25);
}

/* Shimmer sweep on hover */
.platform-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.12) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 200% 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, background-position 0.5s ease;
}
.platform-button:hover::after {
    opacity: 1;
    background-position: -50% 0;
}

.platform-button:hover {
    opacity: 0.92;
    transform: translateY(-2px) scale(1.01);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 24px rgba(0,0,0,0.35);
    color: #fff;
    text-decoration: none;
}
.platform-button:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
}

.platform-button.spotify     { background-color: #1DB954; }
.platform-button.apple_music { background-color: #FA586A; }
.platform-button.youtube     { background-color: #FF0000; }
.platform-button.tidal       { background-color: #111; border: 1px solid rgba(255,255,255,0.22); }
.platform-button.soundcloud  { background-color: #FF5500; }
.platform-button.deezer      { background-color: #a238ff; }
.platform-button.amazon_music { background-color: #FF9900; color: #111; }

/* Icon slot — left column */
.platform-button .platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,0,0,0.18);
    flex-shrink: 0;
    font-size: 1.15em;
    line-height: 1;
}
.platform-button .platform-icon i {
    display: block;
    font-size: 1.1em;
    line-height: 1;
}
.platform-button .platform-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Label — centre column */
.platform-button .platform-label {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Publish Button */
.actions {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

.publish-button {
    width: 100%;
    padding: 16px;
    font-size: 1.05em;
    border: none;
    background: linear-gradient(90deg, #ff00c7, #e000ff);
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: opacity 0.15s ease;
}

.publish-button:hover { opacity: 0.88; }

.publish-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Admin debug info */
.admin-info {
    margin-top: 20px;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   SOCIAL LINKS SECTION (preview + published)
   ============================================= */

.galaxyz-social-section {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    text-align: left;
}

.galaxyz-social-section h3 {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    text-align: center;
}

.section-hint {
    font-size: 0.75em;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.social-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-input-row .social-icon {
    width: 22px;
    text-align: center;
    font-size: 1.1em;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

.social-input-row .social-label {
    width: 110px;
    font-size: 0.82em;
    color: rgba(255,255,255,0.65);
    flex-shrink: 0;
}

.social-link-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.82em;
    color: #fff;
    outline: none;
    transition: border-color 0.15s ease;
}

.social-link-input:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.12);
}

.social-link-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.social-save-indicator {
    font-size: 0.75em;
    color: #4caf50;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Published page: icon row */
.artist-socials {
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
}

.socials-label {
    font-size: 0.78em;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.socials-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1em;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.social-button:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.social-button.instagram:hover    { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-button.tiktok:hover        { background: #010101; }
.social-button.twitter:hover       { background: #000; }
.social-button.facebook:hover      { background: #1877F2; }
.social-button.youtube_channel:hover { background: #FF0000; }

/* ── UM Profile Releases Section ──────────────────────────────────────── */
.gxz-profile-releases {
    margin: 32px 0 16px;
    padding: 0;
}

.gxz-profile-releases__heading {
    font-size: 1.15em;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gxz-profile-releases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.gxz-release-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gxz-release-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.gxz-release-card__artwork-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gxz-release-card__artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gxz-release-card:hover .gxz-release-card__artwork {
    transform: scale(1.04);
}

.gxz-release-card__meta {
    padding: 10px 10px 4px;
}

.gxz-release-card__title {
    display: block;
    font-size: 0.88em;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gxz-release-card__title:hover { color: #c800ff; }

.gxz-release-card__artist {
    display: block;
    font-size: 0.75em;
    color: rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.gxz-release-card__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px 10px;
}

.gxz-release-card__platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: #333;
    font-size: 0.75em;
    text-decoration: none;
    transition: background 0.2s;
}

.gxz-release-card__platform-badge:hover {
    background: rgba(0,0,0,0.14);
}

.gxz-platform--spotify      { color: #1DB954; }
.gxz-platform--apple_music  { color: #fc3c44; }
.gxz-platform--youtube      { color: #FF0000; }
.gxz-platform--soundcloud   { color: #FF5500; }

/* Remove Salient's default input underline inside our card */
.gxz-create-card input,
.gxz-create-card .gxz-url-input {
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ── Transparent header override for Salient ─────────────────────────────── */
body.nectar-header-transparent #header-outer,
body.transparent-header #header-outer {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
body.nectar-header-transparent #header-outer.scrolled,
body.transparent-header #header-outer.scrolled {
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* ═══════════════════════════════════════════════════════════════
   POST-PUBLISH SIGNUP POPUP  (#gxz-new-release-overlay)
   Shown only when ?new=1 and user is not logged in.
   ═══════════════════════════════════════════════════════════════ */

#gxz-new-release-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;          /* slide up from bottom like a sheet */
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0 0 env(safe-area-inset-bottom, 0);
    animation: gxz-nrp-fade-in 0.25s ease both;
}

@keyframes gxz-nrp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#gxz-new-release-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    padding: 36px 28px 40px;
    text-align: center;
    animation: gxz-nrp-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gxz-nrp-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Drag handle pill */
#gxz-new-release-popup::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    margin: 0 auto 28px;
}

#gxz-new-release-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    transition: background 0.2s, color 0.2s;
}
#gxz-new-release-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.gxz-nrp-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 45, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.gxz-nrp-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.gxz-nrp-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 24px;
    line-height: 1.55;
}

.gxz-nrp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 10px;
}
.gxz-nrp-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.gxz-nrp-btn:active { transform: translateY(0); }

.gxz-nrp-btn--primary {
    background: linear-gradient(135deg, #ff2d78, #a855f7);
    color: #fff;
}

.gxz-nrp-btn--secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.gxz-nrp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 10px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}
.gxz-nrp-divider::before,
.gxz-nrp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gxz-nrp-btn--discover {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
}
.gxz-nrp-btn--discover:hover { color: rgba(255, 255, 255, 0.7); }

/* Dismiss animation */
#gxz-new-release-overlay.is-dismissing {
    animation: gxz-nrp-fade-out 0.25s ease forwards;
}
#gxz-new-release-overlay.is-dismissing #gxz-new-release-popup {
    animation: gxz-nrp-slide-down 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes gxz-nrp-fade-out  { to { opacity: 0; } }
@keyframes gxz-nrp-slide-down { to { transform: translateY(100%); } }

/* ═══════════════════════════════════════════════════════════════
   [galaxyz_create] SHORTCODE WIDGET
   Overrides that make the card work when embedded on any page
   (no full-page wrapper, no video background).
   ═══════════════════════════════════════════════════════════════ */

.gxz-widget-wrap {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* When the card is inside the shortcode widget it should not have
   the full-page positioning it gets inside .gxz-create-page */
.gxz-create-card--widget {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Keep the glassmorphism look */
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 28px 24px 24px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4) !important;
}

.gxz-widget-trust {
    text-align: center;
    margin-top: 16px !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    position: relative;
    z-index: 0;
}



/* ── Mobile: shrink selected-track card so art + title + button all fit ──
 * On phones (≤480px) the album art at 260px is too tall — reduce to 180px
 * so the Create Galaxy button clears the bottom of the viewport.
 */
@media (max-width: 480px) {
    .gxz-selected-track__art {
        max-width: 180px !important;
    }
    .gxz-selected-track__art-wrap {
        margin-bottom: 6px !important;
    }
    .gxz-selected-track__title {
        font-size: 15px !important;
    }
    .gxz-selected-track__artist {
        font-size: 11px !important;
    }
}
