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

@import 'tailwindcss';

@source '../**/*.blade.php';
@source '../**/*.js';
:root {
  --bg:             rgb(255, 249, 249);
  --fg:             hsl(20, 14%, 12%);
  --card:           hsl(0, 0%, 100%);
  --primary:        hsl(354, 78%, 38%);
  --primary-fg:     hsl(0, 0%, 100%);
  --secondary:      hsl(20, 14%, 18%);
  --secondary-fg:   hsl(40, 33%, 97%);
  --muted:          hsl(40, 20%, 92%);
  --muted-fg:       hsl(20, 8%, 38%);
  --accent:         hsl(38, 92%, 50%);
  --border:         hsl(30, 15%, 86%);
  --breaking:       hsl(354, 85%, 45%);
  --breaking-fg:    hsl(0, 0%, 100%);
  --radius:         0.25rem;
  --shadow-card:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-elevated:0 4px 16px rgba(0,0,0,0.12);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Typography */
.font-display,
h1, h2, h3, h4 {
  font-family: 'Noto Serif Tamil', 'Noto Sans Tamil', serif;
  font-weight: 900;
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  direction: flex;
  flex-direction: column;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Layout helpers */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.flex-1          { flex: 1; }
.items-center    { align-items: center; }
.items-stretch   { align-items: stretch; }
.items-baseline  { align-items: baseline; }
.justify-between { justify-content: space-between; }
.gap-2           { gap: 0.5rem; }
.gap-3           { gap: 0.75rem; }
.gap-4           { gap: 1rem; }
.gap-6           { gap: 1.5rem; }
.gap-8           { gap: 2rem; }
.gap-10          { gap: 2.5rem; }
.min-w-0         { min-width: 0; }

/* Grid system */
.grid             { display: grid; }
.grid-cols-1      { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3       { grid-template-columns: repeat(3, 1fr); }
  .lg\:col-span-2        { grid-column: span 2; }
  .lg\:grid-main         { grid-template-columns: 1fr 320px; }
}

/* Spacing */
.py-2  { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-6  { padding-top: 1.5rem;  padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem;    padding-bottom: 2rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.px-4  { padding-left: 1rem;   padding-right: 1rem; }
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* Text */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-center { text-align: center; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.font-semibold { font-weight: 600; }
.uppercase   { text-transform: uppercase; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Colors */
.text-primary       { color: var(--primary); }
.text-muted         { color: var(--muted-fg); }
.text-background    { color: var(--bg); }
.bg-primary         { background: var(--primary); }
.bg-background      { background: var(--bg); }
.bg-secondary       { background: var(--secondary); }
.bg-muted           { background: var(--muted); }
.bg-breaking        { background: var(--breaking); }

/* Borders */
.border-b       { border-bottom: 1px solid var(--border); }
.border-b-2     { border-bottom: 2px solid var(--border); }
.border-b-4     { border-bottom: 4px solid var(--primary); }
.border-t       { border-top: 1px solid var(--border); }
.border-rule    { border-color: var(--border); }
.divide-y > * + * { border-top: 1px solid var(--border); }
.rounded        { border-radius: var(--radius); }
.rounded-sm     { border-radius: 0.125rem; }
.rounded-full   { border-radius: 9999px; }

/* Shadow */
.shadow-card     { box-shadow: var(--shadow-card); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* Position */
.relative        { position: relative; }
.absolute        { position: absolute; }
.sticky          { position: sticky; }
.top-0           { top: 0; }
.z-50            { z-index: 50; }
.z-10            { z-index: 10; }
.inset-0         { inset: 0; }
.inset-x-0       { left: 0; right: 0; }
.bottom-0        { bottom: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Sizing */
.w-full    { width: 100%; }
.h-full    { height: 100%; }
.max-w-md  { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-sm  { max-width: 24rem; }
.aspect-video     { aspect-ratio: 16/9; }
.aspect-16-10     { aspect-ratio: 16/10; }

/* ================================================
   COMPONENT: TopBar
   ================================================ */
.topbar {
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.75rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.topbar-social { display: flex; align-items: center; gap: 0.75rem; }
.topbar-social a { opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.topbar-social a:hover { opacity: 1; color: var(--primary); }
.topbar-social svg { width: 1rem; height: 1rem; }

/* ================================================
   COMPONENT: Header
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.header-brand {
  border-bottom: 2px solid var(--fg);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-ta  { font-family: 'Noto Serif Tamil', serif; font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.brand-en  { font-family: 'Noto Serif Tamil', serif; font-size: 1.5rem; font-weight: 900; color: var(--fg); line-height: 1; }
.brand-tag { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); margin-left: 0.5rem; border-left: 1px solid var(--border); padding-left: 0.5rem; }
@media (max-width: 639px) { .brand-tag { display: none; } }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-icon:hover { background: var(--muted); }
.btn-icon svg   { width: 1.25rem; height: 1.25rem; }
.btn-menu-mobile { display: flex; }
@media (min-width: 1024px) { .btn-menu-mobile { display: none; } }

/* Desktop nav */
.desktop-nav { display: none; background: var(--primary); color: var(--bg); }
@media (min-width: 1024px) { .desktop-nav { display: block; } }
.desktop-nav ul { display: flex; align-items: stretch; overflow-x: auto; }
.desktop-nav li a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bg);
  transition: background 0.15s;
}
.desktop-nav li a:hover { background: var(--primary); color: var(--primary-fg); }
.desktop-nav .live-nav-item a {
  background: var(--breaking);
  color: var(--breaking-fg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.desktop-nav .live-nav-item a:hover { background: hsl(354, 85%, 38%); }

/* Mobile nav */
.mobile-nav { display: none; background: var(--fg); color: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav ul  { padding: 0.5rem 0; }
.mobile-nav li a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--bg);
}

/* ================================================
   COMPONENT: Breaking Ticker
   ================================================ */
.breaking-ticker {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.breaking-label {
  background: var(--breaking);
  color: var(--breaking-fg);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ticker-track-wrapper { flex: 1; overflow: hidden; position: relative; padding: 0.5rem 0; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker-scroll 20s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a, .ticker-track span {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 2rem;
  color: var(--fg);
}
.ticker-track a:hover { color: var(--primary); }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Ping animation */
.ping-dot {
  position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem;
}
.ping-dot .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; opacity: 0.75;
  animation: ping 1.2s ease-in-out infinite;
}
.ping-dot .dot {
  position: relative; border-radius: 50%;
  width: 0.5rem; height: 0.5rem; background: currentColor;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* ================================================
   COMPONENT: Article Card
   ================================================ */
.article-card-large {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.article-card-large .img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--muted);
}
.article-card-large .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.article-card-large:hover .img-wrap img { transform: scale(1.05); }
.article-card-large .gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
}
.article-card-large .card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  color: #fff;
}
@media (min-width: 640px) { .article-card-large .card-body { padding: 1.75rem; } }
.article-card-large .card-body h2 {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 0.5rem;
}
.article-card-large .card-body p.excerpt { font-size: 0.875rem; opacity: 0.9; margin-top: 0.5rem; }
.article-card-large .card-body p.meta    { font-size: 0.75rem; opacity: 0.75; margin-top: 0.75rem; }

.article-card-horizontal {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.article-card-horizontal:last-child { border-bottom: none; }
.article-card-horizontal img {
  width: 8rem; height: 6rem; object-fit: cover; flex-shrink: 0;
}
@media (min-width: 640px) { .article-card-horizontal img { width: 10rem; height: 7rem; } }
.article-card-horizontal .card-body { flex: 1; }
.article-card-horizontal h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.375; margin-top: 0.25rem;
  transition: color 0.15s;
}
.article-card-horizontal:hover h3 { color: var(--primary); }
.article-card-horizontal p.meta { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.5rem; }

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card .img-wrap {
  aspect-ratio: 16/10; overflow: hidden; background: var(--muted); margin-bottom: 0.75rem;
}
.article-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .img-wrap img { transform: scale(1.04); }
.article-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.375; transition: color 0.15s; }
.article-card:hover h3 { color: var(--primary); }
.article-card p.meta { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
.article-card p.excerpt { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

.article-card-compact {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.article-card-compact:last-child { border-bottom: none; }
.article-card-compact img { width: 6rem; height: 5rem; object-fit: cover; flex-shrink: 0; }
.article-card-compact h3 { font-size: 0.875rem; font-weight: 700; line-height: 1.375; transition: color 0.15s; }
.article-card-compact:hover h3 { color: var(--primary); }
.article-card-compact p.meta { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Category pill */
.category-pill {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

/* Section title */
.section-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; padding-bottom: 0.5rem;
  border-bottom: 4px solid var(--primary);
  margin-bottom: 1.25rem;
}

/* ================================================
   COMPONENT: Sidebar
   ================================================ */
.sidebar { }
.sidebar-section { }
.trending-list li {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0;
}
.trending-num {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 1.75rem; font-weight: 900; color: var(--primary);
  line-height: 1; min-width: 2rem;
}
.trending-list a {
  font-weight: 700; font-size: 0.875rem; line-height: 1.375;
  transition: color 0.15s;
}
.trending-list a:hover { color: var(--primary); }
.most-read-item { border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.most-read-item:last-child { border-bottom: none; }
.most-read-rank { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.most-read-item a { display: block; font-weight: 700; font-size: 0.875rem; line-height: 1.375; margin-top: 0.25rem; transition: color 0.15s; }
.most-read-item a:hover { color: var(--primary); }
.most-read-views { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
.ad-slot {
  border: 1px dashed var(--border);
  background: hsl(40, 20%, 94%);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
}

/* ================================================
   COMPONENT: Video Carousel
   ================================================ */
.video-carousel { }
.carousel-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 4px solid var(--primary);
  padding-bottom: 0.25rem;
}
.carousel-nav { display: flex; align-items: center; gap: 0.5rem; }
.carousel-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0.375rem; border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s; border-radius: var(--radius);
}
.carousel-btn:hover { background: var(--fg); color: var(--bg); }
.carousel-btn svg { width: 1rem; height: 1rem; }
.carousel-track {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.video-card {
  flex-shrink: 0; width: 280px; scroll-snap-align: start;
  display: block; text-decoration: none; color: inherit;
}
@media (min-width: 640px) { .video-card { width: 320px; } }
.video-card .thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--muted);
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.video-card:hover .play-overlay { background: rgba(0,0,0,0.4); }
.play-btn {
  background: var(--primary); color: var(--primary-fg);
  border-radius: 50%; padding: 0.75rem;
  transition: transform 0.15s;
}
.video-card:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.video-duration {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.85);
  color: #fff; font-size: 0.6875rem; font-weight: 700;
  padding: 0.125rem 0.375rem;
  display: flex; align-items: center; gap: 0.25rem;
}
.video-duration svg { width: 0.75rem; height: 0.75rem; }
.video-card p { font-weight: 700; font-size: 0.875rem; line-height: 1.375; margin-top: 0.5rem; transition: color 0.15s; }
.video-card:hover p { color: var(--primary); }
.video-meta { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ================================================
   COMPONENT: Live Badge
   ================================================ */
.live-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--breaking); color: var(--breaking-fg);
  padding: 0.375rem 0.75rem; border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ================================================
   PAGE: Article Detail
   ================================================ */
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-breadcrumb { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 1rem; }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb span { margin: 0 0.5rem; }
.article-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.2; margin-top: 0.5rem; margin-bottom: 1rem;
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: var(--muted-fg); font-size: 0.875rem; margin-bottom: 1.5rem; }
.article-meta-item { display: flex; align-items: center; gap: 0.375rem; }
.article-meta-item svg { width: 1rem; height: 1rem; }
.article-body { font-size: 1.0625rem; line-height: 1.75; }
.article-body p { margin-bottom: 1.25rem; }
.article-share { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.tw { background: #1da1f2; color: #fff; }
.share-btn.wa { background: #25d366; color: #fff; }
.share-btn svg { width: 1rem; height: 1rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag-pill {
  display: inline-block; background: var(--muted); color: var(--muted-fg);
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem;
  border-radius: 9999px; border: 1px solid var(--border); transition: background 0.15s;
}
.tag-pill:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* Reactions */
.reactions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border: 2px solid var(--border); border-radius: 9999px;
  font-size: 0.875rem; font-weight: 600; transition: all 0.15s; cursor: pointer;
  background: var(--card);
}
.reaction-btn:hover { border-color: var(--primary); color: var(--primary); }
.reaction-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.reaction-btn .emoji { font-size: 1.125rem; }

/* Comments */
.comments-section { margin-top: 2.5rem; }
.comment-item {
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-author { font-weight: 700; font-size: 0.875rem; }
.comment-time   { font-size: 0.75rem; color: var(--muted-fg); margin-left: 0.5rem; }
.comment-body   { margin-top: 0.375rem; font-size: 0.9375rem; }
.comment-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.625rem 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem;
  background: var(--card); color: var(--fg);
  transition: border-color 0.15s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.comment-form textarea { resize: vertical; min-height: 7rem; }

/* ================================================
   PAGE: Videos
   ================================================ */
.video-player-wrap { background: #000; aspect-ratio: 16/9; }
.video-player-wrap iframe { width: 100%; height: 100%; border: none; }

/* ================================================
   PAGE: Live Blog
   ================================================ */
.live-header { }
.live-entry {
  position: relative; padding: 1.5rem 0 1.5rem 2rem;
  border-left: 2px solid var(--border);
}
.live-entry.important { border-left-color: var(--breaking); }
.live-entry::before {
  content: ''; position: absolute; left: -0.4375rem; top: 1.75rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg);
}
.live-entry.important::before { background: var(--breaking); }
.live-entry-time { font-size: 0.75rem; color: var(--muted-fg); font-weight: 600; }
.live-entry-title { font-weight: 700; font-size: 1rem; margin-top: 0.25rem; }
.live-entry-body  { font-size: 0.9375rem; margin-top: 0.5rem; color: var(--muted-fg); }
.live-important-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--breaking); color: var(--breaking-fg);
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  padding: 0.125rem 0.5rem; border-radius: var(--radius); margin-bottom: 0.375rem;
}

/* ================================================
   COMPONENT: Footer
   ================================================ */
.site-footer {
  background: var(--secondary); color: var(--secondary-fg); margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid:has(.footer-contact-col) { grid-template-columns: 2fr 1fr 1fr 1.25fr; }
}
.footer-brand-col { min-width: 0; }
.footer-contact-col { min-width: 0; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.5;
}
.footer-contact-item + .footer-contact-item { margin-top: 0.75rem; }
.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}
.footer-contact-item a { transition: opacity 0.2s, color 0.2s; }
.footer-contact-item a:hover { opacity: 1; color: white; }
.footer-contact-empty { font-size: 0.8rem; opacity: 0.5; line-height: 1.5; margin: 0; }
.footer-logo-link { display: inline-block; line-height: 0; }
.footer-logo {
  width: 160px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
}
.footer-brand-ta { font-family: 'Noto Serif Tamil', serif; font-size: 1.75rem; font-weight: 900; color: var(--primary); }
.footer-brand-en { font-family: 'Noto Serif Tamil', serif; font-size: 1.375rem; font-weight: 900; }
.footer-desc { font-size: 0.875rem; opacity: 0.8; line-height: 1.6; margin-top: 0.75rem; max-width: 28rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer-social a { opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.footer-social a:hover { opacity: 1; color: var(--primary); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 1rem; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { font-size: 0.875rem; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.75rem; opacity: 0.7;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ================================================
   ADMIN STYLES
   ================================================ */
.admin-layout { display: flex; min-height: 100vh; flex-direction: column; }
.admin-nav {
  width: 260px; background: var(--secondary); color: var(--secondary-fg);
  flex-shrink: 0; position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 40;
}
.content {
  margin-left: 260px; flex: 1; padding: 2rem;
  background: var(--bg); min-height: 100vh;
}
@media (max-width: 1023px) {
  .admin-nav     { transform: translateX(-100%); transition: transform 0.25s; }
  .admin-nav.open { transform: translateX(0); }
  .content { margin-left: 0; }
}
.admin-nav-brand { padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav-brand .brand-ta { font-size: 1.375rem; }
.admin-nav-section { padding: 0.5rem 0; }
.admin-nav-section-label {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  opacity: 0.5; padding: 0.75rem 1rem 0.25rem;
}
.admin-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.8); transition: background 0.15s, color 0.15s;
  border-radius: var(--radius); margin: 0 0.5rem;
}
.admin-nav a:hover   { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active  { background: var(--primary); color: var(--primary-fg); }
.admin-nav a svg     { width: 1rem; height: 1rem; opacity: 0.7; }
.admin-nav a.active svg { opacity: 1; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.admin-topbar h1 { font-size: 1.5rem; font-weight: 900; }
.admin-page-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.25rem; }
.admin-page-sub   { font-size: 0.875rem; color: var(--muted-fg); }

/* Stats cards */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.stat-card-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); }
.stat-card-value { font-size: 2rem; font-weight: 900; margin-top: 0.25rem; }
.stat-card-trend { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Admin table */
.admin-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { padding: 0.75rem 1rem; text-align: left; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: hsl(40, 20%, 96%); }
.admin-table .article-thumb { width: 5rem; height: 3.5rem; object-fit: cover; flex-shrink: 0; }

/* Admin forms */
.admin-form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 1.5rem; }
.admin-form-card-header { padding: 0.75rem 1rem; background: var(--muted); border-bottom: 1px solid var(--border); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-fg); }
.admin-form-card-body   { padding: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group:last-child  { margin-bottom: 0; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.form-control {
  display: block; width: 100%; padding: 0.625rem 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem; background: var(--bg); color: var(--fg);
  transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(354, 78%, 38%, 0.12); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 8rem; }
.form-hint { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
.form-error { font-size: 0.75rem; color: hsl(0, 84%, 50%); margin-top: 0.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s, background 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn svg { width: 1rem; height: 1rem; }
.btn-primary   { background: var(--primary); color: var(--primary-fg); border: none; }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); border: none; }
.btn-outline   { background: transparent; border: 1px solid var(--border); color: var(--fg); }
.btn-danger    { background: hsl(0, 84%, 50%); color: #fff; border: none; }
.btn-sm        { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-xs        { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Alerts */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: hsl(142, 72%, 29%, 0.12); border: 1px solid hsl(142, 72%, 29%, 0.3); color: hsl(142, 72%, 25%); }
.alert-danger  { background: hsl(0, 84%, 50%, 0.1); border: 1px solid hsl(0, 84%, 50%, 0.3); color: hsl(0, 84%, 40%); }
.alert-info    { background: hsl(210, 90%, 50%, 0.1); border: 1px solid hsl(210, 90%, 50%, 0.3); color: hsl(210, 90%, 35%); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-success { background: hsl(142, 72%, 29%, 0.12); color: hsl(142, 72%, 25%); }
.badge-warning { background: hsl(38, 92%, 50%, 0.15); color: hsl(38, 80%, 35%); }
.badge-danger  { background: hsl(0, 84%, 50%, 0.12); color: hsl(0, 84%, 40%); }
.badge-muted   { background: var(--muted); color: var(--muted-fg); }

/* Pagination */
.pagination { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; transition: background 0.15s, color 0.15s;
}
.pagination a:hover   { background: var(--muted); }
.pagination .active   { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Toggle switch */
.toggle-wrap { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.toggle-input { display: none; }
.toggle-slider {
  position: relative; display: inline-block;
  width: 2.5rem; height: 1.375rem; border-radius: 9999px;
  background: var(--muted); border: 1px solid var(--border);
  transition: background 0.2s;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 0.1875rem; left: 0.1875rem;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  background: var(--fg); transition: transform 0.2s, background 0.2s;
}
.toggle-input:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
.toggle-input:checked + .toggle-slider::after { transform: translateX(1.125rem); background: #fff; }

/* Search bar */
.admin-search { position: relative; }
.admin-search input {
  width: 100%; padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem; background: var(--bg); color: var(--fg);
}
.admin-search input:focus { outline: none; border-color: var(--primary); }
.admin-search .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); }
.admin-search .search-icon svg { width: 1rem; height: 1rem; }

/* Overlay for mobile nav */
.admin-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 30;
}
.admin-overlay.show { display: block; }

/* Admin login */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--muted); padding: 1rem;
}
.admin-login-card {
  width: 100%; max-width: 24rem;
  background: var(--card); border: 1px solid var(--border);
  padding: 2.5rem; box-shadow: var(--shadow-elevated); border-radius: var(--radius);
}

/* Utilities */
.hidden    { display: none !important; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.pointer   { cursor: pointer; }
.no-select { user-select: none; }
.fade-up   { animation: fadeUp 0.4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.active-live-card {
    border: 2px solid #2563eb !important;
    background-color: #eff6ff !important;
}

@keyframes flashIn {
    from { background-color: #fefce8; }
    to   { background-color: transparent; }
}

.new-entry-flash {
    animation: flashIn 1.5s ease-out forwards;
}