/* PARALLAX member UI — profile picker + Account Center (loaded only on /browse). */

.ac-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #252832, #11131a);
  border: 1px solid var(--parallax-border-strong, rgba(255, 255, 255, .14));
  color: var(--parallax-silver, #c9ccd4);
  flex: none;
}
.ac-avatar svg { width: 100%; height: 100%; display: block; }
.ac-avatar--guest svg { width: 58%; height: 58%; opacity: .9; }
.ac-avatar--lg { width: 56px; height: 56px; }

/* ---------- profile popover ---------- */

.ac-popover-anchor { position: fixed; z-index: 90; width: 260px; }
.ac-popover {
  background: #14161d;
  border: 1px solid var(--parallax-border-strong, rgba(255, 255, 255, .14));
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  padding: 6px;
}
.ac-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #14161d;
  border-left: 1px solid var(--parallax-border-strong, rgba(255, 255, 255, .14));
  border-top: 1px solid var(--parallax-border-strong, rgba(255, 255, 255, .14));
  transform: rotate(45deg);
}
.ac-popover__title {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sv-text-3, #8b8f98);
  padding: 10px 12px 6px;
}
.ac-popover__head { padding: 10px 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.ac-popover__greeting { display: block; font-weight: 700; font-size: 14px; }
.ac-popover__plan { display: block; font-size: 12px; color: var(--sv-accent-2, #7fb4ff); margin-top: 2px; }
.ac-popover button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--sv-text, #eef0f5);
  font-size: 13px;
  text-align: left;
  border-radius: 9px;
  cursor: pointer;
}
.ac-popover button:hover { background: rgba(255, 255, 255, .06); }

.ac-profiles { max-height: 232px; overflow-y: auto; }
.ac-profile { position: relative; }
.ac-profile.is-active { background: rgba(255, 49, 95, .10); color: #fff; }
.ac-profile__avatar { width: 34px; height: 34px; flex: none; }
.ac-profile__avatar .ac-avatar { width: 100%; height: 100%; }
.ac-profile__name { flex: 1; }
.ac-profile__tick { color: #ff315f; }
.ac-profile__tick svg { width: 16px; height: 16px; }

/* ---------- account center ---------- */

.ac-page { max-width: 880px; margin: 0 auto; padding: 96px 20px 80px; }
.ac-page__head { margin-bottom: 26px; }
.ac-page__head h1 { font-size: clamp(26px, 4vw, 36px); margin: 6px 0 0; letter-spacing: -.02em; }
.ac-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sv-accent, #ff315f);
  font-weight: 700;
}
.ac-back {
  display: inline-block;
  margin-bottom: 14px;
  border: 0;
  background: none;
  color: var(--sv-text-2, #b6bac2);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.ac-back:hover { color: #fff; }

.ac-card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.ac-card h2 { font-size: 17px; margin: 0 0 14px; }
.ac-card__row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ac-card__row h2 { margin: 0; }
.ac-card__row p { margin: 2px 0; color: var(--sv-text-2, #b6bac2); font-size: 14px; }
.ac-muted { color: var(--sv-text-3, #8b8f98); font-size: 13px; margin: 6px 0; }
.ac-danger { border-color: rgba(255, 49, 95, .35); }

.ac-plan { display: flex; align-items: center; gap: 10px; }
.ac-plan__name { font-size: 18px; font-weight: 800; }
.ac-plan__badge {
  background: rgba(63, 230, 168, .15);
  color: #3fe6a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.ac-plan__badge--free { background: rgba(255, 255, 255, .10); color: var(--sv-text-2, #b6bac2); }

.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ac-tile {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  color: var(--sv-text, #eef0f5);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.ac-tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .22); }
.ac-tile b { display: block; font-size: 15px; }
.ac-tile span { display: block; color: var(--sv-text-3, #8b8f98); font-size: 12px; margin-top: 4px; }

.ac-list { display: flex; flex-direction: column; gap: 0; }
.ac-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 14px;
}
.ac-list__row b { flex: 1; }
.ac-list__row .ac-muted { margin: 0; }
.ac-x {
  border: 0;
  background: none;
  color: var(--sv-text-3, #8b8f98);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.ac-x:hover { color: #ff315f; }

.ac-page__body { margin-top: 4px; }

/* ---------- watch history hero ---------- */
.ac-history-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background:
    radial-gradient(100% 160% at 12% -20%, rgba(255, 49, 95, .22), transparent 55%),
    radial-gradient(90% 140% at 110% 120%, rgba(111, 66, 193, .18), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  padding: 26px 26px 22px;
  margin-bottom: 26px;
}
.ac-history-hero::after {
  content: "HISTORY";
  position: absolute;
  right: -12px;
  top: -26px;
  font-size: 96px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
  user-select: none;
}
.ac-history-hero__kicker { display: flex; align-items: center; gap: 10px; }
.ac-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sv-accent, #ff315f); display: inline-block; }
.ac-history-hero h1 { margin: 8px 0 6px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }
.ac-history-hero__sub { margin: 0; color: var(--sv-text-2, #b6bac2); font-size: 14px; }
.ac-history-hero__profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  font-weight: 600;
}
.ac-history-hero__profile:empty { display: none; }
.ac-avatar--sm { width: 26px; height: 26px; font-size: 12px; border-radius: 50%; }
.ac-avatar--sm svg { width: 14px; height: 14px; }
.ac-history-hero__who { color: var(--sv-text, #eef0f5); }

.ac-history-sub { margin: 0 0 16px; font-size: 12.5px; }
.ac-history-sub b { color: var(--sv-text, #eef0f5); }

.ac-hgroup + .ac-hgroup { margin-top: 26px; }
.ac-hgroup__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ac-hgroup__title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sv-text-3, #8b8f98);
}
.ac-hgroup__count {
  font-size: 11px;
  color: var(--sv-text-3, #8b8f98);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 2px 9px;
}

.ac-history-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 14px;
  flex-wrap: wrap;
}
.ac-history-row:last-child { border-bottom: 0; }
.ac-history-row:hover { background: rgba(255, 255, 255, .02); }
.ac-history-row:hover .ac-thumb { box-shadow: 0 12px 30px rgba(0, 0, 0, .38); }

.ac-thumb {
  position: relative;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  padding: 0;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  background-size: cover;
  background-position: center;
}
.ac-thumb--landscape {
  width: 168px;
  height: 94px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  cursor: pointer;
}
.ac-thumb.has-art { background-size: cover; }
.ac-thumb--poster {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 49, 95, .16), transparent 60%), linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  background-size: cover;
  background-position: center;
}
.ac-thumb--poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.4);
  transform: scale(1.25);
}
.ac-thumb__poster {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}
.ac-thumb__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--sv-text-2, #b6bac2);
  z-index: 2;
}
.ac-thumb.is-branded .ac-thumb__fallback { color: var(--sv-accent, #ff315f); }
.ac-thumb.is-branded::after {
  content: "PARALLAX";
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .5);
  z-index: 2;
}
.ac-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, .28);
  transition: opacity .16s ease;
  z-index: 3;
}
.ac-thumb__play svg { width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.ac-thumb:hover .ac-thumb__play { opacity: 1; }
.ac-history-row:hover .ac-thumb__play { opacity: 1; }

.ac-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, .20);
  z-index: 4;
}
.ac-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sv-accent, #ff315f), #ff7a9d);
  transition: width .4s ease;
}
.ac-progress--done .ac-progress__fill { background: #2fd08f; }

.ac-history-row__info { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 5px; }
.ac-history-row__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ac-history-row__title { font-size: 15px; letter-spacing: -.01em; }
.ac-year { font-size: 12px; color: var(--sv-text-3, #8b8f98); font-weight: 500; }
.ac-year:empty { display: none; }
.ac-history-row__meta { font-size: 12px; color: var(--sv-text-2, #b6bac2); }
.ac-history-row__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ac-history-row__actions .sv-btn svg { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 6px; }

.ac-ep {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sv-accent, #ff315f);
  background: rgba(255, 49, 95, .12);
  border-radius: 6px;
  padding: 1px 7px;
  width: fit-content;
}
.ac-ep-title { display: block; font-size: 12.5px; color: var(--sv-text-2, #b6bac2); }

.ac-history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ac-history-stats span {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--sv-text-2, #b6bac2);
}
.ac-history-stats b { display: block; font-size: 18px; color: var(--sv-text, #eef0f5); }
.ac-history-actions { margin-top: 18px; }

.ac-empty--history h3 { margin: 0 0 6px; font-size: 17px; color: var(--sv-text, #eef0f5); }
.ac-empty--history p { margin: 0 auto 18px; max-width: 420px; line-height: 1.5; }
.ac-empty__motif {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sv-accent, #ff315f), #6f42c1);
  box-shadow: 0 10px 24px rgba(255, 49, 95, .28);
}
.ac-empty__motif span { color: #fff; font-weight: 800; font-size: 24px; letter-spacing: .02em; }

.ac-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ac-field span { font-size: 13px; color: var(--sv-text-2, #b6bac2); }
.ac-field input,
.ac-field select {
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--sv-text, #eef0f5);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}
.ac-field input:focus, .ac-field select:focus { border-color: var(--sv-accent, #ff315f); }
.ac-check { display: flex; align-items: center; gap: 9px; margin: 10px 0; font-size: 14px; cursor: pointer; }
.ac-check input { accent-color: var(--sv-accent, #ff315f); width: 16px; height: 16px; }

.ac-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ac-plan-card {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, .025);
  display: flex;
  flex-direction: column;
}
.ac-plan-card.is-featured { border-color: rgba(255, 49, 95, .55); }
.ac-plan-card h3 { margin: 0 0 6px; font-size: 17px; }
.ac-plan-card__price { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.ac-plan-card__price span { font-size: 13px; font-weight: 500; color: var(--sv-text-3, #8b8f98); }
.ac-plan-card .sv-btn { margin-top: auto; }
.ac-plan-card .sv-btn[disabled] { opacity: .55; cursor: default; }
.ac-bill-actions { margin-top: 12px; }

.ac-avatar-picker label { display: block; font-size: 13px; color: var(--sv-text-2, #b6bac2); margin-bottom: 8px; }
.ac-avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.ac-avatar-opt {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  padding: 8px 6px;
  color: var(--sv-text-2, #b6bac2);
  cursor: pointer;
  font-size: 11px;
  text-align: center;
}
.ac-avatar-opt svg { width: 44px; height: 44px; margin: 0 auto 4px; display: block; }
.ac-avatar-opt.is-active { border-color: var(--sv-accent, #ff315f); background: rgba(255, 49, 95, .12); color: #fff; }
.ac-profile-row__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ac-form-actions { display: flex; gap: 10px; margin-top: 16px; }
.ac-empty { text-align: center; padding: 60px 20px; color: var(--sv-text-2, #b6bac2); }

@media (max-width: 560px) {
  .ac-page { padding-top: 84px; }
  .ac-avatar--lg { width: 48px; height: 48px; }
  .ac-thumb--landscape { width: 136px; height: 76px; }
  .ac-history-row { gap: 12px; }
  .ac-history-row__info { min-width: 0; flex-basis: calc(100% - 152px); }
  .ac-history-row__actions { width: 100%; margin-left: 0; justify-content: flex-end; }
  .ac-history-row__actions .ac-x { margin-left: auto; }
}
@media (max-width: 380px) {
  .ac-thumb--landscape { width: 112px; height: 63px; }
  .ac-history-row__info { flex-basis: calc(100% - 128px); }
}
