    @keyframes recPulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.2;
        }
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes previewPulse {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(244, 167, 66, 0);
        }

        50% {
            box-shadow: 0 0 0 6px rgba(244, 167, 66, 0.25);
        }
    }

    section.bannerheading {
        position: relative;
    }

    .header____wrap {
        position: relative;
    }

    body {
        background: #0d0c1d;
        color: #fff;
    }

    /* ── Tabs ── */
    .custom-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .custom-tabs .nav-link {
        background: var(--extra-color-7);
        border: none;
        color: var(--extra-color-8);
        border-radius: 30px;
        padding: 8px 15px;
        transition: all 0.3s;
        font-size: 12px;
        cursor: pointer;
    }

    .custom-tabs .nav-link:hover {
        background: #2a253f;
        color: var(--secondary-color);
    }

    .custom-tabs .nav-link.active {
        background: var(--secondary-color);
        color: #fff;
    }

    /* ── Search Bar ── */
    .search-bar {
        background: #262131;
        border-radius: 30px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 1.5rem;
        border: 1px solid transparent;
        max-width: 600px;
    }

    .search-bar i {
        color: var(--extra-color-8);
        font-size: 13px;
    }

    .search-bar input {
        background: transparent;
        border: none;
        color: var(--extra-color-8);
        width: 100%;
        outline: none;
        font-size: 13px;
        font-family: var(--font-inter);
        font-weight: 400;
    }

    .search-bar input::placeholder {
        color: var(--extra-color-8);
    }

    /* ── Card ── */
    .karaoke-card {
        background: linear-gradient(135deg, rgba(42, 123, 155, 1) 0%, rgba(33, 27, 45, 1) 0%, rgba(23, 19, 32, 1) 100%);
        border-radius: 12px;
        overflow: hidden;
        transition: 0.3s;
        cursor: pointer;
        padding: 12px;
        border: 1px solid #302B3A;
        height: 100%;
    }

    .karaoke-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .media-box {
        position: relative;
    }

    .media-img {
        width: 100%;
        height: 235px;
        object-fit: cover;
        border-radius: 10px;
    }

    .play-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s;
        cursor: pointer;
        border-radius: 10px;
    }

    .play-icon-circle {
        background: var(--secondary-color);
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--heading-color);
        transition: transform 0.3s;
    }

    .karaoke-card:hover .play-icon-circle {
        background: #302B3A;
    }

    .play-icon-circle:hover {
        transform: scale(1.1);
    }

    .meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
    }

    .badge-tag {
        background: var(--secondary-color);
        color: #fff;
        font-size: 10px;
        padding: 5px 11px;
        border-radius: 30px;
    }

    /* ── No results ── */
    .no-results {
        text-align: center;
        padding: 60px;
        color: #aaa;
        width: 100%;
        margin-top: 100px;
    }

    /* ── Load more ── */
    .load-more-btn {
        background: transparent;
        border: 1px solid var(--secondary-color);
        color: var(--secondary-color);
        padding: 10px 32px;
        border-radius: 30px;
        font-size: 14px;
        font-family: var(--font-inter);
        cursor: pointer;
        transition: all 0.3s;
        display: none;
        margin: 32px auto 0;
    }

    .load-more-btn:hover {
        background: var(--secondary-color);
        color: #fff;
    }

    .load-more-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    /* ── Spinner ── */
    .grid-spinner {
        display: none;
        text-align: center;
        padding: 30px;
        color: #ca9043;
        width: 100%;
        margin-top: 100px;
    }

    .grid-spinner i {
        font-size: 24px;
        animation: spin 0.8s linear infinite;
        display: inline-block;
    }

    /* ── Modal base ── */
    .modal-content {
        background: #1a1830;
        border: 1px solid #f4a742;
        border-radius: 20px;
    }

    .modal-header {
        border-bottom: 1px solid #2d2845;
        padding: 15px 20px;
    }

    #videoModal .modal-header .btn-close {
        opacity: 1;
        filter: invert(1);
    }

    .modal-title {
        color: #f4a742;
        font-weight: bold;
    }

    #videoModal .modal-body {
        padding: 0;
    }

    .video-container {
        position: relative;
        width: 100%;
        background: #000;
    }

    .video-container video {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
        display: block;
    }

    .modal-footer {
        border-top: 1px solid #2d2845;
        padding: 15px 20px;
    }

    .track-info-modal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .track-details-modal h5 {
        margin: 0;
        color: #fff;
        font-size: 1.1rem;
    }

    .track-details-modal p {
        margin: 5px 0 0;
        color: #aaa;
        font-size: 0.9rem;
    }

    /* ── Recording modal ── */
    #recordingModal .modal-dialog {
        max-width: 960px;
        width: 95vw;
    }

    /* ── Karaoke + camera fixed heights ── */
    #karaokeVideoWrap {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
        height: 360px;
    }

    #karaokePlaybackVideo {
        width: 100%;
        height: 360px;
        object-fit: cover;
        display: block;
    }

    #cameraVideoWrap {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #111;
        height: 360px;
    }

    #cameraPreview {
        width: 100%;
        height: 360px;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }

    /* ── Preview/Enhancer modal ── */
    #previewEnhancerModal .modal-dialog {
        max-width: 960px;
        width: 95vw;
    }

    /* ── Visualizer bars ── */
    .visualizer-bars {
        display: flex;
        align-items: flex-end;
        gap: 3px;
        height: 40px;
        width: 100%;
    }

    .visualizer-bars .bar {
        flex: 1;
        background: linear-gradient(180deg, #ca9043 0%, #f4a742 100%);
        border-radius: 2px 2px 0 0;
        transition: height 0.05s ease;
        min-height: 2px;
    }

    /* ── Before / After waveform panels ── */
    .waveform-panel {
        position: relative;
        background: #0d0b1a;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #302B3A;
    }

    .waveform-panel canvas {
        width: 100%;
        height: 64px;
        display: block;
    }

    .waveform-playhead {
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: rgba(202, 144, 67, 0.18);
        pointer-events: none;
        transition: width 0.1s linear;
    }

    .waveform-not-ready {
        position: absolute;
        inset: 0;
        background: rgba(13, 11, 26, 0.82);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    /* ── Play buttons ── */
    .preview-play-btn {
        width: 100%;
        border-radius: 30px;
        padding: 8px 0;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.25s;
        border: 1px solid #302B3A;
        background: #1d1a2e;
        color: #ca9043;
    }

    .preview-play-btn:hover:not(:disabled) {
        background: #2a2540;
        border-color: #ca9043;
    }

    .preview-play-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        color: #555;
    }

    .preview-play-btn.playing {
        background: rgba(202, 144, 67, 0.15);
        border-color: #f4a742;
        color: #f4a742;
        animation: previewPulse 2s infinite;
    }

    /* ── Live spectrum ── */
    #liveSpectrumWrap {
        height: 44px;
        margin: 6px 0;
        display: none;
    }

    #liveSpectrum {
        display: flex;
        align-items: flex-end;
        gap: 2px;
        height: 44px;
        width: 100%;
    }

    /* ── Status badge ── */
    .preview-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #13111f;
        border: 1px solid #302B3A;
        border-radius: 20px;
        padding: 4px 12px;
        font-size: 11px;
        color: #888;
        margin-bottom: 12px;
    }

    .preview-status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #444;
        flex-shrink: 0;
    }

    /* ── Delta tags ── */
    .delta-tag {
        background: #1d1a2e;
        border: 1px solid #302B3A;
        color: #ca9043;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 10px;
    }

    /* ── Section label ── */
    .section-label {
        font-size: 10px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #666;
        margin-bottom: 6px;
    }

    /* ── Discard button ── */
    .discard-btn {
        background: transparent;
        border: 1px solid #dc3545;
        color: #dc3545;
        padding: 6px 18px;
        border-radius: 30px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.25s;
        font-family: var(--font-inter);
    }

    .discard-btn:hover {
        background: #dc3545;
        color: #fff;
    }

    /* ── Preview video panel ── */
    #previewVideoAfterWrap {
        position: relative;
        background: #000;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #302B3A;
        margin-bottom: 6px;
    }

    #previewVideoAfterWrap video {
        width: 100%;
        height: 150px;
        object-fit: contain;
        display: block;
        background: #000;
    }


    /* ── NEW: Modal transition loader ── */
    #modalTransitionLoader {
        position: fixed;
        inset: 0;
        background: rgba(13, 11, 29, 0.75);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        backdrop-filter: blur(2px);
    }

    #modalTransitionLoader .loader-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    #modalTransitionLoader i {
        font-size: 32px;
        color: #f4a742;
        animation: spin 0.8s linear infinite;
        display: inline-block;
    }

    #modalTransitionLoader span {
        color: #ca9043;
        font-size: 13px;
        font-family: var(--font-inter);
    }
