/* Lueur — 600×600, fond noir (transparent sur le Display) */
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: #f2f4f7; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#app { position: relative; width: 600px; height: 600px; max-width: 100vw; max-height: 100vh; margin: 0 auto; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.muted { color: #9aa3ad; }
.f { outline: 3px solid #ffb86b; outline-offset: 2px; }

/* Onglets */
.tabs { display: flex; gap: 6px; padding: 14px 16px 8px; flex-shrink: 0; align-items: center; }
.tabs .logo { font-weight: 800; font-size: 22px; margin-right: 8px; background: linear-gradient(90deg,#ffd27a,#ff5f6d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tab { font-size: 19px; padding: 6px 14px; border-radius: 999px; color: #9aa3ad; cursor: pointer; }
.tab.on { color: #fff; background: #1b1e24; }
.tab.f { outline-offset: 0; color: #fff; }
.content { flex: 1; overflow: hidden; position: relative; }
.banner { margin: 4px 16px 0; padding: 8px 12px; border-radius: 10px; background: #1b1e24; font-size: 15px; color: #c9d0d8; }

/* Rangées */
.rails { height: 100%; overflow: hidden; padding: 4px 0 40px; }
.rail { margin-bottom: 14px; }
.rail h3 { margin: 0 16px 8px; font-size: 20px; font-weight: 650; }
.row { display: flex; gap: 12px; overflow: hidden; padding: 4px 16px; scroll-padding: 16px; }
.card { flex: 0 0 236px; cursor: pointer; border-radius: 12px; }
.card .th { position: relative; width: 236px; height: 133px; border-radius: 12px; background: #15171c center/cover no-repeat; }
.card .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); font-size: 14px; padding: 1px 6px; border-radius: 6px; }
.card .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: #ff5f6d; border-radius: 0 0 0 12px; }
.card .t { font-size: 17px; line-height: 1.25; margin: 6px 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .c { font-size: 14px; margin: 2px 4px 0; color: #9aa3ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty, .msg { padding: 16px; font-size: 18px; color: #9aa3ad; }

/* Grille */
.grid { height: 100%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 4px 16px 40px; align-content: start; }
.grid .card { flex: none; width: 100%; }
.grid .card .th { width: 100%; height: auto; aspect-ratio: 16/9; }
.gridhead { padding: 4px 16px 8px; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.backbtn { font-size: 20px; cursor: pointer; color: #9aa3ad; padding: 0 6px; }

/* Thèmes */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 16px; }
.topic { padding: 22px 18px; border-radius: 16px; background: #15171c; font-size: 21px; font-weight: 600; cursor: pointer; }

/* Recherche */
.search { padding: 4px 16px; }
.query { font-size: 26px; min-height: 44px; padding: 6px 12px; border-bottom: 2px solid #2a2e36; margin-bottom: 12px; white-space: nowrap; overflow: hidden; }
.query .ph { color: #5d6470; }
.query .caret { display: inline-block; width: 2px; height: 26px; background: #ffb86b; vertical-align: -4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kb .krow { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.key { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: #15171c; font-size: 21px; cursor: pointer; padding: 0 10px; }
.key.wide { min-width: 96px; font-size: 18px; }
.key.go { background: #3a2a1a; color: #ffd27a; }
.key.chip { font-size: 16px; height: 38px; color: #c9d0d8; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 38px; }
.listening { color: #ff5f6d; }

/* Lecteur */
.player .stage { position: relative; width: 600px; height: 338px; background: #000; flex-shrink: 0; }
.player .stage > div, .player .stage iframe, .reel .stage > div, .reel .stage iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.player .info { padding: 12px 18px 0; }
.player .title { font-size: 20px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player .meta { font-size: 15px; margin-top: 4px; display: flex; justify-content: space-between; color: #9aa3ad; }
.progress { height: 5px; background: #23262d; border-radius: 3px; margin: 10px 0 12px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#ffd27a,#ff5f6d); }
.actions { display: flex; gap: 8px; justify-content: center; }
.btn { height: 46px; min-width: 64px; padding: 0 14px; border-radius: 12px; background: #15171c; display: grid; place-items: center; font-size: 18px; cursor: pointer; white-space: nowrap; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 19px; background: #000; color: #c9d0d8; }
.state { position: absolute; left: 12px; top: 10px; font-size: 15px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.back-hit { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 3; cursor: pointer; }

/* Shorts */
.reel .stage { position: absolute; left: 131px; top: 0; width: 338px; height: 600px; background: #000; }
.reel .side { position: absolute; top: 0; bottom: 0; width: 125px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 8px; font-size: 15px; }
.reel .side.l { left: 0; justify-content: space-between; color: #9aa3ad; }
.reel .side.r { right: 0; }
.reel .side.r .t { font-size: 16px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; }
.hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 14px; color: #5d6470; pointer-events: none; }
.spin { width: 34px; height: 34px; border: 3px solid #2a2e36; border-top-color: #ffb86b; border-radius: 50%; animation: sp 0.8s linear infinite; margin: 30px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
