/* CSS Reset & Variables */
:root {
  --bg-primary: #0A0A0C;
  --bg-secondary: #141418;
  --bg-card: #1C1C22;
  --bg-card-hover: #262630;
  
  --accent-color: #007AFF;
  --accent-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  --accent-orange: #FF9500;
  --accent-red: #FF3B30;
  
  --text-primary: #FFFFFF;
  --text-secondary: #9898A0;
  --text-muted: #63636E;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 122, 255, 0.4);
  
  --glass-bg: rgba(20, 20, 26, 0.75);
  --glass-dock-bg: rgba(18, 18, 22, 0.85);
  --glass-blur: blur(20px);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
/* Light Mode Theme Overrides */
body.light-mode {
  --bg-primary: #F2F2F7;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #E5E5EA;
  
  --text-primary: #000000;
  --text-secondary: #48484A;
  --text-muted: #8E8E93;
  
  --border-light: rgba(0, 0, 0, 0.1);
  --border-active: rgba(0, 122, 255, 0.6);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-dock-bg: rgba(242, 242, 247, 0.9);
}

body.light-mode {
  background-color: #E5E5EA !important;
}

body.light-mode .app-container {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .top10-number {
  -webkit-text-stroke: 3px #B0B0B8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #030304;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* App Wrapper: Responsive Mobile & Desktop Layout */
.app-container {
  width: 100%;
  max-width: 960px; /* Expands smoothly on tablet and desktop */
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-primary);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  padding-bottom: 110px; /* Room for floating footer dock */
  overflow-x: hidden;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.live-dot {
  width: 9px;
  height: 9px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulse 1.8s infinite;
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.icon-btn:active {
  transform: scale(0.92);
  background: var(--bg-card-hover);
}

.notification-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

/* Search Bar Wrapper */
.search-bar-wrapper {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.search-bar-wrapper.hidden {
  display: none;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  gap: 10px;
}

.search-input-box i {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 0.95rem;
}

.search-input-box button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.filter-bar strong {
  color: var(--accent-color);
}

.clear-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 149, 0, 0.1);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.clear-filter-btn:hover {
  background: rgba(255, 149, 0, 0.2);
}

/* Hero News Slider */
.hero-section {
  padding: 16px 20px;
}

.hero-slider-container {
  width: 100%;
  height: 270px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  touch-action: pan-y;
  user-select: none;
  background-color: var(--bg-card);
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  cursor: grab;
}

.hero-track.grabbing {
  cursor: grabbing;
  transition: none; /* Disable transition during direct drag */
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 10, 12, 0.65) 50%, rgba(10, 10, 12, 0.96) 95%);
  padding: 20px 20px 48px 20px; /* 48px bottom clearance prevents text overlapping controls */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-badge {
  align-self: flex-start;
  background: var(--accent-gradient);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  pointer-events: auto;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

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

/* Desktop Hover Navigation Chevrons */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 20, 26, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.hero-nav-btn:hover {
  background: rgba(35, 35, 45, 0.95);
  border-color: var(--border-active);
  transform: translateY(-50%) scale(1.08);
}

.hero-nav-btn.prev-btn {
  left: 14px;
}

.hero-nav-btn.next-btn {
  right: 14px;
}

.hero-slider-container:hover .hero-nav-btn {
  opacity: 1;
}

.hero-controls {
  position: absolute;
  bottom: 12px;
  right: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
}

.hero-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition-fast);
  cursor: pointer;
}

.indicator-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--accent-color);
}

.timer-bar {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.timer-progress {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  transition: width 0.1s linear;
}

/* Compact Categories Grid Section (6 per row) */
.categories-section {
  padding: 8px 16px 16px 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 0; /* Prevents overflow with flex/grid items */
}

.category-card:hover, .category-card.active {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.category-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
  letter-spacing: -0.2px;
}

/* Category-wise News List Section */
.news-feed-section {
  padding: 0 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-news-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  content-visibility: auto;
}

.cat-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3.5px solid var(--accent-color);
  padding-left: 12px;
}

.cat-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.netflix-badge {
  background: linear-gradient(135deg, #E50914 0%, #B81D24 100%);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

/* TOP 10 NETFLIX RAIL */
.top10-section {
  padding: 16px 20px 0 20px;
}

.top10-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top10-rail-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 -20px;
  padding: 0 20px;
}

.top10-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none; 
}
.top10-rail::-webkit-scrollbar { display: none; }

.top10-item {
  flex: 0 0 140px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
}

.top10-item.rank-10 {
  flex: 0 0 170px;
}

.top10-number {
  font-family: 'Inter', sans-serif;
  font-size: 140px;
  font-weight: 900;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 3px #444;
  position: absolute;
  left: 0;
  bottom: -4px;
  z-index: 1;
  letter-spacing: -6px;
  pointer-events: none;
}

.top10-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 110px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 2;
  background: var(--bg-card);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.top10-card:hover {
  transform: scale(1.03);
}

.top10-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top10-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.top10-title {
  font-size: 0.65rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* TOP 10 DEDICATED PAGE GRID */
.top10-page-container {
  padding: 16px 12px 40px 12px;
}

.top10-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 8px;
  margin-top: 16px;
}

.top10-page-item {
  width: 100%;
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.top10-page-item .top10-number {
  font-size: 90px;
  bottom: -2px;
  left: -2px;
  letter-spacing: -4px;
}

.top10-page-item .top10-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 75%;
  height: 135px;
}

@media (min-width: 600px) {
  .top10-page-container {
    padding: 16px 20px 40px 20px;
  }
  .top10-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px 16px;
  }
  .top10-page-item {
    height: 160px;
  }
  .top10-page-item .top10-number {
    font-size: 140px;
    bottom: -4px;
    left: 0;
    letter-spacing: -6px;
  }
  .top10-page-item .top10-card {
    width: 115px;
    height: 155px;
  }
}
.even-cat-badge {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.cat-group-viewall {
  font-size: 0.82rem;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.cat-group-viewall:hover {
  text-decoration: underline;
}

/* ULTRA-COMPACT NETFLIX STYLE HORIZONTAL SCROLL RAIL (Odd Categories) */
.netflix-rail-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 -16px;
  padding: 0 16px;
}

.netflix-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.netflix-rail::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.netflix-card {
  flex: 0 0 135px;
  width: 135px;
  height: 92px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.netflix-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.netflix-card:active {
  transform: scale(0.98);
}

.netflix-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.netflix-rank-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
  line-height: 1.1;
}

.netflix-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 12, 0.65) 40%, rgba(10, 10, 12, 0.98) 95%);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 4;
}

.netflix-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.15px;
}

.netflix-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.netflix-card-date {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 0.65rem;
}

.netflix-card-footer .bookmark-icon-btn {
  font-size: 0.78rem;
  padding: 0;
}

.news-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ULTRA-COMPACT NEWS CARD (Even Categories & Standard Feeds) */
.news-card {
  display: flex;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  align-items: center;
}

.news-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.news-card:active {
  transform: scale(0.99);
}

.news-card-img {
  width: 64px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 56px;
  gap: 4px;
}

.news-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.1px;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
}

.bookmark-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0 2px;
}

.bookmark-icon-btn:hover {
  color: var(--accent-orange);
}

.bookmark-icon-btn.saved {
  color: var(--accent-orange);
}

/* Breadcrumb Navigation */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.article-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: var(--transition-fast);
}

.article-breadcrumbs a:hover {
  color: var(--accent-color);
}

.bc-sep {
  color: var(--border-light);
}

.bc-current {
  color: var(--text-muted);
}

/* Previous & Next Article Interlinking Cards */
.article-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.nav-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.nav-link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.nav-link-card.next-card {
  text-align: right;
}

.nav-label {
  font-size: 0.65rem;
  color: var(--accent-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.next-card .nav-label {
  justify-content: flex-end;
}

.nav-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related News Section */
.related-news-section {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

/* Article Detail Page Elements */
.article-header-tag {
  align-self: flex-start;
  display: inline-block;
  background: rgba(0, 122, 255, 0.15);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.article-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.article-body-p {
  font-size: 1rem;
  line-height: 1.7;
  color: #D1D1D6;
  margin-bottom: 16px;
}

/* Standard Static Content Page (Privacy / Terms) */
.static-page-wrapper {
  padding: 24px 20px;
}

.static-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.static-page-updated {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: block;
}

.static-content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
}

.static-content-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.static-content-section p, .static-content-section ul {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #D1D1D6;
}

.static-content-section ul {
  padding-left: 20px;
  margin-top: 8px;
}

.static-content-section li {
  margin-bottom: 6px;
}

/* APP FOOTER COMPONENT */
.app-footer {
  margin-top: 20px;
  padding: 20px 16px 30px 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand h2 {
  font-size: 0.65rem; /* 10px */
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-brand h2 span {
  color: var(--accent-color);
}

.footer-brand p {
  font-size: 0.5rem; /* 8px */
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 500px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.5rem; /* 8px */
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.5rem; /* 8px */
  color: var(--text-muted);
}

/* ALWAYS FIXED APPLE UI FLOATING BLUR FOOTER DOCK */
.apple-footer-dock {
  position: fixed !important;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 540px;
  z-index: 90;
  pointer-events: auto;
}

.dock-container {
  background: var(--glass-dock-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.dock-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  flex: 1;
  text-decoration: none;
}

.dock-icon {
  font-size: 1.3rem;
  transition: var(--transition-fast);
}

.dock-label {
  font-size: 0.68rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.dock-item.active {
  color: var(--accent-color);
}

.dock-item.active .dock-icon {
  transform: translateY(-2px) scale(1.1);
}

.dock-item:active {
  transform: scale(0.9);
}

/* RESPONSIVE BREAKPOINTS (Tablet & Desktop) */
@media (min-width: 640px) {
  .hero-slider-container {
    height: 320px;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .news-items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .news-card-img {
    width: 68px;
    height: 58px;
  }
  .news-card-body {
    min-height: 58px;
  }
  .news-card-title {
    font-size: 0.68rem;
  }
  .netflix-card {
    flex: 0 0 145px;
    width: 145px;
    height: 98px;
  }
  .netflix-card-title {
    font-size: 0.65rem;
  }
}

@media (min-width: 860px) {
  .hero-slider-container {
    height: 360px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .categories-grid {
    gap: 10px;
  }
  .category-card {
    padding: 10px 4px;
    border-radius: var(--radius-sm);
  }
  .category-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .category-name {
    font-size: 0.72rem;
  }
  .news-items-list {
    gap: 12px;
  }
  .news-card-img {
    width: 72px;
    height: 62px;
  }
  .news-card-title {
    font-size: 0.70rem;
  }
  .netflix-card {
    flex: 0 0 160px;
    width: 160px;
    height: 105px;
  }
  .netflix-card-title {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   ANCIENT AZTEC SCROLL MODAL STYLING
   ========================================================================== */
.aztec-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.aztec-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.aztec-scroll-container {
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aztec-overlay.active .aztec-scroll-container {
  transform: scale(1) translateY(0);
}

/* Wooden Rollers Top & Bottom */
.scroll-roller {
  height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.roller-body {
  flex: 1;
  height: 16px;
  background: linear-gradient(180deg, #8B4513 0%, #3D1E0B 50%, #8B4513 100%);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), inset 0 2px 2px rgba(255, 255, 255, 0.2);
  border: 1px solid #2B1507;
}

.roller-cap {
  width: 22px;
  height: 24px;
  background: radial-gradient(circle, #D4AF37 0%, #997A15 70%, #4A3B05 100%);
  border-radius: 50%;
  border: 2px solid #2A1F02;
  box-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* Ancient Aztec Parchment */
.aztec-parchment {
  background: #EEDC9A;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(210, 180, 120, 0.3) 0%, rgba(139, 69, 19, 0.25) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.05) 3px, transparent 4px);
  color: #2C1609;
  border-left: 6px solid #8B4513;
  border-right: 6px solid #8B4513;
  padding: 20px 16px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(74, 37, 10, 0.5), 0 10px 30px rgba(0,0,0,0.8);
  overflow-y: auto;
  max-height: calc(85vh - 48px);
  scrollbar-width: thin;
  scrollbar-color: #8B4513 #EEDC9A;
}

/* Close Button */
.aztec-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #8B4513;
  color: #FBE8A6;
  border: 2px solid #D4AF37;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

.aztec-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

/* Aztec Header Banner */
.aztec-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.aztec-title {
  font-family: 'Inter', serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #4A250A;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.4);
  text-align: center;
}

.aztec-symbol {
  color: #C0392B;
  font-size: 0.9rem;
}

.aztec-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #8B4513 30%, #C0392B 50%, #8B4513 70%, transparent 100%);
  margin: 10px 0 16px 0;
}

/* Category Codex Cards Multi-Column Grid */
.aztec-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 8px;
}

@media (min-width: 480px) {
  .aztec-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 10px;
  }
}

.aztec-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 248, 220, 0.85);
  border: 2px solid #B8860B;
  border-radius: 8px;
  padding: 12px 6px 10px 6px;
  text-decoration: none;
  color: #2C1609;
  box-shadow: 0 3px 6px rgba(74, 37, 10, 0.15);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  min-height: 85px;
}

.aztec-grid-card:hover {
  transform: translateY(-3px);
  background: #FFF8DC;
  border-color: #C0392B;
}

.aztec-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.aztec-cat-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #3B1E0A;
  letter-spacing: 0.2px;
  line-height: 1.15;
  word-break: break-word;
}

.aztec-cat-glyph {
  font-size: 0.55rem;
  font-weight: 700;
  color: #8B4513;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.aztec-footer-glyph {
  margin-top: 18px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #8B4513;
  letter-spacing: 1px;
/* ==========================================================================
   NEWS DETAIL PAGE STYLING
   ========================================================================== */

/* SEO Breadcrumb Navigation */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumbs a:hover {
  color: var(--accent-color);
}

.bc-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.bc-current {
  color: var(--text-muted);
  font-weight: 500;
}

/* Category Badge */
.article-header-tag {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #FFF !important;
  background: var(--accent-gradient);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Hero Title */
.article-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

@media (min-width: 768px) {
  .article-hero-title {
    font-size: 1.85rem;
  }
}

/* Hero Meta (Author & Date) */
.article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-hero-meta i {
  color: var(--accent-color);
}

/* Hero Image */
.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  display: block;
}

/* Article Body Paragraphs */
.article-short-desc {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 12px 16px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-body-p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 18px;
  word-break: break-word;
}

.article-body-p p {
  margin-bottom: 14px;
}

.article-body-p img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

/* Previous / Next Story Cards */
.article-nav-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (min-width: 600px) {
  .article-nav-links {
    grid-template-columns: 1fr 1fr;
  }
}

.nav-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.nav-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.next-card {
  text-align: right;
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.next-card .nav-label {
  justify-content: flex-end;
}

.nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related News Section */
.related-news-section {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* ==========================================================================
   MODERN ARTICLE SOCIAL SHARE BAR
   ========================================================================== */
.article-social-share-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.article-hero-img {
  margin-top: 8px;
  margin-bottom: 20px;
}

.article-social-share-bar:hover {
  border-color: var(--border-active);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.15);
}

.share-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Apple iOS Native Style WhatsApp Button */
#waButton, .btn-success {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background: #25D366 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 14px; /* Classic Apple Squircle */
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

#waButton:hover, .btn-success:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

#waButton:active, .btn-success:active {
  transform: scale(0.96) !important;
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}

.share-label i {
  color: var(--accent-color);
  font-size: 0.95rem;
}



/* Content Protection Styles */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

@media print {
  html, body {
    display: none !important;
  }
}
