/* ============================================================
   60Soniya — live.css
   IMZO ELEMENTI: 60 soniyalik aylanma taymer.
   Brend = "1 lot, 60 soniya, 1 g'olib". Taymer efirning ostiga
   tushib turadi, vaqt o'tishi bilan yashil → sariq → qizilga o'tadi,
   anti-snayp uzaytirishida "zarba" effekti beradi.
   ============================================================ */

.room { max-width: var(--maxw); margin: 0 auto; }

/* ---- Stage: video + ring overlay ---- */
.stage { position: relative; background: #000; aspect-ratio: 16/9; overflow: hidden;
  border-bottom: 1px solid var(--line); }
.stage iframe, .stage video, .stage .ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage video { object-fit: cover; background: #000; }
.stage .ph { display: grid; place-content: center; gap: 8px;
  background: radial-gradient(80% 60% at 50% 30%, #14201d, #070a0b); color: var(--muted); }
.stage .ph .big { font-family: var(--mono); font-size: 40px; color: var(--lime-dim); }
.stage__top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; z-index: 3; }
.stage__viewers { margin-left: auto; background: rgba(8,11,11,.6); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: 5px 11px; font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.stage__grad { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 2;
  background: linear-gradient(0deg, var(--bg) 6%, transparent); pointer-events: none; }

/* ---- The ring ---- */
.timer { position: relative; z-index: 4; display: grid; place-items: center;
  width: var(--d, 132px); height: var(--d, 132px); margin: -66px auto 0; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer .track { stroke: rgba(255,255,255,.08); }
.timer .prog { stroke: var(--ring, var(--lime)); stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke .6s ease; filter: drop-shadow(0 0 10px var(--ring, var(--lime))); }
.timer .face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.timer .secs { font-family: var(--mono); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.timer .lab { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.timer.is-low .secs { color: var(--red); }
.timer.is-mid .secs { color: var(--amber); }
/* anti-snipe "zarba" */
.timer.punch { animation: punch .5s cubic-bezier(.2,.9,.2,1); }
@keyframes punch { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.timer.punch .prog { filter: drop-shadow(0 0 22px var(--ring, var(--lime))); }
.ext-flag { text-align: center; color: var(--amber); font-weight: 800; font-size: 12.5px; letter-spacing: .04em;
  height: 16px; margin-top: 4px; opacity: 0; transition: opacity .2s; }
.ext-flag.show { opacity: 1; }

/* When the lot is idle / sold / waiting */
.timer.idle .prog { stroke: var(--surface-3); filter: none; }
.timer.idle .secs { font-size: 26px; color: var(--muted); }

/* ---- Lot panel ---- */
.lotpanel { padding: 14px var(--pad) 4px; }
.lot-head { display: flex; align-items: flex-start; gap: 10px; }
.lot-head h2 { flex: 1; }
.price-now { margin-top: 12px; }
.price-now .k { font-size: 12px; color: var(--muted); font-weight: 650; }
.price-now .v { font-family: var(--mono); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 9vw, 40px); letter-spacing: -.02em; line-height: 1.05; }
.price-now .v .cur { font-size: .42em; color: var(--muted); font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.price-now .v.bump { animation: bump .42s ease; }
@keyframes bump { 0% { transform: translateY(0); color: var(--lime); } 30% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.price-min { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.price-min b { font-family: var(--mono); color: var(--ink); }

.leader { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.leader .av { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-content: center; font-size: 11px; font-weight: 800; color: var(--lime); }

/* ---- Bid controls (thumb zone) ---- */
.bidbar { padding: 12px var(--pad) 16px; position: sticky; bottom: 76px; z-index: 12;
  background: linear-gradient(0deg, var(--bg) 60%, transparent); }
.quickrow { display: flex; gap: 8px; margin-bottom: 10px; }
.quickrow .btn { flex: 1; }
.bid-main { position: relative; }
.bid-main .btn { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bid-main .sub { position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 700; color: var(--on-lime); opacity: .7; font-family: var(--sans); }

/* Status line under the bid */
.status { margin-top: 10px; min-height: 22px; display: flex; align-items: center; gap: 9px;
  font-weight: 750; font-size: 14.5px; }
.status .pip { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status.win   { color: var(--lime); }   .status.win .pip   { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.status.out   { color: var(--red); }    .status.out .pip   { background: var(--red); }
.status.low   { color: var(--amber); }  .status.low .pip   { background: var(--amber); }
.status.won   { color: var(--lime); }   .status.won .pip   { background: var(--lime); }
.status.idle  { color: var(--muted); }  .status.idle .pip  { background: var(--surface-3); }

/* Won banner */
.wonbanner { margin: 12px var(--pad); padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(184,255,44,.16), rgba(255,210,62,.10));
  border: 1px solid color-mix(in srgb, var(--lime) 40%, var(--line)); }
.wonbanner h3 { color: var(--lime); font-size: 17px; }

/* ---- Chat ---- */
.chat { padding: 8px var(--pad) 0; }
.chat__log { display: flex; flex-direction: column; gap: 8px; max-height: 38vh; overflow-y: auto; padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch; }
.msg { font-size: 14px; line-height: 1.4; }
.msg b { color: var(--lime); font-weight: 700; margin-right: 6px; }
.msg.sys { color: var(--muted); font-style: italic; font-size: 13px; }
.msg.mine b { color: var(--amber); }
.chat__bar { position: sticky; bottom: 76px; display: flex; gap: 8px; padding: 8px 0 14px;
  background: linear-gradient(0deg, var(--bg) 70%, transparent); }
.chat__bar .input { min-height: 46px; }

/* Lot queue strip */
.queue { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--pad) 10px; -webkit-overflow-scrolling: touch; }
.qchip { flex: none; width: 92px; }
.qchip .qimg { width: 92px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-3); position: relative; }
.qchip .qb { position: absolute; left: 6px; top: 6px; font-size: 9px; padding: 2px 6px; }
.qchip small { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Seller control room mini */
.control { display: grid; gap: 10px; }
.control .live-dot { color: var(--red); font-weight: 800; }
