/* Live-аукцион: страница участника (десктоп). Макет Figma «Auction live», ширина 1440. */

:root {
    --la-orange: #c9651e;
    --la-green: #1e7b1e;
    --la-text: #1a1a1a;
    --la-muted: #6b6b6b;
    --la-faint: #a3a3a3;
    --la-line: #e3e3e3;
    --la-bg: #f4f4f4;
    --la-bg-active: #ececec;
    --la-note: #fcebd0;
    --la-serif: "Playfair", Georgia, serif;
    --la-sans: "Nunito Sans", system-ui, sans-serif;
}

body.la-body {
    margin: 0;
    background: #fff;
    color: var(--la-text);
    font-family: var(--la-sans);
    font-size: 16px;
}

.la-body a { color: inherit; text-decoration: none; cursor: pointer; }
.la-body button { font-family: var(--la-sans); }

/* ---------------------------------------------------------------- шапка */

.la-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 75px;
    padding: 0 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    position: relative;
    z-index: 20;
}

.la-logo img { display: block; height: auto; }

.la-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.la-limit {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--la-green);
    font-size: 16px;
    white-space: nowrap;
}

.la-limit-line { display: inline-block; width: 32px; border-top: 1.5px solid var(--la-green); }

.la-user {
    background: var(--la-bg);
    padding: 9px 12px;
    font-size: 15px;
    white-space: nowrap;
}

.la-user-sep { color: var(--la-faint); margin: 0 9px; }
.la-user b { font-weight: 700; }

.la-icon-btn {
    border: 0;
    background: none;
    font-size: 20px;
    padding: 4px;
    line-height: 1;
    color: var(--la-text);
}

.la-settings { position: relative; }

.la-settings-menu {
    position: absolute;
    right: -24px;
    top: 44px;
    width: 312px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 20px 24px 8px;
}

.la-limit-menu { justify-content: center; margin-bottom: 16px; }

.la-select {
    border-radius: 0;
    border-color: var(--la-line);
    height: 50px;
    margin-bottom: 16px;
    font-size: 16px;
}

.la-settings-link {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--la-line);
}

.la-settings-link:last-child { border-bottom: 0; }
.la-settings-link i { font-size: 20px; width: 28px; }
.la-settings-link span { text-decoration: underline; }

/* название аукциона над колонками */
.la-auction-title {
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 24px 0;
    font-family: var(--la-serif);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.la-auction-title:empty { display: none; }

/* ---------------------------------------------------------------- сетка */

.la-grid {
    display: grid;
    grid-template-columns: minmax(250px, 290fr) minmax(0, 588fr) minmax(320px, 460fr);
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    align-items: start;
}

.la-left, .la-right { position: sticky; top: 16px; }

/* ---------------------------------------------------------------- левая колонка */

.la-progress { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.la-progress-bar { flex: 1; height: 3px; background: var(--la-line); }
.la-progress-bar span { display: block; height: 100%; width: 0; background: var(--la-orange); transition: width .4s; }
.la-progress-num { font-size: 13px; color: var(--la-text); }

.la-tabs, .la-dtabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--la-line);
}

.la-tabs li, .la-dtabs li {
    padding: 8px 8px 9px;
    color: var(--la-muted);
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

.la-tabs li { flex: 1; text-align: center; padding-left: 4px; padding-right: 4px; }
.la-tabs li.active, .la-dtabs li.active { color: var(--la-text); border-bottom-color: var(--la-text); }

.la-list {
    height: 665px;
    overflow-y: auto;
    border: 1px solid var(--la-line);
    border-top: 0;
    scrollbar-width: thin;
}

.la-card {
    display: flex;
    gap: 10px;
    padding: 14px 14px 14px 10px;
    border-bottom: 1px solid var(--la-line);
    cursor: pointer;
    position: relative;
}

.la-card:hover { background: #fafafa; }
.la-card-img { width: 108px; height: 108px; flex: none; background: var(--la-bg); display: flex; align-items: center; justify-content: center; }
.la-card-img img { max-width: 100%; max-height: 100%; }
.la-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.la-card-no { font-weight: 600; margin-bottom: 4px; padding-right: 22px; }
.la-card-title { color: var(--la-text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.la-card-est { margin-top: 8px; }
.la-card-foot { margin-top: auto; padding-top: 6px; text-align: right; }

.la-card.past { color: var(--la-faint); }
.la-card.past .la-card-title, .la-card.past .la-card-no { color: var(--la-faint); font-weight: 400; }
.la-card.past .la-card-img img { opacity: .55; }
.la-card.past .la-card-foot { color: var(--la-muted); }
.la-card.current { background: var(--la-bg-active); }
.la-card.mine .la-card-foot { color: var(--la-green); }

.la-heart {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    background: none;
    font-size: 19px;
    color: var(--la-muted);
    padding: 0;
    line-height: 1;
}

.la-heart.on { color: var(--la-orange); }

.la-badge-live {
    display: inline-block;
    background: var(--la-orange);
    color: #fff;
    font-size: 14px;
    font-family: var(--la-sans);
    padding: 1px 8px;
    line-height: 1.5;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.la-badge-chance {
    display: inline-block;
    border: 1px solid var(--la-orange);
    color: var(--la-orange);
    font-size: 13px;
    font-family: var(--la-sans);
    padding: 1px 8px;
    line-height: 1.5;
    animation: la-pulse 1.4s ease-in-out infinite;
}

/* Last chance: плавная пульсация, пока надпись горит (1-2-3, новая ставка или закрытие лота её убирают) */
@keyframes la-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(1.06); }
}
.la-pulse { display: inline-block; animation: la-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .la-pulse, .la-badge-chance { animation-duration: 3s; }
}

.la-list-empty { padding: 30px 20px; color: var(--la-muted); text-align: center; font-size: 14px; }

.la-fav-note {
    background: var(--la-note);
    padding: 22px 30px 20px;
    text-align: center;
    position: sticky;      /* видна при любой прокрутке ленты */
    top: 0;
    z-index: 3;
}

.la-fav-title { font-family: var(--la-serif); font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.la-fav-text { font-size: 14px; line-height: 1.35; }
.la-fav-note .la-close { right: 12px; top: 10px; }

.la-close {
    position: absolute;
    border: 0;
    background: none;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    color: var(--la-muted);
}

.la-btn-outline {
    margin-top: 32px;
    border: 1px solid var(--la-text);
    background: #fff;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
}

.la-btn-outline i { margin-left: 6px; }

/* превью другого лота (экран «auction opened») */
.la-preview {
    border: 1px solid var(--la-text);
    padding: 16px 16px 4px;
    height: 710px;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
}

.la-pv-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; font-weight: 600; }
.la-pv-head .la-close { left: 10px; top: 12px; }
.la-pv-head .la-heart { top: 14px; }
.la-pv-nav { border: 0; background: none; color: var(--la-muted); padding: 0 4px; }
.la-pv-gal { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; }
.la-pv-gal img { max-width: 70%; max-height: 100%; }
.la-pv-title { font-family: var(--la-serif); text-transform: uppercase; text-align: center; font-size: 16px; line-height: 1.25; margin: 12px 0 8px; }
.la-pv-est { text-align: center; color: var(--la-muted); font-size: 14px; margin-bottom: 10px; }

.la-acc-item { border-bottom: 1px solid var(--la-line); }
.la-acc-item:last-child { border-bottom: 0; }
.la-acc-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; font-size: 16px; }
.la-acc-head i { color: #1d3557; transition: transform .2s; }
.la-acc-item.open .la-acc-head i { transform: rotate(180deg); }
.la-acc-body { display: none; font-size: 14px; line-height: 1.4; padding-bottom: 12px; }
.la-acc-item.open .la-acc-body { display: block; }

/* ---------------------------------------------------------------- центр */

.la-lot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.la-lot-no { display: flex; align-items: center; gap: 10px; font-family: var(--la-serif); font-size: 18px; font-weight: 500; }
.la-viewers { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.la-viewers i { font-size: 18px; }

.la-title {
    font-family: var(--la-serif);
    font-size: 20px;
    line-height: 1.17;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 6px;
}

.la-estimate { font-size: 14px; color: var(--la-muted); margin-bottom: 16px; }
.la-estimate b { color: var(--la-muted); font-weight: 700; margin-right: 6px; }

.la-gallery {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--la-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.la-gal-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.la-gal-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.la-gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    font-size: 30px;
    color: var(--la-text);
    padding: 10px;
    z-index: 2;
}

.la-gal-prev { left: 4px; }
.la-gal-next { right: 4px; }

.la-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 0; min-height: 6px; }
.la-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d6d6d6; cursor: pointer; }
.la-dots span.on { background: var(--la-text); }

.la-details { margin-top: 32px; }
.la-dtabs li { padding: 8px 24px 9px; }
.la-dbody { background: var(--la-bg); padding: 24px; font-size: 16px; line-height: 1.5; min-height: 120px; }
.la-dbody p:last-child { margin-bottom: 0; }
.la-attr { display: flex; gap: 12px; padding: 4px 0; }
.la-attr span:first-child { color: var(--la-muted); min-width: 140px; }

/* ---------------------------------------------------------------- правая колонка */

.la-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

.la-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.la-video-tag {
    position: absolute;
    left: 8px;
    top: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

.la-video-tag::before { content: "●"; color: #e53935; margin-right: 3px; }

.la-video-plate {
    position: absolute;
    inset: 0;
    background: #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* ---------------------------------------------------------------- MEDIA CONTROL: баннеры (Figma «Auction admin», 1920×1080).
   Размеры — в долях ширины блока (cqw), как в макете; у мелкого текста нижняя граница, чтобы читался в узкой колонке */

.la-video { container-type: inline-size; overflow: hidden; }

.la-banner {
    padding: 0;
    color: #fff;
    background: #212529 center / cover no-repeat;
    gap: 4.17cqw;
}
.la-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.la-banner > * { position: relative; }
.la-banner.bg-reception { background-image: url(/images/live/banner_reception.jpg); }
.la-banner.bg-reception::before { background: rgba(0, 0, 0, .5); }
.la-banner.bg-gallery { background-image: url(/images/live/banner_gallery.jpg); }
.la-banner.bg-ended { background-image: url(/images/live/banner_ended.jpg); }
.la-banner.bg-gallery::before,
.la-banner.bg-ended::before { background: linear-gradient(180deg, rgba(0, 0, 0, .6) 14.66%, rgba(0, 0, 0, .7) 49.69%, rgba(0, 0, 0, .6) 84.72%); }
.la-banner.bg-dark { background: #212529; }

.la-banner-logo { width: 20.4cqw; min-width: 96px; height: auto; display: block; }
.la-banner-title {
    font-family: var(--la-serif);
    font-weight: 300;
    font-variation-settings: "opsz" 12;
    font-size: max(18px, 6.04cqw);
    line-height: .8;
    max-width: 54cqw;
    min-width: 60%;
    text-wrap: balance;
}
.la-banner.bg-reception .la-banner-title { max-width: 45cqw; min-width: 0; }   /* «Auction will / start soon» в две строки, как в макете */
.la-banner-timer {
    display: flex;
    align-items: center;
    gap: 1.25cqw;
    font-family: var(--la-serif);
    font-weight: 300;
    font-variation-settings: "opsz" 12;
    font-size: max(16px, 5.21cqw);
    line-height: .76;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.la-banner-timer i { font-style: normal; font-size: .84em; color: rgba(255, 255, 255, .6); }
.la-banner-text {
    font-size: max(12px, 1.875cqw);
    line-height: 1.22;
    max-width: 54cqw;
    min-width: 70%;
}
.la-banner-text + .la-banner-text { margin-top: -2.5cqw; opacity: .85; }

.la-feed {
    margin-top: 32px;
    height: 352px;
    overflow-y: auto;
    border: 1px solid var(--la-line);
    background: var(--la-bg);
    scrollbar-width: thin;
}

.la-feed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--la-line);
    font-size: 14px;
    background: #fafafa;
}

.la-feed-row b { font-weight: 700; }
.la-feed-sep { color: var(--la-faint); }
.la-feed-src { white-space: nowrap; }   /* название площадки, откуда пришла ставка */
.la-feed-tag { margin-left: auto; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.la-feed-tag i { font-size: 17px; }

/* свои ставки — зелёные, ставка, перебившая мою, — красная */
.la-feed-row.mine { background: #eef4ec; color: var(--la-green); }
.la-feed-row.mine .la-feed-sep { color: #9fc49a; }
.la-feed-row.outbid { background: #fbeeee; color: #a80f0f; }
.la-feed-row.outbid .la-feed-sep { color: #e0a7a7; }

/* статус торгов лота — под ставками */
.la-feed-row.status { justify-content: center; background: #fff; min-height: 68px; font-size: 22px; color: var(--la-text); }
.la-feed-row.status.chance { color: var(--la-orange); font-weight: 600; }
.la-feed-row.status.resumed { color: #1f9d3a; }

/* отсчёт 1-2-3: цифры загораются по очереди */
.la-cd { display: inline-flex; gap: 22px; font-size: 32px; line-height: 1; }
.la-cd span { color: #e9c9b0; transition: color .2s; }
.la-cd span.on { color: var(--la-orange); }
/* логотипы источников ставок: favicon площадок (css/img/platforms) в одинаковом круге —
   у favicon разные внутренние поля, без общей рамки они «прыгают» по размеру */
.la-src {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0 0 1px var(--la-line);
}

.la-src img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-src.hall { background: #2b2b2b; color: #fff; font-size: 12px; box-shadow: none; }

.la-bidbox { margin-top: 40px; }
.la-bidbox-row { display: flex; justify-content: space-between; align-items: flex-start; }
.la-label { font-size: 14px; font-weight: 600; }
.la-current { font-family: var(--la-serif); font-size: 28px; font-weight: 500; line-height: 1.2; }
.la-conv { font-size: 13px; color: var(--la-muted); min-height: 0; }
.la-count { font-size: 15px; margin-top: 6px; }

/* «You won» / «You've been outbid» над кнопкой */
.la-big-status { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 16px; font-size: 24px; }
.la-big-line { width: 32px; border-top: 1.5px solid currentColor; }
.la-big-status.won { color: var(--la-green); }
.la-big-status.outbid { color: #a80f0f; }
.la-big-status.leading { color: var(--la-green); }

.la-bid-row { display: flex; gap: 16px; margin-top: 16px; }
.la-bid-row .la-bid-btn { margin-top: 0; flex: 1; }
.la-lock { flex: none; width: 64px; height: 64px; border: 1px solid var(--la-text); background: #fff; font-size: 24px; }
.la-lock:hover { background: var(--la-bg); }

.la-bid-btn {
    display: block;
    width: 100%;
    height: 64px;
    margin-top: 16px;
    border: 0;
    background: #000;
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: .01em;
    transition: background .15s;
}

.la-bid-btn:hover:not(:disabled) { background: #222; }
.la-bid-btn:disabled { background: #9e9e9e; color: #f2f2f2; cursor: default; }
.la-bid-btn.la-link-btn:disabled { cursor: pointer; }

.la-bid-msg { margin-top: 10px; font-size: 14px; color: var(--la-muted); text-align: center; }

/* ---------------------------------------------------------------- модальные окна, тост */

.la-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.la-modal-box {
    background: #fff;
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    overflow-y: auto;
    position: relative;
    padding: 36px 40px 32px;
}

.la-modal-box.small { max-width: 440px; text-align: center; }
.la-modal-box .la-close { right: 14px; top: 12px; }
.la-modal-body h2 { font-family: var(--la-serif); font-size: 24px; font-weight: 500; margin-bottom: 18px; }
.la-modal-body h3 { font-family: var(--la-serif); font-size: 20px; font-weight: 500; margin: 22px 0 10px; }
.la-modal-body { font-size: 15px; line-height: 1.5; }
.la-confirm-sum { font-family: var(--la-serif); font-size: 30px; margin: 6px 0 22px; }
.la-confirm-btns { display: flex; gap: 12px; }
.la-confirm-btns button { flex: 1; height: 50px; font-size: 16px; border: 1px solid #000; }
.la-confirm-btns .ok { background: #000; color: #fff; }
.la-confirm-btns .no { background: #fff; color: #000; }

.la-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 22px;
    font-size: 15px;
    z-index: 120;
    max-width: 90vw;
    text-align: center;
}

.la-toast.warn { background: var(--la-orange); }

/* элементы, которые есть только в мобильной версии */
.la-burger, .la-m-head, .la-sticky, .la-video-x, .la-video-expand, .la-zoom, .la-settings-inline { display: none; }

/* ================================================================ мобильная версия (макеты 375 px) */

@media (max-width: 767.98px) {

    body.la-body { font-size: 15px; }
    body.la-noscroll { overflow: hidden; }

    /* шапка: ☰ · логотип · имя ⚙ */
    .la-header { height: 56px; padding: 0 12px; grid-template-columns: 44px 1fr auto; box-shadow: none; border-bottom: 1px solid var(--la-line); }
    .la-logo { justify-self: center; }
    .la-logo img { width: 150px; }
    .la-burger { display: inline-block; font-size: 28px; }
    .la-header-right { gap: 10px; }
    .la-header-right > .la-limit { display: none !important; }
    .la-user-sep, #laBidder { display: none !important; }
    /* имя — отдельной строкой под шапкой: длинное (например «Тест 5: Одобрен, лимит € 50 000») раздвигало шапку шире экрана */
    .la-header { height: auto; grid-template-rows: 56px auto; }
    .la-header-right { display: contents; }
    .la-header-right > .la-settings { grid-column: 3; grid-row: 1; }
    .la-user { grid-column: 1 / -1; grid-row: 2; min-width: 0; background: none; padding: 0 0 8px; margin-top: -6px;
        font-size: 13px; color: var(--la-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* одна колонка: видео → лот → фото → название → лента → ставка → аккордеоны */
    .la-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 12px 110px; position: relative; }
    .la-grid > *, .la-center > *, .la-right > * { min-width: 0; }
    .la-center, .la-right { display: contents; }
    .la-video { order: 1; margin: 0 -12px; }
    .la-lot-head { order: 2; margin: 16px 0 12px; }
    .la-gallery { order: 3; }
    .la-dots { order: 4; margin: 10px 0 0; }
    .la-title { order: 5; text-transform: none; font-size: 18px; line-height: 1.2; margin: 22px 0 10px; }
    .la-estimate { order: 6; margin-bottom: 18px; font-size: 15px; }
    .la-feed { order: 7; margin-top: 0; height: 200px; }
    .la-bidbox { order: 8; margin-top: 22px; }
    .la-details { order: 9; margin-top: 18px; }
    .la-center > .text-center { display: none; }   /* «View lot details» */

    .la-lot-no { font-size: 20px; }
    .la-gal-arrow { display: none !important; }
    .la-gal-img { padding: 20px; }
    .la-zoom { display: block; position: absolute; right: 12px; bottom: 12px; border: 0; background: none; font-size: 22px; padding: 4px; z-index: 2; }

    .la-feed-row { padding: 10px 12px; font-size: 14px; flex-wrap: wrap; row-gap: 2px; }
    .la-current { font-size: 26px; }
    .la-bid-btn { height: 56px; }
    .la-lock { width: 56px; height: 56px; }
    .la-bid-row { gap: 10px; }
    .la-big-status { font-size: 20px; gap: 14px; }
    .la-auction-title { display: none; }
    .la-feed-row.status { min-height: 52px; font-size: 18px; }

    /* видео: крестик → мини-плеер поверх фото (экран «small video»), «развернуть» → обратно */
    .la-video-x { display: block; position: absolute; right: 10px; top: 8px; z-index: 3; border: 0; background: none; color: #fff; font-size: 22px; padding: 4px; text-shadow: 0 0 4px rgba(0, 0, 0, .6); }
    .la-video-plate + .la-video-x, .la-video-plate ~ .la-video-x { color: var(--la-text); text-shadow: none; }
    .la-banner + .la-video-x, .la-banner ~ .la-video-x { color: #fff; }
    .la-video.pip { position: absolute; width: 46%; right: 20px; margin: 0; z-index: 4; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
    .la-video.pip .la-video-x, .la-video.pip .la-video-tag { display: none; }
    .la-video.pip .la-video-expand { display: block; position: absolute; right: 6px; bottom: 6px; z-index: 3; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; padding: 2px 6px; }
    .la-video.hidden-plate { display: none; }

    /* описание лота — аккордеоны вместо вкладок */
    .la-dtabs { display: none; }
    .la-dbody { background: none; padding: 0; min-height: 0; }
    .la-dbody .la-acc-head { font-size: 17px; padding: 16px 0; }
    .la-dbody .la-acc-item { border-bottom: 1px solid var(--la-line); }
    .la-dbody .la-acc-item:last-child { border-bottom: 1px solid var(--la-line); }
    .la-dbody .la-acc-body { font-size: 15px; }

    /* закреплённая панель ставки, когда кнопка ушла за экран (экран «button fixed») */
    .la-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--la-text);
        padding: 10px 12px 12px; z-index: 30; transform: translateY(110%); transition: transform .2s; }
    .la-sticky.show { transform: none; }
    body.la-noscroll .la-sticky { display: none; }   /* открыт каталог или настройки */
    .la-sticky-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .la-sticky .la-current { font-size: 30px; }
    .la-sticky .la-bid-btn { margin-top: 0; height: 52px; }
    .la-sticky .la-bid-row { margin-top: 0; }
    .la-sticky .la-lock { width: 52px; height: 52px; }

    /* каталог лотов — полноэкранное окно по ☰ (экран «catalog») */
    .la-left { display: none; }
    body.la-cat-open .la-left { display: block; position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; padding: 0 16px 24px; top: 0; }
    .la-m-head { display: grid; grid-template-columns: 44px 1fr 44px; grid-template-rows: 56px auto; align-items: center; margin: 0 -4px 6px; }
    .la-m-head img { justify-self: center; }
    .la-m-head .la-icon-btn { font-size: 22px; }
    /* имя — второй строкой, как в шапке страницы */
    .la-m-name { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: 13px; color: var(--la-muted); text-align: center;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .la-m-name:empty { display: none; }
    .la-left .la-tabs li { font-size: 18px; }
    .la-list { height: auto; overflow: visible; border: 0; }
    .la-card { padding: 16px 0; border-bottom: 0; gap: 16px; }
    .la-card.current { background: var(--la-bg-active); margin: 0 -16px; padding: 16px; }
    .la-card-img { width: 45%; height: auto; aspect-ratio: 1 / 1; }
    .la-card-body { font-size: 17px; }
    .la-card-no { font-size: 17px; }
    .la-card-foot { text-align: left; color: var(--la-text); }
    .la-card.past .la-card-foot { color: var(--la-text); }
    .la-heart { right: 0; top: 16px; font-size: 24px; }
    .la-card.current .la-heart { right: 16px; }
    .la-left .text-center { display: none; }   /* «Back to live bid» — в каталоге не нужна */
    .la-preview { height: auto; border: 0; padding: 0; overflow: visible; }
    .la-pv-gal { height: 320px; }

    /* настройки — полноэкранное окно по ⚙ (экран «settings») */
    .la-settings-menu { position: fixed; inset: 0; width: auto; top: 0; right: 0; z-index: 60; padding: 0 16px; box-shadow: none; overflow-y: auto; }
    .la-settings-menu .la-m-head { margin: 0 -4px 10px; }
    .la-settings-menu .la-limit-menu { margin: 6px 0 22px; font-size: 22px; }
    .la-settings-menu .la-limit-line { width: 60px; }
    .la-select { height: 64px; font-size: 20px; margin-bottom: 20px; }
    .la-settings-link { font-size: 20px; padding: 18px 0; }
    .la-settings-link span { text-decoration: none; flex: 1; }
    .la-settings-link::after { content: "\F282"; font-family: "bootstrap-icons"; color: #1d3557; transition: transform .2s; }
    .la-settings-link.open::after { transform: rotate(180deg); }
    .la-settings-link:last-of-type { border-bottom: 1px solid var(--la-line); }
    .la-settings-inline.open { display: block; font-size: 14px; line-height: 1.45; padding: 4px 0 16px; border-bottom: 1px solid var(--la-line); }

    .la-modal { padding: 0; }
    .la-modal-box { max-height: 100vh; height: 100%; padding: 48px 18px 24px; }
    .la-modal-box.small { height: auto; margin: 0 16px; }
}

/* ---------------------------------------------------------------- итоговый экран после Stop auction (js renderEnded) */

body.la-is-ended .la-grid, body.la-is-ended .la-sticky { display: none !important; }
.la-ended { padding: 10px 20px 60px; }
.la-ended-card { display: grid; grid-template-columns: 1.6fr 1fr; max-width: 1080px; margin: 0 auto; background: var(--la-bg); }
.la-ended-img { min-height: 360px; background: #2b2b2b center / cover no-repeat; }
.la-ended-body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 30px; }
.la-ended-status { display: flex; align-items: center; gap: 14px; width: 100%; color: var(--la-muted); font-size: 16px; margin-bottom: 16px; white-space: nowrap; }
.la-ended-status span { flex: 1; height: 1px; background: var(--la-faint); }
.la-ended-title { font-family: var(--la-serif); font-weight: 600; font-size: 18px; text-transform: uppercase; line-height: 1.35; margin-bottom: 8px; }
.la-ended-date { color: var(--la-muted); font-size: 13px; margin-bottom: 22px; }
.la-ended-label { font-size: 17px; margin-bottom: 4px; }
.la-ended-total { color: #d4a15a; font-size: 34px; line-height: 1.2; margin-bottom: 4px; }
.la-ended-note { color: var(--la-muted); font-size: 12px; margin-bottom: 22px; }
.la-body a.la-ended-btn { display: block; width: 100%; background: #111; color: #fff; padding: 14px 16px; font-size: 15px; }
.la-body a.la-ended-btn:hover { background: #333; }

@media (max-width: 767.98px) {
    .la-ended { padding: 0 0 30px; }
    .la-ended-card { grid-template-columns: 1fr; }
    .la-ended-img { min-height: 220px; }
    .la-ended-body { padding: 26px 18px; }
}