.flip-countdown {
  display: none;
  text-align: center;
  z-index: 50;
}
.flip-countdown .flip-label {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.flip-countdown .flip-separator {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  align-self: center;
  padding-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.flip-countdown .flip-group {
  text-align: center;
}

.flip-countdown .tick-flip-panel {
  color: white;
  font-weight: 700;
  background-color: rgba(40, 40, 40, 0.75);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.flip-countdown .tick-flip-panel-back::after {
  background-color: rgba(0, 0, 0, 0.3);
}

.flip-countdown .tick-flip {
  --tick-flip-shadow-color: rgba(0, 0, 0, 0.2);
}

#flip-counter {
  display: none;
  z-index: 50;
  position: absolute;
  left: 80px;
  bottom: 100px;
}
#flip-counter .flip-countdown {
  text-align: center;
}
@media only screen and (max-width: 760px) {
  #flip-counter {
    left: 0;
    bottom: 110px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  #flip-counter .flip-countdown {
    text-align: center;
  }
}
@media only screen and (max-height: 580px) and (min-width: 760px) {
  #flip-counter {
    bottom: 40px;
  }
}

.flip-hero .flip-days-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.flip-hero .flip-days-row .tick {
  font-size: 8em;
}
@media only screen and (max-width: 760px) {
  .flip-hero .flip-days-row .tick {
    font-size: 5em;
  }
}
.flip-hero .flip-days-label {
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.flip-hero .flip-time-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
}
@media only screen and (max-width: 760px) {
  .flip-hero .flip-time-row {
    gap: 8px;
  }
}
.flip-hero .flip-time-row .tick {
  font-size: 3em;
}
@media only screen and (max-width: 760px) {
  .flip-hero .flip-time-row .tick {
    font-size: 2em;
  }
}
.flip-hero .flip-time-row .flip-separator {
  font-size: 28px;
  padding-bottom: 18px;
}
@media only screen and (max-width: 760px) {
  .flip-hero .flip-time-row .flip-separator {
    font-size: 22px;
    padding-bottom: 14px;
  }
}
.flip-hero .flip-time-row .flip-label {
  font-size: 11px;
  margin-top: 6px;
}

.flip-expired {
  font-size: 20vh;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
@media only screen and (max-width: 760px) {
  .flip-expired {
    font-size: 10vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip-countdown .tick-flip-panel {
    transition: none !important;
    animation: none !important;
  }
}
#counter-expired {
  font-size: 30vh;
  font-weight: 700;
  margin: auto;
  padding: 30px;
}

h2.countdown-footer {
  color: white;
  font-weight: bold;
  font-size: 0.875em;
  z-index: 50;
  position: absolute;
  left: 80px;
  bottom: 460px;
}
@media only screen and (max-width: 760px) {
  h2.countdown-footer {
    bottom: 290px;
    left: unset;
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

body.countdown {
  margin: 0;
  background-color: black;
}
@media print {
  body.countdown {
    background-color: transparent;
  }
}

.desktop-pills {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 501;
  display: flex;
  gap: 8px;
}
@media only screen and (max-width: 760px) {
  .desktop-pills {
    display: none;
  }
}
.desktop-pills a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(46, 49, 51, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.desktop-pills a:hover, .desktop-pills a:focus {
  background: rgba(46, 49, 51, 0.85);
  color: #fff;
  text-decoration: none;
}
.desktop-pills a svg {
  flex-shrink: 0;
}

.settings-button-container {
  display: none;
}

.countdown #at-expanding-share-button[data-position=bottom-right] {
  bottom: 128px;
  right: 6px;
}

#settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 501;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
#settings-panel.settings-panel-open {
  transform: translateX(0);
}
#settings-panel.settings-panel-hidden {
  display: none;
}
#settings-panel .settings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
#settings-panel .settings-panel-header h5 {
  margin: 0;
  color: black;
}
#settings-panel .settings-panel-header button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 0.5;
}
#settings-panel .settings-panel-header button:hover {
  opacity: 1;
}
#settings-panel .settings-panel-body {
  padding: 15px;
}
#settings-panel .form-label {
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 10px;
  display: block;
}
#settings-panel .form-select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
}
#settings-panel .text-muted {
  margin-top: 15px;
  padding: 5px;
  font-size: 0.8em;
}
#settings-panel h6 {
  color: black;
  margin-bottom: 5px;
}

.desktop-countdown-scrim {
  display: block;
  z-index: 49;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  width: 550px;
  height: 100%;
  background-color: transparent;
}
@media only screen and (max-width: 760px) {
  .desktop-countdown-scrim {
    display: none;
  }
}

.attribution a {
  color: white;
}

#countdown-header {
  display: block;
  z-index: 99;
  position: absolute;
  top: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  padding-top: 80px;
  padding-left: 80px;
  padding-right: 340px;
  width: 100%;
  font-weight: 200;
  background-color: transparent;
  left: 0;
  box-sizing: border-box;
}
@media only screen and (max-width: 900px) {
  #countdown-header {
    padding-right: 20px;
  }
}
@media only screen and (max-width: 760px) {
  #countdown-header {
    font-weight: 100;
    padding-top: 45px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    padding-bottom: 130px;
    position: fixed;
    top: 0;
  }
}

#event-header {
  padding: 8px 0;
  color: white;
  font-size: 1em;
  font-weight: 200;
  margin: 0;
}
@media only screen and (max-width: 1024px) {
  #event-header {
    padding-right: 0;
  }
}

#event-header .event-title {
  display: block;
  padding-top: 5px;
  font-size: 5em;
  font-weight: 300;
  line-height: 0.9em;
  color: white;
}
@media only screen and (max-width: 760px) {
  #event-header .event-title {
    font-size: 40px;
    padding: 5px 5px;
    font-weight: 100;
  }
}
@media only screen and (max-height: 440px) and (min-width: 760px) {
  #event-header .event-title {
    font-size: 15vh;
  }
}

.event-location-label, .event-date-label {
  padding-left: 2px;
  padding-right: 2px;
  margin-right: 2px;
  display: inline-block;
  width: 15px;
  text-align: right;
}

#countdown-details {
  color: white;
  font-size: 1em;
}
@media only screen and (max-width: 760px) {
  #countdown-details {
    font-weight: 400;
    text-shadow: #333 0 0 4px;
  }
}

#counter {
  display: block;
  z-index: 50;
  position: absolute;
  left: 80px;
  width: 400px;
  max-width: 400px;
  bottom: 100px;
}
@media only screen and (max-width: 760px) {
  #counter {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    padding-top: 100px;
    padding-bottom: 50px;
    width: 100%;
    max-width: 100%;
    left: 0;
    bottom: 0;
  }
}
@media only screen and (max-height: 580px) and (min-width: 760px) {
  #counter {
    bottom: 40px;
  }
}

#countdown-days {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#countdown-days-suffix {
  position: relative;
  color: white;
  margin-bottom: -15px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 200;
  font-size: 1em;
  text-shadow: #666 0 0 15px;
}

.countdown-row {
  text-align: center;
  width: 320px;
}
.countdown-row .countdown-section {
  display: inline-block;
  font-size: 1em;
  text-align: center;
  font-weight: 300;
  color: white;
  margin-top: 10px;
  padding: 0 5px;
  text-shadow: #666 0 0 15px;
}
.countdown-row .countdown-period {
  display: block;
  text-transform: lowercase;
}
@media only screen and (max-width: 760px) {
  .countdown-row .countdown-period {
    font-size: 0.8em;
  }
}
.countdown-row .countdown-amount {
  font-size: 7vmin;
  font-weight: 400;
}
@media only screen and (max-width: 760px) {
  .countdown-row .countdown-amount {
    font-weight: 300;
    font-size: 24px;
  }
}
.countdown-row.countdown-show2 .countdown-section {
  width: 100%;
}
.countdown-row.countdown-show3 .countdown-section {
  width: 50%;
}
.countdown-row.countdown-show4 .countdown-section {
  width: 33.3333333333%;
}
.countdown-row.countdown-show5 {
  width: 400px;
  max-width: 400px;
}
.countdown-row.countdown-show5 .countdown-section {
  width: 25%;
}
.countdown-row.countdown-show6 {
  width: 400px;
  max-width: 400px;
}
.countdown-row.countdown-show6 .countdown-section {
  width: 20%;
}
.countdown-row .countdown-section:first-child {
  font-weight: 300;
  display: block;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  width: 100%;
  font-size: 1.8em;
}
.countdown-row .countdown-section:first-child .countdown-amount {
  font-size: 18vh;
  font-weight: 700;
  padding: 0;
  line-height: 95%;
  text-shadow: #666 0 0 15px;
}
@media only screen and (max-width: 760px) {
  .countdown-row .countdown-section:first-child .countdown-amount {
    font-size: 5em;
  }
}

#extra-panel {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 0;
  position: absolute;
  margin-right: 10px;
  right: 20px;
  bottom: 40px;
  width: 270px;
  background-color: rgba(255, 255, 255, 0.4);
}
@media only screen and (max-height: 910px) {
  #extra-panel {
    right: 190px;
  }
}
#extra-panel h4 {
  color: black;
  margin-bottom: 5px;
}
#extra-panel .close {
  position: absolute;
  top: 5px;
  right: 5px;
  filter: alpha(opacity=50);
  opacity: 0.5;
}

.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.background-slideshow .swiper-slide img, .background-slideshow .swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.background-slideshow.bg-animation-zoom .swiper-slide-active img {
  animation: bg-zoom 7s ease-in-out forwards;
}

@keyframes bg-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
.countdown-breakdown {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 100;
  max-width: 300px;
  padding: 15px;
  color: white;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.countdown-breakdown .faq-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2em;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.countdown-breakdown .faq-close:hover {
  color: white;
}
@media only screen and (max-width: 900px) {
  .countdown-breakdown {
    display: none;
  }
}
.countdown-breakdown h2 {
  font-size: 0.9em;
  font-weight: 600;
  color: white;
  text-transform: none;
  letter-spacing: normal;
  margin: 12px 0 6px;
}
.countdown-breakdown h2:first-child {
  margin-top: 0;
}
.countdown-breakdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.countdown-breakdown li {
  padding: 2px 0;
  font-size: 0.8em;
  opacity: 0.9;
}
.countdown-breakdown p {
  font-size: 0.8em;
  opacity: 0.85;
  line-height: 1.4;
}
.countdown-breakdown .timezone-note {
  font-size: 0.7em;
  opacity: 0.5;
  margin-top: 12px;
}

.related-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white !important;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.related-card:hover, .related-card:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ff2d2d !important;
  text-decoration: none;
}
.related-card img {
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.related-name {
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-days {
  font-size: 0.7em;
  opacity: 0.7;
}

.settings-open-link {
  display: inline-block;
  font-size: 0.75em;
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px 10px;
  text-decoration: none;
  margin-top: 4px;
  transition: background 0.2s, color 0.2s;
}
.settings-open-link:hover, .settings-open-link:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #ff2d2d !important;
  text-decoration: none;
}

.timezone-note {
  font-size: 0.7em;
  opacity: 0.5;
  margin-top: 12px;
}

.more-info-link {
  display: none;
}
@media only screen and (max-width: 900px) {
  .more-info-link {
    display: block;
    position: fixed;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8em;
    text-decoration: none;
    padding: 6px 16px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
  }
  .more-info-link svg {
    vertical-align: middle;
    margin: 0 2px;
  }
  .more-info-link:hover, .more-info-link:focus {
    color: white;
    background: rgba(0, 0, 0, 0.7);
  }
}

.countdown-breakdown-mobile {
  display: none;
}
@media only screen and (max-width: 900px) {
  .countdown-breakdown-mobile {
    display: block;
    position: relative;
    z-index: 50;
    padding: 20px 15px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .countdown-breakdown-mobile h2 {
    font-size: 1em;
    font-weight: 600;
    color: white;
    text-transform: none;
    letter-spacing: normal;
    margin: 16px 0 6px;
  }
  .countdown-breakdown-mobile h2:first-child {
    margin-top: 0;
  }
  .countdown-breakdown-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .countdown-breakdown-mobile li {
    padding: 3px 0;
    font-size: 0.9em;
  }
  .countdown-breakdown-mobile p {
    font-size: 0.9em;
    opacity: 0.85;
    line-height: 1.5;
  }
}
