* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 50%, #0c0c1d 100%);
  color: #d0d0e0;
  min-height: 100vh;
  line-height: 1.5;
}

header {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #f5a623, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #8888aa;
  font-size: 1rem;
  margin-top: 0.25rem;
}

#hero-date {
  font-size: 1.5rem;
  color: #ccccee;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#hero-countdown {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

#hero-time {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 3.5rem;
  font-weight: 200;
  letter-spacing: 6px;
  color: #f5a623;
  line-height: 1.2;
}

#hero-label {
  font-size: 0.85rem;
  color: #8888bb;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  #hero-time {
    font-size: 2rem;
  }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

#video {
  margin-bottom: 2rem;
}

.stream-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.aspect-ratio-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.aspect-ratio-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hint {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  background: #0a0a0a;
}

#dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: rgba(30, 40, 70, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.card h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8888bb;
  margin-bottom: 1rem;
  font-weight: 500;
}

.countdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.countdown-item:last-child {
  border-bottom: none;
}

.countdown-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cest-time {
  font-size: 0.8rem;
  color: #aaaacc;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.weather-row:last-child {
  border-bottom: none;
}

.label {
  font-size: 0.85rem;
  color: #9999bb;
}

.value {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  color: #e0e0f0;
}

.highlight {
  color: #f5a623;
  font-weight: 600;
}

#status-connection {
  font-weight: 600;
}

#status-connection.connected {
  color: #4ade80;
}

#status-connection.disconnected {
  color: #f87171;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #555577;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  header h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  #dashboard {
    grid-template-columns: 1fr;
  }
}
