
    :root {
      --primary-blue: #1A73E8;
      --primary-blue-dark: #0F4DC9;
      --bg-page: #F7F9FC;
      --text-main: #333333;
      --text-muted: #666666;
      --card-bg: #FFFFFF;
      --border-light: #E0E0E0;
      --shadow-soft: 0 6px 20px rgba(0,0,0,0.06);
      --radius-card: 12px;
      --radius-input: 8px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
    }

    a { text-decoration: none; color: inherit; }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
    }

    /* 헤더 */
    header {
      background-color: #ffffff;
      border-bottom: 1px solid #EEF1F5;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    .logo {
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--primary-blue);
    }

    .logo img {
      height: 34px;
      width: auto;
      display: block;
    }

    /* 히어로 */
    .hero {
      padding: 32px 0 20px 0;
    }

    .hero-inner {
      text-align: center;
      max-width: 720px;
      margin: 0 auto;
    }

    .hero-title {
      font-size: 1.9rem;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .hero-subtitle {
      font-size: 0.98rem;
      color: var(--text-muted);
    }

    /* 메인 */
    main { padding: 0 0 40px 0; }
    .tool-section { margin-bottom: 22px; }

    /* URL 입력 + 광고 2단 */
    .tool-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 20px;
      align-items: stretch;
    }

    .tool-card {
      background-color: var(--card-bg);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-soft);
      padding: 20px;
    }

    .tool-title {
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .tool-label {
      font-size: 0.9rem;
      font-weight: 500;
      margin-bottom: 6px;
    }

    .tool-input {
      width: 100%;
      padding: 12px 14px;
      border-radius: var(--radius-input);
      border: 1px solid var(--border-light);
      font-size: 0.95rem;
      outline: none;
    }

    .tool-input:focus {
      border-color: var(--primary-blue);
      box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
    }

    .tool-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    .btn {
      border: none;
      border-radius: 999px;
      padding: 9px 18px;
      font-size: 0.9rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .btn-primary {
      background-color: var(--primary-blue);
      color: #ffffff;
    }

    .btn-primary:hover {
      background-color: var(--primary-blue-dark);
    }

    .btn-outline {
      background-color: #ffffff;
      color: var(--primary-blue);
      border: 1px solid var(--primary-blue);
    }

    .examples {
      margin-top: 14px;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .examples-title {
      font-weight: 600;
      margin-bottom: 4px;
    }

    .examples-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .examples-list li {
      margin-bottom: 2px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.8rem;
    }

    /* 광고 박스 */
    .ad-box {
      background-color: var(--card-bg);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-soft);
      padding: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 260px;
    }

    .ad-placeholder {
      width: 100%;
      max-width: 320px;
      aspect-ratio: 1/1;
      border-radius: 10px;
      border: 2px dashed #cbd5e1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      color: #64748b;
      text-align: center;
      padding: 10px;
    }

    /* 결과 카드 */
    .results-grid {
      display: grid;
      grid-template-columns: 2fr 2fr;
      gap: 20px;
    }

    .card {
      background-color: var(--card-bg);
      border-radius: var(--radius-card);
      box-shadow: 0 4px 14px rgba(0,0,0,0.05);
      padding: 22px;
      border: 1px solid #e5e7eb;
      transition: box-shadow 0.2s ease;
    }

    .card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

    .card-title {
      font-size: 1.15rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 16px;
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 10px 0;
      border-bottom: 1px solid #f1f3f5;
    }

    .info-row:last-child { border-bottom: none; }

    .info-label {
      font-size: 0.85rem;
      font-weight: 600;
      color: #64748b;
      min-width: 150px;
    }

    .info-value {
      font-size: 0.92rem;
      font-weight: 600;
      color: #1a73e8;
      word-break: break-word;
      line-height: 1.4;
    }

    .info-value a {
      color: var(--primary-blue);
      text-decoration: none;
    }

    .info-value a:hover { text-decoration: underline; }

    .thumbnail-preview {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .thumb-image-placeholder {
      width: 100%;
      max-width: 420px;
      aspect-ratio: 16/9;
      border-radius: 10px;
      border: 1px dashed var(--border-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      color: var(--text-muted);
      text-align: center;
      padding: 10px;
    }

    .thumb-controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      width: 100%;
    }

    .select {
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid var(--border-light);
      font-size: 0.88rem;
      min-width: 180px;
    }

    footer {
      border-top: 1px solid #E4E7EC;
      background-color: #ffffff;
      padding: 14px 0 20px 0;
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-top: 30px;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }

    .channel-section { margin-top: 20px; }

    /* 반응형 */
    @media (max-width: 900px) {
      .tool-grid { grid-template-columns: 1fr; }
      .results-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      .hero-title { font-size: 1.5rem; }
      .tool-card { padding: 16px; }
      .tool-buttons { flex-direction: column; }
      .btn, .select { width: 100%; }
      .info-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
      }
      .info-label { min-width: unset; }
    }

    .lang-select {
      padding: 6px 10px;
      font-size: 0.9rem;
      border-radius: 6px;
      border: 1px solid var(--border-light);
      background-color: #fff;
      cursor: pointer;
      color: #333;
    }

    .lang-select:focus {
      outline: none;
      border-color: var(--primary-blue);
      box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
    }

    /* ─── 말풍선 툴팁 관련 ─── */
    .lang-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .lang-tooltip {
      position: absolute;
      top: 110%;
      right: 0;
      max-width: 260px;
      background: #ffffff;
      border-radius: 10px;
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
      border: 1px solid #e2e8f0;
      padding: 10px 12px;
      font-size: 0.8rem;
      color: #1f2933;
      z-index: 20;

      opacity: 0;
      transform: translateY(-4px);
      pointer-events: none;
      transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    }

    .lang-tooltip.is-visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .lang-tooltip-body { line-height: 1.4; }

    .lang-tooltip-arrow {
      position: absolute;
      top: -6px;
      right: 24px;
      width: 12px;
      height: 12px;
      background: #ffffff;
      border-left: 1px solid #e2e8f0;
      border-top: 1px solid #e2e8f0;
      transform: rotate(45deg);
    }

    @media (max-width: 600px) {
      .lang-wrapper {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
      }
    }
    .main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
}

.main-nav a {
  color: #4b5563;
  padding: 4px 0;
  position: relative;
}

.main-nav a.active {
  color: #1A73E8; /* var(--primary-blue) */
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: #1A73E8;
}

/* 반응형에서 줄바꿈 깨지지 않게 살짝만 조정 */
@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
  }
}

/* ============================
   Blog layout (YT_info Blog)
   ============================ */

.blog-page main {
  padding-bottom: 40px;
}

/* 상단 히어로 영역 */
.blog-hero {
  padding: 24px 0 10px;
  max-width: 760px;
    margin: 0 auto 24px;   /* 가운데 정렬 + 아래 여백 */
    text-align: center; 
}

.blog-hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.blog-hero-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.blog-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
}

.blog-hero-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #6b7280;
}

/* 전체 레이아웃: 좌측 글, 우측 사이드바 */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.4fr);
  gap: 24px;
  align-items: flex-start;
}

/* 왼쪽: 글 리스트 */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-list-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

/* 글 카드 */
.blog-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 16px 18px 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-card:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

/* 카드 상단 카테고리 배지 (파란칩) */
.blog-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background-color: #e5edff;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px;
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--primary-blue);
}

.blog-card-excerpt {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}

.blog-card-meta strong {
  color: #374151;
}

/* 우측: 사이드바 카드들 */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
  font-size: 0.86rem;
  color: #4b5563;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}

/* Categories 리스트 */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li + li {
  margin-top: 4px;
}

.sidebar-list a {
  color: #4b5563;
}

.sidebar-list a:hover {
  color: var(--primary-blue);
}

/* Popular topics 태그 칩 */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background-color: #eff6ff;
  font-size: 0.78rem;
  color: #1d4ed8;
}

/* 메인툴 버튼형 링크 */
.sidebar-main-link {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--primary-blue);
  font-weight: 500;
}

.sidebar-main-link::after {
  content: "→";
  margin-left: 4px;
}

/* 반응형 */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* ────────────────────────────────
   Blog article layout (single post)
──────────────────────────────── */

.post-wrapper {
  margin-top: 32px;
}

/* 상단 제목 영역 */
.post-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px auto;
}

.post-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-title-main {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.post-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* 본문 + 사이드바 2단 레이아웃 */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* 본문 카드 */
.post-main {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 22px 22px 26px 22px;
}

.post-breadcrumbs {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.post-breadcrumbs a {
  color: #64748b;
}

.post-breadcrumbs a:hover {
  text-decoration: underline;
}

.post-h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #0f172a;
}

.post-h2 {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.post-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  margin: 10px 0;
}

.post-body ul {
  padding-left: 18px;
  margin: 8px 0 12px 0;
}

.post-body li {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 4px;
}

/* 목차 카드 */
.toc-card {
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  padding: 12px 14px;
  margin: 16px 0 20px 0;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.toc-list a {
  color: #1a73e8;
}

/* FAQ 제목 간격 조금 정리 */
.post-body h3 {
  font-size: 0.98rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #111827;
}

/* 본문 하단 카드들 */
.post-bottom-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.post-bottom-card {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 0.9rem;
}

/* 사이드바 영역 */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 14px 16px;
  font-size: 0.88rem;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.sidebar-list li {
  margin-bottom: 4px;
}

.sidebar-list a {
  font-size: 0.86rem;
  color: #475569;
}

/* 토픽 태그들 */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.topic-tag {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

/* 반응형: 모바일에서는 1단 레이아웃 */
@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}
/* 헤더 오른쪽 영역: 메뉴 + 소셜 + 언어 선택 */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 기존 main-nav는 이미 있을 수 있음, 없으면 이 정도면 충분 */
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
}

.main-nav a {
  color: #4b5563;
  padding: 4px 0;
  position: relative;
}

.main-nav a.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: var(--primary-blue);
}

/* 소셜 아이콘 바 */
.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.header-social img {
  width: 32px;
  height: 32px;
  display: block;
}

/* 반응형에서 너무 꽉 차면 줄바꿈 허용 */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
  }
}
.donation-box {
    margin-top: 8px;
}

.donation-box img {
    width: 100%;
    max-width: 260px;
    border-radius: 8px;
    display: block;
}

/* ================================
   Channel Search – Banner & Spinner
   ================================ */

/* 광고 카드 */
.ad-card {
  margin-top: 20px;
}

.ad-card .card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}

.ad-inner {
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.ad-placeholder-text {
  font-size: 0.9rem;
  color: #bbb;
  border: 1px dashed #d0d4e4;
  border-radius: 8px;
  padding: 12px 20px;
}

/* 스피너 (로딩 아이콘) */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d0d4e4;
  border-top-color: #e63946;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================
   Channel Search Table – Pretty style
   ================================ */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: auto;
}

.tool-table thead {
  background: linear-gradient(90deg, #f7f8fc, #f2f3fb);
}

.tool-table th,
.tool-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3e6f0;
}

/* 기본은 한 줄 유지 */
.tool-table th,
.tool-table td {
  white-space: nowrap;
}

/* 채널명만 여러 줄 허용 + 폭 제한 */
.tool-table td:nth-child(2),
.tool-table th:nth-child(2) {
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
}

/* 나머지 스타일은 그대로 */
.tool-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.tool-table tbody tr:nth-child(even) {
  background-color: #fafbff;
}

.tool-table tbody tr:hover {
  background-color: #eef3ff;
}


/* 번호 컬럼 */
.tool-table th:first-child,
.tool-table td:first-child {
  text-align: center;
  width: 40px;
}

/* 숫자 컬럼 오른쪽 정렬 */
.tool-table th:nth-child(4),
.tool-table td:nth-child(4),
.tool-table th:nth-child(5),
.tool-table td:nth-child(5),
.tool-table th:nth-child(9),
.tool-table td:nth-child(9) {
  text-align: right;
}

/* 10만+, Months, Uploads/Week 센터 정렬 */
.tool-table th:nth-child(6),
.tool-table td:nth-child(6),
.tool-table th:nth-child(8),
.tool-table td:nth-child(8),
.tool-table th:nth-child(10),
.tool-table td:nth-child(10) {
  text-align: center;
}

/* 채널명 링크 스타일 */
.tool-table a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.tool-table a:hover {
  text-decoration: underline;
}

/* 빈 결과 행 */
.tool-table .empty-row {
  text-align: center;
  color: #888;
  padding: 18px 0;
}

/* 모바일에서 살짝 줄이기 */
@media (max-width: 768px) {
  .tool-table {
    font-size: 0.8rem;
  }

  .tool-table th,
  .tool-table td {
    padding: 6px 8px;
  }
}


/* 검색 모드 체크박스 라디오버튼 */
.mode-toggle-group {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}

/* Search 버튼 강조 */
.btn-search-strong {
  background-color: #1A73E8 !important;
  color: #ffffff !important;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  box-shadow: 0 3px 8px rgba(26,115,232,0.25);
}

.btn-search-strong:hover {
  background-color: #0F4DC9 !important;
}
