body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh; /* Use small viewport height for better mobile support */
  position: relative;
  overflow-x: hidden;
  background-image: radial-gradient(circle at bottom center, rgba(255, 120, 20, 0.2) 0%, transparent 40%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 10px 0;
  box-sizing: border-box;
}

body.light-theme {
  background-color: #f5f5f5;
  color: #333;
  background-image: radial-gradient(circle at bottom center, rgba(255, 120, 20, 0.1) 0%, transparent 40%);
}

.container {
  background-color: rgba(25, 25, 25, 0.6);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 120, 20, 0.3);
  border: 1px solid rgba(255, 120, 20, 0.2);
  width: 95%;
  max-width: 800px;
  margin: 15px auto;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 40px);
  min-height: calc(100svh - 40px); /* Use small viewport height */
}

body.light-theme .container {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 120, 20, 0.3);
}

.theme-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #FF7814;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  background-color: #FF9D45;
  transform: scale(1.1);
}

/* New style for the clickable title link */
.site-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

h1 {
  text-align: center;
  font-size: 3.5em;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  perspective: 300px;
  transform-style: preserve-3d;
  max-height: 150px;
  overflow: hidden;
  letter-spacing: 12px;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  text-shadow: -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    5px 5px 8px #555,
    7px 7px 10px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(255, 120, 20, 0.5),
    0 0 25px rgba(255, 120, 20, 0.3);
}

h1 .orange-text {
  color: #FF7814;
  margin-right: 10px;
  transform: translateZ(20px);
  text-shadow: 2px 2px 4px rgba(255, 120, 20, 0.5),
    -2px -2px 4px rgba(255, 120, 20, 0.5),
    0 0 10px rgba(255, 120, 20, 0.7);
}

h1 .white-text {
  color: #f0f0f0;
  transform: translateZ(20px);
  text-shadow: 2px 2px 4px rgba(240, 240, 240, 0.5),
    -2px -2px 4px rgba(240, 240, 240, 0.5),
    0 0 10px rgba(240, 240, 240, 0.7);
}

body.light-theme h1 .white-text {
  color: #1a1a1a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 4px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 5px 0;
  }
  
  h1 {
    font-size: 2em;
    letter-spacing: 6px;
    max-height: 100px;
  }

  h1 .orange-text,
  h1 .white-text {
    transform: translateZ(10px);
  }
}

@media (max-width: 480px) {
  body {
    padding: 2px 0;
  }
  
  h1 {
    font-size: 1.5em;
    letter-spacing: 4px;
    max-height: 80px;
  }

  h1 .orange-text,
  h1 .white-text {
    transform: translateZ(5px);
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 1.2em;
    letter-spacing: 2px;
    max-height: 60px;
  }

  h1 .orange-text,
  h1 .white-text {
    transform: translateZ(3px);
  }
}

#datetime {
  text-align: center;
  color: #FF9D45;
  font-size: 0.9em;
  margin-bottom: 5px;
}

/* New styles for navigation bar and dropdowns */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  position: relative;
  z-index: 10;
}

.dropdown {
  position: relative;
  display: inline-block;
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 250px;
}

.nav-button {
  width: 100%;
  text-align: center;
  background-color: #2A2A2A;
  color: #f5f5f5;
  border: 2px solid #FF7814;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.2s ease;
  font-weight: normal;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.light-theme .nav-button {
  background-color: #ffffff;
  color: #333;
  border: 2px solid #FF7814;
}

.nav-button:hover {
  border-color: #FF9D45;
  background-color: #3a3a3a;
  transform: none;
  box-shadow: none;
}

body.light-theme .nav-button:hover {
  background-color: #f8f9fa;
}

.nav-button:active {
  border-color: #FF7814;
  background-color: #2A2A2A;
  transform: none;
  box-shadow: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2A2A2A;
  min-width: 100%;
  width: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 5px 0;
  z-index: 1;
  left: 0;
  transform: none;
  border: 2px solid #FF7814;
  margin-top: 5px;
}

body.light-theme .dropdown-content {
  background-color: #ffffff;
  border: 2px solid #FF7814;
}

.dropdown-content a {
  color: #f5f5f5;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 16px;
  transition: background-color 0.1s ease;
  text-align: center;
}

body.light-theme .dropdown-content a {
  color: #333;
}

body.light-theme .dropdown-content a:hover {
  background-color: #f8f9fa;
  color: #FF9D45;
}

/* Style for the active dropdown */
.dropdown.open .dropdown-content {
  display: block;
}

.search-container {
  margin-bottom: 15px;
  padding: 0;
}

#searchInput {
  width: 100%;
  padding: 10px;
  border: 2px solid #FF7814;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #2A2A2A;
  color: #f5f5f5;
  text-align: center;
}

body.light-theme #searchInput {
  background-color: #ffffff;
  color: #333;
  border: 2px solid #FF7814;
}

#searchInput::placeholder {
  text-align: center;
  color: #aaa;
  opacity: 1;
}

#searchInput:-ms-input-placeholder {
  text-align: center;
  color: #aaa;
}

#searchInput::-ms-input-placeholder {
  text-align: center;
  color: #aaa;
}

#eventList {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.event-card {
  display: flex;
  align-items: center;
  background-color: #333333;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  border: 2px solid #FF7814;
  position: relative;
  overflow: hidden;
}

body.light-theme .event-card {
  background-color: #f8f9fa;
  color: #333;
  transition: all 0.3s ease;
}

.event-card:hover {
  background-color: #3a3a3a;
  border: 2px solid #FF9D45;
  box-shadow: inset 0 0 8px rgba(255, 120, 20, 0.3);
}

body.light-theme .event-card:hover {
  background-color: rgba(255, 120, 20, 0.1); /* Subtle orange tint */
  border: 2px solid #FF9D45; /* Lighter orange border */
  box-shadow: inset 0 0 8px rgba(255, 120, 20, 0.2); /* Slightly less intense orange glow */
  transform: none;
  filter: none;
  z-index: 3;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  min-width: 0;
}

.event-time-badge {
  background-color: #FF7814;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.light-theme .event-time-badge {
  background-color: #FF9D45;
  color: #333;
}

.event-title {
  color: white;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.2em;
  flex-grow: 1;
  min-width: 0;
  white-space: normal;
}

body.light-theme .event-title {
  color: #333;
}

.event-logo {
  width: 50px;
  height: 50px;
  border-radius: 10%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #252525;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 8px;
  border: 2px solid #FF9D45;
}

.event-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.options-container {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 10px 0;
  gap: 8px;
  width: 100%;
}

.event-card.open .options-container {
  display: flex;
}

.option-button {
  background: linear-gradient(45deg, #FF7814, #FF9D45);
  color: white;
  border: 1.5px solid #FF7814;
  flex: 1 1 calc(33.33% - 10px);
  text-align: center;
  font-size: 1em;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 100px;
  box-sizing: border-box;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease, filter 0.3s ease;
  box-shadow:
      0 6px 12px rgba(255,120,20,0.3),
      0 4px 8px rgba(0,0,0,0.2);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-button span.fi {
  margin-right: 5px;
  font-size: 1.2em;
  line-height: 1;
}

/* Style for the question mark icon */
.option-button .question-icon {
  margin-right: 5px;
  font-size: 1.2em;
  line-height: 1;
}

.stream-flag-icon {
  width: 20px;
  height: auto;
  margin-right: 5px;
  border-radius: 3px; /* Optional: slight border-radius for flag images */
}

.option-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.15),
      rgba(0, 0, 0, 0.15));
  border-radius: 6px;
  transform: translateZ(-1px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-button:hover {
  /* Subtle background change, lighter gradient */
  background: linear-gradient(45deg, #FF9D45, #FFB366);
  /* Ensure no expansion */
  transform: none;
  /* Reduced shadow */
  box-shadow:
      0 4px 10px rgba(255,120,20,0.4),
      0 2px 6px rgba(0,0,0,0.2);
  /* Slight filter increase, but less than before */
  filter: brightness(1.1);
  /* Subtler text shadow */
  text-shadow: 0 0 5px rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.5);
}

.option-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255,120,20,0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.option-button:hover::before {
  opacity: 1;
}

.filter-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-button {
  background-color: #444444;
  color: #f0f0f0;
  border: 1px solid #666666;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

body.light-theme .filter-button {
  background-color: #e0e0e0;
  color: #333;
  border: 1px solid #ccc;
}

.filter-button:hover {
  background-color: #FF7814;
  border-color: #FF7814;
  color: white;
}

body.light-theme .filter-button:hover {
  background-color: #FF9D45;
  border-color: #FF9D45;
  color: white;
}

.filter-button.active {
  background-color: #FF7814;
  border-color: #FF7814;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 120, 20, 0.4);
}

body.light-theme .filter-button.active {
  background-color: #FF9D45;
  border-color: #FF9D45;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 120, 20,