/* =====================================================================
   Jackinfosoft News CMS — OTT-style Frontend (JACK TV inspired)
   Dark theme, left sidebar (desktop), bottom tabs (mobile)
   ===================================================================== */

:root {
  --primary: #E50914;
  --primary-2: #ff2733;
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-2: #c8c8c8;
  --muted: #8a8a8a;
  --warn: #f5c518;
  --ok: #1ec47b;
  --side-w: 230px;
  --top-h: 68px;
  --tabbar-h: 64px;
  --ticker-h: 44px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 9999; background: var(--primary); color:#fff; padding:6px 10px; border-radius:6px; }

/* ============== APP SHELL ============== */
.app-shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.app-main  { display: flex; flex-direction: column; min-width: 0; }

/* ============== SIDEBAR (desktop) ============== */
.side {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #0e0e0e 0%, #0a0a0a 100%);
  border-right: 1px solid var(--border);
  padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.side-brand { padding: 6px 8px 14px; display: flex; flex-direction: column; gap: 4px; }
.side-brand .logo {
  display:inline-flex; align-items:baseline; gap: 2px;
  font-family: var(--font-heading); font-weight: 900;
  font-size: 30px; letter-spacing: -1px; line-height: 1;
}
.side-brand .logo .a { color:#fff; }
.side-brand .logo .b { color: var(--primary); }
.side-brand .tag { color: var(--text-2); font-size: 12px; margin-top: 4px; letter-spacing: 1px; }
.side-brand img.logo-img { max-width: 170px; max-height: 60px; }

.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.side-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  color: var(--text-2); font-weight: 500; font-size: 14.5px;
  position: relative; transition: background .18s, color .18s, transform .18s;
}
.side-item i { width: 20px; text-align: center; font-size: 16px; }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 22px rgba(229,9,20,.35);
}
.side-item.active:hover { background: var(--primary-2); }
.side-item .live-dot {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
}
.side-promo {
  margin-top: auto;
  background: linear-gradient(160deg, #1a0507 0%, #100303 100%);
  border: 1px solid #2a0d10; border-radius: 14px;
  padding: 18px 14px; text-align: center;
}
.side-promo .pl { font-family: var(--font-heading); font-weight: 900; font-size: 22px; letter-spacing: -.5px; }
.side-promo .pl .b { color: var(--primary); }
.side-promo .tg { color: var(--muted); font-size: 11px; margin: 6px 0 10px; letter-spacing: .8px; }
.side-promo .crown { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 700; font-size: 13px; margin: 6px 0; }
.side-promo .small { color: var(--text-2); font-size: 12px; margin-bottom: 12px; }
.side-promo .btn-sub {
  background: var(--primary); color: #fff; border: 0;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 13px;
  width: 100%; transition: transform .15s, filter .15s;
}
.side-promo .btn-sub:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ============== TOPBAR ============== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--top-h);
  background: rgba(11,11,11,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
}
.tb-search {
  position: relative; flex: 0 0 320px; max-width: 320px;
}
.tb-search input {
  width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; outline: none; transition: border .15s;
}
.tb-search input:focus { border-color: var(--primary); }
.tb-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }

.tb-nav { display: flex; gap: 4px; align-items: center; margin: 0 auto; }
.tb-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: background .15s, color .15s;
}
.tb-nav a:hover { background: var(--surface-2); color: var(--text); }
.tb-nav a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(229,9,20,.35); }

.tb-right { display: flex; align-items: center; gap: 14px; }
.tb-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); background: transparent; border: 0; position: relative;
  transition: background .15s, color .15s;
}
.tb-icon:hover { background: var(--surface-2); color: var(--text); }
.tb-icon .badge { position: absolute; top: 4px; right: 4px; background: var(--primary); color:#fff; font-size:10px; font-weight:700; padding: 1px 5px; border-radius: 10px; }
.tb-time { font-weight: 600; font-size: 14px; color: var(--text); margin-left: 6px; }
.mob-tog { display: none; }

/* ============== CONTENT ============== */
.content {
  padding: 22px 26px calc(var(--ticker-h) + 30px);
  min-height: calc(100vh - var(--top-h));
}

/* ============== HERO ============== */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); aspect-ratio: 16/6.5; min-height: 320px;
  border: 1px solid var(--border);
}
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: flex-end;
}
.hero .slide.active { opacity: 1; }
.hero .slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.65) 35%, rgba(0,0,0,.2) 65%, rgba(0,0,0,0) 100%);
}
.hero .slide-content {
  position: relative; z-index: 2; padding: 36px 42px; max-width: 60%;
}
.hero .live-pill {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 6px;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(28px, 4.5vw, 64px); line-height: 1; margin: 0 0 8px;
  letter-spacing: -1.5px;
}
.hero h1 .yel { color: var(--warn); }
.hero .h-sub { font-size: clamp(16px, 1.6vw, 22px); color: var(--text-2); margin-bottom: 18px; max-width: 520px; }
.hero .watch-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px; transition: filter .15s, transform .15s;
}
.hero .watch-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.hero .dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.hero .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s, background .25s; }
.hero .dots span.active { background: var(--primary); width: 28px; border-radius: 4px; }
.hero .h-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; font-size: 16px;
  opacity: 0; transition: opacity .2s, background .15s;
}
.hero:hover .h-arrow { opacity: 1; }
.hero .h-arrow.prev { left: 14px; } .hero .h-arrow.next { right: 14px; }
.hero .h-arrow:hover { background: var(--primary); }

/* ============== SECTION HEADING ============== */
.sec {
  margin-top: 36px;
}
.sec-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.sec-head h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 18px; margin: 0; letter-spacing: .3px; text-transform: uppercase;
  padding-left: 14px; position: relative;
}
.sec-head h2::before {
  content:''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; background: var(--primary); border-radius: 2px;
}
.sec-head .view-all {
  margin-left: auto; font-size: 13px; color: var(--text-2);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.sec-head .view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============== LIVE TV CHANNELS RAIL ============== */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
.rail > * { scroll-snap-align: start; }

.ch-card {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.ch-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.ch-thumb {
  position: relative; aspect-ratio: 16/10; background: var(--surface-3);
  background-size: cover; background-position: center;
}
.ch-thumb .live-pill {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .5px;
}
.ch-thumb .live-pill::before { content:''; display:inline-block; width:5px; height:5px; border-radius:50%; background:#fff; margin-right:5px; vertical-align: middle; animation: blink 1.2s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: .3; } }
.ch-title { padding: 10px 12px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ============== TOP NEWS GRID ============== */
.news-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.news-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.nc-img { aspect-ratio: 16/10; background: var(--surface-3); position: relative; overflow: hidden; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .nc-img img { transform: scale(1.06); }
.nc-img .live-tag { position: absolute; bottom: 10px; right: 10px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; }
.nc-body { padding: 12px 14px 14px; }
.nc-cat { display: inline-block; color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.nc-title { font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--text); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-title a:hover { color: var(--primary); }
.nc-meta { display: flex; gap: 10px; color: var(--muted); font-size: 11.5px; align-items:center; }
.nc-meta i { margin-right: 4px; }

/* ============== SHORTS RAIL ============== */
.shorts-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 8px;
}
.shorts-rail::-webkit-scrollbar { height: 6px; }
.shorts-rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius:3px; }
.short-card {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-3); cursor: pointer;
  transition: transform .2s;
}
.short-card:hover { transform: translateY(-3px); }
.short-card img { width: 100%; height: 100%; object-fit: cover; }
.short-card .dur {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
}
.short-card .play-ic {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 30px;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%);
  opacity: 0; transition: opacity .2s;
}
.short-card:hover .play-ic { opacity: 1; }
.short-card .stitle {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============== CATEGORIES GRID ============== */
.cats-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.cat-tile {
  position: relative; aspect-ratio: 5/3; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  color: #fff; overflow: hidden; isolation: isolate;
  transition: transform .2s;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile::before {
  content:''; position: absolute; inset: 0; z-index: -1;
  background: var(--c, var(--primary));
  background: linear-gradient(135deg, var(--c, var(--primary)) 0%, rgba(0,0,0,.4) 110%);
}
.cat-tile .ico { position: absolute; top: 12px; left: 14px; font-size: 22px; opacity: .85; }
.cat-tile .name { padding: 8px 12px; text-align: center; }
.cat-tile .count { position: absolute; bottom: 10px; right: 12px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 999px; }

/* ============== BOTTOM BREAKING TICKER (sticky) ============== */
.bn-ticker {
  position: fixed; left: var(--side-w); right: 0; bottom: 0;
  height: var(--ticker-h); z-index: 60;
  background: linear-gradient(90deg, var(--primary) 0%, #b00811 100%);
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  color: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.5);
}
.bn-ticker .bn-label {
  background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 6px;
  font-weight: 900; font-size: 12px; letter-spacing: 1px; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.bn-ticker .bn-label::before { content:''; width:7px; height:7px; border-radius:50%; background:#fff; animation: blink 1.2s infinite; }
.bn-ticker .bn-content { flex: 1; overflow: hidden; }
.bn-ticker .bn-track { display: inline-flex; gap: 36px; white-space: nowrap; animation: marquee 50s linear infinite; }
.bn-ticker .bn-track a { color: #fff; font-weight: 600; font-size: 13.5px; }
.bn-ticker .bn-track .sep { color: rgba(255,255,255,.5); }
.bn-ticker .live-ind { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; padding: 6px 10px; background: rgba(0,0,0,.25); border-radius: 6px; flex-shrink: 0; }
.bn-ticker .live-ind .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============== MOBILE BOTTOM TAB BAR ============== */
.tabbar { display: none; }

/* ============== ARTICLE DETAIL ============== */
.article-wrap { max-width: 920px; margin: 0 auto; }
.article-back { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.article-back:hover { color: var(--primary); }
.article-hero {
  width: 100%; aspect-ratio: 16/9; background: var(--surface-2);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
}
.article-hero img { width:100%; height:100%; object-fit: cover; }
.article-cat { display: inline-block; background: var(--primary); color:#fff; font-size:11px; font-weight:800; padding:4px 10px; border-radius:6px; text-transform:uppercase; letter-spacing:.5px; margin-bottom: 14px; }
.article-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 3.5vw, 38px); line-height: 1.2; margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.article-meta i { margin-right: 5px; color: var(--primary); }
.article-body { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.article-body h2, .article-body h3 { color: var(--text); font-family: var(--font-heading); margin-top: 28px; }
.article-body p { margin: 16px 0; }
.article-body img { border-radius: var(--radius-sm); margin: 18px 0; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 4px 18px; margin: 22px 0; background: var(--surface-2); color: var(--text); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body a { color: var(--primary); }

.share-row { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.share-row a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; transition: background .15s, color .15s; }
.share-row a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.related h3 { font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin: 30px 0 16px; padding-left: 12px; border-left: 4px solid var(--primary); }

/* ============== LIVE TV PAGE ============== */
.live-player {
  width: 100%; aspect-ratio: 16/9; background: #000;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.live-player iframe { width:100%; height:100%; border: 0; }
.live-info { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.live-info h2 { margin: 0; font-family: var(--font-heading); }

/* ============== EMPTY / LOAD STATES ============== */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 36px; opacity: .4; margin-bottom: 8px; }

/* ============== SEARCH PAGE ============== */
.search-head { margin-bottom: 24px; }
.search-head h1 { font-family: var(--font-heading); font-weight: 800; }
.search-head .q { color: var(--primary); }

/* ============== AD SLOTS ============== */
.ad-slot { margin: 22px 0; text-align: center; }
.ad-slot img { max-width: 100%; border-radius: var(--radius-sm); margin: 0 auto; }

/* ============== RESPONSIVE BREAKPOINTS ============== */

/* Tablet */
@media (max-width: 1100px) {
  :root { --side-w: 76px; }
  .side { padding: 18px 8px; }
  .side-brand .logo, .side-brand .tag { display: none; }
  .side-brand::before {
    content: 'JT'; display: block; font-family: var(--font-heading);
    font-weight: 900; font-size: 22px; color: #fff;
    background: var(--primary); width: 44px; height: 44px;
    border-radius: 12px; display:flex; align-items:center; justify-content:center;
    margin: 0 auto;
  }
  .side-item span { display: none; }
  .side-item { justify-content: center; padding: 12px 8px; }
  .side-item .live-dot { display: none; }
  .side-promo { display: none; }
  .tb-search { flex: 0 1 220px; }
  .hero h1 { font-size: clamp(24px, 3.5vw, 42px); }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --side-w: 0px; --top-h: 60px; --ticker-h: 38px; }
  .app-shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; top: 0; left: -280px; width: 280px;
    z-index: 1000; padding: 18px 14px; border-right: 1px solid var(--border);
    transition: left .25s ease; background: #0a0a0a;
  }
  .side.open { left: 0; box-shadow: 0 0 60px rgba(0,0,0,.8); }
  .side-brand .logo, .side-brand .tag { display: block; }
  .side-brand::before { display: none; }
  .side-item span { display: inline; }
  .side-item { justify-content: flex-start; padding: 12px 14px; }
  .side-item .live-dot { display: inline; }
  .side-promo { display: block; }
  .side-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 999;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .side-backdrop.show { opacity: 1; pointer-events: auto; }

  .topbar { padding: 0 12px; gap: 8px; }
  .mob-tog { display: inline-flex; }
  .tb-search { display: none; }
  .tb-nav { display: none; }
  .tb-time { display: none; }
  .tb-mob-brand {
    display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center;
    font-family: var(--font-heading); font-weight: 900; font-size: 20px;
  }
  .tb-mob-brand .b { color: var(--primary); }

  .content { padding: 14px 14px calc(var(--tabbar-h) + var(--ticker-h) + 14px); }
  .hero { aspect-ratio: 16/11; min-height: 240px; }
  .hero .slide-content { padding: 22px; max-width: 100%; }
  .hero h1 { font-size: 28px; }
  .hero .h-sub { font-size: 13px; }
  .hero .h-arrow { display: none; }

  .sec { margin-top: 26px; }
  .sec-head h2 { font-size: 15px; }
  .sec-head .view-all { padding: 5px 10px; font-size: 11px; }

  .rail { grid-auto-columns: minmax(140px, 1fr); gap: 10px; }
  .shorts-rail { grid-auto-columns: minmax(120px, 1fr); gap: 10px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nc-title { font-size: 13px; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-tile { font-size: 14px; aspect-ratio: 1/1; }
  .cat-tile .ico { font-size: 18px; top: 8px; left: 10px; }

  .bn-ticker { left: 0; bottom: var(--tabbar-h); height: var(--ticker-h); padding: 0 10px; }
  .bn-ticker .bn-label { font-size: 10px; padding: 4px 8px; }
  .bn-ticker .live-ind { display: none; }

  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--tabbar-h); z-index: 70;
    background: rgba(11,11,11,.97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: var(--text-2); font-size: 11px; font-weight: 500;
    transition: color .15s;
  }
  .tabbar a i { font-size: 18px; }
  .tabbar a.active { color: var(--primary); }
  .tabbar a.active i { transform: translateY(-2px); }

  /* Article */
  .article-title { font-size: 22px; }
  .article-body { font-size: 15px; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .news-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
