/* =========================================================
   KEDVENC FILMEM — Apple-stílusú design
   Elvek (apple.com dark): tiszta fekete alap · keret nélküli,
   nagy rádiuszú felületek · pill-gombok · óriási, középre zárt
   tipográfia · frosted-glass nav · finom, rugós átmenetek.
   ========================================================= */

:root {
  --bg: #000000;
  --surface: #1d1d1f;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --text: #f5f5f7;
  --muted: #86868b;
  --faint: #6e6e73;

  --blue: #0071e3;          /* Apple CTA kék */
  --blue-hover: #0077ed;
  --green: #30d158;
  --red: #ff453a;
  --amber: #ffd60a;

  --nav-bg: rgba(22, 22, 23, 0.8);
  --nav-border: rgba(255, 255, 255, 0.08);
  --divider: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.75);

  --r-card: 18px;
  --r-input: 12px;
  --r-pill: 980px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== Fehér mód — apple.com light ===== */
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #e8e8ed;
  --surface-3: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;

  --green: #1d7a3e;
  --red: #e30000;
  --amber: #b06000;

  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-border: rgba(0, 0, 0, 0.08);
  --divider: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

/* =========================================================
   NAVIGÁCIÓ — frosted glass, mint az apple.com-on
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(22px, calc(50vw - 512px));
  height: 48px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
}
.topbar__brand {
  color: var(--text); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  opacity: 0.92; transition: opacity 0.2s;
}
.topbar__brand:hover { opacity: 1; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__user { color: var(--muted); font-size: 13px; }

/* =========================================================
   VÁZ ÉS TIPOGRÁFIA
   ========================================================= */
.container { max-width: 1024px; margin: 0 auto; padding: 64px 22px 120px; }
.container--narrow { max-width: 700px; }

.hero { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.hero__title {
  font-size: clamp(36px, 6vw, 52px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.07; margin: 0 0 12px;
}
.hero__sub { color: var(--muted); margin: 0 auto; max-width: 560px; font-size: 19px; line-height: 1.42; }
.hero .create { margin: 28px auto 0; justify-content: center; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--blue); margin: 0 0 8px;
}

.phase-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.phase-head--center { justify-content: center; text-align: center; }
.phase-head--center > div { max-width: 640px; }
.phase-head__title {
  font-size: clamp(30px, 5vw, 44px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 10px;
}
.phase-head .hero__sub { font-size: 17px; }

.section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 56px 0 20px; }
.section-title .tier-inline { vertical-align: middle; }

/* =========================================================
   GOMBOK — Apple pill
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; padding: 11px 22px;
  font-size: 15px; font-weight: 500; font-family: inherit; letter-spacing: -0.01em;
  color: #fff; text-decoration: none; cursor: pointer;
  border: none; border-radius: var(--r-pill);
  background: var(--blue);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn__arrow { font-weight: 400; opacity: 0.85; }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--sm { padding: 7px 16px; font-size: 13.5px; }
.btn[disabled], .btn.is-disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.form .btn { width: 100%; padding: 13px 22px; margin-top: 6px; }

.link { color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* =========================================================
   AUTH KÁRTYA
   ========================================================= */
.auth-body { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); }

.card {
  width: 100%; max-width: 400px;
  padding: 44px 36px 30px;
  background: var(--surface);
  border-radius: 22px;
}
.brand { text-align: center; margin-bottom: 32px; }
.brand__mark {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 26px;
  border-radius: 14px; background: var(--surface-2);
}
.brand__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.brand__subtitle { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ===== Alertek ===== */
.alert {
  margin-bottom: 18px; padding: 12px 16px;
  border-radius: var(--r-input); font-size: 14px;
  background: var(--surface-2);
}
.alert--error { color: #ff6961; }
.alert--success { color: var(--green); }

/* ===== Form mezők ===== */
.form { display: grid; gap: 12px; }
.field { position: relative; }
.field__input {
  width: 100%; padding: 17px 44px 15px 16px;
  font-size: 16px; color: var(--text); font-family: inherit;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-input); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.35); }
.field__label {
  position: absolute; left: 16px; top: 16px;
  color: var(--faint); font-size: 16px; pointer-events: none;
  transition: all 0.15s var(--ease);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: -8px; left: 12px; font-size: 11.5px; padding: 0 6px;
  color: var(--muted); background: var(--surface); border-radius: 4px;
}
.field__icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; opacity: 0.45; background: none; border: none; color: inherit;
}
.field__toggle { cursor: pointer; }
.field__toggle:hover, .field__toggle.is-on { opacity: 0.9; }

.form__row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--blue); width: 15px; height: 15px; }

.hint { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--faint); }
.hint code { color: var(--muted); background: var(--surface-2); padding: 2px 7px; border-radius: 5px; font-size: 12px; }

.profile { display: grid; gap: 8px; margin-bottom: 22px; }
.profile__row {
  display: flex; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--r-input);
  background: var(--surface-2); font-size: 15px;
}
.profile__row span { color: var(--muted); }

/* =========================================================
   DASHBOARD — Apple product-tile stílus
   ========================================================= */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }

.step-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px 30px;
  border-radius: var(--r-card);
  background: var(--surface);
  transition: transform 0.3s var(--ease);
}
.step-card__num {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--surface-2); color: var(--muted);
}
.step-card__body { flex: 1; }
.step-card__title { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.step-card__meta { margin: 0; color: var(--muted); font-size: 15px; }
.step-card__meta strong { color: var(--text); }

.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.list-card {
  padding: 26px 24px; border-radius: var(--r-card);
  background: var(--surface);
}
.list-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.list-card__title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.list-card__meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.list-card__actions { display: flex; align-items: center; gap: 8px; }

.badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.badge--blue  { background: var(--surface-2); color: var(--muted); }
.badge--amber { background: rgba(255, 214, 10, 0.15); color: var(--amber); }
.badge--green { background: rgba(48, 209, 88, 0.15); color: var(--green); }

.create { display: flex; gap: 10px; max-width: 560px; }
.create__input { flex: 1; }
.create__btn { white-space: nowrap; margin: 0; }

.empty {
  text-align: center; color: var(--faint); padding: 56px 24px;
  border-radius: var(--r-card); background: var(--surface); font-size: 15px;
}

/* ===== Számláló ===== */
.counter { min-width: 200px; display: grid; gap: 10px; justify-items: end; }
.counter__num { font-size: 15px; font-weight: 600; color: var(--muted); }
.counter__num span, .counter__num strong { color: var(--text); }
.counter__bar { width: 100%; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.counter__bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.4s var(--ease); }

/* =========================================================
   FÜLEK — iOS segmented control
   ========================================================= */
.tabs {
  display: inline-flex; gap: 2px; margin-bottom: 32px;
  padding: 3px; border-radius: var(--r-pill);
  background: var(--surface);
}
.tab-btn {
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--muted); padding: 8px 18px;
  background: none; border: none; border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.is-active { color: var(--bg); background: var(--text); font-weight: 600; }

.panel { margin-bottom: 48px; }

/* ===== Szűrők ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.select {
  font-family: inherit; font-size: 14px; letter-spacing: -0.01em; color: var(--text);
  padding: 9px 32px 9px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: none;
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'><path fill='%2386868b' d='M6 8L1 3h10z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: background-color 0.2s;
}
.select:hover { background-color: var(--surface-2); }
.select:focus { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.35); }
.select option { background: var(--surface); color: var(--text); }

.loadmore-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* =========================================================
   FILM-RÁCS — lebegő poszterek
   ========================================================= */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 20px 14px; margin-top: 20px;
}
.movie { position: relative; display: flex; flex-direction: column; }
.movie__poster {
  position: relative; aspect-ratio: 2/3;
  background: var(--surface);
  border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.movie:hover .movie__poster {
  transform: scale(1.035) translateY(-2px);
  box-shadow: 0 18px 40px -12px var(--shadow);
}
.movie__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.movie__noposter { font-size: 30px; opacity: 0.2; }
.movie__rating {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
  color: var(--text); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill);
}
.movie__body { padding: 10px 2px 8px; flex: 1; }
.movie__title { font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.movie__year { font-size: 12px; color: var(--faint); margin-top: 1px; }

.movie__add, .movie__remove { cursor: pointer; border: none; font-family: inherit; }
.movie__add {
  width: 100%; padding: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); background: var(--surface);
  border-radius: var(--r-pill);
  transition: background 0.2s;
}
.movie__add:hover { background: var(--surface-2); }
.movie__add.is-added, .movie__add.is-seen { background: rgba(48, 209, 88, 0.15); color: var(--green); }
.movie__add.is-rated { background: color-mix(in srgb, var(--tc) 18%, var(--surface)); color: var(--text); }
.movie__addform { margin: 0; }
.movie__remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
  color: var(--muted); font-size: 12px;
  transition: background 0.2s, color 0.2s;
}
.movie__remove:hover { color: #fff; background: var(--red); }

/* Lista fül: ✕ / Láttam gombpár */
.gridpick { display: flex; gap: 5px; }
.gridpick__no, .gridpick__yes {
  cursor: pointer; font-family: inherit; font-weight: 600; padding: 8px 0;
  border: none; border-radius: var(--r-pill);
  background: var(--surface); transition: background 0.2s, color 0.2s;
}
.gridpick__no { width: 36px; flex: none; font-size: 12px; color: var(--faint); }
.gridpick__no:hover { color: #fff; background: var(--red); }
.gridpick__yes { flex: 1; font-size: 12.5px; letter-spacing: -0.01em; color: var(--text); }
.gridpick__yes:hover { background: var(--blue); color: #fff; }

/* Értékelő gombsor */
.tierbtns { display: flex; gap: 4px; padding: 5px 0 0; }
.tierbtns[hidden] { display: none; }
.tierbtn {
  flex: 1; cursor: pointer; font-family: inherit; font-size: 15px; line-height: 1;
  padding: 8px 0; border-radius: 8px; opacity: 0.4;
  background: var(--surface); border: 1px solid transparent;
  transition: opacity 0.15s, transform 0.15s, border-color 0.15s;
}
.tierbtn:hover { opacity: 1; transform: scale(1.08); }
.tierbtn.is-on { opacity: 1; border-color: var(--tc); }

/* Szint-jelvények */
.tier-badge {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10.5px; font-weight: 600; color: #fff;
  padding: 3px 9px; border-radius: var(--r-pill);
  max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tier-inline {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: #fff;
  padding: 2px 9px; border-radius: var(--r-pill);
}
.tier-inline--sm { font-size: 10.5px; padding: 1px 8px; }

.tier-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tier-chip {
  font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: var(--r-pill);
  color: var(--muted); background: var(--surface-2); border: none !important;
}

/* =========================================================
   SWIPE — iOS kártya
   ========================================================= */
.swipe { max-width: 400px; margin: 0 auto; position: relative; }
.swipe__stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.swipe__empty { color: var(--faint); text-align: center; padding: 40px; font-size: 15px; }

.swipe__card {
  position: relative; width: 100%; user-select: none; touch-action: pan-y;
  border-radius: var(--r-card); overflow: hidden; cursor: grab;
  background: var(--surface);
  box-shadow: 0 24px 60px -16px var(--shadow);
  will-change: transform;
}
.swipe__card:active { cursor: grabbing; }
.swipe__poster { aspect-ratio: 2/3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.swipe__poster img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe__info { padding: 16px 18px 18px; }
.swipe__title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.swipe__meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.swipe__overview { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-height: 82px; overflow: hidden; }

.swipe__stamp {
  position: absolute; top: 18px; z-index: 3;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  padding: 6px 14px; border-radius: var(--r-pill); border: 2px solid;
  opacity: 0; transition: opacity 0.1s; pointer-events: none;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
}
.swipe__stamp--yes { right: 16px; color: var(--green); border-color: var(--green); transform: rotate(6deg); }
.swipe__stamp--no { left: 16px; color: var(--red); border-color: var(--red); transform: rotate(-6deg); }
.swipe__card.tilt-yes .swipe__stamp--yes { opacity: 1; }
.swipe__card.tilt-no .swipe__stamp--no { opacity: 1; }

.swipe__actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 26px; }
.swipe__btn {
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  font-size: 20px; font-family: inherit;
  border: none; background: var(--surface); color: var(--text);
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.swipe__btn:hover { transform: scale(1.08); }
.swipe__btn--no:hover { background: var(--red); color: #fff; }
.swipe__btn--yes:hover { background: var(--green); color: #fff; }
.swipe__btn--undo { width: 42px; height: 42px; font-size: 15px; color: var(--faint); }
.swipe__btn--undo[disabled] { opacity: 0.3; cursor: default; transform: none; }
.swipe__btn--undo:hover:not([disabled]) { background: var(--surface-2); color: var(--text); }

/* Értékelő sáv — iOS action sheet érzés */
.rate-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 58%, transparent);
  backdrop-filter: blur(2px);
}
.rate-sheet__q { margin: 0 0 12px; font-size: 15px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
.rate-sheet__choices { display: flex; gap: 6px; }
.rate-sheet .rate-choice {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 2px; border-radius: 12px; cursor: pointer; font-family: inherit;
  color: var(--text); background: rgba(44, 44, 46, 0.9);
  border: none;
  transition: background 0.15s, transform 0.15s var(--ease);
}
.rate-sheet .rate-choice:hover { background: var(--surface-3); transform: translateY(-3px); }
.rate-sheet .rate-choice__emoji { font-size: 19px; }
.rate-sheet .rate-choice__label { font-size: 9.5px; font-weight: 600; line-height: 1.1; text-align: center; color: var(--muted); }
.rate-sheet__cancel {
  display: block; margin: 12px auto 0; background: none; border: none;
  cursor: pointer; font-family: inherit; font-size: 13.5px;
}

/* =========================================================
   VERSENY (A vs B)
   ========================================================= */
.progress { margin: 0 0 36px; }
.progress__bar { height: 4px; border-radius: 99px; background: var(--surface); overflow: hidden; max-width: 420px; margin: 0 auto; }
.progress__bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.4s var(--ease); }
.progress__label { text-align: center; color: var(--faint); font-size: 13px; margin-top: 10px; }

.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 18px; }
.vs-card {
  position: relative; cursor: pointer; text-align: left;
  border-radius: var(--r-card); padding: 0 0 16px; overflow: hidden;
  background: var(--surface); border: none;
  color: var(--text); font-family: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.vs-card:hover {
  transform: scale(1.025) translateY(-3px);
  box-shadow: 0 24px 56px -16px var(--shadow), 0 0 0 3px var(--blue);
}
.vs-card:active { transform: scale(1.01); }
.vs-card__poster { aspect-ratio: 2/3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.vs-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.vs-card__title { padding: 14px 16px 2px; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.vs-card__meta { padding: 0 16px; color: var(--muted); font-size: 13px; }
.vs-card__key {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
  color: var(--muted); border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px;
}
.vs-mid { align-self: center; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--faint); }

/* =========================================================
   RANGSOR / EREDMÉNY
   ========================================================= */
.ranking {
  list-style: none; margin: 0; padding: 8px 0;
  background: var(--surface); border-radius: var(--r-card);
}
.rank-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
}
.rank-row + .rank-row { border-top: 1px solid var(--divider); }
.rank-row__pos { width: 36px; text-align: center; font-size: 15px; font-weight: 700; color: var(--faint); flex: none; }
.rank-row--top .rank-row__pos { font-size: 21px; }
.rank-row__poster {
  width: 44px; height: 66px; border-radius: 6px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center; flex: none;
}
.rank-row__poster img { width: 100%; height: 100%; object-fit: cover; }
.rank-row__title { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.rank-row__meta { color: var(--faint); font-size: 13px; margin-top: 2px; }
.rank-row__prov { margin-top: 6px; font-size: 12.5px; color: var(--green); }
.rank-row__meta .js-prov {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12.5px; padding: 0; color: var(--blue);
}
.rank-row__meta .js-prov:hover { text-decoration: underline; }

.result-actions { display: flex; justify-content: center; margin-top: 36px; }

.share-box { margin: 0 auto 32px; display: grid; gap: 10px; justify-items: center; }
.share-box__row { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.share-box__input { flex: 1; font-size: 13.5px; padding: 11px 14px; }
.share-box .link { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; }

/* =========================================================
   ÚJ RANGSOR (szint-választó)
   ========================================================= */
.tier-picks {
  display: grid; gap: 1px; margin-bottom: 12px;
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
}
.tier-pick {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  padding: 16px 20px;
  background: var(--surface);
  transition: background 0.15s;
}
.tier-pick:hover { background: var(--surface-2); }
.tier-pick + .tier-pick { border-top: 1px solid var(--divider); }
.tier-pick.is-empty { opacity: 0.35; cursor: default; }
.tier-pick input { width: 17px; height: 17px; accent-color: var(--blue); }
.tier-pick__dot {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--surface-2);
}
.tier-pick__label { flex: 1; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.tier-pick__count { color: var(--faint); font-size: 14px; }

.pick-footer {
  position: sticky; bottom: 18px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding: 14px 20px;
  border-radius: var(--r-card);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 40px var(--shadow);
}
.pick-footer__info { color: var(--muted); font-size: 14px; }
.pick-footer__info strong { color: var(--text); }
.pick-footer .btn { margin: 0; }

.pick-toolbar { display: flex; justify-content: flex-end; margin: 16px 0 4px; }
.pick-actions { display: flex; gap: 8px; }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__inner { position: relative; border-radius: 10px; overflow: hidden; opacity: 0.4; transition: opacity 0.2s; }
.pick.is-picked .pick__inner { opacity: 1; }
.pick__check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
}
.pick.is-picked .pick__check { background: var(--blue); }

/* =========================================================
   RESZPONZÍV
   ========================================================= */
@media (max-width: 700px) {
  .container { padding: 40px 18px 100px; }
  .steps { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vs-mid { display: none; }
  .create { flex-direction: column; }
  .create__btn { width: 100%; }
  .swipe__stage { min-height: 500px; }
  .phase-head { align-items: flex-start; flex-direction: column; }
  .counter { justify-items: start; }
  .tabs { width: 100%; overflow-x: auto; }
}

/* ===== Téma-kapcsoló ===== */
.theme-toggle {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; font-size: 14px; line-height: 1;
  font-family: inherit; color: var(--muted);
  background: var(--surface-2); border: none;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-3); }
.theme-toggle--floating { position: fixed; top: 16px; right: 16px; z-index: 50; width: 34px; height: 34px; }

/* ===== Ambient háttér (swipe) ===== */
.swipe-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease); }
.swipe-ambient.is-on { opacity: 1; }
.swipe-ambient span {
  position: absolute; inset: -12%;
  background-size: cover; background-position: center 20%;
  filter: blur(80px) saturate(150%);
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.1s var(--ease);
}
.swipe-ambient span.is-visible { opacity: 0.32; }
[data-theme="light"] .swipe-ambient span.is-visible { opacity: 0.18; }
.container { position: relative; z-index: 1; }

.swipe__details { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; padding: 0; margin-top: 10px; }

/* ===== Film-részletek modal ===== */
.movie-modal {
  border: none; padding: 0; margin: auto;
  width: min(560px, calc(100vw - 32px));
  background: var(--surface); color: var(--text);
  border-radius: var(--r-card);
  box-shadow: 0 30px 80px var(--shadow);
}
.movie-modal::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); }
.movie-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 12px;
  background: var(--surface-2); color: var(--muted);
}
.movie-modal__close:hover { background: var(--surface-3); color: var(--text); }
.movie-modal__body { padding: 26px; }
.movie-modal__loading { margin: 12px; text-align: center; color: var(--muted); }
.movie-modal__grid { display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.movie-modal__poster { border-radius: 10px; overflow: hidden; background: var(--surface-2); align-self: start; }
.movie-modal__poster img { width: 100%; display: block; }
.movie-modal__title { margin: 0 0 2px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.movie-modal__meta { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.movie-modal__genres { margin: 0 0 12px; color: var(--faint); font-size: 12.5px; }
.movie-modal__row { margin: 0 0 6px; font-size: 13.5px; }
.movie-modal__row span { display: inline-block; min-width: 76px; color: var(--faint); }
.movie-modal__overview { margin: 12px 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 480px) { .movie-modal__grid { grid-template-columns: 1fr; } .movie-modal__poster { max-width: 150px; } }

/* ===== Rank: részletek gombok a kártyák alatt ===== */
.vs-info { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; margin-top: 14px; align-items: start; }
.vs-info__mid { width: 26px; }
.vs-info .btn { justify-self: center; }
@media (max-width: 700px) { .vs-info { grid-template-columns: 1fr 1fr; gap: 12px; } .vs-info__mid { display: none; } }

/* ===== Result: kattintható cím ===== */
.rank-row__titlebtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: left;
  font-weight: 600; font-size: 15px; letter-spacing: -0.015em;
}
.rank-row__titlebtn:hover { color: var(--blue); }

/* ===== Topbar link ===== */
.topbar__link { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.topbar__link:hover { color: var(--text); }

/* ===== Wrapped statisztika ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat-tile {
  padding: 30px 26px; border-radius: var(--r-card);
  background: var(--surface);
}
.stat-tile--wide { grid-column: 1 / -1; text-align: center; padding: 44px 26px; }
.stat-tile--accent { background: var(--blue); }
.stat-tile--accent .stat-tile__num, .stat-tile--accent .stat-tile__label { color: #fff; }
.stat-tile__num {
  font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
}
.stat-tile--wide .stat-tile__num { font-size: clamp(56px, 9vw, 88px); }
.stat-tile__label { margin-top: 8px; color: var(--muted); font-size: 14px; }

.tier-bars { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-card); background: var(--surface); }
.tier-bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 14px; font-size: 13.5px; }
.tier-bar__label { color: var(--muted); }
.tier-bar__track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tier-bar__track span { display: block; height: 100%; border-radius: 99px; transition: width 0.6s var(--ease); }
.tier-bar__count { text-align: right; font-weight: 600; }
@media (max-width: 560px) { .tier-bar { grid-template-columns: 110px 1fr 34px; } }

/* ===== Szöveg-igazítási javítások (hosszú magyar feliratok) ===== */
/* Lebegő címke ne lógjon túl a mezőn */
.field__label {
  max-width: calc(100% - 56px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Statisztika-sáv címkék: ne csússzanak össze, igazodjanak */
.tier-bar__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Toplista sor: a szöveg blokkja rugalmasan törjön, ne tolja szét a sort */
.rank-row__body { flex: 1; min-width: 0; }
.rank-row__title, .rank-row__titlebtn { overflow-wrap: anywhere; }
/* Kártyacímek hosszú magyar szavakkal */
.movie__title, .vs-card__title, .swipe__title { overflow-wrap: anywhere; }
/* Topbar: kisebb kijelzőn ne torlódjon */
@media (max-width: 560px) {
  .topbar__user { display: none; }
  .topbar__link { display: none; }
}
/* Fejléc-sor: a számláló ne lógjon rá a címre */
.phase-head > div:first-child { min-width: 0; flex: 1; }
