:root {
  --primary: #800000;
  --primary-dark: #5C0000;
  --primary-light: #F5E6E6;
  --bg-light: #FFFFFF;
  --text-dark: #000000;
  --text-muted: #333333;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(128,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --glass-bg: rgba(255,255,255,0.95);
  --glass-border: rgba(255,255,255,0.5);
}
[data-theme="dark"] {
  --bg-light: #1A0000;
  --text-dark: #FFFFFF;
  --text-muted: #CCCCCC;
  --white: #2D0000;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --glass-bg: rgba(45,0,0,0.95);
  --glass-border: rgba(255,255,255,0.1);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5E6E6; }
::-webkit-scrollbar-thumb { background: #800000; border-radius: 4px; }
::selection { background: #800000; color: white; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans Tamil', 'Segoe UI', sans-serif; background: var(--bg-light); color: var(--text-dark); overflow-x: hidden; line-height: 1.6; transition: var(--transition); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: var(--primary-dark); color: white; font-size: 13px; padding: 6px 0; position: relative; z-index: 1001; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-left span { display: flex; align-items: center; gap: 4px; }
.top-bar-left i { font-size: 12px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-right a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.top-bar-right a:hover { color: white; }
.top-bar-right .social-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: var(--transition); font-size: 12px; }
.top-bar-right .social-icon:hover { background: var(--primary); }
.dark-toggle { cursor: pointer; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,0.15); border: none; color: white; font-size: 12px; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.dark-toggle:hover { background: rgba(255,255,255,0.25); }
.lang-switcher { padding: 3px 10px; border-radius: 4px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 12px; cursor: pointer; }
.district-select-top { background: transparent; color: white; border: none; font-size: 13px; cursor: pointer; padding: 2px 4px; outline: none; font-family: inherit; }
.district-select-top option { background: var(--primary-dark); color: white; }

/* Header Main */
.header-main { background: var(--white); padding: 12px 0; position: relative; z-index: 1000; box-shadow: var(--shadow-md); transition: var(--transition); border-bottom: 3px solid var(--primary); }
.header-main .container { display: flex; align-items: center; justify-content: center; gap: 12px; }
.logo-area { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-text { font-size: 32px; font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -1px; }
.logo-text span { color: var(--text-dark); }
.tagline { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.right-widgets { flex: 1; max-width: 640px; position: relative; overflow: hidden; }
.widget-slider { display: flex; transition: transform 0.5s ease; }
.widget-slide { min-width: 100%; padding: 3px 10px; background: var(--bg-light); border-radius: var(--radius-sm); border: none; transition: var(--transition); }
.widget-slide h4 { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 1px; display: flex; align-items: center; gap: 4px; line-height: 1.2; }
.widget-slide .price-row { display: flex; justify-content: space-between; font-size: 11px; padding: 0; line-height: 1.2; }
.widget-slide .price-row .label { color: var(--text-muted); }
.widget-slide .price-row .value { font-weight: 600; }
.widget-slide .price-row .up { color: #22C55E; }
.widget-slide .price-row .down { color: #EF4444; }
.widget-nav { display: flex; gap: 2px; margin-top: 2px; justify-content: center; }
.widget-dot { width: 4px; height: 4px; border-radius: 50%; background: #CBD5E1; cursor: pointer; transition: var(--transition); }
.widget-dot.active { background: var(--primary); width: 12px; border-radius: 2px; }
.crypto-row { display: flex; align-items: center; justify-content: space-between; padding: 0; font-size: 11px; line-height: 1.2; }
.river-widget { padding: 4px 8px !important; background: linear-gradient(135deg, #E0F2FE, #BAE6FD) !important; margin-top: 0 !important; }
.river-widget h5 { font-size: 11px; margin-bottom: 1px; }
.river-meta { gap: 1px 8px !important; font-size: 10px !important; margin-top: 2px !important; }
.river-meta span { line-height: 1.1; }
.river-nav { margin-top: 2px !important; gap: 3px !important; }
.river-nav button { width: 14px; height: 14px; font-size: 8px; }
.storage-bar { height: 3px !important; margin-top: 2px !important; }

/* Navigation */
.main-nav { background: var(--primary); border-top: none; border-bottom: none; position: sticky; top: 0; z-index: 999; transition: var(--transition); }
[data-theme="dark"] .main-nav { border-color: rgba(255,255,255,0.05); }
.main-nav .container { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: white; white-space: nowrap; transition: var(--transition); border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-item.active .nav-link { color: #FFD700; border-bottom-color: #FFD700; }
.nav-link i { font-size: 12px; }
.mega-menu { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); padding: 24px; display: none; min-width: 600px; z-index: 100; grid-template-columns: repeat(3,1fr); gap: 16px; }
.nav-item:hover .mega-menu { display: grid; }
.mega-col h5 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--primary-light); }
.mega-col a { display: block; padding: 5px 0; font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.mega-col a:hover { color: var(--primary); padding-left: 4px; }
.nav-search { padding: 12px 16px; cursor: pointer; color: white; transition: var(--transition); }
.nav-search:hover { color: #FFD700; }
.mobile-menu-btn { display: none; padding: 12px 16px; cursor: pointer; font-size: 20px; color: white; }

/* Breaking News */
.breaking-news { background: var(--primary-light); border-bottom: 3px solid var(--primary); position: relative; overflow: hidden; }
[data-theme="dark"] .breaking-news { background: #2D0000; border-color: #800000; }
.breaking-news .container { display: flex; align-items: center; gap: 0; }
.breaking-label { background: var(--primary); color: white; padding: 8px 18px; font-size: 13px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.breaking-label i { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.breaking-ticker { flex: 1; overflow: hidden; padding: 8px 16px; position: relative; }
.breaking-track { display: flex; animation: scroll-left 40s linear infinite; white-space: nowrap; }
.breaking-track:hover { animation-play-state: paused; }
.breaking-track a { padding: 0 30px; font-size: 14px; font-weight: 500; color: var(--text-dark); white-space: nowrap; }
.breaking-track a:hover { color: var(--primary); }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.breaking-controls { display: flex; gap: 4px; padding-right: 12px; flex-shrink: 0; }
.breaking-controls button { width: 28px; height: 28px; border: none; background: #E2E8F0; border-radius: 50%; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-dark); }
.breaking-controls button:hover { background: var(--primary); color: white; }

/* Hero Section */
.hero-section { padding: 24px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.featured-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); cursor: pointer; background: var(--white); transition: var(--transition); }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card .card-img { width: 100%; height: 420px; object-fit: cover; background: linear-gradient(135deg, #667eea, #764ba2); }
.featured-card .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: white; }
.featured-card .category-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 10px; background: var(--primary); }
.featured-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.featured-card p { font-size: 14px; opacity: 0.9; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card .meta { display: flex; align-items: center; gap: 16px; font-size: 12px; opacity: 0.75; }
.featured-card .meta i { margin-right: 4px; }
.trending-stack { display: flex; flex-direction: column; gap: 12px; }
.trending-card { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); }
.trending-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.trending-card .thumb { width: 100px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; background: linear-gradient(135deg, #667eea, #764ba2); flex-shrink: 0; }
.trending-card .info { flex: 1; }
.trending-card .info h4 { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-card .info .meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: flex; gap: 10px; }
.trending-card .trend-num { font-size: 24px; font-weight: 900; color: var(--primary-light); line-height: 1; }
/* Category Colors */
.cat-politics { background: #800000; }
.cat-business { background: #A00000; }
.cat-sports { background: #5C0000; }
.cat-technology { background: #3D0000; }
.cat-cinema { background: #800000; }
.cat-agriculture { background: #5C0000; }
.cat-education { background: #3D0000; }
.cat-weather { background: #800000; }

/* Quick Access */
.quick-access { padding: 0 0 24px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); text-align: center; border: 1px solid transparent; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.quick-card .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; margin-bottom: 8px; }
.quick-card span { font-size: 12px; font-weight: 500; }

/* Section Titles */
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
.section-title h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-title h2 i { color: var(--primary); }
.section-title .view-all { font-size: 13px; color: var(--primary); font-weight: 600; transition: var(--transition); }
.section-title .view-all:hover { gap: 4px; }

/* News Grid */
.news-section { padding: 0 0 24px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .card-img { width: 100%; height: 180px; object-fit: cover; background: linear-gradient(135deg, #667eea, #764ba2); position: relative; }
.news-card .cat-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; color: white; }
.news-card .card-body { padding: 14px; }
.news-card .card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-muted); }
.news-card .card-meta i { margin-right: 3px; }

/* Sidebar Layout */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

/* Trending Sidebar */
.trending-sidebar { position: sticky; top: 80px; align-self: start; }
.trending-list { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.trending-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.trending-item:last-child { border-bottom: none; }
.trending-item .rank { font-size: 20px; font-weight: 900; color: var(--primary-light); min-width: 30px; line-height: 1; }
.trending-item .rank.top3 { color: var(--primary); }
.trending-item .info { flex: 1; }
.trending-item .info h5 { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-item .info .meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 8px; }
.trending-item .trend-score { font-size: 11px; color: #22C55E; font-weight: 600; }

/* Weather Widget */
.weather-widget { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.weather-current { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #F1F5F9; }
.weather-current .temp { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; }
.weather-current .details { font-size: 13px; }
.weather-current .details span { display: block; color: var(--text-muted); }
.weather-forecast { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.forecast-day { text-align: center; font-size: 11px; }
.forecast-day .day-name { font-weight: 600; margin-bottom: 3px; }
.forecast-day .day-icon { font-size: 18px; margin-bottom: 3px; }
.forecast-day .day-temp { font-size: 12px; font-weight: 600; }

/* Video Section */
.video-section { padding: 24px 0; background: var(--white); }
.video-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.featured-video { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.featured-video video, .featured-video iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.featured-video .play-btn { position: absolute; width: 60px; height: 60px; background: rgba(0,87,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; cursor: pointer; transition: var(--transition); }
.featured-video .play-btn:hover { transform: scale(1.1); }
.video-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.video-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.8); color: white; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.video-thumb .v-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.video-thumb .v-overlay h5 { color: white; font-size: 12px; font-weight: 600; }
.video-categories { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.video-cat-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid #E2E8F0; background: transparent; font-size: 13px; cursor: pointer; transition: var(--transition); color: var(--text-muted); }
.video-cat-btn:hover, .video-cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Web Stories */
.stories-section { padding: 24px 0; }
.stories-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.stories-track::-webkit-scrollbar { display: none; }
.story-card { min-width: 140px; height: 240px; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; scroll-snap-align: start; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); transition: var(--transition); }
.story-card:hover { transform: scale(1.02); }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card .story-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: white; }
.story-card .story-overlay .story-cat { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.story-card .story-overlay h5 { font-size: 13px; font-weight: 600; margin-top: 4px; }

/* Agriculture Section */
.agri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.agri-card { background: var(--white); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--primary); }
.agri-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.agri-card .price { font-size: 18px; font-weight: 800; color: var(--primary); }
.agri-card .change { font-size: 12px; }
.agri-card .change.up { color: #22C55E; }
.agri-card .change.down { color: #EF4444; }

/* District News */
.district-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.district-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid #E2E8F0; background: transparent; font-size: 13px; cursor: pointer; transition: var(--transition); color: var(--text-muted); }
.district-btn:hover, .district-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Election Dashboard */
.election-section { padding: 24px 0; background: var(--white); }
.election-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.election-card { background: var(--bg-light); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.election-card .party { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.election-card .seats { font-size: 32px; font-weight: 900; color: var(--primary); }
.election-card .bar { height: 6px; border-radius: 3px; margin-top: 8px; background: #E2E8F0; overflow: hidden; }
.election-card .bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* Business Dashboard */
.business-section { padding: 24px 0; }
.business-ticker { display: flex; gap: 20px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.business-ticker::-webkit-scrollbar { display: none; }
.stock-item { white-space: nowrap; font-size: 14px; padding: 8px 16px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.stock-item .name { font-weight: 600; }
.stock-item .price { font-weight: 700; margin-left: 8px; }
.stock-item .change { margin-left: 6px; font-size: 12px; }

/* Live TV */
.livetv-section { padding: 24px 0; background: var(--primary-dark); color: white; }
.livetv-section .section-title h2 { color: white; }
.livetv-section .section-title h2 i { color: #FFD700; }
.livetv-player { aspect-ratio: 16/9; max-width: 800px; margin: 0 auto; background: #000; border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.livetv-player .live-badge { position: absolute; top: 16px; left: 16px; background: #800000; color: white; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.livetv-player .live-badge i { animation: pulse 1.5s infinite; }
.livetv-player .play-btn { width: 80px; height: 80px; background: rgba(128,0,0,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; cursor: pointer; transition: var(--transition); }
.livetv-player .play-btn:hover { transform: scale(1.1); }

/* Poll Section */
.poll-section { padding: 24px 0; }
.poll-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); max-width: 500px; }
.poll-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.poll-option { margin-bottom: 10px; }
.poll-option label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.poll-option label:hover { background: var(--primary-light); }
.poll-option input[type="radio"] { accent-color: var(--primary); }
.poll-bar { height: 6px; border-radius: 3px; background: #E2E8F0; margin-top: 6px; overflow: hidden; }
.poll-bar-fill { height: 100%; border-radius: 3px; background: var(--primary); transition: width 1s ease; }

/* Newsletter */
.newsletter-section { padding: 40px 0; background: var(--primary); color: white; }
.newsletter-section .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-text h3 { font-size: 24px; font-weight: 800; }
.newsletter-text p { opacity: 0.85; font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { padding: 12px 20px; border-radius: var(--radius-sm); border: none; min-width: 280px; font-size: 14px; }
.newsletter-form button { padding: 12px 28px; background: var(--primary-dark); color: white; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: #002D91; }

/* News Digest */
.digest-section { padding: 24px 0; }
.digest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.digest-card { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--primary); }
.digest-card .source { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.digest-card h4 { font-size: 14px; font-weight: 600; margin: 4px 0; }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.9); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .logo-text { font-size: 28px; margin-bottom: 4px; color: white; }
.footer-brand p { font-size: 13px; opacity: 0.8; line-height: 1.7; margin-top: 10px; }
.footer-col h5 { color: #FFD700; font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #FFD700; }
.footer-col a { display: block; padding: 4px 0; font-size: 13px; color: rgba(255,255,255,0.75); transition: var(--transition); }
.footer-col a:hover { color: #FFD700; padding-left: 4px; }
.footer-bottom { margin-top: 32px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #FFD700; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: #FFD700; color: var(--primary-dark); }

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .featured-card .card-img { height: 300px; }
  .with-sidebar { grid-template-columns: 1fr; }
  .trending-sidebar { position: static; }
  .video-grid { grid-template-columns: 1fr; }
  .election-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .right-widgets { max-width: 100%; }
  .right-widgets { display: none; }
}
@media (max-width: 992px) {
  .top-bar { font-size: 11px; padding: 4px 0; }
  .top-bar-left { gap: 8px; }
  .top-bar-right { gap: 6px; }
  .top-bar-left i, .top-bar-right .social-icon, .dark-toggle, .lang-switcher, .district-select-top { font-size: 10px; }
  .top-bar-right .social-icon { width: 20px; height: 20px; font-size: 10px; }
  .dark-toggle { padding: 2px 6px; }
  .lang-switcher { padding: 2px 6px; font-size: 10px; }
  .district-select-top { font-size: 11px; max-width: 90px; }
}
@media (max-width: 768px) {
  .top-bar .container { justify-content: center; }
  .top-bar-left, .top-bar-right { justify-content: center; width: 100%; }
  .header-main .container { flex-direction: column; }
  .logo-area { justify-content: center; }
  .logo-text { font-size: 26px; }
  .right-widgets { max-width: 100%; width: 100%; }
  .mobile-menu-btn { display: block; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 12px 0; z-index: 100; max-height: 80vh; overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 10px 20px; }
  .mega-menu { display: none !important; }
  .featured-card .card-img { height: 220px; }
  .featured-card h2 { font-size: 20px; }
  .quick-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
  .quick-card { padding: 12px 6px; }
  .quick-card .icon { width: 36px; height: 36px; font-size: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .election-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .weather-forecast { grid-template-columns: repeat(4,1fr); }
  .newsletter-form input { min-width: 200px; }
  .story-card { min-width: 110px; height: 200px; }
  .trending-card .thumb { width: 80px; height: 64px; }
}
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .breaking-label { font-size: 11px; padding: 6px 12px; }
  .breaking-track a { font-size: 12px; padding: 0 16px; }
  .featured-card .card-img { height: 180px; }
  .featured-card .card-overlay { padding: 16px; }
  .featured-card h2 { font-size: 17px; }
  .featured-card p { font-size: 12px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: auto; width: 100%; }
}

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 999; transition: var(--transition); }
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* River Water Level (base) */
.river-slide { display: none; }
.river-slide.active { display: block; }
.river-slide h5 { font-size: 11px; font-weight: 700; color: var(--primary-dark); }
[data-theme="dark"] .river-slide h5 { color: #7DD3FC; }
.river-slide .river-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; margin-top: 2px; font-size: 10px; }
.river-slide .river-meta span { display: flex; justify-content: space-between; line-height: 1.1; }
.river-slide .river-meta .label { color: var(--text-muted); }
.river-slide .river-meta .val { font-weight: 600; }
.river-slide .storage-bar { height: 3px; border-radius: 2px; background: #CBD5E1; margin-top: 2px; overflow: hidden; }
.river-slide .storage-fill { height: 100%; border-radius: 2px; background: var(--primary); }
[data-theme="dark"] .river-widget { background: linear-gradient(135deg, #0C4A6E, #075985) !important; }

/* Crypto Widget (base) */
.crypto-row .name { font-weight: 600; }
.crypto-row .price { font-weight: 700; }
.crypto-row .change { font-size: 10px; }

/* Skeleton Cards */
.skeleton-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.skeleton-card .skeleton-img { height: 180px; }
.skeleton-card .skeleton-body { padding: 14px; }
.skeleton-card .skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-card .skeleton-line:last-child { width: 60%; }

/* Mobile Menu Overlay */
.mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 998; }
.mobile-overlay.show { display: block; }

/* ===== CUSTOMIZATION PANEL ===== */
.customize-toggle { position: fixed; bottom: 80px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 997; transition: var(--transition); }
.customize-toggle:hover { background: var(--primary-dark); transform: scale(1.1); }
.customize-toggle i { transition: transform 0.3s ease; }
.customize-toggle.open i { transform: rotate(90deg); }
.customize-panel { position: fixed; top: 0; right: -400px; width: 380px; height: 100vh; background: var(--white); box-shadow: -4px 0 30px rgba(0,0,0,0.15); z-index: 9999; transition: right 0.35s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.customize-panel.open { right: 0; }
.customize-panel .panel-header { padding: 18px 20px; border-bottom: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: space-between; }
.customize-panel .panel-header h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.customize-panel .panel-header .close-panel { width: 32px; height: 32px; border: none; background: #F1F5F9; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted); transition: var(--transition); }
.customize-panel .panel-header .close-panel:hover { background: #EF4444; color: white; }
.customize-panel .panel-body { flex: 1; overflow-y: auto; padding: 16px 20px 80px; }
.customize-group { margin-bottom: 20px; }
.customize-group h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #F1F5F9; }
.customize-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.customize-row label { font-size: 14px; font-weight: 500; cursor: pointer; }
.customize-row .custom-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.custom-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.custom-switch input { opacity: 0; width: 0; height: 0; }
.custom-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #CBD5E1; border-radius: 24px; transition: var(--transition); }
.custom-switch .slider:before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: var(--transition); }
.custom-switch input:checked + .slider { background: var(--primary); }
.custom-switch input:checked + .slider:before { transform: translateX(18px); }
.color-picker-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: var(--transition); position: relative; }
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--text-dark); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text-dark); }
.color-swatch input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.font-size-btn { padding: 6px 14px; border: 1px solid #E2E8F0; background: transparent; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; transition: var(--transition); }
.font-size-btn:hover { border-color: var(--primary); color: var(--primary); }
.font-size-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.customize-panel .panel-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 20px; border-top: 1px solid #E2E8F0; background: var(--white); display: flex; gap: 10px; }
.customize-panel .panel-footer button { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.customize-panel .panel-footer .reset-btn { background: #F1F5F9; color: var(--text-dark); }
.customize-panel .panel-footer .reset-btn:hover { background: #E2E8F0; }
.customize-panel .panel-footer .apply-btn { background: var(--primary); color: white; }
.customize-panel .panel-footer .apply-btn:hover { background: var(--primary-dark); }
.section-visibility { display: flex; flex-direction: column; gap: 2px; }
.section-visibility .customize-row { padding: 5px 0; }
.panel-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 9998; display: none; }
.panel-backdrop.show { display: block; }
@media (max-width: 480px) {
  .customize-panel { width: 100%; right: -100%; }
  .customize-toggle { bottom: 70px; right: 16px; }
}

/* ===== CARTOON THEME ANIMATIONS ===== */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cartoon Card Hover Effects */
.news-card:hover .card-img,
.trending-card:hover .thumb {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.featured-card:hover {
  transform: translateY(-8px) rotate(1deg) !important;
}

/* Online TV Section Enhanced */
.livetv-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}
.livetv-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,0,0,0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

/* International Standard Typography */
.logo-text {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -2px;
}
.logo-text span {
  font-weight: 700;
  letter-spacing: 0;
}

/* Modern Card Shadows */
.news-card,
.trending-card,
.featured-card {
  backdrop-filter: blur(10px);
}

/* Playful Quick Access Icons */
.quick-card:hover {
  animation: bounce 0.5s ease;
}

/* Enhanced Story Cards */
.story-card:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Video Player Enhancement */
.featured-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255,0,0,0.1), transparent);
  pointer-events: none;
}

/* Modern Button Styles */
.apply-btn, .submit-btn, .biz-btn {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
}

/* Enhanced Breaking News */
.breaking-news {
  background: linear-gradient(90deg, #FFF8E1 0%, #FFECB3 100%);
  border-bottom: 3px solid #800000;
}
.breaking-label {
  background: linear-gradient(135deg, #800000, #5C0000);
  animation: pulse 2s infinite;
}

/* Weather Widget Enhancement */
.weather-widget {
  background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
  border-radius: 16px;
}
[data-theme="dark"] .weather-widget {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

/* Trending Sidebar Enhancement */
.trending-sidebar .trending-list {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Footer Brand Enhancement */
.footer-brand .logo-text {
  font-size: 32px;
  background: linear-gradient(135deg, #FFFFFF, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .hero-section {
    padding: 16px 0;
  }
  .featured-card {
    transform: none !important;
  }
  .trending-card {
    transform: none !important;
  }
}
