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

body {
  background: #000;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
}

.site-header.hidden,
.site-footer.hidden {
  display: none !important;
}

.site-header {
  flex: 0 0 auto;
  min-height: 10vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2vw;
  padding: 1vh 2.5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 20;
}

.header-logo-wrap {
  justify-self: start;
  height: 7vh;
  max-height: 72px;
  display: flex;
  align-items: center;
}

.header-logo {
  height: 100%;
  width: auto;
  max-width: 22vw;
  object-fit: contain;
  object-position: left center;
}

.header-logo.hidden {
  display: none;
}

.header-title {
  justify-self: center;
  text-align: center;
  font-size: clamp(1rem, 2.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  padding: 0 1vw;
}

.header-clock {
  justify-self: end;
  font-size: clamp(1.5rem, 4.5vw, 4rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.slide-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#slide-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

#slide-container > .slide {
  position: absolute;
  inset: 0;
}

.site-footer {
  flex: 0 0 auto;
  min-height: 10vh;
  padding: 1.5vh 2vw 2vh;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 20;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 48px);
  height: 8vh;
  max-height: 80px;
}

.footer-logos img,
.footer-logo {
  height: 100%;
  width: auto;
  max-width: 16vw;
  object-fit: contain;
  object-position: center;
}

.slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
}

.empty-slide {
  color: #fff;
  text-align: center;
  padding: 2em;
}

.tickets-table-content {
  width: 92%;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tickets-table-title {
  font-size: 3.5vw;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2vh;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tickets-event-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2vw;
  margin-bottom: 1vh;
  font-size: 3.25vw;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tickets-event-time {
  text-align: center;
  font-size: 2.1vw;
  font-weight: 500;
  opacity: 0.9;
  margin: 0 0 2.5vh;
  letter-spacing: 0.04em;
}

.event-date-today {
  display: inline-block;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: rgba(96, 191, 0, 0.35);
  border: 2px solid #60bf00;
  color: #e8ffd0;
  font-size: 0.55em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.event-ended-content {
  text-align: center;
  justify-content: center;
  min-height: 50vh;
}

.event-ended-title {
  font-size: 4.5vw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2vh 0 1vh;
  color: #ff6b6b;
}

.event-ended-date {
  font-size: 2.4vw;
  opacity: 0.75;
  margin-bottom: 2vh;
}

.event-ended-msg {
  font-size: 2vw;
  opacity: 0.65;
  max-width: 70%;
  margin: 0 auto;
}

.tickets-table-msg {
  font-size: 2.5vw;
  text-align: center;
  opacity: 0.8;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 2.4vw;
  margin-bottom: 1vh;
}

.tickets-table th {
  font-size: 1.9vw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  padding: 1.5vh 2%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  text-align: left;
}

.tickets-table th:nth-child(2),
.tickets-table th:nth-child(3) { text-align: center; }
.tickets-table th:nth-child(4) { text-align: right; }

.tickets-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

.tickets-table tbody tr.sold-out .col-sold-out {
  text-align: center;
  font-weight: 800;
  font-size: 2.8vw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3b30;
  text-shadow: 0 0 12px rgba(255, 59, 48, 0.45);
}

.tickets-table td {
  padding: 2vh 2%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}

.tickets-table .col-available {
  text-align: center;
  font-weight: 700;
  font-size: 2.8vw;
  color: #ffb347;
  text-shadow: 0 0 12px rgba(255, 140, 0, 0.35);
}

.tickets-table .col-available.availability-low {
  color: #ff3b30;
  text-shadow: 0 0 14px rgba(255, 59, 48, 0.55);
  animation: availability-blink 1.1s ease-in-out infinite;
}

@keyframes availability-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .tickets-table .col-available.availability-low {
    animation: none;
    opacity: 1;
  }
}
.tickets-table .col-total {
  text-align: center;
  font-weight: 600;
  font-size: 2.4vw;
  opacity: 0.9;
}
.tickets-table .col-price { text-align: right; font-weight: 700; font-size: 2.6vw; }
.tickets-table .no-data { text-align: center; opacity: 0.5; padding: 4vh; }

.tickets-reservation {
  margin-top: 5.5vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4vw;
  width: 100%;
  max-width: 92%;
}

.tickets-reservation-text {
  font-size: 3.4vw;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin: 0;
  text-align: left;
  white-space: pre-line;
  flex: 0 1 auto;
  max-width: 42vw;
}

.tickets-barcode-link {
  flex: 0 0 auto;
  line-height: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tickets-barcode-link:hover,
.tickets-barcode-link:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.45);
  outline: none;
}

.tickets-barcode-wrap {
  background: #fff;
  padding: 1.2vh 1.2vw;
  border-radius: 8px;
  line-height: 0;
}

.tickets-barcode {
  display: block;
  width: 14vw;
  height: 14vw;
  min-width: 100px;
  min-height: 100px;
  image-rendering: pixelated;
}

.qr-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
}
.qr-text {
  font-size: 4vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.qr-code-container {
  background: #fff;
  padding: 2%;
  border-radius: 8px;
}
.qr-code-container img, .qr-code-container canvas {
  display: block;
  width: 20vw !important;
  height: 20vw !important;
}
.qr-url {
  font-size: 1.5vw;
  opacity: 0.6;
  word-break: break-all;
}

.sponsor-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vh;
  width: 100%;
  height: 100%;
}
.sponsor-image {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
}
.sponsor-text {
  font-size: 3vw;
  font-weight: 300;
  text-align: center;
}

.progress-track {
  flex: 0 0 auto;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 25;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff7a00 0%, #ffb347 100%);
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.45);
  transition: width linear;
}

.slide-indicators {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0.8vh 2vw 1vh;
  min-height: 2.5vh;
  z-index: 20;
}

.slide-indicators:empty {
  display: none;
  min-height: 0;
  padding: 0;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.indicator.active {
  background: #ff8c00;
  transform: scale(1.15);
}
