/* ═══════════════════════════════════════════════════════════
   GLO Result — pixel-perfect dark theme
   Reference: screenshots 1–5
═══════════════════════════════════════════════════════════ */

html, body        { background: #242424 !important; }
.app-shell        { background: #242424; min-height: 100dvh; }
.page-content     { background: #242424; display: block; padding: 0; }

/* ─── TOP BAR  "LOTTERY RESULTS  |  16/09/2021  ▼" ──────── */
.glo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  background: #242424;
}

/* "LOTTERY RESULTS" — small, light-gray, uppercase */
.glo-topbar-label {
  color: #b0b0c8;
  font-size: 12px;
  font-weight: 400;
  /* letter-spacing: .8px; */
  text-transform: uppercase;
  white-space: nowrap;
}

/* Right side: gold date + caret */
.glo-date-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.glo-date-value {
  color: #f5c518;
  font-size: 20px;
  font-weight: 700;
  /* letter-spacing: .5px; */
  line-height: 1;
}
/* ▼ caret */
.glo-date-arrow {
  width: 0; height: 0;
  background: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─── DROPDOWN LIST ─────────────────────────────────────── */
.glo-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 400;
  background: #2a2a3c;
  min-width: 220px;
  max-height: 65vh;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.65);
}
.glo-dropdown-list.open  { display: block; }
.glo-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.glo-dropdown-item:active,
.glo-dropdown-item.active { background: rgba(245,197,24,.12); }

/* Calendar icon — gold fill */
.glo-dropdown-item svg   { width: 24px; height: 24px; flex-shrink: 0; }

.glo-dropdown-item span  {
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  /* letter-spacing: .4px; */
}

/* ─── SEARCH ROW ────────────────────────────────────────── */
/* From screenshot: pill input (rounded, dark) + square gold button */
.glo-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 14px;
  background: #242424;
}

.glo-search-input {
  flex: 1;
  height: 52px;
  background: #242424;
  border: 1.5px solid #454545;
  border-radius: 10px;          /* full pill */
  color: #e0e0f0;
  font-size: 15px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  padding: 0 20px;
  outline: none;
  appearance: none;
  transition: border-color .18s;
}

.glo-search-input::placeholder {
  color: #454545;
  font-size: 15px;
}
.glo-search-input:focus {
  border-color: #f5c518;
}

/* Gold square button with rounded corners — separate from input */
.glo-search-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #f5c5186f;
  border: 2px solid #f5c518;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.glo-search-btn:active {
  background: #d4a800;
  transform: scale(.95);
}
.glo-search-btn svg {
  width: 26px;
  height: 26px;
  fill: #f5c518;
}

/* ─── SEARCH RESULTS ────────────────────────────────────── */
.glo-search-results {
  margin: 0 14px 10px;
  background: #242424;
  border: 1px solid #454545;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}
.glo-search-results.visible { display: block; }
.glo-search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #454545;
}
.glo-search-result-item:last-child { border-bottom: none; }
.glo-search-prize-label { color: #9090b0; font-size: 13px; }
.glo-search-prize-num   { color: #f5c518; font-size: 18px; font-weight: 700;
   /* letter-spacing: 1px;  */
  }
.glo-search-no-match    { color: #e05050; font-size: 14px; padding: 13px 16px; }

/* ─── SECTION HEADER BAR ────────────────────────────────── */
/* Dark gray bar, centered Thai text — exactly like screenshot */
.glo-section-bar {
  background: #333333;
  padding: 11px 16px;
  text-align: center;
}
.glo-section-bar span {
  color: #d0d0e8;
  font-size: 14px;
  font-weight: 400;
  /* letter-spacing: .1px; */
}

/* ─── PRIZE 1 — single giant number ─────────────────────── */
.glo-prize1-block {
  background: #242424;
  padding: 32px 16px 28px;
  text-align: center;
}
.glo-prize1-num {
  color: #ffffff;
  font-size: 50px;
  font-weight: 500;
  /* letter-spacing: 6px; */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ─── PRIZE 2 — 5 numbers on one row ────────────────────── */
.glo-prize2-block {
  background: #242424;
  padding: 18px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}
.glo-prize2-num {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  /* letter-spacing: .8px; */
  flex: 1;
  text-align: center;
}

/* ─── BIG BLOCK — last2/first3/last3 ────────────────────── */
.glo-big-block {
  background: #242424;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 52px;
}
.glo-big-num {
  color: #ffffff;
  font-size: 45px;
  font-weight: 500;
  /* letter-spacing: 3px; */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* last2 is alone and even bigger */
.glo-big-num.single { font-size: 45px;
  /* letter-spacing: 6px;  */
}

/* ─── NEIGHBOR PRIZE — two 6-digit numbers ───────────────── */
.glo-neighbor-block {
  background: #242424;
  padding: 26px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.glo-neighbor-num {
  color: #ffffff;
  font-size: 38px;
  font-weight: 500;
  /* letter-spacing: 2px; */
  font-variant-numeric: tabular-nums;
}

/* ─── PRIZE 3/4/5 GRID — 3 cols ─────────────────────────── */
.glo-grid-block {
  background: #242424;
  padding: 8px 0 6px;
}
.glo-grid-row {
  display: flex;
  padding: 7px 20px;
}
.glo-grid-num {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  width: 33.33%;
  text-align: center;
  /* letter-spacing: .5px; */
  font-variant-numeric: tabular-nums;
}

/* ─── LOADING / ERROR ───────────────────────────────────── */
.glo-loading  { display: flex; justify-content: center; padding: 50px; }
.glo-spinner  {
  width: 38px; height: 38px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: #f5c518;
  border-radius: 50%;
  animation: glo-spin .7s linear infinite;
}
@keyframes glo-spin { to { transform: rotate(360deg); } }
.glo-error { color: #e05050; font-size: 15px; text-align: center; padding: 32px 20px; }

/* ─── HEADER BUTTONS (refresh + sound) ──────────────────── */
/* Refresh in header — matches the ↻ icon in screenshot */
.header-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  border-radius: 50%;
  transition: background .15s;
}
.header-refresh-btn:active { background: rgba(255,255,255,.15); }
.header-refresh-btn svg    { width: 24px; height: 24px; fill: #ffffff; display: block; }
@keyframes hdr-spin { to { transform: rotate(360deg); } }
.header-refresh-btn.spinning svg { animation: hdr-spin .6s linear infinite; }

/* Sound toggle on live TV — circular, semi-transparent, bottom-left */
.tv-sound-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 15;
  width: 44px; height: 44px;
  background: rgba(0,0,0,.60);
  border: 1.8px solid rgba(255,255,255,.50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.tv-sound-btn:active { background: rgba(0,0,0,.88); }
.tv-sound-btn svg    { width: 22px; height: 22px; fill: #ffffff; display: block; }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 370px) {
  .glo-prize1-num      { font-size: 56px;
    /* letter-spacing: 4px; */
  }
  .glo-big-num         { font-size: 44px; }
  .glo-big-num.single  { font-size: 58px; }
  .glo-neighbor-num    { font-size: 30px; }
  .glo-prize2-num      { font-size: 14px; }
  .glo-grid-num        { font-size: 16px; }
  .glo-date-value      { font-size: 17px; }
}