/* =========================================================
   GLOBAL ERROR
========================================================= */
.yt-error{
  text-align:center;
  color:#d10000;
  font-weight:700;
  margin-top:20px;
}

/* =========================================================
   GLOBAL TOOL FORM (ALL TOOLS)
========================================================= */
.yt-tool-form{
  max-width:560px;
  margin:30px auto;
  display:flex;
  gap:12px;
}
.yt-tool-form input,
.yt-tool-form select{
  flex:1;
  width:100%;
  padding:14px;
  font-size:15px;
  border-radius:10px;
  border:1px solid #ddd;
}
.yt-tool-form button{
  padding:14px 22px;
  background:#d10000;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:15px;
  cursor:pointer;
  font-weight:700;
  white-space:nowrap;
}

@media(max-width:768px){
  .yt-tool-form{
    flex-direction:column;
  }
  .yt-tool-form button{
    width:100%;
  }
}

/* =========================================================
   COMMON RESULT CARD
========================================================= */
.yt-result-card,
.yt-video-result,
.yt-short-result,
.yt-frequency-result,
.yt-best-time,
.yt-svsl-result,
.yt-rpm-result,
.yt-growth-result,
.yt-tag-result{
  background:#fff;
  padding:28px;
  border-radius:18px;
  max-width:560px;
  margin:40px auto;
  box-shadow:0 25px 60px rgba(0,0,0,.12);
  text-align:center;
}

/* =========================================================
   CHANNEL LOGO / THUMB
========================================================= */
.yt-channel-logo,
.yt-result-card img,
.yt-growth-result img{
  width:96px;
  height:96px;
  border-radius:50%;
  margin-bottom:10px;
}

/* =========================================================
   METRICS GRID (COMMON)
========================================================= */
.yt-video-stats,
.yt-growth-stats,
.yt-metrics{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:18px;
}
.yt-video-stats div,
.yt-growth-stats div,
.yt-metrics div{
  background:#fff5f5;
  padding:14px;
  border-radius:12px;
}
.yt-video-stats strong,
.yt-growth-stats strong,
.yt-metrics strong{
  display:block;
  font-size:18px;
  color:#d10000;
}
.yt-video-stats span,
.yt-growth-stats span,
.yt-metrics span{
  font-size:13px;
  color:#555;
}

@media(max-width:600px){
  .yt-video-stats,
  .yt-growth-stats,
  .yt-metrics{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   SUBSCRIBER COUNTER
========================================================= */
.yt-anim{
  font-size:42px;
  font-weight:800;
  color:#d10000;
}
.yt-sub-short{
  font-size:15px;
  color:#555;
  margin-top:6px;
}

/* =========================================================
   UPLOAD FREQUENCY / BEST TIME
========================================================= */
.yt-engagement{
  background:#ffe2e2 !important;
}

/* =========================================================
   SHORTS VS LONG
========================================================= */
.yt-performance{
  margin-top:18px;
  font-size:16px;
  font-weight:700;
}

/* =========================================================
   RPM & CPM
========================================================= */
.yt-earn{
  font-size:22px;
  font-weight:800;
  color:#d10000;
  margin-top:14px;
}

/* =========================================================
   TAG EXTRACTOR
========================================================= */
.tag-box{
  margin-bottom:20px;
  position:relative;
}
.tag-title{
  font-weight:700;
  margin-bottom:6px;
  display:block;
}
.copy-btn{
  position:absolute;
  top:0;
  right:0;
  background:#000;
  color:#fff;
  border:0;
  padding:6px 10px;
  font-size:12px;
  border-radius:6px;
  cursor:pointer;
}
textarea{
  width:100%;
  height:90px;
  padding:12px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:14px;
}

/* =========================================================
   END
========================================================= */
