@charset "utf-8";
/* ────────────────────────────────────────────────────────────
   AI MECA 유튜브 파인더 — 전용 스타일 (light theme)
   • aihbee.com reset.css / font.css 재사용 전제
   • CLAUDE.md 색상 표준 준수 (모든 버튼 border+text only, 예외 = 회원가입 노란 CTA 1건)
   • 이모지 금지 (SVG inline만)
   ──────────────────────────────────────────────────────────── */

:root {
  --meca-bg: #ffffff;
  --meca-bg-soft: #fafbfc;
  --meca-bg-card: #f7f8f9;
  --meca-border: #e5e7eb;
  --meca-border-soft: #eef0f2;
  --meca-text: #1c2a2a;
  --meca-text-body: #333333;
  --meca-text-mute: #666666;
  --meca-text-faint: #9098a1;
  --meca-primary: #1c2a2a;
  --meca-primary-hover: #0f1c1c;
  --meca-primary-soft: #6C6E71;
  --meca-yellow: #FEDF68;
  --meca-yellow-hover: #F5D14E;
  --meca-gray-brand: #6C6E71;
  --meca-success: #4a7f4f;
  --meca-error: #8f4a4a;
  --meca-live: #ff3b47;
  --meca-shadow-1: 0 1px 3px rgba(28, 42, 42, 0.04), 0 1px 2px rgba(28, 42, 42, 0.02);
  --meca-shadow-2: 0 4px 12px rgba(28, 42, 42, 0.06);
  --meca-radius: 10px;
}

/* ── Body base (aihbee 스타일 계승 + 라이트 화이트) ────── */
html {
  font-size: 10px;
  overflow-x: hidden;
}
body {
  font-family: "Pretendard", "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--meca-text-body);
  background: var(--meca-bg);
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.55;
}
* { word-break: keep-all; box-sizing: border-box; }

/* ── Layout container ──────────────────────────────────── */
.meca-container {
  max-width: 1232px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.meca-main {
  padding-top: 88px;
  min-height: calc(100dvh - 260px);
}
.meca-section {
  padding: 32px 0;
}

/* ────────────────────────────────────────────────────────
   HEADER (nav)
   ──────────────────────────────────────────────────────── */
.meca-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--meca-border);
  z-index: 100;
}
.meca-header-inner {
  max-width: 1232px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.meca-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--meca-text);
  text-decoration: none;
}
.meca-brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.meca-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.meca-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.meca-brand-title .meca-brand-ai {
  color: var(--meca-yellow);
  background: linear-gradient(180deg, #FEDF68 0%, #F5C420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 2px;
}
.meca-brand-title .meca-brand-meca {
  color: var(--meca-gray-brand);
}
.meca-brand-sub {
  font-size: 11px;
  color: var(--meca-text-mute);
  font-weight: 500;
  letter-spacing: 0;
}

/* Center nav */
.meca-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.meca-nav-item {
  position: relative;
}
.meca-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  color: var(--meca-text);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.meca-nav-link:hover {
  background: #f5f7f7;
  color: var(--meca-primary);
}
.meca-nav-link.is-active {
  color: var(--meca-primary);
  font-weight: 700;
}
.meca-nav-caret {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

/* Nav dropdown */
.meca-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--meca-border);
  border-radius: 10px;
  box-shadow: var(--meca-shadow-2);
  padding: 6px;
}
.meca-nav-item:hover .meca-nav-dropdown,
.meca-nav-item:focus-within .meca-nav-dropdown {
  display: block;
}
.meca-nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--meca-text-body);
  text-decoration: none;
}
.meca-nav-dropdown a:hover {
  background: var(--meca-bg-card);
  color: var(--meca-primary);
}

/* Right actions */
.meca-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meca-header-user {
  font-size: 13px;
  color: var(--meca-text-mute);
  padding-right: 4px;
}
.meca-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--meca-primary);
  color: var(--meca-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.meca-btn-outline:hover {
  color: #fff;
  background: var(--meca-primary);
  border-color: var(--meca-primary);
}
.meca-btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--meca-yellow);
  border: 1px solid var(--meca-yellow);
  color: var(--meca-text);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.meca-btn-yellow:hover {
  background: var(--meca-yellow-hover);
  border-color: var(--meca-yellow-hover);
}

/* Hamburger (mobile) */
.meca-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.meca-hamburger svg { width: 22px; height: 22px; stroke: var(--meca-text); }

.meca-nav-mobile {
  display: none;
}

/* ────────────────────────────────────────────────────────
   HERO (홈 배너)
   ──────────────────────────────────────────────────────── */
.meca-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, rgba(254, 223, 104, 0.08) 0%, rgba(254, 223, 104, 0) 100%);
  border-bottom: 1px solid var(--meca-border-soft);
}
.meca-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.meca-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--meca-text);
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.meca-hero-title .meca-brand-ai {
  color: var(--meca-yellow);
  background: linear-gradient(180deg, #FEDF68 0%, #F5C420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.meca-hero-subtitle {
  font-size: 15px;
  color: var(--meca-text-mute);
  margin-bottom: 26px;
  line-height: 1.6;
}
.meca-hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 32px;
  background: #fff;
  border: 1px solid var(--meca-border);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  box-shadow: var(--meca-shadow-1);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.meca-hero-search:focus-within {
  border-color: var(--meca-primary);
  box-shadow: 0 0 0 3px rgba(28, 42, 42, 0.15);
}
.meca-hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 12px 6px;
  color: var(--meca-text);
  font-family: inherit;
}
.meca-hero-search input::placeholder {
  color: var(--meca-text-faint);
}
.meca-hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--meca-primary);
  color: var(--meca-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.meca-hero-search button:hover {
  color: #fff;
  background: var(--meca-primary);
}

/* Desktop app banner */
.meca-app-banner {
  max-width: 780px;
  margin: 8px auto 0;
  background: #fff;
  border: 1px solid var(--meca-border);
  border-left: 3px solid var(--meca-yellow);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--meca-shadow-1);
}
.meca-app-banner-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--meca-yellow) 0%, #F5C420 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--meca-gray-brand);
}
.meca-app-banner-body { flex: 1; min-width: 0; }
.meca-app-banner-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--meca-text-mute);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.meca-app-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--meca-text);
  margin-bottom: 3px;
}
.meca-app-banner-desc {
  font-size: 13px;
  color: var(--meca-text-mute);
  line-height: 1.5;
}
.meca-app-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────
   Card grid (ranking cards)
   ──────────────────────────────────────────────────────── */
.meca-section-head {
  max-width: 1232px;
  margin: 0 auto;
  padding: 40px 24px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.meca-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--meca-text);
  letter-spacing: -0.4px;
}
.meca-section-desc {
  font-size: 13.5px;
  color: var(--meca-text-mute);
  margin-top: 4px;
}

.meca-grid {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.meca-card {
  background: #fff;
  border: 1px solid var(--meca-border);
  border-radius: var(--meca-radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.meca-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--meca-shadow-2);
  border-color: #d5dbdf;
}
.meca-card-head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--meca-border-soft);
}
.meca-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--meca-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meca-card-sub {
  display: block;
  font-size: 12px;
  color: var(--meca-text-mute);
  margin-top: 3px;
}
.meca-card-body {
  padding: 8px 12px 14px;
  min-height: 260px;
}

/* Ranking items (channel/video row) */
.meca-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meca-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.meca-item:hover { background: var(--meca-bg-card); }
.meca-item-rank {
  width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--meca-text-mute);
  flex-shrink: 0;
}
.meca-item.is-top1 .meca-item-rank {
  color: var(--meca-text);
  background: var(--meca-yellow);
  border-radius: 6px;
  padding: 3px 0;
  font-size: 14px;
}
.meca-item.is-top2 .meca-item-rank,
.meca-item.is-top3 .meca-item-rank { color: var(--meca-primary); }

.meca-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--meca-bg-card);
  flex-shrink: 0;
}
.meca-item-thumb.is-video {
  width: 64px;
  height: 36px;
  border-radius: 4px;
}
.meca-item-body {
  flex: 1;
  min-width: 0;
}
.meca-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--meca-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meca-item-metric {
  font-size: 11.5px;
  color: var(--meca-text-mute);
  margin-top: 2px;
}
.meca-item-metric strong {
  color: var(--meca-primary);
  font-weight: 700;
}
.meca-item.is-top1 .meca-item-name { font-size: 14.5px; }

/* Live dot pulse */
.meca-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--meca-live);
  animation: meca-pulse 1.4s ease-in-out infinite;
}
@keyframes meca-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.2); }
}

/* Skeleton */
.meca-skeleton-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meca-skeleton-list li {
  height: 44px;
  background: linear-gradient(90deg, #f0f2f4 0%, #f7f8f9 50%, #f0f2f4 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  margin: 8px 4px;
  animation: meca-shimmer 1.4s linear infinite;
}
@keyframes meca-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty / Error */
.meca-empty,
.meca-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--meca-text-mute);
  font-size: 13px;
}
.meca-error {
  color: var(--meca-error);
}
.meca-error .meca-btn-outline {
  margin-top: 12px;
}

/* ────────────────────────────────────────────────────────
   Category chips (horizontal scroll)
   ──────────────────────────────────────────────────────── */
.meca-chips {
  max-width: 1232px;
  margin: 0 auto;
  padding: 12px 24px 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.meca-chips::-webkit-scrollbar { display: none; }
.meca-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--meca-border);
  color: var(--meca-text-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.meca-chip:hover {
  color: var(--meca-primary);
  border-color: var(--meca-primary);
}
.meca-chip.is-active {
  color: #fff;
  background: var(--meca-primary);
  border-color: var(--meca-primary);
}

/* ────────────────────────────────────────────────────────
   Country tabs (KR / US / WW)
   ──────────────────────────────────────────────────────── */
.meca-country-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--meca-bg-card);
  border: 1px solid var(--meca-border);
  border-radius: 999px;
  padding: 4px;
}
.meca-country-tabs button {
  padding: 6px 14px;
  background: transparent;
  border: 0;
  color: var(--meca-text-mute);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.meca-country-tabs button:hover { color: var(--meca-primary); }
.meca-country-tabs button.active {
  color: var(--meca-primary);
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 42, 42, 0.06);
}

/* ────────────────────────────────────────────────────────
   Rankings tab (인기/급상승/HOT)
   ──────────────────────────────────────────────────────── */
.meca-ranking-tabs {
  max-width: 1232px;
  margin: 0 auto;
  padding: 8px 24px 4px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--meca-border);
}
.meca-ranking-tab {
  padding: 12px 20px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--meca-text-mute);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.meca-ranking-tab:hover { color: var(--meca-primary); }
.meca-ranking-tab.is-active {
  color: var(--meca-primary);
  border-bottom-color: var(--meca-primary);
  font-weight: 700;
}

/* ────────────────────────────────────────────────────────
   Live grid
   ──────────────────────────────────────────────────────── */
.meca-live-grid {
  max-width: 1232px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.meca-live-card {
  background: #fff;
  border: 1px solid var(--meca-border);
  border-radius: var(--meca-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.meca-live-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--meca-shadow-2);
}
.meca-live-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--meca-bg-card);
}
.meca-live-thumb-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meca-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.meca-live-viewers {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}
.meca-live-body { padding: 12px 14px 14px; }
.meca-live-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--meca-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.meca-live-channel {
  font-size: 12px;
  color: var(--meca-text-mute);
}

/* ────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────── */
.meca-footer {
  background: var(--meca-bg-soft);
  border-top: 1px solid var(--meca-border);
  margin-top: 40px;
  padding: 36px 24px 40px;
  color: var(--meca-text-mute);
  font-size: 12.5px;
  line-height: 1.7;
}
.meca-footer-inner {
  max-width: 1232px;
  margin: 0 auto;
}
.meca-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--meca-border);
  margin-bottom: 16px;
}
.meca-footer-links a {
  color: var(--meca-text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.meca-footer-links a:hover { color: var(--meca-primary); }
.meca-footer-links .meca-sep { color: var(--meca-border); }
.meca-footer-company {
  color: var(--meca-text);
  font-weight: 600;
  margin-bottom: 6px;
}
.meca-footer-address,
.meca-footer-biz {
  color: var(--meca-text-mute);
}
.meca-footer-copy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--meca-border-soft);
  color: var(--meca-text-faint);
  font-size: 12px;
}

/* ────────────────────────────────────────────────────────
   Responsive
   ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .meca-hero-title { font-size: 26px; }
  .meca-hero-subtitle { font-size: 14px; }
  .meca-app-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .meca-app-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .meca-nav,
  .meca-header-actions .meca-header-user { display: none; }
  .meca-hamburger { display: inline-flex; }

  .meca-nav-mobile {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--meca-border);
    box-shadow: var(--meca-shadow-2);
    padding: 12px 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .meca-nav-mobile.is-open { display: block; }
  .meca-nav-mobile a {
    display: block;
    padding: 14px 24px;
    color: var(--meca-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--meca-border-soft);
  }
  .meca-nav-mobile a:hover { background: var(--meca-bg-card); color: var(--meca-primary); }

  .meca-grid { grid-template-columns: 1fr; }
  .meca-section-head { flex-direction: column; align-items: flex-start; }
  .meca-hero { padding: 40px 0 28px; }
  .meca-main { padding-top: 76px; }
}
@media (max-width: 480px) {
  .meca-hero-title { font-size: 22px; }
  .meca-brand-sub { display: none; }
  .meca-header-inner { padding: 0 16px; gap: 8px; }
}

/* ────────────────────────────────────────────────────────
   Signup CTA (미로그인 유도, insights.html 등)
   ──────────────────────────────────────────────────────── */
.meca-cta-card {
  max-width: 640px;
  margin: 40px auto;
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
  border: 1px solid var(--meca-border);
  border-left: 3px solid var(--meca-yellow);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
}
.meca-cta-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--meca-text);
  margin-bottom: 8px;
}
.meca-cta-card p {
  font-size: 13.5px;
  color: var(--meca-text-mute);
  margin-bottom: 16px;
}
.meca-cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.meca-cta-benefits li {
  padding: 6px 0 6px 22px;
  font-size: 13px;
  color: var(--meca-text-body);
  position: relative;
}
.meca-cta-benefits li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--meca-primary);
}
.meca-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────
   Search (channel detail hero)
   ──────────────────────────────────────────────────────── */
.meca-channel-hero {
  max-width: 1232px;
  margin: 0 auto;
  padding: 32px 24px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--meca-border-soft);
}
.meca-channel-thumb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--meca-bg-card);
  object-fit: cover;
  flex-shrink: 0;
}
.meca-channel-hero-body { flex: 1; min-width: 0; }
.meca-channel-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--meca-text);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.meca-channel-stats {
  display: flex;
  gap: 20px;
  color: var(--meca-text-mute);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.meca-channel-stats span { display: inline-flex; gap: 4px; align-items: baseline; }
.meca-channel-stats strong {
  color: var(--meca-text);
  font-weight: 700;
  font-size: 15px;
}

/* Chart + section title in channel detail */
.meca-page-title {
  max-width: 1232px;
  margin: 30px auto 12px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--meca-text);
}
.meca-chart-wrap {
  max-width: 1232px;
  margin: 0 auto 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--meca-border);
  border-radius: 10px;
  min-height: 260px;
}

/* Favorite button (channel detail) */
.meca-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--meca-primary);
  color: var(--meca-primary);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
  margin-top: 14px;
}
.meca-favorite-btn:hover:not(:disabled) {
  color: #fff;
  background: var(--meca-primary);
}
.meca-favorite-btn.is-favorited {
  border-color: var(--meca-yellow);
  color: #8c6a00;
}
.meca-favorite-btn:disabled {
  border-color: var(--meca-border);
  color: var(--meca-text-faint);
  cursor: default;
}

/* Toast */
.meca-toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.meca-toast {
  background: rgba(28, 42, 42, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--meca-shadow-2);
}

/* Utility */
.meca-hidden { display: none !important; }

/* ─── 자동 슬라이딩 배너 (aihbee.com swiper 스타일) ─── */
.meca-slider-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
}
.meca-swiper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2a2a 0%, #2c3a3a 100%);
}
.meca-swiper .swiper-slide { display: flex; align-items: center; }
.meca-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 64px;
  color: #ffffff;
}
.meca-slide-icon { flex-shrink: 0; }
.meca-slide-body { flex: 1; min-width: 0; }
.meca-slide-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: #FEDF68;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.meca-slide-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.meca-slide-desc {
  font-size: 14px;
  color: #d5dbdf;
  line-height: 1.5;
}
.meca-slide-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.meca-btn-slide-outline,
.meca-btn-slide-yellow {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.meca-btn-slide-outline {
  color: #ffffff;
  border: 1.5px solid #ffffff;
  background: transparent;
}
.meca-btn-slide-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.meca-btn-slide-yellow {
  color: #1c2a2a;
  background: #FEDF68;
  border: 1.5px solid #FEDF68;
}
.meca-btn-slide-yellow:hover {
  background: #F5D14E;
  border-color: #F5D14E;
}

/* Swiper 화살표 — 헬퍼비 브랜드 노랑 (파란색 override) */
.meca-swiper {
  --swiper-navigation-color: #FEDF68;
  --swiper-navigation-size: 14px;
}
.meca-swiper-prev,
.meca-swiper-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: none;
  color: #FEDF68 !important;
  transition: background 0.15s ease;
}
.meca-swiper-prev:hover,
.meca-swiper-next:hover { background: rgba(255, 255, 255, 0.2); }
.meca-swiper-prev::after,
.meca-swiper-next::after {
  font-size: 14px;
  font-weight: 700;
  color: #FEDF68 !important;
}

/* Swiper 페이지네이션 */
.meca-swiper-pagination {
  bottom: 12px !important;
}
.meca-swiper-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: background 0.2s;
}
.meca-swiper-pagination .swiper-pagination-bullet-active {
  background: #FEDF68;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .meca-swiper { height: auto; min-height: 260px; }
  .meca-slide {
    flex-direction: column;
    padding: 32px 24px;
    gap: 16px;
    text-align: center;
  }
  .meca-slide-actions { flex-wrap: wrap; justify-content: center; }
  .meca-slide-title { font-size: 18px; }
  .meca-swiper-prev, .meca-swiper-next { display: none; }
}

/* ─── 스탯 카운터 스트립 ─── */
.meca-stats-strip {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.meca-stat { text-align: center; }
.meca-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #1c2a2a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.meca-stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .meca-stats-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .meca-stat-num { font-size: 24px; }
}

/* ─── 오늘의 트렌드 (워드 클라우드 + 랭킹) ─── */
.meca-trend-wrap {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
}
.meca-trend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.meca-trend-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c2a2a;
}
.meca-trend-date {
  font-size: 13px;
  color: #666;
}
/* v1.7 페이지 공통 국가 필터 (한 번 클릭 → 모든 카드 필터) */
.meca-page-country-tabs {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f2f4;
}
.meca-page-country-label {
  font-size: 13px;
  color: #6C6E71;
  font-weight: 500;
}
.meca-page-country-tabs button {
  padding: 8px 20px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6C6E71;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.meca-page-country-tabs button:hover {
  color: #1c2a2a;
  border-color: #1c2a2a;
}
.meca-page-country-tabs button.active {
  background: #1c2a2a;
  color: #ffffff;
  border-color: #1c2a2a;
}

/* v1.7 국가 필터 tabs (leaves legacy, 지금은 미사용) */
.meca-trend-country-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f5f6f8;
  border-radius: 20px;
}
.meca-trend-country-tabs button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #6C6E71;
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.meca-trend-country-tabs button:hover {
  color: #1c2a2a;
}
.meca-trend-country-tabs button.active {
  background: #1c2a2a;
  color: #ffffff;
}
.meca-trend-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}
.meca-trend-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1c2a2a;
  margin-bottom: 16px;
}

/* 워드 클라우드 — 헬퍼비 표준 타원 나선 배치 (Golden angle Fibonacci) */
.meca-wordcloud {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.meca-word {
  position: absolute;
  white-space: nowrap;
  font-family: Pretendard, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}
.meca-word:hover {
  color: #fff !important;
  background: #202020;
  border-radius: 6px;
  padding: 2px 6px;
  z-index: 100 !important;
  opacity: 1 !important;
}
@keyframes mecaWcFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% + 2px), calc(-50% - 4px)); }
  50% { transform: translate(calc(-50% - 1px), calc(-50% - 6px)); }
  75% { transform: translate(calc(-50% - 3px), calc(-50% - 2px)); }
}
@keyframes mecaWcSway {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 4px), calc(-50% + 2px)); }
  50% { transform: translate(calc(-50% + 3px), calc(-50% + 5px)); }
  75% { transform: translate(calc(-50% + 5px), calc(-50% - 1px)); }
}
@keyframes mecaWcDrift {
  0%, 100% { transform: translate(-50%, -50%); }
  33% { transform: translate(calc(-50% + 3px), calc(-50% - 3px)); }
  66% { transform: translate(calc(-50% - 2px), calc(-50% + 4px)); }
}

/* 랭킹 리스트 */
.meca-trend-rank {
  border-left: 1px solid #e5e7eb;
  padding-left: 20px;
}
.meca-trend-rank ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meca-trend-rank li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f2f4;
  transition: background 0.15s;
  cursor: pointer;
}
.meca-trend-rank li:hover { background: #fafbfc; }
.meca-trend-rank li:last-child { border-bottom: none; }
.meca-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  background: #f0f2f4;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.meca-rank-num.rank-1 { background: #FEDF68; color: #1c2a2a; }
.meca-rank-num.rank-2 { background: #F5D14E; color: #1c2a2a; }
.meca-rank-num.rank-3 { background: #F5C420; color: #1c2a2a; }
.meca-rank-name {
  font-size: 14px;
  color: #1c2a2a;
  font-weight: 500;
}

@media (max-width: 768px) {
  .meca-trend-body { grid-template-columns: 1fr; }
  .meca-trend-rank { border-left: none; border-top: 1px solid #e5e7eb; padding-left: 0; padding-top: 20px; }
  .meca-wordcloud { height: 220px; }
}

/* ─── Fade-in on scroll ─── */
.meca-fade-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.meca-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* 카드 hover 강화 (더 다이나믹) */
.meca-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.meca-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 42, 42, 0.08);
  border-color: #FEDF68;
}

/* ────────────────────────────────────────────────────────
   토픽 차트 그리드 (Playboard 레이아웃 + 헬퍼비 스타일)
   • 배경 이미지 없음 (헬퍼비 톤 단색)
   • 파란 hex 절대 금지
   ──────────────────────────────────────────────────────── */
.meca-topic-charts {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px 60px;
}
.meca-topic-header {
  border-left: 3px solid #FEDF68;
  padding-left: 12px;
  margin-bottom: 24px;
}
.meca-topic-header h2 { font-size: 22px; font-weight: 700; color: #1c2a2a; margin-bottom: 4px; }
.meca-topic-header p { font-size: 13px; color: #888; }

.meca-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .meca-topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .meca-topic-grid { grid-template-columns: 1fr; } }

.meca-topic-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.meca-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,42,42,0.08);
  border-color: #FEDF68;
}

/* 카드 헤더: 헬퍼비 톤, 배경 이미지 없음 */
.meca-topic-card-head {
  background: #fafbfc;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f2f4;
}

/* 카테고리 tag (rounded pill) */
.meca-topic-tag {
  background: #1c2a2a;
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* [일간|주간] 탭 */
.meca-topic-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 2px;
}
.meca-topic-tabs button {
  background: transparent;
  border: none;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.meca-topic-tabs button.active {
  background: #1c2a2a;
  color: #ffffff;
}

/* 리스트 */
.meca-topic-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-height: 260px;
}
.meca-topic-list li {
  display: grid;
  grid-template-columns: 24px 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.meca-topic-list li:hover { background: #fafbfc; }

.meca-topic-rank {
  font-size: 14px;
  font-weight: 500;
  color: #999;
  text-align: center;
}
.meca-topic-thumb {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f2f4;
}
.meca-topic-name {
  font-size: 14px;
  color: #1c2a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* delta 인디케이터 — 헬퍼비 톤 (파란 hex 금지) */
.meca-topic-delta {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.meca-topic-delta.up { color: #d9534f; }
.meca-topic-delta.down { color: #6c757d; }
.meca-topic-delta.new {
  background: #FEDF68;
  color: #1c2a2a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.meca-topic-delta.same { color: #ccc; }

.meca-topic-delta.up::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #d9534f;
  margin-right: 4px;
  vertical-align: middle;
}
.meca-topic-delta.down::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #6c757d;
  margin-right: 4px;
  vertical-align: middle;
}

/* 더보기 */
.meca-topic-more {
  text-align: center;
  color: #999;
  padding: 12px 16px 16px;
  font-size: 18px;
  letter-spacing: 4px;
  border-top: 1px solid #f0f2f4;
  cursor: pointer;
  transition: color 0.2s, background 0.15s;
}
.meca-topic-more:hover { color: #1c2a2a; background: #fafbfc; }

/* ============================================================
   상단 6-card 그리드 (실시간 인기 랭킹, Playboard 스타일)
   Row 1: 슈퍼챗 / 라이브 시청자 / 인기
   Row 2: 구독자 급상승 / 최다 조회 영상 / 최다 조회 광고
   ============================================================ */
.meca-top-charts {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 16px;
}
.meca-top-charts-head {
  border-left: 3px solid #FEDF68;
  padding-left: 12px;
  margin-bottom: 20px;
}
.meca-top-charts-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1c2a2a;
  margin-bottom: 4px;
}
.meca-top-charts-head p {
  font-size: 13px;
  color: #888;
}
.meca-top-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .meca-top-charts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .meca-top-charts-grid { grid-template-columns: 1fr; } }

/* 영상/광고 rectangular thumbnail 리스트 */
.meca-video-list {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  min-height: 260px;
}
.meca-video-list li {
  display: grid;
  /* YouTube API Services III.C.1: 재생을 시작하는 썸네일은 최소 120x70.
     16:9 에서 폭 120 은 높이 67.5 라 미달이므로 128 로 둔다 (=128x72). */
  grid-template-columns: 128px 1fr;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.meca-video-list li:hover { background: #fafbfc; }
.meca-video-thumb-wrap {
  position: relative;
  /* III.C.1 최소 120x70 — 128 x (16/9) = 128x72 */
  width: 128px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f2f4;
}
.meca-video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.meca-video-rank-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(28,42,42,0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.meca-video-live-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: #ff3b47;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.meca-video-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.meca-video-title {
  font-size: 13px;
  color: #1c2a2a;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meca-video-views {
  font-size: 13px;
  color: #ff3b47;
  font-weight: 600;
}
.meca-video-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  min-width: 0;
}
.meca-video-channel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meca-video-channel-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f2f4;
  flex-shrink: 0;
}

/* 구독자 delta (녹색 +) */
.meca-topic-delta.subgrowth {
  color: #4a7f4f;
  font-weight: 700;
}

/* Placeholder 스타일 — grid 부모 override (v1.7 fix) */
.meca-topic-list .meca-top-placeholder,
.meca-video-list .meca-top-placeholder {
  display: block !important;
  grid-template-columns: none !important;
  grid-column: 1 / -1 !important;
  padding: 60px 16px !important;
  text-align: center;
  color: #999;
  font-size: 13px;
  list-style: none;
  cursor: default !important;
  background: transparent !important;
  min-height: 220px;
}
.meca-topic-list .meca-top-placeholder:hover,
.meca-video-list .meca-top-placeholder:hover {
  background: transparent !important;
}
.meca-top-placeholder .note {
  font-size: 11px;
  color: #ccc;
  display: block;
  margin-top: 8px;
}

/* ============================================================
   Advanced Search Page (search.html)
   Playboard 스타일 — 헬퍼비 톤 (파란 hex 금지, 이모지 금지)
   ============================================================ */
.meca-search-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 0;
}
.meca-search-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.meca-search-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c2a2a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.meca-search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(28, 42, 42, 0.04);
}
.meca-search-bar-wrap:focus-within {
  border-color: #1c2a2a;
  box-shadow: 0 0 0 3px rgba(28, 42, 42, 0.1);
}
.meca-search-icon { color: #6c6e71; flex-shrink: 0; }
.meca-search-bar-wrap input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: #1c2a2a;
  font-family: inherit;
  padding: 2px 0;
}
.meca-search-bar-wrap input[type="search"]::placeholder { color: #9098a1; }
.meca-search-bar-wrap input[type="search"]::-webkit-search-cancel-button { display: none; }
.meca-search-clear {
  display: none;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: #6c6e71;
  border-radius: 50%;
  transition: background 0.15s;
}
.meca-search-clear:hover { background: #f0f2f4; color: #1c2a2a; }

.meca-search-tabs {
  max-width: 780px;
  margin: 20px auto 0;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
}
.meca-search-tabs button {
  padding: 12px 20px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.meca-search-tabs button:hover:not(:disabled) { color: #1c2a2a; }
.meca-search-tabs button.active {
  color: #1c2a2a;
  border-bottom-color: #1c2a2a;
  font-weight: 700;
}
.meca-search-tabs button:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 요약 라인 */
.meca-search-summary {
  max-width: 1200px;
  margin: 24px auto 12px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
  color: #666;
  flex-wrap: wrap;
}
.meca-search-summary-left { color: #1c2a2a; font-weight: 500; }
.meca-search-total strong { color: #1c2a2a; font-weight: 700; }

/* 필터 그리드 */
.meca-search-filters {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 20px;
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.meca-filter-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #f0f2f4;
}
.meca-filter-row:last-of-type { border-bottom: 0; }
.meca-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1c2a2a;
}
.meca-info {
  color: #9098a1;
  font-size: 11px;
  cursor: help;
}
.meca-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meca-filter-chips button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #333;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.meca-filter-chips button:hover:not(:disabled) {
  color: #1c2a2a;
  border-color: #1c2a2a;
}
.meca-filter-chips button.active {
  color: #fff;
  background: #1c2a2a;
  border-color: #1c2a2a;
}
.meca-filter-chips button:disabled {
  color: #ccc;
  border-color: #eef0f2;
  background: #fafbfc;
  cursor: not-allowed;
}

.meca-filter-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meca-filter-range input[type="number"] {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
  color: #1c2a2a;
  background: #fff;
  outline: 0;
  transition: border-color 0.15s;
}
.meca-filter-range input[type="number"]:focus { border-color: #1c2a2a; }
.meca-filter-range input[type="number"]:disabled { background: #fafbfc; color: #ccc; cursor: not-allowed; }
.meca-filter-range input[type="number"]::-webkit-outer-spin-button,
.meca-filter-range input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.meca-filter-range input[type="number"] { -moz-appearance: textfield; }
.meca-filter-dash { color: #9098a1; font-size: 13px; }
.meca-filter-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid #1c2a2a;
  color: #1c2a2a;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.meca-filter-apply:hover { color: #fff; background: #1c2a2a; }

.meca-filter-disabled { opacity: 0.6; }
.meca-filter-disabled .meca-filter-chips button { cursor: not-allowed; }
.meca-filter-note {
  font-size: 11.5px;
  color: #FEDF68;
  background: #fffbea;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #FEDF68;
  color: #8c6a00;
  font-weight: 500;
  white-space: nowrap;
}

.meca-filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.meca-filter-reset {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid #6c6e71;
  color: #6c6e71;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.meca-filter-reset:hover { color: #fff; background: #6c6e71; }
.meca-filter-hint { font-size: 12px; color: #9098a1; }
.meca-filter-hint a { color: #1c2a2a; text-decoration: underline; }

/* 정렬 바 */
.meca-search-sort-bar {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
}
.meca-search-sort-wrap { position: relative; }
.meca-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #1c2a2a;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.meca-sort-btn:hover { border-color: #1c2a2a; }
.meca-sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  list-style: none;
  margin: 0;
  box-shadow: 0 4px 12px rgba(28, 42, 42, 0.08);
  z-index: 50;
}
.meca-sort-menu li {
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.meca-sort-menu li:hover { background: #fafbfc; color: #1c2a2a; }
.meca-sort-menu li.active,
.meca-sort-menu li[aria-selected="true"] { color: #1c2a2a; font-weight: 700; background: #f7f8f9; }

/* 결과 카드 */
.meca-search-results {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.meca-search-loading,
.meca-search-empty,
.meca-search-error {
  padding: 60px 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
  background: #fafbfc;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}
.meca-search-empty .hint { color: #9098a1; font-size: 12.5px; margin-top: 8px; }
.meca-search-error { color: #8f4a4a; }
.meca-search-error .meca-btn-outline { margin-top: 12px; }

.meca-search-result-card {
  display: grid;
  grid-template-columns: 72px 1fr 200px;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.meca-search-result-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 42, 42, 0.06);
  border-color: #FEDF68;
}
.meca-search-card-thumb-link {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.meca-search-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f2f4;
  display: block;
}
.meca-search-card-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.meca-search-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meca-search-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #1c2a2a;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}
.meca-search-card-name:hover { text-decoration: underline; }
.meca-search-card-country {
  padding: 2px 7px;
  background: #f0f2f4;
  color: #6c6e71;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}
.meca-search-live-badge {
  padding: 2px 8px;
  background: #ff3b47;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}
.meca-search-catch-badge {
  padding: 2px 8px;
  background: #FEDF68;
  color: #1c2a2a;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}
.meca-search-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.meca-search-result-tags .meca-tag {
  padding: 2px 8px;
  background: #f7f8f9;
  color: #6c6e71;
  font-size: 11.5px;
  border-radius: 4px;
  border: 1px solid #eef0f2;
}
.meca-search-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #666;
  align-items: center;
}
.meca-search-card-meta strong { color: #1c2a2a; font-weight: 700; }
.meca-search-card-meta .sep { color: #ccc; }

.meca-search-card-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  padding-left: 14px;
  border-left: 1px solid #f0f2f4;
}
.meca-search-stat { text-align: right; }
.meca-search-stat-label {
  font-size: 11px;
  color: #9098a1;
  margin-bottom: 2px;
}
.meca-search-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #1c2a2a;
  font-variant-numeric: tabular-nums;
}

/* 페이지네이션 */
.meca-search-pagination {
  max-width: 1200px;
  margin: 28px auto 40px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.meca-page-btn {
  min-width: 34px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #333;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.meca-page-btn:hover:not(:disabled):not(.is-active) {
  color: #1c2a2a;
  border-color: #1c2a2a;
}
.meca-page-btn.is-active {
  color: #fff;
  background: #1c2a2a;
  border-color: #1c2a2a;
  cursor: default;
}
.meca-page-btn:disabled { color: #ccc; border-color: #eef0f2; cursor: not-allowed; }
.meca-page-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #9098a1;
  font-size: 12.5px;
}

/* 모바일 반응형 */
@media (max-width: 900px) {
  .meca-filter-row { grid-template-columns: 100px 1fr; grid-template-rows: auto auto; }
  .meca-filter-range { grid-column: 2 / -1; }
  .meca-search-result-card { grid-template-columns: 60px 1fr; }
  .meca-search-card-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid #f0f2f4;
    align-items: flex-start;
  }
  .meca-search-stat { text-align: left; }
}
@media (max-width: 600px) {
  .meca-filter-row { grid-template-columns: 1fr; }
  .meca-filter-range { grid-column: 1; }
  .meca-search-title { font-size: 18px; }
  .meca-search-card-name { max-width: 220px; font-size: 15px; }
  .meca-search-summary { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   상단 6-card grid — topic-item / empty / skeleton (v1.7)
   app.js loadTopCharts 가 렌더링. channel style (원형 thumb) + video style (사각 thumb).
   ============================================================ */
.meca-topic-list .meca-topic-item,
.meca-video-list .meca-topic-item {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f6f8;
}
.meca-topic-list .meca-topic-item:last-child,
.meca-video-list .meca-topic-item:last-child { border-bottom: none; }
.meca-topic-list .meca-topic-item:hover,
.meca-video-list .meca-topic-item:hover { background: #fafbfc; }

.meca-topic-item .meca-topic-rank {
  font-size: 14px;
  font-weight: 600;
  color: #6C6E71;
  text-align: center;
}
.meca-topic-item .meca-topic-thumb-channel {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f2f4;
}
.meca-topic-item .meca-topic-thumb-video {
  width: 88px; height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f2f4;
}
.meca-topic-item .meca-topic-info {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.meca-topic-item .meca-topic-name {
  font-size: 14px;
  color: #1c2a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.3;
}
.meca-topic-item .meca-topic-sub {
  font-size: 12px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meca-topic-item .meca-topic-metric {
  font-size: 12px;
  color: #6C6E71;
}

/* empty / unavailable / error */
.meca-topic-empty {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px !important;
  text-align: center;
  cursor: default !important;
  background: transparent !important;
  min-height: 220px;
  border-bottom: none !important;
}
.meca-topic-empty:hover { background: transparent !important; }
.meca-topic-empty-title {
  font-size: 14px;
  color: #6C6E71;
  font-weight: 500;
  margin-bottom: 6px;
}
.meca-topic-empty-sub {
  font-size: 12px;
  color: #aaa;
}
.meca-topic-unavailable .meca-topic-empty-title { color: #999; }
.meca-topic-error .meca-topic-empty-title { color: #d9534f; }

/* skeleton */
.meca-topic-skeleton {
  height: 52px;
  background: linear-gradient(90deg, #f5f6f8 0%, #eef0f2 50%, #f5f6f8 100%);
  background-size: 200% 100%;
  animation: meca-shimmer 1.4s ease-in-out infinite;
  margin: 6px 16px;
  border-radius: 6px;
  display: block !important;
  border-bottom: none !important;
  cursor: default !important;
}
.meca-topic-skeleton:hover {
  background: linear-gradient(90deg, #f5f6f8 0%, #eef0f2 50%, #f5f6f8 100%) !important;
}
@keyframes meca-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* period tab disabled 상태 */
.meca-topic-tabs button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
