:root {
  --bg: #06111f;
  --bg-soft: #0b1d34;
  --panel: rgba(9, 21, 39, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f7fb;
  --muted: #9eb0c6;
  --accent: #7cf0d4;
  --accent-strong: #7fd3ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127, 211, 255, 0.18), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(124, 240, 212, 0.16), transparent 26rem),
    linear-gradient(180deg, #08111f 0%, #0a1626 45%, #07111d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 2.8rem 2.8rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.page-shell {
  width: min(1100px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.app-shell {
  display: grid;
  gap: 1rem;
}

.topbar,
.hero,
.view {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.geo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 700;
}

.geo-link-active {
  color: var(--text);
  background: rgba(127, 211, 255, 0.12);
  border-color: rgba(127, 211, 255, 0.2);
}

.country-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
}

.country-switcher select {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.hero {
  padding: 1.5rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(6, 28, 50, 0.96), rgba(9, 21, 39, 0.78)),
    radial-gradient(circle at top right, rgba(124, 240, 212, 0.13), transparent 16rem);
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.detail-header h2,
.trend-card h3,
.news-card h3 {
  margin: 0;
}

.hero h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-meta,
.status-banner,
.trend-summary,
.trend-meta,
.detail-subtitle,
.news-meta,
.news-summary {
  color: var(--muted);
}

.hero-meta {
  margin: 1rem 0 0;
  line-height: 1.7;
}

.view {
  padding: 1.25rem;
}

.view[hidden] {
  display: none;
}

.section-head,
.detail-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.ghost-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
}

.ghost-button {
  cursor: pointer;
}

.status-banner {
  margin-top: 0.9rem;
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.trend-grid,
.news-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.trend-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--panel-soft);
}

.trend-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem;
}

.trend-rank {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(127, 211, 255, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
}

.trend-card h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.trend-card-title {
  font-size: 1.15rem;
  line-height: 1.2;
}

.trend-summary,
.news-summary {
  margin: 0.45rem 0 0;
  line-height: 1.6;
}

.trend-meta,
.news-meta,
.detail-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.trend-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(127, 211, 255, 0.18), rgba(124, 240, 212, 0.18));
  border: 1px solid rgba(127, 211, 255, 0.18);
  font-weight: 700;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.mini-link,
.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.news-card {
  padding: 1.05rem 1rem;
}

.news-card a {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.empty-state {
  padding: 1.2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.editor-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.editor-note p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 0.75rem, 42rem);
  }

  .topbar,
  .section-head,
  .detail-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .trend-card {
    display: grid;
  }

  .trend-action {
    width: 100%;
  }

  .hero,
  .view {
    padding: 1rem;
  }
}
