/* ==========================================================================
   DENNIS.GRIMALDI.TV - CINEMATIC BROADCAST NEWS NETWORK DESIGN SYSTEM
   Mobile-First & Ultra-Responsive Optimization
   ========================================================================== */

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

:root {
  /* High-Impact Broadcast TV Color Palette */
  --bg-main: #060a14;
  --bg-secondary: #0a1120;
  --bg-card: #0f1a30;
  --bg-card-hover: #162644;
  --bg-glass: rgba(10, 17, 32, 0.95);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-navy: #08152c;
  --brand-blue: #2563eb;
  --brand-azure: #38bdf8;
  --brand-cyan: #06b6d4;
  --brand-crimson: #dc2626;
  --brand-crimson-glow: rgba(220, 38, 38, 0.4);
  
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --border-color: #1e3256;
  --border-light: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(56, 189, 248, 0.35);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #cbd5e1;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-crimson);
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Utility Bar */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-meta-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 38, 38, 0.2);
  color: var(--brand-crimson);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-crimson);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-crimson);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.top-tagline {
  font-weight: 800;
  color: var(--brand-azure);
  letter-spacing: 1px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.top-meta-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.2);
  color: var(--brand-azure);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.refresh-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn:hover {
  color: var(--brand-azure);
  background: rgba(56, 189, 248, 0.1);
}

/* Main Broadcast Header */
.main-header {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 0%, var(--brand-azure) 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
  text-transform: uppercase;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(90deg, #0a1120 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline-bar {
  font-size: 0.78rem;
  color: var(--brand-crimson);
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.brand-categories-bar {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Header Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-azure);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Navigation Category Bar */
.nav-bar {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.65rem 0;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 0.6rem 1.25rem;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-crimson), #991b1b);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.nav-tab .tab-count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

/* Broadcast Ticker */
.ticker-wrapper {
  background: linear-gradient(90deg, #0a1120 0%, #1c0808 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}

.ticker-label {
  background: linear-gradient(135deg, var(--brand-crimson), #991b1b);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  padding-left: 1rem;
}

.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
}

.ticker-item:hover {
  color: var(--brand-azure);
  text-decoration: underline;
}

.ticker-source {
  color: var(--brand-azure);
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Grid Layout */
.main-content {
  padding: 1.5rem 0 2.5rem 0;
  flex: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2.5rem;
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: var(--transition);
  cursor: pointer;
}

.hero-card:hover {
  border-color: var(--brand-azure);
  box-shadow: var(--shadow-glow);
}

.hero-image-wrap {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #060a14;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-img {
  transform: scale(1.05);
}

.hero-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-badge {
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-badge.democrat { background: var(--brand-blue); }
.category-badge.world { background: var(--brand-cyan); }
.category-badge.policy { background: var(--brand-navy); border-color: var(--brand-azure); }
.category-badge.commentary { background: var(--brand-crimson); }

.hero-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-excerpt {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.source-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-azure);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.read-btn {
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.read-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Feed Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--brand-azure);
  border-radius: 2px;
}

.live-feed-indicator {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-azure);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: #060a14;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
}

.card-source {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-azure);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-action-btn {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.news-card:hover .card-action-btn {
  color: var(--brand-azure);
}

/* Sidebar Styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Outlets List Widget */
.outlets-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.outlet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.outlet-item:hover {
  border-color: var(--brand-azure);
  background: var(--bg-card-hover);
}

.outlet-badge {
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.2);
  color: var(--brand-azure);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
}

/* Detailed Article Summary Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--brand-crimson);
  color: #fff;
}

.modal-header-img-wrap {
  width: 100%;
  height: 320px;
  position: relative;
  background: #060a14;
}

.modal-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2.4rem;
}

.modal-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.font-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.font-control-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.font-control-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

.paywall-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.modal-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.summary-callout-box {
  background: rgba(37, 99, 235, 0.12);
  border-left: 4px solid var(--brand-azure);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem;
  margin-bottom: 1.8rem;
}

.summary-callout-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-azure);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.takeaway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.takeaway-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.takeaway-bullet {
  color: var(--brand-azure);
  font-weight: 900;
}

.modal-article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.modal-article-body p {
  margin-bottom: 1.5rem;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.original-link-btn {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.original-link-btn:hover {
  background: var(--brand-navy);
  transform: translateY(-2px);
}

/* Skeleton Animation */
.skeleton {
  background: linear-gradient(90deg, #0f1a30 25%, #162644 50%, #0f1a30 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: 2.5rem 0 1.5rem 0;
  margin-top: auto;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ULTRA-RESPONSIVE MOBILE & TABLET MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Container & Utility Bar */
  .container {
    padding: 0 1rem;
  }
  
  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
  
  .top-meta-left {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .date-hide-mobile {
    display: none;
  }
  
  .top-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
  }
  
  /* Header & Title */
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0.75rem 0;
  }
  
  .brand-logo {
    justify-content: center;
  }
  
  .brand-title {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .brand-tagline-bar {
    font-size: 0.7rem;
    justify-content: center;
    letter-spacing: 0.8px;
  }
  
  .brand-categories-bar {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
  
  .search-box {
    width: 100%;
    max-width: 100%;
  }
  
  /* Hero Card Stack */
  .hero-card {
    grid-template-columns: 1fr;
  }
  
  .hero-image-wrap {
    min-height: 220px;
    max-height: 260px;
  }
  
  .hero-body {
    padding: 1.25rem;
  }
  
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  
  .hero-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .read-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* News Grid Cards */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .card-img-wrap {
    height: 180px;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.05rem;
  }

  /* Modal Reader Overlay */
  .modal-overlay {
    padding: 0.5rem;
  }
  
  .modal-container {
    max-height: 96vh;
    border-radius: var(--radius-md);
  }
  
  .modal-header-img-wrap {
    height: 200px;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-title {
    font-size: 1.4rem;
  }
  
  .modal-reader-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
  }
  
  .modal-actions-bar {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .original-link-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Footer Mobile */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.35rem;
  }
  
  .section-title {
    font-size: 1.15rem;
  }
  
  .nav-tab {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
}
