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

body {
  background: #fff;
  color: #2b0f54;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Header Styles */
#main-header {
  background: #ffda45;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.header-logo {
  max-height: 6rem;
  width: auto;
}

#header-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #2b0f54;
  letter-spacing: 0.01em;
}

#lang-switcher {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  padding: 0.18rem 0.18rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  gap: 0.2rem;
}

#lang-switcher button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  background: none;
  color: #2b0f54;
  border: none;
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
  outline: none;
}

#lang-switcher button.active,
#lang-switcher button[style*='background: #e23d96'] {
  background: #e23d96 !important;
  color: #fff !important;
}

#lang-switcher button:focus {
  box-shadow: 0 0 0 2px #ffda45;
}

#schedule-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h2 {
  color: #2b0f54;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Removed hover effects */

/* Tag styles */
span[style*='background: #e23d96'] {
  background: #e23d96 !important;
  color: #fff !important;
}
span[style*='background: #ffda45'] {
  background: #ffda45 !important;
  color: #2b0f54 !important;
}

/* Canceled event fallback */
#schedule-container > div > div[style*='opacity: 0.5'] {
  background: rgba(226,61,150,0.3) !important;
  color: #e23d96 !important;
}

/* --- MOBILE LAYOUT IMPROVEMENTS --- */
@media (max-width: 600px) {
  #main-header {
    padding: 1rem;
  }

  .header-container {
    gap: 1rem;
  }

  .header-content {
    margin-top: 0;
  }

  .header-logo {
    height: 60px;
  }

  #header-title {
    font-size: 1.5rem;
  }

  #lang-switcher-anchor {
    position: static !important;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }

  #lang-switcher {
    margin: 0 auto;
  }

  #lang-switcher button {
    font-size: 0.98rem;
    padding: 0.32rem 0.7rem;
  }

  #schedule-container {
    padding: 0 0.2rem;
  }
  h2 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
  }
  #schedule-container > div > div {
    padding: 0.7rem 0.7rem !important;
    border-radius: 8px !important;
    margin-bottom: 0.7rem !important;
    padding-left: 64px !important;
  }
  .event-sidebar {
    width: 51px !important;
    min-width: 51px !important;
    max-width: 51px !important;
    padding-top: 8px !important;
  }
  .event-sidebar-label {
    font-size: 0.85rem !important;
    margin-top: 4px !important;
  }
  .event-sidebar-label > div {
    gap: 0.1rem !important;
  }
  .event-sidebar-label span:last-child {
    font-size: 0.75rem !important;
  }
  /* Title row: stack vertically */
  #schedule-container .event-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem;
  }
  #schedule-container .event-time {
    font-size: 0.98rem !important;
    margin-bottom: 0.1rem !important;
    margin-right: 0 !important;
    display: block !important;
  }
  #schedule-container .event-name {
    font-size: 1rem !important;
    margin-bottom: 0.1rem !important;
    margin-right: 0 !important;
    display: block !important;
  }
  #schedule-container .event-badges {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.1rem;
  }
  #schedule-container .event-triangle {
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
  }
  #schedule-container .event-meta, #schedule-container .event-desc {
    font-size: 0.95rem !important;
  }
  #main-header img {
    max-height: 4rem !important;
  }
  #main-header span {
    font-size: 1.1rem !important;
  }
}