:root {
  --neon-green: #39ff14;
  --crt-bg: #0a0f0d;
  --ui-amber: #ffb000;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--crt-bg);
  
  /* 📱 MOBILE FIRST: Default to portrait wallpaper */
  background-image: url('../images/wallpaper9_16.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  color: var(--neon-green);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  box-sizing: border-box;
}

/* 🖥️ DESKTOP ENHANCEMENT: Switch to landscape wallpaper on wide screens */
@media (min-width: 768px) and (orientation: landscape) {
  body {
    background-image: url('../images/wallpaper16_9.png');
  }
}

/* CRT Scanline Effect Overlay */
.crt-overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 0; 
  height: 0;
  background: none; /* Removes the scanlines and color tints */
  z-index: -1;
  pointer-events: none;
}

/* This can stay empty now since the background is gone */
.crt-overlay.no-overlay {
  opacity: 1;
}

/* Dashboard Grid Layout */
.dashboard {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 15px;
  box-sizing: border-box;
  gap: 10px;
}

header {
  /* Add a solid dark backing bar across the header */
  background: rgba(10, 15, 13, 0.85);
  border: 2px solid var(--neon-green); /* Box it in to make it look clean */
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 0 10px var(--neon-green);
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.live-indicator {
  color: red;
  animation: blink 1.8s infinite;
  font-size: 1.5rem;
}

/* Main Display Screen */
.main-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: all 0.5s ease-in-out;
  overflow-y: auto; /* Fallback safety if text is massive on tiny screens */
  width: 100%;
  box-sizing: border-box;
}

.content-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  border: 3px solid var(--neon-green);
  color: var(--neon-green);
  margin-bottom: 15px;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.95);
  padding: 10px 20px;
}

.content-title {
  font-size: 2.2rem;
  margin: 0 0 15px 0;
  text-shadow: 0 0 15px var(--neon-green);
  word-wrap: break-word;
  max-width: 100%;
  
  /* Solid black bar behind just the title */
  background: rgba(0, 0, 0, 0.95);
  padding: 10px 20px;
  border: 3px solid var(--neon-green); /* Cool terminal accent line */
}

.content-body {
  font-size: 1.2rem;
  max-width: 100%;
  line-height: 1.5;
  margin: 0;
  
  /* Solid black bar behind the body description text */
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 20px;
  border: 3px solid var(--neon-green); /* Amber accent line to match the tags */
  margin-top: 10px;
}

.slide-image {
  max-height: 35vh; /* Scales image beautifully relative to screen height */
  max-width: 100%;
  object-fit: contain;
  border: 3px solid var(--neon-green);
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.video-container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9; /* Modern responsive aspect ratio tracking */
}

iframe {
  width: 100%;
  height: 100%;
  border: 3px solid var(--neon-green);
}

.audio-control {
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 5px 10px;
  font-family: monospace;
  cursor: pointer;
  text-shadow: 0 0 5px var(--neon-green);
  font-size: 0.9rem;
}

.audio-control:hover {
  background: var(--neon-green);
  color: var(--crt-bg);
}

footer {
  /* Add a matching solid dark backing bar across the footer */
  background: rgba(10, 15, 13, 0.85);
  border: 1px solid var(--neon-green);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 📱 Desktop Enhancements (Media Query) */
@media (min-width: 768px) {
  .dashboard {
    padding: 20px;
  }
  .content-title {
    font-size: 3.5rem;
    max-width: 850px;
  }
  .content-body {
    font-size: 1.6rem;
    max-width: 850px;
  }
  .slide-image {
    max-height: 40vh;
  }
  .video-container {
    width: 700px;
    height: 394px;
  }
}
