:root {
  --bg: #09090b; --panel: #131316; --panel2: #1a1a1f; --line: #26262d;
  --text: #f5f5f6; --muted: #9a9aa6; --accent: #ffffff; --accent-ink: #000;
  --ok: #2ed47a; --warn: #ffd400;
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; font-style: italic; font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(3rem, 9vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Fejléc */
.top { position: sticky; top: 0; z-index: 20; background: rgba(9,9,11,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.5rem; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 8px; filter: drop-shadow(0 0 22px rgba(255,255,255,.28)); animation: float 7s ease-in-out infinite; }
.brand b { color: transparent; -webkit-text-stroke: 1.2px var(--text); font-weight: 800; }
.top nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--panel); }
.top nav a.on { color: var(--text); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
.lang { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 6px 10px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.lang:hover { border-color: var(--accent); }

/* Oldalak */
.page { display: none; padding: 40px 0 72px; }
.page.on { display: block; }
.page-head { margin-bottom: 24px; }
.page-head p { margin: 0; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(900px 400px at 85% 20%, rgba(255,255,255,.10), transparent 60%),
  radial-gradient(700px 400px at 10% 100%, rgba(255,255,255,.06), transparent 60%), var(--bg); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,.2), var(--bg)); }
.hero .wrap { position: relative; z-index: 1; padding: 88px 0 72px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; }
.kicker { display: inline-block; border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero p.lead { font-size: 1.15rem; color: #cfcfd6; max-width: 34em; margin: 0 0 28px; }
.hero-logo { justify-self: end; width: min(340px, 100%); opacity: .95; mix-blend-mode: screen; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { border-color: #3a3a44; background: var(--panel2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 0 28px rgba(255,255,255,.25); }
.btn.sm { padding: 7px 12px; font-size: .88rem; }
.btn.danger { color: #ff7b85; }

/* Szekciók */
section.block { padding: 56px 0; border-bottom: 1px solid var(--line); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; position: relative; }
.steps li::before { content: counter(s); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--text); display: block; line-height: 1; margin-bottom: 8px; }
.note { margin-top: 20px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); }
.card.soon { border-style: dashed; color: var(--muted); }
.card .tag { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.card h3 { margin: 6px 0 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.links a { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.links a:hover { border-color: var(--accent); }
.links a span { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Bajnokság választó, tabok */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 8px 16px; border-radius: 99px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .95rem; }
.pill:hover { color: var(--text); }
.pill.on { background: var(--text); color: #000; border-color: var(--text); box-shadow: 0 0 20px rgba(255,255,255,.18); }

/* Táblázat */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: right; white-space: nowrap; }
th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { text-align: left; }
th:first-child, td:first-child { text-align: center; width: 54px; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 700; }
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody tr:hover td { background: var(--panel2); }
td.rank { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.3rem; }
td.pts { font-weight: 800; font-size: 1.05rem; }
.tn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.bar { width: 5px; height: 26px; border-radius: 3px; display: inline-block; }
.mbar { display: none; }
.num { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--muted); margin-right: 4px; }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Naptár */
.race { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.race > button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 70px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; }
.race > button:hover { background: var(--panel2); }
.race .rd { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem; color: transparent; -webkit-text-stroke: 1.2px var(--text); }
.race .rt { font-weight: 700; font-size: 1.1rem; }
.badge { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.done { color: var(--ok); border-color: rgba(46,212,122,.4); }
.badge.upcoming { color: var(--warn); border-color: rgba(255,212,0,.4); }
.badge.sprint { color: #ff8a1f; border-color: rgba(255,138,31,.5); margin-left: 8px; padding: 2px 8px; font-size: .68rem; vertical-align: middle; }
.race .subhead { margin: 18px 0 4px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .race .subhead { padding-inline: 14px; } }
.race .body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--line); }
.race.open .body { display: block; }
.meta { display: flex; flex-wrap: wrap; gap: 24px; margin: 14px 0; }
.meta div span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Fejlődés */
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.team { all: unset; box-sizing: border-box; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.team:hover { border-color: #3a3a44; }
.team.on { border-color: var(--tc, var(--accent)); box-shadow: 0 0 0 1px var(--tc, var(--accent)); }
.team .car { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--tc), #000 140%); display: grid; place-items: center; overflow: hidden; }
.team .car img { width: 100%; height: 100%; object-fit: contain; }
.team .car b { font-family: var(--display); font-style: italic; font-size: 3rem; opacity: .85; }
.team .info { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.team .info small { color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat b { font-family: var(--display); font-style: italic; font-size: 2rem; line-height: 1.1; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.panel h3 { font-size: 1.15rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 6px 12px; border-radius: 99px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: .9rem; }
.chip.on { background: var(--text); color: #000; border-color: var(--text); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

footer { padding: 36px 0; color: var(--muted); text-align: center; font-size: .9rem; }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero-logo { display: none; }
  .steps, .two { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .race > button { grid-template-columns: 52px 1fr auto; }
  .race > button .when { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Effektek (finom, fekete-fehér) ---- */
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes drift { from { background-position: 0 0 } to { background-position: 120px 0 } }
@keyframes sweep { from { transform: translateX(-120%) skewX(-20deg) } to { transform: translateX(260%) skewX(-20deg) } }
/* szemcsés filmzaj az egész oldalon */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* sebességvonalak a hero mögött */
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5;
  background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(255,255,255,.05) 46px 47px, transparent 47px 120px);
  animation: drift 6s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero-media::after { z-index: 2; }
/* fényes sáv a gombon / kártyán hoverre */
.btn.primary, a.card, .team, .links a { position: relative; overflow: hidden; }
.btn.primary::after, a.card::after, .team::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn.primary:hover::after, a.card:hover::after, .team:hover::after { animation: sweep .8s ease; }
a.card:hover, .team:hover, .links a:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 10px 40px rgba(255,255,255,.07); transform: translateY(-2px); }
a.card, .team, .links a, .btn { transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.top nav a.on { box-shadow: inset 0 -2px 0 var(--text); }
h2 { position: relative; }
.page-head h2::after, section.block > h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--text); margin-top: 12px; box-shadow: 0 0 14px rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-media::before { animation: none !important; } .btn.primary:hover::after, a.card:hover::after, .team:hover::after { animation: none; } }

/* ====== Több effekt: átmenetek ====== */
@keyframes revealUp { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.82) rotate(-6deg); filter: blur(10px); } }

[data-reveal] { opacity: 0; }
[data-reveal].in { opacity: 1; animation: revealUp .75s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

.page.on { animation: pageIn .5s cubic-bezier(.2,.7,.2,1); }
tbody tr { animation: rowIn .55s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 38ms); }

.hero .wrap > div > * { animation: fadeUp 1s cubic-bezier(.2,.7,.2,1) backwards; }
.hero .kicker { animation-delay: .05s; }
.hero h1 { animation-delay: .18s; }
.hero p.lead { animation-delay: .34s; }
.hero .btns { animation-delay: .5s; }
.hero-logo { animation: logoIn 1.2s cubic-bezier(.2,.7,.2,1) backwards, float 7s ease-in-out 1.2s infinite; }

.chart .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.4,.1,.2,1) .15s forwards; }
.chart .dots circle { transform-box: fill-box; transform-origin: center; animation: dotIn .4s ease 1.1s backwards; }

/* futó szalag */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.marquee span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee i { color: var(--muted); font-style: normal; font-size: .8rem; align-self: center; }
.marquee:hover .track { animation-play-state: paused; }

/* fénykör a kártyákon */
.steps li, .panel, a.card:not(.soon), .links a, .stat {
  background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgba(255,255,255,.085), transparent 70%);
}
/* fejléc összehúzódás */
.top .wrap { transition: height .25s ease; }
.top.scrolled .wrap { height: 54px; }
.top.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.top nav a { transition: color .2s, background .2s, box-shadow .25s; }
.btn:active, .pill:active, .chip:active { transform: scale(.96); }
.pill, .chip, .btn { transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s; }
.team .car img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.team:hover .car img { transform: scale(1.06); }
.race > button { transition: background .2s; }
.race .body { animation: pageIn .4s ease; }
.badge.upcoming { animation: pulse 2.4s ease-in-out infinite; }
td.rank { transition: transform .2s; }
tbody tr:hover td.rank { transform: scale(1.18); }
tbody tr td { transition: background .2s; }

/* ====== Telefon ====== */
.tabbar { display: none; }
@media (max-width: 800px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .top nav { display: none; }
  .top .wrap { height: 56px; padding-inline: 2px; }
  .lang { margin-left: auto; padding: 8px 14px; min-height: 40px; }
  .brand span { display: inline; font-size: 1.3rem; }
  .brand img { width: 38px; height: 38px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  h2 { font-size: 1.9rem; }
  .page { padding: 26px 0 48px; }
  .wrap { width: calc(100% - 28px); }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(9,9,11,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 700; border-radius: 12px; -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s; }
  .tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
  .tabbar a.on { color: var(--text); background: rgba(255,255,255,.08); }
  .tabbar a.on svg { transform: translateY(-2px) scale(1.12); filter: drop-shadow(0 0 8px rgba(255,255,255,.6)); }

  .hero .wrap { padding: 36px 0 40px; gap: 8px; }
  .hero-logo { display: block; order: -1; width: 150px; justify-self: start; }
  .hero p.lead { font-size: 1.02rem; }
  .btns .btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
  section.block { padding: 36px 0; }
  .marquee .track { font-size: 1.15rem; }
  .steps li { padding: 16px; }
  .steps li::before { font-size: 2.1rem; }
  .cards { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr 1fr; }
  .links a { padding: 16px 14px; min-height: 52px; }

  .pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 6px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; min-height: 42px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 6px; scrollbar-width: none; }
  .chip { white-space: nowrap; min-height: 40px; }

  th, td { padding: 11px 8px; font-size: .92rem; }
  th:first-child, td:first-child { width: 40px; }
  td.rank { font-size: 1.15rem; }
  .hm { display: none !important; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .mbar { display: inline-block !important; }
  .tablewrap { margin-inline: -14px; border-radius: 0; border-inline: 0; }

  .race > button { grid-template-columns: 48px 1fr auto; padding: 14px; gap: 12px; }
  .race .sub { display: block; font-size: .82rem; margin-top: 2px; }
  .race .body { padding: 0 0 14px; }
  .race .body .meta, .race .body .tablewrap { margin-inline: 0; }
  .meta { gap: 16px; padding-inline: 14px; }

  .teamgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team .info { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; font-size: .92rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px; }
  .stat b { font-size: 1.6rem; }
  .panel { padding: 14px 10px; margin-inline: -4px; }
  .two { grid-template-columns: 1fr; }
}
@media (min-width: 801px) { .race .sub { display: none; } }
@media (max-width: 380px) { .stats { grid-template-columns: 1fr 1fr; } .brand span { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].in, tbody tr, .page.on, .hero .wrap > div > *, .hero-logo, .marquee .track, .chart .ln, .chart .dots circle, .badge.upcoming { animation: none !important; opacity: 1; }
  .chart .ln { stroke-dashoffset: 0; }
}

/* ====== Staff panel – telefon ====== */
@media (max-width: 700px) {
  input, select, textarea { font-size: 16px; min-height: 44px; }   /* iOS ne zoomoljon */
  .bar-top .wrap { gap: 8px; padding: 10px 0; }
  .bar-top h1 { display: none; }
  .bar-top #champSel { flex: 1; min-width: 0; }
  .btn { min-height: 44px; }
  .btn.sm { padding: 10px 14px; }
  #save { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; box-shadow: 0 10px 34px rgba(0,0,0,.6); padding: 14px 26px; font-size: 1.05rem; border-radius: 99px; }
  #save.dirty { box-shadow: 0 0 0 3px rgba(255,212,0,.35), 0 10px 34px rgba(0,0,0,.6); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 4px 14px 8px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .pill { white-space: nowrap; }
  .item { padding: 12px; gap: 10px; }
  .item > * { flex: 1 1 140px; }
  .item > label.f[style*="width"] { flex: 1 1 90px; width: auto !important; }
  .item .thumb { flex: 0 0 100%; width: 100%; height: 150px; }
  .item .btn { flex: 1 1 100%; }
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding: 18px 14px calc(90px + env(safe-area-inset-bottom)); margin: 0; }
  .rrow { grid-template-columns: 34px 1fr 96px; gap: 6px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
  .rrow b { grid-row: span 3; align-self: start; padding-top: 8px; }
  .rrow select { grid-column: 2 / -1; }
  .rrow .dnf { grid-column: 2; }
  .rrow [data-r=pts] { grid-column: 3; }
  .rrow .auto { grid-column: 2 / -1; text-align: left; }
  #exPrev canvas { width: 100% !important; }
  .row > .btn { flex: 1 1 100%; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; max-width: 90vw; text-align: center; }
  #login form { padding: 22px; }
}
#panel > * { animation: pageIn .4s cubic-bezier(.2,.7,.2,1); }

@media (max-width: 700px) {
  .bar-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .rrow .dnf { display: flex; align-items: center; gap: 10px; min-height: 44px; }
  .rrow .dnf input { width: 22px; height: 22px; min-height: 0; }
}


/* =====================================================
   v2: kormány-fordulás, végtelen szalag, lágy fehér fények
   ===================================================== */

/* --- Logó: nem fel-le, hanem jobbra fordul (mint egy kormány) --- */
:root { --steer: 26deg; }   /* ennyit fordul jobbra, majd vissza (fok); negatív szám = balra */
@keyframes steer {
  0%, 10%   { transform: rotate(0deg); }
  30%, 40%  { transform: rotate(var(--steer)); }
  62%, 100% { transform: rotate(0deg); }
}
.brand img { animation: steer 6s cubic-bezier(.45,.05,.25,1) infinite; will-change: transform; }
.hero-logo { animation: logoIn 1.2s cubic-bezier(.2,.7,.2,1) backwards, steer 6s cubic-bezier(.45,.05,.25,1) 1.2s infinite; will-change: transform; }

/* --- Futószalag: hézagmentes, végtelen körforgás --- */
.marquee .track { gap: 0; animation: mqloop 38s linear infinite; }
.mq-group { display: flex; flex: none; align-items: center; gap: 28px; padding-right: 28px; }
@keyframes mqloop { to { transform: translateX(-50%); } }

/* --- Háttérben lassan úszó, nagyon halvány fehér fények --- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; opacity: .0; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(255,255,255,.075), rgba(255,255,255,.025) 45%, transparent 70%); }
.ambient i:nth-child(1) { width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax; animation: orbA 46s ease-in-out infinite, orbFade 12s ease-in-out infinite; }
.ambient i:nth-child(2) { width: 58vmax; height: 58vmax; right: -22vmax; top: 18vh; animation: orbB 58s ease-in-out infinite, orbFade 15s ease-in-out -5s infinite; }
.ambient i:nth-child(3) { width: 50vmax; height: 50vmax; left: 20vw; bottom: -30vmax; animation: orbC 52s ease-in-out infinite, orbFade 18s ease-in-out -9s infinite; }
@keyframes orbA { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(28vw,16vh,0); } }
@keyframes orbB { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-24vw,-14vh,0); } }
@keyframes orbC { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-18vw,-12vh,0); } }
@keyframes orbFade { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* --- Apró fényporszemek a hero-ban (JS hozza létre) --- */
.specks { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.specks b { position: absolute; display: block; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 calc(var(--s, 3px) * 4) calc(var(--s, 3px) * .8) rgba(255,255,255,.55);
  animation: speck var(--d, 18s) ease-in-out var(--w, 0s) infinite; }
@keyframes speck {
  0%   { opacity: 0;  transform: translate3d(0, 0, 0); }
  20%  { opacity: var(--o, .5); }
  80%  { opacity: var(--o, .5); }
  100% { opacity: 0;  transform: translate3d(var(--x, 40px), var(--y, -90px), 0); }
}

/* --- Fénycsík fut végig a fejléc alsó vonalán --- */
.top { overflow: hidden; }
.top::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28vw; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  box-shadow: 0 0 12px rgba(255,255,255,.5); transform: translateX(-30vw); animation: topglint 11s ease-in-out 1.5s infinite; }
@keyframes topglint { 0% { transform: translateX(-30vw); } 45%, 100% { transform: translateX(110vw); } }

/* --- Oldalváltáskor lágy fényhullám --- */
.wipe { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; overflow: hidden; }
.wipe::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45vw;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), rgba(255,255,255,.04), transparent);
  transform: translateX(-60vw) skewX(-18deg); }
.wipe.go { opacity: 1; }
.wipe.go::before { animation: wipe .9s cubic-bezier(.4,.1,.2,1); }
@keyframes wipe { to { transform: translateX(120vw) skewX(-18deg); } }

/* --- Lágyabb átmenetek --- */
.page.on { animation: pageIn .6s cubic-bezier(.2,.7,.2,1); }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.top nav a:hover::after { transform: scaleX(1); }
.page-head h2::after, section.block > h2::after { width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1) .25s; }
.in.page-head h2::after, section.block > h2.in::after, .page-head.in h2::after { width: 56px; }
.race, .team .car, .stat, .panel { transition: border-color .35s, box-shadow .35s, transform .35s; }
.race:hover { border-color: #3a3a44; box-shadow: 0 8px 30px rgba(255,255,255,.04); }

/* Csökkentett mozgás: minden más áll, de a szalag lassabban akkor is körbe megy */
@media (prefers-reduced-motion: reduce) {
  .brand img, .hero-logo, .ambient i, .specks b, .top::after { animation: none !important; }
  .ambient i { opacity: .7; }
  .specks, .wipe { display: none; }
  .marquee .track { animation: mqloop 80s linear infinite !important; }
}

/* a hero háttere átlátszó, így a lassan úszó fények egybefüggően látszanak */
.hero-media { background:
  radial-gradient(900px 400px at 85% 20%, rgba(255,255,255,.10), transparent 60%),
  radial-gradient(700px 400px at 10% 100%, rgba(255,255,255,.06), transparent 60%); }
#page-home { padding-top: 0; }   /* a hero közvetlenül a fejléc alatt kezdődik, nincs vágott sáv */



.savebar { margin: -8px 0 18px; }
.savebar .btn:disabled { opacity: .6; cursor: progress; }


/* ====== v3: LIVE (csak futam idején), tulajdonosok, Hall of Fame ====== */
.live { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,59,59,.5); background: rgba(255,59,59,.10); color: var(--text);
  padding: 6px 14px; border-radius: 99px; font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .14em; cursor: pointer; white-space: nowrap; }
.live[hidden], .livemenu[hidden], #ownersBlock[hidden] { display: none; }
.live:hover { background: rgba(255,59,59,.18); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; animation: livepulse 1.8s ease-out infinite; }
.live small { font-weight: 600; letter-spacing: .02em; color: #ffb3b3; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.65); } 70%,100% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } }
.livemenu { position: fixed; z-index: 60; top: 70px; right: max(14px, calc((100vw - 1120px) / 2)); width: min(330px, calc(100vw - 28px));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: pageIn .25s ease; }
.lm-head { display: grid; gap: 2px; } .lm-head b { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.4rem; }
.lm-sub { margin: 12px 0 8px; font-size: .9rem; }
.lm-links { display: grid; gap: 8px; }
.lm-links a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; font-weight: 700; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); transition: border-color .2s, transform .2s; }
.lm-links a:hover { border-color: var(--text); transform: translateY(-1px); }
.lm-links a span { color: var(--muted); }
@media (max-width: 800px) {
  .live { margin-left: auto; padding: 8px 12px; min-height: 40px; }
  .live small { display: none; }
  .live + .lang { margin-left: 10px; }
  .livemenu { top: 62px; right: 14px; }
  .tabbar { grid-template-columns: repeat(7, 1fr); padding-inline: 2px; }
  .tabbar a { font-size: .6rem; text-align: center; line-height: 1.1; padding-inline: 0; }
}

/* Tulajdonosok */
.owners { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.owner { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.owner .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.8rem; border: 1.5px solid var(--text); grid-row: span 2; }
.owner .who b { font-size: 1.1rem; display: block; } .owner .who small { color: var(--muted); }
.owner .acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.owner .btn em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 4px; }
.owner .btn .dcn { color: var(--muted); font-weight: 600; }

/* Hall of Fame */
.hof-h { margin: 36px 0 14px; color: var(--muted); font-size: 1.3rem; }
.hof-spot { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  background: radial-gradient(500px 220px at 90% 0%, color-mix(in srgb, var(--tc, #fff) 28%, transparent), transparent 70%), var(--panel); }
.hof-spot .tag { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.hof-name { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; margin: 8px 0 6px; }
.hof-team { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; }
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hof-grid .panel { margin: 0; } .hof-grid .panel h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hof-line { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); } .hof-line b { font-family: var(--display); font-style: italic; font-size: 1.4rem; }
.rec ol { list-style: none; margin: 0; padding: 0; }
.rec li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rec li:first-child { border-top: 0; } .rec .rk { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--muted); font-size: 1.2rem; }
.rec li:first-child .rk, .rec li:first-child b { color: var(--text); } .rec b { font-family: var(--display); font-style: italic; font-size: 1.4rem; }
.hof-list { display: grid; gap: 8px; }
.hof-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.hof-row .rd { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.5rem; color: transparent; -webkit-text-stroke: 1.2px var(--text); }
.hof-main b { display: block; font-size: 1.1rem; } .hof-main small { display: block; }
.hof-extra { font-size: .88rem; text-align: right; }
@media (max-width: 800px) { .hof-row { grid-template-columns: 48px 1fr; } .hof-extra { grid-column: 2; text-align: left; } }

/* Fejlődés: csapat-fejléc + görgetés */
.teamhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.teamhead h3 { margin: 0; }
#progressBody { scroll-margin-top: 78px; }
@media (prefers-reduced-motion: reduce) { .live i { animation: none !important; } }

/* fejléc: ne legyen zsúfolt, amikor a LIVE is látszik */
@media (max-width: 1180px) { .live small { display: none; } .top nav a { padding: 8px 9px; } .top .wrap { gap: 12px; } }
.owner { align-items: start; } .owner .av { align-self: center; }

/* --- Hírek --- */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.news { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.news:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.45); box-shadow: 0 12px 40px rgba(255,255,255,.06); }
.news img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel2); cursor: zoom-in; }
.news .nb { padding: 14px 16px 18px; display: grid; gap: 6px; }
.news .nb h3 { margin: 0; font-size: 1.25rem; color: var(--text); }
.news .nb time { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.news .nb p { margin: 0; color: var(--muted); white-space: pre-line; line-height: 1.5; }
.newsgrid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.newsmore { margin-top: 16px; }
#newsLb { background: transparent; border: 0; padding: 0; max-width: 96vw; max-height: 96vh; }
#newsLb::backdrop { background: rgba(0,0,0,.88); }
#newsLb img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 12px; }
#newsBlock[hidden] { display: none; }

/* ====== v2: lapok, értesítések, lájk, mobil finomítás ====== */
html { -webkit-text-size-adjust: 100%; }
button, a, .news { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body.sheet-open { overflow: hidden; }
.small { font-size: .85rem; }
.bell { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; cursor: pointer; flex: none; }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell.on { border-color: var(--ok); } .bell.on svg { stroke: var(--ok); }
.tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font: inherit; font-size: .68rem; font-weight: 700; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.tabbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--text); background: rgba(255,255,255,.08); }
@media (max-width: 800px) {
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .tabbar a, .tabbar button { font-size: .66rem; line-height: 1.1; min-height: 52px; align-content: center; }
  .lang { display: none; }
  .bell { margin-left: auto; }
  .live + .lang + .bell, .live ~ .bell { margin-left: 8px; }
  .newsgrid { grid-template-columns: 1fr; }
  #newsHome { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -14px; padding: 4px 14px 10px; scrollbar-width: none; }
  #newsHome::-webkit-scrollbar { display: none; }
  #newsHome .news { flex: 0 0 82%; scroll-snap-align: center; }
  table { font-size: .9rem; }
}
.news { cursor: pointer; }
.news img { cursor: pointer; }
.news .nb p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.more { font-weight: 700; font-size: .92rem; }
.like { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.like svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.like em { font-style: normal; min-width: 0; font-size: .9rem; }
.like.on { border-color: #ff3b5c; background: rgba(255,59,92,.12); }
.like.on svg { fill: #ff3b5c; stroke: #ff3b5c; }
.like.pop svg { animation: likepop .4s cubic-bezier(.2,.9,.3,1.6); }
@keyframes likepop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.sheet-back.show { opacity: 1; }
.sheet { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 22px 20px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.sheet.show { transform: none; }
.sheet h2 { margin: 6px 0 14px; padding-right: 56px; font-size: 2.2rem; }
.sheet-grab { position: absolute; top: 0; left: 0; right: 0; height: 30px; cursor: grab; }
.sheet-grab::after { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #3a3a44; }
.sheet-x { position: absolute; z-index: 2; top: 18px; right: 16px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(9,9,11,.75); backdrop-filter: blur(8px); color: var(--text); cursor: pointer; }
.sheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mrow { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 10px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel2); color: var(--text); font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.mrow svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.srow.sep { margin-top: 18px; border-top: 1px solid var(--line); }
.sw { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; border-radius: 15px; background: #34343c; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw:checked { background: var(--ok); } .sw:checked::after { transform: translateX(22px); }
#nToggle { margin: 16px 0 6px; } #nTest { margin: 12px 0; }
.nstat { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-weight: 800; font-size: 1.05rem; }
.nstat i { width: 12px; height: 12px; border-radius: 50%; background: #5b5b66; flex: none; }
.nstat.on i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.news-sheet { padding: 0 0 calc(28px + env(safe-area-inset-bottom)); }
.ns-img { width: 100%; height: auto; display: block; }
.ns-body { padding: 18px 20px 4px; }
.ns-body time { color: var(--muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.ns-body h2 { margin: 6px 0 12px; padding: 0; font-size: 2.1rem; }
.ns-body p { color: #d0d0d8; white-space: pre-line; line-height: 1.6; font-size: 1.02rem; }
.ns-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
@media (min-width: 801px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(540px, 92vw); max-height: 88dvh; border: 1px solid var(--line); border-radius: 22px; transform: translate(-50%, -46%); opacity: 0; transition: transform .25s, opacity .25s; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
  .tabbar button, .bell { }
}
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-back { transition: none; } .like.pop svg { animation: none; } }

/* Visszanézés / hír link gombok */
.replays { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0 4px; }
.btn.yt { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn.yt svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.race .replays .btn.yt { background: #ff0033; border-color: #ff0033; color: #fff; }
.race .replays .btn.yt:hover { filter: brightness(1.1); }
.ns-actions .btn.yt { background: #ff0033; border-color: #ff0033; color: #fff; }
.badge.replay { color: #ff4d6a; border-color: rgba(255,77,106,.5); margin-left: 8px; padding: 2px 8px; font-size: .68rem; vertical-align: middle; }
.ns-actions { flex-wrap: wrap; }
.btn.lnk { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* =========================================================
   INTRÓ VIDEÓ – halvány háttér a hero-ban + felugró lejátszó
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* háttér: a videó kitölti a hero-t (cover), nagyon halványan, a szöveg mögött még sötétebben */
.hero-media { container-type: size; }
.hero-yt { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: center / cover no-repeat var(--yt-poster, none); opacity: 0; transition: opacity 1.4s ease; }
.hero-yt.ready { opacity: .5; }
.hero-yt::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(9,9,11,.55) 34%, rgba(9,9,11,.08) 100%); }
.hero-yt iframe { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  opacity: 0; transition: opacity 1.2s ease .2s; }
.hero-yt.playing iframe { opacity: 1; }

/* lejátszás-ikon a hero jobb alsó sarkában */
.intro-play { position: absolute; z-index: 3; bottom: 26px; right: calc((100% - min(1120px, 100% - 32px)) / 2);
  display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; }
.intro-play i { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(9,9,11,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s; }
.intro-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.intro-play .lbl { font-weight: 700; font-size: .9rem; white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .3s ease, opacity .25s ease; }
.intro-play:hover .lbl, .intro-play:focus-visible .lbl { max-width: 200px; opacity: 1; }
.intro-play:hover i, .intro-play:focus-visible i { background: var(--text); border-color: var(--text); color: #000; transform: scale(1.06); }
.intro-play:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; border-radius: 30px; }
@media (max-width: 700px) { .intro-play { bottom: 14px; right: 16px; } .intro-play i { width: 44px; height: 44px; } }

/* felugró ablak */
.vmodal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.vmodal[hidden] { display: none; }
.vmodal-back { position: absolute; inset: 0; background: rgba(4,4,6,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.vmodal-box { position: relative; width: min(1040px, 100%); aspect-ratio: 16 / 9; max-height: calc(100dvh - 32px);
  background: #000 center / cover no-repeat var(--yt-poster, none); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03), 0 0 70px rgba(255,255,255,.07);
  opacity: 0; transform: translateY(14px) scale(.97); transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.vmodal.show .vmodal-back { opacity: 1; }
.vmodal.show .vmodal-box { opacity: 1; transform: none; }
.vmodal-frame, .vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-x { top: 12px; right: 12px; width: 42px; height: 42px; }
@media (max-width: 700px) {
  .vmodal { padding: 0; align-items: center; }
  .vmodal-box { border-radius: 0; border-inline: 0; max-height: none; }
  .vmodal-x { top: 8px; right: 8px; }
}

/* mobilon és mozgáscsökkentésnél nincs háttérvideó (adatforgalom, akku) */
@media (max-width: 700px), (prefers-reduced-motion: reduce) { .hero-yt { display: none; } }
@media (prefers-reduced-motion: reduce) { .vmodal-back, .vmodal-box, .hero-yt, .hero-yt iframe { transition: none; } }

/* =========================================================
   SAJÁT MP4 HÁTTÉRVIDEÓ – /video/hero.mp4
   ========================================================= */
.hero-media { --vid-opacity: .5; }          /* 0–1: ennyire látszik a videó (kisebb = sötétebb) */
.hero-vid { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease; }
.hero-vid.on { opacity: var(--vid-opacity); }

/* --- finomhangolás: lejátszás ikon középre, hírkártyák lábléce egy szintben --- */
.intro-play svg { margin-left: 0; }
.news .nb { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.news .nfoot { margin-top: auto; padding-top: 8px; }
