/* v0.9.41 (r22): events pages = cards on the left, live standings on the right */
.ev41-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.ev41-split .ev18-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); justify-content: stretch; align-content: start; }
.ev41-split .ev18-cards .m15-ev { min-width: 0; }

.ev41-side { --a: 245, 197, 24; background: linear-gradient(180deg, rgba(var(--a), 0.07), rgba(9, 12, 18, 0.9) 120px); border: 1px solid rgba(var(--a), 0.3); border-radius: 16px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 205px); min-height: 0; overflow: hidden; backdrop-filter: blur(8px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.ev18-cat-trials .ev41-side { --a: 56, 189, 248; }
.ev18-cat-special .ev41-side { --a: 244, 114, 182; }
.ev41-side > header { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 2px; }
.ev41-side > header .kick { grid-column: 1; color: rgb(var(--a)); }
.ev41-side > header b { grid-column: 1; font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
.ev41-live { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fca5a5; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); padding: 4px 9px; border-radius: 999px; }
.ev41-live i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); animation: ev41-pulse 1.6s ease-out infinite; }
@keyframes ev41-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.ev41-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ev41-tabs button { flex: 1 1 0; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #cbd5e1; font: 700 12.5px/1.1 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ev41-tabs button:hover { border-color: rgba(var(--a), 0.55); color: #fff; }
.ev41-tabs button.on { background: rgba(var(--a), 0.18); border-color: rgba(var(--a), 0.7); color: #fff; box-shadow: inset 0 -2px 0 rgb(var(--a)); }

.ev41-panes { min-height: 0; overflow: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(var(--a), 0.5) transparent; }
.ev41-panes::-webkit-scrollbar { width: 6px; } .ev41-panes::-webkit-scrollbar-thumb { background: rgba(var(--a), 0.45); border-radius: 6px; }
.ev41-pane { display: none; flex-direction: column; gap: 8px; animation: ev41-in .22s ease-out; }
.ev41-pane.on { display: flex; }
@keyframes ev41-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ev41-ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: #94a3b8; }
.ev41-ph span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev41-ph small { color: #e2e8f0; font-size: 12.5px; white-space: nowrap; } .ev41-ph small b { color: rgb(var(--a)); }

.ev41-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; counter-reset: none; }
.ev41-lb li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); font-size: 13.5px; }
.ev41-lb li:nth-child(odd) { background: rgba(255, 255, 255, 0.055); }
.ev41-lb li em { font-style: normal; font-weight: 800; color: #94a3b8; text-align: center; font-variant-numeric: tabular-nums; }
.ev41-lb li.t1 em { color: #f5c518; } .ev41-lb li.t2 em { color: #d1d9e2; } .ev41-lb li.t3 em { color: #e0a06a; }
.ev41-lb li.t1 { background: linear-gradient(90deg, rgba(245, 197, 24, 0.16), rgba(255, 255, 255, 0.04)); }
.ev41-lb li > :nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ev41-lb li.me { background: rgba(var(--a), 0.16); outline: 1px solid rgba(var(--a), 0.55); }
.ev41-lb li.gap { margin-top: 6px; }
.ev41-sc { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 12.5px; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.ev41-w { width: 26px; height: 24px; display: grid; place-items: center; padding: 0; border-radius: 7px; border: 1px solid rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.1); color: #7dd3fc; cursor: pointer; }
.ev41-w:hover { background: rgba(56, 189, 248, 0.25); color: #fff; }
.ev41-w svg { width: 14px; height: 14px; }
.ev41-lb li:not(:has(.ev41-w)) { grid-template-columns: 26px minmax(0, 1fr) auto; }
.ev41-none { margin: 4px 0; padding: 18px 14px; border-radius: 10px; border: 1px dashed rgba(var(--a), 0.4); color: #cbd5e1; font-size: 13.5px; text-align: center; background: rgba(var(--a), 0.05); }
.ev41-gh { display: flex; gap: 8px; flex-wrap: wrap; } .ev41-gh .gh-btn { flex: 1 1 0; justify-content: center; }
.ev41-rw { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 6px; }
.ev41-rw summary { cursor: pointer; list-style: none; font: 800 11px/1.6 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--a)); display: flex; align-items: center; gap: 6px; }
.ev41-rw summary::-webkit-details-marker { display: none; }
.ev41-rw summary::after { content: "+"; margin-left: auto; font-size: 15px; color: #94a3b8; }
.ev41-rw[open] summary::after { content: "\2212"; }
.ev41-rw .rw20 { margin-top: 6px; }

@media (max-width: 1100px) { .ev41-split { grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); } }
@media (max-width: 860px) { .ev41-split { grid-template-columns: 1fr; } .ev41-side { max-height: none; } }

/* the event cards: circuit photo strip, start button first and wide */
.ev18-cards .m15-ev { overflow: hidden; }
.ev41-img { margin: -16px -16px 0; height: clamp(84px, 15vh, 150px); background: center 58% / cover no-repeat; position: relative; border-bottom: 1px solid rgba(var(--t), 0.35); }
.ev41-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 19, 0) 40%, rgba(10, 13, 19, 0.75)); }
.ev18-cards .me-btns { display: flex; gap: 8px; flex-wrap: nowrap; }
.ev18-cards .me-btns .me-go { flex: 1 1 auto; min-height: 42px; font-size: 15px; }
.ev18-cards .me-btns .me-more { flex: 0 0 auto; padding-inline: 14px; }
.ev18-cards .me-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 800px) { .ev41-img { height: 78px; } }

/* under the cards: your week (Weekly Cup + season) */
.ev41-left { display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 18px); min-width: 0; }
.ev41-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ev41-wk { --k: 74, 222, 128; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--k), 0.32); background: linear-gradient(120deg, rgba(var(--k), 0.12), rgba(9, 12, 18, 0.88) 60%); color: #e2e8f0; cursor: pointer; transition: border-color .15s, transform .15s; }
.ev41-wk.sea { --k: 244, 114, 182; }
.ev41-wk:hover { border-color: rgba(var(--k), 0.75); transform: translateY(-1px); }
.ev41-wi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--k), 0.16); color: rgb(var(--k)); }
.ev41-wi svg { width: 26px; height: 26px; }
.ev41-wt { display: grid; gap: 4px; min-width: 0; }
.ev41-wt .kick { color: rgb(var(--k)); }
.ev41-wt > b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev41-wt > small:last-child { color: #94a3b8; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ev41-wt > small b { color: #e2e8f0; }
.ev41-wk .hb-bar { height: 6px; }
.ev41-wk .hb-bar:not(.cup) i { background: linear-gradient(90deg, #f472b6, #c084fc); }
.ev41-img { height: clamp(96px, 19vh, 190px); }
@media (max-height: 800px) { .ev41-img { height: clamp(96px, 17vh, 150px); } }

/* Season track page: leaderboard + prizes under the track */
.ev41-ss { --a: 244, 114, 182; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; margin-top: 12px; }
.ev41-ss > section { background: rgba(9, 12, 18, 0.86); border: 1px solid rgba(var(--a), 0.3); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.ev41-ss header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: #cbd5e1; }
.ev41-ss header .kick { color: rgb(var(--a)); } .ev41-ss header b { color: rgb(var(--a)); }
.ev41-lb.two { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 10px; }
.ev41-lb.two li.gap { grid-column: 1 / -1; grid-row: auto; }
@media (max-width: 1000px) { .ev41-ss { grid-template-columns: 1fr; } }
@media (min-height: 900px) { .ev41-img { height: clamp(150px, 25vh, 290px); } .ev41-wk { padding: 16px 18px; } }

/* club short tag before a driver's name (boards + global chat) */
.ct41 { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-right: 5px; border-radius: 4px; font: 800 9.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.04em; color: #a7f3d0; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(52, 211, 153, 0.45); vertical-align: 1px; flex: 0 0 auto; }
