/* TP_YOUTUBE_DETAILS_GENERATOR_V1 */
:root{
  --bg:#080b18;
  --card:rgba(255,255,255,.075);
  --line:rgba(255,255,255,.14);
  --text:#f7f8ff;
  --muted:#b6bdd4;
  --brand:#8b5cf6;
  --brand2:#22c55e;
  --danger:#fb7185;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left,rgba(139,92,246,.35),transparent 34%),
    radial-gradient(circle at bottom right,rgba(34,197,94,.18),transparent 30%),
    linear-gradient(135deg,#070917,#10142a 60%,#070917);
}
.tp-yt-wrap{max-width:1180px;margin:0 auto;padding:28px 18px 42px}
.tp-yt-hero{
  border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.045));
  border-radius:24px;
  padding:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.tp-yt-kicker{color:#c4b5fd;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.tp-yt-hero h1{margin:8px 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.05}
.tp-yt-hero p{margin:0;color:var(--muted);max-width:820px;line-height:1.6}
.tp-yt-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.78fr);gap:18px;margin-top:18px}
.tp-card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 48px rgba(0,0,0,.18);
}
.tp-card h2{margin:0 0 12px;font-size:20px}
.tp-card h3{margin:18px 0 8px;font-size:15px;color:#ddd6fe}
label{display:block;font-size:13px;color:var(--muted);margin:12px 0 6px}
input,textarea{
  width:100%;
  color:var(--text);
  background:rgba(0,0,0,.22);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 13px;
  outline:none;
}
textarea{min-height:160px;resize:vertical;line-height:1.5}
input:focus,textarea:focus{border-color:rgba(139,92,246,.7);box-shadow:0 0 0 3px rgba(139,92,246,.15)}
.tp-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
button,.tp-link-btn{
  border:0;
  border-radius:999px;
  padding:11px 15px;
  font-weight:800;
  color:white;
  background:linear-gradient(135deg,var(--brand),#6366f1);
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
button.secondary{background:rgba(255,255,255,.12);border:1px solid var(--line)}
button.green{background:linear-gradient(135deg,var(--brand2),#16a34a)}
button.danger{background:linear-gradient(135deg,var(--danger),#e11d48)}
.tp-status{margin-top:10px;color:var(--muted);font-size:13px;min-height:18px}
.tp-output{
  min-height:90px;
  white-space:pre-wrap;
  overflow:auto;
  background:rgba(0,0,0,.26);
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px;
  line-height:1.5;
  color:#f8fafc;
}
.tp-output.small{min-height:58px}
.tp-copybar{display:flex;gap:8px;justify-content:flex-end;margin:8px 0 14px}
.tp-copybar button{padding:8px 11px;font-size:12px}
.tp-note{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  border-left:3px solid rgba(139,92,246,.8);
  padding-left:12px;
}
.tp-pillrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tp-pill{font-size:12px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid var(--line);color:#dbeafe}
@media(max-width:900px){
  .tp-yt-grid{grid-template-columns:1fr}
  .tp-row{grid-template-columns:1fr}
  .tp-yt-wrap{padding:18px 12px 32px}
}


/* TP_YD_PROGRESS_BAR_V1 */
.tp-yd-progress{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(0,0,0,.22);
  display:none;
}
.tp-yd-progress.tp-show{
  display:block;
}
.tp-yd-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:8px;
}
.tp-yd-progress-track{
  width:100%;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.10);
}
.tp-yd-progress-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg,#22c55e,#8b5cf6,#38bdf8);
  transition:width .28s ease;
  box-shadow:0 0 18px rgba(139,92,246,.45);
}


/* TP_YD_HERO_COMPACT_V1 */
.tp-yt-hero-compact{
  padding:18px 24px !important;
}
.tp-yt-hero-compact .tp-yt-kicker{
  font-size:12px !important;
  letter-spacing:.12em !important;
  margin-bottom:6px !important;
}
.tp-yt-hero-compact h1{
  margin:0 0 6px !important;
  font-size:clamp(24px,2.4vw,34px) !important;
  line-height:1.08 !important;
  font-weight:750 !important;
}
.tp-yt-hero-compact p{
  margin:0 !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:15px !important;
  line-height:1.45 !important;
}
@media(max-width:900px){
  .tp-yt-hero-compact p{
    white-space:normal !important;
  }
}

/* TP_YD_EDITABLE_OUTPUTS_V1 */
textarea.tp-output.tp-editable-output{
  display:block;
  width:100%;
  box-sizing:border-box;
  min-height:120px;
  white-space:pre-wrap;
  overflow:auto;
  font-family:inherit;
  line-height:1.45;
  resize:vertical;
}
textarea.tp-output.tp-editable-output.small{
  min-height:72px;
}
textarea.tp-output.tp-editable-output.full{
  min-height:260px;
}
textarea.tp-output.tp-editable-output:focus{
  border-color:rgba(139,92,246,.7);
  box-shadow:0 0 0 3px rgba(139,92,246,.15);
  outline:none;
}

/* TP_YD_EDITABLE_AUTOEXPAND_V1 */
textarea.tp-output.tp-editable-output{
  overflow:hidden;
  resize:vertical;
}
textarea.tp-output.tp-editable-output.full{
  resize:vertical;
}

/* TP_YD_LANGUAGE_SELECT_STYLE_V1 */
.tp-yd-language-select,
#tab-youtube .tp-yd-language-select{
  width:100%;
  box-sizing:border-box;
  margin:6px 0 8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(15,23,42,.72);
  color:#f8fafc;
  font:inherit;
  outline:none;
}
.tp-yd-language-select:focus,
#tab-youtube .tp-yd-language-select:focus{
  border-color:rgba(139,92,246,.7);
  box-shadow:0 0 0 3px rgba(139,92,246,.15);
}
.tp-yd-language-select option{
  background:#111827;
  color:#f8fafc;
}

