body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f6fa 0%, #e9ecef 100%);
  font-family: 'Segoe UI', 'Prompt', Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.header {
  position: absolute;
  top: 0;
  right: 0;
  padding: 24px 32px 0 0;
  z-index: 10;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

label {
  color: #222;
  font-size: 1.1rem;
  margin-right: 8px;
}

select {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-size: 1.1rem;
  outline: none;
  background: #fff;
  color: #222;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100vw;
  background: none;
  box-shadow: none;
  padding: 0 0 48px 0;
}

.clock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5vw;
  color: #111;
  font-size: 16vw;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 0;
  text-shadow: 0 2px 8px #fff8, 0 1px 0 #0001;
  line-height: 1.1;
  background: none;
}

.digit {
  display: inline-block;
  min-width: 1.1em;
  padding: 0.05em 0.08em;
  margin: 0 0.03em;
  background: linear-gradient(180deg, #fff 70%, #e9ecef 100%);
  color: #111;
  border-radius: 0.18em;
  box-shadow: 0 2px 12px #0001, 0 1px 0 #fff2 inset;
  font-family: 'Share Tech Mono', 'Prompt', 'Segoe UI', monospace;
  font-size: 1em;
  text-align: center;
  text-shadow: 0 0 8px #fff8, 0 2px 8px #0001;
  transition: background 0.2s;
}

.colon {
  display: inline-block;
  color: #bbb;
  font-size: 0.9em;
  margin: 0 0.08em;
  text-shadow: 0 0 8px #fff8, 0 2px 8px #0001;
  vertical-align: middle;
}

.date {
  color: #444;
  font-size: 1.5rem;
  margin-top: 18px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px #fff8;
  font-weight: 400;
}

h1 {
  color: #222;
  margin-bottom: 32px;
  font-size: 2.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #fff8;
}

.tz-list {
  margin-top: 32px;
  width: 100vw;
  max-width: none;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 2px 12px #0001;
  padding: 18px 0 10px 0;
  text-align: left;
  position: relative;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
}
.tz-title {
  color: #222;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  padding-left: 32px;
}
.tz-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 18px;
  justify-items: stretch;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}
.tz-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 6px 14px 6px 10px;
  min-width: 0;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px #0001;
  width: 100%;
  border-left: 6px solid var(--tz-color, #1e3c72);
  transition: border 0.3s;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.tz-item:hover {
  background: #f0f6ff;
  box-shadow: 0 2px 8px #1e3c7222;
  border-left-width: 10px;
  z-index: 1;
}
.tz-item.tz-item-active {
  background: #eaf6ff;
  border-left-width: 12px;
  box-shadow: 0 2px 12px #1e3c7240;
  font-weight: 700;
}
.tz-item[data-tzcolor="1"] { --tz-color: #1e3c72; }
.tz-item[data-tzcolor="2"] { --tz-color: #e67e22; }
.tz-item[data-tzcolor="3"] { --tz-color: #16a085; }
.tz-item[data-tzcolor="4"] { --tz-color: #e74c3c; }
.tz-item[data-tzcolor="5"] { --tz-color: #8e44ad; }
.tz-item[data-tzcolor="6"] { --tz-color: #2980b9; }
.tz-item[data-tzcolor="7"] { --tz-color: #27ae60; }
.tz-item[data-tzcolor="8"] { --tz-color: #f39c12; }
.tz-item[data-tzcolor="9"] { --tz-color: #d35400; }
.tz-item[data-tzcolor="10"] { --tz-color: #c0392b; }
/* เพิ่มสีได้ตามต้องการ */
.tz-label {
  color: #444;
  flex: 1;
  font-size: 1em;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-time {
  color: #111;
  font-family: 'Share Tech Mono', 'Prompt', 'Segoe UI', monospace;
  font-size: 1.13em;
  font-weight: 700;
  letter-spacing: 1px;
  background: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  box-shadow: 0 1px 2px #0001;
}
.tz-flag {
  display: inline-block;
  font-size: 1.5em;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px #0001);
}
.tz-diff-section {
  margin-top: 36px;
  width: 100vw;
  background: linear-gradient(90deg, #f8fafc 60%, #e9ecef 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 12px #0001;
  padding: 24px 0 32px 0;
  text-align: left;
  position: relative;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
  min-height: 90px;
}
.tz-diff-title {
  color: #1e3c72;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  padding-left: 32px;
  text-shadow: 0 2px 8px #fff8;
}
.tz-diff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}
.tz-diff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 8px 18px 8px 12px;
  min-width: 180px;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px #0001;
  width: 100%;
  border-left: 4px solid #1e3c72;
  transition: border 0.2s;
}
.tz-diff-label {
  color: #444;
  flex: 1;
  font-size: 1em;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-diff-val {
  color: #1e3c72;
  font-family: 'Share Tech Mono', 'Prompt', 'Segoe UI', monospace;
  font-size: 1.13em;
  font-weight: 700;
  letter-spacing: 1px;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 2px 10px;
  box-shadow: 0 1px 2px #0001;
}
.tz-diff-arrow {
  display: inline-block;
  font-size: 1.1em;
  margin-right: 6px;
  vertical-align: middle;
  transition: color 0.3s;
}
.tz-diff-up {
  color: #1ecb5a;
}
.tz-diff-down {
  color: #e74c3c;
}
.tz-diff-eq {
  color: #888;
}
.tz-diff-anim {
  animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.tz-diff-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px auto;
  gap: 18px;
}
.tz-diff-compare-label {
  min-width: 90px;
  color: #1e3c72;
  font-weight: 700;
  font-size: 1.08rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-diff-bar-bg {
  flex: 1;
  height: 18px;
  background: linear-gradient(90deg, #e9ecef 0%, #f5f6fa 100%);
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
.tz-diff-bar {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #1ecb5a 0%, #1e3c72 100%);
  border-radius: 9px;
  transition: left 0.6s cubic-bezier(.4,2,.6,1), width 0.6s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 2px 8px #1e3c7233;
}
.tz-sun-section {
  margin-top: 36px;
  width: 100vw;
  background: linear-gradient(90deg, #f8fafc 60%, #e9ecef 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 12px #0001;
  padding: 24px 0 32px 0;
  text-align: left;
  position: relative;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
  min-height: 90px;
}
.tz-sun-title {
  color: #1e3c72;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  padding-left: 32px;
  text-shadow: 0 2px 8px #fff8;
}
.tz-sun-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}
.tz-sun-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px 18px 8px 12px;
  min-width: 180px;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px #0001;
  width: 100%;
  margin-bottom: 8px;
}
.tz-sun-label {
  color: #444;
  font-size: 1em;
  margin-right: 10px;
  font-weight: 600;
  min-width: 80px;
}
.tz-sun-rise, .tz-sun-set {
  color: #1e3c72;
  font-family: 'Share Tech Mono', 'Prompt', 'Segoe UI', monospace;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 1px;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 10px;
  box-shadow: 0 1px 2px #0001;
}
.tz-sun-rise {
  background: #e0f7fa;
  color: #ff9800;
}
.tz-sun-set {
  background: #ffe0e0;
  color: #e74c3c;
}
@media (max-width: 900px) {
  .tz-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 8px;
    padding: 0 8px;
  }
  .tz-title {
    padding-left: 8px;
  }
  .tz-diff-list {
    gap: 8px 8px;
    padding: 0 8px;
  }
  .tz-diff-title {
    padding-left: 8px;
  }
  .tz-sun-items {
    gap: 8px 8px;
    padding: 0 8px;
  }
  .tz-sun-title {
    padding-left: 8px;
  }
}
@media (max-width: 600px) {
  .header {
    padding: 12px 6vw 0 0;
  }
  .clock {
    font-size: 18vw;
    letter-spacing: 4px;
  }
  .date {
    font-size: 1rem;
  }
  .tz-list {
    max-width: 100vw;
    padding: 10px 0 6px 0;
  }
  .tz-items {
    grid-template-columns: 1fr;
    gap: 6px 0;
    padding: 0 2vw;
  }
  .tz-title {
    padding-left: 2vw;
  }
  .tz-item {
    font-size: 0.95rem;
  }
  .tz-diff-section {
    max-width: 100vw;
    padding: 14px 0 18px 0;
    min-height: 60px;
  }
  .tz-diff-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px 0;
    padding: 0 2vw;
  }
  .tz-diff-title {
    padding-left: 2vw;
  }
  .tz-diff-item {
    font-size: 0.95rem;
  }
  .tz-sun-section {
    max-width: 100vw;
    padding: 14px 0 18px 0;
    min-height: 60px;
  }
  .tz-sun-items {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px 0;
    padding: 0 2vw;
  }
  .tz-sun-title {
    padding-left: 2vw;
  }
  .tz-sun-item {
    font-size: 0.95rem;
  }
}
.footer {
  width: 100vw;
  background: linear-gradient(90deg, #f8fafc 60%, #e9ecef 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 -2px 12px #0001;
  padding: 18px 0 10px 0;
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: #1e3c72;
}
.footer-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #fff8;
}
.footer-cols {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-col {
  min-width: 180px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}
.footer-col .footer-title {
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e3c72;
}
.footer-col .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px 0;
}
.footer-col .footer-links a {
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  width: auto;
  min-width: 0;
  border-radius: 16px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #1e3c72;
  padding: 3px 14px;
  font-size: 0.93em;
  font-weight: 500;
  box-shadow: 0 1px 2px #0001;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
}
.footer-col .footer-links a:hover {
  background: #1e3c72;
  color: #fff;
  border: 1.5px solid #1e3c72;
}
.footer-col .footer-links.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  width: 100%;
  max-width: 340px;
}
.footer-col .footer-links.features a {
  width: 100%;
  min-width: 0;
  text-align: left;
}
@media (max-width: 900px) {
  .footer-cols {
    gap: 18px;
    max-width: 100vw;
    padding: 0 8px;
  }
  .footer-col {
    flex: 1 1 160px;
  }
}
@media (max-width: 600px) {
  .footer {
    padding: 10px 0 6px 0;
    font-size: 0.89rem;
  }
  .footer-cols {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 2vw;
  }
  .footer-col {
    align-items: stretch;
    min-width: 0;
  }
  .footer-col .footer-title {
    font-size: 0.98rem;
    margin-bottom: 6px;
  }
  .footer-col .footer-links a {
    font-size: 0.89em;
    padding: 2px 10px;
    border-radius: 12px;
  }
  .footer-col .footer-links.features {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .footer-col .footer-links.features a {
    text-align: left;
  }
}
