/* KEC VIDEO — GLOBAL VIP IDENTITY */

.kec-vip-identity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kec-vip-name {
    background: linear-gradient(
        90deg,
        #ffd700 0%,
        #ffb300 28%,
        #ff7a00 52%,
        #ff4f81 78%,
        #d946ef 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffb300;
    font-weight: 900;
    letter-spacing: 0.25px;
    -webkit-text-stroke: 0.55px rgba(91, 45, 0, 0.9);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 0 rgba(122, 64, 0, 0.8),
        0 3px 0 rgba(91, 45, 0, 0.65),
        0 4px 6px rgba(0, 0, 0, 0.42),
        0 0 8px rgba(255, 174, 0, 0.45);
}

.kec-vip-crown {
    display: inline-block;
    font-size: 0.95em;
    line-height: 1;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 4px rgba(255, 215, 0, 0.65));
}

.kec-vip-avatar {
    border: 3px solid transparent !important;
    background-color: transparent;
    background-image:
        linear-gradient(transparent, transparent) padding-box,
        linear-gradient(
            135deg,
            #ffd700,
            #ff9800,
            #ff4f81,
            #d946ef
        ) border-box;
    box-shadow:
        0 0 0 2px rgba(255, 193, 7, 0.18),
        0 0 12px rgba(255, 174, 0, 0.55),
        0 0 22px rgba(255, 79, 129, 0.28);
}

.kec-vip-avatar-wrap {
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(255, 215, 0, 0.22),
        0 0 14px rgba(255, 215, 0, 0.65);
}

/* GLOBAL ROYAL GOLD VIP AVATAR FRAME */
.kec-vip-frame {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: visible !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    z-index: 1;
}

.kec-vip-frame > img {
    position: relative;
    z-index: 1;
    border-radius: 50% !important;
}

.kec-vip-frame.kec-vip-avatar::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -4px;
    border-radius: 50%;
    pointer-events: none;
    background:
        linear-gradient(#0000,#0000) padding-box,
        conic-gradient(
            from 0deg,
            #fff2a8,
            #a96b08,
            #fff4ad,
            #e5a91d,
            #fff9d0,
            #9c6208,
            #ffd95b,
            #fff2a8
        ) border-box;
    border: 3px solid transparent;
    box-shadow:
        0 0 5px #ffd700,
        0 0 12px #e6a817,
        inset 0 0 5px #fff2a8;
}

.kec-vip-frame.kec-vip-avatar::after {
    content: "♛";
    position: absolute;
    z-index: 4;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd84d;
    font-family: Georgia, serif;
    font-size: 21px;
    line-height: 1;
    font-weight: 900;
    -webkit-text-stroke: .45px #8a5200;
    text-shadow:
        0 1px 1px #542d00,
        0 0 5px #ffdf55,
        0 0 9px #ffb700;
    pointer-events: none;
}

.kec-vip-frame-label {
    position: absolute;
    z-index: 5;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 6px;
    border: 1px solid #ffe68a;
    border-radius: 8px;
    background: linear-gradient(180deg,#fff0a6,#c98208 55%,#754000);
    color: #fff;
    font-size: 8px;
    line-height: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    text-shadow: 0 1px 2px #542d00;
    box-shadow: 0 1px 5px #e6a817;
    pointer-events: none;
}

.kec-vip-identity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kec-vip-name {
    background: linear-gradient(90deg,#fff0a6,#e8ad24,#fff0a6,#c47b0a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e8ad24;
    font-weight: 900;
    text-shadow: 0 1px 5px #d99b3044;
}

.kec-vip-crown {
    display: inline-block;
    font-size: .95em;
    line-height: 1;
    filter: drop-shadow(0 0 4px #ffd700);
}

/* ROYAL GOLD FRAME V2 — PHOTO REMAINS CLEAR */
.kec-vip-frame.kec-vip-avatar {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    isolation: isolate !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kec-vip-frame.kec-vip-avatar > img {
    position: relative !important;
    z-index: 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.kec-vip-frame.kec-vip-avatar::before {
    content: "" !important;
    position: absolute !important;
    z-index: 2 !important;
    inset: -3px !important;
    border: 3px solid #e8b943 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: 0 0 5px #ffd95b, 0 0 12px #d99a25,
                inset 0 0 4px #fff0a6 !important;
    pointer-events: none !important;
}

.kec-vip-frame.kec-vip-avatar::after {
    content: "♛" !important;
    position: absolute !important;
    z-index: 5 !important;
    top: -17px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #ffd84d !important;
    font-family: Georgia,serif !important;
    font-size: 21px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px #633900, 0 0 8px #ffc928 !important;
    pointer-events: none !important;
}

.kec-vip-decoration {
    position: absolute !important;
    pointer-events: none !important;
}

.kec-vip-laurel-left,
.kec-vip-laurel-right {
    z-index: 4 !important;
    top: 50% !important;
    color: #e9b83e !important;
    font-family: Georgia,serif !important;
    font-size: 25px !important;
    line-height: 1 !important;
    text-shadow: 0 0 5px #ffdc68 !important;
}

.kec-vip-laurel-left {
    left: -12px !important;
    transform: translateY(-50%) rotate(-48deg) !important;
}

.kec-vip-laurel-right {
    right: -12px !important;
    transform: translateY(-50%) scaleX(-1) rotate(-48deg) !important;
}

.kec-vip-diamond {
    z-index: 6 !important;
    bottom: -9px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(45deg) !important;
    color: #36baff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-shadow: 0 0 5px #159cff, 0 0 9px #65d8ff !important;
}

.kec-vip-frame-label {
    z-index: 7 !important;
    bottom: -13px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 1px 5px !important;
    border: 1px solid #ffe68a !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg,#fff0a6,#bd790b 60%,#754000) !important;
    color: #fff !important;
    font-size: 7px !important;
    line-height: 10px !important;
    font-weight: 900 !important;
    box-shadow: 0 0 5px #e6a817 !important;
}

/* ROYAL VIP — PREMIUM POLISHED DESIGN */
.kec-vip-frame.kec-vip-avatar::before {
    inset: -2px !important;
    border: 2px solid #dcae42 !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 0 1px #fff0a8,
        0 0 5px #dcae42,
        0 0 10px #dcae4280 !important;
}

.kec-vip-frame.kec-vip-avatar::after {
    top: -13px !important;
    font-size: 17px !important;
    color: #ffda62 !important;
    text-shadow:
        0 1px 1px #684000,
        0 0 4px #ffd65a !important;
}

.kec-vip-laurel-left,
.kec-vip-laurel-right {
    font-size: 15px !important;
    color: #d9a735 !important;
    text-shadow: 0 0 3px #ffdf80 !important;
}

.kec-vip-laurel-left {
    left: -6px !important;
    transform: translateY(-50%) rotate(-35deg) !important;
}

.kec-vip-laurel-right {
    right: -6px !important;
    transform: translateY(-50%) scaleX(-1) rotate(-35deg) !important;
}

.kec-vip-diamond {
    bottom: -7px !important;
    color: #37baff !important;
    font-size: 10px !important;
    text-shadow: 0 0 4px #159cff !important;
}

.kec-vip-frame-label {
    display: none !important;
}

/* ROYAL VIP — REAL TRANSPARENT SVG FRAME */
.kec-vip-frame.kec-vip-avatar {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    isolation: isolate !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kec-vip-frame.kec-vip-avatar::before,
.kec-vip-frame.kec-vip-avatar::after {
    content: none !important;
    display: none !important;
}

.kec-vip-frame.kec-vip-avatar > img:not(.kec-vip-art) {
    position: relative !important;
    z-index: 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.kec-vip-art {
    position: absolute !important;
    z-index: 5 !important;
    width: 148% !important;
    height: 148% !important;
    max-width: none !important;
    max-height: none !important;
    inset: -24% !important;
    object-fit: fill !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
}

.kec-vip-frame-label,
.kec-vip-laurel-left,
.kec-vip-laurel-right,
.kec-vip-diamond {
    display: none !important;
}

/* VIP FRAME ALIGNMENT FIX */
.kec-vip-frame {
    position: relative !important;
    overflow: visible !important;
}

.kec-vip-frame > .kec-vip-art {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 148% !important;
    height: 148% !important;
    inset: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: fill !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* FINAL FIX — USE THE COMPLETE ROYAL SVG FRAME */
.kec-vip-frame.kec-vip-avatar::before,
.kec-vip-frame.kec-vip-avatar::after {
    content: none !important;
    display: none !important;
}

/* Keep profile photo circular */
.kec-vip-frame > img:not(.kec-vip-art) {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* SVG must remain transparent and must NOT be clipped into a circle */
.kec-vip-frame > img.kec-vip-art {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 148% !important;
    height: 148% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: fill !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* P2 ROYAL GOLD FRAME — FINAL OVERLAY */
.kec-vip-frame.kec-vip-avatar::before,
.kec-vip-frame.kec-vip-avatar::after {
    display: none !important;
}

.kec-vip-frame > .kec-vip-art {
    width: 180% !important;
    height: 200% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* ==================================================
   KEC ROYAL GOLD VIP FRAME — P3 ALIGNMENT
   Preserve SVG artwork; align its transparent photo
   opening with the actual avatar circle.
   ================================================== */

.kec-vip-frame.kec-vip-avatar {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    isolation: isolate !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 50% !important;
    
    box-shadow: none !important;
    vertical-align: middle !important;
}

.kec-vip-frame.kec-vip-avatar::before {
    content: none !important;
    display: none !important;
}

.kec-vip-frame.kec-vip-avatar::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 154% !important;
    height: 170% !important;
    inset: auto !important;
    transform: translate(-50%, -54.1%) !important;
    background-image: url("/royal-vip-frame.svg") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.kec-vip-frame.kec-vip-avatar > img:not(.kec-vip-art) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

.kec-vip-frame.kec-vip-avatar > .kec-vip-art {
    display: none !important;
}



/* KEC VIP WRAPPER INNER AVATAR FIX */
.kec-vip-frame.kec-vip-avatar > div {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    z-index: 1 !important;
}


/* TEMPORARILY DISABLE ROYAL VIP AVATAR FRAMES */
.kec-vip-frame,
.kec-vip-avatar {
    border-color: transparent !important;
    box-shadow: none !important;
}
.kec-vip-frame::before,
.kec-vip-frame::after,
.kec-vip-avatar::before,
.kec-vip-avatar::after,
.kec-vip-frame > .kec-vip-art {
    content: none !important;
    display: none !important;
}

/* KEC ROYAL VIP FRAME — ORIGINAL PNG OVERLAY */
.kec-avatar-wrap.kec-has-royal-vip-frame {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
}

.kec-avatar-wrap.kec-has-royal-vip-frame .account-avatar {
    position: relative !important;
    z-index: 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.kec-avatar-wrap > .kec-vip-frame-art {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 170% !important;
    height: 170% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    transform: translate(-50%, -50%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    user-select: none !important;
}

.kec-avatar-wrap .account-photo-icon {
    z-index: 20 !important;
}

/* ROYAL VIP FRAME — SIZE ADJUSTMENT */
.kec-avatar-wrap > .kec-vip-frame-art {
    width: 125% !important;
    height: 125% !important;
}

/* ROYAL VIP FRAME — ROOM / COMMENT / VIDEO / CHANNEL */
.kec-has-inline-vip-frame {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
}

.kec-has-inline-vip-frame > .kec-vip-inline-frame-art {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 155% !important;
    height: 155% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    transform: translate(-50%, -50%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    user-select: none !important;
}
