/* The compact visitor homepage shares its shell with the existing match catalogue. */
.visitor-compact .home-modern:has(.prematch-grid) > header > .container,
.visitor-compact .visitor-home:has(.prematch-grid) { max-width: 1082px; }
.prematch-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 5px 0 18px; }
.visitor-home .prematch-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -.05em; }
.prematch-head p { margin: 0; font-size: 13px; color: #b5c6d0; }
.prematch-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr); align-items: start; gap: 18px; margin-bottom: 26px; }
.prematch-grid *, .prematch-grid *::before, .prematch-grid *::after { box-sizing: border-box; }
.prematch-aside { display: grid; gap: 15px; }
.visitor-home .prematch-grid section { margin: 0; }
.prematch-grid p { margin: 0; }
.prematch-grid :is(button,input) { font: inherit; }
.prematch-grid :is(button,summary) { cursor: pointer; }
.prematch-grid a { text-underline-offset: 3px; }
.prematch-grid .prematch-panel { min-width: 0; padding: 20px; border: 1px solid #344957; border-radius: 13px; background: #102333; }
.prematch-panel:empty { display: none; }
.visitor-home .prematch-panel h2 { color: #eff4f4; font-size: 24px; line-height: 1.14; letter-spacing: -.04em; }
#prematch-feature { min-width: 0; border-radius: 15px; overflow: hidden; background: #f8f5eb; border: 1px solid #435052; color: #132d31; overflow-wrap: anywhere; }
#prematch-feature .pm-banner { padding: 22px 26px; color: #fff; background: linear-gradient(90deg,#020c14dc,#04101957), linear-gradient(0deg,#041018a6,transparent 82%), #132d31 url(prematch-stadium.webp) center 60% / cover; }
.pm-banner .pm-league, .pm-kicker { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.pm-banner .pm-kickoff { display: inline-block; border: 1px solid #a4b3aa77; background: #0b1e23d9; border-radius: 6px; padding: 4px 8px; font-size: 13px; font-weight: 650; }
.visitor-home .pm-banner h2 { color: white; margin: 14px 0 0; font-size: clamp(28px,3.6vw,42px); letter-spacing: -.05em; line-height: 1.09; }
.pm-body { padding: 19px 26px 10px; }
.pm-body .pm-kicker { color: #3c645a; }
.pm-body .pm-market { color: #132d31; font-size: clamp(28px,4vw,44px); line-height: 1.08; font-weight: 750; letter-spacing: -.045em; margin: 4px 0 9px; }
.pm-body .pm-explain { font-size: 15px; line-height: 1.43; color: #35494a; }
.visitor-home .pm-body .pm-support { border-top: 1px solid #d7d9cb; margin: 13px 0; padding-top: 11px; }
.visitor-home .pm-body h3 { font-size: 16px; color: #132d31; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.pm-support p, .pm-support .pm-row { font-size: 14px; margin-top: 4px; color: #35494a; }
.pm-row { font-variant-numeric: tabular-nums; }
.pm-body .pm-risk { padding: 7px 12px; border-left: 3px solid #bd8329; border-radius: 0 6px 6px 0; background: #efe9d8; color: #403828; }
.pm-risk p { font-size: 14px; margin-top: 3px; }
#prematch-feature :is(.pm-source, .pm-body a, .pm-body button) { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: #21554c; background: none; border: 0; padding: 0; font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
#prematch-feature :is(.pm-loading,.pm-empty) { padding: 20px 24px; }
.visitor-home:has(#prematch-feature[data-full-sample="true"]) #public-pro-demo:not(:target) { display:none; }
.visitor-home:has(#prematch-search input) #meciuri-cu-abonament .visitor-team-search { display:none; }
.ticket-search-field { display: flex; align-items: center; gap: 13px; padding: 0 13px; margin-top: 14px; border-radius: 7px; border: 1px solid #607382; background: #0b1926; color: #b0c0c9; }
.ticket-search-field:focus-within { outline: 2px solid #ecc974; outline-offset: 1px; }
.ticket-search-field input { width: 100%; min-width: 0; min-height: 44px; background: transparent; padding: 5px 2px; border: 0; color: #fff; }
.ticket-search-field input:focus-visible { outline: none; }
.ticket-search-field input::placeholder { color: #b9c4cc; }
.ticket-suggestions { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; color: #b5c6d0; font-size: 13px; }
#prematch-search :is(.ticket-suggestions button,.ticket-actions button,.ticket-actions a),
#prematch-last-result a { display: inline-flex; align-items: center; min-height: 40px; background: none; border: 0; padding: 0; font-size: 14px; color: #f1c56d; text-decoration: underline; text-underline-offset: 4px; }
.ticket-results { margin: 0; list-style: none; padding: 0; max-height: 52vh; overflow: auto; }
.ticket-results li { padding-top: 9px; border-top: 1px solid #344957; overflow-wrap: anywhere; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 0 12px; }
.ticket-meta, #prematch-search [role=status] { color: #b5c6d0; font-size: 13px; }
#prematch-search [role=status]:not(:empty) { margin-top: 8px; }
.pm-result-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 14px 0 7px; color: #b5c6d0; font-size: 13px; }
.pm-result-state { font-weight: 670; }
.pm-result-state[data-hit=true] { color: #9fe2bb; }
.pm-result-state[data-hit=false] { color: #ffc3ae; }
.visitor-home .pm-result-teams { color: #f2f6f7; font-size: 19px; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pm-result-score { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 11px 0; margin: 11px 0 0; border-block: 1px solid #344957; font-variant-numeric: tabular-nums; }
.pm-result-detail { color: #b5c6d0; font-size: 13px; }
@media (max-width: 740px) {
  .prematch-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .prematch-aside { gap: 12px; }
  .prematch-head { display: block; margin: 0 0 12px; }
  .prematch-head p { margin-top: 4px; font-size: 12px; }
  .prematch-grid .prematch-panel { padding: 16px; }
  .visitor-home .prematch-panel h2 { font-size: 22px; }
  #prematch-feature .pm-banner { padding: 15px 17px 17px; }
  .pm-body { padding: 15px 17px 5px; }
  .visitor-home .pm-banner h2 { margin-top: 12px; }
  .ticket-search-field { margin-top: 10px; }
}
#prematch-search .ticket-actions .visitor-unlock::after { content: none; }
#prematch-last-result .pm-result-score p { flex: 1 1 110px; }
#prematch-last-result .pm-result-score p:last-child { flex: 0 1 auto; }
.pm-result-score :is(small,strong) { display: block; }
.pm-result-score strong { font-size: 15px; line-height: 1.3; margin-top: 2px; }
.pm-result-score p:last-child strong { font-size: 24px; }
.pm-result-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; min-height: 44px; color: #f1c56d; font-weight: 650; font-size: 14px; cursor: pointer; }
.pm-result-detail summary::-webkit-details-marker { display: none; }
.pm-result-detail summary::after { content: '+'; font-size: 20px; font-weight: 400; }
.pm-result-detail[open] summary::after { content: '−'; }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-support .pm-row { display: grid; grid-template-columns: minmax(0,1fr) 60px auto; align-items: center; gap: 7px; }
.pm-row b { min-width: 34px; text-align: right; }
.pm-meter { width: 100%; height: 8px; border: 0; border-radius: 3px; background: #d6dace; appearance: none; }
.pm-meter::-webkit-meter-bar { background: #d6dace; border: 0; border-radius: 3px; height: 6px; }
.pm-meter::-webkit-meter-optimum-value { background: #47776c; border-radius: 3px; }
.pm-meter::-moz-meter-bar { background: #47776c; border-radius: 3px; }
.pm-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; padding: 4px 0 3px; }
#prematch-feature .pm-foot .pm-published { color: #4b615d; font-size: 12px; }
#prematch-feature .pm-foot .pm-source { margin: 0; }
.ticket-search-field { position: relative; }
.ticket-search-field::before { content: ''; width: 13px; height: 13px; border: 1.7px solid #b4c4ce; border-radius: 50%; flex: 0 0 auto; }
.ticket-search-field::after { content: ''; position: absolute; left: 24px; top: calc(50% + 5px); width: 6px; height: 2px; transform: rotate(45deg); background: #b4c4ce; pointer-events: none; }
#prematch-search .ticket-search-field input { box-shadow: none; outline: none; }
#prematch-search .ticket-search-field:focus-within { outline: 2px solid #ecc974; }
.ticket-results strong, .ticket-meta { display: block; }
.ticket-results .ticket-market { font-size: 14px; color: #f3f6f8; margin-top: 6px; }
#prematch-search .ticket-search-more { border: 1px solid #526878; border-radius: 6px; padding: 6px 12px; min-height: 40px; background: transparent; color: #f1c56d; }
