/* ============================================================
   CarousellVP — Live widgets (self-contained, no cross-site fetch)
   Live RTP = full-width band in content · รายการถอน = compact in left sidebar
   accent = CarousellVP gold #ff5e2a (deep-wine-red trim on HOT badge)
   ============================================================ */
.lw-row{ --theme-palette-color-1:#ff5e2a; padding:4px 0; }
.lw-side-wrap{ --theme-palette-color-1:#ff5e2a; margin:12px 2px 6px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }

/* ---- content area: Live RTP spans full width; TX (mobile fallback) centered below ---- */
#lw-mount .tw-rtp{ max-width:none; width:100%; margin:0 0 16px !important; }
#lw-mount .tw-ltx{ max-width:620px; width:100%; margin:0 auto !important; }

/* ===== LIVE RTP ===== */
.tw-rtp{background:#0b0910;max-width:672px;margin:22px auto;border:1px solid color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 52%,transparent);border-radius:16px;padding:18px 18px 16px;box-shadow:0 0 4px color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 20%,transparent),0 0 11px color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 9%,transparent),0 10px 24px rgba(0,0,0,.5);font-family:'Prompt',sans-serif}
.tw-rtp *{font-family:inherit;box-sizing:border-box}
.tw-rtp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.tw-rtp-live{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700;font-size:15px;letter-spacing:.5px}
.tw-rtp-dot{width:10px;height:10px;border-radius:50%;background:#22e06a;box-shadow:0 0 8px #22e06a;animation:tw-rtp-pulse 1.3s infinite}
@keyframes tw-rtp-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.tw-rtp-sync{color:#8a8a8a;font-size:12.5px;display:flex;align-items:center;gap:5px}
.tw-rtp-sync b{color:#e8945a;font-weight:500}
.tw-rtp-sync .sp{display:inline-block;animation:tw-rtp-spin 2.4s linear infinite}
@keyframes tw-rtp-spin{to{transform:rotate(360deg)}}
.tw-rtp-ticker{background:#17121c;border:1px solid #3a2444;border-radius:9px;padding:7px 0;margin-bottom:14px;overflow:hidden;white-space:nowrap;font-size:12.5px;color:#cfcfcf}
.tw-rtp-ticker .trk{display:inline-block;padding-left:100%;animation:tw-rtp-marq 22s linear infinite}
.tw-rtp-ticker .g{color:#fff;font-weight:500}.tw-rtp-ticker .p{color:#22e06a;font-weight:600}
.tw-rtp-ticker .top{background:var(--theme-palette-color-1,#fa660a);color:#2a0018;font-weight:700;border-radius:5px;padding:1px 7px;margin:0 10px;font-size:11px}
@keyframes tw-rtp-marq{to{transform:translateX(-100%)}}
.tw-rtp-cards{overflow:hidden;padding-bottom:6px}
.tw-rtp-track{display:flex;width:max-content;will-change:transform}
.tw-rtp-card{flex:0 0 200px;margin-right:12px;background:#141019;border:1px solid #2a2233;border-radius:12px;padding:12px;position:relative;cursor:pointer}
.tw-rtp-rank{position:absolute;top:10px;left:10px;z-index:2;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.65);border:1px solid #e8945a;color:#e8945a;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.tw-rtp-hot{position:absolute;top:10px;right:10px;z-index:2;background:#8e1b1b;color:#f6dca0;font-weight:700;font-size:10px;border-radius:5px;padding:2px 7px;letter-spacing:.5px;border:1px solid rgba(255, 94, 42,.5)}
.tw-rtp-thumb{aspect-ratio:1/1;border-radius:9px;margin-bottom:10px;overflow:hidden;background:#0c0c0c}
.tw-rtp-img{width:100%;height:100%;object-fit:cover;display:block}
.tw-rtp-name{color:#fff;font-weight:600;font-size:15px;line-height:1.2}
.tw-rtp-prov{color:#9a9a9a;font-size:11px;letter-spacing:1px;margin-bottom:7px}
.tw-rtp-rtpval{display:flex;align-items:baseline;gap:5px;margin-bottom:6px}
.tw-rtp-rtpval b{color:#22e06a;font-size:25px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.tw-rtp-rtpval span{color:#22e06a;font-size:12px;font-weight:500}
.tw-rtp-bar{height:6px;background:#2a2a2a;border-radius:4px;overflow:hidden;margin-bottom:9px}
.tw-rtp-fill{height:100%;background:linear-gradient(90deg,#f7b500,#22e06a);border-radius:4px;transition:width .8s ease}
.tw-rtp-meta{font-size:12px;color:#cfcfcf;display:flex;align-items:center;gap:6px;margin-bottom:3px}
.tw-rtp-meta .pd{width:7px;height:7px;border-radius:50%;background:#22e06a}
.tw-rtp-meta b{color:#fff;font-weight:500;font-variant-numeric:tabular-nums}
.tw-rtp-vol{font-size:12px;font-weight:500;margin-bottom:10px}
.tw-rtp-vol.high{color:#ff5c5c}.tw-rtp-vol.mid{color:#f7b500}.tw-rtp-vol.low{color:#22e06a}
.tw-rtp-play{display:block;width:100%;text-align:center;background:linear-gradient(160deg,#f7d774,#d4591a);color:#3a1400;font-family:inherit;font-weight:700;font-size:13px;border:none;border-radius:8px;padding:9px;cursor:pointer;text-decoration:none}
.tw-rtp-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:10px;border-top:1px solid #1e1e1e}
.tw-rtp-foot .hp{color:#e8945a;font-size:12px}.tw-rtp-foot .dis{color:#6a6a6a;font-size:11px}
@media(max-width:600px){.tw-rtp-card{flex-basis:170px}}

/* ===== รายการถอนล่าสุด (TX) ===== */
.tw-ltx{background:#0b0910;max-width:640px;margin:22px auto;border:1px solid color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 52%,transparent);border-radius:14px;padding:18px 18px 20px;box-shadow:0 0 4px color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 20%,transparent),0 0 11px color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 9%,transparent),0 10px 24px rgba(0,0,0,.5);font-family:'Prompt',sans-serif}
.tw-ltx *{font-family:inherit}
.tw-ltx-title{text-align:center;color:#e8945a;font-size:18px;font-weight:600;margin-bottom:16px}
.tw-ltx-list{display:flex;flex-direction:column;gap:12px}
.tw-ltx-item{transition:transform .55s cubic-bezier(.22,.61,.36,1);will-change:transform}
.tw-ltx-item[hidden]{display:none}
.tw-ltx-inner{display:flex;align-items:center;gap:14px;background:#17131c;border:1px solid transparent;border-radius:10px;padding:12px 16px;opacity:.62;filter:blur(.7px);transform:scale(.965);transform-origin:center;transition:opacity .5s ease,filter .5s ease,transform .5s ease,background .5s ease,border-color .5s ease}
.tw-ltx-item.is-active .tw-ltx-inner{background:#221b29;border-color:var(--theme-palette-color-1,#fa660a);opacity:1;filter:none;transform:scale(1);box-shadow:0 3px 12px color-mix(in srgb,var(--theme-palette-color-1,#fa660a) 22%,transparent)}
.tw-ltx-icon{flex:0 0 auto;width:40px;height:40px;border-radius:50%;object-fit:contain;padding:6px;box-sizing:border-box}
.tw-ltx-details{flex:1 1 auto;min-width:0}
.tw-ltx-user{display:block;color:#cfcfcf;font-size:13px;margin-bottom:3px}
.tw-ltx-user b{color:#4fc3f7;font-weight:600}
.tw-ltx-amount{display:block;color:#4fc3f7;font-size:13px;font-weight:600}
.tw-ltx-status{flex:0 0 auto;font-size:13px;white-space:nowrap;display:flex;align-items:center;gap:5px}
.tw-ltx-status.is-success{color:#b15f4a}
.tw-ltx-status.is-pending{color:#e8945a}
.tw-ltx-status.is-wait{color:#8a8a8a}
.tw-ltx-spin{display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,.22);border-top-color:#e8945a;border-radius:50%;animation:tw-ltx-rot .7s linear infinite}
.tw-ltx-dot{display:inline-block;width:9px;height:9px;border:2px solid #8a8a8a;border-radius:50%;box-sizing:border-box}
@keyframes tw-ltx-rot{to{transform:rotate(360deg)}}

/* ===== TX compact — inside the left sidebar (below the menu) ===== */
.lw-side-wrap .tw-ltx{ margin:0 !important; max-width:none; width:100%; padding:12px; border-radius:12px; }
.lw-side-wrap .tw-ltx-title{ font-size:15px; margin-bottom:12px; }
.lw-side-wrap .tw-ltx-list{ gap:9px; }
.lw-side-wrap .tw-ltx-inner{ gap:9px; padding:9px 10px; }
.lw-side-wrap .tw-ltx-icon{ width:32px; height:32px; padding:5px; }
.lw-side-wrap .tw-ltx-user{ font-size:10.5px; line-height:1.35; }
.lw-side-wrap .tw-ltx-amount{ font-size:11.5px; }
.lw-side-wrap .tw-ltx-status{ font-size:10px; }
@media(max-width:600px){.tw-ltx-status{font-size:11px}.tw-ltx-user,.tw-ltx-amount{font-size:12px}.tw-ltx-icon{width:34px;height:34px}}

/* CLS-reserve-lw-mount: reserve widget space so late JS-mount doesn't push content down (kills CLS). Mobile stacks RTP+TX in #lw-mount (~860px measured) */
#lw-mount{min-height:540px}@media (max-width:900px){#lw-mount{min-height:860px}}
