/* YouTube Title Counter — tool-specific */
.page { padding: 40px 20px; max-width: 720px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.form-row textarea {
  background: #0d0d0d; border: 1px solid #2a2a2a; color: #fff;
  padding: 12px; border-radius: 6px; font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  resize: vertical; font-weight: 500;
}

.counter-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.counter { font-size: 12px; color: #888; font-family: 'SF Mono', monospace; }
.counter.warn { color: #ffa726; }
.counter.over { color: #ff4444; font-weight: 600; }
.counter-bar { flex: 1; margin-left: 12px; height: 4px; background: #0d0d0d; border-radius: 2px; overflow: hidden; max-width: 200px; }
.counter-fill { display: block; height: 100%; width: 0%; background: #4caf50; transition: width 0.15s, background 0.15s; }
.counter-fill.warn { background: #ffa726; }
.counter-fill.over { background: #ff4444; }

.opt-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; display: block; margin-bottom: 10px; }

.preview-search {
  display: flex; gap: 16px; padding: 12px;
  background: #fff; color: #0f0f0f; border-radius: 10px;
  border: 1px solid #2a2a2a;
}
.preview-thumb {
  width: 240px; height: 135px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff4444, #ff8866); border-radius: 8px;
}
.preview-meta { flex: 1; font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif; }
.preview-title { font-size: 18px; font-weight: 500; line-height: 1.4; color: #0f0f0f; }
.preview-title .cut { color: #aaa; font-weight: 300; }
.preview-channel { font-size: 13px; color: #606060; margin-top: 6px; }
.preview-desc { font-size: 12px; color: #606060; margin-top: 4px; }

.preview-suggested {
  display: flex; gap: 8px; padding: 8px;
  background: #fff; color: #0f0f0f; border-radius: 10px;
  border: 1px solid #2a2a2a; max-width: 360px;
}
.preview-thumb-sm {
  width: 168px; height: 94px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff4444, #ff8866); border-radius: 8px;
}
.preview-meta-sm { flex: 1; font-family: Roboto, sans-serif; }
.preview-meta-sm .preview-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.preview-channel-sm { font-size: 12px; color: #606060; margin-top: 4px; }

.preview-mobile {
  background: #fff; color: #0f0f0f; border-radius: 10px;
  border: 1px solid #2a2a2a; padding: 12px;
  max-width: 360px;
}
.preview-thumb-mobile {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #ff4444, #ff8866); border-radius: 8px;
}
.preview-title-mobile {
  font-size: 15px; font-weight: 500; margin-top: 10px;
  line-height: 1.3; font-family: Roboto, sans-serif;
}
.preview-channel-mobile { font-size: 12px; color: #606060; margin-top: 4px; font-family: Roboto, sans-serif; }

.cutoff-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.cutoff-table th { text-align: left; padding: 6px 12px; color: #888; font-weight: 500; border-bottom: 1px solid #2a2a2a; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.cutoff-table td { padding: 6px 12px; border-bottom: 1px solid #1f1f1f; color: #ccc; }
.cutoff-table td:nth-child(2) { font-family: 'SF Mono', monospace; color: #fff; }

@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
  .preview-search { flex-direction: column; }
  .preview-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
}
