/*
 * The Live list (customer/live/liveSessions.html, live-feed.js): the BestBid app's Live tab
 * (live_shows_screen.dart) in the site's light page. Colours are the app's AppColors.
 * Phones stack each show's card over its products, as the app does; from 900 px the card stays
 * beside its products.
 */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("../../font/outfit/Outfit-Regular.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../../font/outfit/Outfit-Medium.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../../font/outfit/Outfit-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../../font/outfit/Outfit-Bold.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("../../font/outfit/Outfit-ExtraBold.ttf") format("truetype"); }

.ls-page, .ls-sheet, .ls-toast, .ls-video-dim {
    --ink: #1A1A1A;
    --muted: rgba(26, 26, 26, .6);
    --navy: #0C375A;
    --blue: #2589F9;
    --primary: #59A8E9;
    --red: #E53935;
    --card-border: #E9EEF5;
    --outline: rgba(26, 26, 26, .2);
    --soft: #F8FAFC;
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
}
.ls-page { max-width: 1180px; margin: 0 auto; padding: 8px 0 24px; }
.ls-page *, .ls-page *::before, .ls-page *::after,
.ls-sheet *, .ls-sheet *::before, .ls-sheet *::after { box-sizing: border-box; }

/* ——— A show: its card, then its products ——— */

.ls-show + .ls-show { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--card-border); }
.ls-show-side { display: grid; gap: 14px; }
.ls-show-main { margin-top: 4px; }
.ls-header { font-family: inherit; font-size: 20px; font-weight: 700; margin: 12px 2px 10px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ls-header.is-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }

.ls-card {
    display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--card-border);
    box-shadow: 0 5px 16px rgba(12, 55, 90, .07); color: inherit; text-decoration: none !important;
    animation: ls-arrive 360ms cubic-bezier(.215, .61, .355, 1) both;
}
@keyframes ls-arrive { from { opacity: 0; transform: translateY(14px); } }
a.ls-card:hover .ls-cover-img { transform: scale(1.03); }
a.ls-card:hover .ls-join-btn { filter: brightness(1.06); }
.ls-cover { position: relative; aspect-ratio: 2; overflow: hidden; background: var(--navy); }
.ls-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.ls-cover-art { position: absolute; inset: 0; background: linear-gradient(225deg, var(--blue), var(--navy)); display: grid; place-items: center; overflow: hidden; }
.ls-cover-art::before, .ls-cover-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.ls-cover-art::before { width: 170px; height: 170px; right: -40px; top: -30px; }
.ls-cover-art::after { width: 150px; height: 150px; left: -50px; bottom: -60px; }
.ls-cover-art svg { width: 52px; height: 52px; color: rgba(255,255,255,.78); position: relative; }
.ls-corner { position: absolute; top: 12px; inset-inline-start: 12px; }
.ls-live-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
    background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px;
}
.ls-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.ls-live-badge.is-breathing i { animation: ls-breath 1.2s ease-in-out infinite alternate; }
@keyframes ls-breath { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.ls-viewers {
    position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 600;
}
.ls-viewers svg { width: 13px; height: 13px; }
.ls-soon-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px;
    background: rgba(12, 55, 90, .6); color: #fff; font-size: 11.5px; font-weight: 600;
}
.ls-soon-badge i { width: 7px; height: 7px; border-radius: 50%; background: #FF4D4F; }
.ls-start { display: inline-block; padding: 5px 10px; border-radius: 10px; background: rgba(12, 55, 90, .88); color: #fff; font-size: 12px; }

/* The countdown to a show's start, on its cover */
.ls-count { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 22px; color: #fff; }
.ls-count.is-over { background: rgba(0,0,0,.35); }
.ls-count-inner { display: grid; justify-items: center; }
.ls-count-label { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.ls-count-row { display: flex; align-items: flex-start; }
.ls-count-colon { padding: 6px 4px 0; font-size: 20px; font-weight: 700; color: rgba(255,255,255,.55); }
.ls-count-box {
    min-width: 54px; padding: 6px 6px 5px; border-radius: 12px; display: grid; justify-items: center;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
}
.ls-count-box b { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ls-count-box small { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.75); white-space: nowrap; }
.ls-count-soon { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.ls-count-date {
    margin-top: 7px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px;
    background: rgba(255,255,255,.14); font-size: 12px; font-weight: 500;
}
.ls-count-date svg { width: 13px; height: 13px; color: rgba(255,255,255,.75); flex: none; }

/* Under the cover of a show on air: host, name, Join live */
.ls-join { padding: 12px 14px 14px; display: grid; gap: 12px; }
.ls-join-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ls-join-names { min-width: 0; display: grid; }
.ls-join-names strong, .ls-join-names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-join-names strong { font-size: 15px; font-weight: 700; }
.ls-join-names span { font-size: 13px; color: var(--muted); }
.ls-avatar {
    width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 16px;
}
.ls-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ls-join-btn {
    height: 46px; border-radius: 14px; background: var(--red); color: #fff !important; display: flex; align-items: center; justify-content: center;
    gap: 6px; font-size: 16px; font-weight: 700; text-decoration: none !important; transition: filter 150ms;
}
.ls-join-btn svg { width: 22px; height: 22px; }

/* "See how Live works" */
.ls-preview {
    position: relative; display: block; width: 100%; aspect-ratio: 3; padding: 0; border: 0; border-radius: 20px; overflow: hidden;
    background: var(--navy); cursor: pointer; font: inherit; color: #fff; text-align: start;
}
.ls-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ls-preview::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(12,55,90,.92), rgba(12,55,90,.55) 55%, rgba(12,55,90,0)); }
[dir="rtl"] .ls-preview::before { background: linear-gradient(to left, rgba(12,55,90,.92), rgba(12,55,90,.55) 55%, rgba(12,55,90,0)); }
.ls-preview-words { position: absolute; z-index: 2; inset: 0; inset-inline-end: 34%; padding: 0 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ls-preview-words strong { font-size: 18px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-preview-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.25; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-preview-watch {
    margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px 6px 10px; border-radius: 20px;
    background: #fff; color: var(--navy); font-size: 13px; font-weight: 600;
}
.ls-preview-watch svg { width: 18px; height: 18px; }
.ls-video-dim { position: fixed; inset: 0; z-index: 1070; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 16px; animation: ls-fade 200ms; }
.ls-video { max-width: 100%; max-height: 100%; border-radius: 16px; background: #000; }
.ls-video-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ls-video-close svg { width: 24px; height: 24px; }

/* A show's products: Home's cards, the picture and the name */
.ls-products { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.ls-product {
    display: flex; flex-direction: column; padding: 0; border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden;
    background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: start; transition: box-shadow 160ms, transform 160ms;
}
.ls-product:hover { box-shadow: 0 6px 18px rgba(12, 55, 90, .12); transform: translateY(-1px); }
.ls-product:focus-visible, .ls-card:focus-visible, .ls-preview:focus-visible, .ls-remind:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ls-product-img { position: relative; display: block; aspect-ratio: 1 / 1.08; background: rgba(162,162,162,.18); }
.ls-product-img img, .ls-product-img .ls-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-product-now {
    position: absolute; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
    border-radius: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
}
.ls-product-now i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ls-product-name {
    margin: 10px 12px 12px; font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 2.6em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ls-product.is-loading { aspect-ratio: 1 / 1.4; cursor: default; background: linear-gradient(100deg, #f1f4f8 30%, #f8fafc 50%, #f1f4f8 70%); background-size: 300% 100%; animation: ls-shimmer 1.4s linear infinite; }
@keyframes ls-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (min-width: 560px) {
    .ls-products { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .ls-show-side { max-width: 560px; margin: 0 auto; }
}
@media (min-width: 900px) {
    .ls-show { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
    .ls-show-side { max-width: none; margin: 0; position: sticky; top: 84px; }
    .ls-show-main { margin-top: 0; }
    .ls-show-main > .ls-header:first-child { margin-top: 0; }
    .ls-show-main > .ls-products:first-child { margin-top: 0; }
}
@media (max-width: 359px) {
    .ls-count-box { min-width: 46px; }
    .ls-count-box b { font-size: 19px; }
    .ls-products { gap: 8px; }
}

.ls-empty { text-align: center; padding: 56px 16px; color: var(--muted); display: grid; justify-items: center; gap: 12px; font-size: 15px; }
.ls-empty svg { width: 56px; height: 56px; color: #a2a2a2; }
.ls-stale { margin: 8px 0; padding: 10px 14px; border-radius: 12px; background: rgba(185, 148, 44, .13); color: #8a6d1f; font-size: 13px; }
.ls-loading { display: grid; place-items: center; padding: 80px 0; }
.ls-spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(89, 168, 233, .3); border-top-color: #59A8E9; animation: ls-rot 800ms linear infinite; }
@keyframes ls-rot { to { transform: rotate(360deg); } }

/* ——— A product's page, as a sheet over the list ——— */

.ls-sheet-dim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1060; animation: ls-fade 200ms; }
@keyframes ls-fade { from { opacity: 0; } }
.ls-sheet {
    position: fixed; z-index: 1061; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 560px); max-height: 92vh; max-height: 92dvh;
    background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column;
    animation: ls-up 260ms cubic-bezier(.215, .61, .355, 1); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes ls-up { from { transform: translateY(100%); } }
.ls-sheet.is-leaving { transform: translateY(100%); transition: transform 200ms cubic-bezier(.55, .055, .675, .19); }
.ls-sheet-dim.is-leaving { opacity: 0; transition: opacity 200ms; }
.ls-sheet-close {
    position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.ls-sheet-close svg { width: 22px; height: 22px; }
.ls-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 18px; border-radius: inherit; }
.ls-gallery { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: #fff; border: 1px solid var(--card-border); }
.ls-gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ls-gallery-track::-webkit-scrollbar { display: none; }
.ls-gallery-track img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.ls-gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.ls-gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(26,26,26,.25); transition: background 200ms, width 200ms; }
.ls-gallery-dots i.is-on { background: var(--primary); width: 14px; border-radius: 3px; }

.ls-pcard { margin-top: 10px; padding: 15px; border-radius: 18px; background: #fff; border: 1px solid var(--outline); }
.ls-pcard-head { display: flex; align-items: center; gap: 14px; }
.ls-pcard-names { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.ls-pcard-names h3 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.ls-chip { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.ls-pcard-price { flex: none; max-width: 46%; padding: 10px 12px; border-radius: 14px; background: rgba(89,168,233,.12); display: grid; justify-items: center; gap: 2px; }
.ls-pcard-price span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ls-pcard-price svg { width: 15px; height: 15px; }
.ls-pcard-price b { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ls-pcard-turn { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--outline); }
.ls-pcard-when { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ls-pcard-when b { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.ls-remind {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 19px; cursor: pointer;
    border: 1.5px solid var(--primary); background: #fff; color: #2f7fc0; font: inherit; font-size: 14px; font-weight: 600; transition: background 150ms, color 150ms;
}
.ls-remind svg { width: 18px; height: 18px; }
.ls-remind.is-on { background: var(--primary); color: var(--ink); }
.ls-palert { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(185,148,44,.13); color: #7a601a; font-size: 13px; line-height: 1.35; }
.ls-prows { margin-top: 10px; padding: 8px 15px; border-radius: 18px; border: 1px solid var(--outline); }
.ls-pinfo { display: flex; gap: 12px; padding: 5px 0; font-size: 14px; }
.ls-pinfo span { flex: 1; color: var(--muted); }
.ls-pinfo b { font-weight: 600; }
.ls-pdesc { margin-top: 10px; padding: 12px 15px; border-radius: 18px; border: 1px solid var(--outline); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ls-pdesc h4 { margin: 0 0 6px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.ls-pdesc img { max-width: 100%; height: auto; border-radius: 8px; }
.ls-sheet-body > .ls-join-btn { margin-top: 12px; }

.ls-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1080; width: min(92vw, 380px);
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff;
    border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(12, 55, 90, .2); animation: ls-fade 220ms ease-out;
}
.ls-toast.is-leaving { opacity: 0; transition: opacity 220ms ease-in; }
.ls-toast-bell { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #EEF2F7; color: #5b6b80; }
.ls-toast.is-on .ls-toast-bell { background: var(--blue); color: #fff; }
.ls-toast-bell svg { width: 22px; height: 22px; }
.ls-toast strong { display: block; font-size: 15px; font-weight: 700; }
.ls-toast div span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .ls-card, .ls-sheet, .ls-sheet-dim, .ls-toast, .ls-video-dim, .ls-product.is-loading { animation: none; }
    .ls-live-badge i { animation: none !important; }
    .ls-product:hover { transform: none; }
}
