/* Evening screen for the TV: 1920x1080, scaled to fit any screen (see tv.js) */
html, body { margin: 0; height: 100%; background: #071418; overflow: hidden; font-family: 'Be Vietnam Pro', system-ui, sans-serif; }
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; width: 1920px; height: 1080px; flex: none; overflow: hidden; background: var(--teal); color: var(--cream); transform-origin: center; }
* { box-sizing: border-box; margin: 0; padding: 0; }

.bg { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(244,239,236,.07) 2.5px, transparent 3px), radial-gradient(ellipse at 78% 30%, rgba(228,93,118,.16), transparent 55%), radial-gradient(ellipse at 10% 100%, #1B414B, transparent 60%); background-size: 64px 64px, auto, auto; animation: drift 60s linear infinite; }
@keyframes drift { to { background-position: 64px 64px, 0 0, 0 0; } }

/* --- Header */
header { position: absolute; left: 100px; right: 100px; top: 44px; display: flex; align-items: center; gap: 28px; }
.logo { display: block; width: 170px; height: 72px; background: var(--cream); -webkit-mask: url(/assets/logo.svg) left center / contain no-repeat; mask: url(/assets/logo.svg) left center / contain no-repeat; }
.event { font-size: 30px; font-weight: 700; color: var(--mist); letter-spacing: .5px; }
.event span { color: var(--coral); margin: 0 6px; }
.clock { margin-left: auto; font-size: 60px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; }

.eyebrow { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: var(--coral); }

/* --- Program */
.program { position: absolute; left: 100px; top: 170px; width: 900px; }
.program h1 { font-size: 84px; font-weight: 900; letter-spacing: -3px; line-height: 1; margin: 8px 0 34px; }
.program ol { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.program li { position: relative; display: grid; grid-template-columns: 220px 1fr; align-items: center; padding: 18px 34px; border-radius: 28px; transition: background .6s, opacity .6s, transform .6s; }
.program li .when { font-size: 34px; font-weight: 800; color: var(--coral); font-variant-numeric: tabular-nums; }
.program li .what b { display: block; font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.program li .what span { display: block; font-size: 25px; font-weight: 500; color: var(--mist); margin-top: 4px; }
.program li.past { opacity: .35; }
.program li.now { background: var(--coral); color: var(--teal); transform: scale(1.03); box-shadow: 0 18px 0 var(--coral-deep), 0 0 80px rgba(228,93,118,.35); }
.program li.now .when, .program li.now .what span { color: var(--teal); }
.program li.now::after { content: 'En ce moment'; position: absolute; right: 28px; top: -16px; padding: 7px 18px; border-radius: 999px; background: var(--teal); color: var(--cream); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }

/* --- Right column */
aside { position: absolute; left: 1080px; right: 100px; top: 170px; bottom: 60px; display: flex; flex-direction: column; gap: 20px; }

.countdown { position: relative; flex: none; height: 318px; padding: 30px 44px; border-radius: 36px; background: var(--cream); color: var(--teal); overflow: hidden; box-shadow: 0 18px 0 #B9ADA7; }
.cd-eyebrow { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: var(--coral-deep); }
.countdown h2 { font-size: 46px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; margin-top: 6px; white-space: nowrap; }
.cd-time { font-size: 132px; font-weight: 900; letter-spacing: -5px; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; color: var(--coral); }
.cd-time.big-text { font-size: 70px; letter-spacing: -2.5px; white-space: nowrap; margin-top: 30px; margin-bottom: 18px; }
.cd-sub { font-size: 25px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.cd-scappy { position: absolute; right: 30px; top: 104px; width: 120px; rotate: -6deg; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -14px; } }
.countdown.hot .cd-time { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { scale: 1.04; } }
.countdown.live { background: var(--coral); box-shadow: 0 18px 0 var(--coral-deep), 0 0 90px rgba(228,93,118,.45); }
.countdown.live .cd-eyebrow, .countdown.live .cd-sub, .countdown.live .cd-time { color: var(--teal); }

.cards { flex: none; display: flex; align-items: center; gap: 30px; padding: 24px 32px; border-radius: 32px; background: var(--teal-soft); border: 3px solid var(--teal-line); }
.cards-text { flex: 1; }
.cards h3 { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-top: 6px; }
.cards p { font-size: 23px; color: var(--mist); margin-top: 6px; line-height: 1.35; }
.cards p.url { font-size: 24px; font-weight: 800; color: var(--cream); }
.qr { width: 136px; height: 136px; padding: 10px; border-radius: 20px; background: var(--cream); flex: none; }

.extras { display: flex; gap: 22px; }
.extra { flex: 1; display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 22px; background: var(--teal-soft); border: 3px solid var(--teal-line); font-size: 24px; font-weight: 700; line-height: 1.2; }
.extra b { font-size: 36px; }

.tombola { margin-top: auto; display: flex; align-items: center; gap: 20px; padding: 18px 28px; border-radius: 26px; background: var(--coral); color: var(--teal); }
.tombola b { font-size: 50px; }
.tombola p { font-size: 23px; font-weight: 600; line-height: 1.35; }
.tombola strong { font-weight: 900; }
