/*
Theme Name: Minnal24 News
Theme URI: https://minnal24.com
Author: Minnal24 Team
Author URI: https://minnal24.com
Description: மட்டக்களப்பு மற்றும் இலங்கை தமிழ் செய்திகளுக்கான நவீன WordPress Theme
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: minnal24
*/

/* ================================================
   OVERFLOW NUCLEAR FIX - Prevents horizontal scroll
   ================================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
.container, .site-header, .main-nav-bar, .breaking-news-bar,
.site-main, .content-sidebar-grid, .site-footer,
.single-article, .single-content, .entry-content,
.sidebar, .sidebar-widget,
.weather-widget, .currency-widget, .gold-widget,
.social-follow-widget, .newsletter-section,
.single-hero-img, #tn-poll, .m24-audio-player,
.share-row, .post-meta-bar {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
img, video { max-width: 100% !important; height: auto !important; }
#radio-bar { max-width: 100vw !important; box-sizing: border-box !important; overflow: hidden !important; }


/* =============================================
   OVERFLOW FIX — prevents horizontal scroll
   ============================================= */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative !important;
}
.container,
.single-article,
.single-content,
.entry-content,
.content-sidebar-grid,
.site-main,
.site-header,
.site-footer,
.breaking-news-bar,
.main-nav-bar {
  max-width: 100% !important;
  box-sizing: border-box !important;
}


@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@300;400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #CC0000;
  --primary-dark: #990000;
  --gold: #F59E0B;
  --gold-light: #FACC15;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --font-tamil: 'Noto Sans Tamil', sans-serif;
  --font-body: 'Source Sans 3', 'Noto Sans Tamil', sans-serif;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
}
body.dark-mode {
  --white: #1e293b;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-700: #cbd5e1;
  --gray-800: #e2e8f0;
  --gray-900: #f1f5f9;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--gray-100); color: var(--gray-900); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.dark-mode { background: #0f172a; color: #e2e8f0; }
*, *::before, *::after { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
.tamil-text { font-family: var(--font-tamil); line-height: 1.8; }

/* Container - responsive */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 640px) { .container { padding: 0 12px; } }

/* ============================================
   HEADER - NO TOPBAR, Logo + Nav only
   ============================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, border-bottom 0.3s;
}
body.dark-mode .site-header { background: #1e293b; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); border-bottom: 2px solid var(--primary); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}

/* Logo image - responsive */
.site-logo-wrap { flex-shrink: 0; }
.site-logo-wrap a { display: flex; align-items: center; }
.site-logo-wrap img.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
/* Force ALL logo images - WordPress custom logo classes */
.site-logo-wrap img,
.custom-logo,
.custom-logo-link img,
a.custom-logo-link img,
.site-logo-wrap a img,
.header-inner .site-logo-wrap img {
  height: 52px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  display: block !important;
}
@media (max-width: 480px) {
  .site-logo-wrap img,
  .custom-logo,
  .custom-logo-link img,
  .site-logo-wrap a img,
  .site-logo-wrap img.site-logo-img { 
    height: 38px !important; 
    max-width: 150px !important;
    max-height: 38px !important;
  }
}

/* Header ad */
.header-ad-slot { flex: 1; max-width: 480px; display: none; }
@media (min-width: 1024px) { .header-ad-slot { display: block; } }
.header-ad-inner {
  width: 100%; height: 60px;
  border: 2px dashed var(--gray-200);
  background: var(--gray-50);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray-400);
}
body.dark-mode .header-ad-inner { background: #334155; border-color: #475569; }

/* Header action buttons */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-btn {
  width: 38px; height: 38px;
  border: none; background: transparent; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: all 0.2s;
}
.header-btn:hover { background: #fee2e2; color: var(--primary); }
body.dark-mode .header-btn { color: #94a3b8; }
body.dark-mode .header-btn:hover { background: #334155; color: #f1f5f9; }
.header-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle-btn { display: flex; }
@media (min-width: 768px) { .menu-toggle-btn { display: none; } }

/* Search dropdown */
.search-dropdown { display: none; padding: 10px 0 12px; border-top: 1px solid var(--gray-100); }
.search-dropdown.open { display: block; }
body.dark-mode .search-dropdown { border-color: #334155; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 10px 16px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: 14px; font-family: var(--font-tamil); outline: none;
  background: var(--white); color: var(--gray-900); transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--primary); }
body.dark-mode .search-form input { background: #334155; border-color: #475569; color: #e2e8f0; }
.search-form button {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 20px; border-radius: 10px;
  font-family: var(--font-tamil); font-weight: 700; font-size: 14px;
}
.search-form button:hover { background: var(--primary-dark); }

/* ============================================
   MAIN NAVIGATION (Red bar)
   ============================================ */
.main-nav-bar { background: #CC0000; display: none; }
@media (min-width: 768px) { .main-nav-bar { display: block; } }
.main-nav {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav li { flex-shrink: 0; }
.main-nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 15px;
  color: rgba(255,255,255,0.92);
  font-size: 13px; font-weight: 600;
  font-family: var(--font-tamil); white-space: nowrap;
  transition: background 0.15s;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { background: rgba(0,0,0,0.2); color: #fff; }
.main-nav .video-link { color: #fde68a; font-weight: 700; }

/* Mobile nav */
.mobile-nav { background: #111; display: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-nav.open { display: block; max-height: 700px; }
.mobile-nav ul { padding: 8px; }
.mobile-nav a {
  display: block; padding: 13px 16px;
  color: #ccc; font-size: 14px; font-family: var(--font-tamil);
  border-bottom: 1px solid #1a1a1a; transition: background 0.15s;
}
.mobile-nav a:hover { background: #1a1a1a; color: #fff; }
.mobile-nav .video-link { color: #fde68a; font-weight: 700; }
.mobile-social { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid #222; }
.mobile-social a { color: #666; transition: color 0.2s; }
.mobile-social a:hover { color: #fff; }
.mobile-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================
   BREAKING NEWS TICKER - Single Row Fixed
   ============================================ */
.breaking-news-bar {
  background: #111;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}
.breaking-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-tamil);
  white-space: nowrap;
  animation: pulseRed 1.5s ease-in-out infinite;
}
.breaking-dot {
  width: 7px; height: 7px;
  background: #fff; border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
  flex-shrink: 0;
}
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }
@keyframes pulseRed { 0%,100% { background-color: #CC0000; } 50% { background-color: #ff1a1a; } }

.breaking-ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.breaking-ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: #e5e7eb;
  font-family: var(--font-tamil);
  font-weight: 600;
  animation: ticker 35s linear infinite;
  letter-spacing: 0.2px;
}
.breaking-ticker-content a {
  color: #f3f4f6;
  transition: color 0.2s, text-shadow 0.2s;
  margin: 0 8px;
  padding: 0 4px;
  position: relative;
}
.breaking-ticker-content a:hover { 
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255,215,0,0.5);
}
/* Bullet separator between news items */
.breaking-ticker-content a::after {
  content: '•';
  margin-left: 16px;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
}
.breaking-ticker-content a:last-child::after { display: none; }
.breaking-ticker-content:hover { animation-play-state: paused; }
@keyframes ticker { 
  0%   { transform: translateX(0); } 
  100% { transform: translateX(-100%); } 
}

.breaking-more-link {
  flex-shrink: 0;
  padding: 0 14px;
  color: var(--gold-light);
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-tamil);
  height: 100%;
  display: none;
  align-items: center;
}
@media (min-width: 640px) { .breaking-more-link { display: flex; } }
.breaking-more-link:hover { color: var(--gold); }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  display: flex; position: static; float: none; clear: both;
  width: 100%; background: #f8f9fa; border: 2px dashed #dee2e6;
  border-radius: 8px; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; padding: 10px;
  color: #9ca3af; font-size: 11px; font-weight: 600; text-align: center;
}
body.dark-mode .ad-slot { background: #1e293b; border-color: #334155; color: #475569; }
.ad-slot small { font-size: 10px; color: #bbb; }
.ad-bar { background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
body.dark-mode .ad-bar { background: #1e293b; border-color: #334155; }
.ad-leaderboard { height: 90px; max-width: 728px; width: 100%; margin: 0 auto; overflow: hidden; }
.ad-rectangle   { height: 250px; width: 300px; max-width: 100%; margin: 0 auto; overflow: hidden; }
.ad-inline-wrap { margin: 16px 0; text-align: center; overflow: hidden; }
.ad-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-bar { width: 4px; height: 28px; border-radius: 3px; flex-shrink: 0; }
.section-title { font-size: 18px; font-weight: 900; color: var(--gray-900); font-family: var(--font-tamil); }
body.dark-mode .section-title { color: #f1f5f9; }
.section-all-link { font-size: 13px; font-weight: 700; color: var(--primary); font-family: var(--font-tamil); transition: color 0.2s; }
.section-all-link:hover { color: var(--primary-dark); }

/* ============================================
   NEWS CARDS
   ============================================ */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-zoom:hover img { transform: scale(1.06); }
.red-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%); }
.cat-badge { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; font-family: var(--font-tamil); }
.breaking-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 900; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; animation: pulseRed 1.5s ease-in-out infinite; position: absolute; top: 10px; left: 10px; }

/* Base card */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; }
body.dark-mode .news-card { background: #1e293b; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Featured card */
.card-featured { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.card-featured .card-img-wrap { position: relative; height: 320px; }
@media (min-width: 768px) { .card-featured .card-img-wrap { height: 380px; } }
@media (min-width: 1024px) { .card-featured .card-img-wrap { height: 420px; } }
.card-featured .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.card-featured:hover .card-img-wrap img { transform: scale(1.05); }
.card-featured .card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; }
.card-featured .card-title { color: #fff; font-family: var(--font-tamil); font-weight: 900; font-size: 19px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
@media (min-width: 1024px) { .card-featured .card-title { font-size: 22px; } }
.card-featured:hover .card-title { color: var(--gold-light); }
.card-featured .card-meta { color: #9ca3af; font-size: 12px; margin-top: 7px; font-family: var(--font-tamil); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Medium card */
.card-medium .card-img-wrap { position: relative; height: 180px; }
.card-medium .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-medium .card-cat { margin-bottom: 6px; }
.card-medium .card-title { font-size: 14px; font-weight: 700; color: var(--gray-900); font-family: var(--font-tamil); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; transition: color 0.2s; }
body.dark-mode .card-medium .card-title { color: #e2e8f0; }
.news-card:hover .card-medium .card-title { color: var(--primary); }
.card-medium .card-excerpt { font-size: 13px; color: var(--gray-500); margin-top: 6px; line-height: 1.6; font-family: var(--font-tamil); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-medium .card-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-400); font-family: var(--font-tamil); flex-wrap: wrap; }
body.dark-mode .card-medium .card-meta { border-color: #334155; }

/* Compact sidebar card */
.card-compact { display: flex; gap: 10px; padding: 9px 6px; border-radius: 8px; transition: background 0.2s; align-items: flex-start; }
.card-compact:hover { background: var(--gray-50); }
body.dark-mode .card-compact:hover { background: #334155; }
.card-compact-num { font-size: 20px; font-weight: 900; color: #e5e7eb; width: 28px; flex-shrink: 0; text-align: center; line-height: 1.2; }
body.dark-mode .card-compact-num { color: #475569; }
.card-compact-img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; transition: transform 0.3s; }
.card-compact:hover .card-compact-img { transform: scale(1.04); }
.card-compact-content { flex: 1; min-width: 0; }
.card-compact-cat { font-size: 11px; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 3px; }
.card-compact-title { font-size: 13px; font-weight: 600; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .card-compact-title { color: #cbd5e1; }
.card-compact:hover .card-compact-title { color: var(--primary); }
.card-compact-date { font-size: 11px; color: var(--gray-400); margin-top: 3px; font-family: var(--font-tamil); }

/* Latest card */
.card-latest { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
body.dark-mode .card-latest { border-color: #334155; }
.card-latest:last-child { border-bottom: none; padding-bottom: 0; }
.card-latest-img { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0; transition: transform 0.3s; }
.card-latest:hover .card-latest-img { transform: scale(1.04); }
.card-latest-body { flex: 1; min-width: 0; }
.card-latest-cat { font-size: 11px; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 3px; }
.card-latest-title { font-size: 13px; font-weight: 600; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .card-latest-title { color: #cbd5e1; }
.card-latest:hover .card-latest-title { color: var(--primary); }
.card-latest-meta { font-size: 11px; color: var(--gray-400); margin-top: 4px; font-family: var(--font-tamil); display: flex; gap: 6px; }

/* ============================================
   HOMEPAGE LAYOUT
   ============================================ */
.site-main { padding: 20px 0; }

/* Category pills */
.cat-pills-wrap { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.cat-pills-wrap::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; padding: 6px 16px; border-radius: 25px; font-size: 13px; font-weight: 600; font-family: var(--font-tamil); white-space: nowrap; transition: all 0.2s; border: 2px solid; }
.cat-pill:hover { transform: scale(1.05); opacity: 0.85; }

/* Content + Sidebar grid */
.content-sidebar-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .content-sidebar-grid { grid-template-columns: 1fr 320px; } }

/* News grid */
.news-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .news-grid-2 { grid-template-columns: 1fr 1fr; } }

.section-block { margin-bottom: 28px; }

/* Feature block (Batticaloa style) */
.batt-feature-block { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
body.dark-mode .batt-feature-block { background: #1e293b; }
.batt-feature-img { position: relative; height: 210px; }
.batt-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.batt-feature-title { font-size: 17px; font-weight: 900; color: #fff; font-family: var(--font-tamil); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.batt-feature-title:hover { color: var(--gold-light); }
.batt-list-item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--gray-100); align-items: flex-start; transition: background 0.15s; }
body.dark-mode .batt-list-item { border-color: #334155; }
.batt-list-item:last-child { border-bottom: none; }
.batt-list-item:hover { background: var(--gray-50); }
body.dark-mode .batt-list-item:hover { background: #334155; }
.batt-list-img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.batt-list-title { font-size: 14px; font-weight: 600; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .batt-list-title { color: #cbd5e1; }
.batt-list-item:hover .batt-list-title { color: var(--primary); }

/* ============================================
   SIDEBAR WIDGETS - Larger fonts
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 18px; width: 100%; box-sizing: border-box; overflow: hidden; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); width: 100%; box-sizing: border-box; overflow: hidden; }
body.dark-mode .sidebar-widget { background: #1e293b; }
.sidebar-widget-title { font-size: 17px; font-weight: 900; color: var(--gray-900); font-family: var(--font-tamil); margin-bottom: 14px; }
body.dark-mode .sidebar-widget-title { color: #f1f5f9; }

/* Social follow widget */
.social-follow-widget { background: linear-gradient(135deg, #CC0000, #880000); border-radius: var(--radius); padding: 16px; color: #fff; width: 100%; box-sizing: border-box; overflow: hidden; }
.social-follow-widget h3 { font-size: 17px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); }
.social-follow-btn { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 8px; transition: opacity 0.2s; width: 100%; box-sizing: border-box; overflow: hidden; max-width: 100%; }
.social-follow-btn:last-child { margin-bottom: 0; }
.social-follow-btn:hover { opacity: 0.88; color: #fff; }
.btn-tag { font-size: 12px; opacity: 0.75; flex-shrink: 0; white-space: nowrap; }
.btn-facebook { background: #1877F2; }
.btn-youtube { background: #FF0000; }
.btn-whatsapp { background: #25D366; }
.btn-twitter { background: #1DA1F2; }

/* Weather widget */
.weather-widget { background: linear-gradient(135deg, #1d4ed8, #1e40af); border-radius: var(--radius); padding: 16px; color: #fff; width: 100%; box-sizing: border-box; overflow: hidden; }
.weather-widget h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); display: flex; align-items: center; gap: 6px; }
.weather-main-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.weather-temp { font-size: 40px; font-weight: 900; }
.weather-desc { font-size: 13px; color: #93c5fd; font-family: var(--font-tamil); }
.weather-icon-big { font-size: 48px; }
.weather-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; font-size: 12px; }
.weather-stat-label { color: #93c5fd; font-family: var(--font-tamil); margin-bottom: 2px; }
.weather-stat-val { font-weight: 700; font-size: 13px; }

/* Currency widget */
.currency-widget { background: linear-gradient(135deg, #065f46, #047857); border-radius: var(--radius); padding: 16px; color: #fff; width: 100%; box-sizing: border-box; overflow: hidden; }
.currency-widget h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); display: flex; align-items: center; gap: 6px; }
.currency-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 13px; }
.currency-row:last-child { border-bottom: none; }
.currency-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.currency-flag { font-size: 18px; }
.currency-rate { font-weight: 900; color: #6ee7b7; font-size: 14px; }
.currency-change { font-size: 11px; margin-top: 2px; color: #a7f3d0; }
.currency-footer { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.6); text-align: right; font-family: var(--font-tamil); }

/* Gold price widget */
.gold-widget { background: linear-gradient(135deg, #78350f, #92400e); border-radius: var(--radius); padding: 16px; color: #fff; width: 100%; box-sizing: border-box; overflow: hidden; }
.gold-widget h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); }
.gold-price-main { text-align: center; padding: 14px 0; }
.gold-price-num { font-size: 28px; font-weight: 900; color: var(--gold-light); }
.gold-price-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; font-family: var(--font-tamil); }
.gold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gold-item { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 10px; text-align: center; }
.gold-item-label { font-size: 11px; color: rgba(255,255,255,0.7); font-family: var(--font-tamil); }
.gold-item-val { font-size: 14px; font-weight: 700; color: var(--gold-light); margin-top: 3px; }
.gold-footer { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.5); text-align: right; font-family: var(--font-tamil); }

/* Tag cloud widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--gray-100); color: var(--gray-600); font-family: var(--font-tamil); transition: all 0.2s; }
body.dark-mode .tag-cloud a { background: #334155; color: #94a3b8; }
.tag-cloud a:hover { background: var(--primary); color: #fff; transform: scale(1.05); }

/* Newsletter widget */
.newsletter-section { background: linear-gradient(135deg, #CC0000, #880000); padding: 36px 0; color: #fff; overflow: hidden; }
.newsletter-inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.newsletter-text h3 { font-size: 22px; font-weight: 900; font-family: var(--font-tamil); margin-bottom: 4px; }
.newsletter-text p { font-size: 14px; color: rgba(255,255,255,0.8); font-family: var(--font-tamil); }
.newsletter-form-row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; box-sizing: border-box; }
.newsletter-form-row input { padding: 12px 18px; border-radius: 10px; border: none; font-size: 14px; font-family: var(--font-tamil); outline: none; min-width: 0; flex: 1; width: 100%; box-sizing: border-box; }
.newsletter-form-row button { background: var(--gold); color: #111; border: none; padding: 12px 22px; border-radius: 10px; font-weight: 900; font-size: 14px; font-family: var(--font-tamil); white-space: nowrap; transition: background 0.2s; }
.newsletter-form-row button:hover { background: var(--gold-light); }

/* ============================================
   SINGLE POST
   ============================================ */
.single-breadcrumb { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 9px 0; }
body.dark-mode .single-breadcrumb { background: #1e293b; border-color: #334155; }
.breadcrumb-inner { font-size: 12px; color: var(--gray-500); font-family: var(--font-tamil); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--gray-500); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-inner .sep { color: var(--gray-300); }

.single-article { background: var(--white); border-radius: 0; overflow: hidden; box-shadow: var(--shadow); }
body.dark-mode .single-article { background: #1e293b; }
.single-hero-img {
  width: 100%;
  overflow: hidden;
}
.single-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.single-hero-img .img-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }

.single-content { padding: 18px 16px; }
@media (min-width: 1024px) { .single-content { padding: 28px 32px; } }

.single-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }

.post-title { font-size: 21px; font-weight: 900; color: var(--gray-900); font-family: var(--font-tamil); line-height: 1.45; margin-bottom: 16px; }
@media (min-width: 768px) { .post-title { font-size: 27px; } }
body.dark-mode .post-title { color: #f1f5f9; }

.post-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 16px; font-size: 13px; color: var(--gray-500); }
body.dark-mode .post-meta-bar { border-color: #334155; }
.post-meta-item { display: flex; align-items: center; gap: 6px; }
.post-meta-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.post-meta-item strong { color: var(--gray-700); font-family: var(--font-tamil); }
body.dark-mode .post-meta-item strong { color: #cbd5e1; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.share-label { font-size: 14px; font-weight: 700; color: var(--gray-500); font-family: var(--font-tamil); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; border: none; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn svg { width: 13px; height: 13px; fill: currentColor; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-wa { background: #25D366; }
.share-copy { background: var(--gray-200); color: var(--gray-700) !important; }
body.dark-mode .share-copy { background: #334155; color: #cbd5e1 !important; }

.post-excerpt-highlight { background: #fff1f1; border-left: 4px solid var(--primary); padding: 14px 18px; margin-bottom: 18px; border-radius: 0 10px 10px 0; font-size: 15px; font-weight: 600; color: var(--gray-700); font-family: var(--font-tamil); line-height: 1.7; }
body.dark-mode .post-excerpt-highlight { background: rgba(204,0,0,0.1); color: #cbd5e1; }

.entry-content { font-family: var(--font-tamil); font-size: 16px; color: var(--gray-700); line-height: 1.9; }
body.dark-mode .entry-content { color: #94a3b8; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { font-size: 21px; font-weight: 900; margin: 24px 0 12px; color: var(--gray-900); }
body.dark-mode .entry-content h2 { color: #f1f5f9; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 18px 0 10px; color: var(--gray-800); }
.entry-content img { border-radius: 10px; margin: 16px 0; width: 100%; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding: 12px 18px; background: #fff1f1; border-radius: 0 10px 10px 0; margin: 16px 0; font-family: var(--font-tamil); font-weight: 600; }
body.dark-mode .entry-content blockquote { background: rgba(204,0,0,0.1); }
.entry-content a { color: var(--primary); }

.post-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-100); align-items: center; }
body.dark-mode .post-tags-row { border-color: #334155; }
.tags-label { font-size: 14px; font-weight: 700; color: var(--gray-500); font-family: var(--font-tamil); }
.post-tag { background: var(--gray-100); color: var(--gray-600); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-family: var(--font-tamil); transition: all 0.2s; }
body.dark-mode .post-tag { background: #334155; color: #94a3b8; }
.post-tag:hover { background: var(--primary); color: #fff; }

/* Related posts - Beautiful List Style */
.related-posts { margin-top: 24px; }
.related-list { display: flex; flex-direction: column; gap: 0; }
.related-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  border-radius: 0;
  transition: background 0.15s;
  align-items: flex-start;
}
.related-list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.related-list-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
body.dark-mode .related-list-item { background: #1e293b; border-color: #334155; }
.related-list-item:hover { background: #fff8f8; }
body.dark-mode .related-list-item:hover { background: #334155; }
.related-list-num { font-size: 22px; font-weight: 900; color: #e5e7eb; width: 30px; flex-shrink: 0; text-align: center; margin-top: 2px; line-height: 1; }
body.dark-mode .related-list-num { color: #475569; }
.related-list-img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; flex-shrink: 0; transition: transform 0.3s; }
.related-list-item:hover .related-list-img { transform: scale(1.04); }
.related-list-body { flex: 1; min-width: 0; }
.related-list-cat { font-size: 11px; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 4px; }
.related-list-title { font-size: 14px; font-weight: 700; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .related-list-title { color: #cbd5e1; }
.related-list-item:hover .related-list-title { color: var(--primary); }
.related-list-meta { font-size: 11px; color: var(--gray-400); margin-top: 5px; font-family: var(--font-tamil); display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================
   FOOTER - Light text on dark background
   ============================================ */
.site-footer { background: #0f172a; color: #94a3b8; }

.footer-top { padding: 44px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Footer brand column */
.footer-brand .footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 38px; width: auto; max-width: 160px; object-fit: contain; }
.footer-desc { font-size: 14px; color: #94a3b8; line-height: 1.7; font-family: var(--font-tamil); margin-bottom: 14px; }
.footer-contact-info { font-size: 14px; color: #64748b; font-family: var(--font-tamil); line-height: 2.4; }
.footer-contact-info a { color: #64748b; transition: color 0.2s; }
.footer-contact-info a:hover { color: #94a3b8; }

.footer-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.footer-social-btn { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; transition: opacity 0.2s; }
.footer-social-btn:hover { opacity: 0.85; color: #fff; }
.footer-social-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Footer columns */
.footer-col h4 { font-size: 13px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #1e293b; }
.footer-col a { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #64748b; margin-bottom: 10px; font-family: var(--font-tamil); transition: color 0.2s; }
.footer-col a::before { content: '›'; color: var(--primary); font-weight: 700; font-size: 16px; }
.footer-col a:hover { color: #94a3b8; }

/* Footer bottom */
.footer-bottom { background: #020617; border-top: 1px solid #1e293b; padding: 16px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #475569; }
.footer-bottom-inner a { color: #475569; transition: color 0.2s; }
.footer-bottom-inner a:hover { color: #94a3b8; }
.footer-links-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-rss { display: flex; align-items: center; gap: 5px; }
.rss-dot { width: 8px; height: 8px; background: #f97316; border-radius: 50%; }

/* ============================================
   CATEGORY PAGE
   ============================================ */
.cat-hero { padding: 30px 0; color: #fff; }
.cat-hero h1 { font-size: 28px; font-weight: 900; font-family: var(--font-tamil); }
.cat-hero p { font-size: 14px; opacity: 0.8; margin-top: 5px; font-family: var(--font-tamil); }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-hero { background: #CC0000; padding: 28px 0; color: #fff; }
.search-hero h1 { font-size: 22px; font-weight: 900; font-family: var(--font-tamil); margin-bottom: 14px; }
.search-form-main { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form-main input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 10px; border: none; font-size: 14px; font-family: var(--font-tamil); outline: none; }
.search-form-main button { background: var(--gold); color: #111; border: none; padding: 12px 22px; border-radius: 10px; font-weight: 900; font-size: 14px; font-family: var(--font-tamil); white-space: nowrap; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.page-numbers { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-200); transition: all 0.2s; }
body.dark-mode .page-numbers { background: #1e293b; color: #cbd5e1; border-color: #334155; }
.page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.dots { background: none; border: none; }

/* ============================================
   404
   ============================================ */
.error-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.error-inner { text-align: center; padding: 40px 20px; }
.error-num { font-size: 96px; font-weight: 900; color: var(--primary); line-height: 1; }
.error-title { font-size: 22px; font-weight: 900; font-family: var(--font-tamil); color: var(--gray-800); margin: 12px 0 8px; }
body.dark-mode .error-title { color: #e2e8f0; }
.error-desc { color: var(--gray-500); font-family: var(--font-tamil); font-size: 15px; margin-bottom: 22px; }
.error-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary { display: inline-block; background: var(--primary); color: #fff; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 14px; font-family: var(--font-tamil); border: none; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { display: inline-block; background: var(--gray-800); color: #fff; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 14px; font-family: var(--font-tamil); border: none; transition: background 0.2s; }
.btn-dark:hover { background: var(--gray-900); color: #fff; }
.btn-load-more { display: block; background: var(--primary); color: #fff; padding: 14px 40px; border-radius: 12px; font-weight: 900; font-size: 15px; font-family: var(--font-tamil); border: none; margin: 24px auto 0; transition: background 0.2s; text-align: center; }
.btn-load-more:hover { background: var(--primary-dark); color: #fff; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-to-top { position: fixed; bottom: 76px; right: 12px; width: 40px; height: 40px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 20px; display: none; align-items: center; justify-content: center; z-index: 998; box-shadow: 0 4px 16px rgba(204,0,0,0.4); transition: all 0.2s; }
#scroll-to-top.visible { display: flex; }
#scroll-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
#scroll-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   RESPONSIVE OVERFLOW FIXES
   ============================================ */
body, html { overflow-x: hidden; width: 100%; }
.site-header, .main-nav-bar, .breaking-news-bar, .site-main, .site-footer, .newsletter-section { width: 100%; max-width: 100%; }
table { width: 100%; overflow-x: auto; display: block; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

@media (max-width: 768px) {
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-list-img { width: 70px; height: 54px; }
  .single-content { padding: 16px; }  .post-title { font-size: 20px; }
  .footer-social-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .news-grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Comments */
.comments-area { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 20px; box-shadow: var(--shadow); }
body.dark-mode .comments-area { background: #1e293b; }
.comments-title { font-size: 19px; font-weight: 900; font-family: var(--font-tamil); margin-bottom: 18px; color: var(--gray-900); }
body.dark-mode .comments-title { color: #f1f5f9; }
.comment-body-inner { background: var(--gray-50); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
body.dark-mode .comment-body-inner { background: #334155; }
.fn { font-weight: 700; font-size: 14px; color: var(--gray-800); font-style: normal; }
body.dark-mode .fn { color: #e2e8f0; }
.comment-metadata { font-size: 12px; color: var(--gray-400); margin: 3px 0 8px; }
.comment-content p { font-size: 14px; color: var(--gray-600); font-family: var(--font-tamil); line-height: 1.6; }
body.dark-mode .comment-content p { color: #94a3b8; }
.comment-reply-link { font-size: 13px; color: var(--primary); font-weight: 700; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-600); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14px; font-family: var(--font-tamil); outline: none; background: var(--white); color: var(--gray-900); margin-bottom: 14px; transition: border-color 0.2s; }
body.dark-mode .comment-form input, body.dark-mode .comment-form textarea { background: #334155; border-color: #475569; color: #e2e8f0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit { background: var(--primary); color: #fff; border: none; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; font-family: var(--font-tamil); transition: background 0.2s; }
.comment-form .submit:hover { background: var(--primary-dark); }

/* Scrollbar & Selection */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
::selection { background: rgba(204,0,0,0.2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media print { .site-header, .main-nav-bar, .breaking-news-bar, .sidebar, .site-footer, .newsletter-section, #scroll-to-top { display: none; } }

/* ============================================
   3 AD SLOTS ROW (below breaking news)
   ============================================ */
.triple-ad-bar {
  background: var(--white);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
body.dark-mode .triple-ad-bar { background: #1e293b; border-color: #334155; }
.triple-ad-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}
@media (max-width: 768px) {
  .triple-ad-row { grid-template-columns: 1fr; }
}
.triple-ad-item { display: flex; align-items: center; justify-content: center; }
.ad-slot-small {
  min-height: 60px;
  width: 100%;
  max-width: 240px;
  border-radius: 6px;
}

/* ============================================
   STORY SLIDER (Web Stories style)
   ============================================ */
.story-slider-section {
  margin-bottom: 24px;
  margin-top: 8px;
}
.story-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.story-slider-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--gray-900);
}
body.dark-mode .story-slider-title { color: #f1f5f9; }
.story-slider-nav {
  display: flex;
  gap: 8px;
}
.slider-nav-btn {
  width: 36px; height: 36px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.slider-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark-mode .slider-nav-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }

.story-slider-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}
.story-slider-track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.story-card {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (max-width: 480px) { .story-card { width: 130px; } }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
body.dark-mode .story-card { background: #1e293b; }

.story-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
@media (max-width: 480px) { .story-card-img { height: 170px; } }
.story-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.story-card:hover .story-card-img img { transform: scale(1.06); }

.story-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.story-play-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(204,0,0,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
}
.story-card:hover .story-play-btn { background: var(--primary); transform: scale(1.1); }

.story-cat-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.story-card-body { padding: 10px 10px 12px; }
.story-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.dark-mode .story-card-title { color: #cbd5e1; }
.story-card-excerpt { display: none; }

/* ============================================
   STORY MODAL (popup like image 2)
   ============================================ */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.story-modal-overlay.open { display: flex; }

.story-modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
body.dark-mode .story-modal { background: #1e293b; }

.story-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
body.dark-mode .story-modal-topbar { border-color: #334155; }

.story-modal-full-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.story-modal-full-btn:hover { background: var(--primary); color: #fff; }

.story-modal-close-btn {
  font-size: 13px; font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.story-modal-close-btn:hover { background: var(--gray-200); color: var(--gray-800); }
body.dark-mode .story-modal-close-btn { background: #334155; color: #94a3b8; }

.story-modal-img-wrap {
  flex-shrink: 0;
  height: 240px;
  overflow: hidden;
}
.story-modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.story-modal-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
}
.story-modal-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.story-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 10px;
}
body.dark-mode .story-modal-title { color: #f1f5f9; }
.story-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
  font-family: var(--font-tamil);
  flex-wrap: wrap;
}
.story-modal-dot { color: var(--gray-300); }
.story-modal-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
body.dark-mode .story-modal-excerpt { color: #94a3b8; }
.story-modal-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.story-modal-readmore-btn:hover { background: var(--primary); color: #fff; }
body.dark-mode .story-modal-readmore-btn { background: #334155; color: #cbd5e1; }

.story-modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
body.dark-mode .story-modal-footer { border-color: #334155; }
.story-modal-nav-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}
.story-modal-nav-btn:hover, .story-modal-nav-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark-mode .story-modal-nav-btn { background: #334155; border-color: #475569; color: #cbd5e1; }

/* ============================================
   WHATSAPP ANNOUNCEMENT BANNER
   ============================================ */


/* ============================================
   AD SLOT WRAPPERS (frontend)
   ============================================ */
.m24-ad-slot { display: block; width: 100%; text-align: center; overflow: hidden; }
.m24-ad-slot ins, .m24-ad-slot > div { display: block; margin: 0 auto; }
.m24-ad-wrap { display: block; width: 100%; text-align: center; overflow: hidden; }
.m24-ad-placeholder { overflow: hidden !important; box-sizing: border-box !important; }

/* ============================================
   WHATSAPP ANNOUNCEMENT — Redesigned
   ============================================ */
.wa-announcement {
  position: relative;
  margin: 28px 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a4d3c 0%, #075e54 40%, #0b7a68 70%, #128c7e 100%);
  box-shadow: 0 12px 40px rgba(7,94,84,0.35), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.wa-announcement:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(7,94,84,0.45), 0 4px 16px rgba(0,0,0,0.2);
}

/* Animated glow ring */
.wa-announcement::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(37,211,102,0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-announcement::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: wa-pulse 3s ease-in-out infinite reverse;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.15); opacity: 1; }
}

.wa-announcement-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

/* Left icon */
.wa-icon-wrap {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: rgba(37,211,102,0.2);
  border: 2px solid rgba(37,211,102,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  animation: wa-ring 2.5s ease-in-out infinite;
}
@keyframes wa-ring {
  0%  { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-announcement:hover .wa-icon-wrap {
  background: rgba(37,211,102,0.3);
  border-color: rgba(37,211,102,0.7);
  transform: scale(1.08) rotate(-6deg);
}
.wa-icon-wrap svg { width: 34px; height: 34px; }

/* Text */
.wa-text { flex: 1; min-width: 0; }
.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37,211,102,0.25);
  border: 1px solid rgba(37,211,102,0.5);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: inline-flex;
}
.wa-badge-dot {
  width: 6px; height: 6px;
  background: #25D366;
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
.wa-title {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
@media (min-width: 768px) { .wa-title { font-size: 19px; } }
.wa-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  font-family: var(--font-tamil);
}

/* Join button */
.wa-join-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.wa-join-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}
.wa-join-btn:hover::before { left: 100%; }
.wa-join-btn:hover {
  background: #20c45a;
  color: #fff;
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.wa-join-btn:active { transform: scale(0.98) translateY(0); }
.wa-btn-icon { font-size: 18px; transition: transform 0.3s ease; }
.wa-join-btn:hover .wa-btn-icon { transform: rotate(15deg) scale(1.2); }
.wa-btn-arrow {
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.25s ease;
}
.wa-join-btn:hover .wa-btn-arrow { transform: translateX(4px); }

/* Decorative bottom stripe */
.wa-stripe {
  height: 4px;
  background: linear-gradient(90deg, #25D366, #128c7e, #075e54, #25D366);
  background-size: 200% 100%;
  animation: wa-stripe-move 3s linear infinite;
}
@keyframes wa-stripe-move {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (max-width: 640px) {
  .wa-announcement-inner { flex-direction: column; text-align: center; padding: 20px 18px; }
  .wa-icon-wrap { width: 56px; height: 56px; }
  .wa-join-btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }
  .wa-title { font-size: 16px; }
}



/* ============================================
   TAMIL RADIO PLAYER - FLOATING
   ============================================ */
#tamil-radio {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0a0a 50%, #0f0f1a 100%);
  border-top: 2px solid #CC0000;
  box-shadow: 0 -4px 30px rgba(204,0,0,0.25), 0 -1px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  font-family: var(--font-body);
}
#tamil-radio.radio-minimized { transform: translateY(calc(100% - 48px)); }

/* Toggle bar */
.radio-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  background: rgba(204,0,0,0.12);
  border-bottom: 1px solid rgba(204,0,0,0.2);
  min-height: 48px;
  user-select: none;
}
.radio-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radio-live-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: radio-live-ping 2s ease-in-out infinite;
}
.radio-live-dot.off { background: #475569; animation: none; box-shadow: none; }
@keyframes radio-live-ping {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.radio-toggle-title {
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}
.radio-toggle-station {
  font-size: 11px;
  color: #F59E0B;
  font-weight: 700;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width:480px) { .radio-toggle-station { max-width: 110px; } }
.radio-mini-play {
  width: 32px; height: 32px;
  background: #CC0000;
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(204,0,0,0.4);
}
.radio-mini-play:hover { background: #ee0000; transform: scale(1.08); }
.radio-mini-play svg { width: 14px; height: 14px; fill: #fff; }

.radio-chevron {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.radio-chevron:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; }
.radio-chevron svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s; }
#tamil-radio.radio-minimized .radio-chevron svg { transform: rotate(180deg); }

/* Main player body */
.radio-body {
  padding: 14px 16px 16px;
  overflow: hidden;
}

/* Now playing */
.radio-now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.radio-station-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #CC0000, #880000);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(204,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.radio-station-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}
@media (max-width: 480px) { .radio-station-logo { width: 44px; height: 44px; font-size: 18px; } }
.radio-station-info { flex: 1; min-width: 0; }
.radio-station-name {
  font-size: 16px;
  font-weight: 900;
  color: #f1f5f9;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) { .radio-station-name { font-size: 14px; } }
.radio-station-freq {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}
.radio-station-genre {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #F59E0B;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
}

/* Waveform animation */
.radio-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
.radio-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: #CC0000;
  animation: radio-wave-anim 1s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.radio-wave-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.radio-wave-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.radio-wave-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.radio-wave-bar:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.radio-wave-bar:nth-child(5) { height: 85%; animation-delay: 0.15s; }
@keyframes radio-wave-anim {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}
.radio-wave.paused .radio-wave-bar { animation: none; transform: scaleY(0.3); background: #475569; }

/* Controls */
.radio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.radio-ctrl-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.radio-ctrl-btn:hover { background: rgba(255,255,255,0.12); color: #e2e8f0; }
.radio-ctrl-btn svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.radio-ctrl-sm { width: 36px; height: 36px; }
.radio-ctrl-sm svg { width: 16px; height: 16px; }
.radio-ctrl-lg {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #CC0000, #990000);
  border: none; color: #fff;
  box-shadow: 0 4px 16px rgba(204,0,0,0.45);
}
.radio-ctrl-lg:hover { background: linear-gradient(135deg, #dd0000, #aa0000); color: #fff; transform: scale(1.08); box-shadow: 0 6px 20px rgba(204,0,0,0.55); }
.radio-ctrl-lg svg { width: 22px; height: 22px; }
.radio-ctrl-lg.playing svg { fill: #fff; stroke: none; }
.radio-ctrl-lg:not(.playing) svg { fill: #fff; stroke: none; }

/* Volume */
.radio-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.radio-vol-icon { color: #475569; flex-shrink: 0; }
.radio-vol-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.radio-vol-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}
.radio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #CC0000;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(204,0,0,0.5);
}
.radio-vol-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #CC0000;
  cursor: pointer; border: none;
}
.radio-vol-pct { font-size: 11px; color: #475569; font-family: monospace; min-width: 30px; text-align: right; }

/* Station list */
.radio-stations-label {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.radio-stations-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.radio-stations-list::-webkit-scrollbar { display: none; }
.radio-station-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  text-align: center;
}
.radio-station-pill:hover { background: rgba(204,0,0,0.15); border-color: rgba(204,0,0,0.3); }
.radio-station-pill.active { background: rgba(204,0,0,0.2); border-color: #CC0000; }
.radio-pill-icon { font-size: 20px; }
.radio-pill-name { font-size: 10px; font-weight: 700; color: #94a3b8; white-space: nowrap; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.radio-station-pill.active .radio-pill-name { color: #F59E0B; }
.radio-pill-freq { font-size: 9px; color: #475569; }

/* Loading state */
.radio-loading {
  display: none;
  font-size: 11px;
  color: #F59E0B;
  text-align: center;
  padding: 4px 0;
  animation: pulse 1.5s ease-in-out infinite;
}
.radio-loading.show { display: block; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* Error state */
.radio-error {
  display: none;
  font-size: 11px;
  color: #fca5a5;
  text-align: center;
  padding: 4px 0;
}
.radio-error.show { display: block; }

/* Responsive layout */
@media (min-width: 768px) {
  .radio-body { padding: 16px 20px 18px; }
  .radio-now-playing { gap: 16px; }
  .radio-stations-list { flex-wrap: wrap; overflow-x: visible; }
  .radio-station-pill { min-width: 90px; }
}
@media (min-width: 1024px) {
  #tamil-radio { left: auto; right: 20px; bottom: 20px; width: 420px; border-radius: 16px; border-top: none; border: 2px solid rgba(204,0,0,0.4); box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04); }
  #tamil-radio.radio-minimized { transform: translateY(calc(100% - 52px)); }
  .radio-toggle-bar { border-radius: 14px 14px 0 0; }
}


/* ============================================
   PJAX AJAX NAVIGATION - Page transitions
   ============================================ */
#main-content {
  animation: m24FadeIn 0.25s ease;
}
@keyframes m24FadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#m24-pjax-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #CC0000, #F59E0B, #CC0000);
  background-size: 200% 100%;
  z-index: 999999;
  pointer-events: none;
  animation: m24BarShimmer 1.5s linear infinite;
}
@keyframes m24BarShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================
   GLOBAL MOBILE OVERFLOW — NUCLEAR FIX
   ============================================ */
html { overflow-x: hidden; }
body { overflow-x: hidden; position: relative; }

/* Every element: no wider than viewport */
* { max-width: 100%; box-sizing: border-box; }

/* Allow horizontal scroll only where needed */
.breaking-ticker-wrap,
.cat-pills-wrap,
.radio-stations-list,
.tag-cloud,
pre, code, table { max-width: none; }

/* Poll fix */
.poll-opt { width: 100%; box-sizing: border-box; min-width: 0; }
.poll-party-name { white-space: normal; word-break: break-word; }
#tn-poll { width: 100%; box-sizing: border-box; }

/* WA announcement */
.wa-announcement,
.wa-announcement-inner { width: 100%; box-sizing: border-box; }

/* Social follow buttons */
.social-follow-btn { width: 100%; box-sizing: border-box; }

/* Share row */
.share-row { flex-wrap: wrap; }

/* Audio player */
.m24-audio-player { width: 100%; box-sizing: border-box; }

/* Ad placeholders */
.m24-ad-placeholder, .m24-ad-wrap { max-width: 100%; }

/* ============================================
   DEFINITIVE MOBILE OVERFLOW FIX
   ============================================ */
@media (max-width: 768px) {
  /* Social follow buttons */
  .social-follow-widget { overflow: hidden; }
  .social-follow-btn { width: 100%; box-sizing: border-box; }

  /* Newsletter */
  .newsletter-section { overflow: hidden; }
  .newsletter-form input { width: 100%; box-sizing: border-box; max-width: 100%; }

  /* Ad slots */
  .m24-ad-placeholder, .m24-ad-wrap, .m24-ad-slot,
  .ad-leaderboard, .ad-rectangle, .ad-inline-wrap {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Poll */
  #tn-poll { padding: 20px 14px !important; width: 100% !important; }
  .poll-opt { width: 100% !important; min-width: 0 !important; }
  .poll-radio { flex-shrink: 0 !important; }

  /* Audio player */
  .m24-audio-player { width: 100% !important; }
  .m24ap-inner { flex-wrap: nowrap !important; width: 100% !important; }
  .m24ap-title { font-size: 11px !important; }

  /* WhatsApp widget */
  .wa-announcement { width: 100% !important; overflow: hidden !important; }
  .wa-announcement-inner { flex-wrap: wrap !important; }

  /* Related posts */
  .related-list-item, .related-posts { overflow: hidden !important; }

  /* Post meta bar */
  .post-meta-bar { flex-wrap: wrap !important; gap: 6px !important; overflow: hidden !important; }

  /* Share row */
  .share-row { flex-wrap: wrap !important; overflow: hidden !important; }

  /* Entry content */
  .entry-content { overflow-x: hidden !important; word-break: break-word !important; }
  .entry-content * { max-width: 100% !important; }

  /* Sidebar in mobile - full width */
  .content-sidebar-grid { overflow: hidden !important; }

  /* Radio bar */
  #radio-bar { box-sizing: border-box !important; width: 100% !important; left: 0 !important; right: 0 !important; }
}

/* ============================================
   NUCLEAR MOBILE OVERFLOW FIX
   ============================================ */
@media (max-width: 768px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; position: relative; }
  
  /* Force everything inside body to fit */
  body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* But allow flex/grid children to be controlled by parent */
  body *:not(html):not(body) {
    min-width: 0;
  }
  
  /* Fix specific overflowing elements from screenshots */
  .social-follow-btn,
  .btn-facebook, .btn-youtube, .btn-whatsapp,
  .social-follow-widget,
  .poll-opt,
  .poll-radio,
  .m24-audio-player,
  .m24ap-inner,
  .wa-announcement,
  .wa-announcement-inner,
  .share-row,
  .post-meta-bar,
  .related-list-item,
  .newsletter-section,
  .newsletter-inner,
  .footer-bottom-inner,
  .currency-widget,
  .gold-widget,
  .weather-widget,
  .sidebar-widget,
  #tn-poll,
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Fix social follow buttons right side cut */
  .social-follow-btn {
    display: flex !important;
    width: 100% !important;
    padding-right: 12px !important;
  }
  
  /* Fix poll radio button cut */
  .poll-opt {
    padding-right: 10px !important;
  }
  .poll-radio {
    flex-shrink: 0 !important;
    min-width: 20px !important;
    max-width: 20px !important;
  }
  
  /* Fix audio player cut */
  .m24ap-inner {
    padding: 8px 10px !important;
    flex-wrap: nowrap !important;
  }
  
  /* Images */
  img { max-width: 100% !important; height: auto !important; }
  
  /* Tables */
  table { display: block !important; overflow-x: auto !important; width: 100% !important; }
  
  /* Pre/code */
  pre, code { white-space: pre-wrap !important; word-break: break-all !important; }
}

/* =============================================
   FINAL OVERFLOW FIX — radio bar + poll
   ============================================= */
#radio-bar {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}
#tn-poll, #poll-options {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.poll-opt {
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.poll-info {
  min-width: 0 !important;
  overflow: hidden !important;
  flex: 1 !important;
}

/* ===== FORCE FOOTER & RADIO LOGO SIZE ===== */
.footer-logo img,
.footer-brand img,
.footer-logo a img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ============================================
   CORE WEB VITALS OPTIMIZATIONS
   ============================================ */

/* Font display swap - prevents FOIT (Flash of Invisible Text) */
@font-face {
  font-display: swap;
}

/* Prevent CLS - reserve space for images before load */
img {
  max-width: 100%;
  height: auto;
}
.card-img-wrap img,
.batt-feature-img img,
.card-latest-img,
.card-compact-img {
  aspect-ratio: attr(width) / attr(height);
}

/* content-visibility for off-screen sections - improves INP */
.sidebar,
.related-posts,
.newsletter-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* Reduce layout shift from ads */
.m24-ad-placeholder,
.m24-ad-slot {
  min-height: var(--ad-min-h, 90px);
  contain: layout style;
}

/* Reduce paint complexity on animations */
.breaking-ticker-content {
  will-change: transform;
}
.wa-announcement,
#radio-bar {
  will-change: auto;
}

/* Lazy load images - prevent eager loading below fold */
img:not([loading]) {
  loading: lazy;
}

/* Reduce CLS from radio bar */
body {
  padding-bottom: 59px;
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}
