/*
Theme Name: TLC Mag
Theme URI: https://tlcmag.com/
Author: TLC Team
Description: Modern, mobile-first Hindi news & magazine theme. Clean article layout inspired by top Indian news apps. Fully responsive — works beautifully on mobile and desktop.
Version: 1.7.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tnc-news
Tags: news, hindi, mobile, responsive, blog
*/

/* =====================================================
   CSS CUSTOM PROPERTIES & DESIGN TOKENS
   ===================================================== */
:root {
  --red:            #d32f2f;
  --red-dark:       #b71c1c;
  --red-light:      #ffebee;
  --red-glow:       rgba(211, 47, 47, 0.28);
  --black:          #111111;
  --text:           #1b1c1e;
  --text-2:         #495057;
  --text-3:         #747d88;
  --border:         #e4e7eb;
  --border-subtle:  #eef0f3;
  --bg:             #f5f7fa;
  --card:           #ffffff;
  --card-hover:     #f8fafc;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow:         0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:      0 6px 18px rgba(0,0,0,0.09);
  --shadow-lg:      0 12px 28px rgba(0,0,0,0.12);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      14px;
  --header-h:       56px;
  --tr:             0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:           'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   GLOBAL RESET & ACCESSIBILITY
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tr), color var(--tr);
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr);
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -999px;
  left: 12px;
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--tr);
}
.skip-link:focus {
  top: 0;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
  width: 100%;
  max-width: 100vw;
  /* NOTE: overflow:hidden REMOVED — it breaks position:sticky */
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: clip; /* clip doesn't break sticky unlike hidden */
}

/* Hamburger button */
.hdr-menu-btn {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 1;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color var(--tr), transform var(--tr);
  -webkit-tap-highlight-color: transparent;
}
.hdr-menu-btn svg {
  display: block;
  stroke: currentColor;
}
.hdr-menu-btn:hover {
  background-color: rgba(255,255,255,0.18);
}
.hdr-menu-btn:active {
  transform: scale(0.92);
}

/* Logo */
.hdr-logo {
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.hdr-logo a {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--tr);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
/* Site name text — truncates if too long */
.hdr-logo .logo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 180px; /* Adjust as needed */
}
@media (max-width: 380px) {
  .hdr-logo .logo-name {
    max-width: 110px;
  }
}
.hdr-logo a:hover {
  opacity: 0.94;
}
.hdr-logo .logo-dot {
  color: #ffcdd2;
  font-size: 26px;
  line-height: 1;
}
.hdr-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* Header action buttons */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.hdr-btn {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--tr), transform var(--tr);
  -webkit-tap-highlight-color: transparent;
}
.hdr-btn svg {
  display: block;
  stroke: currentColor;
}
.hdr-btn:hover {
  background-color: rgba(255,255,255,0.18);
}
.hdr-btn:active {
  transform: scale(0.92);
}

/* =====================================================
   CATEGORY TABS (Sticky below header)
   ===================================================== */
.cat-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 199;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: background-color var(--tr), border-color var(--tr);
}

.cat-tabs-inner {
  display: flex;
  overflow-x: auto;
  gap: 2px;
  padding: 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs-inner::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex-shrink: 0;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color var(--tr), border-color var(--tr);
  display: block;
}
.cat-tab:hover {
  color: var(--red);
}
.cat-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* =====================================================
   BREAKING TICKER
   ===================================================== */
.ticker-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
  transition: background-color var(--tr), border-color var(--tr);
}

.ticker-tag {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker-scroll {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 16px;
  color: var(--text);
}
.ticker-scroll a {
  color: var(--text);
  transition: color var(--tr);
}
.ticker-scroll a:hover {
  color: var(--red);
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Category archive: breaking ticker hidden */
body.category .ticker-bar {
  display: none;
}

/* Category archive: big category title header hidden */
body.category .feed-header {
  display: none;
}

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px 80px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
  align-items: start;
}

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

/* Archive / Search feed header */
.feed-header {
  padding: 14px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.feed-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.35;
}
.feed-desc {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}

/* =====================================================
   ARTICLE LIST — THE CORE FEED COMPONENT
   ===================================================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
}

.article-list.standard-boxed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-list.hero-attached {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mb-section {
  margin-bottom: 24px;
}

/* Article List Item (Row) */
.art-item {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  transition: background-color var(--tr), box-shadow var(--tr);
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  min-height: 94px;
  overflow: hidden;
}

.art-item:last-child {
  border-bottom: 0;
}

.art-item:hover {
  background: var(--card-hover);
}

/* Left text block */
.art-text {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

/* Category tag */
.art-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Headline */
.art-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tr);
}
.art-item:hover .art-title {
  color: var(--red);
}

/* Meta: time, read-time, badges */
.art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.art-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.art-badge-live {
  background: var(--red);
  color: #fff;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px var(--red-glow);
}
.art-badge-breaking {
  background: #111;
  color: #fff;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Right thumbnail */
.art-thumb {
  flex-shrink: 0;
  width: 110px;
  align-self: stretch;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.art-thumb img {
  display: block !important;
  width: 110px !important;
  height: 100% !important;
  min-height: 94px;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform 0.35s ease;
}
.art-item:hover .art-thumb img {
  transform: scale(1.06);
}

.art-thumb-none {
  flex-shrink: 0;
  width: 110px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-subtle);
  font-size: 30px;
  color: var(--text-3);
}

/* =====================================================
   HERO CARD
   ===================================================== */
.art-hero {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr);
}
.art-hero:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.art-hero-img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--border-subtle);
  transition: transform 0.4s ease;
}
.art-hero:hover .art-hero-img {
  transform: scale(1.02);
}

.art-hero-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--text-3);
}

.art-hero-body {
  padding: 16px 18px 14px;
}
.art-hero-cat {
  font-size: 11px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.art-hero-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
  transition: color var(--tr);
}
.art-hero:hover .art-hero-title {
  color: var(--red);
}
.art-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

/* =====================================================
   SECTION HEAD & NEWS SECTION
   ===================================================== */
.news-section {
  margin-bottom: 26px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 0;
}
.sec-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-more {
  font-size: 12px;
  color: var(--red);
  font-weight: 800;
  padding: 4px 12px;
  border: 1.5px solid var(--red);
  border-radius: 20px;
  transition: background-color var(--tr), color var(--tr), transform var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sec-more:hover {
  background: var(--red);
  color: #fff;
  transform: translateX(2px);
}

.news-section .art-hero {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
  box-shadow: none;
}
.news-section .art-hero:hover {
  transform: none;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.widget-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--tr), border-color var(--tr);
}
.widget-box-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin-bottom: 14px;
  line-height: 1.3;
}

/* Trending items */
.trend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--tr);
}
.trend-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.trend-item:hover {
  background: var(--card-hover);
  border-radius: var(--radius-sm);
}

.trend-num {
  font-size: 17px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  padding-top: 2px;
}
.trend-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  transition: color var(--tr);
}
.trend-title:hover {
  color: var(--red);
}

.trend-thumb {
  flex-shrink: 0;
  width: 74px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border-subtle);
}
.trend-thumb img {
  display: block !important;
  width: 74px !important;
  height: 54px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}
.trend-item:hover .trend-thumb img {
  transform: scale(1.06);
}

/* Call to Action buttons */
.cta-btn {
  display: block;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  margin-top: 12px;
  box-shadow: 0 2px 8px var(--red-glow);
  transition: background-color var(--tr), transform var(--tr);
}
.cta-btn:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 0 10px;
}
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--card);
  color: var(--text);
  transition: all var(--tr);
}
.pagination a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.pagination .current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* =====================================================
   SINGLE ARTICLE PAGE
   ===================================================== */
.single-wrap {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.single-header-area {
  padding: 24px 24px 18px;
}

.single-media-wrap {
  margin: 0;
  position: relative;
  width: 100%;
  background: var(--border-subtle);
  overflow: hidden;
}

.single-feat-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--border-subtle);
}

.single-img-caption {
  font-size: 12px;
  color: var(--text-3);
  padding: 8px 24px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  font-style: italic;
  line-height: 1.4;
}

.single-body {
  padding: 22px 24px 28px;
}

.single-cat {
  font-size: 12px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-title {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.38;
  color: var(--text);
  margin: 10px 0 16px;
}

.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.single-meta strong {
  color: var(--text);
}

.single-content {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--text);
}
.single-content p {
  margin-bottom: 1.3em;
}
.single-content h2 {
  font-size: 21px;
  margin: 1.6em 0 0.6em;
  font-weight: 900;
}
.single-content h3 {
  font-size: 18px;
  margin: 1.4em 0 0.5em;
  font-weight: 800;
}
.single-content img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.2em 0;
  height: auto;
}
.single-content ul, .single-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.single-content li {
  margin-bottom: 0.5em;
}
.single-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 16px;
  background: var(--red-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-2);
  margin: 1.3em 0;
}
.single-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Social share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.share-bar-label {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}
.share-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  color: #fff;
}
.share-btn:active {
  transform: scale(0.94);
}
.share-btn .share-icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.s-wa   { background: #25d366; }
.s-fb   { background: #1877f2; }
.s-tw   { background: #0f1419; }
.s-tg   { background: #229ed9; }
.s-copy { background: #475569; }

[data-theme="dark"] .s-tw {
  background: #111418;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Related articles */
.related-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.related-section h3 {
  font-size: 16.5px;
  font-weight: 900;
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin-bottom: 12px;
}

/* Related articles list — clean list style inside single post */
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.related-articles-list .art-item {
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 !important;
  padding: 10px 12px;
  background: var(--card);
  transition: background var(--tr);
}
.related-articles-list .art-item:last-child {
  border-bottom: none;
}
.related-articles-list .art-item:hover {
  background: var(--card-hover);
}
.related-articles-list .art-title {
  font-size: 14px;
  -webkit-line-clamp: 2;
}
.related-articles-list .art-thumb {
  width: 88px;
  flex-shrink: 0;
  border-radius: 8px !important;
  overflow: hidden;
}
.related-articles-list .art-thumb img {
  width: 88px !important;
  height: 66px !important;
  object-fit: cover !important;
  border-radius: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rel-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  display: block;
  transition: transform var(--tr), box-shadow var(--tr);
}
.rel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rel-card img {
  width: 100% !important;
  height: 96px !important;
  object-fit: cover !important;
  display: block !important;
}
.rel-card-title {
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  line-height: 1.45;
  color: var(--text);
  transition: color var(--tr);
}
.rel-card:hover .rel-card-title {
  color: var(--red);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.post-tags a {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-2);
  font-weight: 600;
  transition: all var(--tr);
}
.post-tags a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Comments form */
.comments-wrap {
  margin-top: 28px;
}
.comment-form-comment textarea,
.comment-form input[type=text],
.comment-form input[type=email] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  margin-top: 6px;
  transition: border-color var(--tr);
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--red);
  outline: none;
}
.comment-form .form-submit input {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color var(--tr);
}
.comment-form .form-submit input:hover {
  background: var(--red-dark);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 10px 0 6px;
}
.breadcrumb a {
  color: var(--red);
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #151619;
  color: #9da3ad;
  font-size: 13.5px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 36px 0 28px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 14.5px;
  font-weight: 900;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  display: inline-block;
}
.footer-grid ul li {
  margin-bottom: 8px;
}
.footer-grid ul li a {
  color: #88909c;
  transition: color var(--tr), padding-left var(--tr);
  display: inline-block;
}
.footer-grid ul li a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-brand p {
  font-size: 13px;
  color: #88909c;
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #9da3ad;
  transition: background-color var(--tr), transform var(--tr);
}
.footer-social a:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  background: #0d0e10;
  text-align: center;
  padding: 14px 16px;
  color: #606773;
  font-size: 12px;
  border-top: 1px solid #1f2228;
}

/* =====================================================
   MOBILE BOTTOM NAV
   ===================================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 300;
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.bottom-nav-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.bottom-nav-row a, .bottom-nav-row button {
  font-size: 11px;
  background: none;
  border: none;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-2);
  padding: 4px 2px;
  font-weight: 600;
  transition: color var(--tr), transform var(--tr);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-row a:hover, .bottom-nav-row button:hover,
.bottom-nav-row a.active {
  color: var(--red);
}
.bottom-nav-row .bn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}
.bottom-nav-row .bn-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  stroke: currentColor;
  transition: transform var(--tr), stroke var(--tr);
}
.bottom-nav-row a:hover .bn-icon svg,
.bottom-nav-row button:hover .bn-icon svg,
.bottom-nav-row a.active .bn-icon svg {
  stroke: var(--red);
  transform: translateY(-1px);
}
.bottom-nav-row a:active,
.bottom-nav-row button:active {
  transform: scale(0.95);
}

/* Back to top button */
#back-top {
  position: fixed;
  bottom: 78px;
  right: 16px;
  background: var(--red);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  z-index: 301;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--red-glow);
  transition: background-color var(--tr), transform var(--tr);
}
#back-top:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* =====================================================
   DRAWER MENU
   ===================================================== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.drawer-overlay.open {
  display: block;
}
.drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--card);
  z-index: 401;
  overflow-y: auto;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}
.drawer.open {
  left: 0;
}
.drawer-header {
  background: var(--red);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
}
.drawer-header strong {
  font-size: 17.5px;
  font-weight: 900;
}
.drawer-close {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--tr), transform var(--tr);
}
.drawer-close svg {
  display: block;
  stroke: currentColor;
}
.drawer-close:hover {
  background-color: rgba(255,255,255,0.2);
}
.drawer-close:active {
  transform: scale(0.92);
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background-color var(--tr), color var(--tr);
}
.drawer-nav a:hover {
  background: var(--card-hover);
  color: var(--red);
}
.drawer-section-label {
  padding: 10px 20px 4px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* =====================================================
   LIVE INSTANT SEARCH OVERLAY & AJAX LOAD MORE
   ===================================================== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.82);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}
.search-overlay.open {
  display: flex;
}

/* Modal Dialog Box */
.search-modal-box {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: tncnSearchDrop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
@keyframes tncnSearchDrop {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-modal-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
}

.search-modal-form {
  display: flex;
  align-items: center;
  flex: 1;
  background: #f4f6f9;
  border: 1.5px solid #e2e6ec;
  border-radius: 30px;
  padding: 4px 6px 4px 14px;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.search-modal-form:focus-within {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.search-input-icon {
  display: flex;
  align-items: center;
  color: var(--text-3);
  margin-right: 8px;
  flex-shrink: 0;
}
.search-modal-form:focus-within .search-input-icon {
  color: var(--red);
}

.search-modal-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: #111;
  font-size: 15.5px;
  font-family: var(--font);
  font-weight: 600;
  padding: 10px 4px;
  outline: none;
  min-width: 0;
}
.search-modal-form input::placeholder {
  color: #8c939f;
  font-weight: 500;
}

.search-input-clear {
  background: #dfe3ea;
  border: none;
  color: #495057;
  font-size: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 6px;
  line-height: 1;
  padding: 0;
  transition: background var(--tr), color var(--tr);
}
.search-input-clear:hover {
  background: var(--red);
  color: #fff;
}

.search-submit-btn {
  background: var(--grad-cta);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}
.search-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.search-close {
  background: #edf0f4;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color var(--tr), transform var(--tr), color var(--tr);
}
.search-close:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.05);
}

/* Live Search Results Container */
.search-live-results {
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid #edf0f4;
}

.live-search-loading {
  padding: 34px 18px;
  text-align: center;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.live-search-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-2);
}
.live-search-empty .empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.live-search-empty p {
  margin: 0 0 4px;
  font-size: 15px;
  color: #111;
}
.live-search-empty .empty-sub {
  font-size: 12.5px;
  color: var(--text-3);
}

.live-search-list {
  display: flex;
  flex-direction: column;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
  transition: background-color var(--tr);
}
.live-search-item:hover {
  background: #f7f9fc;
}

.live-search-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e9ecef;
}
.live-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-search-thumb-none {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #888;
}

.live-search-info {
  flex: 1;
  min-width: 0;
}
.live-search-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-light);
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
}
.live-search-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1b1e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-search-time {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
}

.live-search-arrow {
  color: var(--text-3);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform var(--tr), color var(--tr);
}
.live-search-item:hover .live-search-arrow {
  color: var(--red);
  transform: translateX(3px);
}

.live-search-all-link {
  display: block;
  text-align: center;
  padding: 13px 18px;
  background: #f7f9fc;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  border-top: 1px solid #edf0f4;
  transition: background var(--tr);
}
.live-search-all-link:hover {
  background: var(--red-light);
}

/* ---------- AJAX Load More Button ---------- */
.tncn-load-more-wrap {
  text-align: center;
  margin: 32px 0 28px;
}
.tncn-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: 32px;
  background: var(--grad-cta);
  color: #ffffff;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.35);
  transition: transform var(--tr), box-shadow var(--tr), opacity var(--tr);
}
.tncn-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.45);
}
.tncn-load-more-btn:active {
  transform: translateY(0);
}
.tncn-load-more-btn.loading {
  opacity: 0.85;
  cursor: wait;
}
.tncn-load-more-btn .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tncn-spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: tncnSpin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.live-search-loading .tncn-spinner {
  border-color: rgba(211, 47, 47, 0.25);
  border-top-color: var(--red);
}
@keyframes tncnSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Dark Mode Overrides ---------- */
body.dark .search-modal-box {
  background: #1b1d24;
  border-color: #2b2e38;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
body.dark .search-modal-top {
  border-bottom-color: #2b2e38;
}
body.dark .search-modal-form {
  background: #232731;
  border-color: #313644;
}
body.dark .search-modal-form input {
  color: #fff;
}
body.dark .search-modal-form input::placeholder {
  color: #727a89;
}
body.dark .search-close {
  background: #252934;
  color: #b0b6c2;
}
body.dark .search-close:hover {
  background: var(--red);
  color: #fff;
}
body.dark .search-input-clear {
  background: #343946;
  color: #b0b6c2;
}
body.dark .search-live-results {
  border-top-color: #2b2e38;
}
body.dark .live-search-item {
  border-bottom-color: #262934;
}
body.dark .live-search-item:hover {
  background: #232631;
}
body.dark .live-search-title {
  color: #f0f2f5;
}
body.dark .live-search-empty p {
  color: #fff;
}
body.dark .live-search-all-link {
  background: #17181f;
  border-top-color: #282b35;
  color: #ff6b6b;
}
body.dark .live-search-all-link:hover {
  background: rgba(211, 47, 47, 0.18);
}


/* =====================================================
   EMPTY STATE / 404
   ===================================================== */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-3);
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.empty-state .icon {
  font-size: 56px;
  margin-bottom: 14px;
}
.empty-state h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 900;
}
.empty-state p {
  margin-bottom: 22px;
  font-size: 14.5px;
}

/* =====================================================
   DARK MODE
   ===================================================== */
body.dark {
  --bg:             #0f1013;
  --card:           #17191d;
  --card-hover:     #1f2127;
  --text:           #eff2f6;
  --text-2:         #a2a8b4;
  --text-3:         #717784;
  --border:         rgba(255, 255, 255, 0.08);
  --border-subtle:  rgba(255, 255, 255, 0.04);
  --black:          #f0f2f5;
  --red-light:      rgba(211, 47, 47, 0.16);
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow:         0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-md:      0 6px 20px rgba(0, 0, 0, 0.55);
}

body.dark .site-footer {
  background: #090a0c;
}
body.dark .footer-bottom {
  background: #050507;
  border-top-color: rgba(255, 255, 255, 0.06);
}
body.dark .bottom-nav {
  background: rgba(23, 25, 29, 0.94);
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.dark .drawer {
  background: #17191d;
}
body.dark .drawer-nav a {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e0e4eb;
}
body.dark .drawer-section-label {
  background: #121316;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark .cat-tabs {
  background: #17191d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark .ticker-bar {
  background: #17191d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   RESPONSIVE DESIGN — TABLET ≤960px
   ===================================================== */
@media (max-width: 960px) {
  .site-main {
    grid-template-columns: 1fr 270px;
    gap: 16px;
  }
}

/* =====================================================
   RESPONSIVE DESIGN — MOBILE ≤767px
   ===================================================== */
@media (max-width: 767px) {
  .site-main {
    grid-template-columns: 1fr;
    padding: 10px 12px 84px;
    gap: 12px;
  }
  /* Single post: hide breaking ticker on mobile */
  body.single .ticker-bar {
    display: none;
  }
  .site-sidebar {
    display: none; /* Sidebar collapses on mobile in favor of bottom nav */
  }
  .bottom-nav {
    display: block;
  }
  .hdr-logo a {
    font-size: 16px;
    letter-spacing: -0.2px;
  }

  /* Article list item mobile sizing */
  .art-thumb {
    width: 96px;
  }
  .art-thumb img {
    width: 96px !important;
  }
  .art-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
  .art-text {
    padding: 10px 12px;
  }

  /* Hero card mobile sizing */
  .art-hero-body {
    padding: 14px 14px 12px;
  }
  .art-hero-title {
    font-size: 17.5px;
  }

  /* Single post */
  .single-body {
    padding: 16px 16px 22px;
  }
  .single-title {
    font-size: 21px;
  }
  .single-content {
    font-size: 15.5px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 24px 0 20px;
  }
  .site-footer {
    margin-bottom: 60px;
  }
}

/* =====================================================
   RESPONSIVE DESIGN — SMALL MOBILE ≤480px
   ===================================================== */
@media (max-width: 480px) {
  .art-thumb {
    width: 84px;
  }
  .art-thumb img {
    width: 84px !important;
  }
  .art-title {
    font-size: 13.5px;
    line-height: 1.4;
  }
  .art-hero-title {
    font-size: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .share-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}

/* =====================================================
   SIDEBAR VIDEO WIDGET (Desktop Sidebar)
   ===================================================== */
.video-sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.video-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-side-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--tr);
}
.video-side-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.video-side-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.video-side-item:hover .video-side-img {
  transform: scale(1.05);
}
.video-side-placeholder {
  width: 100%;
  height: 100%;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #888;
}
.video-side-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr);
}
.video-side-item:hover .video-side-play-overlay {
  background: rgba(0, 0, 0, 0.12);
}
.video-side-play-btn {
  width: 38px;
  height: 38px;
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 2px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.video-side-item:hover .video-side-play-btn {
  transform: scale(1.15);
}
.video-side-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.video-side-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.video-side-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tr);
}
.video-side-item:hover .video-side-title {
  color: var(--red);
}
.video-side-time {
  font-size: 11px;
  color: var(--text-3);
}
.video-side-more-btn {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--tr);
  text-decoration: none;
}
.video-side-more-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* =====================================================
   MOBILE VIDEO SECTION (Carousel in Mobile Feed)
   ===================================================== */
.mobile-video-section {
  margin-bottom: 24px;
}
.video-live-pill {
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.mobile-video-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mobile-video-scroll::-webkit-scrollbar {
  height: 4px;
}
.mobile-video-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.mob-video-card {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--tr);
}
.mob-video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.mob-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mob-video-placeholder {
  width: 100%;
  height: 100%;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #888;
}
.mob-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mob-play-btn {
  width: 40px;
  height: 40px;
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 2px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.55);
}
.mob-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.mob-video-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mob-video-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mob-video-time {
  font-size: 11px;
  color: var(--text-3);
}

/* =====================================================
   VIDEO LIGHTBOX MODAL
   ===================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.video-modal-badge {
  font-size: 13px;
  font-weight: 900;
  color: var(--red);
}
.video-modal-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color var(--tr);
}
.video-modal-close:hover {
  color: var(--red);
}
.video-modal-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #000;
}
.video-modal-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-modal-footer {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.video-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.video-modal-link {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity var(--tr);
}
.video-modal-link:hover {
  opacity: 0.9;
}

/* =====================================================
   SINGLE POST VIDEO PLAYER
   ===================================================== */
.single-video-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.single-video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Suppress default archives and recent comments clutter */
.wp-block-archives,
.wp-block-latest-comments,
#block-4,
#block-5 {
  display: none !important;
}

/* =====================================================
   RESPONSIVE VIDEO BREAKPOINTS
   ===================================================== */
/* Desktop >= 768px: Strictly hide mobile video section from feed (shown in sidebar) */
@media (min-width: 768px) {
  .mobile-only-video-wrap,
  .mobile-video-section {
    display: none !important;
  }
}

/* Mobile <= 767px: Show mobile video section in feed */
@media (max-width: 767px) {
  .mobile-only-video-wrap {
    display: block !important;
  }
  .mobile-video-section {
    display: block !important;
  }
}

/* =====================================================
   E-MAGAZINE PORTAL STYLES
   ===================================================== */
.site-main.e-magazine-main {
  display: block !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin: 24px auto 40px !important;
  padding: 0 16px 60px !important;
  box-sizing: border-box !important;
}

.mag-spotlight-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
}
.mag-cover-col {
  flex: 0 0 240px;
  max-width: 240px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.mag-info-col {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.mag-book-wrap:hover .mag-book-3d {
  transform: translateY(-6px) rotateY(-5deg);
  box-shadow: -14px 18px 30px rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.2) !important;
}
.mag-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}
.btn-mag-read:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(211,47,47,0.5) !important;
}

@media (max-width: 860px) {
  .mag-spotlight-box {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 16px !important;
    gap: 20px !important;
  }
  .mag-cover-col {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .mag-book-3d {
    width: 210px !important;
    max-width: 75vw !important;
    margin: 0 auto !important;
  }
  .mag-info-col {
    text-align: left !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .mag-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .mag-actions > * {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  /* Mobile modal: NEVER vertically center, always start at top of screen */
  .mag-modal {
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
  }
  body.admin-bar .mag-modal {
    top: 46px !important;
    height: calc(100% - 46px) !important;
    height: calc(100dvh - 46px) !important;
  }
  .mag-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .mag-portal-header h1 {
    font-size: 22px !important;
  }
  .mag-spotlight-box {
    padding: 18px 12px !important;
    border-radius: 12px !important;
  }
  .mag-info-col h2 {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }
  .mag-book-3d {
    width: 170px !important;
    max-width: 70vw !important;
  }
  .mag-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 14px !important;
  }
}


/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  .site-header, .cat-tabs, .ticker-bar, .bottom-nav, .drawer,
  .drawer-overlay, .search-overlay, .site-sidebar,
  .video-modal, .site-footer, #back-top, .share-bar {
    display: none !important;
  }
  .site-main {
    display: block;
    padding: 0;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 13px;
  }
}

/* =====================================================
   TNC ADS (AdSense slots)
   ===================================================== */
.tncn-ad { margin: 14px 0; }
.tncn-ad-label {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.tncn-ad-body { text-align: center; overflow: hidden; }
.tncn-ad-body ins { text-decoration: none; }
.article-list > .tncn-ad {
  margin: 0;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--card);
}
.tncn-ad-header { max-width: 1120px; margin: 10px auto 0; padding: 0 16px; }
.widget-box + .tncn-ad-sidebar, .site-sidebar > .tncn-ad-sidebar { margin-top: 0; }
.single-body > .tncn-ad { margin: 18px 0; }
/* Sticky bottom ad — mobile only, sits above bottom nav */
.tncn-sticky-ad {
  display: none;
  position: fixed;
  left: 8px; right: 8px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 299;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 14px 8px 8px;
  text-align: center;
}
.tncn-sticky-ad .tncn-ad-label { margin-bottom: 2px; }
.tncn-sticky-close {
  position: absolute;
  top: -11px; right: -4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #111; color: #fff;
  font-size: 16px; line-height: 1;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 767px) {
  .tncn-sticky-ad { display: block; }
}

/* =====================================================
   TNC UI 2.0 — PREMIUM NEWS APP POLISH (v1.6.0)
   Overrides layered on top; no markup breakage.
   ===================================================== */
:root {
  --red-2:            #ee3a3a;
  --ink:              #101216;
  --muted:            #5b6470;
  --line:             #e7ebf0;
  --paper:            #f4f6f9;
  --radius-xl:        18px;
  --shadow-pop:       0 10px 30px rgba(16,18,22,0.12);
  --shadow-lift:      0 8px 22px rgba(211,47,47,0.18);
  --grad-header:      linear-gradient(135deg, #e02e2e 0%, #b71c1c 55%, #7f1010 100%);
  --grad-cta:         linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
  --glass:            rgba(255,255,255,0.86);
}

/* ---------- Top utility strip ---------- */
.tncn-topbar {
  background: #0f1114;
  color: #c8cfd8;
  font-size: 12px;
  line-height: 1;
}
.tncn-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.tncn-topbar-date { font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tncn-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tncn-live-dot { display:inline-flex; align-items:center; gap:6px; color:#fff; font-weight:800; font-size:11px; letter-spacing:0.6px; }
.tncn-live-dot i { width:8px; height:8px; border-radius:50%; background:#ff3b30; box-shadow:0 0 0 4px rgba(255,59,48,0.22); animation: tncnBlink 1.4s infinite; display:inline-block; }
@keyframes tncnBlink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ---------- Header 2.0 ---------- */
.site-header {
  background: var(--grad-header);
  height: 60px;
  box-shadow: 0 4px 18px rgba(127,16,16,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.site-header.shrunk { height: 52px; box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.site-header.shrunk .hdr-logo a { font-size: 19px; }
.hdr-logo a {
  font-size: 23px;
  letter-spacing: -0.6px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.hdr-logo .logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: #fff; color: var(--red);
  font-size: 17px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hdr-logo .logo-dot { display: none; }
.hdr-btn, .hdr-menu-btn { border-radius: 10px; width: 40px; height: 40px; }
.hdr-btn:hover, .hdr-menu-btn:hover { background: rgba(255,255,255,0.2); }

/* Reading progress */
#tncn-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 600;
  background: linear-gradient(90deg, #ffb300, #ff3d3d); box-shadow: 0 0 10px rgba(255,61,61,0.7); }

/* ---------- Category pills ---------- */
.cat-tabs { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.cat-tabs-inner { gap: 8px; padding: 8px 12px; }
.cat-tabs-inner::before, .cat-tabs-inner::after { content:""; flex: 0 0 4px; }
.cat-tab {
  border-bottom: 0;
  background: var(--bg, #f1f4f8);
  background: color-mix(in srgb, var(--card) 70%, var(--bg) 30%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.2;
}
.cat-tab:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.cat-tab.active {
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(211,47,47,0.35);
}

/* ---------- Ticker 2.0 ---------- */
.ticker-bar { height: 40px; background: var(--card); }
.ticker-tag { gap: 7px; font-size: 11.5px; padding: 0 16px; background: var(--grad-cta); }
.ticker-tag::before { content:""; width:8px; height:8px; border-radius:50%; background:#fff; animation: tncnBlink 1.2s infinite; }
.ticker-scroll { font-size: 13.5px; }
.ticker-scroll a { position: relative; padding-left: 14px; }
.ticker-scroll a::before { content:"›"; position:absolute; left:0; color: var(--red); font-weight:900; }

/* ---------- Layout breathing room ---------- */
.site-main { gap: 22px; padding-top: 18px; }
.main-feed { min-width: 0; }

/* ---------- Section head 2.0 ---------- */
.sec-head { border-bottom: 0; padding: 14px 2px 12px; gap: 12px; }
.sec-title { font-size: 18px; letter-spacing: -0.3px; }
.sec-title::before { content:""; width:5px; height:22px; border-radius:99px; background: var(--grad-cta); box-shadow: var(--shadow-lift); }
.sec-more { border-radius: 999px; padding: 6px 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.sec-more:hover { box-shadow: var(--shadow-lift); }

/* ---------- Hero 2.0 : overlay cinematic ---------- */
.art-hero {
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  position: relative;
}
.art-hero-media { position: relative; overflow: hidden; background: #0b0c0e; }
.art-hero-img { aspect-ratio: 16/8.2; transform: scale(1.001); }
.art-hero:hover .art-hero-img { transform: scale(1.045); }
.art-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 34%, rgba(0,0,0,0.28) 58%, rgba(0,0,0,0.78) 100%);
}
.art-hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  color: #fff;
}
.art-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  margin-bottom: 8px;
}
.art-hero-overlay .art-hero-title { color: #fff; font-size: 21px; line-height: 1.35; margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.art-hero-overlay .art-hero-meta { color: rgba(255,255,255,0.88); font-size: 12px; }
.art-hero-fallback-body { background: var(--card); }

/* ---------- Article list 2.0 ---------- */
.article-list.standard-boxed, .article-list.hero-attached {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.art-item { gap: 12px; padding: 12px; min-height: 0; border-bottom: 1px solid var(--border-subtle); align-items: center; }
.art-item:hover { background: var(--card-hover); }
.art-item:hover .art-title { color: var(--red); }
.art-text { padding: 2px 0; gap: 7px; justify-content: center; }
.art-cat {
  align-self: flex-start;
  background: var(--red-light);
  color: var(--red);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
body.dark .art-cat { background: rgba(211,47,47,0.18); }
.art-title { font-size: 15.5px; line-height: 1.5; letter-spacing: -0.15px; -webkit-line-clamp: 2; }
.art-excerpt { font-size: 12.8px; line-height: 1.55; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { font-size: 11.5px; gap: 6px; }
.art-meta .dot { opacity: 0.45; }
.art-thumb, .art-thumb-none {
  width: 124px !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.art-thumb { aspect-ratio: 4/3; align-self: center !important; background: #f0f0f0; box-shadow: var(--shadow-sm); }
.art-thumb img { width: 124px !important; height: 100% !important; object-fit: cover !important; object-position: center center !important; border-radius: 12px; }
.art-thumb-none { aspect-ratio: 4/3; border-radius: 12px; font-size: 26px; }
.art-play { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.22); }
.art-play span { width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.94); color:#d32f2f;
  display:flex; align-items:center; justify-content:center; font-size:12px; padding-left:2px; box-shadow:0 3px 10px rgba(0,0,0,0.35); }

/* Numbered rank for first 3 items in boxed lists (editorial feel) */
.article-list.standard-boxed .art-item:nth-child(-n+3) .art-title::after { content:""; }

/* ---------- Sidebar 2.0 ---------- */
.widget-box { border-radius: var(--radius-xl); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.widget-box-title { font-size: 15.5px; border-left: 0; padding-left: 0; display:flex; align-items:center; gap:8px; }
.widget-box-title::before { content:""; width:5px; height:18px; border-radius:99px; background: var(--grad-cta); }
.trend-item { border-radius: 12px; padding: 10px 8px; gap: 10px; }
.trend-num {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size: 14px; padding: 0;
}
.trend-item:nth-child(2) .trend-num { background: var(--red); border-color: var(--red); color:#fff; }
.trend-item:nth-child(3) .trend-num { background:#111; border-color:#111; color:#fff; }
.trend-thumb, .trend-thumb img { border-radius: 10px !important; }
.cta-btn { background: var(--grad-cta); border-radius: 12px; letter-spacing: 0.2px; }

/* ---------- Single 2.0 ---------- */
.single-wrap { border-radius: var(--radius-xl); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.single-body { padding: 24px 24px 28px; }
.single-cat { background: var(--red); color:#fff !important; padding: 4px 12px; border-radius: 999px; font-size: 11px; display:inline-block; }
.single-title { font-size: 27px; line-height: 1.4; letter-spacing: -0.5px; margin: 12px 0 14px; }
.single-meta { background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 14px; gap: 10px 16px; }
.single-meta .avatar { width:32px; height:32px; border-radius:50%; background:var(--red); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-weight:900; flex-shrink:0; }
.single-content { font-size: 17px; line-height: 1.95; }
.single-content p:first-of-type::first-letter { font-size: 2.6em; font-weight: 900; color: var(--red); float:left; line-height:1; padding-right:8px; }
.single-content img { border-radius: 14px; box-shadow: var(--shadow-sm); }
.share-bar { gap: 10px; }
.author-box { display:flex; gap:12px; background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:14px 16px; margin-top:22px; align-items:center; }
.author-box .avatar { width:46px; height:46px; border-radius:50%; background:var(--grad-cta); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:19px; font-weight:900; flex-shrink:0; }
.author-box h4 { font-size:14.5px; margin:0 0 3px; }
.author-box p { font-size:12.8px; color:var(--text-2); margin:0; line-height:1.55; }
.rel-card { border-radius: 14px; }
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.prevnext:has(> :only-child) {
  grid-template-columns: 1fr; /* sirf ek post hone par full width */
}
.prevnext a {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--card);
  display: block;
  transition: all var(--tr);
  min-width: 0;
}
.prevnext a:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.prevnext small {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.prevnext span {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: var(--text);
}
.prevnext-next {
  text-align: right;
}
@media (max-width: 480px) {
  .prevnext {
    grid-template-columns: 1fr;
  }
  .prevnext-next {
    text-align: left;
  }
}

/* ---------- Bottom nav floating pill ---------- */
.bottom-nav { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav-row {
  background: var(--glass);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  padding: 6px 4px;
  max-width: 520px; margin: 0 auto;
}
body.dark .bottom-nav-row { background: rgba(23,25,29,0.9); }
.bottom-nav-row a.active .bn-icon { background: var(--red-light); border-radius: 12px; padding: 2px 10px; }
#back-top { bottom: 92px; width:44px; height:44px; box-shadow: 0 8px 20px rgba(211,47,47,0.45); }

/* ---------- Drawer 2.0 ---------- */
.drawer { width: 300px; border-radius: 0 20px 20px 0; }
.drawer-header { background: var(--grad-header); padding: 18px; }
.drawer-nav a { border-radius: 12px; margin: 2px 10px; border-bottom: 0; padding: 12px 14px; }
.drawer-nav a:hover { background: var(--red-light); transform: translateX(3px); }


/* ---------- Video cards polish ---------- */
.mob-video-card, .video-side-item { border-radius: 14px !important; }
.mob-play-btn, .video-side-play-btn { background: rgba(255,255,255,0.95) !important; color: #e53935 !important; box-shadow: 0 6px 16px rgba(0,0,0,0.4) !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } .ticker-scroll{animation-duration:60s} }

/* ---------- Footer 2.0 ---------- */
.site-footer { background: linear-gradient(180deg, #17181c 0%, #0e0f12 100%); border-top: 3px solid var(--red); }
.footer-grid { gap: 30px; padding: 40px 0 30px; }
.newsletter-box { display:flex; gap:8px; margin-top:12px; }
.newsletter-box input { flex:1; padding:11px 14px; border-radius:12px; border:1px solid #2a2e36; background:#20242b; color:#fff; font-family:var(--font); font-size:13.5px; min-width:0; }
.newsletter-box button { background:var(--grad-cta); color:#fff; border-radius:12px; padding:11px 16px; font-weight:800; font-size:13px; white-space:nowrap; }

/* ---------- Responsive tuning ---------- */
@media (max-width: 767px) {
  .tncn-topbar { display: none; }
  .site-header { height: 56px; }
  .art-item { padding: 10px; gap: 10px; }
  .art-thumb, .art-thumb-none { width: 104px !important; }
  .art-thumb img { width: 104px !important; }
  .art-title { font-size: 14.2px; }
  .art-excerpt { display: none; }
  .art-hero-img { aspect-ratio: 16/10; }
  .art-hero-overlay { padding: 34px 14px 13px; }
  .art-hero-overlay .art-hero-title { font-size: 18px; }
  .single-title { font-size: 22px; }
  .single-header-area { padding: 18px 16px 14px; }
  .single-body { padding: 18px 16px 22px; }
  .single-img-caption { padding: 6px 16px; }
  .prevnext { grid-template-columns: 1fr; }
  .site-footer { margin-bottom: 84px; }
}
@media (max-width: 480px) {
  .art-thumb, .art-thumb-none { width: 92px !important; }
  .art-thumb img { width: 92px !important; }
}
