* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#audio-player {
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
}

#status {
  color: white;
  font-size: 10px;
  margin-top: 3px;
  text-align: center;
  min-height: 14px;"0
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.mobile-only-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.station-sub-label {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.02em;
}

.control-section {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #6ba3d4 0%, #5a94c2 100%);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  overflow-y: auto;
}

.image-section {
  background: linear-gradient(135deg, #6ba3d4 0%, #5a94c2 100%);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  overflow-y: auto;
}
.page-section {
  background: linear-gradient(135deg, #6ba3d4 0%, #5a94c2 100%);
  padding: 15px;
  display: flex;
  flex: 1;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  overflow-y: auto;
}

.stations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.station-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: opacity 0.2s;
}

.station-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.station-btn:not(:disabled):hover {
  opacity: 0.8;
}

.station-circle {
  width: 160px;
  height: 60px;
  border-radius: 8px;
  background: rgba(100, 150, 220, 0.9);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.station-btn.is-active .station-circle {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
}

.station-label {
  font-size: 10px;
  color: white;
  text-align: center;
  line-height: 1.2;
}

.station-freq {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

.player-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .image-frame {
    width: 100%;
  }

  .menu-toggle {
    top: 104px;
    left: 28px;
  }

  body.is-iphone .menu-toggle {
    top: 104px;
    left: 28px;
  }

  body.is-android .menu-toggle {
    top: 116px;
    left: 14px;
  }

  .menu-panel {
    top: 24px;
    left: 10px;
    width: min(300px, calc(100% - 20px));
    max-height: calc(100% - 34px);
  }

  .mobile-only-link {
    color: #d9efff;
    text-decoration: underline;
    pointer-events: auto;
  }

  .image-section {
    flex: 0 0 68%;
  }

  .mary-image {
    object-fit: contain;
    padding-bottom: 0;
  }

  .control-section {
    flex: 0 0 32%;
    padding: 8px 10px 8px;
    gap: 6px;
  }

  .stations-grid {
    gap: 8px;
    max-width: 360px;
  }

  .station-btn {
    gap: 4px;
  }

  .station-circle {
    width: 150px;
    height: 52px;
    font-size: 11px;
  }

  .station-label {
    font-size: 9px;
    line-height: 1.1;
  }

  .station-sub-label {
    font-size: 7px;
  }

  .player-section {
    margin-top: 4px;
  }

  #audio-player {
    max-width: 260px !important;
  }
}


    /* The update banner styling */
    .update-banner {
      position: fixed;
      bottom: -200px; /* Hidden off-screen by default */
      left: 50%;
      transform: translateX(-50%);
      background-color: #1e1e24;
      color: #ffffff;
      padding: 16px 16px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      display: flex;
      align-items: center;
      gap: 16px;
      z-index: 1000;
      transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 90%;          /* Occupies 90% of mobile screens */
  max-width: 480px;    /* Prevents it from getting too stretched out on desktop */
  box-sizing: border-box; /* Ensures padding doesn't break the 90% layout width */
    }

    /* Active class to slide the banner up */
    .update-banner.show {
      bottom: 24px;
    }

    .update-banner p {
      margin: 0;
      font-size: 14px;
    }

    .update-btn {
      background-color: #3b82f6;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
      transition: background 0.2s;
    }

    .update-btn:hover {
      background-color: #2563eb;
    }

    .close-btn {
      background: none;
      border: none;
      color: #9ca3af;
      cursor: pointer;
      font-size: 18px;
      padding: 0 4px;
    }

    .close-btn:hover {
      color: white;
    }
