.thtwitvw-wrap{max-width:900px;margin:18px auto;font-family:Inter,Arial,Helvetica,sans-serif}
.thtwitvw-inputwrap{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px}
.thtwitvw-input{width:80%;padding:14px 18px;border-radius:28px;border:2px solid rgba(0,0,0,0.06);box-shadow:0 8px 30px rgba(0,0,0,0.06) inset;background:linear-gradient(180deg,rgba(255,255,255,0.85),rgba(240,240,255,0.85));font-size:15px}
.thtwitvw-checkwrap{text-align:center;width:100%}
.thtwitvw-checkbtn{padding:12px 26px;border-radius:999px;border:none;background:linear-gradient(90deg,#7b2ff7,#ff6a88);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 12px 30px rgba(123,47,247,0.18)}
.thtwitvw-spinner{width:48px;height:48px;border-radius:50%;border:6px solid rgba(0,0,0,0.06);border-top-color:#ffd166;animation:thtwitvw-spin 1s linear infinite;margin:10px auto;display:none}
@keyframes thtwitvw-spin{to{transform:rotate(360deg)}}

/* profile card */
.thtwitvw-profilecard.colorful{display:flex;gap:14px;align-items:center;padding:16px;border-radius:16px;background:linear-gradient(135deg,#ff9a9e 0%, #a18cd1 100%);color:#fff}
.thtwitvw-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,0.25)}
.thtwitvw-name{font-weight:800;font-size:18px}
.thtwitvw-stats{display:flex;gap:10px;margin-top:8px;font-size:13px}
.thtwitvw-profiline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;     /* default size */
}

/* make the text even smaller on small devices */
@media(max-width:600px){
  .thtwitvw-profiline {
      font-size: 12px;   /* smaller */
  }
}

@media(max-width:480px){
  .thtwitvw-profiline {
      font-size: 11px;   /* even smaller */
  }
}

@media(max-width:360px){
  .thtwitvw-profiline {
      font-size: 10px;   /* smallest for tiny screens */
  }
}

/* analytics */
.thtwitvw-analytics-card.colorful{border-radius:12px;padding:10px;background:linear-gradient(90deg,#00dbde 0%, #fc00ff 100%);color:#fff;margin-bottom:8px}
.thtwitvw-analytics-title-large{text-align:center;font-weight:800;margin-bottom:10px}
.thtwitvw-analytics-row{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}
.thtwitvw-analytics-item{text-align:center;padding:6px;min-width:70px}
.thtwitvw-analytics-number{font-weight:900;font-size:18px}
.thtwitvw-analytics-label{display:block;margin-top:6px;font-weight:700}

/* tweets - stylish cards */
.thtwitvw-tweets{margin-top:16px;display:flex;flex-direction:column;gap:12px}
.thtwitvw-tweetcard{border-radius:14px;padding:14px;background:linear-gradient(180deg,#ffffff,#f7f7ff);box-shadow:0 12px 30px rgba(16,24,40,0.06);border:1px solid rgba(0,0,0,0.04)}
.thtwitvw-header{display:flex;gap:12px;align-items:flex-start}
.thtwitvw-tweet-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover}
.thtwitvw-header-meta{font-size:13px}
.thtwitvw-tweet-name{font-weight:800;color:#111}
.thtwitvw-tweet-date{color:#666;font-size:12px;margin-top:6px}
.thtwitvw-tweet-text{margin:12px 0;white-space:pre-wrap;font-size:15px;line-height:1.45}
.thtwitvw-media img{max-width:100%;border-radius:12px;display:block;margin:10px auto}
.thtwitvw-video-thumb{position:relative;display:inline-block;cursor:pointer;border-radius:12px;overflow:hidden}
.thtwitvw-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(90deg,#7b2ff7,#ff6a88);color:#fff;padding:12px;border-radius:999px;font-weight:900;box-shadow:0 14px 30px rgba(123,47,247,0.12)}
.thtwitvw-download{ text-align:center;margin-top:10px }
.thtwitvw-download a{display:inline-block;padding:8px 14px;border-radius:999px;background:linear-gradient(90deg,#ffd166,#ff6b6b);color:#111;text-decoration:none;font-weight:800}
.thtwitvw-tweet-stats{display:flex;gap:12px;color:#444;margin-top:10px;font-size:13px}

/* error bubble */
.thtwitvw-error-bubble{display:inline-block;padding:12px 16px;border-radius:999px;background:linear-gradient(90deg,#ff6b6b,#feca57);color:#fff;font-weight:800;box-shadow:0 8px 30px rgba(255,107,107,0.14);margin:20px auto;}

/* mobile: force analytics into single horizontal line with minimized fonts */
@media(max-width:480px){
  .thtwitvw-analytics-row{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:6px 4px}
  .thtwitvw-analytics-item{min-width:64px;padding:4px;margin-right:8px}
  .thtwitvw-analytics-number{font-size:13px}
  .thtwitvw-analytics-label{font-size:11px;margin-top:4px}
  .thtwitvw-analytics-card.colorful{padding:8px}
  .thtwitvw-analytics-title-large{font-size:14px;margin-bottom:8px}
  .thtwitvw-profilecard.colorful{padding:12px}
  .thtwitvw-name{font-size:16px}
  .thtwitvw-avatar{width:64px;height:64px}
  .thtwitvw-tweet-text{font-size:14px}
}

/* responsive */
@media(max-width:700px){
  .thtwitvw-input{width:92%}
  .thtwitvw-profilecard.colorful{flex-direction:column;align-items:center;text-align:center}
  .thtwitvw-tweetcard{padding:12px}
}
