/* ==========================================================
   BombaszVids – stíluslap
   1. Alapok        5. Kártyák         9. Gombok, chipek
   2. Betöltés      6. Adatlap        10. Lejátszó
   3. Belépés       7. Lábléc         11. Reszponzív
   4. Fejléc, hero  8. Keresés üres
   ========================================================== */

/* ---------- 1. Alapok ---------- */
:root {
  --bg:        #09090b;
  --surface:   #121216;
  --surface-2: #1a1a20;
  --surface-3: #24242c;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --text:      #f4f4f6;
  --text-2:    #a6a6b0;
  --text-3:    #6e6e79;
  --accent:    #e5484d;
  --accent-2:  #ff6369;
  --ok:        #3dd68c;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 20px 50px -12px rgba(0, 0, 0, .7);

  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-logo: 'Bebas Neue', var(--f-body);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll, body.player-open, body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.fill, .fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--accent); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }

.logo {
  font-family: var(--f-logo);
  font-size: 30px;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  user-select: none;
}
.logo span { color: var(--accent); }
.logo-lg { font-size: 44px; }

.spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 2. Betöltés ---------- */
.boot {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-content: center; justify-items: center; gap: 24px;
  background: var(--bg);
}

/* ---------- 3. Belépés ---------- */
.auth {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: var(--bg);
}
.auth-bg {
  position: fixed; inset: -40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  filter: blur(40px) saturate(1.3);
  opacity: .45;
  transform: scale(1.1);
}
.auth-bg div { background-size: cover; background-position: center; }
.auth::after {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(9, 9, 11, .55), var(--bg) 75%);
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  padding: 36px 32px 28px;
  background: rgba(18, 18, 22, .72);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow);
  animation: rise .5s var(--ease) both;
}
.auth-card .logo { display: block; text-align: center; margin-bottom: 22px; }
.auth-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.auth-lead { color: var(--text-2); font-size: 14px; margin: -16px 0 22px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .18);
}

.auth-forgot { font-size: 13px; margin: -4px 0 6px; display: block; margin-left: auto; }
.auth-msg { font-size: 13.5px; line-height: 1.45; min-height: 8px; margin: 8px 0 12px; }
.auth-msg.is-error { color: var(--accent-2); }
.auth-msg.is-ok { color: var(--ok); }
.auth-switch { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 18px; }

.link-btn { color: var(--text-2); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); padding: 2px 0; }
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }
.auth-switch .link-btn { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.auth-switch .link-btn:hover { text-decoration: underline; }

/* ---------- 4. Fejléc, hero ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(9, 9, 11, .85), rgba(9, 9, 11, 0));
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.topbar.is-scrolled {
  background: rgba(9, 9, 11, .78);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}

.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  width: min(360px, 100%);
  padding: 0 12px;
  height: 42px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .15s, border-color .15s, box-shadow .15s;
  cursor: text;
}
.search:focus-within { background: rgba(255, 255, 255, .09); border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); }
.search svg { width: 18px; height: 18px; color: var(--text-3); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); cursor: pointer; }
.search kbd {
  font: 600 11px/1 var(--f-body);
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 7px;
}
.search:focus-within kbd { display: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: background .15s, color .15s, transform .15s;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }

/* Hero */
.hero {
  --accent-film: var(--accent);
  position: relative;
  min-height: min(78vh, 760px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) 56px;
  overflow: hidden;
  isolation: isolate;
  transition: min-height .4s var(--ease), opacity .3s, padding .4s var(--ease);
}
.hero.is-collapsed { min-height: 0; height: 88px; padding: 0; }
.hero.is-collapsed > *, .hero.is-collapsed::before { display: none; }

.hero-bg {
  position: absolute; inset: -60px -60px 0; z-index: -2;
  background-size: cover; background-position: center 25%;
  filter: blur(36px) saturate(1.4) brightness(.6);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, color-mix(in srgb, var(--accent-film) 22%, transparent), transparent 70%),
    linear-gradient(to right, rgba(9, 9, 11, .92) 0%, rgba(9, 9, 11, .55) 55%, rgba(9, 9, 11, .2) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(9, 9, 11, 0) 45%);
}

.hero-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 56px);
  animation: rise .6s var(--ease) both;
}
.hero-poster {
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-text { max-width: 640px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(229, 72, 77, .2); }
.hero-title {
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 12px 0 6px;
  text-wrap: balance;
}
.hero-original { color: var(--text-2); font-size: 16px; font-style: italic; }
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 14px 0;
  font-size: 14px; color: var(--text-2);
}
.meta > span:not(.chip) + span:not(.chip)::before { content: '•'; margin-right: 14px; color: var(--text-3); }
.hero-desc { color: #d2d2d8; font-size: 15.5px; max-width: 56ch; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--text-2); max-width: 360px; }
.hero-progress .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.hero-progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* ---------- 5. Kártyák ---------- */
.shelf { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) 72px; }
.shelf-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.shelf-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.shelf-count { color: var(--text-3); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 28px 20px;
}

.card {
  cursor: pointer;
  outline: none;
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.grid.is-ready .card { animation: none; }
.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .35s; }
.card-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-poster, .card:focus-visible .card-poster {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 40px -12px rgba(0, 0, 0, .8);
}
.card:focus-visible .card-poster { box-shadow: 0 0 0 2px var(--accent), 0 24px 40px -12px rgba(0, 0, 0, .8); }
.card:hover .card-poster img { transform: scale(1.06); }
.card:hover .card-poster::after { opacity: 1; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.badge-cc { left: auto; right: 10px; background: var(--accent); border-color: transparent; }

.card-play {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #000;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  transition: opacity .25s, transform .3s var(--ease), background .15s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.card-play svg { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-play:hover { background: #fff; transform: translate(-50%, -50%) scale(1.08) !important; }

.card-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.card-progress i { display: block; height: 100%; background: var(--accent); }

.card-body { padding: 12px 2px 0; }
.card-title {
  font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { color: var(--text-3); font-size: 13px; margin-top: 3px; }

/* ---------- 8. Keresés üres ---------- */
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 16px; color: var(--text-3); text-align: center; }
.empty svg { width: 40px; height: 40px; stroke-width: 1.5; }
.empty strong { color: var(--text-2); }

/* ---------- 6. Adatlap ---------- */
.sheet { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.sheet-panel {
  position: relative;
  width: 100%; max-width: 920px; max-height: calc(100vh - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { opacity: 1; transform: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); }

.detail { --accent-film: var(--accent); }
.detail-banner { position: relative; height: 220px; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.detail-banner-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center 30%;
  filter: blur(28px) saturate(1.4) brightness(.65);
}
.detail-banner::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, color-mix(in srgb, var(--accent-film) 30%, transparent), transparent 70%),
    linear-gradient(to top, var(--surface), transparent 80%);
}

.detail-main {
  position: relative;
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 0 36px 36px;
  margin-top: -150px;
}
.detail-poster {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
}
.detail-info { padding-top: 96px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 12px 0 4px; text-wrap: balance; }
.detail-original { color: var(--text-2); font-style: italic; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 22px; }
.facts div { padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 92px; }
.facts dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.facts dd { font-size: 14.5px; font-weight: 600; margin-top: 2px; }

.detail-desc { color: #cfcfd6; margin-top: 22px; max-width: 62ch; }

.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 28px 0 10px; }
.sub-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.sub-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(229, 72, 77, .14); color: var(--accent-2); }
.sub-text { flex: 1; min-width: 0; display: grid; }
.sub-text strong { font-size: 14.5px; }
.sub-text span { font-size: 13px; color: var(--text-2); }

.source-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2); text-decoration: none;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}
.source-link:hover { color: var(--text); border-color: var(--line-2); }
.source-link svg { width: 16px; height: 16px; }

/* ---------- 7. Lábléc ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 14px;
}
.footer .logo { font-size: 24px; color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }

/* ---------- 9. Gombok, chipek ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(229, 72, 77, .7); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-primary.is-busy { color: transparent; position: relative; }
.btn-primary.is-busy::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-glass { background: rgba(255, 255, 255, .12); color: var(--text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.chip svg { width: 14px; height: 14px; }
.chip-accent { background: rgba(229, 72, 77, .15); border-color: rgba(229, 72, 77, .3); color: var(--accent-2); }
.chip-cc { color: var(--text); }

/* ---------- 10. Lejátszó ---------- */
.player-modal { position: fixed; inset: 0; z-index: 1000; background: #000; }

.player {
  --sub-size: 1;
  --sub-bottom: 8%;
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  outline: none;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.player:not(.show-ui) { cursor: none; }
.pl-video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* felirat */
.pl-subs {
  position: absolute; left: 0; right: 0; bottom: var(--sub-bottom); z-index: 3;
  display: flex; justify-content: center;
  padding: 0 5%;
  pointer-events: none;
  transition: transform .25s var(--ease);
}
.player.show-ui .pl-subs { transform: translateY(-52px); }
.player.subs-off .pl-subs { display: none; }
.pl-subs-inner { text-align: center; max-width: 1100px; }
.pl-subs-inner span {
  display: table; margin: 3px auto 0;
  padding: .08em .45em .12em;
  font-size: calc(clamp(15px, 2.4vw, 36px) * var(--sub-size));
  font-weight: 500; line-height: 1.32;
  color: #fff;
  white-space: pre-line;
  background: rgba(0, 0, 0, .72);
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

/* árnyékok a vezérlők mögött */
.pl-shade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 22%),
    linear-gradient(to top, rgba(0, 0, 0, .85), transparent 32%);
  opacity: 0; transition: opacity .3s;
}
.pl-top, .pl-bottom, .pl-center { opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.player.show-ui .pl-shade,
.player.show-ui .pl-top,
.player.show-ui .pl-bottom { opacity: 1; pointer-events: auto; }

.pl-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  transform: translateY(-6px);
}
.player.show-ui .pl-top { transform: none; }
.pl-heading { display: grid; min-width: 0; line-height: 1.25; }
.pl-heading strong { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-heading span { font-size: 13px; color: rgba(255, 255, 255, .65); }

.pl-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  transition: background .15s, transform .15s;
  position: relative;
}
.pl-btn:hover { background: rgba(255, 255, 255, .12); }
.pl-btn:active { transform: scale(.9); }
.pl-btn svg { width: 24px; height: 24px; }
.pl-btn.is-on::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 3px; border-radius: 3px; background: var(--accent);
}

/* középső gomb (szünetnél / érintőképernyőn) */
.pl-center {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transform: translate(-50%, -50%) scale(.9);
}
.pl-center svg { width: 34px; height: 34px; }
.player.is-paused.show-ui:not(.is-loading) .pl-center,
.player.is-touch.show-ui:not(.is-loading) .pl-center { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.player.is-paused .pl-center svg { margin-left: 4px; }

.pl-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 0 16px max(10px, env(safe-area-inset-bottom));
  transform: translateY(6px);
}
.player.show-ui .pl-bottom { transform: none; }

/* idősáv */
.pl-timeline {
  position: relative;
  height: 26px;
  display: flex; align-items: center;
  cursor: pointer;
  touch-action: none;
  margin: 0 6px;
}
.pl-track {
  position: relative; width: 100%;
  height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  transition: height .15s;
}
.pl-timeline:hover .pl-track, .player.is-scrubbing .pl-track { height: 7px; }
.pl-buffer, .pl-hover, .pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; }
.pl-buffer { background: rgba(255, 255, 255, .3); }
.pl-hover  { background: rgba(255, 255, 255, .35); }
.pl-fill   { background: var(--accent); }
.pl-knob {
  position: absolute; top: 50%; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .25);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .15s;
  pointer-events: none;
}
.pl-timeline:hover .pl-knob, .player.is-scrubbing .pl-knob, .player.is-touch .pl-knob { transform: translate(-50%, -50%) scale(1); }
.player.is-scrubbing .pl-knob { transform: translate(-50%, -50%) scale(1.25); }

/* előnézet */
.pl-preview {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  display: grid; justify-items: center; gap: 6px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.player.is-previewing .pl-preview { opacity: 1; transform: translateX(-50%); }
.pl-preview-frame {
  width: 200px; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: #111 linear-gradient(110deg, #141418 30%, #22222a 50%, #141418 70%) 0 0 / 300% 100%;
  animation: shimmer 1.2s linear infinite;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 12px 30px rgba(0, 0, 0, .6);
}
.pl-preview-frame.has-frame { animation: none; }
.pl-preview-frame video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s; }
.pl-preview-frame.has-frame video { opacity: 1; }
.pl-preview.no-frame .pl-preview-frame { display: none; }
.pl-preview-time {
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, .6);
}
@keyframes shimmer { to { background-position: -300% 0; } }

/* vezérlősor */
.pl-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-group { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pl-time { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); margin-left: 8px; white-space: nowrap; }
.pl-time .pl-dur { color: rgba(255, 255, 255, .6); }

.pl-volume { display: flex; align-items: center; }
.pl-vol {
  --val: 100%;
  -webkit-appearance: none; appearance: none;
  width: 0; opacity: 0;
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, #fff var(--val), rgba(255, 255, 255, .3) var(--val));
  transition: width .2s var(--ease), opacity .2s, margin .2s;
  cursor: pointer;
}
.pl-volume:hover .pl-vol, .pl-vol:focus-visible { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.pl-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.pl-vol::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }

/* felirat menü */
.pl-menu {
  position: absolute; right: 16px; bottom: 72px;
  width: 280px;
  padding: 14px 16px;
  background: rgba(22, 22, 28, .92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  animation: rise .2s var(--ease) both;
}
.pl-menu-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.pl-menu-row { display: grid; gap: 8px; padding: 8px 0; font-size: 14px; }
.pl-menu-row:first-of-type { grid-template-columns: 1fr auto; align-items: center; }
.pl-menu-row em { font-style: normal; color: rgba(255, 255, 255, .55); margin-left: 4px; font-variant-numeric: tabular-nums; }
.pl-menu input[type="range"] { width: 100%; accent-color: var(--accent); }
.pl-menu .link-btn { font-size: 13px; margin-top: 4px; }

.pl-switch {
  -webkit-appearance: none; appearance: none;
  width: 40px; height: 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  position: relative; cursor: pointer;
  transition: background .2s;
}
.pl-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .2s var(--ease);
}
.pl-switch:checked { background: var(--accent); }
.pl-switch:checked::after { transform: translateX(16px); }

/* töltés, villanás, hiba, értesítés */
.pl-spinner {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  display: grid; justify-items: center; gap: 14px;
  transform: translate(-50%, -50%);
  opacity: 0; pointer-events: none;
  transition: opacity .2s .15s;
  text-align: center;
}
.pl-spinner .spinner { width: 52px; height: 52px; border-width: 4px; }
.pl-spinner-text { font-size: 14px; color: rgba(255, 255, 255, .75); width: min(320px, 80vw); }
.player.is-loading .pl-spinner { opacity: 1; }

.pl-flash {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0;
}
.pl-flash span { display: block; padding: 10px 18px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.pl-flash.go { animation: flash .7s var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.85); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); } }

.pl-error {
  position: absolute; left: 50%; top: 50%; z-index: 7;
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 16px;
  width: min(420px, 88vw);
  padding: 24px;
  text-align: center;
  background: rgba(22, 22, 28, .92);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
}
.pl-error-text { color: rgba(255, 255, 255, .85); font-size: 15px; }

.pl-toast {
  position: absolute; left: 24px; bottom: 96px; z-index: 7;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  font-size: 14px;
  background: rgba(22, 22, 28, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  animation: rise .3s var(--ease) both;
}
.pl-toast .link-btn { color: #fff; font-weight: 600; }

/* ---------- 11. Reszponzív ---------- */
@media (max-width: 760px) {
  .detail-main { grid-template-columns: 1fr; margin-top: -130px; padding: 0 20px 28px; gap: 18px; }
  .detail-side { display: flex; justify-content: center; }
  .detail-poster { width: 150px; }
  .detail-info { padding-top: 0; }
  .detail-banner { height: 170px; }
  .sheet { padding: 0; align-items: end; }
  .sheet-panel { max-height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(40px); }
  .detail .actions .btn { flex: 1; }
}

@media (max-width: 640px) {
  .topbar { gap: 10px; flex-wrap: wrap; }
  .search { order: 3; width: 100%; height: 40px; }
  .search kbd { display: none; }
  .topbar .icon-btn { margin-left: auto; width: 38px; height: 38px; }

  .hero { min-height: 0; padding-top: 128px; padding-bottom: 32px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-poster { display: none; }
  .hero-desc { font-size: 14.5px; }
  .actions .btn-lg { height: 46px; padding: 0 20px; flex: 1; }
  .hero.is-collapsed { height: 124px; padding: 0; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .card-play { opacity: 1; transform: translate(-50%, -50%) scale(.85); width: 48px; height: 48px; }
  .card-play svg { width: 18px; height: 18px; }

  .footer { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }

  .auth-card { padding: 28px 22px 22px; }

  /* lejátszó mobilon */
  .pl-bottom { padding: 0 6px max(4px, env(safe-area-inset-bottom)); }
  .pl-btn { width: 40px; height: 40px; }
  .pl-btn svg { width: 22px; height: 22px; }
  .pl-time { font-size: 13px; margin-left: 4px; }
  .pl-preview-frame { width: 150px; }
  .pl-menu { right: 8px; left: 8px; width: auto; bottom: 64px; }
  .pl-toast { left: 12px; right: 12px; bottom: 84px; justify-content: space-between; }
  .player.show-ui .pl-subs { transform: translateY(-44px); }
}

@media (max-width: 420px) {
  .player [data-act="back10"], .player [data-act="fwd10"] { display: none; }
}

/* érintőképernyőn nincs hover → a hangerő csúszka helyett csak a némítás gomb */
@media (hover: none) {
  .pl-vol { display: none; }
  .card:hover .card-poster { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.facts-gap { height: 22px; }

/* ---------- Folytatás sor + ÚJ jelzés ---------- */
.continue { padding-bottom: 8px; }
.cont-row {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 16px;
  margin: 0 -2px;
}
.cont-card {
  flex: 0 0 150px;
  display: grid; gap: 4px; text-align: left;
  scroll-snap-align: start;
  border-radius: var(--r-md);
}
.cont-poster {
  position: relative; display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cont-poster img { width: 100%; height: 100%; object-fit: cover; }
.cont-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 50%); }
.cont-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.92); color: #000;
  transform: translate(-50%, -50%) scale(.85); opacity: .9;
  transition: transform .25s var(--ease), opacity .2s;
}
.cont-play svg { width: 18px; height: 18px; margin-left: 2px; }
.cont-card:hover .cont-poster { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 18px 30px -12px rgba(0,0,0,.8); }
.cont-card:hover .cont-play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cont-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cont-meta { font-size: 12.5px; color: var(--text-3); }

.badge-new { top: 38px; background: var(--ok); color: #04130b; border-color: transparent; }
