:root {
  --bg: #07111f;
  --bg-2: #0b1529;
  --surface: rgba(14, 24, 44, 0.88);
  --surface-2: rgba(19, 33, 59, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ebf3ff;
  --muted: #9cb1d3;
  --primary: #6d7cff;
  --secondary: #00d3ff;
  --accent: #8b5cf6;
  --success: #12d7a3;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(92, 102, 255, 0.28), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(0, 211, 255, 0.18), transparent 25%),
    linear-gradient(180deg, #08101d 0%, #091526 45%, #07111f 100%);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-wrap { overflow: hidden; }
.container { position: relative; z-index: 2; }

.topbar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.topbar a { color: #cbd8f8; }
.small-topbar { backdrop-filter: blur(8px); }

.main-nav {
  background: rgba(7, 17, 31, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.navbar-brand img { width: auto; max-height: 38px; }
.nav-link {
  color: rgba(235,243,255,0.8) !important;
  font-weight: 600;
  padding: 0.9rem 1rem !important;
}
.nav-link:hover,
.nav-link.active { color: #fff !important; }

.btn-gradient,
.page-link-custom,
.channel-grid a,
.tag-cloud a {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(78, 116, 255, 0.3);
}
.btn-gradient:hover,
.page-link-custom:hover,
.channel-grid a:hover,
.tag-cloud a:hover { color: #fff; opacity: 0.95; }
.btn-outline-light { border-radius: 999px; }

.hero-section {
  position: relative;
  padding: 110px 0 80px;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(109,124,255,0.12), transparent 40%),
    linear-gradient(300deg, rgba(0,211,255,0.12), transparent 35%);
  pointer-events: none;
}
.eyebrow,
.section-kicker,
.panel-tag,
.tiny-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #b9cbef;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}
.hero-title {
  margin: 18px 0 18px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-text,
.footer-text,
.news-panel p,
.row-body p,
.story-body p,
.article-content,
.article-content p {
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero-metrics { margin-top: 34px; }
.metric-card,
.category-card,
.news-panel,
.archive-highlight,
.article-shell,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 22px;
  height: 100%;
}
.metric-card strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
}
.metric-card span { color: var(--muted); font-size: 14px; }

.hero-visual {
  position: relative;
  min-height: 540px;
  padding: 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(20,32,58,0.96), rgba(9,17,31,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.hero-visual::before {
  width: 280px; height: 280px;
  right: -60px; top: -40px;
  background: rgba(109,124,255,0.26);
}
.hero-visual::after {
  width: 240px; height: 240px;
  left: -80px; bottom: -70px;
  background: rgba(0,211,255,0.18);
}
.hero-panel {
  position: relative;
  padding: 28px;
  z-index: 1;
}
.panel-lg { min-height: 310px; }
.panel-lg h3 { margin: 20px 0 14px; font-size: 1.65rem; font-weight: 750; }
.panel-sm {
  position: absolute;
  width: 210px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.top-right { top: 40px; right: 28px; }
.bottom-left { left: 28px; bottom: 34px; }

.section-space { padding: 90px 0; }
.bg-soft { background: rgba(255,255,255,0.02); }
.section-heading h2,
.panel-head h2,
.page-hero h1,
.article-header h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-heading { margin-bottom: 30px; }
.text-link {
  color: #dbe5ff;
  font-weight: 700;
}
.text-link i { transition: transform .25s ease; }
.text-link:hover i { transform: translateX(4px); }

.category-card {
  height: 100%;
  padding: 28px;
  background: linear-gradient(180deg, rgba(17,29,52,0.92), rgba(12,20,37,0.98));
}
.category-card .icon {
  width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109,124,255,0.22), rgba(0,211,255,0.22));
  font-size: 28px;
  margin-bottom: 18px;
}
.category-card h3 { font-size: 1.35rem; font-weight: 750; margin-bottom: 12px; }
.category-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.category-card li + li { margin-top: 10px; }
.category-card li a { color: #dce6ff; }

.news-panel,
.article-shell { padding: 30px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 22px;
}
.story-card,
.story-row,
.rank-item,
.mini-story {
  border-radius: var(--radius-md);
}
.story-card {
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  height: 100%;
}
.story-thumb,
.row-thumb,
.mini-thumb {
  display: block;
  overflow: hidden;
}
.story-thumb img,
.row-thumb img,
.mini-thumb img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.story-card:hover img,
.story-row:hover img,
.mini-story:hover img { transform: scale(1.05); }
.story-thumb { aspect-ratio: 16 / 10; }
.story-body { padding: 20px; }
.story-body h3,
.row-body h3,
.article-tags-block h3,
.rank-item h4,
.mini-story h4 {
  margin: 10px 0 10px;
  font-weight: 750;
  line-height: 1.35;
}
.story-meta,
.article-meta,
.breadcrumb-wrap,
.footer-bottom,
.source-list,
.rank-item p,
.mini-story p {
  color: #91a6cb;
  font-size: 14px;
}
.story-meta,
.article-meta,
.breadcrumb-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.story-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.story-row:first-of-type { border-top: 0; padding-top: 0; }
.row-thumb { aspect-ratio: 16 / 11; border-radius: 18px; }
.row-body h3 { font-size: 1.4rem; }
.subscribe-box .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  min-height: 54px;
  border-radius: 14px;
}
.subscribe-box .form-control::placeholder { color: #8ea3c6; }
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 24px 0;
}
.mini-list,
.footer-links,
.footer-contact,
.source-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.mini-list li,
.footer-links li,
.footer-contact li,
.source-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}
.mini-list li + li,
.footer-links li + li,
.footer-contact li + li,
.source-list li + li { margin-top: 12px; }
.mini-list i,
.footer-contact i { color: var(--secondary); }

.google-source-badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #d9e5ff;
  font-weight: 700;
}
.google-topic-card {
  height: 100%;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17,29,52,0.92), rgba(12,20,37,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.google-topic-card h3 {
  margin: 14px 0 12px;
  font-size: 1.3rem;
  font-weight: 750;
}
.google-topic-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.google-topic-card li + li { margin-top: 10px; }
.google-topic-card .source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #dbebff;
  font-weight: 700;
}

.tag-cloud,
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-cloud a,
.channel-grid a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}
.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rank-item:first-of-type { border-top: 0; padding-top: 0; }
.rank-num {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(109,124,255,0.18);
  color: #fff;
  font-weight: 800;
}
.sidebar-stack { display: grid; gap: 24px; }

.site-footer {
  padding: 34px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}
.footer-brand img { max-height: 36px; width: auto; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  margin-top: 28px;
}
.compact-footer { padding: 22px 0; }
.only-bottom { margin-top: 0; }

.page-hero,
.article-hero {
  padding: 80px 0 40px;
}
.page-hero-list,
.article-hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.archive-highlight,
.article-cover {
  overflow: hidden;
}
.archive-highlight { padding: 24px; }
.article-header { max-width: 920px; }
.article-header h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.article-cover {
  margin-top: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.article-cover img { aspect-ratio: 21 / 9; }
.article-section { padding-top: 48px; }
.article-content {
  font-size: 1.06rem;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  color: #fff;
  font-weight: 800;
}
.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin-bottom: 1.1rem;
}
.article-content blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--secondary);
  background: rgba(255,255,255,0.04);
  border-radius: 0 16px 16px 0;
}
.article-content img {
  margin: 20px auto;
  border-radius: 20px;
}
.article-tags-block {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.article-share a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.mini-story {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mini-story:first-of-type { border-top: 0; padding-top: 0; }
.mini-thumb {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}
.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.page-link-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .hero-visual { min-height: 440px; }
  .panel-sm { position: static; width: auto; margin-top: 18px; }
}

@media (max-width: 991px) {
  .hero-section { padding-top: 80px; }
  .section-space { padding: 72px 0; }
  .story-row { grid-template-columns: 1fr; }
  .row-thumb { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.5rem; }
  .news-panel, .article-shell, .category-card, .archive-highlight { padding: 22px; }
  .story-body h3, .row-body h3 { font-size: 1.2rem; }
  .article-cover img { aspect-ratio: 16 / 10; }
}
