/* Vetítőterem telefonra (Caleno): majdnem fekete sötétség, és egyetlen szín, a vetítő zöld fénye. Ugyanaz a világ, mint a Windows-programban. */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-display: swap; src: url(/fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(/fonts/outfit-500.woff2) format("woff2"); }


:root {
  color-scheme: dark;
  --room: #0a0c0b;
  --wall: #121513;
  --seat: #1b1f1d;
  --seat-hover: #252a27;
  --line: #2a2f2c;
  --line-strong: #3d4440;
  --text: #f2f5f1;
  --dim: #a9b2ab;
  --faint: #76807a;
  --beam: #2ecc8f;
  --beam-hover: #52e0a9;
  --beam-ink: #06140d;
  --beam-soft: rgba(46, 204, 143, .14);
  --danger: #e8735a;
  --gutter: 20px;
  --top: env(safe-area-inset-top, 0px);
  /* A viewport.js állítja: ennyivel méri rövidebbre az iOS a rögzített elemeket. A rétegek ennyivel lógnak túl, a gombok ezen belül maradnak. */
  --gap: 0px;
  --under: calc(-1 * var(--gap));
  --bottom: max(env(safe-area-inset-bottom, 0px), var(--gap));
  --left: env(safe-area-inset-left, 0px);
  --right: env(safe-area-inset-right, 0px);
  --topbar: calc(var(--top) + 50px);
  --tabbar: calc(50px + var(--bottom));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--room);
  color: var(--text);
  font: 400 16px/1.4 Barlow, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body { overflow: hidden; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
img { display: block; }
.icon { display: block; flex: none; }

/* ---- Alap elrendezés ---------------------------------------------------------------------- */
#app { position: fixed; inset: 0 0 var(--under); display: flex; flex-direction: column; }
.page { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding-bottom: calc(var(--tabbar) + 28px); animation: page-in .28s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.glass {
  background: rgba(16, 19, 17, .58);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
}

/* Felső sáv */
.topbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: var(--topbar);
  display: flex; align-items: center; gap: 8px;
  padding: var(--top) calc(var(--gutter) - 8px + var(--right)) 0 calc(var(--gutter) + var(--left));
}
.topbar::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .22) 62%, transparent); pointer-events: none; }
.topbar::after { content: ""; position: absolute; inset: 0 0 -16px; z-index: -1; background: rgba(10, 12, 11, .62); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); opacity: 0; transition: opacity .22s; pointer-events: none; }
.topbar.solid::after { opacity: 1; }
.topbar .spacer { flex: 1; }
.shelf-filter { display: flex; padding: 3px; gap: 2px; border-radius: 10px; margin-left: 10px; background: rgba(10, 12, 11, .42); border: 1px solid rgba(255, 255, 255, .1); }
.shelf-filter button { padding: 6px 11px; border-radius: 7px; font-weight: 500; font-size: 14px; color: var(--dim); transition: background-color .12s, color .12s; }
.shelf-filter button.active { background: rgba(255, 255, 255, .14); color: var(--text); }
.profile-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; transition: transform .12s var(--ease); }
.profile-button .avatar { border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .18); }
.profile-button:active { transform: scale(.94); }
.brand { display: flex; align-items: center; gap: 9px; font: 500 21px/1 Outfit, Barlow, sans-serif; letter-spacing: -.005em; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background-color .12s, transform .12s var(--ease); }
.icon-button:active { background: rgba(255, 255, 255, .12); transform: scale(.94); }

/* Alsó sáv */
.tabbar {
  position: absolute; z-index: 25; left: 0; right: 0; bottom: 0;
  height: var(--tabbar); padding: 0 var(--right) var(--bottom) var(--left);
  display: flex; border-top: 1px solid rgba(255, 255, 255, .07);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 3px; gap: 3px; color: var(--faint); font: 500 11px/1 Barlow, sans-serif; transition: color .12s; }
.tab.active { color: var(--beam); }
.tab:active { color: var(--text); }

/* Üzenet */
#toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tabbar) + 16px + var(--under)); transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 10px; background: rgba(27, 31, 29, .94); border: 1px solid var(--line-strong); font-weight: 500; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100vw - 40px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Gombok */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 Barlow, sans-serif; white-space: nowrap; transition: transform .12s var(--ease), background-color .12s; }
.button:active { transform: scale(.97); }
.button.primary { background: var(--beam); color: var(--beam-ink); }
.button.primary:active { background: var(--beam-hover); }
.button.ghost { background: rgba(255, 255, 255, .12); color: var(--text); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.button.ghost:active { background: rgba(255, 255, 255, .2); }
.button.danger { background: rgba(232, 115, 90, .14); color: var(--danger); }
.button[disabled] { opacity: .5; }

/* ---- Főkép --------------------------------------------------------------------------------- */
.hero { position: relative; height: min(70vh, 92vw + 170px); height: min(70svh, 92vw + 170px); min-height: 430px; overflow: hidden; touch-action: pan-y; background: var(--wall); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
.hero-image.ready { opacity: 1; }
.hero-layer { position: absolute; inset: 0; }
/* Ken Burns only when the title has no trailer or preview clip: a slow drift, transform only. */
.hero-image.drift { animation: ken-burns 26s ease-in-out infinite alternate; transform-origin: 62% 42%; will-change: transform; }
@keyframes ken-burns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-2.2%, -1.4%, 0); } }
.hero-fallback { background: radial-gradient(90% 70% at 70% 30%, rgba(46, 204, 143, .22), transparent 70%), linear-gradient(160deg, var(--seat), var(--room)); }
.hero-media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero-trailer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.1s ease; }
.hero-trailer iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero-trailer::after { content: ''; position: absolute; inset: 0; }
.hero-trailer:not(.on) { transition-duration: .4s; }
.hero-video.on, .hero-trailer.on { opacity: 1; }
.hero-mute { position: absolute; z-index: 3; right: calc(var(--gutter) + var(--right)); top: calc(var(--topbar) + 12px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(10, 12, 11, .45); border: 1px solid rgba(255, 255, 255, .22); transition: background-color .12s, transform .12s var(--ease); }
.hero-mute:active { transform: scale(.94); background: rgba(10, 12, 11, .7); }
.hero-mute[hidden] { display: none; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 74%; background: linear-gradient(transparent, rgba(10, 12, 11, .55) 38%, rgba(10, 12, 11, .92) 76%, var(--room)); }
.hero-copy { position: absolute; z-index: 2; left: calc(var(--gutter) + var(--left)); right: calc(var(--gutter) + var(--right)); bottom: 18px; }
.hero-copy.changing { animation: copy-in .5s var(--ease); }
@keyframes copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.eyebrow { color: var(--beam); font: 600 14px/1 Barlow, sans-serif; margin: 0 0 6px 2px; }
.hero-title { font: 400 clamp(46px, 13.5vw, 62px)/.98 "Instrument Serif", serif; letter-spacing: -.005em; }
.hero-line { margin: 8px 0 0 2px; color: rgba(242, 245, 241, .9); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-progress { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); margin: 11px 2px 0; overflow: hidden; }
.hero-progress > div { height: 100%; background: var(--beam); }
.hero-actions { display: flex; gap: 10px; margin-top: 15px; }
.hero-actions .button { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.hero-actions .button.primary { flex-grow: 1.25; }
.hero-dots { display: flex; justify-content: center; margin-top: 6px; }
.hero-dot { padding: 10px 3px; display: block; }
.hero-dot span { display: block; width: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: width .3s var(--ease), background-color .3s; }
.hero-dot.active span { width: 24px; background: var(--beam); }
.hero-progress[hidden] { display: none; }

/* ---- Kártyasorok --------------------------------------------------------------------------- */
.row { margin-top: 26px; }
.row-head { display: flex; align-items: baseline; gap: 10px; padding: 0 calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); margin-bottom: 11px; }
.row-title { font: 400 clamp(24px, 6.6vw, 27px)/1.1 "Instrument Serif", serif; min-width: 0; }
.row-caption { color: var(--faint); font-size: 14px; white-space: nowrap; }
.row-more { margin-left: auto; color: var(--dim); font-size: 14.5px; display: flex; align-items: center; gap: 2px; white-space: nowrap; padding: 6px 0 6px 10px; }
.row-track { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); padding: 2px calc(var(--gutter) + var(--right)) 4px calc(var(--gutter) + var(--left)); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.row-track::-webkit-scrollbar { display: none; }

.card { flex: 0 0 min(68vw, 300px); scroll-snap-align: start; text-align: left; display: block; min-width: 0; }
.card:active .thumb { transform: scale(.975); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--seat); transition: transform .18s var(--ease); }
.thumb-image { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.thumb-image.ready { opacity: 1; }
.thumb-image.empty { background: linear-gradient(135deg, var(--seat), var(--wall)); opacity: 1; }
.thumb.has-uploader .thumb-progress { left: 38px; bottom: 15px; }
.uploader-badge { position: absolute; left: 7px; bottom: 7px; width: 24px; height: 24px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(242, 245, 241, .55), 0 1px 5px rgba(0, 0, 0, .5); }
.uploader-badge .avatar { display: block; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.thumb-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.thumb-progress > div { height: 100%; background: var(--beam); }
.thumb-label { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 6px; background: var(--beam); color: var(--beam-ink); font: 600 12px/1 Barlow, sans-serif; }
.thumb-check { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(10, 12, 11, .72); color: var(--beam); }
.card-title { margin-top: 8px; font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-caption { color: var(--faint); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rács a Sorozatok és a Filmek oldalon */
.page-head { padding: calc(var(--topbar) + 14px) calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.page-title { font: 400 46px/1 "Instrument Serif", serif; }
.page-caption { color: var(--dim); margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 20px calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.grid .card { flex: none; }

/* ---- Sorozat oldal ------------------------------------------------------------------------- */
.series-hero { position: relative; height: min(56vh, 74vw + 120px); height: min(56svh, 74vw + 120px); min-height: 330px; overflow: hidden; }
.series-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.series-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), transparent 30%, rgba(10, 12, 11, .55) 58%, var(--room)); }
.series-copy { position: relative; margin-top: -92px; z-index: 2; padding: 0 calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.series-title { font: 400 clamp(44px, 13vw, 60px)/1 "Instrument Serif", serif; }
.series-meta { color: var(--dim); margin: 6px 0 15px 2px; }
.series-copy .button { width: 100%; }
.season-picker { display: flex; gap: 8px; overflow-x: auto; padding: 18px calc(var(--gutter) + var(--right)) 4px calc(var(--gutter) + var(--left)); scrollbar-width: none; }
.season-picker::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 9px; background: var(--seat); color: var(--dim); font-weight: 500; font-size: 15px; transition: background-color .12s, color .12s; }
.chip.active { background: var(--beam-soft); color: var(--beam); }
.episodes { padding: 10px calc(var(--gutter) - 8px + var(--right)) 0 calc(var(--gutter) - 8px + var(--left)); display: flex; flex-direction: column; gap: 2px; }
.episode { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-align: left; width: 100%; transition: background-color .12s; }
.episode:active { background: var(--seat); }
.episode .thumb { flex: 0 0 132px; border-radius: 8px; }
.episode-body { min-width: 0; flex: 1; }
.episode-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-meta { color: var(--faint); font-size: 14px; margin-top: 2px; }
.episode.upnext .episode-meta { color: var(--beam); }
.back-button { position: absolute; z-index: 22; top: calc(var(--top) + 8px); left: calc(12px + var(--left)); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 11, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.back-button:active { transform: scale(.94); }

/* Keresés */
.search-box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--seat); margin: 16px calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); color: var(--dim); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; color: var(--text); }
.search-box input::placeholder { color: var(--faint); }

/* Üres és hibás állapot */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 76vh; min-height: 76svh; padding: calc(var(--top) + 60px) 30px 40px; }
.empty-state h2 { font: 400 38px/1.05 "Instrument Serif", serif; }
.empty-state p { color: var(--dim); max-width: 34ch; }
.empty-state .button { margin-top: 10px; }

/* Beállítások */
.settings-group { margin: 24px calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.settings-group h2 { font: 400 27px/1.1 "Instrument Serif", serif; margin-bottom: 11px; }
.setting { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 11px 14px; background: var(--wall); border-radius: 12px; margin-bottom: 8px; width: 100%; text-align: left; }
.setting-body { flex: 1; min-width: 0; }
.setting-title { font-size: 16px; }
.setting-text { color: var(--faint); font-size: 13.5px; margin-top: 1px; }
.setting-value { color: var(--dim); }
.setting-avatar .avatar { display: block; border-radius: 10px; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line-strong); position: relative; transition: background-color .18s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch.on { background: var(--beam); }
.switch.on::after { transform: translateX(20px); background: var(--beam-ink); }
.setting.stacked { flex-direction: column; align-items: stretch; gap: 10px; }
.segments { display: flex; flex: none; padding: 3px; gap: 2px; border-radius: 10px; background: var(--seat); }
.segments button { flex: 1; padding: 9px 8px; border-radius: 8px; color: var(--dim); font-weight: 500; font-size: 15px; }
.segments button.active { background: var(--beam); color: var(--beam-ink); }

/* ---- Belépés és telepítés ------------------------------------------------------------------- */
.gate { position: fixed; inset: 0 0 var(--under); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top) + 24px) 28px calc(var(--bottom) + 24px); background: radial-gradient(120% 70% at 12% -6%, rgba(46, 204, 143, .15), transparent 62%), var(--room); overflow-y: auto; }
.gate .brand { font-size: 34px; gap: 12px; margin-bottom: 26px; }
.gate h1 { font: 400 42px/1.04 "Instrument Serif", serif; }
.gate p { color: var(--dim); margin: 10px 0 24px; }
.gate-input { width: 100%; height: 54px; border-radius: 12px; background: var(--seat); border: 1px solid transparent; padding: 0 16px; font-size: 18px; letter-spacing: .03em; outline: 0; }
.gate-input:focus { border-color: var(--beam); }
.gate-error { color: var(--danger); min-height: 22px; margin: 8px 2px 8px; font-size: 15px; }
.gate .button { width: 100%; }
.install-steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--wall); border-radius: 12px; }
.install-steps .step-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--seat); color: var(--beam); }
.gate-link { display: block; text-align: center; margin-top: 16px; padding: 8px; color: var(--dim); font-size: 15px; width: 100%; }

/* ---- Üveg panel ---------------------------------------------------------------------------- */
.sheet-backdrop { position: fixed; z-index: 70; inset: 0 0 var(--under); background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 71; left: calc(8px + var(--left)); right: calc(8px + var(--right)); bottom: calc(8px + var(--bottom) + var(--under));
  max-height: min(74vh, 620px); max-height: min(74svh, 620px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 6px 10px; border-radius: 16px;
  background: rgba(16, 19, 17, .56);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .13);
  transform: translateY(16px); opacity: 0;
  transition: transform .24s var(--ease), opacity .18s;
}
.sheet.open { transform: none; opacity: 1; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 2px auto 8px; }
.sheet-label { color: rgba(255, 255, 255, .62); font-weight: 500; font-size: 13.5px; padding: 10px 12px 4px; }
.option { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 46px; padding: 8px 12px 8px 6px; border-radius: 10px; text-align: left; color: rgba(255, 255, 255, .86); transition: background-color .12s; }
.option:active { background: rgba(255, 255, 255, .1); }
.option .tick { width: 26px; flex: none; color: var(--beam); display: grid; place-items: center; }
.option .option-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option.on .option-text { color: #fff; font-weight: 500; }
.option .option-detail { color: rgba(255, 255, 255, .55); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.sheet-line { height: 1px; background: rgba(255, 255, 255, .1); margin: 6px 10px; }
.sheet-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.sheet-row .grow { flex: 1; }
.size-choice { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-weight: 500; }
.size-choice.on { color: var(--beam); background: var(--beam-soft); }
.step { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.step:active { background: rgba(255, 255, 255, .2); }
.step-value { min-width: 58px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.speed-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 14px 2px; }
.speed-value { font-weight: 600; font-size: 17px; }
.speed-value.changed { color: var(--beam); }
.speed-scale { position: relative; height: 60px; margin: 0 8px; touch-action: none; }
.speed-track { position: absolute; left: 14px; right: 14px; top: 21px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.speed-fill { position: absolute; top: 0; bottom: 0; background: var(--beam); border-radius: 2px; }
.speed-tick { position: absolute; top: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.speed-knob { position: absolute; top: -8px; width: 19px; height: 19px; margin-left: -9.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); transition: left .16s var(--ease); }
.speed-mark { position: absolute; top: 38px; transform: translateX(-50%); font-size: 13px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.speed-mark.on { color: #fff; font-weight: 600; }

/* ---- Lejátszó ------------------------------------------------------------------------------- */
.player { position: fixed; z-index: 60; inset: 0 0 var(--under); background: #000; overflow: hidden; touch-action: manipulation; -webkit-user-select: none; user-select: none; animation: player-in .22s ease; }
@keyframes player-in { from { opacity: 0; } to { opacity: 1; } }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.fill video { object-fit: cover; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .55; transition: opacity .35s; pointer-events: none; }
.player.started .player-poster { opacity: 0; }
.player-tap { position: absolute; inset: 0; }

.player-chrome { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .22s; }
.player.chrome .player-chrome { opacity: 1; pointer-events: auto; }
.player-scrim-top, .player-scrim-bottom { position: absolute; left: 0; right: 0; pointer-events: none; }
.player-scrim-top { top: 0; height: 130px; background: linear-gradient(rgba(0, 0, 0, .68), transparent); }
.player-scrim-bottom { bottom: 0; height: calc(156px + var(--bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }

.player-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: calc(var(--top) + 6px) calc(10px + var(--right)) 6px calc(8px + var(--left)); }
.player-heading { flex: 1; min-width: 0; }
.player-title { font: 400 25px/1.1 "Instrument Serif", serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-subtitle { color: rgba(255, 255, 255, .78); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: clamp(26px, 9vw, 58px); }
.center-button { position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: transform .12s var(--ease), background-color .12s; }
.center-button:active { transform: scale(.9); background: rgba(255, 255, 255, .12); }
.center-button.main { width: 74px; height: 74px; background: rgba(10, 12, 11, .36); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.center-button span { position: absolute; font: 600 10.5px/1 Barlow, sans-serif; top: 50%; left: 50%; transform: translate(-50%, -38%); }

.player-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 calc(14px + var(--right)) calc(max(var(--bottom), 8px) + 2px) calc(14px + var(--left)); }
.player-times { display: flex; justify-content: space-between; font-weight: 500; font-size: 13.5px; font-variant-numeric: tabular-nums; padding: 0 2px 1px; }
.seek { position: relative; height: 34px; touch-action: none; display: flex; align-items: center; }
.seek-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .24); transition: height .12s; }
.seek.dragging .seek-track { height: 6px; }
.seek-buffer { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.seek-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--beam); }
.seek-knob { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 0 0 rgba(46, 204, 143, .3); transition: box-shadow .14s, transform .14s; }
.seek.dragging .seek-knob { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(46, 204, 143, .22); }
.seek-bubble { position: absolute; bottom: 34px; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: rgba(16, 19, 17, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .12s; pointer-events: none; }
.seek.dragging .seek-bubble { opacity: 1; }
.player-tools { display: flex; align-items: center; justify-content: space-around; max-width: 460px; margin: 0 auto; }
.tool { width: 52px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: rgba(255, 255, 255, .92); }
.tool:active { background: rgba(255, 255, 255, .12); }
.tool.active { color: var(--beam); }
.tool[disabled] { opacity: .3; }

.subtitle-layer { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; pointer-events: none; transition: bottom .22s var(--ease); z-index: 3; }
.player.chrome .subtitle-layer { bottom: calc(108px + var(--bottom)); }
.subtitle-text { display: inline; color: #fff; font-weight: 500; line-height: 1.32; white-space: pre-line; font-size: calc(clamp(17px, 4.6vmin, 30px) * var(--subtitle-scale, 1)); text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 4px #000, 1px 1px 2px #000, -1px -1px 2px #000; }

.player-loading { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: var(--beam); animation: spin .9s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.player.loading .player-loading { opacity: 1; transition-delay: .18s; }
.player.loading .center-button.main { opacity: 0; pointer-events: none; transition: opacity .15s .18s; }
@keyframes spin { to { transform: rotate(360deg); } }

.seek-flash { position: absolute; top: 50%; width: 74px; height: 74px; margin-top: -37px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 11, .42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-weight: 600; opacity: 0; pointer-events: none; }
.seek-flash.left { left: 12%; }
.seek-flash.right { right: 12%; }
.seek-flash.show { animation: flash .55s ease; }
@keyframes flash { 0% { opacity: 0; transform: scale(.85); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.player-hud { position: absolute; left: 50%; top: calc(var(--top) + 64px); transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; background: rgba(16, 19, 17, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); font-weight: 500; opacity: 0; transition: opacity .18s; pointer-events: none; white-space: nowrap; }
.player-hud.show { opacity: 1; }

.player-action { position: absolute; right: calc(16px + var(--right)); bottom: calc(116px + var(--bottom)); display: flex; gap: 8px; }
.pill-button { height: 44px; padding: 0 16px; border-radius: 11px; font-weight: 600; background: rgba(16, 19, 17, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .16); }
.pill-button:active { transform: scale(.97); }
.next-card { position: absolute; right: calc(14px + var(--right)); bottom: calc(max(var(--bottom), 8px) + 100px); width: min(300px, calc(100vw - 28px)); padding: 12px; border-radius: 14px; background: rgba(16, 19, 17, .62); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .14); }
@media (orientation: portrait) {
  .player:has(.next-card) .subtitle-layer { bottom: calc(max(var(--bottom), 8px) + 228px); }
}
.next-card .label { color: var(--beam); font-weight: 600; font-size: 13.5px; }
.next-card .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 10px; }
.next-card .actions { display: flex; gap: 8px; }
.next-card .button { height: 42px; flex: 1; font-size: 15px; padding: 0 10px; }

.player-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px; background: rgba(0, 0, 0, .72); }
.player-error p { max-width: 34ch; color: var(--dim); }
.player-error .row-actions { display: flex; gap: 10px; margin-top: 8px; }

@media (orientation: landscape) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .hero { height: 86vh; height: 86svh; min-height: 300px; }
  .hero-copy { max-width: 52%; }
  .hero-title { font-size: 52px; }
  .sheet { left: auto; right: calc(10px + var(--right)); bottom: calc(8px + var(--bottom) + var(--under)); width: min(400px, 58vw); max-height: calc(100vh - 16px - var(--top) - var(--bottom)); max-height: calc(100svh - 16px - var(--top) - var(--bottom)); transform: translateX(16px); }
  .sheet-handle { display: none; }
  .player-scrim-bottom { height: calc(129px + var(--bottom)); }
  .player.chrome .subtitle-layer { bottom: calc(97px + var(--bottom)); }
  .next-card { top: calc(var(--top) + 60px); bottom: auto; width: 190px; }
  .next-card .actions { flex-direction: column; }
  .next-card .button { flex: none; width: 100%; height: 40px; }
  .player-action { bottom: calc(103px + var(--bottom)); }
  .player-tools { max-width: none; justify-content: flex-end; gap: 4px; }
}

/* ---- Induló animáció ------------------------------------------------------------------------ */
.intro { position: fixed; z-index: 100; inset: 0 0 var(--under); background: #000; overflow: hidden; }
.intro.opening { background: transparent; }
.intro canvas { display: block; width: 100%; height: 100%; }
.intro-cover { position: fixed; z-index: 99; inset: 0 0 var(--under); background: #000; }


/* ---- Film és sorozat adatlap ------------------------------------------------------------------ */
.detail-backdrop { position: relative; height: min(52vh, 62vw + 90px); height: min(52svh, 62vw + 90px); min-height: 280px; overflow: hidden; background: var(--wall); }
.detail-backdrop-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.detail-backdrop-image.ready { opacity: 1; }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .4), transparent 28%, rgba(10, 12, 11, .5) 60%, var(--room)); }
.detail-head { position: relative; z-index: 2; margin-top: -120px; display: flex; align-items: flex-end; gap: 16px; padding: 0 calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.detail-poster { flex: none; width: 108px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--seat); box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); align-self: flex-start; margin-top: 8px; }
.detail-poster-image { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.detail-poster-image.ready { opacity: 1; }
.detail-copy { min-width: 0; flex: 1; }
.detail-title { font: 400 clamp(38px, 11vw, 60px)/1 "Instrument Serif", serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.detail-original { color: var(--dim); font-style: italic; margin: 6px 0 0 2px; font-size: 15.5px; }
.detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: rgba(242, 245, 241, .86); margin: 10px 0 0 2px; font-size: 15px; }
.age-rating { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border: 1.5px solid rgba(242, 245, 241, .7); border-radius: 5px; font: 600 12.5px/1 Barlow, sans-serif; letter-spacing: .02em; }
.ratings { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.rating { display: flex; flex-direction: column; gap: 3px; min-width: 92px; padding: 9px 12px 10px; border-radius: 10px; background: var(--wall); border: 1px solid var(--line); }
.rating-score { font: 600 21px/1 Barlow, sans-serif; font-variant-numeric: tabular-nums; }
.rating-source { color: var(--dim); font-size: 13px; font-weight: 500; line-height: 1.25; display: flex; flex-direction: column; }
.rating-detail { color: var(--faint); font-weight: 400; font-size: 12.5px; }
.detail-extra { padding: 0 calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-progress { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; margin: 14px calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.detail-progress-bar { flex: 0 1 180px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.detail-progress-bar > span { display: block; height: 100%; background: var(--beam); }
.detail-body { margin: 22px calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); max-width: 68ch; }
.detail-overview { color: rgba(242, 245, 241, .9); font-size: 16.5px; line-height: 1.5; }
.detail-uploader { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--dim); font-size: 15px; }
.uploader-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.uploader-chip .avatar { border-radius: 6px; }
.detail-page > :not(.detail-backdrop) { position: relative; z-index: 2; }
.detail-section { margin-top: 28px; }
.detail-section > .row-title { padding: 0 calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); margin-bottom: 12px; }
.episodes-section { margin-top: 18px; }
.episodes-section .season-picker { padding-top: 0; }
.episode-overview { color: var(--faint); font-size: 13.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast { list-style: none; margin: 0; padding: 0 calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; }
.cast-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cast-photo { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--seat); }
.cast-photo.initials { display: grid; place-items: center; color: var(--dim); font-weight: 600; font-size: 15px; }
.cast-text { display: flex; flex-direction: column; min-width: 0; }
.cast-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-role { color: var(--faint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Profilok ------------------------------------------------------------------------------- */
.avatar { display: block; flex: none; }
.profiles-page { padding-bottom: calc(var(--bottom) + 40px); background: radial-gradient(110% 60% at 50% -10%, rgba(46, 204, 143, .1), transparent 60%), var(--room); }
.profiles-brand { padding: calc(var(--top) + 14px) calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.profiles-body { min-height: calc(100% - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px calc(var(--gutter) + var(--right)) 24px calc(var(--gutter) + var(--left)); }
.profiles-title { font: 400 clamp(40px, 11vw, 64px)/1.02 "Instrument Serif", serif; letter-spacing: -.01em; text-align: center; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 148px)); justify-content: center; gap: 26px 22px; margin: 34px 0 32px; }
.profile-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.profile-face { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 0 rgba(242, 245, 241, 0); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.profile-face .profile-avatar { width: 100%; height: 100%; }
.profile-tile:active .profile-face { transform: scale(.96); }
.profile-name { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--dim); font-size: 17px; font-weight: 500; transition: color .12s; }
.profile-name > :first-child { overflow: hidden; text-overflow: ellipsis; }
.profile-lock { color: var(--faint); display: inline-grid; }
.profile-edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 12, 11, .5); color: var(--text); }
.add-face { display: grid; place-items: center; color: var(--dim); background: transparent; border: 2px dashed var(--line-strong); }
.profiles-done { min-width: 200px; }
@media (hover: hover) {
  .profile-tile:hover .profile-face { box-shadow: 0 0 0 3px var(--text); }
  .profile-tile:hover .profile-name { color: var(--text); }
  .profile-tile.add:hover .add-face { border-color: var(--dim); color: var(--text); box-shadow: none; }
}

.profile-option { gap: 10px; padding-left: 10px; }
.profile-option-face .avatar { border-radius: 7px; }
.profile-option .tick { order: 3; }

/* Szerkesztő */
.editor-page .back-button { top: calc(var(--top) + 8px); }
.editor-wrap { max-width: 640px; margin: 0 auto; padding: calc(var(--top) + 64px) calc(var(--gutter) + var(--right)) 0 calc(var(--gutter) + var(--left)); }
.editor-wrap .profiles-title { text-align: left; font-size: clamp(38px, 10vw, 52px); }
.editor { margin-top: 22px; }
.editor-top { display: flex; align-items: flex-end; gap: 18px; }
.editor-preview { flex: none; width: 112px; height: 112px; border-radius: 18px; overflow: hidden; }
.editor-preview .avatar { width: 100%; height: 100%; }
.editor-name { flex: 1; min-width: 0; }
.editor-section { margin-top: 26px; }
.editor-heading { font: 400 27px/1.1 "Instrument Serif", serif; margin-bottom: 11px; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; color: var(--dim); font-size: 14px; font-weight: 500; margin: 0 0 6px 2px; }
.field-input { width: 100%; height: 50px; border-radius: 12px; background: var(--seat); border: 1px solid transparent; padding: 0 14px; font-size: 17px; outline: 0; transition: border-color .12s; }
.field-input:focus { border-color: var(--beam); }
.field-input::placeholder { color: var(--faint); }
.field-hint { color: var(--faint); font-size: 13.5px; margin: -4px 2px 4px; }
.field-error { color: var(--danger); font-size: 14.5px; min-height: 0; margin: 2px 2px 0; }
.field-error:empty { display: none; }
.password-fields { margin-top: 12px; }
.password-fields[hidden] { display: none; }
.avatar-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; }
.avatar-choice { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 0 transparent; transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.avatar-choice .avatar { width: 100%; height: 100%; }
.avatar-choice:active { transform: scale(.94); }
.avatar-choice.on { box-shadow: 0 0 0 3px var(--room), 0 0 0 5px var(--beam); }
.editor-actions { display: flex; gap: 10px; margin-top: 28px; }
.editor-actions .button { flex: 1; }
.editor-delete { width: 100%; margin-top: 12px; }
.sheet-text { color: rgba(255, 255, 255, .72); font-size: 15px; padding: 0 12px 8px; }
.danger-option .option-text { color: var(--danger); font-weight: 500; }

/* Jelszó ablak */
.dialog-backdrop { position: fixed; z-index: 80; inset: 0 0 var(--under); background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .2s; }
.dialog-backdrop.open { opacity: 1; }
.dialog { position: fixed; z-index: 81; left: 50%; top: 50%; width: min(380px, calc(100vw - 32px)); padding: 26px 22px 22px; border-radius: 18px; background: var(--wall); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); text-align: center; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .24s var(--ease), opacity .18s; }
.dialog.open { transform: translate(-50%, -50%); opacity: 1; }
.dialog.shake { animation: shake .36s var(--ease); }
@keyframes shake { 0%, 100% { transform: translate(-50%, -50%); } 25% { transform: translate(calc(-50% - 7px), -50%); } 60% { transform: translate(calc(-50% + 5px), -50%); } }
.dialog-avatar { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 16px; overflow: hidden; }
.dialog-title { font: 400 34px/1.05 "Instrument Serif", serif; }
.dialog-text { color: var(--dim); margin: 6px 0 18px; }
.dialog .field-input { text-align: center; }
.dialog .field-error { margin-top: 8px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.dialog-actions .button { flex: 1; }

/* Billentyűzet és távirányító: látható fókusz. */
:focus { outline: none; }
input:focus-visible { outline: none; }
:focus-visible { outline: 3px solid var(--beam); outline-offset: 3px; border-radius: 8px; }
.card:focus-visible { outline-offset: 4px; border-radius: 12px; }
.profile-tile:focus-visible { outline: none; }
.profile-tile:focus-visible .profile-face { box-shadow: 0 0 0 3px var(--room), 0 0 0 6px var(--beam); }
.avatar-choice:focus-visible { outline-offset: 2px; border-radius: 14px; }

@media (orientation: landscape) {
  .hero-actions, .hero-progress { max-width: 460px; }
  .hero-dots { justify-content: flex-start; margin-left: -3px; }
  .detail-head { margin-top: -150px; }
  .detail-poster { width: 150px; }
}

@media (min-width: 720px) {
  .profile-grid { grid-template-columns: repeat(auto-fit, minmax(0, 168px)); max-width: 960px; gap: 30px 28px; }
  .detail-backdrop { height: min(64vh, 640px); }
  .detail-head { margin-top: -200px; gap: 28px; }
  .detail-poster { width: 190px; margin-top: 0; }
  .detail-extra.beside-poster { padding-left: calc(var(--gutter) + var(--left) + 218px); }
  .detail-title { font-size: 64px; }
  .cast { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-width: 1100px; }
  .settings-group { max-width: 760px; }
}

@media (max-width: 719px) {
  .ratings .rating { flex: 1 1 0; min-width: 0; padding: 9px 10px 10px; }
  .detail-actions .button.primary { flex: 1; }
}

@media (max-width: 380px) {
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image.drift { animation: none; }
  .page { animation: none; }
  .dialog.shake { animation: none; }
}

/* Feltöltés */
.upload-pick { width: 100%; margin-top: 4px; }
.upload-hint { color: var(--dim); font-size: 14px; line-height: 1.45; margin: 10px 2px 0; }
.upload-list { display: flex; flex-direction: column; gap: 8px; }
.upload-list:empty::before { content: 'Még nincs feltöltés.'; color: var(--dim); font-size: 15px; padding: 4px 2px; }
.upload-row { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--wall); border-radius: 12px; }
.upload-body { flex: 1; min-width: 0; }
.upload-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 13px; color: var(--dim); }
.upload-status.busy { color: var(--text); }
.upload-status.done { color: var(--beam); }
.upload-status.warn { color: #e7b85c; }
.upload-status.error { color: var(--danger); }
.upload-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 9px; }
.upload-bar > div { height: 100%; width: 0; background: var(--beam); transition: width .3s ease; }
.upload-bar > div.error { background: var(--danger); }
.upload-bar > div.warn { background: #e7b85c; }
.upload-cancel { flex: none; width: 36px; height: 36px; color: var(--dim); }
.upload-cancel[hidden] { display: none; }
@media (min-width: 720px) { .upload-pick { width: auto; } }

/* Tévé: távolról is látható fókusz, a kártyák kicsit kiemelkednek. */
.tv :focus-visible, .tv :focus { outline: 3px solid var(--beam); outline-offset: 4px; border-radius: 12px; }
.tv .card, .tv .episode { transition: transform .15s var(--ease); }
.tv .card:focus, .tv .episode:focus { transform: scale(1.06); z-index: 2; }
.tv .profile-tile:focus { outline: none; }
.tv .profile-tile:focus .profile-face { box-shadow: 0 0 0 3px var(--room), 0 0 0 6px var(--beam); }
