.country-page-section {
  min-width: 0;
}
.country-social-section {
  margin-bottom: 30px;
}
.country-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 12px 4px 11px;
  border-bottom: 3px solid var(--accent);
}
.country-section-heading h1,
.country-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.country-section-heading-news {
  margin-bottom: 2px;
  padding-right: 10px;
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(194, 87, 42, 0.08), rgba(255, 255, 255, 0));
  border-left: 4px solid var(--accent);
  border-bottom-width: 1px;
}
.country-news-section {
  padding-bottom: 4px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
}
.country-intelligence-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}
.country-window,
.country-refresh {
  appearance: none;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}
.country-window.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.country-refresh:hover,
.country-window:hover {
  border-color: var(--accent);
}
.country-intelligence-meta {
  margin: -2px 14px 12px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}
.country-social-section .bf-label {
  margin: 16px 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}
.country-social-section .social-live-meta {
  margin-bottom: 14px;
  padding: 10px 13px;
  font-size: 0.78rem;
  line-height: 1.55;
}
.country-social-section .social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 16px;
  margin-bottom: 0;
}
.country-social-section .social-col {
  min-width: 0;
  padding: 14px;
  border-radius: 10px;
}
.country-social-section .social-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px 9px;
  font-size: 1.12rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.country-social-section .social-head small {
  color: var(--muted);
  font-family: -apple-system, 'PingFang SC', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}
.social-country-switcher {
  display: flex;
  gap: 7px;
  margin: 0 0 13px;
  padding: 1px 1px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.social-country-chip {
  appearance: none;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  scroll-snap-align: start;
}
.social-country-chip span {
  margin-right: 4px;
}
.social-country-chip:hover,
.social-country-chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.social-country-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.country-social-section .social-item {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 87, 42, 0.10);
  border-left: 4px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: linear-gradient(135deg, #fff8f2, #fff5ed);
}
.country-social-section .social-col:nth-child(2) .social-item {
  border-color: rgba(42, 123, 155, 0.12);
  border-left-color: var(--accent2);
  background: linear-gradient(135deg, #f4fafc, #eef7fa);
}
.country-social-section .social-item:last-child {
  margin-bottom: 0;
}
.country-social-section .social-row {
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 5px;
}
.country-social-section .social-tag {
  padding: 2px 6px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.country-social-section .social-category {
  padding: 2px 6px;
  font-size: 0.76rem;
  line-height: 1.4;
}
.country-social-section .social-name {
  min-width: 180px;
  font-size: 1.08rem;
  line-height: 1.4;
}
.country-social-section .social-title-zh {
  margin: 4px 0 6px;
  font-size: 1rem;
  line-height: 1.48;
}
.country-social-section .social-title-zh span {
  font-size: 0.78rem;
}
.country-social-section .social-desc {
  margin-bottom: 5px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.country-social-section .social-pf {
  font-size: 0.8rem;
  line-height: 1.5;
}
.country-social-section .social-trend {
  font-size: 0.78rem;
}
.country-social-section .social-loading {
  font-size: 0.9rem;
}
.social-topic-card .social-name {
  display: block;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.social-topic-country {
  padding: 2px 6px;
  border: 1px solid rgba(42, 123, 155, 0.2);
  border-radius: 999px;
  color: var(--accent2);
  font-size: 0.76rem;
  font-weight: 700;
}
.social-topic-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}
.social-topic-metrics span {
  padding: 3px 7px;
  border: 1px solid rgba(138, 133, 128, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}
.social-topic-actions {
  margin-top: 10px;
}
.social-topic-action,
.social-feedback-btn {
  appearance: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(42, 123, 155, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent2);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}
.social-topic-action:hover,
.social-topic-action:focus-visible,
.social-feedback-btn:hover,
.social-feedback-btn:focus-visible {
  border-color: var(--accent2);
  outline: none;
}
.social-topic-detail {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(42, 123, 155, 0.17);
  border-radius: 8px;
  background: rgba(42, 123, 155, 0.045);
}
.social-topic-detail[hidden] {
  display: none;
}
.social-evidence-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
}
.social-evidence-summary strong {
  color: var(--accent);
}
.social-evidence-summary span {
  color: var(--muted);
}
.social-evidence-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed rgba(42, 123, 155, 0.2);
  overflow-wrap: anywhere;
}
.social-evidence-title {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}
.social-evidence-meta,
.social-evidence-footer,
.social-rank-history,
.social-locality-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.social-rank-history span,
.social-locality-evidence span {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.74);
}
.social-evidence-footer a {
  color: var(--accent2);
  font-weight: 700;
}
.social-evidence-empty {
  color: var(--muted);
  font-size: 0.82rem;
}
.social-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(194, 87, 42, 0.12);
}
.social-feedback-btn {
  min-height: 36px;
  padding: 6px 9px;
  border-color: rgba(194, 87, 42, 0.18);
  color: var(--accent);
  font-size: 0.74rem;
}
.social-feedback-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.social-feedback-result {
  min-height: 20px;
  color: var(--green);
  font-size: 0.74rem;
}
.country-news-section > .bf-filters,
.country-news-section > .bf-legend,
.country-news-section > #countryBlocks {
  margin-right: 14px;
  margin-left: 14px;
}
.country-news-section .bf-filters {
  gap: 7px;
  padding: 12px 0;
}
.country-news-section .bf-chip {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.82rem;
}
.country-news-section .bf-chip .cf {
  font-size: 0.98rem;
}
.country-youtube-panel {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--card), var(--bg2));
}
.country-youtube-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.country-youtube-items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.country-youtube-item { display: flex; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; }
.country-youtube-item:hover { border-color: var(--accent2); }
.country-youtube-rank { color: var(--accent); font: 700 1rem/1 'Outfit', sans-serif; }
.country-youtube-item b { display: block; font-size: .72rem; line-height: 1.35; }
.country-youtube-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; line-height: 1.35; }
@media (max-width: 1100px) { .country-youtube-items { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .country-youtube-head { flex-direction: column; } .country-youtube-items { grid-template-columns: 1fr; } }
.country-loading,
.country-empty {
  padding: 34px 20px;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}
.country-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.96rem;
}
.country-card {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--card);
}
.country-card[data-region="ua"] {
  border-color: rgba(232, 70, 58, 0.32);
}
.country-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg2);
}
.country-card-flag {
  font-size: 1.18rem;
}
.country-card-name {
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.country-card-dept {
  color: var(--muted);
  font-size: 0.76rem;
}
.country-card-stats {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.country-stat {
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.country-stat.trend-rising {
  border-color: rgba(194, 87, 42, 0.25);
  color: var(--accent);
}
.country-stat.trend-falling {
  border-color: rgba(42, 123, 155, 0.22);
  color: var(--accent2);
}
.country-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  padding: 14px;
}
.country-section-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.country-story {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid rgba(138, 133, 128, 0.14);
}
.country-story:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.country-heat {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.country-heat.high {
  background: var(--accent);
}
.country-heat.medium {
  background: var(--accent2);
}
.country-story-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.42;
}
.country-story-summary {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.country-story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}
.country-evidence-link {
  padding: 1px 6px;
  border: 1px solid rgba(42, 123, 155, 0.2);
  border-radius: 999px;
  color: var(--accent2);
  text-decoration: none;
}
.country-evidence-link:hover {
  text-decoration: underline;
}
.country-topic {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(194, 87, 42, 0.07);
  color: var(--accent);
}
.country-insight-panel {
  padding: 10px 11px;
  border: 1px solid rgba(42, 123, 155, 0.16);
  border-radius: 7px;
  background: rgba(42, 123, 155, 0.045);
}
.country-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.country-insight-title {
  color: var(--accent2);
  font-size: 0.82rem;
  font-weight: 700;
}
.country-confidence {
  color: var(--muted);
  font-size: 0.7rem;
}
.country-insight-copy {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.55;
}
.country-insight-row {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(42, 123, 155, 0.11);
}
.country-insight-row b {
  color: var(--accent);
}
.country-risk-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.country-data-gap {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px dashed var(--rule);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.country-data-gap b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.8rem;
}
.country-no-stories {
  padding: 20px 12px;
  border: 1px dashed var(--rule);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.country-chip-count {
  margin-left: 3px;
  opacity: 0.72;
  font-size: 0.7rem;
}
@media (max-width: 860px) {
  .country-card-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .country-intelligence-actions {
    flex-wrap: wrap;
  }
  .country-card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .country-card-stats {
    width: 100%;
    margin-left: 29px;
  }
}
@media (max-width: 768px) {
  .country-social-section {
    margin-bottom: 24px;
  }
  .country-section-heading {
    min-height: 58px;
    padding: 10px 2px;
  }
  .country-section-heading h1,
  .country-section-heading h2 {
    font-size: 1.45rem;
  }
  .country-section-heading-news {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }
  .country-intelligence-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .country-window,
  .country-refresh {
    flex: 1 1 auto;
    min-height: 44px;
    font-size: 0.88rem;
  }
  .country-social-section .social-live-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .country-social-section .social-col {
    padding: 10px;
  }
  .country-social-section .social-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    font-size: 1.08rem;
  }
  .social-country-chip {
    min-height: 44px;
    padding-right: 13px;
    padding-left: 13px;
    font-size: 0.88rem;
  }
  .country-social-section .social-item {
    padding: 13px 12px;
  }
  .country-social-section .social-name {
    min-width: 0;
    font-size: 1.12rem;
  }
  .country-social-section .social-title-zh {
    font-size: 1.04rem;
  }
  .country-social-section .social-desc {
    font-size: 0.9rem;
  }
  .country-social-section .social-pf {
    font-size: 0.84rem;
  }
  .social-topic-metrics {
    font-size: 0.82rem;
  }
  .social-topic-action,
  .social-feedback-btn {
    min-height: 44px;
  }
  .social-topic-action {
    width: 100%;
  }
  .social-evidence-title {
    font-size: 0.94rem;
  }
  .social-evidence-meta,
  .social-evidence-footer,
  .social-rank-history,
  .social-locality-evidence {
    font-size: 0.82rem;
  }
  .country-news-section > .bf-filters,
  .country-news-section > .bf-legend,
  .country-news-section > #countryBlocks {
    margin-right: 10px;
    margin-left: 10px;
  }
  .country-news-section .bf-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .country-news-section .bf-chip {
    flex: 0 0 auto;
    min-height: 40px;
    font-size: 0.88rem;
  }
  .country-intelligence-meta {
    margin-right: 10px;
    margin-left: 10px;
    font-size: 0.78rem;
    text-align: left;
  }
  .country-card-body {
    padding: 12px;
  }
  .country-story-title {
    font-size: 1rem;
  }
  .country-story-summary,
  .country-insight-copy {
    font-size: 0.88rem;
  }
}
