/* PokéStation Live – couleurs de la boutique */
:root {
  --violet: #382E49; --violet-dark: #2A2238; --violet-deep: #231C30; --line: #4A3F5E; --line-strong: #5C5073;
  --yellow: #FFE506; --gold: #AD956B; --text: #F4F5FA; --muted: #C9BFDA; --soft: #E8E2F0;
  --red: #E5383B; --ok-bg: #1E4D34; --ok: #8EF0B5; --ko-bg: #5A1E22; --ko: #FFB3B5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--violet-dark); color: var(--text); font-family: Mulish, system-ui, sans-serif; }
a { color: var(--yellow); }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--violet); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.badge-live { padding: 3px 8px; border-radius: 6px; background: var(--yellow); color: var(--violet); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.topnav { display: flex; gap: 14px; font-size: 14px; font-weight: 700; }
.topnav a { color: var(--soft); text-decoration: none; padding: 10px 0; }

main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .live { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--violet-deep); display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; font-size: 14px; }
.video iframe, .video #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-shield { position: absolute; inset: 0; z-index: 1; }
.sound-btn { position: absolute; bottom: 12px; right: 12px; z-index: 2; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.onair, .viewers { z-index: 2; }
.onair { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; z-index: 1; }
.viewers { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; z-index: 1; }

.card { padding: 16px; border-radius: 16px; background: var(--violet); border: 1px solid var(--line); }
.lot { display: flex; flex-direction: column; gap: 14px; }
.lot-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lot-head img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--violet-deep); flex: none; }
.lot-title { font-size: 18px; font-weight: 800; margin: 2px 0 0; }
.small { font-size: 13px; color: var(--muted); }
.timer { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.timer.hot { color: #FF6B6E; }
.ext { font-size: 11px; font-weight: 800; color: var(--yellow); text-align: right; }
.price { font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pill { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; background: var(--line); color: var(--soft); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.ko { background: var(--ko-bg); color: var(--ko); }
.bids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btn { min-height: 48px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--yellow); color: var(--violet); font-size: 16px; font-weight: 900; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--line); color: var(--text); font-weight: 700; }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; }
.btn.block { width: 100%; }

.feed { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; font-size: 14px; }
.feed b { color: var(--yellow); }
.feed .bid b { color: var(--gold); }
.chat { display: flex; gap: 8px; margin-top: 10px; }
.chat input { flex: 1; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--violet-deep); color: var(--text); }

.form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; }
.form h1 { margin: 6px 0 0; font-size: 26px; font-weight: 900; }
.form label { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.form input, .form select { min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--violet-deep); color: var(--text); }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 600 !important; line-height: 1.5; }
.check input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#card-element { padding: 12px; border-radius: 12px; background: #fff; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--violet); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--soft); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }

#toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 92vw; padding: 12px 16px; border-radius: 12px; background: #111; color: #fff; font-weight: 700; font-size: 14px; z-index: 20; }

/* Curseur « glisse pour enchérir » */
.slide { --fill: 56px; position: relative; height: 64px; border-radius: 999px; background: var(--violet-deep); border: 1px solid var(--line-strong); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.slide::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--yellow); opacity: .25; border-radius: 999px; }
.slide-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 48px; font-size: 16px; font-weight: 700; color: var(--soft); pointer-events: none; }
.slide-label b { color: var(--yellow); margin-left: 6px; font-size: 18px; }
.slide-thumb { position: absolute; top: 4px; left: 4px; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--violet); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; cursor: grab; touch-action: none; }
.slide-thumb:active { cursor: grabbing; }
.slide:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.slide.done { display: flex; align-items: center; justify-content: center; border-color: #2f7a52; background: var(--ok-bg); }
.slide.done .slide-label { position: static; padding: 0; color: var(--ok); }
.slide.done::before { display: none; }
.video .onair, .video .viewers { z-index: 2; }

/* Barre de réactions et émojis volants */
.reactions { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.react-btn { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: var(--violet-deep); font-size: 22px; cursor: pointer; touch-action: manipulation; }
.react-btn.pop { animation: pop .25s ease-out; }
@keyframes pop { 50% { transform: scale(1.3); } }
.float-emoji { position: fixed; bottom: -60px; z-index: 30; font-size: var(--size); pointer-events: none; animation: floatUp 3s ease-out forwards; will-change: transform, opacity; }
@keyframes floatUp {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: 1; transform: translate(0, -10vh) scale(1); }
  100% { transform: translate(var(--drift), -105vh) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .float-emoji { animation-duration: 1.2s !important; } }

/* Mise en page du live : vidéo, chat, puis encart d'enchère compact */
.side { display: flex; flex-direction: column; gap: 12px; }
.chatcard { padding: 12px; }
.chatcard .feed { max-height: 34vh; min-height: 90px; }
.lot.compact { padding: 12px; gap: 10px; }
@media (max-width: 899px) {
  main { padding: 10px 10px 0; }
  .live { gap: 10px; }
  .lot.compact { position: sticky; bottom: 0; z-index: 5; border-radius: 16px 16px 0 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
}
.lot-row { display: flex; align-items: center; gap: 12px; }
.lot-row img, .lot-noimg { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; background: var(--violet-deep); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.lot-info { flex: 1; min-width: 0; }
.lot.compact .lot-title { font-size: 16px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot.compact .small { font-size: 12px; }
.lot-price { text-align: right; flex: none; }
.lot.compact .price { font-size: 26px; line-height: 1.1; }
.lot.compact .timer { font-size: 18px; text-align: right; }
.lot.compact .ext { font-size: 10px; }
.status-sold { font-size: 16px; font-weight: 800; color: #FF6B6E; }
.winner { font-size: 15px; font-weight: 700; color: var(--soft); }
.winner b { color: var(--yellow); }
.waiting { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--violet-deep); color: var(--muted); font-weight: 700; font-size: 15px; text-align: center; padding: 0 16px; }
.won-note { margin: 0; font-size: 13px; color: var(--ok); }
.lot.compact .slide { height: 56px; }
.lot.compact .slide-thumb { width: 48px; height: 48px; font-size: 28px; }

/* ===== Live plein écran portrait ===== */
body.live-mode { overflow: hidden; background: #000; }
body.live-mode main { max-width: none; padding: 0; }
body.live-mode .top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: linear-gradient(rgba(0,0,0,.55), transparent); border: 0; }
body.live-mode .top .brand img { height: 34px; }
body.live-mode .topnav a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

.stage { container-type: size; position: relative; height: 100dvh; width: 100%; max-width: 520px; margin: 0 auto; overflow: hidden; background: var(--violet-deep); }
.stage .video { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.video-wait { color: var(--muted); }
/* La vidéo portrait remplit tout l'écran (recadrage léger si besoin). */
.stage .video #yt-player, .stage .video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  right: auto; bottom: auto;
  width: max(100cqw, calc(100cqh * 9 / 16)) !important; height: max(100cqh, calc(100cqw * 16 / 9)) !important;
}
.stage .onair { top: 64px; left: 12px; }
.stage .viewers { top: 64px; right: 12px; }
.stage .sound-btn { top: 100px; right: 12px; bottom: auto; }

.overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 0 10px max(10px, env(safe-area-inset-bottom)); pointer-events: none; }
.overlay > * { pointer-events: auto; }

/* Chat transparent, lisible grâce à une ombre portée */
.chat-area { padding: 0; background: none; border: 0; }
.chat-area .feed { max-height: 28dvh; min-height: 0; overflow-y: auto; gap: 4px; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.9); -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); padding-right: 8px; }
.chat-area .feed .small { color: #fff; }
.chat-area .chat { margin-top: 6px; }
.chat-area .chat input { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; }
.chat-area .chat input::placeholder { color: rgba(255,255,255,.75); }
.chat-area .chat .btn { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; min-width: 48px; padding: 0; color: #fff; }
.chat-area .reactions { margin-top: 6px; }
.chat-area .react-btn { background: rgba(0,0,0,.3); min-height: 40px; font-size: 20px; }
.stage.chat-hidden .chat-area, .stage.chat-hidden .lot.compact { display: none; }

/* Bouton œil */
.eye-btn { position: absolute; right: 10px; bottom: calc(100% + 10px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Encart d'enchère semi-transparent */
.stage .lot.compact { position: static; background: rgba(20,15,30,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: none; padding: 10px 12px; }
.stage .lot.compact .lot-title, .stage .lot.compact .price, .stage .winner { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.stage .waiting { background: rgba(0,0,0,.35); color: #fff; min-height: 48px; }
.stage .slide { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.3); }
.stage .slide-label { color: #fff; }
.stage .slide.done { background: rgba(30,77,52,.75); }
.stage .lot-row img, .stage .lot-noimg { width: 52px; height: 52px; }

/* Barre d'icônes verticale à droite du live */
body.live-mode .topnav { display: none; }
.rail { position: absolute; right: 8px; top: 30%; z-index: 4; display: flex; flex-direction: column; gap: 14px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; font: inherit; }
.rail-ico { position: relative; width: 46px; height: 46px; border-radius: 15px; background: rgba(20,15,30,.5); border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rail-ico svg { width: 24px; height: 24px; }
.rail-btn:active .rail-ico { transform: scale(.92); }
.rail-label { font-size: 11px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.rail-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--violet); font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.stage .chat-area .feed, .stage .chat-area .chat, .stage .chat-area .reactions { margin-right: 62px; }
.stage .lot.compact { margin-right: 0; }

/* Panneau « Boutique » */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70%; z-index: 8; background: var(--violet); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--line); color: var(--text); font-size: 16px; cursor: pointer; }
.sheet-list { overflow-y: auto; padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet-item { display: flex; gap: 12px; align-items: center; }
.sheet-item img, .sheet-item .lot-noimg { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.sheet-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sheet-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Ajustements : éléments plus compacts pour laisser voir l'objet ===== */
.stage .onair { top: 58px; right: 10px; left: auto; padding: 2px 7px; font-size: 10px; border-radius: 5px; letter-spacing: .05em; }
.stage .viewers { top: 82px; right: 10px; padding: 2px 7px; font-size: 10px; border-radius: 5px; }
.stage .sound-btn { top: 106px; right: 10px; min-height: 30px; padding: 0 10px; font-size: 12px; }
.rail { top: 25%; gap: 9px; right: 6px; }
.rail-ico { width: 38px; height: 38px; border-radius: 12px; }
.rail-ico svg { width: 20px; height: 20px; }
.rail-label { font-size: 10px; }
.rail-badge { min-width: 17px; height: 17px; font-size: 10px; top: -5px; right: -5px; }
.stage .chat-area .feed, .stage .chat-area .chat, .stage .chat-area .reactions { margin-right: 52px; }
.chat-area .feed { font-size: 14px; max-height: 24dvh; }
.chat-area .chat { gap: 6px; }
.chat-area .chat input { min-height: 38px; font-size: 16px; padding: 0 14px; }
.chat-area .chat .btn { min-height: 38px; min-width: 38px; font-size: 14px; }
.chat-area .react-btn { min-height: 32px; font-size: 17px; background: none; }
.stage .lot.compact { padding: 8px 10px; gap: 7px; border-radius: 16px; }
.stage .lot-row { gap: 10px; }
.stage .lot-row img, .stage .lot-noimg { width: 42px; height: 42px; font-size: 20px; }
.stage .lot.compact .lot-title { font-size: 15px; }
.stage .lot.compact .small { font-size: 11px; }
.stage .lot.compact .price { font-size: 21px; }
.stage .lot.compact .timer { font-size: 16px; }
.stage .lot.compact .slide { height: 46px; }
.stage .lot.compact .slide-thumb { width: 38px; height: 38px; font-size: 22px; }
.stage .lot.compact .slide-label { font-size: 14px; padding-left: 40px; }
.stage .lot.compact .slide-label b { font-size: 15px; }
.stage .waiting { min-height: 42px; font-size: 14px; }
.stage .winner { font-size: 13px; }

/* Pages (compte, achats, carte…) ouvertes par-dessus le live */
#page { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--violet-dark); padding: 0 16px 32px; }
.page-bar { position: sticky; top: 0; z-index: 1; margin: 0 -16px 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: var(--violet); border-bottom: 1px solid var(--line); }
.page-back { font-weight: 800; text-decoration: none; }

/* Encart d'enchère encore plus compact */
.stage .lot.compact { padding: 6px 10px 8px; gap: 5px; }
.stage .lot-row img, .stage .lot-noimg { width: 36px; height: 36px; border-radius: 8px; font-size: 17px; }
.stage .lot.compact .lot-title { font-size: 14px; }
.stage .lot.compact .small { font-size: 10.5px; }
.stage .lot.compact .price { font-size: 19px; }
.stage .lot.compact .timer { font-size: 15px; }
.stage .lot.compact .slide { height: 40px; width: 82%; margin: 0 auto; }
.stage .lot.compact .slide-thumb { width: 32px; height: 32px; font-size: 20px; }
.stage .lot.compact .slide-label { font-size: 13px; padding-left: 34px; }
.stage .lot.compact .slide-label b { font-size: 14px; }
.stage .waiting { min-height: 38px; font-size: 13px; width: 82%; margin: 0 auto; }
.sold-bar { width: 82%; margin: 0 auto; min-height: 38px; border-radius: 999px; background: #E5383B; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; letter-spacing: .08em; font-size: 14px; }
.won-note { font-size: 12px; text-align: center; }
/* Clignotement des 5 dernières secondes */
.slide.urgent { animation: urgent .5s ease-in-out infinite alternate; border-color: #FF6B6E; }
@keyframes urgent { from { box-shadow: 0 0 0 0 rgba(255,107,110,.0); background: rgba(0,0,0,.35); } to { box-shadow: 0 0 16px 3px rgba(255,107,110,.75); background: rgba(229,56,59,.45); } }
@media (prefers-reduced-motion: reduce) { .slide.urgent { animation: none; background: rgba(229,56,59,.45); } }

/* Pastilles d'identité */
.av, .av-sm, .av-big { flex: none; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; }
.av { width: 28px; height: 28px; font-size: 13px; }
.av-sm { width: 20px; height: 20px; font-size: 10px; margin-right: 6px; vertical-align: middle; }
.av-big { width: 72px; height: 72px; font-size: 30px; }
.feed .msg { display: flex; gap: 8px; align-items: flex-start; }
.feed .msg-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.feed .msg-body b { font-size: 13px; }
.feed .msg.info .av-initial { background: var(--gold) !important; }
.winner { display: flex; align-items: center; }
.avatar-edit { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--violet); border: 1px solid var(--line); }

/* Animation du gagnant */
.celebrate { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.celebrate-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 30px; border-radius: 24px; background: rgba(20,15,30,.82); border: 2px solid var(--yellow); box-shadow: 0 0 40px rgba(255,229,6,.45); animation: winPop 2.5s cubic-bezier(.2,1.4,.4,1) forwards; }
.celebrate-card .av-big { width: 84px; height: 84px; border: 3px solid var(--yellow); }
.celebrate-name { font-size: 24px; font-weight: 900; color: #fff; }
.celebrate-price { font-size: 30px; font-weight: 900; color: var(--yellow); }
@keyframes winPop { 0% { transform: scale(.3); opacity: 0; } 12% { transform: scale(1.08); opacity: 1; } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.confetti { position: absolute; top: 50%; left: 50%; width: 9px; height: 14px; border-radius: 2px; animation: confetti 1.9s ease-out forwards; }
@keyframes confetti { 0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 80vh)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .celebrate-card { animation-duration: 1.5s; } }

/* Encart d'enchère adjugée : plus compact */
.stage .lot.compact .winner { font-size: 12px; min-height: 0; }
.stage .lot.compact .winner .pill { padding: 2px 9px; font-size: 12px; border-radius: 999px; }
.stage .lot.compact .won-note { margin: 0; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .lot.compact .status-sold { font-size: 13px; }
.stage .sold-bar { min-height: 30px; font-size: 12px; width: 70%; }

/* Le lecteur YouTube déborde de 70 px en haut et en bas : son bandeau de titre et son logo restent hors champ. */
.stage .video #yt-player, .stage .video iframe { height: calc(max(100cqh, calc(100cqw * 16 / 9)) + 140px) !important; }
.winner b { margin-right: 4px; }

/* Badges « EN DIRECT » + spectateurs, alignés avec le logo en haut à droite */
.stage .video-badges { position: absolute; z-index: 11; right: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 9px); display: flex; gap: 6px; align-items: center; }
.stage .video-badges .onair, .stage .video-badges .viewers { position: static; padding: 3px 8px; font-size: 11px; border-radius: 6px; }
/* Bouton son : icône micro */
.stage .sound-btn { top: calc(max(10px, env(safe-area-inset-top)) + 46px); right: 10px; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(20,15,30,.5); border: 1px solid rgba(255,255,255,.18); }
.stage .sound-btn svg { width: 20px; height: 20px; }
.stage .sound-btn.muted { color: #FF8A8C; }
body.live-mode .top { pointer-events: none; } body.live-mode .top .brand { pointer-events: auto; }
.sound-ico.muted { color: #FF8A8C; }
.rail { top: max(15%, calc(env(safe-area-inset-top) + 70px)); }
