.kzr-rc{--bg:#0c0e12;--panel:#171a20;--line:#343840;--white:#f6f7fa;--muted:#a6abb4;--orange:#ff7915;--red:#e71d24;background:var(--bg);color:var(--white);font:500 14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;border-radius:16px;overflow:hidden;box-shadow:0 15px 45px #0003}.kzr-rc *{box-sizing:border-box}.kzr-rc .hero{background:linear-gradient(110deg,#111318 30%,#25140f 78%,#5c1b0d);padding:28px;border-bottom:3px solid transparent;border-image:linear-gradient(90deg,var(--orange),var(--red)) 1}.kzr-rc .eyebrow{letter-spacing:.2em;font-size:11px;color:#ff9b50;font-weight:800}.kzr-rc h2{font-size:clamp(25px,4vw,42px);font-style:italic;letter-spacing:-.04em;margin:5px 0;color:white}.kzr-rc h2 span{color:var(--orange)}.kzr-rc .sub{color:#c5c7cd;font-size:12px;letter-spacing:.08em}.kzr-rc .content{padding:22px}.kzr-rc .tabs,.kzr-rc .filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.kzr-rc button,.kzr-rc select,.kzr-rc input{font:inherit;border:1px solid #4a4e55;background:#1b1e24;color:white;border-radius:8px;padding:10px 13px}.kzr-rc button{cursor:pointer;font-weight:750}.kzr-rc button.active{background:linear-gradient(110deg,var(--orange),var(--red));color:#fff;border-color:transparent}.kzr-rc button:focus-visible,.kzr-rc input:focus-visible,.kzr-rc select:focus-visible{outline:2px solid #ffad70;outline-offset:2px}.kzr-rc input{flex:1;min-width:150px}.kzr-rc .stats{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}.kzr-rc .stat{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:13px 17px;flex:1;min-width:125px}.kzr-rc .stat small{display:block;color:var(--muted);font-size:11px}.kzr-rc .stat strong{font-size:21px}.kzr-rc .table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.kzr-rc table{width:100%;border-collapse:collapse;min-width:900px;font-size:13px}.kzr-rc th{background:#22262d;text-align:center;padding:13px 8px;color:#e8e9ec;white-space:nowrap}.kzr-rc td{padding:12px 8px;text-align:center;border-top:1px solid #353941;font-variant-numeric:tabular-nums}.kzr-rc tr:nth-child(even) td{background:#191c22}.kzr-rc .driver{text-align:left;min-width:170px;font-weight:750}.kzr-rc .driver small{display:block;color:var(--muted);font-weight:450}.kzr-rc .pos{font-weight:900;color:var(--orange)}.kzr-rc .total{background:linear-gradient(135deg,#f96d13,#e52a19)!important;color:white;font-size:16px;font-weight:900}.kzr-rc .discard{background:#54282a!important;color:#ffc4c4;text-decoration:line-through}.kzr-rc .best{color:#ffb063;font-weight:850}.kzr-rc .foot{color:var(--muted);font-size:12px;margin-top:14px}.kzr-rc .pill{background:#442820;color:#ffaf7b;border-radius:5px;padding:3px 6px}.kzr-rc .empty{padding:30px;text-align:center;color:var(--muted)}@media(max-width:650px){.kzr-rc .hero{padding:20px}.kzr-rc .content{padding:12px}.kzr-rc .tabs button{flex:1}.kzr-rc .filters>*{flex:1}.kzr-rc table{font-size:12px}}

/* KZR Race Control 1.3 – identità CRG arancione / rosso */
.kzr-rc{border:1px solid #37343a;background:repeating-linear-gradient(135deg,#101216,#101216 8px,#121418 8px,#121418 16px);border-radius:12px}
.kzr-rc .hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(110deg,#0c0d10 20%,#23140f 70%,#a52a0d);padding:25px 30px;border-bottom:3px solid #f45416}
.kzr-rc .kzr-brand{display:flex;gap:26px;align-items:center}.kzr-rc .kzr-mark{font-size:44px;font-style:italic;font-weight:1000;letter-spacing:-.12em;color:#fff;line-height:1}.kzr-rc .kzr-mark span{color:#f04b19}.kzr-rc .kzr-brand-title{font-size:clamp(21px,3vw,35px);font-style:italic;font-weight:950;line-height:1.05}.kzr-rc .kzr-brand-title em{font-style:inherit;color:#ff661b}.kzr-rc .kzr-brand-title small{display:block;font-style:normal;font-size:11px;letter-spacing:.12em;color:#e4e4e4;margin-top:9px}.kzr-rc .kzr-hero-year{font-size:12px;font-weight:850;letter-spacing:.1em;color:#ffb38a}.kzr-rc .kzr-main-nav{display:flex;gap:0;overflow-x:auto;background:#17191e;border-bottom:1px solid #444}.kzr-rc .kzr-main-nav span{padding:12px 20px;white-space:nowrap;font-size:12px;font-weight:800}.kzr-rc .kzr-main-nav .kzr-nav-active{background:linear-gradient(110deg,#ff7118,#e72a19);color:#fff}.kzr-rc .kzr-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:20px}.kzr-rc .kzr-heading h2{font-style:normal;font-size:clamp(21px,3vw,30px)}.kzr-rc .kzr-heading h2 span{color:#ff7428}.kzr-rc .kzr-tag{color:#ff9c60;font-size:10px;letter-spacing:.1em;font-weight:850}.kzr-rc .kzr-categories button{min-width:110px}.kzr-rc .kzr-modes{border-bottom:1px solid #3b3b3b;padding-bottom:12px}.kzr-rc .filters{align-items:center}.kzr-rc .kzr-result-count{color:#b8b8b8;font-size:12px}.kzr-rc .table-wrap{border-radius:8px}.kzr-rc table{min-width:1120px}.kzr-rc th{background:#22272d}.kzr-rc th small{font-size:10px;color:#aeb4ba}.kzr-rc th.kzr-left{text-align:left}.kzr-rc td.driver strong{display:block;color:#fff}.kzr-rc td.driver small{color:#ff8c45;font-weight:650;margin-top:3px}.kzr-rc .kzr-number{font-style:italic;font-weight:900;color:#fff}.kzr-rc .kzr-region{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px}.kzr-rc .kzr-region img{width:24px;height:18px;object-fit:contain}.kzr-rc .kzr-region-placeholder{color:#fb7a30}.kzr-rc .total{background:linear-gradient(130deg,#ff7118,#db2519)!important}.kzr-rc .stats .stat{border-top:2px solid #f35b1c}
@media(max-width:650px){.kzr-rc .hero{padding:16px}.kzr-rc .kzr-brand{gap:12px}.kzr-rc .kzr-mark{font-size:29px}.kzr-rc .kzr-brand-title small{font-size:8px}.kzr-rc .kzr-hero-year{display:none}.kzr-rc .kzr-main-nav span{padding:10px}.kzr-rc .kzr-categories button{min-width:0}}

/* KZR Race Control 1.4: regional flags and team-colour racing numbers */
.kzr-rc .kzr-region{gap:11px;min-width:140px;font-size:12px;align-items:center}
.kzr-rc .kzr-region img{width:46px;height:33px;min-width:46px;object-fit:contain;border-radius:3px;background:#fff;box-shadow:0 1px 7px #0009;border:1px solid #ffffff55}
.kzr-rc .kzr-region-placeholder{display:inline-flex;align-items:center;justify-content:center;width:46px;height:33px;min-width:46px;background:#282e36;border:1px dashed #68717b;border-radius:3px;font-size:18px}
.kzr-rc .kzr-racing-number{--kzr-team-color:#ff783a;display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:40px;padding:4px 8px;color:var(--kzr-team-color);font-size:23px;font-weight:1000;font-style:italic;letter-spacing:-.06em;line-height:1;transform:skew(-7deg);border:2px solid var(--kzr-team-color);border-radius:5px;background:linear-gradient(130deg,#15191f,#090b0f);box-shadow:inset 0 0 0 1px #ffffff12,0 0 11px color-mix(in srgb,var(--kzr-team-color) 24%,transparent);text-shadow:0 0 9px color-mix(in srgb,var(--kzr-team-color) 24%,transparent)}
.kzr-rc td.kzr-number{padding:8px 10px;white-space:nowrap}
@media(max-width:700px){.kzr-rc .kzr-region img,.kzr-rc .kzr-region-placeholder{width:39px;height:29px;min-width:39px}.kzr-rc .kzr-racing-number{min-width:45px;min-height:36px;font-size:20px}}

/* KZR Race Control 1.5: regional flag stacked above its label */
.kzr-rc .kzr-region{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:82px;white-space:normal;text-align:center;line-height:1.2}
.kzr-rc .kzr-region img{width:46px;height:33px;min-width:46px;display:block;object-fit:contain}
.kzr-rc .kzr-region-placeholder{width:46px;height:33px;min-width:46px}
.kzr-rc .kzr-region-name{display:block;font-size:10px;font-weight:600;color:#c4c9d1;max-width:105px}
@media(max-width:700px){.kzr-rc .kzr-region{min-width:45px;gap:0}.kzr-rc .kzr-region img,.kzr-rc .kzr-region-placeholder{width:39px;height:29px;min-width:39px}.kzr-rc .kzr-region-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}

/* 1.7: intestazione essenziale, senza menu decorativo */
.kzr-rc .hero{background:linear-gradient(110deg,#0c0d10 15%,#171116 75%,#24100d);padding:28px 30px}
.kzr-rc .kzr-brand{gap:24px;min-width:0}
.kzr-rc .kzr-brand-logo{display:block;width:165px;height:auto;max-height:74px;object-fit:contain;flex-shrink:0}
.kzr-rc .kzr-brand-title{font-size:clamp(26px,4.3vw,49px);white-space:nowrap}
.kzr-rc .kzr-main-nav{display:none}
@media(max-width:650px){.kzr-rc .hero{padding:19px 15px}.kzr-rc .kzr-brand{gap:10px}.kzr-rc .kzr-brand-logo{width:95px;max-height:45px}.kzr-rc .kzr-brand-title{font-size:clamp(18px,5vw,27px)}}

/* 1.8: titolo unico senza logo, allineato a sinistra */
.kzr-rc .kzr-brand{gap:0}.kzr-rc .kzr-brand-title{font-size:clamp(34px,5vw,64px);font-weight:950;letter-spacing:-.035em}
@media(max-width:650px){.kzr-rc .kzr-brand-title{font-size:clamp(28px,8vw,42px)}}


/* 1.9: scheda tecnica contestuale in alto a destra */
.kzr-rc .hero{align-items:center;gap:24px;flex-wrap:wrap}
.kzr-rc .kzr-brand{flex:0 1 auto}
.kzr-rc .kzr-spec-card{flex:1 1 420px;max-width:730px;margin-left:auto;border:1px solid #58403a;border-top:3px solid #ff6b1b;border-radius:11px;padding:14px 18px;background:linear-gradient(125deg,#1a1d23,#21171a);box-shadow:0 8px 20px #0003}
.kzr-rc .kzr-spec-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.kzr-rc .kzr-spec-label{font-size:10px;letter-spacing:.17em;font-weight:850;color:#c5b3a9}
.kzr-rc .kzr-spec-head strong{font-size:16px;font-weight:950;color:#ff7915;letter-spacing:.05em}
.kzr-rc .kzr-spec-grid{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(140px,1.1fr);gap:10px 20px;margin:0}
.kzr-rc .kzr-spec-grid>div{min-width:0}
.kzr-rc .kzr-spec-grid dt{color:#aeb3bc;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:750;margin-bottom:3px}
.kzr-rc .kzr-spec-grid dd{margin:0;font-size:13px;line-height:1.35;font-weight:700;color:#fff;overflow-wrap:anywhere}
.kzr-rc .kzr-spec-grid .kzr-spec-weight{font-size:17px;color:#ff8a41;font-weight:900}
@media(max-width:900px){.kzr-rc .hero{align-items:stretch}.kzr-rc .kzr-spec-card{max-width:none;margin-left:0;flex-basis:100%}}
@media(max-width:440px){.kzr-rc .kzr-spec-card{padding:12px}.kzr-rc .kzr-spec-grid{grid-template-columns:1fr 1fr;gap:12px}.kzr-rc .kzr-spec-grid dd{font-size:12px}}

/* v2.5 – gallery card: original photos, no compositing or decorative streaks */
.kzr-rc .hero{display:grid;grid-template-columns:minmax(220px,1fr) minmax(360px,730px);align-items:start;gap:26px;padding:28px 30px}
.kzr-rc .kzr-brand{align-self:center;min-width:0}
.kzr-rc .kzr-hero-side{width:100%;display:flex;flex-direction:column;gap:14px;min-width:0}
.kzr-rc .kzr-hero-side .kzr-spec-card{margin:0;max-width:none;width:100%;flex:auto}
.kzr-rc .kzr-photo-card{margin:0;overflow:hidden;border-radius:11px;border:1px solid #58403a;background:#111318;box-shadow:0 6px 18px #0005;line-height:0}
.kzr-rc .kzr-photo-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#111318}
@media(max-width:900px){.kzr-rc .hero{grid-template-columns:1fr;gap:20px}.kzr-rc .kzr-brand{align-self:start}.kzr-rc .kzr-hero-side{max-width:none}}
@media(max-width:650px){.kzr-rc .hero{padding:19px 15px;gap:15px}.kzr-rc .kzr-hero-side{gap:12px}}
