/* Dayzo TV Mode Styles */

body.mode-tv {
  background: #000000;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: var(--font-family-base);
}

.tv-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.tv-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}

.tv-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 3vh 4vw;
}

/* ── Branding ── */
.tv-branding {
  display: flex;
  align-items: center;
}

.tv-brand-logo {
  font-size: clamp(1.1rem, 2.5vh, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.tv-brand-logo span {
  color: var(--color-primary);
  font-weight: 400;
  font-size: 0.75em;
  margin-left: 6px;
  letter-spacing: 0.05em;
}

/* ── Main Content ── */
.tv-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2vh;
  min-height: 0;
}

.tv-title {
  font-size: clamp(2rem, 8vh, 7rem);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 8px 32px rgba(0,0,0,0.8);
  letter-spacing: -0.03em;
  color: var(--color-text, #FFFFFF);
  line-height: 1.1;
  max-width: 90vw;
}

.tv-countdown-wrap {
  display: flex;
  gap: clamp(2rem, 5vw, 8rem);
  justify-content: center;
  align-items: flex-start;
}

.tv-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}

.tv-num {
  font-size: clamp(4rem, 17vh, 14rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 12px 48px rgba(0,0,0,0.5);
  font-family: var(--font-family-numbers);
  color: var(--color-numbers, #FFFFFF);
}

.tv-label {
  font-size: clamp(0.75rem, 2vh, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Final 10 seconds ── */
.tv-final-10 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tv-final-10 .tv-final-num {
  font-size: 45vh;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 100px rgba(124, 58, 237, 0.8);
  line-height: 1;
}

.tv-finished-text {
  font-size: clamp(3rem, 10vh, 9rem);
  font-weight: 900;
  text-align: center;
  color: #FFFFFF;
}

/* ── Footer (QR) ── */
.tv-footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

[dir="rtl"] .tv-footer {
  justify-content: flex-start;
}

.tv-qr-region {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  color: #000;
}

.tv-qr-text {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: #111;
}

#tv-qr-canvas {
  width: 80px !important;
  height: 80px !important;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tv-num { font-size: 12vh; }
  .tv-title { font-size: 5vh; }
  .tv-countdown-wrap { gap: 4vw; }
  .tv-qr-region { padding: 8px 14px; }
  #tv-qr-canvas { width: 60px !important; height: 60px !important; }
}
