/* =========================================================
   Amsterdam 4D – public site styles
   Converted from the WordPress theme + custom CSS.
   Only rules used by the public pages are kept.
   ========================================================= */

html, body { margin: 0 auto; padding: 0; }

body {
  background: linear-gradient(180deg, #2C0000 0%, #000000 100%) no-repeat;
  min-height: 100vh;
  color: #fff;
}

@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1280px !important;
  }
}

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

/* ---------- Draw date ---------- */
#dateContainer { text-align: left; }
#dateContainer p { margin-bottom: .5rem; }

/* ---------- Side banners ---------- */
.bannerImg { width: 100%; max-width: 100%; }

/* ---------- Live stream / countdown ---------- */
#bnr_VietPools { position: relative; }

.video-layer {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
#videocanvas { width: 100%; height: 100%; }

.countdown-wrapper {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3.3px);
  -webkit-backdrop-filter: blur(3.3px);
  border: 0;
  border-radius: 0;
}

.countdownholder {
  background-color: #414141;
  color: #FFF;
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 20px;
  transition: opacity .3s;
}
.countdownholder > div {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.countdownholder.is-live { opacity: 0; pointer-events: none; }

.countdownholder #countdown {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 30px;
  gap: 10px;
}
.countdownholder .small { font-weight: normal; }

/* ---------- Results ---------- */
.result-wrapper {
  background: transparent;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: opacity .2s;
}
.result-wrapper.is-loading { opacity: .5; }

.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.result-box {
  flex: 1;
  background: #2C0000;
  border-radius: 0;
  padding: 9px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 20px;
  color: #ECC76C;
}

.result-datetime {
  font-weight: 400;
  font-size: 12px;
  color: #ECC76C;
  text-align: right;
  line-height: 1.4;
}
.draw-time { color: #D0D0D0; }

.prizes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prize-row {
  display: flex;
  align-items: center;
  gap: 10%;
}

.prize-label {
  font-weight: 600;
  font-size: 18px;
  color: #FFFFFF;
  min-width: 100px;
  text-align: left;
}

.prize-digits {
  display: flex;
  gap: 15px;
  flex: 1;
}
.prize-digits.prize-pending { margin-left: 30%; }

.prize-digit {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #BE4645;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
  color: #FFFFFF;
  line-height: 1;
}

.result-message { color: #fff; padding: 2rem 1rem; width: 100%; text-align: center; }

/* ---------- Pagination ---------- */
.navigation {
  margin-top: 25px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.navigation div a {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 0;
  background: #BE4645;
  transition: all 0.3s ease;
}
.navigation div a:hover { background: #a33837; }
.navigation div a:hover i { color: #FFFFFF; }
.navigation div a.is-disabled { opacity: .5; pointer-events: none; }
.navigation i { color: #FFFFFF; font-size: 16px; }

/* ---------- Footer ---------- */
#footer { text-align: center; }
#footer #footerDiv {
  background-color: transparent;
  color: #fff;
  padding: 10px 0;
  font-size: 0.9em;
}
#footer #footerDiv:after { content: ""; clear: both; display: block; }
#footer #footerDiv .privacyText { font-style: italic; color: #fff; }
#footer .OfficialIcon img { max-width: 100px; }
#footer .OfficialIcon .official-partners-text {
  font-weight: 600;
  font-size: 0.9em;
  color: #8B8B8B;
  white-space: nowrap;
}
#footer .footer-small { font-size: 0.8em; }

/* ---------- Simple content pages (privacy, responsible) ---------- */
.page-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  text-align: left;
  color: #fff;
  line-height: 1.7;
}
.page-content h2 { font-weight: 600; margin-bottom: 1rem; color: #ECC76C; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 970px) {
  .bannerImg { display: none; }

  .row { margin: 0 auto !important; padding: 0 !important; display: inline-block; }
  .mobile_full { width: 100% !important; max-width: 100% !important; padding: 0 !important; }

  #dateContainer { max-width: 100%; padding: 0; }

  .results-grid { flex-direction: column; gap: 15px; }

  .prize-row { align-items: flex-start; gap: 10px; }
  .prize-label { font-size: 16px; min-width: auto; }
  .prize-digits { gap: 8px; justify-content: flex-end; }
  .prize-digit { width: 40px; height: 40px; font-size: 20px; }
  .result-title { font-size: 18px; }
  .result-datetime { font-size: 12px; }

  #footer .footer-inner { flex-direction: column !important; text-align: center !important; gap: 15px; }
  #footer .footer-inner .OfficialIcon { order: 2; margin-top: 10px; }
  #footer .footer-inner .OfficialIcon > .d-flex { flex-wrap: wrap; justify-content: center; }
  #footer .footer-inner .OfficialIcon .official-partners-text {
    display: block; width: 100%; text-align: center; margin-bottom: 15px;
  }
  #footer .footer-inner .text-right { order: 3; text-align: center !important; }
  #footer .footer-inner .text-right div { margin: 5px 0; }
  #footer .footer-inner .text-right div a { text-decoration: none; }
  #footer .footer-inner .text-right div a:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  .countdownholder, .result-wrapper, .navigation div a { transition: none; }
}
