/* DiMovie — reconstitution des écrans de l'application (thème « Nuit »), présentés en 3D.
   Chaque écran est dessiné à 1280 × 720 puis mis à l'échelle par screens.js.
   Les images viennent de site/img/ (CC0 / domaine public, voir img/CREDITS.md). Titres, chaînes et équipes inventés. */

/* ---------- Présentation 3D ---------- */
.shot { position: relative; width: min(1100px, 100%); max-width: none !important; margin: 56px 0 0; perspective: 1800px; }
.screen > .shot { max-width: none; }
.tv3d {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, .08);
  transform-style: preserve-3d; will-change: transform;
  transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 8deg)) translateZ(0);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 0 10px #07080c, 0 0 0 11px rgba(255, 255, 255, .06);
  transition: transform .2s linear;
}
.tv3d::after { /* reflet de vitre */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .04) 100%);
}
.shot::after { /* lueur sous l'écran */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 80px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(199, 137, 31, .22), transparent 70%); filter: blur(20px);
}
.shot figcaption { margin-top: 22px; font: .74rem var(--mono); color: var(--mute); letter-spacing: .06em; }
.shot.right { margin-left: auto; }

/* ---------- Écran de l'application ---------- */
.ui {
  --bg: #0a0f1a; --sf: #141b2b; --sh: #1e2740; --ac: #c7891f; --tx: #f1f5f9; --td: #94a3b8;
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0;
  background: var(--bg); color: var(--tx); overflow: hidden;
  font: 15px/1.35 Roboto, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: 0;
}
.ui * { box-sizing: border-box; }
.ui-top { height: 78px; display: flex; align-items: center; gap: 38px; padding: 0 34px; position: relative; z-index: 2; }
.ui-logo { display: flex; align-items: center; gap: 9px; font-size: 21px; color: var(--tx); }
.ui-logo svg { width: 22px; height: 22px; }
.ui-logo span { font-weight: 300; letter-spacing: .2px; }
.ui-logo b { font-weight: 700; }
.ui-nav { display: flex; gap: 34px; align-items: center; color: var(--td); font-size: 15px; }
.ui-nav .on { color: var(--tx); font-weight: 600; }
.ui-nav svg { width: 19px; height: 19px; }
.ui-icons { margin-left: auto; display: flex; gap: 22px; align-items: center; color: var(--td); }
.ui-icons svg { width: 21px; height: 21px; }
.ui-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3b7be0; color: #fff; font-size: 13px; font-weight: 600; }
.ui-body { padding: 0 34px; position: relative; z-index: 1; }
.ui-h { font-size: 19px; font-weight: 500; margin: 6px 0 14px; }
.ui-row { display: flex; gap: 16px; margin-bottom: 26px; }
.ui-dim { color: var(--td); }
.ac { color: var(--ac); }

/* Affiches : photo libre + titre inventé composé en CSS */
.pos {
  position: relative; flex: none; width: 150px; height: 225px; border-radius: 10px; overflow: hidden;
  background: var(--sf) center / cover no-repeat;
}
.pos::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .7)); }
.pos .pt { position: absolute; left: 8px; right: 8px; bottom: 14px; text-align: center; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); line-height: 1; }
.pt.s1 { font: 800 19px/1 Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.pt.s2 { font: italic 600 21px/1 Georgia, serif; }
.pt.s3 { font: 300 13px/1.15 -apple-system, Arial, sans-serif; text-transform: uppercase; letter-spacing: 4px; }
.pt.s4 { font: 900 22px/.95 "Arial Black", Arial, sans-serif; text-transform: uppercase; letter-spacing: -1px; }
.pos .new { position: absolute; top: 8px; left: 8px; background: var(--ac); color: #1a1205; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; z-index: 1; }
.pos .rate { position: absolute; right: 7px; bottom: 5px; font-size: 10px; color: rgba(255, 255, 255, .8); z-index: 1; }
.f { outline: 3px solid var(--ac); outline-offset: 2px; }
.pos.f { transform: scale(1.05); z-index: 2; }

/* Grande carte mise en avant */
.feat { position: relative; flex: none; width: 400px; height: 225px; border-radius: 12px; overflow: hidden; background: center / cover no-repeat; }
.feat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .88)); }
.feat .in { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.chips { display: flex; gap: 6px; margin-bottom: 6px; }
.chips span { font-size: 10.5px; font-weight: 600; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2); padding: 2px 7px; border-radius: 4px; }
.feat h4 { margin: 0; font-size: 16px; font-weight: 600; }
.feat .m { font-size: 11.5px; color: #cbd5e1; margin: 3px 0; }
.feat p { margin: 0; font-size: 11px; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Cartes larges (replay, continuer) */
.wcard { flex: none; width: 270px; border-radius: 10px; overflow: hidden; background: var(--sf); }
.wcard .im { height: 118px; background: center / cover no-repeat; position: relative; }
.wcard .lg { position: absolute; left: 8px; top: 8px; font: 800 10px/1 Arial, sans-serif; letter-spacing: .5px; padding: 4px 6px; border-radius: 3px; background: rgba(0, 0, 0, .6); }
.wcard .tx { padding: 8px 10px 10px; }
.wcard b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard small { font-size: 10.5px; color: var(--td); }
.prog { height: 3px; background: rgba(255, 255, 255, .15); margin-top: 7px; border-radius: 2px; }
.prog i { display: block; height: 100%; background: var(--ac); border-radius: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; color: var(--tx); }
.pill.on { background: var(--sh); border-color: transparent; }

/* Guide TV */
.gd-top { display: flex; gap: 22px; padding: 0 34px; height: 232px; }
.gd-prev { width: 410px; height: 230px; border-radius: 10px; background: #000 center / cover no-repeat; position: relative; overflow: hidden; }
.gd-info { flex: 1; padding-top: 2px; }
.gd-info .c { font-size: 12px; color: var(--td); }
.gd-info h4 { margin: 2px 0 6px; font-size: 20px; font-weight: 500; }
.gd-info .t { font-size: 12.5px; color: var(--td); display: flex; align-items: center; gap: 10px; }
.gd-info .bar { width: 140px; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 2px; }
.gd-info .bar i { display: block; width: 42%; height: 100%; background: var(--ac); }
.gd-info p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.75; color: #cbd5e1; }
.gd-tools { display: flex; align-items: center; gap: 10px; padding: 12px 34px 0; font-size: 11.5px; color: var(--td); }
.gd-times { display: grid; grid-template-columns: 220px 1fr 1fr 1fr 1fr; padding: 12px 34px 6px; font-size: 13px; color: #cbd5e1; }
.gd-rows { padding: 0 34px; position: relative; }
.gd-row { display: grid; grid-template-columns: 196px 1fr; gap: 6px; height: 44px; margin-bottom: 6px; }
.gd-ch { background: var(--sf); border-radius: 6px; display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 11px; color: var(--td); }
.gd-ch.cur { background: var(--sh); }
.gd-ch .lg { flex: 1; text-align: center; font: 900 13px/1 "Arial Black", Arial, sans-serif; letter-spacing: -.5px; color: #fff; }
.gd-ps { position: relative; }
.gd-p { position: absolute; top: 0; bottom: 0; background: var(--sf); border-radius: 6px; padding: 0 12px; display: flex; align-items: center; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-p.now { background: var(--sh); }
.gd-p.sel { background: var(--ac); color: #1a1205; }
.gd-now { position: absolute; top: -6px; bottom: 0; left: calc(34px + 202px + (100% - 236px - 34px) * .24); width: 1.5px; background: var(--ac); }

/* Fiche film */
.fi-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.fi-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0f1a 30%, rgba(10, 15, 26, .7) 55%, rgba(10, 15, 26, .15)), linear-gradient(0deg, #0a0f1a 5%, rgba(10, 15, 26, 0) 45%); }
.fi { position: relative; z-index: 1; padding: 56px 42px 0; max-width: 820px; }
.fi h3 { margin: 0; font-size: 38px; font-weight: 600; }
.fi .m { color: #cbd5e1; font-size: 14px; margin: 8px 0 12px; }
.fi p { font-size: 14px; line-height: 1.55; color: #e2e8f0; margin: 0 0 8px; }
.fi .cr { font-size: 12.5px; color: var(--td); margin: 2px 0; }
.fi .lbl { font-size: 12.5px; color: var(--td); margin: 18px 0 8px; }
.vers { display: flex; gap: 10px; }
.vers span { font-size: 12px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
.vers span b { font-weight: 700; }
.vers .f { outline-offset: 0; border-color: var(--ac); }
.btns { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.btns span { height: 50px; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: 14px; background: rgba(10, 15, 26, .4); }
.btns .main { background: var(--ac); border-color: var(--ac); color: #1a1205; padding: 0 30px; font-weight: 500; }
.btns .rd { width: 42px; height: 42px; padding: 0; justify-content: center; }
.cast { display: flex; gap: 30px; margin-top: 10px; }
.cast div { text-align: center; font-size: 11px; color: #cbd5e1; }
.cast i { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 6px; font: normal 600 22px/1 Arial, sans-serif; color: #fff; }

/* Sport */
.sp-chips { display: flex; gap: 8px; padding: 0 34px 10px; }
.sp-tick { display: flex; gap: 0; background: var(--sf); margin: 0 34px 18px; border-radius: 8px; overflow: hidden; }
.sp-tick div { flex: none; padding: 9px 16px; border-right: 1px solid rgba(255, 255, 255, .06); font-size: 12px; white-space: nowrap; }
.sp-tick em { font-style: normal; color: #ff5c5c; font-size: 10px; margin-right: 6px; }
.sp-tick b { font-weight: 700; margin: 0 4px; }
.sp-grid { display: grid; grid-template-columns: 560px 1fr; gap: 18px; padding: 0 34px; }
.sp-live { position: relative; height: 300px; border-radius: 12px; overflow: hidden; background: center / cover no-repeat; }
.sp-live::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 15, 26, .95) 10%, rgba(10, 15, 26, .1) 70%); }
.sp-live .in { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.sp-live .tag { font-size: 11px; color: #ff5c5c; font-weight: 700; letter-spacing: .5px; }
.sp-score { display: flex; align-items: center; gap: 22px; margin: 8px 0; font-size: 22px; font-weight: 600; }
.sp-score b { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.crest { width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; font: 900 12px/1 Arial, sans-serif; color: #fff; }
.sp-res { background: var(--sf); border-radius: 12px; padding: 14px 16px; }
.sp-res h5 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--td); }
.sp-res .r { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sp-res .r b { font-variant-numeric: tabular-nums; }
.sp-next { display: flex; gap: 14px; padding: 18px 34px 0; }

/* Recherche */
.se-field { margin: 0 34px; width: 730px; height: 54px; border: 2px solid var(--ac); border-radius: 12px; background: var(--sf); display: flex; align-items: center; gap: 14px; padding: 0 18px; font-size: 17px; }
.se-field svg { width: 22px; height: 22px; color: var(--td); }
.se-mic { width: 54px; height: 54px; border-radius: 50%; background: var(--ac); color: #1a1205; display: grid; place-items: center; }

/* Profils */
.pr { height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; }
.pr h3 { margin: 0; font-size: 28px; font-weight: 500; }
.pr-list { display: flex; gap: 54px; }
.pr-list div { text-align: center; font-size: 14px; color: var(--td); position: relative; }
.pr-list i { display: grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; margin-bottom: 14px; font: normal 500 42px/1 Roboto, Arial, sans-serif; color: #fff; }
.pr-list .sel i { box-shadow: 0 0 0 5px #0a0f1a, 0 0 0 9px #fff; }
.pr-list .sel { color: var(--tx); }
.pr-list .kid { position: absolute; left: 50%; top: 112px; transform: translateX(-50%); background: #0a0f1a; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pr-list .lock { position: absolute; right: 8px; top: 96px; width: 26px; height: 26px; border-radius: 50%; background: #0a0f1a; display: grid; place-items: center; }

/* Réglages (sauvegarde) */
.st { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 6px 34px; }
.st-l div { padding: 11px 16px; border-radius: 8px; font-size: 14px; color: #cbd5e1; margin-bottom: 4px; }
.st-l .on { background: var(--sh); color: var(--tx); outline: 2px solid var(--ac); }
.st-r { background: var(--sf); border-radius: 14px; padding: 26px 30px; display: grid; grid-template-columns: 1fr 210px; gap: 30px; }
.st-r h4 { margin: 0 0 6px; font-size: 22px; font-weight: 500; }
.st-r p { margin: 0 0 18px; font-size: 13.5px; color: var(--td); line-height: 1.6; }
.st-opt { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 10px; background: var(--sh); margin-bottom: 10px; font-size: 14px; }
.st-opt.f { outline-offset: 0; }
.st-opt small { color: var(--td); font-size: 12px; }
.qr { background: #fff; border-radius: 12px; padding: 14px; }
.qr svg { width: 100%; height: auto; display: block; }
.st-r .qrl { font-size: 12px; color: var(--td); text-align: center; margin-top: 10px; }
