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

html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a1a;
  color: #ffffff;
}

/* ==================== HEADER ==================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 40px;
  background: #1a1a2e;
  z-index: 10;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

#logo {
  width: auto;
  object-fit: contain;
}

#logo.logo-small { height: 50px; }
#logo.logo-medium { height: 70px; }
#logo.logo-large { height: 90px; }

#site-title.hidden {
  display: none;
}

#logo.hidden {
  display: none;
}

#site-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

.header-right {
  display: flex;
  align-items: center;
}

.clock-weather {
  display: flex;
  align-items: center;
  gap: 40px;
}

.clock-block {
  text-align: right;
}

.clock {
  font-size: 48px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.date {
  font-size: 20px;
  opacity: 0.85;
  text-transform: capitalize;
}

/* ==================== METEO ==================== */
.weather {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 30px;
  border-left: 2px solid rgba(255,255,255,0.2);
}

.weather.hidden {
  display: none;
}

.weather-icon {
  font-size: 40px;
  line-height: 1;
}

.weather-temp {
  font-size: 36px;
  font-weight: 700;
}

.weather-desc {
  font-size: 18px;
  opacity: 0.85;
  max-width: 120px;
  line-height: 1.2;
}

/* ==================== CARROUSEL ==================== */
main {
  position: relative;
  height: 920px; /* 1080 - 100 (header) - 60 (ticker) */
  overflow: hidden;
}

#hls-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a1a;
}

/* ==================== BANDEAU DEFILANT ==================== */
footer {
  height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a2e;
  position: relative;
}

footer.hidden {
  display: none;
}

/* Ajuster la hauteur du carrousel quand le bandeau est masqué */
footer.hidden ~ main,
main:has(~ footer.hidden) {
  height: 980px;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

#ticker-text {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* ==================== NO TICKER: expand carousel ==================== */
body.no-ticker main {
  height: 980px;
}

body.no-ticker footer {
  display: none;
}
