        :root {
            --topbar-h: 0px;
            --bottombar-h: 65px;
            /* ✅ footer height fix */
        }


        .reels-body {
            background: #000;
            /* margin: 0 !important; */
            width: 100% !important;
            /* max-width: none !important; */
            /* overflow: hidden; */
        }

        .reels-wrap {
            width: 100%;
            margin: 0;
        }

        .reels-feed {
            height: calc(100vh - var(--topbar-h) - var(--bottombar-h));
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: y mandatory;
            overscroll-behavior-y: contain;
        }

        .reels-feed::-webkit-scrollbar {
            width: 0;
            height: 0;
        }

        .reel-item {
            height: calc(100vh - var(--topbar-h) - var(--bottombar-h));
            scroll-snap-align: start;
        }

        .reel-frame {
            width: 100%;
            height: 100%;
            background: #000;
            position: relative;
            overflow: hidden;
        }

        .reel-iframe {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* TOP ICONS */
        .reel-topbar {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
            pointer-events: none;
        }

        .top-btn {
            pointer-events: auto;
            width: 42px;
            height: 42px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.40);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #fff;
            display: grid;
            place-items: center;
            text-decoration: none;
            backdrop-filter: blur(6px);
            cursor: pointer;
        }

        .top-btn i {
            font-size: 18px;
            line-height: 1;
        }

        .reel-caption {
            position: absolute;
            left: 12px;
            bottom: 14px;
            right: 70px;
            color: #fff;
            z-index: 5;
        }

        .reel-title {
            font-weight: 800;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .reel-sub {
            font-size: 12px;
            opacity: .85;
        }

        /* Tap for sound overlay */
        .sound-hint {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 16px;
            display: flex;
            justify-content: center;
            z-index: 9999;
        }

        .sound-btn {
            border: 0;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(6px);
            font-weight: 700;
            cursor: pointer;
        }

        .reel-iframe {
            pointer-events: none;
        }



        .rpc-left {
            width: 86px;
            min-width: 86px;
            background: #f2f2f2;
            display: block;
        }

        .rpc-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }



        .rpc-title {
            font-weight: 800;
            font-size: 12px;
            color: #111;
            text-decoration: none;
            line-height: 1.2;
            max-height: 29px;
            overflow: hidden;
        }

        .rpc-price {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 10px;
        }

        .rpc-mrp {
            font-size: 12px;
            color: #777;
            text-decoration: line-through;
        }



        .rpc-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 10px;
            width: 100%;
            padding: 6px 0px;
            border-radius: 5px;
            background: #e31b2d;
            color: #fff;
            font-weight: 600;
        }

        .rpc-qty {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .counter-button {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid #eee;
            background: #fff;
            display: grid;
            place-items: center;
            cursor: pointer;
        }

        .counter-value {
            width: 54px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid #eee;
            text-align: center;
            font-weight: 800;
        }

        .reel-product-card {
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: calc(var(--bottombar-h) + 85px);
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            z-index: 20;
            /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38); */
            display: flex;
            text-decoration: none;
            color: #111;
        }

        .rpc-left {
            width: 92px;
            min-width: 92px;
            background: #f2f2f2;
        }

        .rpc-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }



        .rpc-title {
            font-weight: 800;
            font-size: 13px;
            line-height: 1.2;
            max-height: 29px;
            overflow: hidden;
        }

        .rpc-price {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .rpc-sale {
            font-weight: 900;
            font-size: 12px;
            color: #111;
        }

        .rpc-mrp {
            font-size: 10px;
            color: #777;
            text-decoration: line-through;
        }

        .rpc-cta {
            margin-top: 6px;
        }



        /* small tap effect */
        .reel-product-card:active {
            transform: scale(0.99);
        }

        /* ✅ remove any extra padding causing gaps */
        .reels-body {
            padding: 0 !important;
        }

        /* ✅ mobile: full width */
        /* .reels-wrap {
            width: 100%;
            margin: 0;
        } */

        /* ✅ desktop: phone-like centered container (badi screen fix) */
        @media (min-width: 768px) {
            .reels-wrap {
                max-width: 430px;
                margin: 0 auto;
            }

            .reel-frame {
                border-radius: 18px;
            }

            .reels-feed {
                border-radius: 18px;
                overflow: hidden;
            }
        }

        /* ✅ media wrapper */
        .reel-frame {
            position: relative;
            overflow: hidden;
            background: #000;
        }

        .reel-media {
            position: absolute;
            inset: 0;
            overflow: hidden;
            background: #000;
            z-index: 1;
        }

        .reel-iframe {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 140%;
            height: 140%;
            transform: translate(-50%, -50%);
            border: 0;
            display: block;
            pointer-events: none;
            /* footer/overlay click safe */
        }

        /* small screens a little less zoom */
        @media (max-width: 480px) {
            .reel-iframe {
                width: 130%;
                height: 130%;
            }
        }

        .reel-topbar,
        .reel-caption,
        .reel-product-card {
            position: absolute;
            z-index: 10;
        }

        .rpc-mid {
            flex: 1;
            padding: 12px 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }