body {
  margin: 0;
  padding: 0;
  /* font-family: Tahoma, Arial, Helvetica, sans-serif; */
  font-family: "adobe-garamond-pro", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  
  
  background: linear-gradient(180deg, #bfd6ee 0%, #e9f1f8 140px, #d8e5f2 100%);
  background-attachment: fixed;
  min-height: 100vh;

}

.container {
  width: 980px;
  margin: 0 auto;
}



.header {
    text-align: center;
    line-height: 1;
    margin-bottom: -2px;
}

.header h1 {
  margin-top: auto;
  margin-bottom: 0;
  font-family: "anatol-mn", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 96px;
  color: #0b1e36;
  filter: drop-shadow(0 1px 0 #ffffff) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.header p {
  color: #4b5d73;
  font-size: 18px;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.date-display {
    font-style: italic;
    font-size: 18px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

#current-date {
  color: #2c3e50;
  font-style: italic;
  font-size: 18px;
  text-shadow: 0 1px 0 #ffffff;
}

/* Ticker */ 

.ticker-wrapper {
  display: flex;
  align-items: center;
  background-color: #f8f9f0;
  border-top: 1px solid #d0d7de;
  border-bottom: 1px solid #d0d7de;
  font-size: 11px;
  height: 24px;
  margin-top: 14px;
  position: relative;
  overflow: visible;

  background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 45%, #d8dde4 100%);
  border-top: 1px solid #b4bcc6;
  border-bottom: 1px solid #b4bcc6;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #2b2b2b;


}


.ticker-label {
  font-weight: bold;
  padding: 0 8px;
  line-height: 24px;
  z-index: 2;
  flex-shrink: 0;
  white-space: nowrap;

  background: linear-gradient(
    180deg,
    #f29749 0%,
    #d47322 49%,
    #b0550e 50%,
    #944304 100%
  );
  border: 1px solid #6b2f00;
  border-right: 1px solid #522400;
  color: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  
}

.ticker-content {
  white-space: nowrap;
  overflow: hidden;
  flex: 1;          /* Fills the remaining width next to the label */
  min-width: 0;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 75s linear infinite;
  color: #222222;
  font-weight: 500;
}

.ticker-track:hover {
  animation-play-state: paused; /* Pauses when user hovers */
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- RUNNING KIRBY MASCOT --- */
.running-kirby {
  position: absolute;
  bottom: calc(100% - 3px); /* Feet align with the top border of the ticker */
  left: -50px;               /* Start hidden off the left side */
  right: auto;               /* Resets previous right positioning */
  height: 24px;
  width: auto;
  image-rendering: pixelated;/* Preserves retro pixel edges */
  pointer-events: none;
  z-index: 100;
  display: none;  
}

/* Animation Trigger Class */
.running-kirby.animate-run {
  display: block;
  animation: kirbyRunAcross 30s linear forwards;
}

/* Travel from left to right */
@keyframes kirbyRunAcross {
  0% {
    left: -50px;
  }
  100% {
    left: calc(100% + 50px); /* Runs completely past the right edge */
  }
}

/* navigation bar */

.portal-navbar {
  text-align: center;
  display: flex;
  width: fit-content; 
  margin: 10px auto;
  padding: 4px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #edf2f7 50%, #d8e2ed 100%);
  border: 1px solid #9bb3cc;
  border-radius: 4px;
  box-shadow: 
    inset 0 1px 0 #ffffff,         /* Top inner light reflection */
    0 2px 4px rgba(0, 0, 0, 0.08); /* Soft drop shadow */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;

}

.nav-links li {
  display: inline-block;
}

/* Pipe divider between items */
.nav-links li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #b0c2d4;
  border-right: 1px solid #ffffff; /* 3D engraved groove */
  margin: 0 6px;
  vertical-align: middle;
}

.nav-links a {
  color: #0b3866;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid transparent; /* Reserves space so text doesn't shift on hover */
  text-shadow: 0 1px 0 #ffffff;
}

.nav-links a:hover {
    color: #002244;
  background: linear-gradient(180deg, #b8d0e8 0%, #dce7f3 100%); /* Darker top simulates shadow */
  border: 1px solid #7a98b8;
  border-top-color: #577696;                                      /* Darker top border */
  border-left-color: #577696;                                     /* Darker left border */
  border-bottom-color: #cde0f2;
  border-right-color: #cde0f2;
  box-shadow: 
    inset 1px 1px 2px rgba(0, 0, 0, 0.3),                        /* Inner depth shadow */
    inset -1px -1px 0 rgba(255, 255, 255, 0.6);                  /* Bottom-right rim light */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Active / Pressed Tab State */
.nav-links a.active {
    color: #002244;
  background: linear-gradient(180deg, #b8d0e8 0%, #dce7f3 100%); /* Darker top simulates shadow */
  border: 1px solid #7a98b8;
  border-top-color: #577696;                                      /* Darker top border */
  border-left-color: #577696;                                     /* Darker left border */
  border-bottom-color: #cde0f2;
  border-right-color: #cde0f2;
  box-shadow: 
    inset 1px 1px 2px rgba(0, 0, 0, 0.3),                        /* Inner depth shadow */
    inset -1px -1px 0 rgba(255, 255, 255, 0.6);                  /* Bottom-right rim light */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Ensure the parent is relative */
.header-wrapper {
  position: relative;
}

.weather-box {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 11px;

  padding: 4px 8px;
  display: flex;
  gap: 6px;
  align-items: center;

  background: linear-gradient(180deg, #ffffff 0%, #e6f0fa 45%, #cde2f8 100%);
  border: 1px solid #7ea3c8;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #1a3d66;
}

.weather-box #weather-temp {
  font-weight: bold;
  color: #004b97;
  text-shadow: 0 1px 0 #ffffff
}

/* Time */

.time-box {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 11px;
  padding: 4px 8px;
  font-weight: bold;

  background: linear-gradient(180deg, #ffffff 0%, #e6f0fa 45%, #cde2f8 100%);
  border: 1px solid #7ea3c8;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #1a3d66;
}

.time-box span {
    text-shadow: 0 1px 0 #ffffff
}

/* Search Bar */ 

.search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}


/* Search Form Row */
.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Text Input with Inset 2000s Border */
.search-input {
  width: 380px;
  height: 24px;
  padding: 2px 6px;
  font-size: 13px;
  border: 1px solid #7f9db9; 
  border-radius: 2px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
  outline: none;
}

.search-input:focus {
  border-color: #004b97;
}

/* Glossy 2000s Action Button (MSN Green/Blue Accent) */
.search-button {
  height: 28px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, #8bc63e 0%, #68a324 49%, #548b17 50%, #609d1d 100%);
  border: 1px solid #3d6a0e;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.search-button:hover {
  background: linear-gradient(180deg, #9cd948 0%, #76b52b 49%, #609c1c 50%, #6fb123 100%);
}

.search-button:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- RETRO JUKEBOX AUDIO PLAYER --- */
.jukebox-player {
  max-width: 980px;
  margin: 0 auto 20px auto;
  background: linear-gradient(180deg, #f0f4f8 0%, #d5e1ec 100%);
  border: 1px solid #7ea3c8;
  border-radius: 4px;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 2px 5px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

#yt-audio-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  visibility: hidden;
}

.jukebox-header {
  background: linear-gradient(180deg, #ffffff 0%, #e2ecf7 50%, #cadbf0 100%);
  border-bottom: 1px solid #9bb3cc;
  padding: 4px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: bold;
  color: #0b3866;
  text-shadow: 0 1px 0 #ffffff;
}

.jukebox-status-led {
  font-family: monospace;
  font-size: 9px;
  padding: 1px 6px;
  background: #2b333a;
  color: #a0aec0;
  border-radius: 2px;
  border: 1px solid #1a202c;
}

.jukebox-status-led.playing {
  background: #064e3b;
  color: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.jukebox-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

/* Green LCD Screen */
.jukebox-lcd {
  flex: 1;
  background: #09170e;
  border: 2px solid #3d4f58;
  border-radius: 3px;
  padding: 4px 8px;
  box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lcd-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Pixel-Perfect LCD Visualizer Container */
.lcd-visualizer-box {
  width: 100%;
  height: 34px;
  margin: 4px 0;
  background: #030a05;
  border: 1px solid #112916;
  border-radius: 2px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  display: flex;
  align-items: center;
}

#jukebox-waveform {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.lcd-track-window {
  overflow: hidden;
  white-space: nowrap;
}

.lcd-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  color: #49e875;
  text-shadow: 0 0 4px rgba(73, 232, 117, 0.7);
  letter-spacing: 0.5px;
}

.lcd-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 9px;
  color: #279446;
}

.lcd-badge {
  background: rgba(39, 148, 70, 0.15);
  padding: 0 4px;
  border-radius: 2px;
}

.lcd-timer {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  color: #49e875;
  text-shadow: 0 0 4px rgba(73, 232, 117, 0.7);
  letter-spacing: 0.5px;
}

/* Jukebox Controls */
.jukebox-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-btn {
  height: 28px;
  min-width: 30px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: bold;
  color: #1a3d66;
  background: linear-gradient(180deg, #ffffff 0%, #edf2f7 50%, #d8e2ed 100%);
  border: 1px solid #7ea3c8;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 #ffffff;
}

.player-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border-color: #577696;
}

.player-btn:active {
  background: linear-gradient(180deg, #b8d0e8 0%, #dce7f3 100%);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.player-btn.play-btn {
  color: #006020;
}

/* Volume Slider */
.jukebox-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: bold;
  color: #1a3d66;
}

.retro-slider {
  width: 75px;
  height: 6px;
  cursor: pointer;
  accent-color: #0066cc;
}


/* Portal Grid */ 

*, *::before, *::after {
  box-sizing: border-box;
}

/* --- 3-COLUMN GRID CONTAINER --- */

.portal-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  gap: 16px;
  max-width: 980px;           /* Changed from 1100px to match .container */
  width: 100%;
  margin: 15px auto 40px auto;
  padding: 0;                 /* Zero out padding so outer borders align cleanly */
  font-family: Arial, Helvetica, sans-serif;
  align-items: start;
}

/* --- REUSABLE PORTAL BOX --- */

.portal-box {
  background: #ffffff;
  border: 1px solid #9bb3cc;
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(0, 0, 0, 0.07);
  overflow: hidden;           /* Cleanly trims inner headers flush to box borders */
}

.box-header {
  background: linear-gradient(180deg, #ffffff 0%, #edf2f7 50%, #d8e2ed 100%);
  border-bottom: 1px solid #9bb3cc;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: bold;
  color: #0b3866;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow: inset 0 1px 0 #ffffff;
}

.header-action {
  color: #005fa3;
  text-decoration: none;
  font-weight: bold;
  font-size: 10px;
  text-shadow: 0 1px 0 #ffffff;
}

.header-action:hover {
  text-decoration: underline;
  color: #d83b01;
}
/* --- LEFT COLUMN LINKS --- */
.portal-link-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.portal-link-list li {
  padding: 3px 8px;
}

.portal-link-list li:hover {
  background-color: #eef4fa;
}

.portal-link-list a {
  color: #004b97;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-link-list a:hover {
  text-decoration: underline;
  color: #d83b01;
}

.portal-link-list .icon {
  font-size: 11px;
  width: 16px;
  text-align: center;
}

.categories-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #edf6fd 50%, #d6ebfa 100%);
  border-bottom: 1px solid #94c4e7;
  color: #0c4a6e;
}
.categories-box .header-action { color: #0284c7; }


/* --- CENTER FEATURED STORY --- */

.featured-story {
  height: auto;
  display: block;
}

.featured-media-box {
  width: 170px;
  height: 110px;
  flex-shrink: 0;
  position: relative;
  background: #09121d;
  border: 1px solid #7a92a7;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.featured-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.feature-headline-banner {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fc 50%, #dbe7f7 100%);
  border-bottom: 1px solid #97b8e3;
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.feature-headline-banner h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.feature-headline-banner a {
  color: #1e3a8a;
  text-decoration: none;
  text-shadow: 0 1px 0 #ffffff;
}

.feature-headline-banner a:hover {
  text-decoration: underline;
  color: #004b97;
}

.feature-body {
  display: flex;
  gap: 12px;
  padding: 6px 10px 10px 10px;
}

.feature-preview-container {
  width: 170px;
  height: 110px;
  background: #111111;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #7994a6;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-fallback-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2f44 0%, #0b1522 100%);
  font-size: 32px;
}

.media-badge {
  background: #d83b01;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}



.feature-text p {
  font-size: 12px;
  margin: 0 0 6px 0;
  color: #333333;
  line-height: 1.35;
}

.sub-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-links li a {
  font-size: 11px;
  color: #004b97;
  text-decoration: none;
}

.sub-links li a:hover {
  text-decoration: underline;
}

/* Yahoo-Style 4-Tab Bar Under Feature */

.story-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #edf2f7 0%, #d8e2ed 100%);
  border-top: 1px solid #9bb3cc;
}

.story-tab {
  padding: 6px 4px;
  font-size: 10px;
  font-weight: bold;
  color: #0b3866;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #9bb3cc;
  border-left: 1px solid #ffffff; /* 3D engraved divider effect */
  text-shadow: 0 1px 0 #ffffff;
}

.story-tab:first-child {
  border-left: none;
}

.story-tab:last-child {
  border-right: none;
}

.story-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2ecf7 100%);
}

/* Sunken / Inset State */
.story-tab.active {
  background: linear-gradient(180deg, #b8d0e8 0%, #dce7f3 100%);
  box-shadow: 
    inset 1px 1px 2px rgba(0, 0, 0, 0.25),
    inset -1px -1px 0 rgba(255, 255, 255, 0.6);
  color: #002244;
  border-top: 2px solid #577696;
  padding-top: 4px;
}

/* --- TELLENOUS DISPATCHES & NEWS --- */
.dispatches-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dispatch-item {
  font-size: 11px;
  line-height: 1.45;
  padding: 5px 0;
  border-bottom: 1px dotted #d0d7de;
  color: #222222;
}

.dispatch-item:last-child {
  border-bottom: none;
}

.dispatch-date {
  font-weight: bold;
  color: #556b82;
  margin-right: 6px;
  margin-left: 12px;
}

.dispatch-tag {
  font-size: 9px;
  font-weight: bold;
  color: #0b4f8a;
  background: #e2edf8;
  border: 1px solid #bed6ee;
  padding: 0 4px;
  border-radius: 2px;
  margin-right: 4px;
  text-transform: uppercase;
}

.dispatch-text {
  color: #111111;
}



/* --- RIGHT COLUMN MEDIA & POSTER --- */
.cover-image-wrapper {
  padding: 6px;
  background: #111111;
  text-align: center;
}

.cover-art {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #333333;
}

.box-footer-caption {
  font-size: 11px;
  color: #444444;
  padding: 6px 8px;
  background: #f7f9fb;
  border-top: 1px solid #d4dfec;
}

.cover-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4ff 50%, #e1e1fe 100%);
  border-bottom: 1px solid #aeb2ea;
  color: #312e81;
}

.photo-placeholder {
  padding: 8px;
}

.mock-photo {
  height: 120px;
  background: linear-gradient(180deg, #d6e2ee 0%, #abc1d6 100%);
  border: 1px solid #8fa9c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #23486e;
}

.photo-caption {
  font-size: 11px;
  color: #555555;
  margin: 0;
  padding: 0 8px 8px 8px;
}

.photo-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 50%, #fce7f3 100%);
  border-bottom: 1px solid #f3a8cb;
  color: #831843;
}

/* --- LEFT COLUMN SPONSOR BOX --- */
.sponsor-box {
  text-align: center;
}

.sponsor-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #fef8ee 50%, #fdeacc 100%);
  border-bottom: 1px solid #e2c088;
  color: #7c2d12;
}

.sponsor-box .header-action {
  color: #8a3800;
  font-size: 9px;
  font-weight: bold;
  background: #fae4c9;
  border: 1px solid #dfba92;
  padding: 0 4px;
  border-radius: 2px;
  text-decoration: none;
}

.sponsor-content {
  padding: 12px 8px 10px 8px;
  background: linear-gradient(180deg, #d6e2ee 0%, #abc1d6 100%);
}

.sponsor-link {
  display: block;
  text-decoration: none;
}

.sponsor-banner {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
  border: none;
  box-shadow: none;
  image-rendering: pixelated; /* Keeps retro GIF edges sharp */
}

.sponsor-tagline {
  font-size: 11px;
  color: #1a3d66;
  display: block;
  line-height: 1.35;
  margin-top: 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sponsor-link:hover .sponsor-tagline {
  color: #d83b01;
  text-decoration: underline;
}


/* --- MARKET INDICES MODULE --- */
.market-box {
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 12px;
}

.market-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #effaf3 50%, #daf2e3 100%);
  border-bottom: 1px solid #9ecead;
  color: #115329;
}

.market-status {
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #9bb3cc;
  box-shadow: inset 0 1px 0 #ffffff;
  text-shadow: 0 1px 0 #ffffff;
}

.market-rows {
  padding: 4px 6px;
  background: #ffffff;
}

.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
  font-size: 11px;
}

.market-row:not(:last-child) {
  border-bottom: 1px dotted #d0d7de;
}

.ticker-symbol {
  font-weight: bold;
  color: #1a3d66;
  width: 55px;
}

.ticker-price {
  color: #333333;
  font-variant-numeric: tabular-nums;
}

.ticker-pct {
  font-size: 10px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  width: 55px;
  text-align: right;
}


.ticker-pct.up {
  color: #008000;
}

.ticker-pct.down {
  color: #cc0000;
} 

/* --- CENTER COLUMN SLINGO MODULE --- */
.slingo-feature-box {
  margin-top: 14px;
}

.slingo-feature-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #fff4ed 50%, #feddca 100%);
  border-bottom: 1px solid #f3aa82;
  color: #9a3412;
}

.slingo-feature-box .header-action { color: #c2410c; }


.slingo-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.slingo-link {
  flex-shrink: 0;
  display: inline-block;
  text-decoration: none;
}

.slingo-banner {
  height: 55px;
  width: auto;
  display: block;
  image-rendering: pixelated; 
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.slingo-details {
  flex-grow: 1;
}

.slingo-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: bold;
}

.slingo-title a {
  color: #b52b00; 
  text-decoration: none;
}

.slingo-title a:hover {
  text-decoration: underline;
}

.slingo-desc {
  margin: 0 0 8px 0;
  font-size: 11px;
  color: #444444;
  line-height: 1.35;
}

/* 2000s Glossy Action Button */
.play-btn {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(180deg, #e8630a 0%, #c43800 100%);
  border: 1px solid #852600;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.play-btn:hover {
  background: linear-gradient(180deg, #f77319 0%, #d43e02 100%);
}

.play-btn:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
} 

/* --- MONEY CAT WIDGET EXTENSION --- */
.money-cat-section {
  background: linear-gradient(180deg, #fdfefe 0%, #edf2f7 100%);
  border-top: 1px solid #9bb3cc;
  box-shadow: inset 0 1px 0 #ffffff;
  padding: 6px;
  text-align: center;
}

.money-cat-header {
  font-size: 9px;
  font-weight: bold;
  color: #4a637d;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.money-cat-img-wrapper {
  width: 100%;
  height: 125px;
  overflow: hidden;
  border: 1px solid #8fa9c2;
  background: #000;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.money-cat-details {
  margin-top: 5px;
}

.money-cat-status {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 2px;
}

/* Happy / Bullish State */
.money-cat-status.happy {
  color: #006020;
  background: #e6f4ea;
  border: 1px solid #a3d9b1;
}

/* Angry / Bearish State */
.money-cat-status.angry {
  color: #990000;
  background: #fee;
  border: 1px solid #f5baba;
}

.money-cat-trend {
  font-size: 10px;
  color: #555555;
  display: block;
}

.bookmark-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  image-rendering: pixelated; /* Keeps retro low-res icons crisp */
}


/* --- LOGO & SIDE GIF CONTAINER --- */
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;                  /* Space between title and GIF */
  margin-top: 10px;
}

.portal-logo {
  margin: 0;
  line-height: 1;
  /* Retain your existing font / styling */
}

.title-badge-gif {
  height: 72px;               /* Adjust height to match logo scale */
  width: auto;
  display: inline-block;
  image-rendering: pixelated; 
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.portal-date {
  text-align: center;
  font-style: italic;
  font-size: 13px;
  color: #333333;
  margin-top: 6px;
  text-shadow: 0 1px 0 #ffffff;
}

/* --- 1. WEBSITE NEWS --- */
.site-news-list {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  font-size: 11px;
}

.site-news-list li {
  padding: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px dotted #e1e8f0;
}

.site-news-list li:last-child {
  border-bottom: none;
}

.news-date {
  color: #777777;
  font-family: monospace;
  font-size: 10px;
}

.news-tag {
  font-size: 9px;
  font-weight: bold;
  padding: 1px 3px;
  border-radius: 2px;
}

.news-tag.dev { background: #e0f2fe; color: #0369a1; }
.news-tag.net { background: #fef3c7; color: #92400e; }
.news-tag.fix { background: #dcfce7; color: #15803d; }

.site-news-list a {
  color: #0b3866;
  text-decoration: none;
}

.site-news-list a:hover {
  text-decoration: underline;
  color: #d83b01;
}

.site-news-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  border-bottom: 1px solid #94a3b8;
  color: #1e293b;
}
.site-news-box .header-action { color: #475569; }


/* --- 2. COMPUTER SLIDESHOW --- */
.slideshow-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.mini-btn {
  background: linear-gradient(180deg, #ffffff 0%, #edf2f7 50%, #d8e2ed 100%);
  border: 1px solid #8fa9c2;
  border-radius: 3px;
  color: #0b3866;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 0 #ffffff;
  cursor: pointer;
}

.mini-btn:hover { 
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border-color: #6b8ea8;
}
.mini-btn:active { 
  background: linear-gradient(180deg, #b8d0e8 0%, #dce7f3 100%);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
 }

.vpc-body {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #fdfdfd;
}

.vpc-img-wrapper {
  width: 150px;
  height: 100px;
  background: #000000;
  border: 1px solid #7c98b6;
  flex-shrink: 0;
  overflow: hidden;
}

.vpc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vpc-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #003399;
}

.vpc-details {
  margin: 0 0 6px 0;
  font-size: 11px;
  color: #444444;
  line-height: 1.35;
}

.vpc-specs {
  font-size: 10px;
  font-family: monospace;
  background: #edf2f7;
  border: 1px solid #c8d6e5;
  padding: 2px 6px;
  display: inline-block;
  color: #1e3a5f;
}

/* .vintage-pc-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8f4ff 50%, #eee4ff 100%);
  border-bottom: 1px solid #c5abed;
  color: #581c87;
} */

/* --- 3. MOVIE STILL OF THE WEEK --- */
.movie-body {
  padding: 8px 10px;
}

.movie-still-frame {
  position: relative;
  width: 100%;
  height: 140px;
  background: #000000;
  border: 1px solid #444444;
  overflow: hidden;
}

.movie-still-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.film-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffcc00;
  border: 1px solid #ffcc00;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  letter-spacing: 0.5px;
}

.movie-info {
  margin-top: 6px;
  font-size: 11px;
  color: #333333;
}

.movie-headline {
  color: #1a3d66;
  margin-bottom: 2px;
}

.movie-caption {
  margin: 0;
  color: #555555;
  font-style: italic;
  line-height: 1.3;
}

.movie-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #f9f7f2 50%, #ede8dc 100%);
  border-bottom: 1px solid #c8c0ae;
  color: #443c2c;
}
.movie-box .header-action { color: #695e49; }

/* --- 4. WIKIPEDIA RANDOM DISCOVERY --- */
.wiki-refresh-link {
  background: none;
  border: none;
  color: #004b97;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.wiki-refresh-link:hover {
  text-decoration: underline;
  color: #d83b01;
}

.wiki-body {
  padding: 8px 10px;
  background: #ffffff;
}

.wiki-title {
  margin: 0 0 4px 0;
  font-size: 12px;
}

.wiki-title a {
  color: #003399;
  text-decoration: none;
}

.wiki-title a:hover {
  text-decoration: underline;
}

.wiki-snippet {
  margin: 0;
  font-size: 11px;
  color: #444444;
  line-height: 1.35;
}

wiki-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf9 50%, #d5f7ed 100%);
  border-bottom: 1px solid #8bdac6;
  color: #134e48;
}
.wiki-box .wiki-refresh-link { color: #0f766e; }

/* --- CLICKBAIT SECRET AD BOX --- */
.clickbait-ad-box {
  border: 1px dashed #d97706; /* Dashed border gives it a distinct promotional look */
  background: #fffdf5;
  margin-top: 12px;
  text-align: center;
}

.clickbait-ad-box .box-header {
  background: linear-gradient(180deg, #ffffff 0%, #fff2f0 50%, #fedcd6 100%);
  border-bottom: 1px solid #f2a89d;
  color: #881337;
}


.clickbait-content {
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

.secret-ad-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.secret-ad-link:hover {
  border-color: #0000ee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.clickbait-img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* --- MOVIE STILL OF THE WEEK --- */
.movie-still-box {
  background: #ffffff;
  border: 1px solid #9bb3cc;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.movie-still-content {
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.still-frame {
  position: relative;
  width: 100%;
  background: #000000;
  border: 1px solid #7a92a7;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.1);
  display: block;
}

.still-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.still-frame:hover .still-img {
  filter: brightness(1.05);
}

.still-corner-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #7dd3fc;
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.still-details {
  padding: 6px 2px 2px 2px;
}

.still-title-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 1px;
}

.film-title {
  font-size: 12px;
  font-weight: bold;
  color: #0b3866;
  font-family: Arial, Helvetica, sans-serif;
}

.film-year {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
}

.film-meta {
  font-size: 10px;
  color: #8a3800;
  font-weight: bold;
  margin-bottom: 4px;
}

.still-caption {
  font-size: 11px;
  color: #334155;
  line-height: 1.35;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* --- IMAGE OF THE DAY --- */
.image-day-box {
  background: #ffffff;
  border: 1px solid #9bb3cc;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.image-day-content {
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.image-day-frame {
  position: relative;
  width: 100%;
  background: #09121d;
  border: 1px solid #7a92a7;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.1);
  display: block;
}

.image-day-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: filter 0.15s ease;
}

.image-day-frame:hover .image-day-img {
  filter: brightness(1.04);
}