/* ============================================================
   Galaxyz Flow Player Builder — v3.7.0
   Styles for /flow-player-builder/ and /flow/{slug}/
   Extends galaxyz-flow-beta.css
   ============================================================ */

/* ── Root ── */
.gxz-fpb-root {
    position: fixed;
    inset: 0;
    background: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Player wrap (the live preview) ── */
.gxz-fpb-player-wrap {
    position: absolute;
    inset: 0;
    transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}
.gxz-fpb-player-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
}
.gxz-fpb-player-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* ── Builder overlay (shown before first preview) ── */
.gxz-fpb-overlay {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.gxz-fpb-overlay.is-dismissed {
    opacity: 0;
    pointer-events: none;
}
.gxz-fpb-overlay-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.gxz-fpb-overlay-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 32px;
    pointer-events: none;
}
.gxz-fpb-overlay-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 24px rgba(236,72,153,0.6));
    animation: gxz-float 3s ease-in-out infinite;
}
@keyframes gxz-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.gxz-fpb-overlay-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.gxz-fpb-overlay-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
}

/* ── Unified bottom-sheet ── */
.gxz-fpb-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 6, 18, 0.98);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 800;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (max-width: 767px) {
    .gxz-fpb-sheet {
        top: calc(50px + env(safe-area-inset-top, 0px));
        height: calc(100dvh - 50px - env(safe-area-inset-top, 0px));
        max-height: none;
        border-radius: 22px 22px 0 0;
    }
    .gxz-fpb-sheet-header {
        padding-top: 18px;
    }
}
.gxz-fpb-sheet.is-collapsed {
    transform: translateY(calc(100% - 60px));
}
.gxz-fpb-sheet.is-hidden {
    transform: translateY(100%);
}
.gxz-fpb-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 10px;
    flex-shrink: 0;
}
.gxz-fpb-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.gxz-fpb-sheet-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 0 0 8px;
    scrollbar-width: none;
}
.gxz-fpb-sheet-body::-webkit-scrollbar { display: none; }

/* ── Sheet sections ── */
.gxz-fpb-section {
    padding: 16px 20px 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.gxz-fpb-section:first-child { border-top: none; }
.gxz-fpb-section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Lock badge ── */
.gxz-fpb-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ── Player name input ── */
.gxz-fpb-name-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    margin-bottom: 8px;
}
.gxz-fpb-name-input::placeholder { color: rgba(255,255,255,0.3); }
.gxz-fpb-name-input:focus { border-color: rgba(236,72,153,0.6); }

/* ── Effects grid ── */
.gxz-fpb-effect-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 12px;
}
.gxz-fpb-effect-grid::-webkit-scrollbar { display: none; }
.gxz-fpb-effect-card {
    position: relative;
    flex: 0 0 108px;
    height: 142px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid rgba(255,255,255,0.09);
    transition: border-color 0.25s, transform 0.15s, background 0.25s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
    background:
        radial-gradient(circle at 50% 25%, rgba(255,255,255,0.08), transparent 34%),
        rgba(255,255,255,0.045);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.62);
}
.gxz-fpb-effect-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 22%, rgba(236,72,153,0.18), transparent 42%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.gxz-fpb-effect-card.is-active {
    border-color: #ec4899;
    background:
        radial-gradient(circle at 50% 25%, rgba(236,72,153,0.2), transparent 36%),
        rgba(236,72,153,0.07);
    box-shadow: 0 0 0 1px rgba(236,72,153,0.12), 0 12px 34px rgba(236,72,153,0.12);
    color: #fff;
}
.gxz-fpb-effect-card.is-active::before { opacity: 1; }
.gxz-fpb-effect-card:active { transform: scale(0.94); }
.gxz-fpb-effect-card.is-locked { opacity: 0.6; }
.gxz-fpb-effect-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: currentColor;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    line-height: 1;
}
.gxz-fpb-effect-card.is-active .gxz-fpb-effect-icon {
    background: rgba(236,72,153,0.18);
    filter: drop-shadow(0 0 12px rgba(236,72,153,0.35));
}
.gxz-fpb-effect-icon svg {
    display: block;
}
.gxz-fpb-effect-label {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    text-align: center;
    padding: 0 6px;
}
.gxz-fpb-effect-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}
.gxz-fpb-effect-card.is-active .gxz-fpb-effect-check { opacity: 1; }

/* Builder theme cards use animated canvases. Keep the card UI explicitly above
   the canvas so the first/active Galactic card never loses its label or check. */
#gxz-fpb-root .gxz-flow-theme-canvas {
    z-index: 0;
}
#gxz-fpb-root .gxz-flow-theme-label {
    z-index: 2;
    display: block !important;
    opacity: 1 !important;
    min-height: 38px;
}
#gxz-fpb-root .gxz-flow-theme-check {
    z-index: 3;
}
#gxz-fpb-root .gxz-flow-theme-card.is-active .gxz-flow-theme-check {
    opacity: 1 !important;
}

/* ── Track picker ── */
.gxz-fpb-track-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}
.gxz-fpb-track-search {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    -webkit-appearance: none;
}
.gxz-fpb-track-search::placeholder { color: rgba(255,255,255,0.3); }
.gxz-fpb-track-count {
    font-size: 11px;
    font-weight: 600;
    color: #ec4899;
    margin-left: auto;
    text-transform: none;
    letter-spacing: 0;
}

/* Selected tracks (reorderable list) */
.gxz-fpb-selected-tracks {
    margin-bottom: 12px;
}
.gxz-fpb-selected-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(236,72,153,0.08);
    border: 1px solid rgba(236,72,153,0.2);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}
.gxz-fpb-selected-track.is-dragging {
    opacity: 0.92;
    cursor: grabbing;
    box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
.gxz-fpb-selected-track-placeholder {
    margin-bottom: 6px;
    border: 1px dashed rgba(236,72,153,0.45);
    border-radius: 10px;
    background: rgba(236,72,153,0.08);
}
.gxz-fpb-selected-track-art {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}
.gxz-fpb-selected-track-info {
    flex: 1;
    min-width: 0;
}
.gxz-fpb-selected-track-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gxz-fpb-selected-track-artist {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gxz-fpb-selected-track-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-drag-handle {
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    cursor: grab;
    touch-action: none;
    padding: 8px 4px;
    margin: -8px 0;
}

/* Catalog browser */
.gxz-fpb-catalog-list {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 8px;
}
.gxz-fpb-catalog-list::-webkit-scrollbar { display: none; }
.gxz-fpb-catalog-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.gxz-fpb-catalog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-catalog-item:last-child { border-bottom: none; }
.gxz-fpb-catalog-item:active { background: rgba(255,255,255,0.05); }
.gxz-fpb-catalog-item.is-selected { background: rgba(236,72,153,0.06); }
.gxz-fpb-catalog-art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}
.gxz-fpb-catalog-info { flex: 1; min-width: 0; }
.gxz-fpb-catalog-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gxz-fpb-catalog-artist {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gxz-fpb-catalog-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: none;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-catalog-item.is-selected .gxz-fpb-catalog-add {
    background: #ec4899;
    border-color: #ec4899;
    color: #fff;
}
.gxz-fpb-empty-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 12px 0 4px;
    margin: 0;
}

/* ── Watermark toggle row ── */
.gxz-fpb-wm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}
.gxz-fpb-wm-info { flex: 1; }
.gxz-fpb-wm-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.gxz-fpb-wm-preview img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.gxz-fpb-wm-preview span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.gxz-fpb-wm-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin: 0;
    line-height: 1.4;
}

/* iOS-style toggle */
.gxz-fpb-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-toggle input { display: none; }
.gxz-fpb-toggle-track {
    width: 50px;
    height: 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    position: relative;
    transition: background 0.25s;
}
.gxz-fpb-toggle input:checked + .gxz-fpb-toggle-track {
    background: #ec4899;
}
.gxz-fpb-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gxz-fpb-toggle input:checked + .gxz-fpb-toggle-track .gxz-fpb-toggle-thumb {
    transform: translateX(20px);
}
.gxz-fpb-toggle-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-align: center;
    white-space: nowrap;
}

/* ── Sheet footer ── */
.gxz-fpb-sheet-footer {
    display: flex;
    gap: 10px;
    padding: 12px 20px 32px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.gxz-fpb-btn-preview,
.gxz-fpb-btn-publish {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s, opacity 0.15s;
}
.gxz-fpb-btn-preview:active,
.gxz-fpb-btn-publish:active { transform: scale(0.96); }
.gxz-fpb-btn-preview {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.gxz-fpb-btn-publish {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: #fff;
}
.gxz-fpb-btn-publish:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Watermark — above the card stage ── */
.gxz-fpb-watermark {
    display: none !important;
    position: absolute;
    top: 114px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}
.gxz-fpb-watermark-link {
    pointer-events: auto;
    text-decoration: none;
}
.gxz-fpb-watermark img {
    width: 18px;
    height: 18px;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}
.gxz-fpb-watermark span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

/* ── Player title in topbar ── */
.gxz-fpb-player-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* ── Share modal ── */
.gxz-fpb-share-modal {
    position: absolute;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.gxz-fpb-share-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.gxz-fpb-share-inner {
    background: rgba(12, 8, 22, 0.98);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 32px 24px 48px;
    width: 100%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.gxz-fpb-share-modal.is-open .gxz-fpb-share-inner { transform: translateY(0); }
.gxz-fpb-share-rocket img {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 20px rgba(236,72,153,0.5));
    margin-bottom: 16px;
}
.gxz-fpb-share-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
}

/* Cover image upload */
.gxz-fpb-cover-upload-wrap {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.gxz-fpb-cover-preview {
    width: 100%;
    aspect-ratio: 1200 / 630;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1.5px dashed rgba(255,255,255,0.18);
    position: relative;
}
.gxz-fpb-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gxz-fpb-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
    font-weight: 500;
}
.gxz-fpb-cover-placeholder.is-hidden { display: none; }
.gxz-fpb-cover-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(236,72,153,0.15);
    border: 1px solid rgba(236,72,153,0.35);
    color: #ec4899;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.gxz-fpb-cover-upload-btn:active { background: rgba(236,72,153,0.25); }
.gxz-fpb-cover-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* ── Cover image in main builder sheet ── */
.gxz-fpb-cover-sheet-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}
.gxz-fpb-cover-sheet-preview {
    width: 80px;
    height: 45px; /* 16:9 */
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1.5px dashed rgba(255,255,255,0.18);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gxz-fpb-cover-sheet-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gxz-fpb-cover-sheet-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255,255,255,0.3);
    font-size: 10px;
    text-align: center;
    padding: 4px;
}
.gxz-fpb-cover-sheet-actions {
    flex: 1;
    min-width: 0;
}
.gxz-fpb-cover-sheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(236,72,153,0.15);
    border: 1px solid rgba(236,72,153,0.35);
    color: #ec4899;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
    margin-bottom: 6px;
}
.gxz-fpb-cover-sheet-btn:active { background: rgba(236,72,153,0.25); }
.gxz-fpb-cover-sheet-hint {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin: 0;
    line-height: 1.4;
}
.gxz-fpb-cover-sheet-status {
    font-size: 11px;
    color: #a3e635;
    margin: 4px 0 0;
    min-height: 14px;
}
.gxz-fpb-share-url-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.gxz-fpb-share-url {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ec4899;
    font-size: 14px;
    font-weight: 600;
    -webkit-appearance: none;
}
.gxz-fpb-share-copy {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-share-actions {
    display: flex;
    gap: 10px;
}
.gxz-fpb-share-native,
.gxz-fpb-share-close-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-share-native {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
}
.gxz-fpb-share-close-btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}
.gxz-fpb-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.gxz-fpb-share-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Paywall modal ── */
.gxz-fpb-paywall-modal {
    position: absolute;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.gxz-fpb-paywall-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.gxz-fpb-paywall-inner {
    background: rgba(12, 8, 22, 0.98);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 32px 24px 48px;
    width: 100%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.gxz-fpb-paywall-modal.is-open .gxz-fpb-paywall-inner { transform: translateY(0); }
.gxz-fpb-paywall-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(236,72,153,0.2));
    border: 1px solid rgba(236,72,153,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ec4899;
}
.gxz-fpb-paywall-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.gxz-fpb-paywall-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 20px;
    line-height: 1.5;
}
.gxz-fpb-paywall-price {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gxz-fpb-paywall-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-bottom: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s;
}
.gxz-fpb-paywall-btn:active { transform: scale(0.97); }
.gxz-fpb-paywall-cancel {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-paywall-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.gxz-fpb-paywall-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Published player root ── */
.gxz-fpb-published-root {
    position: fixed;
    inset: 0;
}

/* ============================================================
   TRANSITION STRENGTH GRID — v3.7.9
============================================================ */
.gxz-fpb-section-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.gxz-fpb-transition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 4px;
    padding-bottom: 12px;
}
.gxz-fpb-trans-card {
    position: relative;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.08);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-trans-card:active { transform: scale(0.96); }
.gxz-fpb-trans-card.is-active {
    border-color: #ec4899;
    background: rgba(236,72,153,0.12);
}
.gxz-fpb-trans-card.is-premium-feature:not(.is-active) {
    border-color: rgba(168,85,247,0.25);
}
.gxz-fpb-trans-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px 10px;
    gap: 4px;
    text-align: center;
}
.gxz-fpb-trans-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gxz-fpb-trans-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    line-height: 1.3;
}
.gxz-fpb-trans-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #a855f7;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.gxz-fpb-trans-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.2s;
}
.gxz-fpb-trans-card.is-active .gxz-fpb-trans-check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   GALAXYZ GLASS CARD — v3.7.9 final fix
   - artwork uses background-color + bg-* properties separately
     so inline background-image is NOT overridden
   - card uses display:flex + flex-direction:column
   - stage centers the card properly
============================================================ */

/* Stage: fills space between watermark and trackbar+action bar, centers card */
/* top = 50px (Galaxyz header) + 60px (flow topbar) + 28px (watermark) + 10px gap = 148px */
/* bottom leaves room for trackbar, track list, and action controls */
#gxz-fpb-root .gxz-flow-stage {
    position: absolute !important;
    top: 148px !important;
    bottom: 264px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    touch-action: pan-y !important;
}

#gxz-fpb-root .gxz-fpb-preview-tracklist {
    position: absolute;
    left: 50%;
    bottom: 206px;
    transform: translateX(-50%);
    width: min(88vw, 380px);
    max-height: 132px;
    display: none;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 25;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#gxz-fpb-root .gxz-fpb-preview-tracklist::-webkit-scrollbar {
    display: none;
}
#gxz-fpb-root[data-player-style="standard"] .gxz-fpb-preview-tracklist {
    width: min(300px, calc(100vw - 48px));
}
#gxz-fpb-root[data-show-tracklist="false"] .gxz-fpb-preview-tracklist {
    display: none !important;
}

/* Loading state */
#gxz-fpb-root .gxz-flow-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    letter-spacing: 0.04em;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Card wrapper */
.gxz-fpb-preview-card {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: min(300px, calc(100vw - 48px)) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    transform: translate(-50%, -50%);
    transform-origin: center bottom !important;
    will-change: transform, opacity !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
.gxz-fpb-preview-card.is-entering {
    opacity: 0 !important;
    transform: translate(-50%, calc(-50% + 28px)) scale(0.95);
}
.gxz-fpb-preview-card.is-visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto !important;
}
.gxz-fpb-preview-card.is-exiting {
    opacity: 0 !important;
    transform: translate(-50%, calc(-50% - 20px)) scale(1.03);
    transition: opacity 0.32s ease, transform 0.32s ease;
}
.gxz-fpb-preview-card.is-swiping {
    z-index: 5 !important;
    pointer-events: none !important;
}
.gxz-fpb-preview-card.is-dragging {
    transition: none;
}
.gxz-fpb-preview-card--card {
    width: min(88vw, 380px) !important;
    height: min(72vh, 520px) !important;
    padding: 0 !important;
    display: block !important;
    border-radius: var(--flow-radius, 20px) !important;
}
.gxz-fpb-card-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    transition: opacity 0.38s ease, transform 0.38s ease;
}
.gxz-fpb-card-face--front {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
.gxz-fpb-card-face--back {
    opacity: 0;
    transform: scale(0.92);
    z-index: 1;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 26px;
    text-align: center;
    background: rgba(8,8,12,0.96);
}
.gxz-fpb-preview-card--card.is-flipped .gxz-fpb-card-face--front {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}
.gxz-fpb-preview-card--card.is-flipped .gxz-fpb-card-face--back {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    z-index: 3;
}
.gxz-fpb-preview-card--card .gxz-fpb-card-art {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
}
.gxz-fpb-card-back-title {
    font-size: 22px;
    font-weight: 850;
    color: #fff;
}
.gxz-fpb-card-back-artist {
    font-size: 14px;
    color: rgba(255,255,255,0.58);
}
.gxz-fpb-card-back-hint {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.28);
    text-transform: lowercase;
}
@keyframes gxz-fpb-swipe-right {
    from { transform: var(--gxz-fpb-swipe-start, translate(-50%, -50%) scale(1)); opacity: 1; }
    to { transform: translate(calc(-50% + 140vw), -42%) rotate(25deg); opacity: 0; }
}
@keyframes gxz-fpb-swipe-left {
    from { transform: var(--gxz-fpb-swipe-start, translate(-50%, -50%) scale(1)); opacity: 1; }
    to { transform: translate(calc(-50% - 140vw), -42%) rotate(-25deg); opacity: 0; }
}
.gxz-fpb-preview-card.swipe-right {
    animation: gxz-fpb-swipe-right 0.42s cubic-bezier(0.55,0,1,0.45) forwards !important;
}
.gxz-fpb-preview-card.swipe-left {
    animation: gxz-fpb-swipe-left 0.42s cubic-bezier(0.55,0,1,0.45) forwards !important;
}

#gxz-fpb-root .gxz-fpb-preview-seekbar {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(86vw, 560px);
    min-height: 42px;
    bottom: 108px;
    padding: 0 14px;
    z-index: 24;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    display: grid;
    grid-template-columns: auto minmax(70px, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.44);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
#gxz-fpb-root .gxz-flow-seekbar-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
}
#gxz-fpb-root .gxz-flow-seekbar-brand img {
    width: 17px;
    height: 17px;
    opacity: 0.28;
    filter: brightness(0) invert(1);
}
#gxz-fpb-root .gxz-flow-seekbar-track {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 0;
}
#gxz-fpb-root .gxz-flow-seekbar:not(.has-brand) .gxz-flow-seekbar-track {
    grid-column: 1 / 3;
}
#gxz-fpb-root .gxz-flow-seekbar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--gxz-accent, #a855f7);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(168,85,247,0.5);
    transition: width 0.25s linear;
    pointer-events: none;
}
#gxz-fpb-root .gxz-flow-seekbar-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gxz-accent, #a855f7);
    box-shadow: 0 0 10px rgba(168,85,247,0.6);
    transition: transform 0.15s ease, left 0.25s linear;
    pointer-events: none;
}
#gxz-fpb-root .gxz-fpb-preview-seekbar:hover .gxz-flow-seekbar-thumb,
#gxz-fpb-root .gxz-fpb-preview-seekbar.is-seeking .gxz-flow-seekbar-thumb {
    transform: translate(-50%, -50%) scale(1);
}
#gxz-fpb-root .gxz-flow-seekbar-times {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    white-space: nowrap;
    pointer-events: none;
}

/* Artwork — CRITICAL: use background-color separately so inline background-image wins */
.gxz-fpb-card-art {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background-color: rgba(255,255,255,0.06) !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    flex-shrink: 0 !important;
    height: auto !important;
}

/* Gradient scrim over bottom of artwork */
.gxz-fpb-card-art::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Placeholder icon inside art */
.gxz-fpb-card-art-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info strip — glass bar below artwork */
.gxz-fpb-card-info {
    padding: 14px 18px 16px !important;
    background: rgba(255,255,255,0.03) !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Accent dot */
.gxz-fpb-card-info::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gxz-accent, #a855f7);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--gxz-accent, #a855f7);
}

.gxz-fpb-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 2px !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 220px !important;
    display: block !important;
}

.gxz-fpb-card-artist {
    font-size: 12px !important;
    color: rgba(255,255,255,0.45) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 220px !important;
    display: block !important;
}

/* Theme accent CSS variables — builder preview */
.gxz-fpb-root[data-theme="cosmos"]   { --gxz-accent: #a855f7; }
.gxz-fpb-root[data-theme="inferno"]  { --gxz-accent: #f97316; }
.gxz-fpb-root[data-theme="arctic"]   { --gxz-accent: #38bdf8; }
.gxz-fpb-root[data-theme="neon"]     { --gxz-accent: #4ade80; }
.gxz-fpb-root[data-theme="rose"]     { --gxz-accent: #f43f5e; }
.gxz-fpb-root[data-theme="midnight"] { --gxz-accent: #60a5fa; }
.gxz-fpb-root[data-theme="gold"]     { --gxz-accent: #fbbf24; }
.gxz-fpb-root[data-theme="void"]     { --gxz-accent: #e2e8f0; }

/* Theme accent CSS variables — published player */
.gxz-fpb-published-root[data-theme="cosmos"]   { --gxz-accent: #a855f7; }
.gxz-fpb-published-root[data-theme="inferno"]  { --gxz-accent: #f97316; }
.gxz-fpb-published-root[data-theme="arctic"]   { --gxz-accent: #38bdf8; }
.gxz-fpb-published-root[data-theme="neon"]     { --gxz-accent: #4ade80; }
.gxz-fpb-published-root[data-theme="rose"]     { --gxz-accent: #f43f5e; }
.gxz-fpb-published-root[data-theme="midnight"] { --gxz-accent: #60a5fa; }
.gxz-fpb-published-root[data-theme="gold"]     { --gxz-accent: #fbbf24; }
.gxz-fpb-published-root[data-theme="void"]     { --gxz-accent: #e2e8f0; }

/* ── Player Style section ── */
.gxz-fpb-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}
.gxz-fpb-style-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: rgba(255,255,255,0.55);
}
.gxz-fpb-style-btn.is-active {
    border-color: var(--gxz-accent, #a855f7);
    background: rgba(168,85,247,0.12);
    color: #fff;
}
.gxz-fpb-style-icon {
    line-height: 0;
}
.gxz-fpb-style-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.gxz-fpb-style-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gxz-accent, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
}
.gxz-fpb-style-btn.is-active .gxz-fpb-style-check {
    opacity: 1;
}

/* Public builder catalog search */
.gxz-fpb-public-catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin: 0 0 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(236,72,153,0.10));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.gxz-fpb-public-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gxz-fpb-public-copy strong {
    font-size: 13px;
    color: #fff;
}
.gxz-fpb-public-copy span {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255,255,255,0.55);
}
.gxz-fpb-artist-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gxz-fpb-artist-result {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(0,0,0,0.24);
    color: #fff;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.gxz-fpb-artist-result img,
.gxz-fpb-artist-result-art {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
}
.gxz-fpb-artist-result span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.gxz-fpb-artist-result strong {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gxz-fpb-artist-result em {
    margin-top: 2px;
    font-size: 11px;
    font-style: normal;
    color: rgba(255,255,255,0.46);
}
.gxz-fpb-artist-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.1);
}
.gxz-fpb-artist-selected span {
    min-width: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gxz-fpb-artist-selected small {
    flex: 0 0 auto;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════════════════════════════════
   STANDARD style — scoped to data-player-style="standard"
   Applies in both builder preview (#gxz-fpb-root) and published player
   (#gxz-flow-root.gxz-fpb-published-root)
   ══════════════════════════════════════════════════════════════════ */

/* Hide share button in Standard mode */
[data-player-style="standard"] .gxz-flow-share-btn,
#gxz-flow-root.gxz-fpb-published-root[data-player-style="standard"] .gxz-flow-share-btn {
    display: none !important;
}

/* Hide the galaxyz.me watermark pill in Standard mode (replaced by progress bar) */
[data-player-style="standard"] .gxz-flow-watermark,
#gxz-flow-root.gxz-fpb-published-root[data-player-style="standard"] .gxz-flow-watermark {
    display: none !important;
}

/* Floating themed progress/tracking bar above artwork in Standard mode */
[data-player-style="standard"] .gxz-flow-simple-trackbar,
#gxz-flow-root.gxz-fpb-published-root[data-player-style="standard"] .gxz-flow-simple-trackbar {
    display: flex !important;
}

/* Standard trackbar — visible in builder preview, positioned below the stage, above action bar */
/* Trackbar sits above the preview track list and action controls. */
#gxz-fpb-root[data-player-style="standard"] .gxz-fpb-simple-trackbar {
    display: flex !important;
    position: absolute !important;
    bottom: 210px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
    height: 36px !important;
    background: rgba(0,0,0,0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 100px !important;
    align-items: center !important;
    padding: 0 14px !important;
    gap: 10px !important;
    z-index: 20 !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4) !important;
}

/* Default hidden for card mode */
#gxz-fpb-root .gxz-flow-simple-trackbar {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 14px);
    width: calc(100% - 32px);
    max-width: 360px;
    height: 36px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    z-index: 20;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

#gxz-fpb-root .gxz-flow-actions {
    bottom: 0 !important;
}
#gxz-fpb-root[data-player-style="card"] .gxz-flow-simple-trackbar {
    display: none !important;
}
#gxz-fpb-root[data-player-style="card"] .gxz-flow-btn-skip {
    background: rgba(239,68,68,0.15) !important;
    border-color: rgba(239,68,68,0.4) !important;
    color: #ef4444 !important;
}
#gxz-fpb-root[data-player-style="card"] .gxz-flow-btn-like {
    background: rgba(34,197,94,0.15) !important;
    border-color: rgba(34,197,94,0.4) !important;
    color: #22c55e !important;
}
#gxz-fpb-root .gxz-flow-simple-trackbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    white-space: nowrap;
}
#gxz-fpb-root .gxz-flow-simple-trackbar-logo img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    filter: brightness(10);
}
#gxz-fpb-root .gxz-flow-simple-progress-wrap {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}
#gxz-fpb-root .gxz-flow-simple-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: var(--gxz-accent, #a855f7);
    transition: width 0.25s linear;
}
#gxz-fpb-root .gxz-flow-simple-trackbar-time {
    flex-shrink: 0;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════
   CARD style — scoped to data-player-style="card"
   Restore ambient + full-canvas particles (undone from earlier scope)
   ══════════════════════════════════════════════════════════════════ */

/* Card: show seekbar and share */
#gxz-fpb-root[data-player-style="card"] .gxz-flow-seekbar,
#gxz-flow-root.gxz-fpb-published-root[data-player-style="card"] .gxz-flow-seekbar {
    display: grid !important;
}
#gxz-fpb-root[data-player-style="card"] .gxz-flow-share-btn,
#gxz-flow-root.gxz-fpb-published-root[data-player-style="card"] .gxz-flow-share-btn {
    display: flex !important;
}

/* Card published: hide ambient rectangle and constrain particles */
#gxz-flow-root.gxz-fpb-published-root[data-player-style="card"] .gxz-flow-ambient {
    display: none !important;
}
#gxz-flow-root.gxz-fpb-published-root[data-player-style="card"] .gxz-flow-bg-canvas {
    top: 65% !important;
    height: 35% !important;
    inset: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* ── Builder preview: Back/Forward nav buttons — white/glass, no theme color ── */
#gxz-fpb-root .gxz-flow-btn.gxz-flow-btn-nav {
    background: rgba(255,255,255,0.08) !important;
    border: 1.5px solid rgba(255,255,255,0.18) !important;
    color: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#gxz-fpb-root .gxz-fpb-watermark,
#gxz-fpb-root .gxz-fpb-watermark img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#gxz-fpb-root .gxz-flow-btn.gxz-flow-btn-nav:active {
    background: rgba(255,255,255,0.15) !important;
    transform: scale(0.9);
}
#gxz-fpb-root[data-player-style="card"] .gxz-flow-btn-skip.gxz-flow-btn-nav {
    background: rgba(239,68,68,0.15) !important;
    border-color: rgba(239,68,68,0.4) !important;
    color: #ef4444 !important;
}
#gxz-fpb-root[data-player-style="card"] .gxz-flow-btn-like.gxz-flow-btn-nav {
    background: rgba(34,197,94,0.15) !important;
    border-color: rgba(34,197,94,0.4) !important;
    color: #22c55e !important;
}

/* Builder preview layout cleanup for optional tracklist. The preview has a
   shorter vertical canvas than the published page, so reserve explicit lanes. */
#gxz-fpb-root[data-show-tracklist="true"] .gxz-flow-stage {
    top: 148px !important;
    bottom: 380px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-fpb-preview-card {
    width: min(270px, calc(100vw - 64px)) !important;
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-fpb-preview-card--card {
    width: min(88vw, 380px) !important;
    height: min(46vh, 380px) !important;
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-fpb-preview-tracklist {
    left: 50% !important;
    bottom: 178px !important;
    transform: translateX(-50%) !important;
    width: min(88vw, 380px) !important;
    max-height: 124px !important;
    padding: 0 !important;
    z-index: 28 !important;
}
#gxz-fpb-root[data-show-tracklist="true"][data-player-style="standard"] .gxz-fpb-preview-tracklist {
    width: min(300px, calc(100vw - 48px)) !important;
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-fpb-preview-tracklist .gxz-flow-standard-track {
    min-height: 46px;
    background: rgba(20, 14, 12, 0.56);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-fpb-preview-seekbar {
    display: grid !important;
    bottom: 106px !important;
    z-index: 26 !important;
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-flow-seekbar-times {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}
#gxz-fpb-root[data-show-tracklist="true"] .gxz-fpb-simple-trackbar {
    display: none !important;
}

/* The preview now uses the unified branded seekbar. Keep the retired compact
   preview trackbar hidden in every builder mode so Standard cannot render two. */
#gxz-fpb-root .gxz-fpb-simple-trackbar,
#gxz-fpb-root[data-player-style="standard"] .gxz-fpb-simple-trackbar,
#gxz-fpb-root[data-player-style="card"] .gxz-fpb-simple-trackbar {
    display: none !important;
}
