body {
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: #1a1a2e;
  color: #a0a0b0;
  min-height: 100vh;
}

a {
  color: #e25440;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff6b5b;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-header {
  text-align: center;
  padding: 50px 20px 40px;
}

.page-title {
  font-family: "Roboto Slab", serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: #ffffff;
  margin: 0 0 12px;
}

.page-subtitle {
  font-size: 1rem;
  color: #8a8a9a;
  margin: 0;
}

.map-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 10px auto;
}

#map {
  height: 600px;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  overflow: hidden;
}

.map-mode-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  background: #16162a;
  border: 1px solid #2a2a40;
  border-radius: 6px;
  overflow: hidden;
}

.map-mode-btn {
  background: transparent;
  color: #a0a0b0;
  border: none;
  border-right: 1px solid #2a2a40;
  padding: 8px 14px;
  font-family: "Raleway", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.map-mode-btn:last-child {
  border-right: none;
}

.map-mode-btn:hover {
  background: #1f1f35;
  color: #e25440;
}

.map-mode-btn.active {
  background: #e25440;
  color: #fff;
}

.map-marker {
  background: linear-gradient(135deg, #e25440, #ff6b5b);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(226, 84, 64, 0.5);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 20px rgba(226, 84, 64, 0.7);
}

.map-pin {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #e25440, #ff6b5b);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(226, 84, 64, 0.5);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-pin:hover {
  transform: scale(1.4);
  box-shadow: 0 4px 20px rgba(226, 84, 64, 0.7);
}

.map-pin.pulsing {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #5ba4e5, #7bbcff);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(91, 164, 229, 0.8);
  animation: pulse-ring 2s ease-out infinite;
  z-index: 9999;
  position: relative;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 164, 229, 0.6), 0 2px 12px rgba(91, 164, 229, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(91, 164, 229, 0), 0 2px 12px rgba(91, 164, 229, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 164, 229, 0), 0 2px 12px rgba(91, 164, 229, 0.6);
  }
}

.cluster-marker {
  background: #1a1a2e;
  color: #e25440;
  border: 2px solid #e25440;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 14px rgba(226, 84, 64, 0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cluster-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(226, 84, 64, 0.6);
}

.iw {
  max-width: 280px;
  font-family: "Raleway", sans-serif;
}

.iw-place {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 14px;
  color: #e25440;
  margin-bottom: 2px;
}

.iw-location {
  font-size: 12px;
  color: #8a8a9a;
  margin-bottom: 10px;
}

.iw-talks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iw-talks li {
  padding: 8px 0;
  border-top: 1px solid #2a2a40;
}

.iw-talks li:first-child {
  border-top: none;
  padding-top: 0;
}

.iw-talk {
  font-weight: 600;
  font-size: 13px;
  color: #d0d0e0;
  margin-bottom: 2px;
}

.iw-meta {
  font-size: 11px;
  color: #8a8a9a;
}

.gm-style .gm-style-iw-c {
  background: #16162a !important;
  border: 1px solid #2a2a40 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6) !important;
  padding: 12px !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
}

.gm-style .gm-style-iw-tc::after {
  background: #16162a !important;
}

.gm-style .gm-style-iw-t::after {
  background: linear-gradient(45deg, #16162a 50%, transparent 50%, transparent) !important;
  box-shadow: none !important;
}

.gm-style .gm-ui-hover-effect > span {
  background-color: #8a8a9a !important;
}

.gm-style .gm-ui-hover-effect:hover > span {
  background-color: #e25440 !important;
}

#talksTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  background: #16162a;
  border-radius: 8px;
  border: 1px solid #2a2a40;
  overflow: hidden;
}

#talksTable caption {
  font-family: "Roboto Slab", serif;
  font-size: 1.5em;
  font-weight: 300;
  margin: .5em 0 .75em;
  text-align: center;
  color: #ffffff;
}

#talksTable th,
#talksTable td {
  padding: 1em 1.2em;
  text-align: left;
  word-wrap: break-word;
  vertical-align: middle;
  border-right: 1px solid #2a2a40;
}

#talksTable th:last-child,
#talksTable td:last-child {
  border-right: none;
}

#talksTable th {
  border-right-color: #2a2a40;
}

#talksTable th:first-child,
#talksTable td:first-child {
  text-align: center;
  width: 60px;
}

#talksTable th:nth-child(2),
#talksTable td:nth-child(2) {
  width: 18%;
}

#talksTable th:nth-child(4),
#talksTable td:nth-child(4) {
  width: 12%;
  text-align: center;
}

#talksTable th:nth-child(5),
#talksTable td:nth-child(5) {
  width: 18%;
}

#talksTable thead {
  background: #1f1f35;
  border-bottom: 2px solid #e25440;
}

#talksTable th {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e25440;
  border-bottom: 2px solid #e25440;
  position: relative;
}

#talksTable tbody tr {
  background: #16162a;
  border-bottom: 1px solid #2a2a40;
  transition: all 0.2s ease;
}

#talksTable tbody tr:nth-child(even) {
  background: #1a1a2e;
}

#talksTable tbody tr:last-child {
  border-bottom: none;
}

#talksTable tbody tr:hover {
  background: #1f1f35;
  transform: scale(1.002);
}

#talksTable tbody tr:hover td {
  color: #d0d0e0;
}

#talksTable tbody tr.year-header {
  background: #1a1a2e !important;
  border-top: 3px solid #e25440;
  transform: none;
}

#talksTable tbody tr.year-header td {
  font-family: "Roboto Slab", serif;
  font-weight: 400;
  font-size: 1.1em;
  color: #e25440;
  padding: 0.8em 1em;
  text-align: center;
  letter-spacing: 1px;
}

#talksTable tbody tr.upcoming td,
#talksTable tbody tr.past td {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a8a9a;
  padding: 0.6em 1em;
  text-align: center;
  background: #1a1a2e;
}

.seq {
  font-family: "Roboto Slab", serif;
  font-weight: 400;
  font-size: 1em;
  color: #e25440;
}

#talksTable td:nth-child(2) a {
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s;
}

#talksTable td:nth-child(2) a:hover {
  color: #e25440;
}

#talksTable td:nth-child(3) span {
  color: #d0d0e0;
  line-height: 1.4;
}

.talk-title {
  font-size: 0.9em;
}

#talksTable td:nth-child(3) span.talk-repeat {
  color: #8a8a9a;
}

#talksTable tbody tr.collapsed {
  display: none !important;
}

tr.show-more td {
  padding: 0;
  text-align: center;
}

.show-more-btn {
  width: 100%;
  background: #1f1f35;
  color: #e25440;
  border: none;
  padding: 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.show-more-btn:hover {
  background: #26263f;
  color: #ff6b5b;
}

#talksTable td:nth-child(4) {
  font-size: 0.9em;
  color: #8a8a9a;
  font-variant-numeric: tabular-nums;
}

.venue {
  font-size: 0.8em;
  color: #8a8a9a;
  margin-bottom: 3px;
}

.city {
  font-weight: 600;
  font-size: 0.9em;
  color: #ffffff;
}

.city.online {
  font-style: italic;
  color: #5ba4e5;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  #talksTable {
    margin: 20px 10px;
    border: 1px solid #2a2a40;
  }

  #talksTable thead {
    display: none;
  }

  #talksTable tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 1em;
    border-bottom: 1px solid #2a2a40;
  }

  #talksTable tbody tr:hover {
    transform: none;
  }

  #talksTable tbody tr.year-header {
    padding: 0.8em 1em;
    border-top: 2px solid #e25440;
  }

  #talksTable td {
    display: block;
    text-align: left !important;
    padding: 0.3em 0;
    width: 100% !important;
    border: none;
  }

  #talksTable td:first-child {
    display: none;
  }

  /* single-cell rows (year/section headers, show-more) must keep their only td */
  #talksTable tr.year-header td,
  #talksTable tr.upcoming td,
  #talksTable tr.past td,
  #talksTable tr.show-more td {
    display: block;
    text-align: center !important;
  }

  #talksTable td:nth-child(2) {
    font-size: 0.85em;
    order: 2;
  }

  #talksTable td:nth-child(3) {
    order: 1;
    padding-bottom: 0.5em;
  }

  #talksTable td:nth-child(3) span {
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
  }

  #talksTable td:nth-child(4) {
    order: 3;
    font-size: 0.8em;
    color: #8a8a9a;
  }

  #talksTable td:nth-child(5) {
    order: 4;
    padding-top: 0.5em;
    border-top: 1px solid #2a2a40;
    margin-top: 0.5em;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  color: #4a4a5a;
  font-size: 0.8em;
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 16px;
}

.stat-card {
  background: #16162a;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: #3a3a50;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }

.stat-value { color: #ffffff; }

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #e25440, #ff6b5b);
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.stat-value {
  font-family: "Roboto Slab", serif;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8a9a;
  margin-top: 12px;
}

.countdown-section {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  background: #16162a;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #e25440, #ff6b5b);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8a8a9a;
  margin-bottom: 8px;
}

.countdown-title {
  font-family: "Roboto Slab", serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 4px;
}

.countdown-conf {
  font-size: 0.9rem;
  color: #8a8a9a;
  margin-bottom: 24px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-unit span {
  font-family: "Roboto Slab", serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #e25440;
}

.countdown-unit small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8a9a;
  margin-top: 4px;
}

.year-chart {
  max-width: 1200px;
  margin: 30px auto;
  padding: 16px;
  background: #16162a;
  border: 1px solid #2a2a40;
  border-radius: 8px;
}

.year-chart-caption {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8a9a;
  text-align: center;
  margin-bottom: 16px;
}

.year-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
}

.year-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.year-bar:hover {
  transform: scale(1.08);
}

.year-bar-fill {
  width: 36px;
  background: #e25440;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
  position: relative;
  min-height: 4px;
}

.year-bar:hover .year-bar-fill {
  background: #ff6b5b;
}

.year-bar-fill::after {
  content: attr(data-count);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e25440;
  opacity: 0;
  transition: opacity 0.2s;
}

.year-bar:hover .year-bar-fill::after {
  opacity: 1;
}

.year-bar-label {
  font-size: 0.7rem;
  color: #8a8a9a;
  margin-top: 8px;
  font-weight: 600;
}

.year-bar.active .year-bar-fill {
  background: #5ba4e5;
}

.year-bar.active .year-bar-fill::after {
  color: #5ba4e5;
}

.year-bar.active .year-bar-label {
  color: #5ba4e5;
  font-weight: 700;
}

table tbody tr {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInRow 0.3s ease forwards;
}

table tbody tr:nth-child(1) { animation-delay: 0.02s; }
table tbody tr:nth-child(2) { animation-delay: 0.04s; }
table tbody tr:nth-child(3) { animation-delay: 0.06s; }
table tbody tr:nth-child(4) { animation-delay: 0.08s; }
table tbody tr:nth-child(5) { animation-delay: 0.1s; }
table tbody tr:nth-child(6) { animation-delay: 0.12s; }
table tbody tr:nth-child(7) { animation-delay: 0.14s; }
table tbody tr:nth-child(8) { animation-delay: 0.16s; }
table tbody tr:nth-child(9) { animation-delay: 0.18s; }
table tbody tr:nth-child(10) { animation-delay: 0.2s; }

@keyframes fadeInRow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .countdown-timer {
    gap: 16px;
  }

  .countdown-unit span {
    font-size: 1.8rem;
  }

  .year-bars {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 8px;
  }

  .year-bar-fill {
    width: 28px;
  }

  .page-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 30px 16px 20px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .stats-dashboard {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #8a8a9a;
  font-size: 0.9rem;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a2a40;
  border-top-color: #e25440;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(226, 84, 64, 0.15);
  color: #e25440;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.error-message {
  color: #a0a0b0;
  margin: 0 0 20px;
}

.retry-btn {
  background: linear-gradient(135deg, #e25440, #ff6b5b);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 84, 64, 0.4);
}

.retry-btn:focus {
  outline: 2px solid #e25440;
  outline-offset: 2px;
}
