/* Match page — moved from mockup a3-event.html. */
.ehero { position: relative; border-radius: var(--r-l); overflow: hidden; color: #fff; background: var(--ink); min-height: 260px; display: grid; align-content: end; padding: 24px; isolation: isolate; container-type: inline-size; }
.ehero__bg { position: absolute; inset: 0; z-index: -2; }
.ehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ehero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 28, 39, .94), rgba(14, 28, 39, .62) 60%, rgba(14, 28, 39, .38)), linear-gradient(0deg, rgba(14, 28, 39, .6), transparent 50%); }
.ehero__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; }
.badge.live-pre::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ehero .el { --c: #fff; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.ehero h1 { margin-top: 12px; font-size: clamp(28px, 5cqi, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.ehero h1 span { color: rgba(255, 255, 255, .55); font-weight: 600; }
.ehero__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; justify-content: space-between; margin-top: 16px; }
.ehero__time { font-size: 14px; color: rgba(255, 255, 255, .8); }
.ehero__time b { display: block; font-size: 28px; line-height: 32px; color: #fff; letter-spacing: -.02em; }
.ehero__main { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(104px, 1fr)); gap: 8px; min-width: min(100%, 340px); }
.ehero__main .odds { width: 100%; }
@media (max-width: 767px) { .ehero { padding: 18px; min-height: 240px; } .ehero__main { min-width: 100%; } }

.ebar { position: sticky; top: 84px; z-index: 20; display: grid; gap: 10px; padding: 10px; border-radius: var(--r-l); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
@media (max-width: 767px) { .ebar { top: 68px; } }
.ebar__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ebar .seg button { min-height: 40px; padding: 0 18px; }
.ebar .seg button:disabled { opacity: .45; cursor: not-allowed; }
.ebar__count { margin-left: auto; font-size: 13px; color: var(--ink-2); }

.mgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@container (max-width: 760px) { .mgrid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .mgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.mkt { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.mkt[hidden] { display: none; }
.mkt__head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 8px 0 14px; border: 0; background: var(--surface-2); text-align: left; font-weight: 800; font-size: 15px; cursor: pointer; flex-wrap: wrap; }
.mkt__head small { font-weight: 600; color: var(--ink-2); font-size: 12px; }
.mkt__head > .icon { margin-left: auto; transition: transform var(--t2) var(--ease); }
.mkt__head[aria-expanded="false"] > .icon { transform: rotate(-90deg); }
.mkt__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t2) var(--ease); }
.mkt__body > div { overflow: hidden; min-height: 0; }
.mkt__head[aria-expanded="false"] + .mkt__body { grid-template-rows: 0fr; }
.mkt__head[aria-expanded="false"] + .mkt__body > div { visibility: hidden; }
.outs { display: grid; gap: 8px; padding: 12px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.outs .odds { width: 100%; min-width: 0; }
.outs--ou { grid-template-columns: 1fr auto 1fr; align-items: center; }
.outs--ou .line { min-width: 64px; text-align: center; font-size: 15px; font-weight: 800; }
.outs--ou .line small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.outs--list { grid-template-columns: 1fr; gap: 0; padding: 4px 12px 8px; }
.orow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.orow + .orow { border-top: 1px solid var(--line); }
.orow > span { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.orow > span small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.outs--list .odds { width: auto; flex: none; min-width: 76px; }

/* Same Game Multi builder (§12.2) */
.sgm { border-radius: var(--r-l); background: var(--ink); color: #fff; padding: 16px; display: grid; gap: 12px; }
.sgm[hidden] { display: none; }
.sgm__head { display: flex; align-items: center; gap: 10px; }
.sgm__head h2 { font-size: 18px; font-weight: 800; }
.sgm__head p { font-size: 13px; color: rgba(255, 255, 255, .72); }
.sgm__legs { display: grid; gap: 6px; }
.sgm__legs li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); background: rgba(255, 255, 255, .08); font-size: 14px; }
.sgm__legs li span { flex: 1; min-width: 0; }
.sgm__legs li small { display: block; color: rgba(255, 255, 255, .62); font-size: 12px; }
.sgm__legs button { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; }
.sgm__legs button::after { content: ""; position: absolute; inset: -8px; }
.sgm__legs button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sgm__legs .icon { width: 18px; height: 18px; }
.sgm__state { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: var(--r-s); background: rgba(255, 255, 255, .06); font-size: 14px; }
.sgm__state b { margin-left: auto; font-size: 26px; color: var(--accent); }
.sgm__state.err { background: rgba(255, 138, 146, .14); color: #FFC2C7; }
.sgm__state .icon { width: 18px; height: 18px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.sgm .btn:disabled { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); border-color: transparent; }
.sgm__empty { font-size: 14px; color: rgba(255, 255, 255, .72); }

.more-ev { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t); }
.mrow:hover { border-color: var(--line-strong); }
.mrow > a { text-decoration: none; min-width: 0; }
.mrow b { display: block; font-size: 15px; }
.mrow small { color: var(--ink-2); font-size: 12px; }
.mrow .o { display: flex; gap: 6px; }
.mrow .o .odds { min-width: 60px; min-height: 40px; font-size: 16px; }
@media (max-width: 559px) { .mrow { grid-template-columns: 1fr; } .mrow .o .odds { flex: 1; } }
.pick { display: grid; gap: 6px; margin-bottom: 14px; }
.pick a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); text-decoration: none; }
.pick span:nth-child(2) { flex: 1; min-width: 0; }
.pick b { display: block; }
.pick small { color: var(--ink-2); font-size: 12px; }
