/* Autano Mobile Live / History */

:root{
    --autano-text:#0f172a;
    --autano-muted:#64748b;
    --autano-line:#e5e7eb;
    --autano-blue:#1d4ed8;
    --autano-blue-hover:#1e40af;
    --autano-card-shadow:0 8px 24px rgba(15,23,42,.06);
}

.ml-wrap,
.mh-wrap,
.ml-grid,
.mh-grid,
.ml-card,
.mh-card,
.ml-body,
.mh-body{
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}

.ml-wrap,
.mh-wrap{
    padding:0;
}

.ml-hero{
    margin:0 0 12px;
    padding:20px 22px;
    border-radius:24px;
    background:linear-gradient(135deg,#0f172a,#1f2937);
    color:#fff;
    box-shadow:0 16px 44px rgba(2,6,23,.15);
}

.ml-hero h1{
    margin:0 0 6px;
    font-size:clamp(28px,3vw,42px);
    line-height:1.08;
}

.ml-hero p{
    margin:0;
    color:#dbe7f3;
    font-size:16px;
    line-height:1.55;
}

.auto-home-panel .ml-hero{
    display:none !important;
}

.ml-topbar,
.mh-topbar{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    font-size:14px;
    color:var(--autano-muted);
    padding:8px 0 12px;
    margin-top:0;
}

.ml-status,
.mh-status{
    display:inline-flex;
    align-items:center;
    padding:4px 10px;
    border-radius:999px;
    color:#fff;
    font-size:11px;
    font-weight:700;
    line-height:1;
    letter-spacing:.05em;
}

.ml-grid,
.mh-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    width:100%;
}

.ml-card,
.mh-card{
    background:#fff;
    border:1px solid var(--autano-line);
    border-radius:16px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:var(--autano-card-shadow);
    height:100%;
    margin:0;
}

.ml-card::before,
.ml-card::after,
.mh-card::before,
.mh-card::after{
    display:none !important;
    content:none !important;
}

.ml-image-link,
.mh-image-link,
.ml-image,
.mh-image,
.ml-image-placeholder,
.mh-image-placeholder{
    display:block;
    width:100%;
}

.ml-image,
.mh-image,
.ml-image-placeholder,
.mh-image-placeholder{
    height:220px;
    min-height:220px;
    max-height:220px;
    overflow:hidden;
}

.ml-image,
.mh-image{
    object-fit:cover;
    object-position:center;
    background:#0f2a66;
}

.ml-image-placeholder,
.mh-image-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
}

.ml-image-placeholder-inner,
.mh-image-placeholder-inner{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ml-image-placeholder-img,
.mh-image-placeholder-img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    object-position:center;
    background:#fff;
}

.ml-body,
.mh-body{
    padding:14px 16px 16px;
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1;
}

.ml-title,
.mh-title{
    margin:0;
    font-size:18px;
    font-weight:600;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.ml-price-row,
.mh-price-row{
    display:flex;
    align-items:baseline;
    gap:10px;
    flex-wrap:wrap;
}

.ml-price,
.mh-price{
    font-size:24px;
    font-weight:700;
    color:var(--autano-text);
    line-height:1;
}

.ml-price-czk,
.mh-price-czk{
    font-size:15px;
    color:var(--autano-muted);
}

.ml-rating,
.mh-rating{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.ml-rating-bars,
.mh-rating-bars{
    display:flex;
    gap:3px;
    align-items:center;
}

.ml-rating-bar,
.mh-rating-bar{
    width:18px;
    height:5px;
    border-radius:3px;
    background:#e5e7eb;
}

.ml-rating-label,
.mh-rating-label{
    font-size:14px;
    font-weight:500;
    white-space:nowrap;
}

.ml-seen,
.mh-seen{
    font-size:13px;
    color:#94a3b8;
    margin:0;
}

.ml-meta-grid,
.mh-meta-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px 12px;
    margin:4px 0;
}

.ml-meta-grid > div,
.mh-meta-grid > div{
    display:flex;
    flex-direction:column;
    gap:1px;
    min-width:0;
}

.ml-meta-grid span,
.mh-meta-grid span{
    font-size:12px;
    color:#94a3b8;
    text-transform:uppercase;
    letter-spacing:.04em;
    line-height:1;
}

.ml-meta-grid strong,
.mh-meta-grid strong{
    font-size:15px;
    font-weight:600;
    color:#1e293b;
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ml-btn,
.mh-btn{
    display:block;
    margin-top:auto;
    padding:14px 16px;
    background:var(--autano-blue);
    color:#fff !important;
    border-radius:10px;
    text-align:center;
    text-decoration:none !important;
    font-size:20px !important;
    font-weight:700;
    min-height:52px;
    line-height:24px;
    transition:background .15s;
}

.ml-btn:hover,
.mh-btn:hover{
    background:var(--autano-blue-hover);
    color:#fff !important;
}

.ml-empty,
.mh-empty{
    padding:20px 22px;
    border:1px dashed #cbd5e1;
    border-radius:20px;
    background:#fff;
    color:var(--autano-muted);
    text-align:center;
}

.mh-results-bar{
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    align-items:center;
    color:var(--autano-muted);
    font-size:14px;
    margin-top:-2px;
}

.mh-results-count{
    font-weight:700;
    color:var(--autano-text);
}

.mh-pagination{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:center;
    padding:20px 0;
}

.mh-page,
.mh-page-current{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    min-height:40px;
    padding:0 10px;
    border-radius:8px;
    border:1px solid var(--autano-line);
    color:var(--autano-text);
    text-decoration:none;
    font-weight:500;
    font-size:15px;
}

.mh-page-current{
    background:var(--autano-text);
    color:#fff;
    border-color:var(--autano-text);
}

#autano-history-root .mh-filters{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) auto !important;
    gap:12px !important;
    align-items:end !important;
    margin:0 0 14px !important;
}

#autano-history-root .mh-field,
#autano-history-root .mh-actions{
    margin:0 !important;
    min-width:0 !important;
    max-width:100% !important;
}

#autano-history-root .mh-field label{
    display:none !important;
}

#autano-history-root .mh-field select.is-active{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#fff !important;
}

#autano-history-root .mh-field select.is-active:focus{
    outline:none !important;
    box-shadow:0 0 0 3px rgba(37,99,235,.18) !important;
}

#autano-history-root .mh-field select.is-active option{
    color:#0f172a;
}

#autano-history-root .mh-field select,
#autano-history-root .mh-btn-lite{
    width:100% !important;
    height:64px !important;
    min-height:64px !important;
    padding:0 22px !important;
    border:1px solid #d1d5db !important;
    border-radius:18px !important;
    background:#fff !important;
    box-sizing:border-box !important;
    font-size:18px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
}

#autano-history-root .mh-actions{
    display:flex !important;
    align-items:stretch !important;
}

#autano-history-root .mh-btn-lite{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    text-decoration:none !important;
    color:#0f172a !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    cursor:pointer !important;
    border:1px solid #d1d5db !important;
    background:#fff !important;
}

#autano-history-root .mh-btn-lite:hover{
    background:#f8fafc !important;
}

#autano-history-root label[for="mh_q"],
#autano-history-root #mh_q{
    display:none !important;
}

#autano-history-root .mh-results-hint{
    color:var(--autano-muted) !important;
}

#autano-history-root .autano-search-empty{
    display:none !important;
}

@media (min-width:820px){
    .ml-grid,
    .mh-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (min-width:1280px){
    .ml-grid,
    .mh-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media (min-width:1920px){
    .ml-grid,
    .mh-grid{
        grid-template-columns:repeat(6,minmax(0,1fr));
    }
}

@media (max-width:1320px){
    #autano-history-root .mh-filters{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

@media (max-width:960px){
    #autano-history-root .mh-filters{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media (max-width:700px){
    .ml-image,
    .mh-image,
    .ml-image-placeholder,
    .mh-image-placeholder{
        height:190px;
        min-height:190px;
        max-height:190px;
    }

    #autano-history-root .mh-filters{
        grid-template-columns:1fr !important;
    }
}
