/* CeVine · Comunitate — package D: live webcams (camera card, player, vehicle strip). Sits on app.css / crowd.css tokens
   (--surface, --line, --muted, --info, --ok…), so both themes come for free. Rules: nothing is ever placed over a
   third-party player (only over our own placeholder); the player is never smaller than 200 × 200. */

/* ---------- vehicle card strip (slot veh.after-tags, order 10) ---------- */
.vcam-slot:empty { display: none; }
.vcam { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 10px 12px; min-height: 44px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.vcam .ci { width: 20px; height: 20px; }
.vcam .grow { flex: 1; min-width: 0; }
.vcam .grow b { font-weight: 720; }
.vcam .go { font-weight: 760; white-space: nowrap; }
.vcam.on { background: var(--ok-bg); color: var(--ok); }

/* ---------- camera card ---------- */
.cam-head .cam-gl { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }
.cam-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.cam-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: #e5262b; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.cam-live::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: #fff; }
.cam-off { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--off-bg); color: var(--off); font-size: 12.5px; font-weight: 700; }
.cam-lag { font-weight: 600; }

/* the viewer: 16:9, never under 200 × 200 (YouTube's minimum). Before the tap it holds our own placeholder; after it,
   only the player (the "Se încarcă" text sits *under* the iframe and is covered by it). */
.camview { position: relative; aspect-ratio: 16 / 9; width: 100%; min-height: 200px; min-width: 200px; margin-top: 10px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #4c5566 0%, #222831 55%, #12151a 100%); color: #fff; }
.camview.on { background: #000; }
.cam-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); z-index: 0; }
.camview .cam-ifr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: transparent; }
.cam-ph { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center;
  background: radial-gradient(120% 90% at 30% 20%, #4c5566 0%, #222831 55%, #12151a 100%); }
.cam-ph-gl { color: rgba(255,255,255,.85); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.12); }
.cam-ph-watch:empty { display: none; }
.cam-ph-watch { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cam-ph-watch .ring { width: 58px; height: 58px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; opacity: .95; }
.cam-ph-watch .ring.now { border-color: #5ad69c; color: #5ad69c; font-size: 14px; }
.cam-ph:has(.cam-ph-watch:not(:empty)) .cam-ph-gl { display: none; }
.cam-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: #fff; color: #17181b; font-size: 16px; font-weight: 760; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.cam-go:active { transform: scale(.97); }
.cam-go .ci { width: 20px; height: 20px; }
.cam-ph-src { font-size: 11.5px; color: rgba(255,255,255,.7); }
.cam-ph.off p { margin: 0; font-size: 14px; color: rgba(255,255,255,.85); max-width: 30ch; }
.cam-ph .cam-src { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; font-size: 14px; padding: 9px 14px; }

/* under the player: the followed vehicle (countdown, where it shows up in the frame) */
.cam-watch { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 14.5px; }
.cam-watch-t b { font-variant-numeric: tabular-nums; font-weight: 800; }
.cam-watch-t.now { color: var(--ok); }
.cam-watch-t.muted { color: var(--muted); }
.cam-band { position: relative; height: 8px; margin: 9px 0 5px; border-radius: 4px; background: color-mix(in srgb, var(--info) 22%, transparent); }
.cam-band i { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; background: var(--info); box-shadow: 0 0 0 2px var(--surface); }
.cam-watch-s { font-size: 12.5px; color: var(--muted); }

.cam-credit { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cam-credit a { position: relative; color: var(--info); text-decoration: none; font-weight: 650; }
.cam-credit a::after { content: ''; position: absolute; inset: -12px -6px; } /* 44 pt to the finger */
.cam-credit .tap { font-size: 12.5px; padding: 0; }
.calib { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--muted); }
.calib .grow { flex: 1; min-width: 0; }
.calib button { flex: none; min-height: 44px; }
.calib.flash { animation: cam-flash 1.2s ease-out; }
@keyframes cam-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--info); } 100% { box-shadow: 0 0 0 0 transparent; } }
.cam-desc { margin: 12px 2px 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.cam-cap { margin-top: 14px; }

/* "Trec prin cadru în curând" */
.cam-pass { overflow: hidden; }
.pass { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; text-decoration: none; color: inherit; }
.pass + .pass { border-top: 1px solid var(--line); }
.pass .main { flex: 1; min-width: 0; }
.pass .main b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass .main > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.pass .when { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.pass .when b { display: block; font-size: 19px; font-weight: 820; letter-spacing: -.02em; }
.pass .when span { font-size: 12px; color: var(--muted); }
.pass.now { background: var(--ok-bg); }
.pass.now .when b { color: var(--ok); }
.pass.follow { background: var(--info-bg); }
.pass .ctag { height: 20px; font-size: 12px; }

/* the notice before a third-party player (overlay) */
.cam-ov .cam-ntc { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.cam-ov .cam-ntc a { color: var(--info); font-weight: 650; }
.cam-ov .cam-ntc-sub { margin: 0 0 10px; }
.cam-ov .cam-ntc-btns { margin-top: 6px; }
.cam-ov .cam-ntc-btns .btn { min-height: 44px; flex: 1 1 120px; }
.cam-ask { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-size: 14.5px; cursor: pointer; }
.cam-ask input { width: 20px; height: 20px; margin: 0; accent-color: var(--info); }

@media (prefers-reduced-motion: reduce) { .calib.flash { animation: none; } .cam-go:active { transform: none; } }
