.panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-padding {
  padding: 16px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 750;
  white-space: nowrap;
}

.nav-button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.global-search {
  min-width: 310px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
}

.global-search input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button,
.secondary-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  color: var(--text);
  padding: 9px 11px;
}

.primary-button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.full-width {
  width: 100%;
}

.page-heading {
  margin-bottom: 16px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.page-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.filters label {
  display: block;
  margin: 11px 0 5px;
  font-size: 0.78rem;
  font-weight: 800;
}

.filters select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-alt);
  color: var(--text);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.live-header {
  padding: 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #123a83, #092b68);
  color: #ffffff;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #31dc78;
  box-shadow: 0 0 0 5px rgba(49, 220, 120, 0.17);
}

.live-list {
  padding: 6px 14px 14px;
}

.live-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.live-item:last-child {
  border-bottom: 0;
}

.live-icon,
.event-icon,
.category-icon {
  display: grid;
  place-items: center;
  color: #ffffff;
}

.live-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.live-item h4 {
  margin: 0 0 3px;
  font-size: 0.84rem;
}

.live-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.featured-authors {
  padding: 16px;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.author-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-alt);
}

.author-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(0.12);
}

.author-card strong {
  display: block;
  margin: 8px 0;
}

.author-card button {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-weight: 750;
}

.program-panel {
  padding: 16px;
}

.view-switch {
  display: flex;
  gap: 6px;
}

.view-switch button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  color: var(--text);
}

.view-switch button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.timeline {
  position: relative;
  padding-left: 70px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt);
}

.time-bubble {
  position: absolute;
  left: -70px;
  top: 9px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
}

.event-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.event-card h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.event-meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.event-actions {
  display: flex;
  gap: 7px;
}

.event-actions button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  color: var(--text);
}

.favorite-button {
  color: var(--purple) !important;
  font-size: 1.05rem;
}

.ticket-panel {
  padding: 22px 16px;
  text-align: center;
  background: linear-gradient(150deg, #1959ea, #3677ff);
  color: #ffffff;
}

.ticket-panel h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1;
}

.ticket-panel strong {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 8px;
  background: #e93645;
}

.ticket-panel button {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}

.category-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
}

.category-row span {
  flex: 1;
  font-size: 0.82rem;
}

.count-pill,
.info-pill {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--panel-alt);
  font-size: 0.72rem;
}

.info-pill {
  border: 1px solid var(--line);
  padding: 5px 8px;
}

.event-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: 86vh;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-bg);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.event-dialog::backdrop {
  background: rgba(3, 9, 24, 0.65);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.8rem;
}

.detail-row {
  margin: 10px 0;
  color: var(--muted);
}


.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  color: var(--text);
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


.mobile-ticket-link {
  display: none;
}


.mobile-day-filter {
  display: none;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.mobile-day-filter label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-day-filter label > span {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.mobile-day-filter select {
  width: 100%;
  min-width: 0;
  padding: 11px 40px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
  color: var(--text);
  font-weight: 750;
  outline: none;
}

.mobile-day-filter select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 89, 232, 0.12);
}

.active-filter-label {
  margin: 3px 0 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}


.now-entry-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid rgba(32, 191, 107, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--green) 12%, var(--panel-bg)),
    var(--panel-bg));
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.now-entry-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.now-entry-card b {
  color: var(--blue);
  white-space: nowrap;
}

.now-entry-pulse {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(32, 191, 107, 0.14);
}

.now-clock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
}

.now-clock > div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.now-clock > div:last-child {
  border-right: 0;
}

.now-clock span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.now-clock strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
}

.now-section {
  margin-bottom: 20px;
}

.live-event-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.live-event-card.is-live {
  border-left-color: var(--green);
}

.live-event-card.is-soon {
  border-left-color: #ffac17;
}

.live-event-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 1.25rem;
}

.live-event-kicker {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.is-soon .live-event-kicker {
  color: #c77d00;
}

.live-event-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.live-event-card p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.live-event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  color: var(--muted);
  font-size: 0.78rem;
}

.live-event-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.now-message {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 20px;
  padding: 22px;
}

.now-message-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--panel-alt);
  font-size: 1.7rem;
}

.now-message h2 {
  margin: 0 0 5px;
}

.now-message p {
  margin: 0 0 7px;
  color: var(--muted);
}


.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.map-panel {
  padding: 16px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.map-toolbar small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: var(--muted);
  font-size: 0.72rem;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(21,89,232,.32);
}

.legend-dot.selected {
  background: #e93c82;
}

.legend-dot.linked {
  background: #20bf6b;
}

.map-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.map-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-zone {
  fill: rgba(21, 89, 232, 0.08);
  stroke: rgba(21, 89, 232, 0.72);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .18s ease, stroke .18s ease, filter .18s ease;
}

.map-zone:hover,
.map-zone:focus {
  fill: rgba(21, 89, 232, 0.25);
  stroke: #1559e8;
  outline: none;
  filter: drop-shadow(0 0 3px rgba(21,89,232,.35));
}

.map-zone.has-link {
  fill: rgba(32, 191, 107, 0.12);
  stroke: #20bf6b;
}

.map-zone.selected {
  fill: rgba(233, 60, 130, 0.30);
  stroke: #e93c82;
}

.map-disclaimer {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.map-details {
  position: sticky;
  top: 88px;
  min-height: 390px;
  padding: 18px;
}

.map-empty-selection {
  display: grid;
  place-items: center;
  min-height: 350px;
  text-align: center;
  color: var(--muted);
}

.map-empty-selection h2 {
  margin: 12px 0 4px;
  color: var(--text);
}

.map-details-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-details-head h2 {
  margin: 7px 0 0;
}

.map-zone-note {
  color: var(--muted);
  line-height: 1.5;
}

.map-linked-room {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
}

.map-linked-room span {
  color: var(--blue);
  font-weight: 800;
}

.map-event-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.map-event-item {
  width: 100%;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
  color: var(--text);
  text-align: left;
}

.map-event-item span {
  display: flex;
  flex-direction: column;
}

.map-event-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .66rem;
}

.map-event-item b {
  font-size: .78rem;
  line-height: 1.3;
}

.map-unlinked-warning {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  color: var(--muted);
  line-height: 1.45;
}


.mobile-search-bar {
  display: none;
}

.disclaimer-card {
  margin-top: 18px;
  padding: 22px;
}

.disclaimer-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.disclaimer-heading h2 {
  margin: 0 0 4px;
}

.disclaimer-heading p {
  margin: 0;
  color: var(--muted);
}

.disclaimer-content {
  max-width: 940px;
  padding-top: 5px;
  line-height: 1.65;
}

.disclaimer-content h3 {
  margin: 20px 0 5px;
}

.disclaimer-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

.official-document-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.official-document-link:hover {
  background: #0f49c2;
}

