.thtk-tiktok-wrap{max-width:980px;margin:18px auto;font-family:Inter,Arial,Helvetica,sans-serif}
.thtk-input-wrap{display:flex;flex-direction:column;align-items:center;margin-bottom:14px}
/* input a bit less wide as requested */
.thtk-input{width:42%;min-width:220px;padding:12px 18px;border-radius:30px;border:2px solid rgba(0,0,0,0.06);box-shadow:0 10px 30px rgba(16,24,40,0.04);font-size:15px;outline:none}
.thtk-input:focus{box-shadow:0 14px 40px rgba(123,97,255,0.08);border-color:rgba(123,97,255,0.4)}
.thtk-check-btn{margin-top:14px;padding:12px 34px;border-radius:999px;border:none;background:linear-gradient(90deg,#7b61ff,#ff6bcb);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 12px 30px rgba(123,97,255,0.18);font-size:15px}
.thtk-spinner{border:6px solid #f3f3f3;border-top:6px solid #7b61ff;border-radius:50%;width:44px;height:44px;margin:12px auto;animation:thspin 1s linear infinite}
@keyframes thspin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.thtk-result{margin-top:18px}
/* profile card */
.thtk-profile-card{display:flex;gap:14px;align-items:center;padding:16px;border-radius:14px;box-shadow:0 8px 26px rgba(11,22,39,0.04);background:linear-gradient(135deg,#ffffff,#fbfbff)}
.thtk-avatar img{width:92px;height:92px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 10px 30px rgba(0,0,0,0.08)}
.thtk-info{flex:1}
.thtk-name{font-size:18px;font-weight:900;color:#111}
.thtk-username{font-size:13px;color:#666;margin-top:6px;font-weight:700}
/* grid and card: make cards a bit wider and taller */
.thtk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
@media(max-width:1000px){.thtk-grid{grid-template-columns:repeat(2,1fr)}.thtk-input{width:70%}}
@media(max-width:600px){.thtk-grid{grid-template-columns:1fr}.thtk-input{width:92%}}

/* Card */
.thtk-card{border-radius:14px;padding:10px;box-shadow:0 10px 30px rgba(4,12,20,0.05);background:linear-gradient(180deg,#fff,#fbfbfb);display:flex;flex-direction:column;align-items:center;min-height:360px}
/* make preview wider and taller to fit stats on one line */
.thtk-media-wrap{width:100%;display:flex;justify-content:center;align-items:center}
.thtk-media{width:100%;height:260px;object-fit:cover;border-radius:10px}
.thtk-media-video{width:100%;height:260px;border-radius:10px;object-fit:cover}

/* Thumbnail wrapper with play overlay */
.thtk-thumb-wrap{position:relative;width:100%;cursor:pointer;border-radius:10px;overflow:hidden}
.thtk-media-thumb{width:100%;height:260px;object-fit:cover;display:block}
.thtk-play-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.thtk-play-btn{pointer-events:auto;width:70px;height:70px;border-radius:50%;border:none;background:linear-gradient(90deg,rgba(0,0,0,0.35),rgba(0,0,0,0.45));display:inline-block;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,0.3);position:relative}
.thtk-play-btn:after{content:"";position:absolute;left:28px;top:18px;border-left:18px solid #fff;border-top:11px solid transparent;border-bottom:11px solid transparent}

/* compact stats: keep on one line, smaller font and tighter spacing */
.thtk-stats{width:100%;display:flex;justify-content:space-between;padding:6px 6px;font-size:13px;color:#333;margin-top:8px;flex-wrap:nowrap;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thtk-stats.compact .thtk-stat{font-size:12px;padding:6px 8px;border-radius:999px;background:rgba(0,0,0,0.03);display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.thtk-stat{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;background:rgba(0,0,0,0.03)}
/* blue download button + white text */
.thtk-download-wrap{width:100%;display:flex;justify-content:center;margin-top:auto;padding-top:10px}
.thtk-tiktok-wrap .thtk-download-btn{display:inline-block;padding:10px 18px;border-radius:999px;text-decoration:none;font-weight:800;background:#007bff;color:#fff !important;box-shadow:0 8px 24px rgba(0,0,0,0.06);}

/* load more / errors */
.thtk-load-more{margin:18px auto;padding:12px 18px;border-radius:18px;border:none;background:#111;color:#fff;cursor:pointer;display:block} 
.thtk-error{padding:14px;border-radius:10px;background:#ffecec;color:#721c24;border:1px solid #f5c6cb}
