/* Klipműhely – premier este: fekete színpad, vörös reflektor, arany jegy */
:root {
  --black: #000;
  --velvet: #15080a;
  --velvet-2: #240c10;
  --red: #e0142c;
  --red-deep: #7d0b1a;
  --gold: #f5b93a;
  --gold-pale: #ffe3a3;
  --gold-deep: #b9791a;
  --ivory: #fff3dc;
  --mute: #bda892;
  --line: rgba(245, 185, 58, .24);
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .85, .25, 1);
  --foil: linear-gradient(172deg, #fff1c6 0%, var(--gold) 46%, var(--gold-deep) 100%);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100dvh; background: var(--black); color: var(--ivory);
  font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
body::before {   /* a reflektor */
  content: ''; position: fixed; inset: 0 0 auto; height: 70vh; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 90% 60% at 50% -12%, rgba(224, 20, 44, .5), rgba(125, 11, 26, .18) 45%, transparent 72%);
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .8rem; }
p { margin: 0; }
.muted { color: var(--mute); font-size: .92rem; }
code { font-size: .82rem; word-break: break-all; color: var(--gold-pale); }

/* ---------- fejléc ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .7rem max(1rem, env(safe-area-inset-left)); background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 243, 220, .07);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ivory); text-decoration: none; font: 800 1.25rem/1 var(--display); letter-spacing: -.03em; margin-right: auto; }
.brand img { display: block; }
.topnav { display: none; gap: .25rem; margin-right: 1rem; }
.topnav a { color: var(--mute); text-decoration: none; font-weight: 600; padding: .5rem .9rem; border-radius: 999px; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--ivory); }
.topnav a[aria-current] { color: var(--black); background: var(--gold); }
.ticket {
  position: relative; border: 0; padding: .5rem 1rem .5rem 1.75rem; font-weight: 700; font-size: .95rem; color: var(--black); background: var(--foil); border-radius: 7px;
  -webkit-mask: radial-gradient(circle 6px at left center, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at right center, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 6px at left center, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at right center, #0000 97%, #000) right / 51% 100% no-repeat;
  transition: transform .2s var(--ease), filter .2s;
}
.ticket:hover { filter: brightness(1.08); }
.ticket:active { transform: scale(.95); }
.ticket-stub { position: absolute; left: 1.15rem; top: 18%; bottom: 18%; border-left: 2px dashed rgba(0, 0, 0, .45); }

/* ---------- oldalak ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.page { padding: 1.2rem 0 2rem; }
.page-title { font-size: clamp(2.2rem, 8vw, 3.4rem); font-weight: 800; }
.page-lead { color: var(--mute); margin: .5rem 0 1.4rem; max-width: 46ch; }
.status { color: var(--mute); padding: 1.5rem 0; }
.status:empty { display: none; }

/* ---------- nyitány ---------- */
.hero { padding: 1.1rem 0 1.6rem; }
.bulbs { display: flex; gap: 10px; overflow: hidden; margin-bottom: 1.3rem; height: 12px; align-items: center; }
.bulbs i {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-pale);
  box-shadow: 0 0 10px 2px rgba(245, 185, 58, .75); opacity: .22;
  animation: bulb .9s ease-out calc(var(--i) * 45ms) 2 alternate, bulb-on .5s ease-out calc(1.8s + var(--i) * 45ms) forwards;
}
@keyframes bulb { to { opacity: 1; } }
@keyframes bulb-on { to { opacity: .95; } }
.hero h1 {
  font-size: clamp(3rem, 13.5vw, 7.2rem); font-weight: 800; line-height: .9; letter-spacing: -.045em; max-width: 9.5ch;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em; animation: rise .8s var(--ease) both;
}
.hero p { margin-top: 1rem; max-width: 34ch; font-size: 1.08rem; color: var(--ivory); opacity: .86; animation: rise .8s .12s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.finder { position: sticky; top: 55px; z-index: 10; margin: 0 -1rem; padding: .6rem 1rem .7rem; background: linear-gradient(rgba(0, 0, 0, .92) 70%, transparent); }
.search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; height: 50px; border-radius: 14px; background: rgba(255, 243, 220, .07); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--gold); background: rgba(255, 243, 220, .1); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; font-size: 1rem; }
.search input::placeholder { color: var(--mute); }

.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .7rem 1rem .1rem; margin: 0 -1rem; }
.chips::-webkit-scrollbar { display: none; }
.chips.tight { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; border: 1px solid rgba(255, 243, 220, .2); background: transparent; color: var(--ivory);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .93rem; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.chip small { font-weight: 500; font-size: .78rem; opacity: .75; }
.chip:hover { border-color: var(--gold); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ---------- plakátok ---------- */
.rail { margin-top: 1.7rem; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.rail-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -1rem; padding: 4px 1rem 8px; scroll-padding-left: 1rem; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .poster { flex: none; width: 41vw; max-width: 200px; scroll-snap-align: start; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.2rem; }
.poster {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 14px; overflow: hidden; text-align: left; color: var(--ivory);
  background: linear-gradient(160deg, var(--velvet-2), var(--velvet) 60%, #050203); isolation: isolate;
  transition: transform .28s var(--ease), box-shadow .28s;
}
button.poster:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 18px 40px -12px rgba(224, 20, 44, .55); }
button.poster:active { transform: scale(.97); }
.poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.poster::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); z-index: -1; }
.poster-title { position: absolute; left: .7rem; right: .7rem; bottom: .65rem; font: 600 .98rem/1.15 var(--display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.poster-price { position: absolute; top: .55rem; left: .55rem; background: rgba(0, 0, 0, .72); color: var(--gold-pale); font-size: .76rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.poster-badge { position: absolute; top: .55rem; right: .55rem; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: .22rem .5rem; border-radius: 999px; }

.poster.making, .poster.failed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1rem; text-align: center; }
.poster.making::after, .poster.failed::after { display: none; }
.poster.making { box-shadow: inset 0 0 0 1px var(--line); }
.poster.making .poster-title, .poster.failed .poster-title { position: static; }
.making-text { color: var(--mute); font-size: .86rem; }
.poster.failed { box-shadow: inset 0 0 0 1px rgba(224, 20, 44, .5); }
.reel { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--gold) 0 25%, transparent 25% 50%, var(--red) 50% 75%, transparent 75%); -webkit-mask: radial-gradient(circle, #0000 52%, #000 54%); mask: radial-gradient(circle, #0000 52%, #000 54%); animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- gombok ---------- */
.cta {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: .8rem 1.4rem; border: 0; border-radius: 16px;
  background: var(--foil); color: var(--black); font: 800 1.08rem/1.1 var(--display); letter-spacing: -.01em; text-decoration: none; text-align: center;
  box-shadow: 0 10px 30px -10px rgba(245, 185, 58, .55); transition: transform .2s var(--ease), filter .2s, box-shadow .2s;
}
.cta:hover { filter: brightness(1.07); box-shadow: 0 14px 34px -10px rgba(245, 185, 58, .7); }
.cta:active { transform: scale(.97); }
.cta:disabled { filter: saturate(.3) brightness(.7); cursor: default; box-shadow: none; }
.cta.small { display: inline-flex; width: auto; min-height: 46px; font-size: .98rem; border-radius: 13px; }
.ghost { min-height: 46px; padding: .6rem 1.1rem; border-radius: 13px; border: 1px solid rgba(255, 243, 220, .25); background: transparent; font-weight: 600; transition: border-color .2s, transform .15s var(--ease); }
.ghost:hover { border-color: var(--gold); }
.ghost:active { transform: scale(.95); }
.ghost.danger, .link.danger { color: #ff8a96; }
.link { background: none; border: 0; padding: .4rem 0; color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- űrlapok ---------- */
.field { display: block; margin-bottom: 1.25rem; }
.label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: .5rem; }
.label output { color: var(--gold); font-variant-numeric: tabular-nums; }
input[type=email], input[type=text], input[type=password], input[type=number], textarea, .code-input {
  width: 100%; background: rgba(255, 243, 220, .06); border: 1px solid rgba(255, 243, 220, .16); border-radius: 13px; padding: .85rem 1rem; outline: 0; transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { border-color: var(--gold); background: rgba(255, 243, 220, .09); }
textarea { resize: vertical; min-height: 7rem; }
::placeholder { color: rgba(189, 168, 146, .75); }
.code-input { font: 800 2rem/1 var(--display); letter-spacing: .35em; text-align: center; padding: .7rem .2rem .7rem .55em; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 32px; }
.segments { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.5rem; }
.studio-form { max-width: 620px; }
.picker { width: 100%; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 243, 220, .06); border: 1px solid rgba(255, 243, 220, .16); border-radius: 13px; padding: .85rem 1rem; font-weight: 600; text-align: left; }
.picker svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(255, 243, 220, .09); cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; }
.switch-row small { color: var(--mute); }
input[role=switch] { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 243, 220, .18); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
input[role=switch]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); transition: transform .28s var(--ease); }
input[role=switch]:checked { background: var(--gold); }
input[role=switch]:checked::after { transform: translateX(20px); background: var(--black); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--mute); margin: 1rem 0; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; accent-color: var(--gold); margin: 0; }
.form-status { color: var(--gold-pale); font-weight: 600; min-height: 1.5rem; margin: .4rem 0 .7rem; }
.form-status:empty { margin: 0; min-height: .6rem; }

.photo-row { display: flex; gap: .8rem; }
.photo-row > div:empty { display: none; }
.photo-slot {
  position: relative; flex: none; width: 132px; aspect-ratio: 3 / 4; border-radius: 16px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  cursor: pointer; overflow: hidden; background: rgba(245, 185, 58, .05); transition: border-color .2s, transform .2s var(--ease);
}
.photo-slot:hover { border-color: var(--gold); }
.photo-slot:active { transform: scale(.96); }
.photo-slot.filled { border-style: solid; border-color: var(--gold); }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pop .35s var(--ease); }
.photo-plus { font: 600 2.4rem/1 var(--display); color: var(--gold); }
.photo-caption { font-size: .82rem; font-weight: 600; text-align: center; padding: 0 .4rem; }
.photo-slot.filled .photo-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: .9rem .3rem .35rem; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
@keyframes pop { from { opacity: 0; transform: scale(1.12); } }
.extend-source { display: flex; gap: .9rem; align-items: center; }
.extend-source video { width: 72px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--velvet); }
.extend-source div { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- lapok ---------- */
dialog.sheet {
  width: 100%; max-width: 540px; max-height: 94dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; color: var(--ivory);
  background: linear-gradient(var(--velvet-2), var(--velvet) 30%); box-shadow: 0 -1px 0 var(--line), 0 -30px 80px rgba(224, 20, 44, .22); overflow: auto; overscroll-behavior: contain;
  animation: sheet-up .42s var(--ease);
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .3s ease-out; }
dialog.sheet.closing { animation: sheet-down .24s ease-in forwards; }
dialog.sheet.closing::backdrop { animation: fade .24s ease-in reverse forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-body { padding: 1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom)); }
.sheet-body h2 { font-size: 1.7rem; font-weight: 800; margin: 0 2.5rem 1rem 0; }
.sheet-body > .muted, .sheet-body form > .muted { margin-bottom: 1.1rem; }
.sheet-close { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: var(--ivory); font-size: 1.5rem; line-height: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.clip-stage { position: relative; background: #000; display: flex; justify-content: center; }
.clip-stage video { display: block; width: 100%; max-height: 44dvh; object-fit: contain; }
.sound { position: absolute; left: .8rem; bottom: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6) center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff3dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z'/%3E%3Cpath d='m17 9 5 6m0-6-5 6'/%3E%3C/svg%3E"); }
.sound[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b93a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }
#clip-form .chips { margin-top: 1.1rem; }
#clip-roles-row { margin-bottom: 1.1rem; }
#clip-form #clip-roles { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.effect-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: 1rem; }
.effect { text-align: left; padding: .8rem .9rem; border-radius: 12px; border: 1px solid rgba(255, 243, 220, .14); background: rgba(255, 243, 220, .04); font-weight: 600; font-size: .93rem; transition: border-color .2s, background .2s; }
.effect:hover { border-color: var(--gold); }
.effect[aria-pressed="true"] { background: var(--gold); color: var(--black); border-color: var(--gold); }
#effect-sheet .chips { margin: .9rem 0 0; }

.topups { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.topup { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(245, 185, 58, .06); text-align: left; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.topup strong { font: 800 1.3rem/1.1 var(--display); color: var(--gold-pale); }
.topup span { color: var(--mute); }
.topup:hover:not(:disabled) { border-color: var(--gold); background: rgba(245, 185, 58, .12); transform: translateY(-2px); }
.topup:active:not(:disabled) { transform: scale(.96); }
.topup:disabled { opacity: .45; cursor: default; }

/* ---------- fiók ---------- */
.big-ticket {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 .8rem; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--foil); color: var(--black); max-width: 520px;
  -webkit-mask: radial-gradient(circle 13px at left center, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at right center, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at left center, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at right center, #0000 97%, #000) right / 51% 100% no-repeat;
}
.big-ticket div { display: flex; flex-direction: column; padding-left: .5rem; }
.big-ticket small { font-weight: 700; opacity: .7; }
.big-ticket strong { font: 800 clamp(1.9rem, 8vw, 2.6rem)/1 var(--display); letter-spacing: -.03em; }
.big-ticket span { font-size: .88rem; font-weight: 600; opacity: .7; }
.big-ticket .cta { background: var(--black); color: var(--gold-pale); box-shadow: none; margin-right: .4rem; }
#account h2 { margin: 2rem 0 .6rem; }
.ledger { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.ledger li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255, 243, 220, .09); }
.ledger span { display: flex; flex-direction: column; min-width: 0; }
.ledger small { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger strong { flex: none; font-variant-numeric: tabular-nums; }
.ledger strong.plus { color: var(--gold); }
#account .switch-row { max-width: 520px; }
.account-links { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin-top: 2rem; }
.legal { display: flex; gap: 1.2rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 243, 220, .09); font-size: .9rem; }
.legal a { color: var(--mute); }
.empty { padding: 2.5rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; grid-column: 1 / -1; color: var(--mute); font-size: 1.05rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; max-width: 620px; margin-bottom: 1.2rem; }
.admin-stats div { display: flex; flex-direction: column; padding: .8rem; border-radius: 12px; background: rgba(255, 243, 220, .05); }
.admin-stats strong { font: 800 1.25rem/1.2 var(--display); color: var(--gold-pale); }
.admin-stats span { color: var(--mute); font-size: .82rem; }
.admin-form { max-width: 520px; margin: 1rem 0 1.6rem; }
.admin-form > .muted { margin-bottom: 1rem; }

/* ---------- alsó sáv és értesítések ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 243, 220, .08);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem 0; color: var(--mute); text-decoration: none; font-size: .74rem; font-weight: 600; border-radius: 12px; transition: color .2s; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.tabbar a[aria-current] { color: var(--gold); }
.tabbar a[aria-current] svg { transform: translateY(-2px) scale(1.12); }
.tabbar i { position: absolute; top: .3rem; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #000; }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 1rem; }
.toast { background: var(--ivory); color: var(--black); font-weight: 600; padding: .75rem 1.1rem; border-radius: 14px; max-width: 420px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); animation: toast-in .4s var(--ease); transition: opacity .35s, transform .35s; }
.toast.bad { background: var(--red); color: #fff; }
.toast.out { opacity: 0; transform: translateY(12px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.95); } }

::view-transition-old(root) { animation: fade .14s ease-in reverse both; }
::view-transition-new(root) { animation: page-in .26s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- jogi oldalak ---------- */
.doc { max-width: 70ch; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.doc h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; margin: 1.2rem 0 .6rem; }
.doc h2 { margin: 2rem 0 .6rem; color: var(--gold-pale); }
.doc p, .doc li { color: #ecdcc4; margin-bottom: .7rem; }
.doc ul { padding-left: 1.2rem; }
.doc table { border-collapse: collapse; width: 100%; margin: .6rem 0 1rem; font-size: .93rem; }
.doc td, .doc th { text-align: left; vertical-align: top; padding: .5rem .6rem; border-top: 1px solid rgba(255, 243, 220, .12); }
.doc .draft { border: 1px solid var(--red); border-radius: 12px; padding: .9rem 1rem; color: #ffb3bb; }
.doc mark { background: var(--gold); color: var(--black); padding: 0 .25em; border-radius: 3px; }

/* ---------- széles képernyő ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar { padding: .8rem 2rem; }
  main { padding: 0 2rem; }
  .hero { padding: 2.6rem 0 2.2rem; }
  .finder { top: 63px; margin: 0 -2rem; padding: .7rem 2rem; display: flex; gap: 1rem; align-items: center; }
  .finder .search { flex: 0 0 340px; }
  .finder .chips { margin: 0; padding: 0; flex: 1; min-width: 0; }
  .rail-track { margin: 0 -2rem; padding: 6px 2rem 10px; gap: 1rem; scroll-padding-left: 2rem; }
  .rail-track .poster { width: 200px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
  dialog.sheet { margin: auto; border-radius: 26px; animation: modal-in .34s var(--ease); max-height: 92dvh; }
  dialog.sheet.closing { animation: modal-out .2s ease-in forwards; }
  dialog.sheet.narrow { max-width: 440px; }
  .toasts { bottom: 2rem; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
  @keyframes modal-out { to { opacity: 0; transform: translateY(14px) scale(.97); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bulbs i { opacity: .95; }
}
