.external-trends-section {
  padding: 4px 0 34px;
}

.external-trends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.external-trends-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.external-trends-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}

.external-trends-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
}

.external-source-logo {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 900;
}

.external-source-google {
  color: #1769e0;
  background: #edf4ff;
}

.external-source-x {
  color: #fff;
  background: #111;
}

html[data-theme="dark"] .external-source-google {
  color: #8ab6ff;
  background: #17263b;
}

.external-trends-list {
  display: grid;
  padding: 0 22px 20px;
}

.external-trend-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.external-trend-row:hover {
  color: var(--brand);
}

.external-trend-rank {
  color: var(--brand);
  font-weight: 900;
}

.external-trend-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.external-trend-volume {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .75rem;
  font-weight: 800;
}

.external-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 24px;
}

.external-hashtag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
  font-weight: 800;
}

.external-hashtag:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}

.external-trends-time {
  color: var(--muted);
  font-size: .72rem;
}

.external-trends-empty {
  padding: 40px 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 991px) {
  .external-trends-grid {
    grid-template-columns: 1fr;
  }
}


.external-trends-grid-single {
  grid-template-columns: 1fr;
}

.search-topics-bottom-section {
  padding-top: 12px;
  padding-bottom: 60px;
}

.search-topics-heading {
  margin-bottom: 18px;
}

.search-topics-description {
  margin: 7px 0 0;
  color: var(--muted);
}

.search-topics-bottom-section .external-trends-card {
  overflow: visible;
}

.search-topics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  padding-top: 8px;
}

.search-topics-list .external-trend-row:nth-child(1),
.search-topics-list .external-trend-row:nth-child(2) {
  border-top: 0;
}

@media (max-width: 767px) {
  .search-topics-list {
    grid-template-columns: 1fr;
  }

  .search-topics-list .external-trend-row:nth-child(2) {
    border-top: 1px solid var(--border);
  }

  .search-topics-heading {
    align-items: flex-start;
  }
}


/* ==========================================================
   Google rising searches — V7
   Isolated styles with fallback values to avoid theme mismatch.
   ========================================================== */

.google-rising-section {
  padding: 22px 0 64px;
}

.google-rising-panel {
  overflow: hidden;
  border: 1px solid var(--border, #e4e9e6);
  border-radius: 28px;
  background: var(--surface, #ffffff);
  box-shadow:
    0 22px 60px rgba(19, 48, 35, .08),
    0 2px 8px rgba(19, 48, 35, .04);
}

.google-rising-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 36px 24px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(15, 157, 88, .12),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(247, 252, 249, .98),
      rgba(255, 255, 255, .98)
    );
}

.google-rising-title-wrap {
  min-width: 0;
}

.google-rising-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--brand, #0b9454);
  font-size: .84rem;
  font-weight: 900;
}

.google-rising-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #0b9454);
  box-shadow: 0 0 0 5px rgba(11, 148, 84, .12);
}

.google-rising-country {
  padding-inline-start: 9px;
  border-inline-start: 1px solid rgba(11, 148, 84, .28);
}

.google-rising-header h2 {
  margin: 0;
  color: var(--text, #17201c);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 950;
  letter-spacing: -.035em;
}

.google-rising-header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted, #6f7d76);
  font-size: 1rem;
  line-height: 1.8;
}

.google-rising-mark {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(11, 148, 84, .12);
  border-radius: 19px;
  color: #0b9454;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(11, 148, 84, .12);
  font-size: 1.45rem;
  font-weight: 950;
}

.google-category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 17px 24px;
  border-top: 1px solid var(--border, #e8ecea);
  border-bottom: 1px solid var(--border, #e8ecea);
  background: var(--surface-soft, #f7f9f8);
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 148, 84, .35) transparent;
}

.google-category-tabs::-webkit-scrollbar {
  height: 5px;
}

.google-category-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(11, 148, 84, .35);
}

.google-category-tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid var(--border, #dfe6e2);
  border-radius: 999px;
  outline: 0;
  color: var(--text, #27332d);
  background: var(--surface, #ffffff);
  box-shadow: 0 2px 6px rgba(19, 48, 35, .04);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.google-category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 148, 84, .45);
  color: var(--brand, #0b9454);
}

.google-category-tab:focus-visible {
  box-shadow:
    0 0 0 4px rgba(11, 148, 84, .16),
    0 2px 6px rgba(19, 48, 35, .04);
}

.google-category-tab.active {
  border-color: var(--brand, #0b9454);
  color: #ffffff;
  background:
    linear-gradient(135deg, #0b9454, #087946);
  box-shadow: 0 9px 22px rgba(11, 148, 84, .22);
}

.google-category-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: .86rem;
}

.google-rising-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  padding: 18px 28px 24px;
}

.google-rising-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--border, #edf0ee);
  color: var(--text, #17201c);
  cursor: default;
  user-select: text;
}

.google-rising-item:nth-last-child(-n + 2) {
  border-bottom-color: transparent;
}

.google-rising-rank {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--brand, #0b9454);
  background: rgba(11, 148, 84, .09);
  font-size: .78rem;
  font-weight: 950;
}

.google-rising-query {
  min-width: 0;
}

.google-rising-query strong {
  display: block;
  overflow: hidden;
  color: var(--text, #17201c);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .98rem;
  font-weight: 900;
}

.google-rising-query small {
  display: block;
  margin-top: 5px;
  color: var(--muted, #7a8881);
  font-size: .74rem;
  font-weight: 700;
}

.google-growth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 86px;
  padding: 7px 11px;
  border: 1px solid rgba(11, 148, 84, .12);
  border-radius: 999px;
  color: #087443;
  background: #e9f8f0;
  font-size: .75rem;
  font-weight: 950;
  white-space: nowrap;
}

.google-growth-badge.breakout {
  border-color: rgba(212, 111, 22, .14);
  color: #a24c0b;
  background: #fff1e3;
}

.google-empty-state {
  display: grid;
  justify-items: center;
  padding: 46px 24px 50px;
  text-align: center;
}

.google-empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 18px;
  color: var(--brand, #0b9454);
  background: rgba(11, 148, 84, .09);
  font-size: 1.45rem;
  font-weight: 900;
}

.google-empty-state strong {
  color: var(--text, #17201c);
  font-size: 1.08rem;
  font-weight: 900;
}

.google-empty-state p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted, #7a8881);
  line-height: 1.75;
}

.google-rising-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 28px;
  border-top: 1px solid var(--border, #e8ecea);
  color: var(--muted, #7a8881);
  background: var(--surface-soft, #f8faf9);
  font-size: .72rem;
  font-weight: 700;
}

html[data-theme="dark"] .google-rising-panel {
  border-color: #28362f;
  background: #16211b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

html[data-theme="dark"] .google-rising-header {
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(37, 193, 112, .12),
      transparent 34%
    ),
    linear-gradient(180deg, #19271f, #16211b);
}

html[data-theme="dark"] .google-rising-mark,
html[data-theme="dark"] .google-category-tab {
  border-color: #304138;
  background: #1d2b23;
}

html[data-theme="dark"] .google-category-tabs,
html[data-theme="dark"] .google-rising-footer {
  border-color: #2a3931;
  background: #18241d;
}

html[data-theme="dark"] .google-rising-item {
  border-color: #29382f;
}

html[data-theme="dark"] .google-growth-badge {
  border-color: #25523c;
  color: #81e0ae;
  background: #173929;
}

html[data-theme="dark"] .google-growth-badge.breakout {
  border-color: #65401f;
  color: #ffc17a;
  background: #402b18;
}

@media (max-width: 991px) {
  .google-rising-header {
    padding: 28px 26px 21px;
  }

  .google-rising-results {
    grid-template-columns: 1fr;
  }

  .google-rising-item:nth-last-child(-n + 2) {
    border-bottom-color: var(--border, #edf0ee);
  }

  .google-rising-item:last-child {
    border-bottom-color: transparent;
  }
}

@media (max-width: 575px) {
  .google-rising-section {
    padding: 14px 0 42px;
  }

  .google-rising-panel {
    border-radius: 22px;
  }

  .google-rising-header {
    gap: 15px;
    padding: 24px 20px 19px;
  }

  .google-rising-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
    font-size: 1.1rem;
  }

  .google-rising-header h2 {
    font-size: 1.65rem;
  }

  .google-rising-header p {
    font-size: .9rem;
  }

  .google-category-tabs {
    padding: 13px 15px;
  }

  .google-category-tab {
    min-height: 39px;
    padding: 8px 13px;
    font-size: .8rem;
  }

  .google-rising-results {
    padding: 12px 17px 18px;
  }

  .google-rising-item {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 70px;
  }

  .google-growth-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: -5px;
  }

  .google-rising-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 18px;
  }
}


/* Google Trends source tabs — V8 */
.google-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border, #e8ecea);
  border-bottom: 1px solid var(--border, #e8ecea);
  background: var(--surface-soft, #f7f9f8);
}

.google-source-tab {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid var(--border, #dfe6e2);
  border-radius: 16px;
  color: var(--text, #27332d);
  background: var(--surface, #fff);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.google-source-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 148, 84, .45);
  color: var(--brand, #0b9454);
}

.google-source-tab.active {
  border-color: var(--brand, #0b9454);
  color: #fff;
  background: linear-gradient(135deg, #0b9454, #087946);
  box-shadow: 0 10px 24px rgba(11, 148, 84, .2);
}

.google-source-tab small {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(127, 127, 127, .12);
  font-size: .7rem;
}

.google-source-tab.active small {
  background: rgba(255, 255, 255, .2);
}

.google-source-panel {
  min-height: 210px;
}

.google-source-panel[hidden] {
  display: none !important;
}

.google-empty-icon.youtube {
  color: #d92828;
  background: rgba(217, 40, 40, .09);
}

html[data-theme="dark"] .google-source-tabs {
  border-color: #2a3931;
  background: #18241d;
}

html[data-theme="dark"] .google-source-tab {
  border-color: #304138;
  background: #1d2b23;
}

@media (max-width: 575px) {
  .google-source-tabs {
    gap: 8px;
    padding: 12px 14px;
  }

  .google-source-tab {
    min-height: 46px;
    padding: 9px 10px;
    border-radius: 14px;
    font-size: .82rem;
  }
}
