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

html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: transparent;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Ticker bar ── */
.ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 1920px;
  height: 150px;
  display: flex;
  background: #0A1128;
  border-top: 3px solid #FFB800;
  z-index: 100;
}

/* ── Logo badge ── */
.ticker-logo {
  width: 160px;
  min-width: 160px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0A1128;
  border-right: 1px solid rgba(255,184,0,0.3);
}

.logo-img {
  max-height: 56px;
  max-width: 120px;
  object-fit: contain;
}

.logo-label {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* ── Info panel ── */
.ticker-info {
  width: 150px;
  min-width: 150px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px;
  border-right: 1px solid rgba(255,184,0,0.3);
  gap: 4px;
}

.info-time {
  font-size: 24px;
  font-weight: 800;
  color: #FFB800;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 1px;
}

.info-weather {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  line-height: 1.2;
}

.info-exchange {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  white-space: nowrap;
}

.info-exchange .rate {
  display: block;
}

.info-exchange .rate-label {
  color: #FFB800;
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.info-exchange .rate-value {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 16px;
}

/* ── Two-row container ── */
.ticker-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Individual row ── */
.ticker-row {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}

.row-news {
  background: #0A1128;
  border-bottom: 2px solid rgba(255,184,0,0.4);
}

.row-lottery {
  background: #141E3C;
}

/* ── Row labels ── */
.row-label {
  min-width: 120px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #FFB800;
  color: #0A1128;
  padding: 10px 16px;
  margin: 0 12px 0 0;
  text-align: center;
  flex-shrink: 0;
}

/* ── Scroll track ── */
.row-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.row-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  padding-left: 16px;
}

#news-content {
  animation: scroll-news var(--news-duration, 120s) linear infinite;
}

#lottery-content {
  animation: scroll-lottery var(--lottery-duration, 120s) linear infinite;
}

@keyframes scroll-news {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-lottery {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Separator ── */
.sep {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  color: rgba(255,184,0,0.7);
  font-size: 14px;
}

/* ── News item ── */
.news-item {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}

.news-text {
  font-size: 26px;
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ── Lottery item ── */
.lottery-item {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  gap: 8px;
}

.lottery-name {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.lottery-time {
  font-size: 16px;
  font-weight: 600;
  color: #FFB800;
  white-space: nowrap;
  margin-left: 6px;
}

/* ── Lottery balls ── */
.lottery-balls {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #0A1128;
  background: #FFFFFF;
  border: 2px solid #FFB800;
  box-shadow: none;
  text-shadow: none;
  flex-shrink: 0;
}

