/* ═══════════════════════════════════════════════════════════════
   NAIJAPREY O2MOVIE — Community & Discussion CSS
   Movie Discussion · Community Page · CTA · Upcoming Movies
   ═══════════════════════════════════════════════════════════════ */

:root {
  --comm-green:   #1db954;
  --comm-green2:  #16a34a;
  --comm-dark:    #0f1923;
  --comm-dark2:   #1a2332;
  --comm-dark3:   #243044;
  --comm-border:  rgba(255,255,255,.08);
  --comm-text:    #e2e8f0;
  --comm-muted:   #8fa3b1;
  --comm-radius:  12px;
  --comm-shadow:  0 4px 24px rgba(0,0,0,.4);
  --msg-own-bg:   linear-gradient(135deg, #1db954, #16a34a);
  --msg-other-bg: #1a2332;
}

/* ─────────────────────────────────────────────────────
   MOVIE DISCUSSION SECTION
   ───────────────────────────────────────────────────── */
.np-mdisc-section {
  margin: 40px 0;
  background: var(--comm-dark);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--comm-border);
  box-shadow: var(--comm-shadow);
}

.np-mdisc-header {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, var(--comm-dark2), var(--comm-dark3));
  border-bottom: 1px solid var(--comm-border);
}

.np-mdisc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.np-mdisc-icon { font-size: 22px; }

.np-mdisc-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
}

.np-mdisc-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--comm-muted);
  background: rgba(29,185,84,.1);
  border: 1px solid rgba(29,185,84,.25);
  padding: 4px 10px;
  border-radius: 20px;
}

.np-mdisc-dot {
  width: 7px;
  height: 7px;
  background: var(--comm-green);
  border-radius: 50%;
  display: inline-block;
  animation: np-pulse 2s ease infinite;
}

@keyframes np-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(1.3); }
}

.np-mdisc-subtitle {
  color: var(--comm-muted);
  font-size: 13px;
  margin: 0;
}

/* Gate */
.np-mdisc-gate {
  padding: 32px 24px;
  display: flex;
  justify-content: center;
}

.np-mdisc-gate-inner {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.np-mdisc-gate-icon { font-size: 40px; margin-bottom: 12px; }

.np-mdisc-gate-inner h4 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px;
  font-family: 'Oswald', sans-serif;
}

.np-mdisc-gate-inner p {
  color: var(--comm-muted);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.np-mdisc-gate-form { display: flex; flex-direction: column; gap: 12px; }

.np-mdisc-input {
  background: var(--comm-dark2);
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--comm-text);
  font-size: 14px;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.np-mdisc-input:focus { outline: none; border-color: var(--comm-green); }
.np-mdisc-input::placeholder { color: var(--comm-muted); }

.np-mdisc-join-btn {
  background: linear-gradient(135deg, var(--comm-green), var(--comm-green2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
}
.np-mdisc-join-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,185,84,.4); }
.np-mdisc-join-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.np-mdisc-gate-msg { font-size: 13px; text-align: center; min-height: 18px; }

/* Chat area */
.np-mdisc-chat { display: flex; flex-direction: column; }

.np-mdisc-messages {
  height: 380px;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.np-mdisc-messages::-webkit-scrollbar { width: 4px; }
.np-mdisc-messages::-webkit-scrollbar-track { background: transparent; }
.np-mdisc-messages::-webkit-scrollbar-thumb { background: var(--comm-dark3); border-radius: 4px; }

.np-mdisc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--comm-muted);
  font-size: 13px;
  padding: 20px;
}

.np-mdisc-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--comm-dark3);
  border-top-color: var(--comm-green);
  border-radius: 50%;
  display: inline-block;
  animation: np-spin .8s linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* Messages */
.np-mdisc-msg {
  display: flex;
  gap: 10px;
  animation: np-msg-in .25s ease;
  align-items: flex-start;
}
@keyframes np-msg-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.np-mdisc-msg-own { flex-direction: row-reverse; }

.np-mdisc-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.np-mdisc-msg-body {
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-mdisc-msg-own .np-mdisc-msg-body { align-items: flex-end; }

.np-mdisc-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-mdisc-msg-own .np-mdisc-msg-header { flex-direction: row-reverse; }

.np-mdisc-msg-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--comm-green);
}
.np-mdisc-msg-name em { color: var(--comm-muted); font-style: normal; font-weight: 400; }

.np-mdisc-msg-time {
  font-size: 11px;
  color: var(--comm-muted);
}

.np-mdisc-msg-text {
  background: var(--msg-other-bg);
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--comm-text);
  word-break: break-word;
  border: 1px solid var(--comm-border);
}

.np-mdisc-msg-own .np-mdisc-msg-text {
  background: var(--msg-own-bg);
  border-radius: 12px 0 12px 12px;
  border: none;
  color: #fff;
}

.np-mdisc-msg-ai .np-mdisc-msg-name::after { content: ' 🤖'; font-size: 10px; }

/* Compose */
.np-mdisc-compose {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--comm-border);
  background: var(--comm-dark2);
}

.np-mdisc-compose-inner {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.np-mdisc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--comm-dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.np-mdisc-input-wrap { flex: 1; }

.np-mdisc-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--comm-dark);
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--comm-text);
  font-size: 14px;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color .2s;
  line-height: 1.4;
}
.np-mdisc-textarea:focus { outline: none; border-color: var(--comm-green); }
.np-mdisc-textarea::placeholder { color: var(--comm-muted); }

.np-mdisc-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.np-mdisc-char-count { font-size: 11px; color: var(--comm-muted); }

.np-mdisc-send-btn {
  background: linear-gradient(135deg, var(--comm-green), var(--comm-green2));
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all .2s;
  flex-shrink: 0;
}
.np-mdisc-send-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 12px rgba(29,185,84,.4); }
.np-mdisc-send-btn:disabled { opacity: .4; cursor: not-allowed; }

.np-mdisc-send-msg { font-size: 12px; margin-top: 6px; min-height: 16px; }

/* ─────────────────────────────────────────────────────
   COMMUNITY PAGE
   ───────────────────────────────────────────────────── */
.np-community-main { padding: 0 0 60px; }

.np-community-page {
  margin: 0 -16px;
}

/* Hero */
.np-community-hero {
  position: relative;
  padding: 60px 20px 50px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
}

.np-comm-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #1a1033 100%);
  z-index: 0;
}
.np-comm-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(29,185,84,.15), transparent 70%);
}

.np-comm-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.np-comm-hero-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.np-comm-hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  margin: 0 0 20px;
}

.np-comm-hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.np-comm-hero-stats span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* Gate */
.np-comm-gate {
  padding: 40px 20px;
  background: var(--comm-dark);
  display: flex;
  justify-content: center;
}

.np-comm-gate-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.np-comm-gate-icon { font-size: 48px; margin-bottom: 14px; display: block; }

.np-comm-gate-inner h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  font-family: 'Oswald', sans-serif;
}

.np-comm-gate-inner p {
  color: var(--comm-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.np-comm-gate-form { display: flex; flex-direction: column; gap: 12px; }

.np-comm-input {
  background: var(--comm-dark2);
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--comm-text);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.np-comm-input:focus { outline: none; border-color: var(--comm-green); }
.np-comm-input::placeholder { color: var(--comm-muted); }

.np-comm-join-btn {
  background: linear-gradient(135deg, var(--comm-green), var(--comm-green2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
}
.np-comm-join-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,185,84,.4); }
.np-comm-join-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.np-comm-gate-msg { font-size: 13px; min-height: 18px; }

/* Community UI */
.np-comm-ui { padding: 0; }

/* Groups grid */
.np-comm-groups-wrap {
  padding: 28px 20px 16px;
  background: var(--comm-dark);
}

.np-comm-groups-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.np-comm-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.np-comm-group-btn {
  background: var(--comm-dark2);
  border: 1px solid var(--comm-border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.np-comm-group-btn:hover { background: var(--comm-dark3); border-color: rgba(29,185,84,.3); }
.np-comm-group-btn.active {
  background: linear-gradient(135deg, rgba(29,185,84,.15), rgba(22,163,74,.1));
  border-color: var(--comm-green);
  box-shadow: 0 0 0 1px var(--comm-green);
}

.np-comm-group-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.np-comm-group-desc {
  font-size: 11px;
  color: var(--comm-muted);
  display: block;
  line-height: 1.3;
}

.np-comm-group-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--comm-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  display: none;
}
.np-comm-group-badge:not(:empty) { display: block; }

/* Chat wrap */
.np-comm-chat-wrap {
  margin: 0 20px 20px;
  background: var(--comm-dark);
  border: 1px solid var(--comm-border);
  border-radius: 14px;
  overflow: hidden;
}

.np-comm-chat-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--comm-dark2), var(--comm-dark3));
  border-bottom: 1px solid var(--comm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.np-comm-chat-group-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: 'Oswald', sans-serif;
}

.np-comm-chat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.np-comm-chat-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--comm-muted);
}

.np-comm-online-dot {
  width: 6px; height: 6px;
  background: var(--comm-green);
  border-radius: 50%;
  display: inline-block;
  animation: np-pulse 2s infinite;
}

.np-comm-ttl-note {
  font-size: 11px;
  color: var(--comm-muted);
  background: rgba(255,255,255,.04);
  padding: 3px 8px;
  border-radius: 10px;
}

.np-comm-messages {
  height: 420px;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.np-comm-messages::-webkit-scrollbar { width: 4px; }
.np-comm-messages::-webkit-scrollbar-thumb { background: var(--comm-dark3); border-radius: 4px; }

.np-comm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--comm-muted);
  text-align: center;
  gap: 10px;
}
.np-comm-empty span { font-size: 36px; }
.np-comm-empty p { font-size: 14px; margin: 0; }

.np-comm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--comm-muted);
  font-size: 13px;
  padding: 20px;
}

.np-comm-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--comm-dark3);
  border-top-color: var(--comm-green);
  border-radius: 50%;
  display: inline-block;
  animation: np-spin .8s linear infinite;
}

/* Community messages */
.np-comm-msg {
  display: flex;
  gap: 10px;
  animation: np-msg-in .25s ease;
  align-items: flex-start;
}

.np-comm-msg-own { flex-direction: row-reverse; }

.np-comm-msg-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.np-comm-msg-body {
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.np-comm-msg-own .np-comm-msg-body { align-items: flex-end; }

.np-comm-msg-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-comm-msg-own .np-comm-msg-hdr { flex-direction: row-reverse; }

.np-comm-msg-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--comm-green);
}
.np-comm-msg-name em { color: var(--comm-muted); font-style: normal; }

.np-comm-msg-time { font-size: 11px; color: var(--comm-muted); }

.np-comm-msg-txt {
  background: var(--msg-other-bg);
  border: 1px solid var(--comm-border);
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--comm-text);
  word-break: break-word;
}

.np-comm-msg-own .np-comm-msg-txt {
  background: var(--msg-own-bg);
  border: none;
  border-radius: 12px 0 12px 12px;
  color: #fff;
}

/* Community compose */
.np-comm-compose {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--comm-border);
  background: var(--comm-dark2);
}

.np-comm-compose-inner {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.np-comm-my-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--comm-dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.np-comm-input-wrap { flex: 1; }

.np-comm-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--comm-dark);
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--comm-text);
  font-size: 14px;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color .2s;
  line-height: 1.4;
}
.np-comm-textarea:focus { outline: none; border-color: var(--comm-green); }
.np-comm-textarea::placeholder { color: var(--comm-muted); }
.np-comm-textarea:disabled { opacity: .5; cursor: not-allowed; }

.np-comm-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.np-comm-char { font-size: 11px; color: var(--comm-muted); }

.np-comm-send-btn {
  background: linear-gradient(135deg, var(--comm-green), var(--comm-green2));
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all .2s;
  flex-shrink: 0;
}
.np-comm-send-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 12px rgba(29,185,84,.4); }
.np-comm-send-btn:disabled { opacity: .4; cursor: not-allowed; }

.np-comm-send-status { font-size: 12px; margin-top: 6px; min-height: 16px; }

/* ─────────────────────────────────────────────────────
   COMMUNITY CTA — Homepage
   ───────────────────────────────────────────────────── */
.np-community-cta {
  position: relative;
  margin: 0 -16px 0;
  padding: 64px 20px;
  text-align: center;
  overflow: hidden;
}

.np-community-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d2136 0%, #0f3d2e 40%, #1a1033 100%);
  z-index: 0;
}
.np-community-cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(29,185,84,.2), transparent 65%);
}
.np-community-cta-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--comm-green), transparent);
}

.np-community-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.np-community-cta-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(29,185,84,.5));
}

.np-community-cta-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.np-community-cta-sub {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.np-community-cta-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.np-cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.np-cta-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--comm-green);
  font-family: 'Oswald', sans-serif;
  line-height: 1;
}

.np-cta-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.np-community-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--comm-green), var(--comm-green2));
  color: #fff;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .25s;
  box-shadow: 0 6px 24px rgba(29,185,84,.35);
}
.np-community-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(29,185,84,.5);
  text-decoration: none;
  color: #fff;
}
.np-community-cta-btn:active { transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .np-mdisc-title { font-size: 15px; }
  .np-mdisc-online { display: none; }
  .np-mdisc-messages { height: 300px; }
  .np-mdisc-msg-body { max-width: 82%; }

  .np-comm-groups-grid { grid-template-columns: repeat(2, 1fr); }
  .np-comm-messages { height: 320px; }
  .np-comm-msg-body { max-width: 82%; }
  .np-comm-hero-title { font-size: 26px; }
  .np-comm-hero-stats { gap: 8px; }
  .np-comm-chat-wrap { margin: 0 8px 16px; }

  .np-community-cta-title { font-size: 24px; }
  .np-community-cta-stats { gap: 20px; }
  .np-community-cta-btn { font-size: 15px; padding: 15px 28px; }
}

@media (max-width: 400px) {
  .np-comm-groups-grid { grid-template-columns: 1fr 1fr; }
  .np-mdisc-gate, .np-comm-gate { padding: 24px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   MOVIE DISCUSSION V2 — Cinematic WhatsApp-style
   ═══════════════════════════════════════════════════════════ */
.np-discuss-wrap {
  margin: 32px 0 40px;
  background: #0d1520;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(29,185,84,.2);
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(29,185,84,.08);
}

/* Cinematic header with poster blur */
.np-discuss-hdr {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  min-height: 80px;
}
.np-discuss-hdr-blur {
  position: absolute;
  inset: -20px;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center top;
  filter: blur(14px) brightness(.35) saturate(1.4);
  transform: scale(1.1);
}
.np-discuss-hdr-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,21,32,.85) 0%, rgba(29,185,84,.1) 100%);
}
.np-discuss-hdr-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.np-discuss-hdr-left { display: flex; align-items: center; gap: 12px; }
.np-disc-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(29,185,84,.2);
  border: 1px solid rgba(29,185,84,.4);
  color: #1db954;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.np-disc-live-dot {
  width: 6px; height: 6px;
  background: #1db954;
  border-radius: 50%;
  animation: np-pulse 1.5s ease infinite;
}
.np-discuss-hdr-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
}
.np-discuss-hdr-sub { font-size: 12px; color: rgba(255,255,255,.6); margin: 2px 0 0; }
.np-discuss-hdr-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(29,185,84,.2);
  padding: 5px 12px;
  border-radius: 20px;
}
.np-disc-online-dot {
  width: 7px; height: 7px;
  background: #1db954;
  border-radius: 50%;
  animation: np-pulse 2s infinite;
}
.np-disc-watching { opacity: .7; }

/* Gate */
.np-discuss-gate { padding: 28px 20px; background: #0d1520; }
.np-discuss-gate-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}
.np-disc-gate-poster {
  width: 80px;
  min-width: 80px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 2/3;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.np-disc-gate-icon { font-size: 52px; margin-bottom: 8px; }
.np-disc-gate-body h4 {
  font-size: 17px;
  color: #fff;
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  line-height: 1.3;
}
.np-disc-gate-body p { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 16px; line-height: 1.5; }
.np-disc-gate-form { display: flex; flex-direction: column; gap: 10px; }
.np-disc-inp {
  background: #1a2638;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.np-disc-inp:focus { outline: none; border-color: #1db954; }
.np-disc-inp::placeholder { color: rgba(255,255,255,.3); }
.np-disc-join-btn {
  background: linear-gradient(135deg, #ff4444 0%, #e63946 50%, #c1121f 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
}
.np-disc-join-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(220,38,38,.45); }
.np-disc-join-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.np-disc-gate-msg { font-size: 12px; min-height: 16px; }

/* Chat container */
.np-discuss-chat {
  display: flex;
  flex-direction: column;
  background: #0d1520;
}
.np-discuss-msgs {
  height: 400px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.np-discuss-msgs::-webkit-scrollbar { width: 4px; }
.np-discuss-msgs::-webkit-scrollbar-track { background: transparent; }
.np-discuss-msgs::-webkit-scrollbar-thumb { background: #1a2638; border-radius: 4px; }

.np-discuss-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  padding: 20px;
}
.np-disc-spinner {
  width: 16px; height: 16px;
  border: 2px solid #1a2638;
  border-top-color: #1db954;
  border-radius: 50%;
  display: inline-block;
  animation: np-spin .8s linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* Messages */
.np-disc-msg {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  animation: np-msg-in .2s ease;
}
@keyframes np-msg-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.np-disc-msg-own { flex-direction: row-reverse; }

.np-disc-av-wrap { flex-shrink: 0; }
.np-disc-av-img, .np-disc-av-letter, .np-disc-av-preset-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.np-disc-av-letter { font-size: 14px; }
.np-disc-av-preset-icon { font-size: 20px; }

.np-disc-msg-inner {
  max-width: 74%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.np-disc-msg-own .np-disc-msg-inner { align-items: flex-end; }

.np-disc-msg-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.np-disc-msg-own .np-disc-msg-hdr { flex-direction: row-reverse; }
.np-disc-msg-name { font-size: 11px; font-weight: 700; color: #1db954; }
.np-disc-msg-time { font-size: 10px; color: rgba(255,255,255,.35); }

.np-disc-quote {
  background: rgba(29,185,84,.1);
  border-left: 3px solid #1db954;
  border-radius: 0 6px 6px 0;
  padding: 5px 10px;
  margin-bottom: 4px;
  max-width: 100%;
}
.np-disc-quote-name { font-size: 11px; font-weight: 700; color: #1db954; display: block; margin-bottom: 2px; }
.np-disc-quote-text { font-size: 11px; color: rgba(255,255,255,.6); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.np-disc-msg-txt {
  background: #1a2638;
  border-radius: 0 12px 12px 12px;
  padding: 9px 13px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2e8f0;
  word-break: break-word;
  border: 1px solid rgba(255,255,255,.06);
  max-width: 100%;
}
.np-disc-msg-own .np-disc-msg-txt {
  background: linear-gradient(135deg, #1db954, #16a34a);
  border-radius: 12px 0 12px 12px;
  border: none;
  color: #fff;
}
.np-disc-msg.np-disc-msg-sticker .np-disc-msg-txt,
.np-disc-sticker-big {
  background: transparent !important;
  border: none !important;
  font-size: 40px !important;
  padding: 4px !important;
  line-height: 1;
}

.np-disc-reply-trigger {
  background: none;
  border: none;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  padding: 2px 4px;
  transition: color .15s;
  align-self: flex-start;
  display: none; /* show on hover */
}
.np-disc-msg:hover .np-disc-reply-trigger { display: block; }
.np-disc-reply-trigger:hover { color: #1db954; }

/* Reply bar */
.np-discuss-reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(29,185,84,.08);
  border-top: 1px solid rgba(29,185,84,.2);
  border-bottom: 1px solid rgba(29,185,84,.1);
}
.np-disc-reply-icon { font-size: 16px; color: #1db954; flex-shrink: 0; }
.np-disc-reply-info { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.np-disc-reply-info strong { font-size: 12px; color: #1db954; }
.np-disc-reply-info span { font-size: 11px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-disc-reply-close { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: 16px; flex-shrink: 0; }
.np-disc-reply-close:hover { color: #fff; }

/* Emoji panel */
.np-discuss-emoji-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #1a2638;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
}
/* Make the whole compose area relative for the emoji panel */
.np-discuss-compose { position: relative; }

.np-disc-panel-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.np-disc-ptab {
  flex: 1;
  padding: 9px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 2px solid transparent;
}
.np-disc-ptab.active { color: #1db954; border-bottom-color: #1db954; background: rgba(29,185,84,.05); }

.np-disc-emoji-grid, .np-disc-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 2px;
  padding: 10px;
}
.np-disc-e-btn, .np-disc-s-btn {
  background: none;
  border: none;
  font-size: 22px;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s;
  line-height: 1.3;
}
.np-disc-e-btn:hover, .np-disc-s-btn:hover { background: rgba(255,255,255,.1); }
.np-disc-s-btn { font-size: 28px; padding: 6px; }

/* Avatar modal */
.np-disc-av-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.np-disc-av-modal-inner {
  background: #1a2638;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(29,185,84,.2);
}
.np-disc-av-modal-inner h5 { font-size: 16px; color: #fff; margin: 0 0 14px; font-family: 'Oswald', sans-serif; }
.np-disc-av-current { margin-bottom: 10px; }
.np-disc-av-current img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #1db954; }
.np-disc-av-hint { font-size: 12px; color: rgba(255,255,255,.4); margin: 0 0 14px; }
.np-disc-av-presets-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.np-disc-av-pre {
  background: rgba(255,255,255,.08);
  border: 2px solid transparent;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 22px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-disc-av-pre:hover { border-color: #1db954; background: rgba(29,185,84,.1); }
.np-disc-av-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 14px;
}
.np-disc-av-upload-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.np-disc-av-done-btn {
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* Compose */
.np-discuss-compose {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 10px 14px 14px;
  background: #111e2f;
}
.np-disc-compose-row { display: flex; gap: 10px; align-items: flex-end; }
.np-disc-my-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid rgba(29,185,84,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.np-disc-my-av:hover { border-color: #1db954; }
.np-disc-my-av img { width: 100%; height: 100%; object-fit: cover; }
.np-disc-compose-input-wrap { flex: 1; }
.np-discuss-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #1a2638;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 13.5px;
  resize: none;
  min-height: 40px;
  max-height: 130px;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color .2s;
  line-height: 1.4;
}
.np-discuss-textarea:focus { outline: none; border-color: #1db954; }
.np-discuss-textarea::placeholder { color: rgba(255,255,255,.3); }
.np-disc-compose-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.np-disc-icon-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  color: #fff;
}
.np-disc-icon-btn:hover { background: rgba(255,255,255,.12); }
.np-disc-char-count { font-size: 11px; color: rgba(255,255,255,.3); flex: 1; text-align: center; }
.np-discuss-send-btn {
  background: linear-gradient(135deg, #1db954, #16a34a);
  border: none;
  border-radius: 10px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: all .2s;
}
.np-discuss-send-btn:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 4px 14px rgba(29,185,84,.4); }
.np-discuss-send-btn:disabled { opacity:.35; cursor:not-allowed; }
.np-disc-status { font-size: 12px; margin-top: 5px; min-height: 14px; }

/* ═══════════════════════════════════════════════════════════
   3D COMMUNITY CTA — Homepage
   ═══════════════════════════════════════════════════════════ */
.np-comm-cta3d {
  position: relative;
  padding: 60px 20px;
  overflow: hidden;
  background: #080e18;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
/* Full-bleed background image from customizer */
.np-comm-cta3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--comm-bg);
  background-size: cover;
  background-position: center;
  filter: brightness(.25) saturate(1.3);
  z-index: 0;
}
.np-comm-cta3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,14,24,.92) 0%, rgba(8,14,24,.7) 100%);
  z-index: 0;
}
.np-cta3d-film-left, .np-cta3d-film-right,
.np-cta3d-card, .np-cta3d-live-count,
.np-cta3d-groups, .np-cta3d-badge-live,
.np-cta3d-icon, .np-cta3d-title,
.np-cta3d-sub, .np-cta3d-btn,
.np-cta3d-note { position: relative; z-index: 1; }

/* Film strips left/right */
.np-cta3d-film-left, .np-cta3d-film-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  overflow: hidden;
}
.np-cta3d-film-left { left: 0; }
.np-cta3d-film-right { right: 0; }
.np-cta3d-filmstrip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  background: linear-gradient(180deg, #1a1a1a, #111, #1a1a1a);
  height: 100%;
  border-right: 2px solid #222;
  border-left: 2px solid #222;
}
.np-cta3d-film-right .np-cta3d-filmstrip {
  border-right: none;
  border-left: 2px solid #222;
  transform: scaleX(-1);
}
.np-cta3d-filmhole {
  width: 14px; height: 10px;
  background: #000;
  border-radius: 2px;
  margin: 2px auto;
  border: 1px solid #333;
  flex-shrink: 0;
}
.np-cta3d-filmframe {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  min-height: 90px;
  position: relative;
  overflow: hidden;
  opacity: .65;
  filter: brightness(.6) saturate(.8);
}
.np-cta3d-filmframe-empty { background: #1a1a1a; }
.np-cta3d-filmframe::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), transparent, rgba(0,0,0,.3));
}

/* 3D card */
.np-cta3d-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: linear-gradient(160deg, #0f1d35 0%, #0d2642 50%, #091520 100%);
  border-radius: 24px;
  padding: 36px 32px 32px;
  text-align: center;
  border: 1px solid rgba(29,185,84,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(29,185,84,.1), inset 0 1px 0 rgba(255,255,255,.04);
  z-index: 2;
}
.np-cta3d-glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(29,185,84,.18), transparent 40%, rgba(29,185,84,.08));
  z-index: -1;
}
.np-cta3d-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,185,84,.15);
  border: 1px solid rgba(29,185,84,.4);
  color: #1db954;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.np-cta3d-live-dot {
  width: 7px; height: 7px;
  background: #1db954;
  border-radius: 50%;
  animation: np-pulse 1.5s infinite;
  box-shadow: 0 0 6px #1db954;
}
.np-cta3d-icon { font-size: 50px; display: block; margin-bottom: 12px; filter: drop-shadow(0 0 20px rgba(220,38,38,.5)); }
.np-cta3d-title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  font-family: 'Oswald', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.np-cta3d-t1 {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 1px 0 #c0392b,
    0 2px 0 #a93226,
    0 3px 0 #922b21,
    0 4px 0 #7b241c,
    0 5px 0 #641e16,
    0 6px 1px rgba(0,0,0,.2),
    0 0 5px rgba(0,0,0,.1),
    0 1px 3px rgba(0,0,0,.3),
    0 3px 5px rgba(0,0,0,.2),
    0 5px 10px rgba(0,0,0,.25),
    0 10px 10px rgba(0,0,0,.2),
    0 20px 20px rgba(0,0,0,.15);
  letter-spacing: 4px;
}
.np-cta3d-t2 {
  display: block;
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff6b35 0%, #e63946 40%, #c1121f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(220,38,38,.4));
  letter-spacing: 5px;
}
.np-cta3d-sub {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.np-cta3d-live-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29,185,84,.1);
  border: 1px solid rgba(29,185,84,.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}
.np-cta3d-online-dot {
  width: 8px; height: 8px;
  background: #1db954;
  border-radius: 50%;
  animation: np-pulse 2s infinite;
  box-shadow: 0 0 8px #1db954;
  flex-shrink: 0;
}
#np-cta3d-count-num { font-weight: 800; color: #1db954; font-size: 16px; }
.np-cta3d-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}
.np-cta3d-groups span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}
.np-cta3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff4444 0%, #e63946 50%, #c1121f 100%);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .25s;
  box-shadow: 0 6px 24px rgba(220,38,38,.45);
  margin-bottom: 12px;
}
.np-cta3d-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 32px rgba(220,38,38,.6); text-decoration: none; color: #fff; }
.np-cta3d-note { font-size: 11px; color: rgba(255,255,255,.35); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   FULL SITE FOOTER
   ═══════════════════════════════════════════════════════════ */
.np-site-footer {
  background: #050d18;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-bottom: 70px; /* room for bottom nav */
}

/* Newsletter strip */
.np-footer-newsletter {
  background: linear-gradient(135deg, #0f2847, #0d3d2e);
  border-bottom: 1px solid rgba(29,185,84,.15);
  padding: 18px 0;
}
.np-footer-nl-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.np-footer-nl-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.np-footer-nl-icon { font-size: 24px; }
.np-footer-nl-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.np-footer-nl-text span  { font-size: 12px; color: rgba(255,255,255,.6); }
.np-footer-nl-form {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.np-footer-nl-input {
  background: rgba(255,255,255,.08);
  border: none;
  padding: 11px 16px;
  color: #fff;
  font-size: 13px;
  min-width: 220px;
  outline: none;
}
.np-footer-nl-input::placeholder { color: rgba(255,255,255,.35); }
.np-footer-nl-btn {
  background: linear-gradient(135deg, #ff4444, #c1121f);
  color: #fff;
  border: none;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.np-footer-nl-btn:hover { background: linear-gradient(135deg, #e63946, #a00e16); }
.np-footer-nl-msg {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 11px;
  white-space: nowrap;
}

/* Main footer */
.np-footer-main { padding: 44px 0 32px; }
.np-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.np-footer-col-brand .np-footer-logo { margin-bottom: 12px; }
.np-footer-logo-img { max-height: 44px; width: auto; }
.np-footer-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  font-family: 'Oswald', sans-serif;
}
.np-footer-tagline { font-size: 11px; color: #1db954; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.np-footer-about { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin: 0 0 16px; }
.np-footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.np-footer-social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
}
.np-footer-social-icon:hover { transform: translateY(-2px); color: #fff; }
.np-soc-tg:hover { background: #229ED9; border-color: #229ED9; }
.np-soc-wa:hover { background: #25D366; border-color: #25D366; }
.np-soc-fb:hover { background: #1877f2; border-color: #1877f2; }
.np-soc-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; }
.np-soc-tw:hover { background: #000; border-color: #555; }

.np-footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.np-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.np-footer-links li a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s;
}
.np-footer-links li a:hover { color: #1db954; }
.np-footer-links li a i { font-size: 11px; width: 12px; }
.np-footer-cat-count {
  margin-left: auto;
  background: rgba(255,255,255,.06);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  color: rgba(255,255,255,.4);
}
.np-footer-channels { margin-top: 16px; }
.np-footer-channels h5 { font-size: 12px; color: rgba(255,255,255,.4); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.np-footer-channel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all .2s;
}
.np-footer-tg { background: rgba(34,158,217,.15); border: 1px solid rgba(34,158,217,.3); }
.np-footer-tg:hover { background: #229ED9; }
.np-footer-wa { background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.3); }
.np-footer-wa:hover { background: #25D366; }

/* Copyright */
.np-footer-copyright {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}
.np-footer-copy-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.np-footer-copy-sep { opacity: .4; }
.np-footer-copy-inner a { color: rgba(255,255,255,.4); text-decoration: none; }
.np-footer-copy-inner a:hover { color: #1db954; }

/* ── Footer Responsive ── */
@media (max-width: 900px) {
  .np-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .np-footer-grid { grid-template-columns: 1fr; }
  .np-footer-nl-inner { flex-direction: column; }
  .np-footer-nl-form { width: 100%; }
  .np-footer-nl-input { min-width: unset; flex: 1; }
  .np-comm-cta3d { padding: 40px 10px; }
  .np-cta3d-film-left,.np-cta3d-film-right { width: 50px; }
  .np-cta3d-title { font-size: 22px; }
  .np-cta3d-btn { font-size: 14px; padding: 14px 24px; }
  .np-discuss-gate-inner { flex-direction: column; }
  .np-disc-gate-poster { width: 100%; max-width: 100px; margin: 0 auto; }
  .np-discuss-msgs { height: 300px; }
  .np-disc-msg-inner { max-width: 82%; }
  .np-footer-copy-inner { justify-content: center; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   STAR RATING WIDGET
   ═══════════════════════════════════════════════════════ */
.np-rating-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #0d1520;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  margin: 18px 0;
}
.np-rating-label { font-size: 13px; color: rgba(255,255,255,.6); }
.np-stars { display: flex; gap: 3px; }
.np-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: transform .15s;
  display: flex;
}
.np-star-btn:hover { transform: scale(1.2); }
.np-rating-widget.np-rated .np-star-btn { cursor: default; }
.np-rating-info { display: flex; align-items: baseline; gap: 3px; }
.np-rating-avg { font-size: 20px; font-weight: 800; color: #f5c518; }
.np-rating-sep { font-size: 13px; color: rgba(255,255,255,.4); }
.np-rating-count { font-size: 12px; color: rgba(255,255,255,.4); }

/* ═══════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════ */
.np-related-posts { margin: 28px 0; }
.np-related-posts .section-title { font-size: 17px; }

/* ═══════════════════════════════════════════════════════
   GENRE FILTER TABS
   ═══════════════════════════════════════════════════════ */
.np-genre-filter-wrap { margin: 16px 0 32px; }
.np-genre-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.np-gf-tab {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.np-gf-tab:hover, .np-gf-tab.active {
  background: rgba(29,185,84,.15);
  border-color: rgba(29,185,84,.4);
  color: #1db954;
}
.np-gf-load-more {
  display: block;
  margin: 24px auto 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.np-gf-load-more:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Watchlist button on cards */
[data-watchlist] {
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .2s;
}
[data-watchlist]:hover, [data-watchlist].np-in-watchlist {
  background: rgba(231,76,60,.3);
  border-color: rgba(231,76,60,.5);
  color: #e74c3c;
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE — GPU, layout, paint optimisations
   ═══════════════════════════════════════════════════════════ */

/* Contain layout/paint on heavy sections */
.np-section,
.np-discuss-wrap,
.np-comm-cta3d,
.np-site-footer,
.np-footer-main { contain: layout style; }

/* Only promote elements that actually animate */
.np-disc-live-dot,
.np-cta3d-live-dot,
.np-cta3d-online-dot,
.np-disc-spinner,
.np-disc-msg { will-change: opacity, transform; }

/* Stop promoting static elements */
.np-cta3d-card,
.np-cta3d-glow,
.np-discuss-hdr-blur { will-change: auto; }

/* Remove backdrop-filter from non-essential elements (causes repaints) */
.np-discuss-hdr-blur { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Passive scrolling for message list */
.np-discuss-msgs { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Image loading perf */
.np-cta3d-filmframe,
.np-disc-gate-poster,
.np-disc-av-img { content-visibility: auto; }

/* ═══════════════════════════════════════════════════════════
   MOBILE STABILITY — prevent layout breaks on all screens
   ═══════════════════════════════════════════════════════════ */

/* Global overflow guard */
html, body { overflow-x: hidden !important; max-width: 100vw; }
*, *::before, *::after { box-sizing: border-box; }

/* Prevent horizontal scroll from sections */
.np-section,
.np-comm-cta3d,
.np-footer-newsletter,
.np-footer-main,
.np-footer-copyright { max-width: 100%; overflow-x: hidden; }

/* Film strips — shrink on small screens before they cause overflow */
@media (max-width: 480px) {
  .np-cta3d-film-left, .np-cta3d-film-right { display: none; }
  .np-comm-cta3d { padding: 30px 16px; }
  .np-cta3d-title { font-size: 20px; }
  .np-cta3d-btn { padding: 13px 20px; font-size: 14px; width: 100%; justify-content: center; }
}

/* Discussion wrap */
@media (max-width: 600px) {
  .np-discuss-wrap { margin: 20px 0 28px; border-radius: 12px; }
  .np-discuss-hdr { padding: 14px 14px; }
  .np-discuss-hdr-row { gap: 8px; }
  .np-discuss-msgs { height: 280px; padding: 10px 12px; gap: 10px; }
  .np-disc-msg-inner { max-width: 85%; }
  .np-discuss-compose { padding: 8px 10px 10px; }
  .np-disc-compose-row { gap: 7px; }
  .np-discuss-gate { padding: 20px 14px; }
  .np-discuss-gate-inner { flex-direction: column; align-items: center; }
  .np-disc-gate-poster { width: 90px; margin: 0 auto; }
  .np-disc-av-modal { padding: 12px; }
  .np-disc-av-modal-inner { padding: 18px 16px; }
}

/* Footer mobile */
@media (max-width: 768px) {
  .np-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .np-footer-nl-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .np-footer-nl-form { border-radius: 8px; }
  .np-footer-nl-input { min-width: unset; flex: 1; }
}
@media (max-width: 480px) {
  .np-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .np-footer-main { padding: 28px 0 20px; }
  .np-footer-copy-inner { flex-direction: column; text-align: center; gap: 6px; }
  .np-footer-copy-sep { display: none; }
  .np-footer-social { justify-content: flex-start; }
  .np-footer-channels { display: flex; flex-direction: column; gap: 8px; }
}

/* Homepage grids — prevent card overflow on narrow screens */
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .posts-grid-5, .posts-grid-6 { grid-template-columns: repeat(2, 1fr) !important; }
  .section-header { flex-wrap: nowrap; gap: 8px; }
  .section-title { font-size: 15px !important; }
  .view-all { font-size: 11px !important; white-space: nowrap; }
}
@media (max-width: 360px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .np-cta3d-groups { gap: 4px; }
  .np-cta3d-groups span { font-size: 11px; padding: 3px 8px; }
}

/* Community page mobile */
@media (max-width: 600px) {
  .np-comm-groups-grid { grid-template-columns: 1fr !important; }
  .np-comm-msgs { height: 260px !important; }
  .np-comm-compose-row { gap: 6px; }
}

/* Header/nav mobile */
@media (max-width: 480px) {
  .hdr-inner { padding: 8px 0; }
  .site-logo a { max-width: 140px; }
}

/* Touch targets — minimum 44px for all interactive elements on mobile */
@media (max-width: 768px) {
  .np-disc-join-btn,
  .np-cta3d-btn,
  .np-footer-nl-btn,
  .np-footer-channel-btn,
  .np-discuss-send-btn { min-height: 44px; }
  .np-disc-emoji-btn, .np-disc-sticker-btn { min-height: 40px; min-width: 40px; }
}

/* Prevent text overflow everywhere */
.np-discuss-hdr-sub,
.np-disc-msg-txt,
.np-disc-quote-text,
.section-title,
.card-title,
.np-footer-about {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Fix input zoom on iOS (font-size must be >= 16px) */
@media (max-width: 768px) {
  .np-disc-inp,
  .np-discuss-textarea,
  .np-footer-nl-input,
  input[type="email"],
  input[type="text"],
  input[type="search"] { font-size: 16px !important; }
}

/* Stable scrollbar to prevent layout shift */
html { scrollbar-gutter: stable; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
