/* ================================================
   AI Treasure Lab — style.css v3
   System fonts, mobile-first, clean architecture
   ================================================ */

/* ════════════════════════════════════════════════
   1. DESIGN TOKENS
   ════════════════════════════════════════════════ */
:root {
  /* Colors */
  --bg:        #060D18;
  --bg2:       #0A1623;
  --bg3:       #0E1C2E;
  --card:      #0C1929;
  --border:    #162436;
  --border2:   rgba(255,255,255,.07);
  --accent:    #1A6EFF;
  --accent2:   #0F52CC;
  --accent-hi: #4B94FF;
  --red:       #E8002D;
  --gold:      #F5C842;
  --teal:      #2DD4BF;
  --violet:    #A78BFA;
  --orange:    #FB923C;
  --tg:        #2AABEE;

  /* Text */
  --text:   #E8EEF6;
  --muted:  #6A88A4;
  --muted2: #3A5268;
  --white:  #FFFFFF;

  /* Radii */
  --r:    8px;
  --r-md: 12px;
  --r-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,.35);
  --shadow-md: 0 8px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);

  /* Transitions */
  --t:    .2s ease;
  --t-lg: .35s cubic-bezier(.22,1,.36,1);

  /* Fonts */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 90% 55% at 18% -8%, rgba(26,110,255,.065) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 82% 108%, rgba(232,0,45,.042) 0%, transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ════════════════════════════════════════════════
   3. SEARCH OVERLAY
   ════════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(4,9,18,.94);
  backdrop-filter: blur(16px) saturate(140%);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 96px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 700px; padding: 0 20px; }
.search-box {
  display: flex; align-items: center; gap: 14px;
  background: rgba(10,22,38,.98);
  border: 1px solid rgba(26,110,255,.28);
  border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26,110,255,.08) inset;
  backdrop-filter: blur(20px);
}
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 18px; color: var(--text); font-family: inherit;
}
.search-box input::placeholder { color: var(--muted2); }
.search-close { color: var(--muted); font-size: 18px; padding: 4px 8px; transition: color var(--t); }
.search-close:hover { color: var(--white); }
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background var(--t), border-color var(--t);
}
.search-result-item:hover { background: var(--bg3); border-color: rgba(26,110,255,.3); }
.search-result-title { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.search-result-meta { font-size: 11px; color: var(--muted2); white-space: nowrap; }
.search-nores { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ════════════════════════════════════════════════
   4. COOKIE BANNER
   ════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: rgba(10,22,38,.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: none; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.cookie-content { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: 1; }
.cookie-content p { font-size: 13px; color: var(--muted); margin: 0; }
.cookie-content a { color: var(--accent); }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-accept {
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 22px; border-radius: 50px; cursor: pointer;
  transition: opacity var(--t), transform var(--t);
}
.cookie-accept:hover { opacity: .88; transform: translateY(-1px); }
.cookie-more { font-size: 13px; color: var(--muted2); }
.cookie-more:hover { color: var(--accent); }

/* ════════════════════════════════════════════════
   5. TICKER
   ════════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--red);
  height: 34px; overflow: hidden;
  display: flex; align-items: center;
  position: relative; z-index: 100;
}
.ticker-label {
  background: rgba(0,0,0,.25); color: #fff;
  height: 100%; padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.15);
}
.ticker-label-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 48s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12.5px; font-weight: 500; color: #fff;
  padding: 0 26px; position: relative; opacity: .95;
}
.ticker-item::after { content:'·'; position:absolute; right:4px; opacity:.4; }
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ════════════════════════════════════════════════
   6. HEADER
   ════════════════════════════════════════════════ */
.header {
  background: rgba(6,13,24,.86);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid rgba(26,110,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 4px 32px rgba(0,0,0,.5);
  position: sticky; top: 0; z-index: 200;
}
.header-top {
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; height: 64px;
  max-width: 1400px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(148deg, #0A2E9C 0%, #1557E8 45%, #0AADCC 100%);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
  font-size: 0; color: transparent;
  box-shadow:
    0 0 0 1px rgba(21,87,232,.5),
    0 3px 10px rgba(0,0,0,.35),
    0 6px 26px rgba(10,173,204,.38),
    0 14px 48px rgba(10,46,156,.28),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.12);
  transition: box-shadow var(--t-lg), transform var(--t-lg);
}
.logo-icon::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(175deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 55%, transparent 100%);
  border-radius: 13px 13px 0 0; pointer-events: none; z-index: 1;
}
.logo-icon svg { position: relative; z-index: 2; }
.logo:hover .logo-icon {
  box-shadow:
    0 0 0 1px rgba(21,87,232,.8),
    0 4px 14px rgba(0,0,0,.3),
    0 10px 36px rgba(10,173,204,.55),
    0 18px 60px rgba(10,46,156,.42),
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -1px 0 rgba(0,0,0,.1);
  transform: translateY(-2px) scale(1.04);
}
.logo-text { line-height: 1.15; }
.logo-title {
  font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.4px;
}
.logo-ai   { color: rgba(255,255,255,.38); font-weight: 500; font-size: 12px; }
.logo-title > span:not(.logo-ai):not(.logo-lab) {
  background: linear-gradient(125deg, #65C8FF 0%, #0AADCC 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-lab  { color: rgba(255,255,255,.42); font-weight: 500; font-size: 13px; }
.logo-sub  { font-size: 9px; color: rgba(255,255,255,.22); letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; }

.header-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 12px; border-radius: var(--r);
  transition: color var(--t), background var(--t);
  white-space: nowrap; position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--accent-hi); background: rgba(26,110,255,.12); }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-date { font-size: 12px; color: var(--muted2); white-space: nowrap; }
.live-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; user-select: none;
}
.live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
.search-btn, .theme-btn {
  width: 36px; height: 36px;
  color: var(--muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: color var(--t), background var(--t);
}
.search-btn:hover, .theme-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ════════════════════════════════════════════════
   7. HERO SLIDER
   ════════════════════════════════════════════════ */
.hero {
  position: relative; height: 580px;
  overflow: hidden; background: var(--bg3);
}
.hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0C1A2B 0%, #060E18 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-placeholder::after {
  content: '';
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 9s ease;
}
.hero-slide.active > img { transform: scale(1.06); }

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(6,13,24,.99) 0%, rgba(6,13,24,.88) 28%, rgba(6,13,24,.48) 58%, rgba(6,13,24,.08) 100%),
    linear-gradient(to top, rgba(6,13,24,.82) 0%, transparent 42%);
}
.hero-content {
  position: absolute; bottom: 60px; left: 0;
  max-width: 600px; padding: 0 54px; z-index: 3;
}
.hero-cat {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 5px; margin-bottom: 16px;
}
.hero-title {
  font-size: 34px; font-weight: 800;
  line-height: 1.2; color: #fff;
  margin-bottom: 14px; letter-spacing: -.6px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero-desc {
  font-size: 15.5px; color: rgba(255,255,255,.7);
  margin-bottom: 22px; line-height: 1.65; max-width: 510px;
}
.hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 22px;
}
.hero-meta-dot { opacity: .35; }
.hero-read-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #2E7FFF 0%, #1A6EFF 60%, #1150D5 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 13px 28px; border-radius: 50px;
  box-shadow: 0 4px 30px rgba(26,110,255,.55), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: all var(--t-lg);
}
.hero-read-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 42px rgba(26,110,255,.7), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.hero-read-btn svg { transition: transform .2s; }
.hero-read-btn:hover svg { transform: translateX(5px); }

.hero-thumbs {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 260px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-thumb { flex: 1; position: relative; cursor: pointer; overflow: hidden; }
.hero-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.hero-thumb:hover > img { transform: scale(1.07); }
.hero-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,24,.9) 0%, rgba(6,13,24,.2) 100%);
  transition: background .3s;
}
.hero-thumb.active .hero-thumb-overlay {
  background: linear-gradient(to top, rgba(26,110,255,.6) 0%, rgba(26,110,255,.1) 100%);
}
.hero-thumb-label {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.35;
}
.hero-thumb-cat {
  font-size: 9.5px; color: rgba(255,255,255,.5);
  margin-bottom: 3px; text-transform: uppercase; letter-spacing: .08em;
}
.hero-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; z-index: 10; cursor: pointer;
  transition: background var(--t), box-shadow var(--t);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-arr:hover { background: rgba(255,255,255,.22); box-shadow: 0 0 24px rgba(255,255,255,.15); }
.hero-arr.prev { left: 18px; }
.hero-arr.next { right: 18px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 54px;
  display: flex; gap: 7px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.28); cursor: pointer;
  transition: all .35s;
}
.hero-dot.active { width: 28px; background: linear-gradient(90deg, #3D8EFF, #1A6EFF); }

/* ════════════════════════════════════════════════
   8. LAYOUT
   ════════════════════════════════════════════════ */
.main-wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.main-grid {
  display: grid; grid-template-columns: 1fr 316px;
  gap: 36px; padding: 36px 0 64px; align-items: start;
}

/* ════════════════════════════════════════════════
   9. SECTION HEADERS
   ════════════════════════════════════════════════ */
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.sec-hd-left { display: flex; align-items: center; gap: 12px; }
.sec-bar {
  width: 3px; height: 22px;
  background: linear-gradient(180deg, #4B94FF, #1A6EFF);
  border-radius: 2px;
}
.sec-title {
  font-size: 17px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(130deg, #fff 55%, rgba(255,255,255,.65));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sec-count {
  font-size: 11px; color: var(--muted2);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 12px;
}
.sec-all {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: color var(--t);
}
.sec-all:hover { color: var(--accent-hi); }
.sec-all svg { transition: transform .2s; }
.sec-all:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════
   10. CARDS
   ════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards-grid.auto-col {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Featured first card */
.cards-grid.has-featured > .card:first-child {
  grid-column: span 2;
  flex-direction: row;
}
.cards-grid.has-featured > .card:first-child .card-img-wrap {
  width: 46%; aspect-ratio: unset; flex-shrink: 0; min-height: 200px;
}
.cards-grid.has-featured > .card:first-child .card-body { padding: 24px 22px; }
.cards-grid.has-featured > .card:first-child .card-title { font-size: 18px; -webkit-line-clamp: 4; }
.cards-grid.has-featured > .card:first-child .card-desc { -webkit-line-clamp: 3; }

.card {
  background: linear-gradient(165deg, #0D1F32 0%, #08172A 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--border2);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, var(--shadow-sm);
  transition:
    transform .3s cubic-bezier(.22,1,.36,1),
    border-color .3s,
    box-shadow .3s;
}
.card:hover { transform: translateY(-7px); }
.card:has(.cat-models):hover   { border-color: rgba(75,148,255,.35); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(26,110,255,.14); }
.card:has(.cat-tools):hover    { border-color: rgba(45,212,191,.32); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(45,212,191,.1); }
.card:has(.cat-research):hover { border-color: rgba(167,139,250,.32); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(167,139,250,.1); }
.card:has(.cat-hardware):hover { border-color: rgba(249,115,22,.28); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(249,115,22,.1); }
.card:has(.cat-business):hover { border-color: rgba(245,200,66,.28); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(245,200,35,.08); }

.card-img-wrap {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0C1A2C, #06101C);
  flex-shrink: 0;
}
.card-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,24,.5) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.card:hover .card-img { transform: scale(1.07); }
.card-img-wrap .card-cat { position: absolute; top: 10px; left: 10px; z-index: 2; }

.card-body { padding: 16px 17px 18px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; margin-bottom: 10px;
}
.cat-models   { background: rgba(26,110,255,.16); color: #6BA8FF; border: 1px solid rgba(26,110,255,.2); }
.cat-tools    { background: rgba(45,212,191,.13); color: #2DD4BF; border: 1px solid rgba(45,212,191,.2); }
.cat-research { background: rgba(167,139,250,.13); color: #B89DFA; border: 1px solid rgba(167,139,250,.2); }
.cat-business { background: rgba(245,200,35,.11); color: #F5C842; border: 1px solid rgba(245,200,35,.18); }
.cat-hardware { background: rgba(249,115,22,.11); color: #FB923C; border: 1px solid rgba(249,115,22,.18); }
.cat-edu      { background: rgba(56,189,248,.11); color: #38BDF8; border: 1px solid rgba(56,189,248,.18); }

.card-title {
  font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -.015em;
  color: var(--text); margin-bottom: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t);
}
.card:hover .card-title { color: #F5F9FF; }
.card-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted2); margin-top: auto;
}
.card-meta-dot { font-size: 9px; }
.feed-empty { color: var(--muted2); font-size: 13px; padding: 12px 0; }

/* Stagger animations */
.cards-grid .card:nth-child(2) { transition-delay: .04s; }
.cards-grid .card:nth-child(3) { transition-delay: .08s; }
.cards-grid .card:nth-child(4) { transition-delay: .06s; }
.cards-grid .card:nth-child(5) { transition-delay: .10s; }
.cards-grid .card:nth-child(6) { transition-delay: .05s; }

/* ════════════════════════════════════════════════
   11. BREAKING BAND
   ════════════════════════════════════════════════ */
.breaking-band {
  background: linear-gradient(to right, rgba(75,148,255,.06), rgba(45,212,191,.04));
  border: 1px solid rgba(75,148,255,.18);
  border-radius: var(--r-md);
  padding: 14px 0;
  margin: 36px 0;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
}
.breaking-band:hover { border-color: rgba(75,148,255,.32); box-shadow: 0 0 24px rgba(26,110,255,.08); }
.breaking-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.breaking-rotate-wrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; overflow: hidden; }
.breaking-text {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.4; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.breaking-counter { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--muted2); letter-spacing: .05em; }

/* ════════════════════════════════════════════════
   12. CATEGORY SECTIONS
   ════════════════════════════════════════════════ */
.cat-section { margin-top: 44px; }

/* ════════════════════════════════════════════════
   13. SIDEBAR / WIDGETS
   ════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: linear-gradient(155deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s;
}
.widget:hover { border-color: rgba(26,110,255,.16); box-shadow: 0 4px 20px rgba(0,0,0,.2), 0 0 0 1px rgba(26,110,255,.05); }

.widget-hd {
  padding: 15px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 9px;
}
.widget-hd-bar { width: 3px; height: 15px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.widget-hd-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.05); }
.stat-cell {
  background: rgba(255,255,255,.025); padding: 16px 12px; text-align: center;
  transition: background .2s; border-radius: 4px;
}
.stat-cell:hover { background: rgba(255,255,255,.05); }
.stat-val {
  font-size: 22px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.65));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-lbl { font-size: 10.5px; color: var(--muted2); margin-top: 4px; }

.popular-list { padding: 6px 8px; }
.popular-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  transition: background .2s;
}
.popular-item:hover { background: rgba(255,255,255,.05); }
.popular-num {
  min-width: 26px; height: 26px;
  border-radius: 7px;
  font-size: 11px; font-weight: 900;
  background: rgba(75,148,255,.12); color: #63B3ED;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.popular-item:nth-child(1) .popular-num {
  background: linear-gradient(135deg, rgba(26,110,255,.24), rgba(26,110,255,.1));
  color: #6BA8FF;
}
.popular-item:nth-child(2) .popular-num { background: rgba(75,148,255,.1); }
.popular-item:nth-child(3) .popular-num { background: rgba(75,148,255,.07); }
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t);
}
.popular-item:hover .popular-title { color: #fff; }
.popular-meta { font-size: 10.5px; color: var(--muted2); }

.topics-list { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.topic-pill {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 13px; cursor: pointer;
  transition: all .22s;
}
.topic-pill:hover {
  color: #fff; border-color: rgba(75,148,255,.45);
  background: rgba(26,110,255,.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,110,255,.14);
}

/* Telegram Widget */
.tg-widget {
  background: linear-gradient(145deg, #0A1E30 0%, #061626 60%, #031120 100%) !important;
  border: 1px solid rgba(42,171,238,.25) !important;
  text-align: center; padding: 26px 20px; position: relative; overflow: hidden;
}
.tg-widget::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(42,171,238,.14) 0%, transparent 70%);
  pointer-events: none;
}
.tg-icon-wrap {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 28px rgba(42,171,238,.5);
}
.tg-widget-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -.3px; }
.tg-widget-text { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.tg-widget-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; border-radius: 50px; padding: 13px 22px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 22px rgba(42,171,238,.4);
  transition: all var(--t-lg); width: 100%;
}
.tg-widget-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(42,171,238,.6);
}
.tg-widget-hint { margin-top: 12px; font-size: 12px; color: rgba(42,171,238,.6); }

/* ════════════════════════════════════════════════
   14. TELEGRAM CTAs
   ════════════════════════════════════════════════ */
/* Inline CTA */
.tg-inline-cta {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(to right, rgba(42,171,238,.08), rgba(42,171,238,.03));
  border: 1px solid rgba(42,171,238,.2); border-radius: 16px;
  padding: 20px 24px; margin: 36px 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.tg-inline-cta:hover { border-color: rgba(42,171,238,.35); box-shadow: 0 0 28px rgba(42,171,238,.08); }
.tg-inline-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(42,171,238,.4);
}
.tg-inline-content { flex: 1; min-width: 0; }
.tg-inline-content strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.tg-inline-content span { font-size: 12.5px; color: var(--muted); }
.tg-inline-btn {
  flex-shrink: 0; background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; border-radius: 50px; padding: 11px 20px;
  font-weight: 700; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 2px 14px rgba(42,171,238,.35);
  transition: all var(--t-lg);
}
.tg-inline-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(42,171,238,.55); }

/* Article-end CTA */
.tg-art-cta {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #08192B 0%, #041220 100%);
  border: 1px solid rgba(42,171,238,.25); border-radius: 16px;
  padding: 24px 28px; margin: 36px 0 20px;
}
.tg-art-cta-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(42,171,238,.45);
}
.tg-art-cta-body { flex: 1; min-width: 0; }
.tg-art-cta-body strong { display: block; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.tg-art-cta-body span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tg-art-cta-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; border-radius: 50px; padding: 13px 24px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 20px rgba(42,171,238,.4);
  transition: all var(--t-lg); white-space: nowrap;
}
.tg-art-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,171,238,.6); }

/* Slide-in */
.tg-slide {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #0C1E30 0%, #071526 100%);
  border: 1px solid rgba(42,171,238,.3); border-radius: 18px;
  padding: 16px 38px 16px 16px; max-width: 340px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(42,171,238,.05) inset;
  transform: translateY(140%); opacity: 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s;
}
.tg-slide.visible { transform: translateY(0); opacity: 1; }
.tg-slide-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(42,171,238,.5);
}
.tg-slide-body { flex: 1; min-width: 0; }
.tg-slide-body strong { display: block; font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.tg-slide-body span { font-size: 12px; color: var(--muted); }
.tg-slide-btn {
  flex-shrink: 0; background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; border-radius: 10px; padding: 9px 15px;
  font-weight: 700; font-size: 12.5px;
  box-shadow: 0 2px 12px rgba(42,171,238,.4); white-space: nowrap;
  transition: all .2s;
}
.tg-slide-btn:hover { box-shadow: 0 4px 18px rgba(42,171,238,.6); }
.tg-slide-close {
  position: absolute; top: 9px; right: 11px;
  color: var(--muted); font-size: 17px;
  cursor: pointer; line-height: 1; padding: 3px 5px;
  transition: color .2s;
}
.tg-slide-close:hover { color: #fff; }

/* ════════════════════════════════════════════════
   15. FOOTER
   ════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, var(--bg2) 0%, #030912 100%);
  border-top: 1px solid rgba(26,110,255,.1);
  margin-top: 64px;
}
.footer-top {
  max-width: 1400px; margin: 0 auto; padding: 52px 24px 40px;
  display: grid; grid-template-columns: 240px 1fr 1fr 1fr; gap: 52px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-col-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 13.5px; color: var(--muted); transition: color var(--t); }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 18px 24px; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(90deg, rgba(26,110,255,.04), transparent 50%, rgba(232,0,45,.03));
}
.footer-copy { font-size: 12px; color: var(--muted2); }
.rss-link { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ════════════════════════════════════════════════
   16. ARTICLE PAGE
   ════════════════════════════════════════════════ */
#rdg-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1A6EFF 0%, #7B44FF 50%, #E8002D 100%);
  z-index: 9999; width: 0; transition: width .12s linear;
  box-shadow: 0 0 14px rgba(26,110,255,.75);
}
.art-wrap {
  max-width: 1400px; margin: 0 auto; padding: 40px 24px 72px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; align-items: start;
}
.art-nav-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); margin-bottom: 22px;
  transition: color var(--t);
}
.art-nav-back:hover { color: #fff; }
.art-cat { display: inline-block; margin-bottom: 14px; }
.art-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800; line-height: 1.22; color: #fff;
  letter-spacing: -.05em; margin-bottom: 18px;
}
.art-lead {
  font-size: 17px; color: var(--muted); line-height: 1.72;
  margin-bottom: 24px;
  background: linear-gradient(to right, rgba(26,110,255,.06), transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 16px 22px;
}
.art-info {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 30px; font-size: 12.5px; color: var(--muted2);
}
.art-hero-img {
  width: 100%; aspect-ratio: 16/7; object-fit: cover;
  border-radius: var(--r-lg); margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.04);
}
.art-body { font-size: 17px; line-height: 1.86; color: #C8D9E9; }
.art-body p { margin-bottom: 20px; }
.art-body h2 {
  font-size: 22px; font-weight: 800; color: #fff; margin: 40px 0 14px;
  letter-spacing: -.04em;
}
.art-body h3 { font-size: 18px; font-weight: 700; color: #dde8f2; margin: 28px 0 10px; }
.art-body blockquote.tg-quote {
  margin: 22px 0; padding: 16px 22px;
  border-left: 3px solid rgba(26,110,255,.55);
  background: rgba(26,110,255,.06);
  border-radius: 0 12px 12px 0;
  color: var(--muted); font-style: italic;
  font-size: 15px; line-height: 1.7;
  position: relative;
}
.art-body blockquote.tg-quote::before {
  content: '"'; position: absolute; top: -8px; left: 15px;
  font-size: 44px; font-style: normal;
  color: rgba(26,110,255,.28); line-height: 1; font-family: Georgia, serif;
}

/* Share */
.art-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 30px 0; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.art-share-label { font-size: 12px; color: var(--muted2); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 50px; cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border2); color: var(--muted);
  background: rgba(255,255,255,.04);
}
.share-btn:hover { transform: translateY(-1px); }
.share-copy:hover { background: var(--accent); color: #fff; border-color: transparent; }
.share-tg:hover   { background: #0088CC; color: #fff; border-color: transparent; }

/* Related */
.related-section { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); }
.related-section h3 {
  font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.related-section h3::before {
  content: ''; width: 3px; height: 20px;
  background: var(--accent); border-radius: 2px; display: block; flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--muted2); margin-bottom: 20px;
}
.breadcrumb-link { color: var(--muted2); transition: color var(--t); }
.breadcrumb-link:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); font-size: 14px; }
.breadcrumb-cur { color: var(--muted); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════════════════════════════════════════════════
   17. UTILITIES
   ════════════════════════════════════════════════ */
.mt-40 { margin-top: 40px; }

/* Loading "fade-up" animation */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* Back to top */
.to-top {
  position: fixed; bottom: 32px; right: 28px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #2E7FFF, #1A6EFF);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform var(--t-lg), box-shadow .25s;
  box-shadow: 0 4px 22px rgba(26,110,255,.55);
  cursor: pointer;
}
.to-top.show { opacity: 1; pointer-events: all; }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 10px 34px rgba(26,110,255,.7); }

/* Load More */
.load-more-wrap { text-align: center; margin-top: 28px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; font-weight: 600;
  padding: 13px 44px; border-radius: 50px;
  cursor: pointer; transition: all .25s;
  letter-spacing: .01em;
}
.load-more-btn:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(75,148,255,.42);
  color: var(--accent-hi);
  transform: translateY(-2px);
}

/* Legal pages */
.legal-body { font-size: 15px; line-height: 1.8; color: var(--muted); }
.legal-body h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 32px 0 12px; }
.legal-body ul { padding-left: 22px; margin: 10px 0 16px; }
.legal-body li { margin-bottom: 7px; }
.legal-body p { margin: 0 0 14px; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--muted); }
.legal-date { font-size: 13px; color: var(--muted2); font-style: italic; margin-bottom: 28px; }

/* ════════════════════════════════════════════════
   18. MOBILE BOTTOM NAV
   ════════════════════════════════════════════════ */
.mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(6,13,22,.97);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-inner {
  display: flex; align-items: stretch;
  height: 58px; padding: 0 4px;
}
.mob-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--muted2);
  font-size: 9.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 12px; margin: 4px 2px;
  transition: color .18s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item svg { width: 22px; height: 22px; stroke-width: 1.7; }
.mob-nav-item.active { color: var(--accent); }
.mob-nav-item:active { background: rgba(255,255,255,.06); }
.mob-nav-tg { color: var(--tg) !important; }

/* ════════════════════════════════════════════════
   19. LIGHT THEME
   ════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:     #EFF3FA;
  --bg2:    #FFFFFF;
  --bg3:    #E4EAF5;
  --card:   #FFFFFF;
  --border: #CBD4E4;
  --border2: rgba(0,0,0,.08);
  --text:   #0B1A2A;
  --muted:  #486278;
  --muted2: #7A8FA6;
}
[data-theme="light"] body {
  background: linear-gradient(135deg, #EEF4FF 0%, #F0F5FC 100%);
  background-image:
    radial-gradient(ellipse 90% 55% at 18% -8%, rgba(26,110,255,.055) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 82% 108%, rgba(232,0,45,.03) 0%, transparent 55%),
    linear-gradient(135deg, #EEF4FF 0%, #F0F5FC 100%);
}
[data-theme="light"] .header {
  background: rgba(244,248,253,.92);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
[data-theme="light"] .card {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
[data-theme="light"] .card:hover { box-shadow: 0 16px 44px rgba(0,0,0,.14); }
[data-theme="light"] .card-title { color: #0B1A2A; }
[data-theme="light"] .card:hover .card-title { color: #000; }
[data-theme="light"] .widget {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
[data-theme="light"] .widget-hd-title { color: rgba(0,0,0,.4); }
[data-theme="light"] .stat-val { background: linear-gradient(135deg, #1A6EFF, #0F52CC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .sec-title { background: linear-gradient(130deg, #0B1A2A 55%, rgba(11,26,42,.6)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(110deg, rgba(238,244,255,.99) 0%, rgba(238,244,255,.85) 28%, rgba(238,244,255,.4) 58%, rgba(238,244,255,.06) 100%),
    linear-gradient(to top, rgba(238,244,255,.88) 0%, transparent 42%);
}
[data-theme="light"] .hero-title { color: #0B1A2A; text-shadow: none; }
[data-theme="light"] .hero-desc  { color: rgba(11,26,42,.6); }
[data-theme="light"] .hero-meta  { color: rgba(11,26,42,.4); }
[data-theme="light"] .search-overlay { background: rgba(220,228,242,.96); }
[data-theme="light"] .search-box { background: #fff; border-color: rgba(26,110,255,.2); }
[data-theme="light"] .search-box input { color: #0B1A2A; }
[data-theme="light"] .search-result-item { background: #fff; }
[data-theme="light"] .search-result-title { color: #0B1A2A; }
[data-theme="light"] .art-body { color: #2A3D54; }
[data-theme="light"] .art-body h2 { color: #0B1A2A; }
[data-theme="light"] .art-lead { color: var(--muted); }
[data-theme="light"] .popular-num { background: rgba(26,110,255,.1); color: var(--accent); }
[data-theme="light"] .topic-pill { background: rgba(0,0,0,.04); color: var(--muted); }
[data-theme="light"] .tg-widget { background: linear-gradient(145deg, #EBF7FF, #D5EEF9) !important; border-color: rgba(42,171,238,.3) !important; }
[data-theme="light"] .tg-widget-text { color: #3A5468; }
[data-theme="light"] .tg-widget-hint { color: rgba(42,171,238,.8); }
[data-theme="light"] .tg-inline-content strong { color: #071B2E; }
[data-theme="light"] .tg-inline-content span { color: #486278; }
[data-theme="light"] .tg-art-cta { background: linear-gradient(135deg, #EBF7FF, #D2ECFD); border-color: rgba(42,171,238,.3); }
[data-theme="light"] .tg-art-cta-body strong { color: #071B2E; }
[data-theme="light"] .tg-art-cta-body span { color: #486278; }
[data-theme="light"] .tg-slide { background: linear-gradient(135deg, #EBF7FF, #fff); border-color: rgba(42,171,238,.3); }
[data-theme="light"] .tg-slide-body strong { color: #071B2E; }
[data-theme="light"] .tg-slide-body span { color: #486278; }
[data-theme="light"] .mob-nav { background: rgba(242,246,252,.97); border-top-color: rgba(0,0,0,.1); }
[data-theme="light"] .mob-nav-item { color: #7A8FA6; }
[data-theme="light"] .mob-nav-item.active { color: var(--accent); }
[data-theme="light"] .footer { background: linear-gradient(180deg, #fff 0%, #EEF3FA 100%); border-top-color: rgba(0,0,0,.08); }
[data-theme="light"] .footer-copy { color: #7A8FA6; }
[data-theme="light"] .legal-body h2 { color: #0B1A2A; }
[data-theme="light"] .legal-body { color: #3A5268; }
[data-theme="light"] .related-section h3 { color: #0B1A2A; }
[data-theme="light"] .sec-hd { border-bottom-color: rgba(0,0,0,.07); }
[data-theme="light"] .breadcrumb-sep { color: var(--border); }
[data-theme="light"] .load-more-btn { border-color: rgba(0,0,0,.14); color: var(--text); }
[data-theme="light"] .load-more-btn:hover { border-color: rgba(26,110,255,.4); color: var(--accent); background: rgba(26,110,255,.06); }
[data-theme="light"] .breaking-band { background: linear-gradient(to right, rgba(26,110,255,.06), rgba(45,212,191,.03)); border-color: rgba(26,110,255,.18); }
[data-theme="light"] .breaking-text { color: #0B1A2A; }

/* ════════════════════════════════════════════════
   20. TABLET (≤ 1150px)
   ════════════════════════════════════════════════ */
@media (max-width: 1150px) {
  .main-grid  { grid-template-columns: 1fr; }
  .art-wrap   { grid-template-columns: 1fr; }
  .sidebar    { display: none; }
  .hero-thumbs { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.has-featured > .card:first-child { grid-column: span 2; }
}

/* ════════════════════════════════════════════════
   21. MOBILE (≤ 760px)
   ════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* ── Show bottom nav + body pad ── */
  .mob-nav { display: flex; flex-direction: column; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

  /* ── Header ── */
  .header-top { height: 56px; padding: 0 18px; gap: 12px; }
  .header-nav { display: none; }
  .logo-sub { display: none; }
  .logo-icon { width: 40px; height: 40px; border-radius: 11px; }
  .logo-icon svg { width: 38px; height: 38px; }
  .logo-title { font-size: 16px; }
  .header-date { display: none; }
  .live-btn { display: none; }

  /* ── Ticker ── */
  .ticker-wrap { height: 32px; }
  .ticker-label { padding: 0 12px; font-size: 9.5px; }
  .ticker-item { font-size: 12.5px; padding: 0 20px; }

  /* ── Hero ── */
  .hero {
    height: 238px;
    margin: 16px 16px 0;
    width: calc(100% - 32px);
    border-radius: 20px;
  }
  .hero-placeholder { height: 100%; border-radius: 20px; }
  .hero-overlay {
    border-radius: 20px;
    background:
      linear-gradient(to top, rgba(6,13,24,.96) 0%, rgba(6,13,24,.55) 50%, rgba(6,13,24,.08) 100%);
  }
  .hero-content {
    bottom: 18px; padding: 0 18px; max-width: none;
  }
  .hero-cat { font-size: 9.5px; padding: 3px 9px; margin-bottom: 8px; }
  .hero-title {
    font-size: 17px; line-height: 1.33; letter-spacing: -.3px; margin-bottom: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,.9);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-desc { display: none; }
  .hero-meta { display: none; }
  .hero-read-btn { display: none; }
  .hero-dots { bottom: 10px; right: 14px; left: auto; gap: 5px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
  .hero-arr { display: none; }

  /* ── Main layout ── */
  .main-wrap { padding: 0 16px; }
  .main-grid { padding: 28px 0 56px; gap: 0; }

  /* ── Section headers ── */
  .sec-hd { margin-bottom: 20px; padding-bottom: 16px; }
  .sec-title { font-size: 17px; }
  .sec-count { font-size: 11px; }
  .sec-all { font-size: 13px; }

  /* ── Main feed: force single-column, kill featured span-2 ── */
  .cards-grid,
  .cards-grid.auto-col { grid-template-columns: 1fr; gap: 0; }
  /* Reset span-2 that desktop sets on the featured first card */
  .cards-grid.has-featured > .card:first-child { grid-column: 1 / -1; }

  /* ── Main feed cards: horizontal list layout (all cards uniform) ── */
  #mainFeed .card {
    flex-direction: row;
    border-radius: 16px;
    margin-bottom: 10px;
    min-height: 96px;
    align-items: stretch;
    overflow: hidden;
  }
  #mainFeed .card-img-wrap {
    width: 110px; min-width: 110px; flex-shrink: 0;
    aspect-ratio: unset;
    border-radius: 0;
    min-height: 96px;
    background: var(--bg3);
  }
  #mainFeed .card-img-wrap::after { display: none; }
  #mainFeed .card-img { border-radius: 0; height: 100%; object-fit: cover; }
  #mainFeed .card-img-wrap .card-cat { display: none; }
  #mainFeed .card-body {
    padding: 12px 14px 14px;
    justify-content: center;
    min-width: 0; /* prevent flex overflow */
    overflow: hidden;
  }
  #mainFeed .card-cat { display: inline-flex; margin-bottom: 7px; font-size: 9.5px; padding: 3px 8px; }
  #mainFeed .card-title {
    font-size: 14px; line-height: 1.42;
    -webkit-line-clamp: 3;
    margin-bottom: 0; flex: none;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  #mainFeed .card-desc { display: none; }
  #mainFeed .card-meta { font-size: 11px; margin-top: 7px; gap: 6px; }

  /* ── Featured first card: same horizontal but slightly larger ── */
  #mainFeed > .card:first-child {
    flex-direction: row !important;
    min-height: 120px !important;
    margin-bottom: 14px !important;
    border-radius: 18px !important;
  }
  #mainFeed > .card:first-child .card-img-wrap {
    width: 136px !important; min-width: 136px !important;
    aspect-ratio: unset !important;
    min-height: 120px !important;
    border-radius: 0 !important;
  }
  #mainFeed > .card:first-child .card-body { padding: 14px 16px 16px !important; }
  #mainFeed > .card:first-child .card-cat { display: inline-flex; margin-bottom: 8px; }
  #mainFeed > .card:first-child .card-title {
    font-size: 15.5px !important; line-height: 1.38 !important; -webkit-line-clamp: 3 !important;
  }
  #mainFeed > .card:first-child .card-desc {
    display: -webkit-box !important; font-size: 12.5px; -webkit-line-clamp: 2 !important;
    margin-top: 6px;
  }
  #mainFeed > .card:first-child .card-meta { font-size: 11.5px; margin-top: 8px; }

  /* ── Category horizontal scroll card body ── */
  .card { border-radius: 16px; }
  .card-body { padding: 14px 15px 16px; }
  .card-cat { font-size: 10.5px; padding: 4px 10px; margin-bottom: 10px; }
  .card-title { font-size: 15px; line-height: 1.42; -webkit-line-clamp: 3; }
  .card-desc { font-size: 13.5px; line-height: 1.6; -webkit-line-clamp: 2; }
  .card-meta { font-size: 12px; margin-top: 12px; }

  /* ── Category sections: horizontal scroll ── */
  .cat-section { margin-top: 40px; }
  .cat-section .sec-hd { margin-bottom: 16px; }
  .cat-section {
    position: relative;
  }
  .cat-section .cards-grid.auto-col {
    display: flex; flex-direction: row;
    overflow-x: auto; gap: 14px;
    padding-bottom: 10px;
    margin: 0 -16px; padding-left: 16px; padding-right: 40px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-section .cards-grid.auto-col::-webkit-scrollbar { display: none; }
  .cat-section .cards-grid.auto-col .card {
    flex: 0 0 clamp(220px, 65vw, 280px);
    border-radius: 16px;
  }
  .cat-section .cards-grid.auto-col .card-img-wrap {
    aspect-ratio: 16/10; border-radius: 16px 16px 0 0;
  }
  .cat-section .cards-grid.auto-col .card-body { padding: 14px 16px 18px; }
  .cat-section .cards-grid.auto-col .card-title { font-size: 14.5px; -webkit-line-clamp: 3; }
  .cat-section .cards-grid.auto-col .card-desc { font-size: 12.5px; }

  /* ── Breaking band ── */
  .breaking-band { border-radius: 12px; margin: 32px 0; padding: 16px 0; }
  .breaking-inner { padding: 0 18px; gap: 12px; }
  .breaking-text { font-size: 13.5px; }
  .breaking-counter { font-size: 12px; }

  /* ── TG inline CTA ── */
  .tg-inline-cta {
    flex-direction: column; text-align: center;
    padding: 22px 20px; gap: 16px; margin: 32px 0;
    border-radius: 18px;
  }
  .tg-inline-content strong { font-size: 15px; }
  .tg-inline-content span { font-size: 13px; }
  .tg-inline-btn { width: 100%; text-align: center; justify-content: center; padding: 13px; font-size: 14px; }

  /* ── Load more ── */
  .load-more-wrap { margin-top: 24px; }
  .load-more-btn { width: 100%; justify-content: center; font-size: 14px; padding: 14px; }

  /* ── Back to top (above bottom nav) ── */
  .to-top { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 44px; height: 44px; font-size: 19px; }

  /* ── TG slide (above bottom nav) ── */
  .tg-slide {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 16px; right: 16px; max-width: none;
    border-radius: 18px; padding: 18px 44px 18px 18px;
  }

  /* ── Cookie banner (above bottom nav) ── */
  .cookie-banner {
    padding: 16px 18px 20px; flex-direction: column; gap: 14px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
  }
  .cookie-content p { font-size: 13px; line-height: 1.55; }
  .cookie-accept { width: 100%; padding: 12px; font-size: 14px; border-radius: 50px; }

  /* ── Footer ── */
  .footer { margin-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; padding: 16px 20px; }
  .footer-copy { font-size: 12px; }
  .footer-col-title { margin-bottom: 14px; }
  .footer-links { gap: 14px; }
  .footer-link { font-size: 14px; }

  /* ── Bottom nav ── */
  .mob-nav-inner { height: 62px; }
  .mob-nav-item { font-size: 10px; gap: 4px; }
  .mob-nav-item svg { width: 24px; height: 24px; }

  /* ── Article page ── */
  .art-wrap { grid-template-columns: 1fr; padding: 20px 18px 48px; gap: 0; }
  .breadcrumb { font-size: 12px; margin-bottom: 16px; gap: 8px; }
  .art-cat { font-size: 11px; padding: 4px 10px; }
  .art-title { font-size: clamp(21px, 5.5vw, 28px); margin: 12px 0 16px; line-height: 1.25; }
  .art-lead { font-size: 15.5px; line-height: 1.68; padding: 16px 18px; border-radius: 0 12px 12px 0; margin-bottom: 20px; }
  .art-info { font-size: 12.5px; gap: 10px; padding: 14px 0; margin-bottom: 20px; }
  .art-hero-img { border-radius: 16px; margin: 0 0 24px; aspect-ratio: 16/9; }
  .art-body { font-size: 16.5px; line-height: 1.82; }
  .art-body p { margin-bottom: 20px; }
  .art-body h2 { font-size: 20px; margin: 36px 0 14px; }
  .art-body h3 { font-size: 17px; margin: 24px 0 10px; }
  .art-body blockquote.tg-quote { font-size: 14.5px; padding: 14px 18px; margin: 20px 0; }
  .art-share { margin: 24px 0; padding: 18px 0; gap: 10px; }
  .share-btn { font-size: 13px; padding: 10px 16px; }
  .tg-art-cta { flex-direction: column; text-align: center; padding: 22px 20px; gap: 16px; border-radius: 18px; }
  .tg-art-cta-icon { width: 54px; height: 54px; margin: 0 auto; }
  .tg-art-cta-body strong { font-size: 16px; }
  .tg-art-cta-body span { font-size: 14px; }
  .tg-art-cta-btn { width: 100%; justify-content: center; padding: 14px; font-size: 14px; }
  .related-section { margin-top: 36px; padding-top: 24px; }
  .related-section h3 { font-size: 16px; margin-bottom: 20px; }
}

/* ════════════════════════════════════════════════
   22. EXTRA SMALL (≤ 390px)
   ════════════════════════════════════════════════ */
@media (max-width: 390px) {
  .hero { height: 210px; }
  .hero-title { font-size: 15.5px; }
  .card-title { font-size: 15px; }
  .art-title { font-size: 20px; }
  .art-body { font-size: 16px; }
  .mob-nav-item { font-size: 9px; }
  .logo-title { font-size: 15px; }
  .main-wrap { padding: 0 14px; }
  .hero { margin: 14px 14px 0; width: calc(100% - 28px); }
}
