/* [bm_winning_tickets] – scoped to .bm-winners. On the Nyertes tippek page
   (.bm-winners--page): track record band, label filter, grid, pages and a closing call to
   action. Home page (.bm-winners--carousel): one scrolling row with arrows. Elsewhere: the grid. */

.bm-winners { width: 100%; margin: 0 auto; color: #fff; font: 400 16px/1.5 var(--bm-body); }
.bm-winners *, .bm-winners *::before, .bm-winners *::after { box-sizing: border-box; }
.bm-winners a { text-decoration: none; box-shadow: none; }
.bm-winners :is(h2, p, ul) { margin: 0; padding: 0; }

.bm-winners__empty { padding: 40px 24px !important; border: 1px dashed var(--bm-line-strong); border-radius: var(--bm-radius); background: rgba(4, 10, 34, .7); color: var(--bm-muted); text-align: center; }

/* ---------- Track record band ---------- */
.bm-winners__record {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 28px 48px;
	margin-bottom: 36px;
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
	background: radial-gradient(circle at 0 0, rgba(52, 211, 153, .22), transparent 50%), linear-gradient(160deg, rgba(10, 22, 64, .9), rgba(4, 10, 34, .92));
	box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8);
}
.bm-winners__headline { display: grid; align-content: start; justify-items: start; gap: 6px; padding-right: 40px; border-right: 1px solid var(--bm-line); }
.bm-winners__headline .bm-kicker { color: var(--bm-green); }
.bm-winners__rate { background: linear-gradient(180deg, #d6fff0 10%, var(--bm-green) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; font: 700 130px/.8 var(--bm-display); }
.bm-winners__rate small { font-size: .5em; }
.bm-winners__rate-label { color: #c9d6f5; font: 700 13px/1.2 var(--bm-hud); letter-spacing: .16em; text-transform: uppercase; }
.bm-winners__facts { display: grid; gap: 6px; margin-top: 14px !important; list-style: none; }
.bm-winners__facts li { position: relative; padding-left: 18px; color: #dfe7ff; font-size: 14px; }
.bm-winners__facts li::before { content: ""; position: absolute; top: 8px; left: 0; width: 7px; height: 7px; transform: rotate(45deg); background: var(--bm-green); }
.bm-winners__rows { display: grid; align-content: center; gap: 18px; list-style: none; }
.bm-winners__row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 60px; grid-template-areas: "label bar rate" "label meta meta"; align-items: center; gap: 4px 18px; }
.bm-winners__row-label { grid-area: label; font: 700 26px/.95 var(--bm-display); text-transform: uppercase; }
.bm-winners__bar { grid-area: bar; display: block; height: 10px; overflow: hidden; transform: skewX(-20deg); background: rgba(160, 190, 255, .14); }
.bm-winners__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--bm-cyan), var(--bm-green)); box-shadow: 0 0 12px var(--bm-cyan); }
.bm-winners__row-rate { grid-area: rate; color: var(--bm-green); font: 700 30px/1 var(--bm-display); text-align: right; }
.bm-winners__row-meta { grid-area: meta; color: var(--bm-muted); font: 600 12px/1.3 var(--bm-hud); letter-spacing: .04em; }
.bm-winners__record-note { grid-column: 1 / -1; padding-top: 18px !important; border-top: 1px solid var(--bm-line); color: var(--bm-muted); font-size: 13px; }
.bm-winners__record:not(:has(.bm-winners__headline)) { grid-template-columns: 1fr; }

/* ---------- Label filter ---------- */
.bm-winners__filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.bm-winners__filter a, .bm-winners__filter a:visited { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--bm-line); color: #dfe7ff; font: 700 13px/1 var(--bm-hud); letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.bm-winners__filter a small { color: var(--bm-muted); font-size: 11px; }
.bm-winners__filter a:hover { background: rgba(63, 240, 255, .16); color: #fff; }
.bm-winners__filter a.is-active { background: linear-gradient(100deg, var(--bm-cyan), var(--bm-blue)); color: #031033; }
.bm-winners__filter a.is-active small { color: #031033; }

/* ---------- Grid ---------- */
.bm-winners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.bm-winners--embed .bm-winners__grid { grid-template-columns: repeat(var(--bm-cols, 3), minmax(0, 1fr)); }
.bm-winners__item { position: relative; display: grid; gap: 12px; margin: 0; padding: 10px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 24px 40px rgba(0, 0, 0, .45); transition: transform .25s; }
.bm-winners__item:hover { transform: translateY(-8px) rotate(-1deg); }
.bm-winners__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 15px; background: #0b1230; cursor: zoom-in; }
.bm-winners__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.bm-winners__media:hover img { transform: scale(1.04); }
.bm-winners__media--pdf { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--bm-cyan-soft); font: 700 13px/1 var(--bm-hud); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.bm-winners__badge { position: absolute; top: 14px; left: -2px; display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); background: linear-gradient(90deg, #2fe08f, var(--bm-green)); color: #03251a; font: 700 13px/1 var(--bm-hud); letter-spacing: .14em; text-transform: uppercase; }
.bm-winners__badge::before { content: "✓"; }
/* A losing ticket: red badge and frame, the odds in grey – shown as honestly as the winners. */
.bm-winners__item.is-lost { background: linear-gradient(160deg, rgba(255, 77, 106, .16), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 77, 106, .35), 0 24px 40px rgba(0, 0, 0, .45); }
.bm-winners__item.is-lost .bm-winners__badge { background: linear-gradient(90deg, #ff6a85, #e11d48); color: #fff; }
.bm-winners__item.is-lost .bm-winners__badge::before { content: "✕"; }
.bm-winners__item.is-lost .bm-winners__odds { color: #9aa6c7; text-decoration: line-through; text-decoration-color: rgba(255, 77, 106, .8); text-decoration-thickness: 2px; }
.bm-winners__filter--outcome { margin-bottom: 12px; }
.bm-winners__filter--outcome a.is-won.is-active { background: linear-gradient(100deg, #2fe08f, var(--bm-green)); color: #03251a; }
.bm-winners__filter--outcome a.is-lost.is-active { background: linear-gradient(100deg, #ff6a85, #e11d48); color: #fff; }
.bm-winners__filter--outcome a.is-lost.is-active small { color: #fff; }
.bm-winners__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(4, 10, 34, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.bm-winners__caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 0 6px 6px; }
.bm-winners__label { color: var(--bm-cyan-soft); font: 700 12px/1.3 var(--bm-hud); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.bm-winners__odds { grid-row: span 2; color: var(--bm-gold); font: 700 34px/.9 var(--bm-display); }
.bm-winners__odds.is-long { font-size: 26px; }
.bm-winners__date { color: var(--bm-muted); font-size: 13px; }
.bm-winners__note { grid-column: 1 / -1; color: #dfe7ff; font-size: 13px; }

/* ---------- Home: one row, centred, scrolling with arrows ---------- */
.bm-winners--carousel .bm-winners__grid { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 21vw, 280px); grid-template-columns: none; width: max-content; max-width: 100%; margin-inline: auto; padding: 20px 12px 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bm-winners--carousel .bm-winners__grid::-webkit-scrollbar { display: none; }
.bm-winners--carousel .bm-winners__item { scroll-snap-align: start; }
.bm-winners__nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.bm-winners__nav[hidden] { display: none; }
.bm-winners .bm-winners__arrow,
.bm-winners .bm-winners__arrow:is(:hover, :focus, :active) { display: grid; place-items: center; width: 56px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); background: linear-gradient(100deg, rgba(63, 240, 255, .35), rgba(29, 107, 255, .5)); box-shadow: none; color: #fff; cursor: pointer; }
.bm-winners .bm-winners__arrow:hover { background: var(--bm-cyan); color: #031033; }
.bm-winners__arrow::before { content: ""; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 11px solid currentColor; }
.bm-winners__arrow--next::before { transform: scaleX(-1); }
.bm-winners__more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Pages ---------- */
.bm-winners__pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.bm-winners__pager a, .bm-winners__pager a:visited { display: grid; place-items: center; min-width: 46px; height: 42px; padding: 0 12px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--bm-line); color: #fff; font: 700 15px/1 var(--bm-hud); }
.bm-winners__pager a:hover { background: rgba(63, 240, 255, .2); }
.bm-winners__pager a.is-active { background: linear-gradient(100deg, var(--bm-pink), var(--bm-violet)); }

/* ---------- Closing call to action ---------- */
.bm-winners__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: clamp(26px, 4vw, 44px); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); background: linear-gradient(120deg, rgba(123, 77, 255, .5), rgba(255, 63, 216, .35) 50%, rgba(29, 107, 255, .45)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.bm-winners__cta h2 { margin-top: 8px !important; font: 700 clamp(36px, 4.4vw, 56px)/.9 var(--bm-display); text-transform: uppercase; }
.bm-winners__cta p { margin-top: 8px !important; color: #e6edff; }
.bm-winners__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
	.bm-winners__record { grid-template-columns: 1fr; }
	.bm-winners__headline { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--bm-line); }
	.bm-winners--embed .bm-winners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.bm-winners--carousel .bm-winners__grid { grid-auto-columns: 72vw; }
	.bm-winners__row { grid-template-columns: 1fr 52px; grid-template-areas: "label rate" "bar bar" "meta meta"; }
	.bm-winners__rate { font-size: 96px; }
}
@media (max-width: 480px) {
	.bm-winners__grid, .bm-winners--embed .bm-winners__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-winners__item, .bm-winners__media img { transition: none; }
}
