/* ============================================================
   Synema — Main Stylesheet
   ============================================================ */

/* --- Fonts & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:   #F59E0B;
  --purple: #6C5CE7;
  --violet: #A855F7;
  --pink:   #EC4899;
  --green:  #22C55E;
  --dim:    #7A6A52;
  --text:   #E8E0D0;
  --bg:     #0A0A0A;
  --card-bg:#141414;
  --grad:   linear-gradient(135deg, #6C5CE7, #A855F7, #F59E0B);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, button { font-family: inherit; }
button { cursor: pointer; }

/* --- Grain overlay --- */
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(108,92,231,.5); border-radius: 2px; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes fadeUp    { from { opacity:0; transform: translateY(20px) } to { opacity:1; transform: translateY(0) } }
@keyframes slideDown { from { opacity:0; transform: translateY(-16px) } to { opacity:1; transform: translateY(0) } }
@keyframes popIn     { from { opacity:0; transform: scale(.84) } to { opacity:1; transform: scale(1) } }
@keyframes spin      { to { transform: rotate(360deg) } }
@keyframes floatUp   { 0% { transform: translateY(0) scale(1); opacity:1 } 100% { transform: translateY(-120px) scale(1.6); opacity:0 } }
@keyframes shimmer   { 0% { background-position: 200% center } 100% { background-position: -200% center } }
@keyframes pulse     { 0%,100% { opacity:1; transform: scale(1) } 50% { opacity:.6; transform: scale(.95) } }
@keyframes heroGlow  { 0%,100% { opacity:.6 } 50% { opacity:1 } }
@keyframes leavePulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(239,68,68,0) } 50%{ box-shadow:0 0 0 6px rgba(239,68,68,.3) } }
@keyframes msgSlide  { from { opacity:0; transform: translateY(8px) } to { opacity:1; transform: translateY(0) } }
@keyframes gridFadeIn{ from { opacity:0; transform: translateY(12px) } to { opacity:1; transform: translateY(0) } }
@keyframes ctrlFadeOut{ from{opacity:1} to{opacity:0;pointer-events:none} }

/* ============================================================
   Glassmorphism helpers
   ============================================================ */
.glass {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
.card {
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all .25s ease;
  box-shadow: 0 4px 20px rgba(108,92,231,.45), 0 1px 4px rgba(0,0,0,.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary:hover  { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(108,92,231,.55); }
.btn-primary:active { transform: scale(.96) !important; filter: brightness(.95); }
.btn-primary:disabled { opacity: .4; transform: none; cursor: not-allowed; box-shadow: none; }

.btn-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #080808;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  transition: all .25s ease;
}
.btn-gold:hover  { filter: brightness(1.12); transform: translateY(-1px); }
.btn-gold:active { transform: scale(.96) !important; }
.btn-gold:disabled { opacity: .4; cursor: not-allowed; }

.btn-ghost {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  border-radius: 24px;
  font-weight: 500;
  transition: all .2s ease;
}
.btn-ghost:hover  { border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.1); box-shadow: 0 0 0 3px rgba(168,85,247,.1); }
.btn-ghost:active { transform: scale(.96) !important; }

.btn-danger {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.3);
  color: #F87171;
  border-radius: 12px;
  transition: all .2s ease;
}
.btn-danger:hover  { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.5); }
.btn-danger:active { transform: scale(.96) !important; }

/* ============================================================
   Toast notifications
   ============================================================ */
#toast-container {
  position: fixed;
  top: 16px;
  left: 12px;
  right: 12px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(20,20,20,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown .4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: all;
  box-shadow: 0 8px 40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}
.toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(108,92,231,.25), rgba(168,85,247,.15));
  border: 1px solid rgba(168,85,247,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.toast-body { flex: 1; }
.toast-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.toast-msg { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; line-height: 1.4; }
.toast-close {
  background: rgba(255,255,255,.06);
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Spinner
   ============================================================ */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(8,8,8,.3);
  border-top-color: #080808;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--light {
  border-color: rgba(255,255,255,.2);
  border-top-color: #fff;
}

/* ============================================================
   Skeleton / loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
}

/* ============================================================
   Mobile navigation bar
   ============================================================ */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 -8px 32px rgba(0,0,0,.7);
  display: flex;
  padding: 6px 0 10px;
  z-index: 1000;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 4px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  color: inherit;
}
.nav-item .nav-icon-wrap {
  width: 40px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all .25s ease;
}
.nav-item.active .nav-icon-wrap {
  background: rgba(108,92,231,.15);
}
.nav-icon {
  font-size: 18px;
  transition: font-size .2s;
  line-height: 1;
}
.nav-item.active .nav-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(168,85,247,.7));
}
.nav-label {
  font-size: 9px;
  letter-spacing: .04em;
  font-weight: 400;
  color: rgba(255,255,255,.4);
  transition: all .2s;
}
.nav-item.active .nav-label {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.create-icon {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px !important;
}

/* ============================================================
   Page wrapper (for pages with bottom nav)
   ============================================================ */
.page-wrap {
  padding-bottom: 88px;
  min-height: 100vh;
  background: var(--bg);
  animation: fadeUp .6s ease;
}
.page-header {
  padding: 52px 22px 18px;
  background: linear-gradient(180deg, #111, #0A0A0A);
}
.page-title {
  font-size: 26px;
  font-weight: 900;
}
.page-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
}

/* ============================================================
   Back button
   ============================================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 20px;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  transition: all .2s ease;
  text-decoration: none;
}
.back-btn:hover { border-color: rgba(168,85,247,.5); }

/* ============================================================
   Movie card
   ============================================================ */
.mv-card {
  display: block;
  cursor: pointer;
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
  text-decoration: none;
  color: inherit;
}
.mv-card:hover { transform: translateY(-4px) scale(1.03); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(0,0,0,.7); }
.mv-card:active { transform: scale(.95) !important; }
.mv-card-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.mv-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.mv-poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.mv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.mv-hover-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.mv-card:hover .mv-hover-accent { opacity: 1; }
.mv-rating-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
}
.mv-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px 10px;
}
.mv-title {
  font-size: 12px;
  font-weight: 700;
  color: #F0E8D8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.mv-watch-btn {
  background: linear-gradient(135deg, #6C5CE7, #A855F7);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .03em;
  box-shadow: 0 2px 12px rgba(108,92,231,.5);
}
.mv-year {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  margin-top: 5px;
  text-align: center;
}

/* ============================================================
   Movie grid
   ============================================================ */
.movies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 18px;
}
.movies-grid .grid-item {
  animation: gridFadeIn .4s ease both;
}

/* ============================================================
   Category cards
   ============================================================ */
.cat-card {
  cursor: pointer;
  transition: all .25s ease;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  text-align: left;
  color: inherit;
  width: 100%;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(168,85,247,.25); }
.cat-card:active { transform: scale(.96); }
.cat-card.active {
  background: linear-gradient(135deg, var(--c1, #6C5CE7)33, var(--c2, #A855F7)22);
  border-color: var(--c1, #6C5CE7)66;
}
.cat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(255,255,255,.05);
  transition: all .25s;
}
.cat-card.active .cat-icon-wrap {
  background: linear-gradient(135deg, var(--c1, #6C5CE7), var(--c2, #A855F7));
  box-shadow: 0 4px 12px var(--c1, #6C5CE7)44;
}
.cat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: color .25s;
}
.cat-card.active .cat-label { font-weight: 700; color: #fff; }

/* ============================================================
   Glass input
   ============================================================ */
.glass-input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.4);
  transition: all .25s ease;
}
.glass-input:focus-within {
  border-color: rgba(168,85,247,.6) !important;
  box-shadow: 0 0 0 3px rgba(168,85,247,.1);
}
.glass-input input,
.glass-input textarea {
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  flex: 1;
  width: 100%;
  outline: none;
}
.glass-input input::placeholder,
.glass-input textarea::placeholder {
  color: rgba(255,255,255,.3);
}
.input-icon { font-size: 16px; flex-shrink: 0; opacity: .7; }

/* ============================================================
   Form field label
   ============================================================ */
.field-label {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.field-error {
  font-size: 11px;
  color: #EF4444;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
}

/* ============================================================
   Subscription cards
   ============================================================ */
.sub-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  transition: all .3s ease;
}
.sub-card--current {
  background: linear-gradient(135deg, var(--plan-color, #6C5CE7)14, rgba(255,255,255,.03));
  border: 1.5px solid var(--plan-color, #6C5CE7)88;
  box-shadow: 0 0 32px var(--plan-color, #6C5CE7)18;
}
.sub-card--popular {
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--plan-color, #EC4899)55;
  box-shadow: 0 0 24px var(--plan-color, #EC4899)12;
}
.sub-card-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--plan-color, #6C5CE7), transparent);
}
.sub-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--plan-color, #EC4899), var(--plan-color, #EC4899)88);
  box-shadow: 0 2px 8px var(--plan-color, #EC4899)44;
}
.sub-active-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  color: var(--plan-color, #6C5CE7);
  background: var(--plan-color, #6C5CE7)18;
  border: 1px solid var(--plan-color, #6C5CE7)44;
  padding: 3px 10px;
  border-radius: 20px;
}
.sub-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.sub-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--plan-color, #6C5CE7)44;
  border: 1px solid var(--plan-color, #6C5CE7)44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--plan-color, #6C5CE7)33;
}
.sub-title-wrap { flex: 1; }
.sub-plan-name  { font-size: 20px; font-weight: 900; color: #fff; }
.sub-tagline    { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; }
.sub-price-wrap { text-align: right; flex-shrink: 0; }
.sub-price      { font-size: 26px; font-weight: 900; }
.sub-price-suffix { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 2px; }
.sub-features   { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.sub-feature    { display: flex; align-items: center; gap: 9px; }
.sub-feat-dot   {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  border: 1px solid var(--plan-color, #6C5CE7)55;
  color: #fff;
}
.sub-feat-dot--no {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.3);
}
.sub-feature--ok span { font-size: 12px; color: rgba(255,255,255,.75); }
.sub-feature--no span { font-size: 12px; color: rgba(255,255,255,.2); }
.sub-cta { margin-top: 16px; }
.sub-btn { width: 100%; padding: 12px; font-size: 13px; font-weight: 700; border-radius: 24px; border: none; }
.sub-current-label {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  padding: 10px;
  border: 1px solid var(--plan-color, #6C5CE7)22;
  border-radius: 12px;
}

/* ============================================================
   Friends
   ============================================================ */
.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  animation: msgSlide .3s ease both;
}
.friend-card--online { border-color: rgba(34,197,94,.12); }
.friend-avatar-wrap  { position: relative; flex-shrink: 0; }
.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.friend-card--online .friend-avatar { border-color: #22C55E; box-shadow: 0 0 8px rgba(34,197,94,.3); }
.friend-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #181410;
}
.friend-status-dot.online  { background: #22C55E; box-shadow: 0 0 5px rgba(34,197,94,.6); }
.friend-status-dot.offline { background: #3a3a3a; }
.friend-info   { flex: 1; }
.friend-name   { font-size: 14px; font-weight: 700; }
.friend-status-text { font-size: 10px; color: var(--dim); margin-top: 1px; }
.friend-status-text.online { color: #22C55E; }
.friend-invite-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* ============================================================
   Watch room controls
   ============================================================ */
.room-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
  transition: opacity .4s ease;
}
.room-controls.hidden { opacity: 0; pointer-events: none; }
.room-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.room-time { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.7); flex-shrink: 0; width: 34px; }
.room-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}
.room-progress-buffer { position: absolute; inset: 0; width: 0; background: rgba(255,255,255,.15); border-radius: 4px; }
.room-progress-fill   { position: absolute; inset: "0 auto 0 0"; height: 100%; background: linear-gradient(to right, #6C5CE7, #F59E0B); border-radius: 4px; width: 0; }
.room-progress-thumb  {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(245,158,11,.8);
  left: 0;
  transition: transform .15s;
}
.room-progress-track:hover .room-progress-thumb { transform: translate(-50%,-50%) scale(1.4); }
.room-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.room-btns-left, .room-btns-right { display: flex; align-items: center; gap: 8px; }
.wr-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: transform .15s ease, filter .15s ease, background .2s ease;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.wr-ctrl-btn:active { transform: scale(.88) !important; }
.wr-ctrl-btn:hover  { filter: brightness(1.15); }

/* ============================================================
   Reaction bubble
   ============================================================ */
.reaction-bubble {
  position: absolute;
  font-size: 24px;
  animation: floatUp 2.2s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}
.reaction-picker {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(22,18,12,.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.8);
  animation: popIn .2s ease;
}
.reaction-picker button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  transition: transform .15s;
}
.reaction-picker button:hover { transform: scale(1.3); }
.reaction-wrap { position: relative; }

/* ============================================================
   Watcher strip
   ============================================================ */
.watcher-strip {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.watcher-avatars { display: flex; }
.watcher-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid;
  position: relative;
}
.watcher-avatar + .watcher-avatar { margin-left: -8px; }
.watcher-count { font-size: 11px; color: rgba(255,255,255,.4); }

/* ============================================================
   Sync pill
   ============================================================ */
.sync-pill {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 14px;
  padding: 3px 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all .3s;
}
.sync-pill.active { background: rgba(34,197,94,.2); border-color: #22C55E; }
.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 1.5s ease infinite;
}
.sync-label { font-size: 9px; font-weight: 700; color: #22C55E; letter-spacing: .05em; }

/* ============================================================
   Chat
   ============================================================ */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: msgSlide .28s ease both; }
.chat-msg.me { flex-direction: row-reverse; }
.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1.5px solid;
}
.chat-bubble-wrap { max-width: 74%; display: flex; flex-direction: column; }
.chat-msg.me .chat-bubble-wrap { align-items: flex-end; }
.chat-username { font-size: 10px; font-weight: 700; margin-bottom: 2px; }
.chat-bubble {
  padding: 9px 14px;
  line-height: 1.5;
  font-size: 14px;
  color: #F0EBE3;
}
.chat-msg.me .chat-bubble {
  background: linear-gradient(135deg, #7c3aed, #c2410c);
  border-radius: 18px 4px 18px 18px;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.chat-msg:not(.me) .chat-bubble {
  background: #1e1a28;
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.chat-time { font-size: 9px; color: rgba(255,255,255,.22); margin-top: 2px; }
.chat-msg.me .chat-time { text-align: right; }

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 22px;
  background: rgba(14,12,9,.98);
  border-top: 1px solid rgba(255,255,255,.04);
}
.chat-input-wrap {
  flex: 1;
  background: #1a1620;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 28px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}
.chat-input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  flex: 1;
  width: 100%;
  outline: none;
}
.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,.25);
  transition: all .15s ease;
}
.chat-send-btn.active {
  background: linear-gradient(135deg, #7c3aed, #c2410c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
}

/* ============================================================
   Tab bar (in room)
   ============================================================ */
.tab-bar {
  display: flex;
  background: rgba(10,10,10,.95);
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.tab-btn {
  flex: 1;
  padding: 11px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  transition: all .2s ease;
}
.tab-btn.active {
  color: #fff;
  border-bottom-color: rgba(108,92,231,.8);
  font-weight: 700;
}
.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239,68,68,.5);
}

/* ============================================================
   Control bar (voice/cam/leave)
   ============================================================ */
.ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: rgba(14,12,9,.95);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 0 8px;
  height: 60px;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
}
.ctrl-bar-divider { width: 1px; height: 28px; background: rgba(255,255,255,.08); flex-shrink: 0; }

/* ============================================================
   Hero section (home & live)
   ============================================================ */
.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
.hero-grad-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.2) 0%, rgba(10,10,10,.7) 50%, rgba(10,10,10,.95) 100%);
}
.hero-grad-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,.2), transparent 55%);
}
.hero-orb-1 {
  position: absolute;
  top: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.3), transparent 70%);
  animation: heroGlow 5s ease-in-out infinite;
}
.hero-orb-2 {
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.2), transparent 70%);
  animation: heroGlow 4s ease-in-out infinite 1s;
}
.hero-topbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content {
  position: absolute;
  bottom: 28px;
  left: 20px;
  right: 20px;
}
.hero-eyebrow {
  font-size: 11px;
  color: rgba(168,85,247,.8);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 4px;
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.hero-sub { font-size: 12px; color: rgba(255,255,255,.45); }

/* ============================================================
   Join / room code card
   ============================================================ */
.room-code-card {
  background: rgba(108,92,231,.06);
  border: 1px solid rgba(108,92,231,.2);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.room-code-top {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.room-code-label {
  font-size: 10px;
  color: rgba(168,85,247,.7);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.room-code-value {
  font-size: 22px;
  letter-spacing: .12em;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 2px;
}
.room-join-section { padding: 13px 16px; }
.join-row { display: flex; gap: 8px; align-items: center; }
.join-input-wrap {
  flex: 1;
  background: #131109;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.join-input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  flex: 1;
  width: 100%;
  outline: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.join-input::placeholder { text-transform: none; letter-spacing: normal; color: rgba(255,255,255,.3); }
.join-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
}
.join-hint { font-size: 11px; color: #4a4030; margin-top: 7px; }

/* ============================================================
   Quick action cards (home)
   ============================================================ */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-card {
  padding: 16px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: all .25s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(168,85,247,.25); }
.quick-card:active { transform: scale(.96); }
.quick-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}
.quick-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.quick-sub   { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }

/* ============================================================
   Continue watching card
   ============================================================ */
.continue-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  transition: all .25s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.continue-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.continue-thumb {
  position: relative;
  height: 108px;
}
.continue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-thumb-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 30%, rgba(0,0,0,.9));
}
.continue-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}
.continue-poster { width: 48px; height: 65px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.continue-title  { font-size: 17px; font-weight: 700; }
.continue-meta   { font-size: 11px; color: var(--dim); margin-top: 2px; }
.continue-watchers { display: flex; gap: 5px; align-items: center; margin-top: 6px; }
.continue-progress-bar { height: 2px; background: rgba(255,255,255,.06); }
.continue-progress-fill { height: 100%; background: linear-gradient(to right, var(--purple), var(--gold)); }

/* ============================================================
   Onboarding watcher avatars
   ============================================================ */
.online-avatars {
  display: flex;
  gap: 6px;
  align-items: center;
}
.online-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  box-shadow: 0 0 10px;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #22C55E;
  border: 1.5px solid #0A0A0A;
  border-radius: 50%;
}

/* ============================================================
   Error / empty states
   ============================================================ */
.empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  animation: popIn .4s ease;
}
.empty-icon, .error-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.error-icon { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); box-shadow: 0 0 32px rgba(239,68,68,.15); }
.empty-icon { background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.15); box-shadow: 0 0 24px rgba(168,85,247,.1); }
.empty-title, .error-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.empty-body,  .error-body  { font-size: 13px; color: var(--dim); line-height: 1.65; max-width: 260px; }

/* ============================================================
   Password strength bar
   ============================================================ */
.pw-strength { display: flex; gap: 6px; margin-top: 6px; }
.pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.07);
  transition: background .3s;
}
.pw-bar.ok { background: var(--green); }

/* ============================================================
   Plan pill (profile)
   ============================================================ */
.plan-pill {
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Stats row (profile)
   ============================================================ */
.stats-row {
  display: flex;
  gap: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(245,158,11,.1);
}
.stat-item { flex: 1; text-align: center; }
.stat-value { font-size: 20px; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 9px; color: var(--dim); margin-top: 1px; letter-spacing: .07em; text-transform: uppercase; }

/* ============================================================
   History card
   ============================================================ */
.history-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}
.history-poster-wrap { position: relative; flex-shrink: 0; }
.history-poster { width: 54px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); }
.history-poster-placeholder { width: 54px; height: 74px; background: #201a0e; border: 1px solid rgba(245,158,11,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.history-done-badge { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; }
.history-info { flex: 1; min-width: 0; }
.history-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-date { font-size: 11px; color: var(--dim); margin-top: 2px; }
.history-progress-bar { margin-top: 7px; }
.history-progress-labels { display: flex; justify-content: space-between; margin-bottom: 3px; }
.history-progress-track { height: 2px; background: rgba(255,255,255,.07); border-radius: 2px; }
.history-progress-fill  { height: 100%; border-radius: 2px; background: linear-gradient(to right, var(--purple), var(--gold)); }
.history-resume-btn { margin-top: 8px; }

/* ============================================================
   Vote cards
   ============================================================ */
.vote-card {
  position: relative;
  padding: 12px 14px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  transition: border-color .2s;
  overflow: hidden;
}
.vote-card.voted { border-color: rgba(245,158,11,.4); }
.vote-bar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245,158,11,.04);
  pointer-events: none;
}
.vote-card-inner { position: relative; display: flex; align-items: center; gap: 11px; }
.vote-poster { width: 46px; height: 63px; object-fit: cover; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.vote-info { flex: 1; }
.vote-title { font-size: 16px; font-weight: 700; }
.vote-meta  { font-size: 11px; color: var(--dim); margin-top: 2px; }
.vote-result { margin-top: 7px; }
.vote-result-labels { display: flex; justify-content: space-between; margin-bottom: 3px; }
.vote-result-track { height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; }
.vote-result-fill  { height: 100%; border-radius: 2px; background: linear-gradient(to right, var(--purple), var(--gold)); transition: width .5s ease; }
.vote-btn { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.vote-my-label { font-size: 11px; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   Step indicator (create room)
   ============================================================ */
.steps { display: flex; gap: 6px; margin-top: 16px; align-items: center; }
.step { display: flex; align-items: center; gap: 6px; }
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #201a0e;
  border: 1px solid rgba(245,158,11,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  transition: all .3s;
}
.step-dot.done, .step-dot.active {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none;
  color: #080808;
}
.step-line { width: 22px; height: 1px; background: rgba(245,158,11,.15); }
.step-line.done { background: var(--gold); }
.step-label { font-size: 11px; color: var(--dim); margin-left: 8px; }

/* ============================================================
   Parental controls
   ============================================================ */
.toggle-btn {
  width: 52px;
  height: 30px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  background: #201a0e;
  transition: background .3s, box-shadow .3s;
  flex-shrink: 0;
}
.toggle-btn.on { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 0 12px rgba(245,158,11,.4); }
.toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E8E0D0;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: left .3s;
}
.toggle-btn.on .toggle-thumb { left: 26px; }

/* ============================================================
   Search bar
   ============================================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: all .25s;
}
.search-bar:focus-within { border-color: rgba(168,85,247,.45); }
.search-bar input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  flex: 1;
  outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,.3); }
.search-icon { color: rgba(255,255,255,.35); font-size: 16px; flex-shrink: 0; }

/* ============================================================
   Billing toggle
   ============================================================ */
.billing-toggle {
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
}
.billing-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.billing-btn.active { background: linear-gradient(135deg, #6C5CE7, #A855F7); color: #fff; font-weight: 700; }
.billing-save-tag { font-size: 9px; color: rgba(34,197,94,.8); }
.billing-btn.active .billing-save-tag { color: rgba(255,255,255,.8); }

/* ============================================================
   Region toggle
   ============================================================ */
.region-toggle {
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
}
.region-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.region-btn.active { background: linear-gradient(135deg, #A855F7, #F59E0B); color: #fff; font-weight: 700; }

/* ============================================================
   Utility classes
   ============================================================ */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8       { gap: 8px; }
.gap-10      { gap: 10px; }
.gap-12      { gap: 12px; }
.gap-14      { gap: 14px; }
.w-full      { width: 100%; }
.text-center { text-align: center; }
.text-dim    { color: var(--dim); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.uppercase   { text-transform: uppercase; letter-spacing: .12em; }
.mt-4        { margin-top: 4px; }
.mt-8        { margin-top: 8px; }
.mt-12       { margin-top: 12px; }
.mt-16       { margin-top: 16px; }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.p-14-18     { padding: 14px 18px; }
.hidden      { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   Current plan indicator strip (subscribe page)
   ============================================================ */
.current-plan-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
}
.current-plan-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.current-plan-name { font-size: 14px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ============================================================
   Savings callout
   ============================================================ */
.savings-callout {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
}
.savings-title  { font-size: 13px; font-weight: 700; color: #22C55E; }
.savings-detail { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 1px; }

/* ============================================================
   Trust badges
   ============================================================ */
.trust-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 16px;
}
.trust-badge {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  padding: 5px 10px;
  border-radius: 20px;
}

/* ============================================================
   Avatar grid (profile)
   ============================================================ */
.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.avatar-option {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #201a0e;
  border: 1.5px solid rgba(245,158,11,.15);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.avatar-option.selected { background: rgba(245,158,11,.2); border-color: var(--gold); }

/* ============================================================
   Nav rows (profile settings)
   ============================================================ */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
.nav-row:hover { border-color: rgba(168,85,247,.3); }
.nav-row-left  { display: flex; align-items: center; gap: 12px; }
.nav-row-icon  { font-size: 18px; opacity: .7; }
.nav-row-label { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .1em; text-transform: uppercase; }
.nav-row-value { font-size: 14px; margin-top: 2px; color: rgba(255,255,255,.75); }
.nav-row-arrow { color: rgba(255,255,255,.25); font-size: 18px; }

/* ============================================================
   Rating selector (parental)
   ============================================================ */
.rating-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-btn {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: transparent;
  border: 1px solid rgba(245,158,11,.25);
  color: var(--dim);
  cursor: pointer;
  transition: all .2s;
}
.rating-btn.selected { border-color: var(--gold); background: rgba(245,158,11,.2); color: var(--text); }

/* ============================================================
   Search results list
   ============================================================ */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  width: 100%;
  text-align: left;
}
.search-result-item:hover { border-color: rgba(168,85,247,.3); }
.search-thumb { width: 46px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.search-thumb-placeholder { width: 46px; height: 64px; border-radius: 10px; background: #1a1a1a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.search-info { flex: 1; min-width: 0; }
.search-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-year  { font-size: 11px; color: var(--dim); margin-top: 3px; }
.search-rating { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.search-overview { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-arrow { color: rgba(168,85,247,.8); font-size: 18px; flex-shrink: 0; }

/* ============================================================
   Winner banner (vote)
   ============================================================ */
.winner-banner {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.04));
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 16px;
}
.winner-eyebrow { font-size: 10px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.winner-title   { font-size: 20px; font-weight: 900; margin-top: 4px; }
.winner-votes   { font-size: 11px; color: var(--dim); margin-top: 2px; }

/* ============================================================
   Detail overlay
   ============================================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: #0e0c09;
  z-index: 200;
  overflow-y: auto;
  animation: fadeIn .2s ease;
}
.detail-backdrop {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.detail-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.detail-backdrop-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.3) 0%, rgba(10,10,10,.85) 100%); }
.detail-back-btn { position: absolute; top: 14px; left: 14px; }
.detail-stream-tabs { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 6px; }
.detail-stream-tab {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  color: var(--text);
  transition: all .2s;
}
.detail-stream-tab.active { border-color: var(--gold); color: var(--gold); }
.detail-content { padding: 16px 18px 100px; display: flex; flex-direction: column; gap: 16px; }
.detail-title    { font-size: 24px; font-weight: 900; line-height: 1.2; }
.detail-meta     { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.detail-tagline  { font-size: 13px; font-style: italic; color: var(--dim); margin-top: 4px; }
.detail-video-embed { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.detail-video-embed > div { position: relative; padding-top: 56.25%; }
.detail-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.detail-cast { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.cast-item    { flex-shrink: 0; width: 70px; text-align: center; }
.cast-photo   { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.1); }
.cast-placeholder { width: 60px; height: 60px; border-radius: 50%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cast-name    { font-size: 9px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: var(--text); }
.cast-char    { font-size: 9px; color: var(--dim); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-cta   { display: flex; gap: 10px; }

/* ============================================================
   Checkout / payment
   ============================================================ */
.payment-card { padding: 18px; }
.payment-field { margin-bottom: 12px; }
.payment-row   { display: flex; gap: 10px; }
.payment-row .payment-field { flex: 1; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 12px; }

/* ============================================================
   Success screen
   ============================================================ */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 0 28px;
  text-align: center;
  animation: popIn .5s ease;
}
.success-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.success-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.success-title   { font-size: 30px; font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.success-subtitle{ font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 32px; line-height: 1.6; }
.success-features{ padding: 14px 18px; margin-bottom: 28px; width: 100%; }
.success-feat    { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.success-feat:last-child { margin-bottom: 0; }

/* ============================================================
   Nominate search results
   ============================================================ */
.nom-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  cursor: pointer;
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  width: 100%;
  text-align: left;
  color: inherit;
  transition: border-color .2s;
}
.nom-result:hover { border-color: rgba(245,158,11,.3); }
.nom-poster { width: 34px; height: 47px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.nom-info   { flex: 1; text-align: left; }
.nom-title  { font-size: 14px; font-weight: 700; }
.nom-meta   { font-size: 10px; color: var(--dim); }
.nom-add    { margin-left: auto; color: var(--gold); font-size: 11px; font-weight: 700; }

/* ============================================================
   Fullscreen room overlay
   ============================================================ */
.room-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s ease;
}
.room-fs-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.room-fs-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 50%); }
.room-fs-reactions { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* ============================================================
   Watch room normal layout
   ============================================================ */
.room-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0a0908;
}
.room-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
  flex-shrink: 0;
  min-height: 52px;
}
.room-movie-title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.room-video-wrap {
  position: relative;
  background: #000;
  flex-shrink: 0;
  cursor: pointer;
}
.room-video-inner { position: relative; padding-top: 56.25%; }
.room-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}
.room-video-poster.playing { opacity: .92; }
.room-video-poster:not(.playing) { opacity: .3; }
.room-video-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 45%, transparent 100%); pointer-events: none; }
.room-tab-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; background: #0a0908; }

/* Tap-to-play center btn */
.tap-play-btn {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #080808;
  box-shadow: 0 0 0 8px rgba(245,158,11,.2), 0 8px 32px rgba(245,158,11,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/* ============================================================
   Invite modal
   ============================================================ */
.invite-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.invite-modal {
  background: #131109;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.8);
  animation: slideUp .35s ease;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}
@keyframes slideUp { from{opacity:0;transform:translateY(100%)} to{opacity:1;transform:translateY(0)} }
.invite-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.invite-modal-title { font-size: 16px; font-weight: 900; }
.invite-modal-sub   { font-size: 11px; color: var(--dim); margin-top: 2px; }
.invite-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.invite-modal-list { overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   Onboarding logo
   ============================================================ */
.onboarding-logo {
  filter: drop-shadow(0 0 32px rgba(140,80,255,.5)) drop-shadow(0 0 60px rgba(245,158,11,.2));
  animation: popIn .6s ease;
}

/* ============================================================
   Gradient text helper
   ============================================================ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Page section spacing
   ============================================================ */
.page-section { padding: 0 18px; display: flex; flex-direction: column; gap: 13px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 11px; }

/* ============================================================
   Top navigation bar (nav.php)
   ============================================================ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  display: none; /* hidden on mobile — bottom nav used instead */
}
@media (min-width: 640px) {
  .top-nav { display: block; }
  .mobile-nav { display: none; }
}
.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.top-nav-logo-icon { font-size: 22px; }
.top-nav-logo-text {
  font-size: 18px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.top-nav-link {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.top-nav-link:hover  { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.top-nav-link.active { color: #fff; background: rgba(108,92,231,0.18); font-weight: 700; }
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-nav-plan-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  color: #A855F7;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.top-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108,92,231,0.2);
  border: 2px solid rgba(168,85,247,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: border-color .2s;
}
.top-nav-avatar:hover { border-color: #A855F7; }
.top-nav-logout {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,113,113,0.7);
  text-decoration: none;
  transition: all .2s;
}
.top-nav-logout:hover { background: rgba(239,68,68,0.15); color: #F87171; border-color: rgba(239,68,68,0.4); }

/* room page — no top nav, no bottom nav */
body.room-page .top-nav    { display: none; }
body.room-page .mobile-nav { display: none; }
