/* 🌊 SEA SALT REVERIE BROADCASTING */

body {
  background-color: #0b1320;
  color: #cfefff;
  font-family: "Courier New", monospace;
  margin: 0;
  padding: 0;

  background-image: url("https://www.transparenttextures.com/patterns/asfalt-light.png");
  background: radial-gradient(circle at 50% 20%, #123055, #0b1320 70%);
}

/* MAIN CONTAINER */
.container {
  width: 820px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(10, 20, 35, 0.92);
  border: 2px solid #7fd6ff;
  box-shadow: 0 0 25px rgba(80,180,255,0.4);
}

/* HEADER */
h1 {
  text-align: center;
  color: #aeeaff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0,200,255,0.6);
}

.subtitle {
  text-align: center;
  color: #7ccfff;
  font-size: 14px;
  margin-bottom: 20px;
}

/* MARQUEE */
.marquee {
  background: #08121f;
  border: 1px solid #7fd6ff;
  padding: 8px;
  margin-bottom: 20px;
}

/* SECTIONS */
.section {
  margin-bottom: 25px;
  padding-top: 10px;
  border-top: 1px dashed rgba(127,214,255,0.5);
}

/* LINKS */
a {
  color: #9be7ff;
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 6px #00d0ff;
}
.remote {
  text-align: center;
  margin-top: 10px;
}

.remote a {
  display: inline-block;
  margin: 5px;
  padding: 10px 15px;
  border: 1px solid #7fd6ff;
  background: #08121f;
}

.remote a:hover {
  background: #0c1f33;
}

/* TV BOX */
.tv-box {
  background: black;
  border: 3px solid #7fd6ff;
  padding: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ✅ FIXED STATIC GIF ISSUE */
.tv-box img {
  width: 100%;
  display: block;
}

/* COZY GLOW */
.tv-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,180,255,0.08), transparent 70%);
  pointer-events: none;
}

/* SCANLINES */
.tv-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

/* SCHEDULE TEXT */
pre {
  color: #bfe9ff;
}

/* SIGNAL LOSS EFFECT */
@keyframes flicker {
  0% { opacity: 1; }
  48% { opacity: 1; }
  49% { opacity: 0.4; }
  50% { opacity: 1; }
  90% { opacity: 1; }
  91% { opacity: 0.2; }
  92% { opacity: 1; }
}



.signal-loss {
  animation: flicker 6s infinite;
}

/* WEATHER CHANNEL STYLE */
.weather-box {
  background: #001a2e;
  color: #9be7ff;
  font-size: 14px;
  letter-spacing: 1px;
}

.weather-box img {
  margin: 10px 0;
  border: 1px solid #7fd6ff;
}

/* WEATHER GRID */
.weather-grid {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.weather-left, .weather-right {
  width: 50%;
}

.warning {
  color: #ff9b9b;
  margin-top: 10px;
}

/* GLITCH OVERLAY */
#glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  color: black;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-family: monospace;
  z-index: 999;
}


.emergency-box {
  border: 3px solid red;
  padding: 30px;
  animation: flicker 0.2s infinite;
}

/* 🚨 EMERGENCY ALERT */
#emergency-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: red;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  text-align: center;
}

/* 🌞 DAY MODE */
.day-mode {
  background: radial-gradient(circle at 50% 20%, #123055, #0b1320 70%);
}

/* 🌙 NIGHT MODE */
.night-mode {
  background: radial-gradient(circle at 50% 20%, #05070f, #000000 80%);
}

/* darker TV at night */
.night-mode .tv-box {
  border-color: #4aa3ff;
  box-shadow: 0 0 15px rgba(50,100,255,0.3);
}

/* more aggressive flicker at night */
.night-mode .signal-loss {
  animation: flicker 3s infinite;
}

.tv-box video {
  width: 100%;
  display: block;
  border: 1px solid #7fd6ff;
  margin: 10px 0;
}

/* FOOTER */
.footer {
  text-align: center;
  font-size: 12px;
  color: #6faecf;
  margin-top: 20px;
}