/* pc-machine-list — design: gepek.html (szűrősáv, találatszám, kártyarács). A szűrősáv a sötét oldalfejlécbe lóg (margin-top:-34px). */
.pc .pc-ml { background: var(--pc-paper); border-bottom: 1px solid var(--pc-line-light); }
.pc .pc-ml__in { padding-top: 0; padding-bottom: 0; }
.pc [x-cloak] { display: none; }

/* mobil szűrő-nyitó (asztalon rejtett) */
.pc .pc-ml__toggle { position: relative; margin-top: -34px; width: 100%; height: 60px; background: var(--pc-white); border: none; border-radius: 2px; box-shadow: 0 6px 28px rgba(20, 24, 31, .12); padding: 0 8px 0 18px; display: none; align-items: center; gap: 12px; font-family: var(--pc-font-head); font-weight: 700; font-size: 16px; color: var(--pc-ink); cursor: pointer; text-align: left; }
.pc .pc-ml__toggle > svg { color: var(--pc-red); flex-shrink: 0; }
.pc .pc-ml__toggle-text { flex: 1; }
.pc .pc-ml__badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--pc-red); color: var(--pc-white); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pc .pc-ml__chev { width: 44px; height: 44px; background: var(--pc-red); color: var(--pc-white); display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.pc .pc-ml__chev.is-open { transform: rotate(180deg); }

/* szűrősáv */
.pc .pc-ml__filters { position: relative; margin-top: -34px; background: var(--pc-white); border-radius: 2px; box-shadow: 0 6px 28px rgba(20, 24, 31, .1); padding: 22px 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px 32px; align-items: end; }
.pc .pc-ml__field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc .pc-ml__label { font-size: 15px; font-weight: 700; color: var(--pc-ink); }
.pc .pc-ml__year, .pc .pc-ml__sel { position: relative; display: block; }
.pc .pc-ml__ctl { height: 48px; background: var(--pc-white); border: 1px solid #D5D8DC; border-radius: 0; padding: 0 62px 0 14px; color: var(--pc-ink); font-family: var(--pc-font-body); font-size: 15.5px; line-height: normal; outline: none; min-width: 0; width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; box-shadow: none; }
.pc .pc-ml__ctl--btn { text-align: left; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .pc-ml__ctl:focus, .pc .pc-ml__ctl:focus-visible { border-color: var(--pc-red); outline: none; }
.pc .pc-ml__caret { position: absolute; top: 0; right: 0; width: 48px; height: 48px; background: var(--pc-red); color: var(--pc-white); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pc .pc-ml__pop { position: absolute; top: 52px; left: 0; right: 0; z-index: 30; background: var(--pc-white); border: 1px solid #D5D8DC; box-shadow: 0 14px 34px rgba(20, 24, 31, .16); max-height: 280px; overflow-y: auto; padding: 6px; }
.pc .pc-ml__opt { display: flex; align-items: center; gap: 11px; padding: 9px 10px; cursor: pointer; font-size: 15.5px; color: var(--pc-ink); }
.pc .pc-ml__opt:hover { background: var(--pc-paper); }
.pc .pc-ml__opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--pc-red); flex-shrink: 0; }
.pc .pc-ml__submit { display: flex; gap: 8px; }
.pc .pc-ml__search { flex: 1; height: 48px; background: var(--pc-red); color: var(--pc-white); border: none; border-radius: 0; font-family: var(--pc-font-head); font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s ease; }
.pc .pc-ml__search:hover, .pc .pc-ml__search:focus-visible { background: var(--pc-red-hover); }
.pc .pc-ml__search:active { transform: translateY(1px); }
.pc .pc-ml__search:disabled { opacity: .7; cursor: progress; }

/* találatszám + betöltésjelző */
.pc .pc-ml__results { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px 0 22px; }
.pc .pc-ml__count { font-family: var(--pc-font-head); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; color: var(--pc-ink); }
.pc .pc-ml__loading { font-size: 14px; font-weight: 600; color: var(--pc-dark-muted); }
.pc .pc-ml__spinner { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid rgba(20, 24, 31, .2); border-top-color: var(--pc-red); border-radius: 50%; animation: pc-ml-spin .7s linear infinite; }
@keyframes pc-ml-spin { to { transform: rotate(360deg); } }
.pc .pc-ml__body { transition: opacity .15s ease; }
.pc .pc-ml__body.is-loading { opacity: .45; pointer-events: none; }

/* üres állapot */
.pc .pc-ml__empty { background: var(--pc-white); border: 1px dashed rgba(20, 24, 31, .25); border-radius: 8px; padding: 40px 24px; text-align: center; color: var(--pc-dark-text); font-size: 16px; margin-bottom: 72px; }
.pc .pc-ml__empty p { margin: 0 auto; max-width: 60ch; }
.pc .pc-ml__reset { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; font-weight: 700; text-decoration: underline; }

/* kártyarács */
.pc .pc-ml__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.pc .pc-ml__card { color: inherit; display: flex; flex-direction: column; background: var(--pc-white); border: 1px solid rgba(20, 24, 31, .14); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 24, 31, .06); animation: pc-ml-in .42s var(--pc-ease) both; }
.pc .pc-ml__card:nth-child(2) { animation-delay: 60ms; }
.pc .pc-ml__card:nth-child(3) { animation-delay: 120ms; }
.pc .pc-ml__card:nth-child(4) { animation-delay: 180ms; }
.pc .pc-ml__card:nth-child(n+5) { animation-delay: 240ms; }
@keyframes pc-ml-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pc .pc-ml__card:hover, .pc .pc-ml__card:focus-visible { border-color: var(--pc-red); box-shadow: 0 10px 26px rgba(20, 24, 31, .12); color: inherit; }
.pc .pc-ml__media { position: relative; aspect-ratio: 4 / 3; background: var(--pc-paper-3); overflow: hidden; }
.pc .pc-ml__img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform .7s var(--pc-ease); }
.pc .pc-ml__shade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 14, 18, 0); transition: background .45s ease; pointer-events: none; }
.pc .pc-ml__plus { width: 64px; height: 64px; border-radius: 50%; background: var(--pc-red); color: var(--pc-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(248, 6, 5, .45); opacity: 0; transform: scale(.5) rotate(-90deg); transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pc .pc-ml__card:hover .pc-ml__img, .pc .pc-ml__card:focus-visible .pc-ml__img { transform: scale(1.08); }
.pc .pc-ml__card:hover .pc-ml__shade, .pc .pc-ml__card:focus-visible .pc-ml__shade { background: rgba(11, 14, 18, .3); }
.pc .pc-ml__card:hover .pc-ml__plus, .pc .pc-ml__card:focus-visible .pc-ml__plus { opacity: 1; transform: scale(1) rotate(0deg); }
.pc .pc-ml__text { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pc .pc-ml__meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pc-dark-muted); margin-bottom: 7px; }
.pc .pc-ml__name { font-family: var(--pc-font-head); font-weight: 700; font-size: 21px; letter-spacing: -.015em; color: var(--pc-ink); }
.pc .pc-ml__bar { position: relative; display: block; height: 2px; background: rgba(20, 24, 31, .14); overflow: hidden; }
.pc .pc-ml__bar-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--pc-red); transition: width .5s var(--pc-ease); }
.pc .pc-ml__card:hover .pc-ml__bar-fill, .pc .pc-ml__card:focus-visible .pc-ml__bar-fill { width: 100%; }
.pc .pc-ml__summary { font-size: 14.5px; line-height: 1.6; color: var(--pc-dark-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc .pc-ml__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--pc-red); }

/* lapozó */
.pc .pc-ml__pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pc .pc-ml__pg { min-width: 48px; height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(20, 24, 31, .2); border-radius: 7px; background: var(--pc-white); color: var(--pc-ink); font-weight: 700; font-size: 15px; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.pc .pc-ml__pg:hover, .pc .pc-ml__pg:focus-visible { border-color: var(--pc-red); color: var(--pc-red); }
.pc .pc-ml__pg.is-current { background: var(--pc-red); border-color: var(--pc-red); color: var(--pc-white); }

/* záró link */
.pc .pc-ml__back { display: flex; justify-content: center; padding: 44px 0 80px; }
.pc .pc-ml__back-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(20, 24, 31, .25); color: var(--pc-ink); font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 7px; transition: border-color .2s ease, color .2s ease; }
.pc .pc-ml__back-link:hover, .pc .pc-ml__back-link:focus-visible { border-color: var(--pc-red); color: var(--pc-red); }

@media (max-width: 720px) {
    .pc .pc-ml__toggle { display: flex; }
    .pc .pc-ml__filters { margin-top: 10px; grid-template-columns: 1fr; padding: 18px 16px 20px; gap: 16px; }
    .pc .pc-ml__filters[data-open="0"] { display: none; }
    .pc .pc-ml__ctl, .pc .pc-ml__search { height: 52px; font-size: 16px; }
    .pc .pc-ml__caret { width: 52px; height: 52px; }
    .pc .pc-ml__pop { top: 56px; }
    .pc .pc-ml__opt { padding: 13px 10px; font-size: 16px; }
    .pc .pc-ml__opt input { width: 20px; height: 20px; }
    .pc .pc-ml__grid { grid-template-columns: 1fr; gap: 20px; }
    .pc .pc-ml__media { aspect-ratio: 5 / 4; }
    .pc .pc-ml__name { font-size: 23px; }
    .pc .pc-ml__back-link, .pc .pc-ml__more { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .pc .pc-ml__card { animation: none; }
    .pc .pc-ml__img, .pc .pc-ml__shade, .pc .pc-ml__plus, .pc .pc-ml__bar-fill, .pc .pc-ml__chev, .pc .pc-ml__body { transition: none; }
    .pc .pc-ml__card:hover .pc-ml__img, .pc .pc-ml__card:focus-visible .pc-ml__img { transform: none; }
    .pc .pc-ml__spinner { animation: none; }
}
