:root {
  --bg: #f6f8fb;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --text: #111827;
  --text-soft: #5b6472;
  --text-muted: #8a93a3;
  --line: #e8edf4;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  --radius: 18px;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #10192b;
  --bg-elevated: #111c31;
  --text: #f3f6fb;
  --text-soft: #c0cad8;
  --text-muted: #8fa0b8;
  --line: rgba(255,255,255,0.08);
  --primary: #6ea8ff;
  --primary-soft: rgba(110, 168, 255, 0.12);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

img {
  display: block;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.site-logo-mark {
  color: var(--primary);
  font-size: 1rem;
}

.nav-wrap {
  padding-bottom: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.site-main {
  padding: 28px 0 56px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 20px;
  margin-bottom: 34px;
}

.hero-feature-main {
  min-width: 0;
}

.hero-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 560px;
  object-fit: cover;
  transition: transform .45s ease;
}

.hero-link:hover .hero-image {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .12));
  color: #fff;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.05;
  margin: 14px 0 10px;
  max-width: 90%;
}

.hero-summary {
  max-width: 80%;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  margin: 0;
}

.hero-feature-side {
  display: grid;
  gap: 16px;
}

.mini-feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}

.mini-feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

.mini-feature-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.mini-feature-body {
  padding: 15px;
}

.mini-feature-body h3 {
  margin: 10px 0 0;
  line-height: 1.35;
  font-size: 1rem;
}

.section-block {
  margin-top: 10px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title,
.page-title {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.page-intro {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 12px 0 0;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 24px;
}

.editorial-main {
  min-width: 0;
}

.editorial-sidebar {
  min-width: 0;
}

.sidebar-card {
  position: sticky;
  top: 122px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.sidebar-head h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
}

.trend-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  counter-reset: trend;
}

.trend-list li {
  counter-increment: trend;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.trend-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trend-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.trend-list a::before {
  content: counter(trend, decimal-leading-zero);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

.trend-category {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.news-grid {
  display: grid;
  gap: 22px;
}

.premium-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
}

.news-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-card-body {
  padding: 18px;
}

.news-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 12px 0 10px;
}

.news-card-excerpt {
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.7;
  margin: 0 0 12px;
}

.news-meta {
  color: var(--text-muted);
  font-size: .84rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.chip-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.chip-muted {
  background: transparent;
  color: var(--text-muted);
  padding-left: 0;
}

.category-hero {
  margin-bottom: 24px;
}

.article {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article-premium {
  padding: 28px;
}

.article-top {
  max-width: 900px;
  margin: 0 auto 24px;
}

.article h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.05;
  margin: 18px 0 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article-summary {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
}

.article-cover {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 28px;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.9;
  color: var(--text);
  font-size: 1.02rem;
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.6rem 0 1rem;
  line-height: 1.25;
}

.article-content ul,
.article-content ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1rem 0;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
}

.empty-state {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  color: var(--text-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-soft);
}

.page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-item.disabled .page-link {
  opacity: .45;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.footer-brand {
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-text {
  color: var(--text-soft);
  max-width: 540px;
  line-height: 1.7;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 1100px) {
  .hero-feature {
    grid-template-columns: 1fr;
  }

  .hero-feature-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 780px) {
  .premium-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 430px;
  }

  .hero-summary,
  .hero-title {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1240px);
  }

  .topbar {
    min-height: 62px;
  }

  .site-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero-feature-side {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    padding: 22px;
  }

  .hero-image {
    height: 340px;
  }

  .article-premium {
    padding: 18px;
  }

  .article h1 {
    font-size: 1.9rem;
  }

  .news-card-image {
    height: 210px;
  }
}

.mega-menu-wrapper {
  position: relative;
}

.mega-menu-toggle {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.mega-menu-toggle:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: none;
}

.mega-menu.is-open {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mega-menu-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.mega-menu-links {
  display: grid;
  gap: 10px;
}

.mega-menu-links a {
  color: var(--text-soft);
  font-weight: 600;
}

.mega-menu-links a:hover {
  color: var(--primary);
}

.live-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.live-link-card {
  position: relative;
  background: linear-gradient(135deg, #ff0033, #b00020);
  color: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, opacity .2s ease;
}

.live-link-card:hover {
  transform: translateY(-4px);
}

.live-link-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  background: rgba(255,255,255,.2);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.live-link-platform {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: 8px;
}

.live-link-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.live-link-card p {
  margin: 0;
  color: rgba(255,255,255,.86);
}

.top-stories-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.top-story-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}

.top-story-card:hover {
  transform: translateY(-4px);
}

.top-story-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.top-story-body {
  padding: 16px;
}

.top-story-body h3 {
  margin: 12px 0 0;
  line-height: 1.35;
  font-size: 1.05rem;
}

.ad-banner {
  margin: 34px 0;
}

.ad-banner-inner {
  background: linear-gradient(135deg, var(--bg-elevated), color-mix(in srgb, var(--primary) 8%, var(--bg-elevated)));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.ad-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.ad-banner-inner strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.ad-banner-inner p {
  margin: 0;
  color: var(--text-soft);
}

.newsletter-block {
  margin-top: 36px;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.newsletter-text {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 12px 0 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.newsletter-form input {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.newsletter-form button {
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

.author-card {
  max-width: 860px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
}

.author-label {
  color: var(--text-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.author-bio {
  color: var(--text-soft);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .live-links-grid,
  .top-stories-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .live-links-grid,
  .top-stories-slider {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .mega-menu {
    min-width: 320px;
    right: auto;
    left: 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

.error-page-wrap {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page-card {
  width: min(760px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px;
  text-align: center;
  box-shadow: var(--shadow);
}

.error-code {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 14px;
}

.error-page-card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.error-page-card p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-soft);
  line-height: 1.7;
}

.error-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-ui,
.btn-secondary-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary-ui {
  background: var(--primary);
  color: #fff;
}

.btn-secondary-ui {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-form input {
  width: 220px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0 14px;
  outline: none;
}

.header-search-form button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}

.search-public-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-public-form input {
  flex: 1;
  min-width: 260px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0 16px;
}

.search-public-form button {
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 780px) {
  .header-search-form input {
    width: 150px;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: .9rem;
}

.breadcrumbs a {
  color: var(--text-soft);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 600;
}

.related-posts {
  max-width: 860px;
  margin: 40px auto 0;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.newsletter-form input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.newsletter-form button {
  padding: 10px 16px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.newsletter-form button:hover {
  background: #333;
}

@media (max-width: 780px) {
  .newsletter-form {
    grid-template-columns: 1fr;
  }
}
.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.article-share button {
  border: 0;
  cursor: pointer;
}

.article-reactions {
  max-width: var(--article-content-max, 860px);
  margin: 16px auto 0;
}

.article-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.article-like-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.article-like-btn.is-liked {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
}

.article-like-icon {
  font-size: 1rem;
  line-height: 1;
}