/* ════════════════════════════════════════════════════════════════
   16-CINEMA — וייב קוד ניוז · קולנוע
   Velvet black + gold + ivory palette.
   Signature: GSAP timeline + ScrollTrigger Pin for scene-based scrolling.
   Letterbox bars permanently frame the viewport.
   ════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --velvet:        #0a0a0a;
  --velvet-soft:   #131210;
  --velvet-deep:   #050505;
  --velvet-raise:  #1a1814;
  --gold:          #c9a449;
  --gold-bright:   #e0bd60;
  --gold-deep:     #8a6e2c;
  --gold-glow:     rgba(201, 164, 73, 0.18);
  --ivory:         #f0e8d8;
  --ivory-soft:    #d8d0c0;
  --ivory-dim:     #a89e88;
  --film-red:      #9b2828;
  --film-red-soft: #6b1c1c;
  --ash:           #2a2722;

  /* Chat skin brand colors */
  --wa-green:   #25D366;
  --wa-green-d: #128C7E;
  --wa-bg:      #0f1a14;
  --tg-blue:    #2AABEE;
  --tg-blue-d:  #229ED9;
  --tg-bg:      #0d141d;
  --ms-blue:    #0099FF;
  --ms-purple:  #A033FF;
  --ms-bg:      #150f1f;

  --font-head:  'Playfair Display', 'Times New Roman', serif;
  --font-body:  'Heebo', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  --container: 1240px;
  --letterbox: 56px;
  --letterbox-mobile: 38px;
}

/* ─── Reset (scoped) ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--velvet);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ivory);
  background: var(--velvet);
  /* Film grain SVG overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, var(--velvet-soft) 0%, var(--velvet) 60%, var(--velvet-deep) 100%);
  background-attachment: fixed, fixed;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Per-section film grain: subtle additional film texture, like celluloid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 2px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: overlay;
  opacity: 0.9;
}

/* ─────────────────────────────────────────
   LETTERBOX BARS — permanent top + bottom
   Permanently frame the viewport (cinematic 2.39:1 crop)
───────────────────────────────────────── */
.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--letterbox);
  background: #000;
  z-index: 9000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(201, 164, 73, 0.08);
  box-shadow: 0 1px 0 rgba(201, 164, 73, 0.04);
}
.letterbox-bottom {
  top: auto;
  bottom: 0;
  border-bottom: none;
  border-top: 1px solid rgba(201, 164, 73, 0.08);
  box-shadow: 0 -1px 0 rgba(201, 164, 73, 0.04);
}
.letterbox-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.6;
}
.letterbox-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--film-red);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
  animation: rec-pulse 1.8s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Reserve letterbox height so content doesn't slip under */
main, .topbar, .hero-scene, .masthead-cinema {
  padding-top: var(--letterbox);
  padding-bottom: var(--letterbox);
}

@media (max-width: 720px) {
  :root { --letterbox: var(--letterbox-mobile); }
  main, .topbar, .hero-scene, .masthead-cinema {
    padding-top: var(--letterbox-mobile);
    padding-bottom: var(--letterbox-mobile);
  }
  .letterbox { padding: 0 12px; }
  .letterbox-mark { font-size: 9px; letter-spacing: 0.14em; }
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .35em;
  letter-spacing: -0.015em;
  color: var(--ivory);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 3;
}
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ─────────────────────────────────────────
   MASTHEAD — cinema-style top bar
───────────────────────────────────────── */
.masthead-cinema {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(10,10,10,0) 100%);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-reel {
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--velvet-soft) 30%, transparent 31%),
    radial-gradient(circle at center, var(--gold) 5%, transparent 6%),
    linear-gradient(135deg, var(--velvet-raise), var(--velvet));
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
  animation: reel-spin 18s linear infinite;
}
@keyframes reel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.brand-text { line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}
.masthead-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.masthead-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: all .18s;
}
.masthead-nav a:hover {
  color: var(--gold);
  border-color: rgba(201, 164, 73, 0.4);
}
.masthead-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 164, 73, 0.08);
}
@media (max-width: 580px) {
  .masthead-nav a { padding: 6px 8px; font-size: 10px; }
  .brand-name { font-size: 16px; }
}

/* ─────────────────────────────────────────
   "NOW PLAYING" TICKER (marquee)
───────────────────────────────────────── */
.ticker-marquee {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, var(--velvet-deep) 0%, var(--velvet-raise) 50%, var(--velvet-deep) 100%);
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--velvet-deep);
  background: var(--gold);
  font-weight: 700;
}
.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 60s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory);
  letter-spacing: 0.04em;
}
.ticker-item .t-time {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.ticker-item .t-sep {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   HERO — first SCENE with ScrollTrigger Pin
───────────────────────────────────────── */
.hero-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at center 40%, rgba(201, 164, 73, 0.05) 0%, transparent 60%),
    var(--velvet);
}
.hero-scene .container {
  text-align: center;
  position: relative;
  z-index: 5;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 164, 73, 0.45);
  padding: 6px 18px;
  margin-bottom: 28px;
  background: rgba(201, 164, 73, 0.04);
}
.hero-eyebrow .rec {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--film-red);
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  animation: rec-pulse 1.6s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(46px, 9vw, 140px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 0 0 20px;
  text-shadow: 0 4px 36px rgba(0, 0, 0, 0.7);
}
.hero-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-subtitle {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--ivory-soft);
  margin: 0 auto 36px;
  max-width: 32ch;
  line-height: 1.4;
  font-weight: 400;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ivory-soft);
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0.85;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* Hero ambient lights — soft golden glow */
.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.hero-light.l1 {
  top: -10%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(201, 164, 73, 0.12) 0%, transparent 60%);
}
.hero-light.l2 {
  bottom: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(155, 40, 40, 0.08) 0%, transparent 60%);
}

/* Hero scene counter (acts like film slate) */
.scene-counter {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  z-index: 6;
  border: 1px solid rgba(201, 164, 73, 0.3);
  padding: 6px 12px;
  background: rgba(10, 10, 10, 0.6);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .scene-counter { top: 12px; right: 12px; font-size: 9px; padding: 4px 8px; }
}

/* ─────────────────────────────────────────
   SCENE — pinned content reveal block
───────────────────────────────────────── */
.scene {
  position: relative;
  padding: 100px 0 120px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(201, 164, 73, 0.08);
}
.scene-2 { background: linear-gradient(180deg, var(--velvet) 0%, var(--velvet-soft) 100%); }
.scene-3 { background: var(--velvet-soft); }
.scene-4 { background: linear-gradient(180deg, var(--velvet-soft) 0%, var(--velvet) 100%); }
.scene-5 { background: var(--velvet); }
.scene .container { width: 100%; }
.scene-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.scene-eyebrow .num {
  color: var(--film-red);
  margin-left: 10px;
  font-weight: 700;
}
.scene-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  color: var(--ivory);
  margin: 0 0 22px;
  font-weight: 700;
}
.scene-title .italic { color: var(--gold); font-style: italic; font-weight: 400; }
.scene-body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ivory-soft);
  max-width: 62ch;
  line-height: 1.7;
  opacity: 0.9;
}
@media (max-width: 720px) {
  .scene { padding: 64px 0 72px; min-height: auto; }
}

/* ─────────────────────────────────────────
   SECTION HEAD (shared)
───────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
  color: var(--ivory);
  font-weight: 700;
  line-height: 1.1;
}
.section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.section-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1px solid var(--gold);
}
.section-link:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ─────────────────────────────────────────
   FEATURED ARTICLES (home)
───────────────────────────────────────── */
.featured {
  padding: 80px 0;
  background: var(--velvet);
  border-top: 1px solid rgba(201, 164, 73, 0.12);
  position: relative;
}
.featured-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.feature-card {
  position: relative;
  padding: 28px;
  background: var(--velvet-soft);
  border: 1px solid rgba(201, 164, 73, 0.18);
  border-radius: 2px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.7;
}
.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(201, 164, 73, 0.3);
}
.feature-card.lead {
  grid-row: span 2;
  background: var(--velvet-raise);
  padding: 36px;
}
.feature-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid rgba(201, 164, 73, 0.4);
  padding: 3px 9px;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ivory);
}
.feature-card.lead h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--ivory-soft);
  line-height: 1.7;
  opacity: 0.85;
  margin: 0 0 18px;
}
.feature-card.lead p { font-size: 16px; }
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(201, 164, 73, 0.18);
  padding-top: 14px;
}
.feature-meta .author { color: var(--gold); }

/* ─────────────────────────────────────────
   CHAT — cinema "press screening panel"
───────────────────────────────────────── */
.chat-section {
  position: relative;
  padding: 80px 0;
  background:
    radial-gradient(ellipse at top, rgba(201, 164, 73, 0.06) 0%, transparent 60%),
    var(--velvet-deep);
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  overflow: hidden;
}
.chat-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(201, 164, 73, 0.025) 1px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
}
.chat-section .container { position: relative; z-index: 2; }
.chat-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 980px) {
  .chat-layout { grid-template-columns: 1fr 380px; }
}
.chat-intro h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 8px 0 18px;
}
.chat-intro h2 .accent { color: var(--gold); font-style: italic; font-weight: 400; }
.chat-intro p {
  color: var(--ivory-soft);
  max-width: 52ch;
  line-height: 1.7;
  opacity: 0.9;
  font-size: 15.5px;
}
.chat-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.chat-points li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ivory-soft);
  padding-right: 22px;
  position: relative;
}
.chat-points li::before {
  content: '▶';
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 9px;
  top: 4px;
}

/* Press panel — gold-on-black phone mockup */
.press-panel {
  position: relative;
  background: linear-gradient(180deg, #1a1814 0%, #0a0a0a 100%);
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  padding: 14px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(201, 164, 73, 0.2),
    inset 0 0 24px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.press-panel::before, .press-panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}
.press-panel::before {
  top: 6px; left: 6px;
  border-right: none; border-bottom: none;
}
.press-panel::after {
  bottom: 6px; right: 6px;
  border-left: none; border-top: none;
}
.press-screentitle {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 164, 73, 0.25);
  margin-bottom: 12px;
}
.press-screentitle::before, .press-screentitle::after { content: '◆'; margin: 0 8px; opacity: 0.5; }
.press-screen {
  background: #000;
  border: 1px solid rgba(201, 164, 73, 0.3);
  height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat inner (skin-switchable) */
.chat-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--velvet-soft);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 11px;
  background: linear-gradient(180deg, var(--velvet-raise) 0%, var(--velvet) 100%);
  border-bottom: 1px solid rgba(201, 164, 73, 0.3);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--velvet);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  border: 1.5px solid var(--gold-bright);
}
.chat-head-info { flex: 1; min-width: 0; }
.chat-head-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ivory);
  line-height: 1.1;
}
.chat-head-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold);
  margin-top: 3px;
  letter-spacing: 0.05em;
}
.chat-head-status .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  animation: rec-pulse 1.4s ease-in-out infinite;
}
.chat-head-actions {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  background: var(--velvet-soft);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 2px; }

.msg-date-sep {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  align-self: center;
  margin: 4px 0 8px;
  padding: 3px 10px;
  border: 1px solid rgba(201, 164, 73, 0.3);
  border-radius: 999px;
}
.bubble {
  max-width: 84%;
  padding: 9px 12px 7px;
  border-radius: 4px 4px 4px 2px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--velvet-raise);
  color: var(--ivory);
  border: 1px solid rgba(201, 164, 73, 0.18);
  align-self: flex-start;
  animation: bubble-in .35s cubic-bezier(.2, .8, .25, 1);
  position: relative;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.bubble-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--velvet);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 1px;
  border: 1px solid rgba(201, 164, 73, 0.3);
}
.urgent-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--film-red);
  color: var(--ivory);
  padding: 2px 6px;
  border-radius: 1px;
  animation: urgent-flash 1.2s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.urgent-badge::before {
  content: '●';
  font-size: 6px;
  color: #fff;
}
@keyframes urgent-flash {
  0%, 100% { background: var(--film-red); }
  50% { background: var(--film-red-soft); }
}
.bubble.urgent {
  border-color: var(--film-red);
  border-width: 1.5px;
  background: linear-gradient(180deg, #1a0c0c 0%, #160a0a 100%);
}
.bubble-text { display: block; }
.bubble-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ivory-dim);
  margin-top: 5px;
  letter-spacing: 0.08em;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--velvet-raise);
  border: 1px solid rgba(201, 164, 73, 0.18);
  border-radius: 4px 4px 4px 2px;
  align-self: flex-start;
  margin-top: 4px;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--velvet);
  border-top: 1px solid rgba(201, 164, 73, 0.25);
}
.chat-input-field {
  flex: 1;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ivory-dim);
  padding: 8px 12px;
  background: var(--velvet-raise);
  border: 1px solid rgba(201, 164, 73, 0.2);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.chat-send {
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--velvet);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform .12s, background .12s;
  font-weight: 700;
}
.chat-send:active { transform: scale(0.92); }

/* Skin switcher */
.skin-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.skin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 8px;
}
.skin-btn {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201, 164, 73, 0.5);
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  border-radius: 1px;
}
.skin-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 73, 0.08);
  color: var(--gold);
}
.skin-btn.active {
  background: var(--gold);
  color: var(--velvet);
  border-color: var(--gold);
}

/* ── Skin: WhatsApp (cinema-flavored) ── */
.chat-inner.skin-wa .chat-header {
  background: linear-gradient(180deg, #1d4536 0%, #0e2920 100%);
  border-bottom-color: var(--wa-green);
}
.chat-inner.skin-wa .chat-avatar { background: var(--wa-green); color: var(--velvet); border-color: var(--wa-green); }
.chat-inner.skin-wa .chat-head-status { color: var(--wa-green); }
.chat-inner.skin-wa .chat-messages { background: #0d1a14; }
.chat-inner.skin-wa .bubble { background: #11342a; border-color: var(--wa-green-d); }
.chat-inner.skin-wa .bubble-tag { background: var(--wa-green); color: var(--velvet); border-color: var(--wa-green); }
.chat-inner.skin-wa .chat-send { background: var(--wa-green); border-color: var(--wa-green); color: var(--velvet); }
.chat-inner.skin-wa .skin-btn.active { background: var(--wa-green); border-color: var(--wa-green); color: var(--velvet); }

/* ── Skin: Telegram ── */
.chat-inner.skin-tg .chat-header {
  background: linear-gradient(180deg, #1a3a52 0%, #0a1d2c 100%);
  border-bottom-color: var(--tg-blue);
}
.chat-inner.skin-tg .chat-avatar { background: var(--tg-blue); color: var(--velvet); border-color: var(--tg-blue); }
.chat-inner.skin-tg .chat-head-status { color: var(--tg-blue); }
.chat-inner.skin-tg .chat-messages { background: #08121b; }
.chat-inner.skin-tg .bubble { background: #102a3d; border-color: var(--tg-blue-d); }
.chat-inner.skin-tg .bubble-tag { background: var(--tg-blue); color: var(--velvet); border-color: var(--tg-blue); }
.chat-inner.skin-tg .chat-send { background: var(--tg-blue); border-color: var(--tg-blue); color: var(--velvet); }
.chat-inner.skin-tg .skin-btn.active { background: var(--tg-blue); border-color: var(--tg-blue); color: var(--velvet); }

/* ── Skin: Messenger ── */
.chat-inner.skin-ms .chat-header {
  background: linear-gradient(135deg, #002f63 0%, #2c0d4a 100%);
  border-bottom-color: var(--ms-purple);
}
.chat-inner.skin-ms .chat-avatar {
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
  color: var(--ivory);
  border-color: var(--ms-purple);
}
.chat-inner.skin-ms .chat-head-status { color: #c4a8ff; }
.chat-inner.skin-ms .chat-messages { background: #110a1c; }
.chat-inner.skin-ms .bubble { background: #1a1330; border-color: var(--ms-purple); }
.chat-inner.skin-ms .bubble-tag { background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple)); color: var(--ivory); border-color: var(--ms-purple); }
.chat-inner.skin-ms .chat-send {
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
  border-color: var(--ms-purple);
  color: var(--ivory);
}
.chat-inner.skin-ms .skin-btn.active {
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
  border-color: var(--ms-purple);
  color: var(--ivory);
}

/* ─────────────────────────────────────────
   NEWS HIGHLIGHTS (home)
───────────────────────────────────────── */
.news-section {
  padding: 80px 0;
  background: var(--velvet);
  border-top: 1px solid rgba(201, 164, 73, 0.12);
}
.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.news-card {
  background: var(--velvet-soft);
  border: 1px solid rgba(201, 164, 73, 0.18);
  border-radius: 2px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.news-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(201, 164, 73, 0.25);
}
.news-card.urgency-breaking {
  border-color: var(--film-red);
  background: linear-gradient(180deg, #1a0c0c 0%, var(--velvet-soft) 100%);
}
.news-card.urgency-breaking::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--film-red);
}
.news-card.urgency-high {
  border-color: var(--gold);
}
.news-card.urgency-high::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}
.news-card .nc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}
.nc-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(201, 164, 73, 0.4);
  color: var(--gold);
  background: rgba(201, 164, 73, 0.05);
}
.news-card.urgency-breaking .nc-tag {
  background: var(--film-red);
  color: var(--ivory);
  border-color: var(--film-red);
}
.news-card.urgency-high .nc-tag {
  background: var(--gold);
  color: var(--velvet);
  border-color: var(--gold);
}
.nc-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
}
.news-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ivory);
  font-weight: 700;
}
.news-card p {
  font-size: 13.5px;
  color: var(--ivory-soft);
  margin: 0 0 14px;
  line-height: 1.55;
  opacity: 0.85;
}
.nc-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(201, 164, 73, 0.12);
  padding-top: 10px;
}
.nc-meta .src { color: var(--gold); }
.news-card.urgency-breaking .nc-meta .src { color: var(--film-red); }

/* ─────────────────────────────────────────
   QUOTE STRIP
───────────────────────────────────────── */
.quote-scene {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(ellipse at center, rgba(201, 164, 73, 0.06) 0%, transparent 60%),
    var(--velvet-deep);
  text-align: center;
  border-top: 1px solid rgba(201, 164, 73, 0.2);
  border-bottom: 1px solid rgba(201, 164, 73, 0.2);
  overflow: hidden;
}
.quote-scene::before, .quote-scene::after {
  content: '';
  position: absolute;
  width: 60px; height: 1px;
  background: var(--gold);
  left: 50%;
  transform: translateX(-50%);
}
.quote-scene::before { top: 36px; }
.quote-scene::after { bottom: 36px; }
.quote-mark {
  font-family: var(--font-head);
  font-size: 90px;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}
.quote-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.35;
  max-width: 36ch;
  margin: 0 auto 26px;
  color: var(--ivory);
  font-weight: 400;
}
.quote-author {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-dim);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────
   CTA strip
───────────────────────────────────────── */
.cta-scene {
  padding: 80px 0;
  text-align: center;
  background: var(--velvet);
  border-top: 1px solid rgba(201, 164, 73, 0.12);
  position: relative;
}
.cta-scene h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
}
.cta-scene h2 .accent { color: var(--gold); font-style: italic; font-weight: 400; }
.cta-scene p {
  color: var(--ivory-soft);
  max-width: 56ch;
  margin: 0 auto 28px;
  font-size: 15.5px;
  line-height: 1.7;
  opacity: 0.85;
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--velvet);
  background: var(--gold);
  padding: 14px 32px;
  border: 1px solid var(--gold);
  font-weight: 700;
  transition: all .18s;
}
.cta-btn:hover {
  background: var(--velvet);
  color: var(--gold);
  border-color: var(--gold);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 5;
  background: var(--velvet-deep);
  border-top: 1px solid rgba(201, 164, 73, 0.2);
  padding: 50px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--ivory);
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.footer-meta {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-dim);
  display: grid;
  gap: 3px;
}
.footer-meta a { color: var(--gold); }
.footer-meta code {
  background: var(--velvet-raise);
  color: var(--ivory-soft);
  padding: 1px 6px;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ─────────────────────────────────────────
   LISTING PAGES (article.html, news.html)
───────────────────────────────────────── */
.listing-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at center 30%, rgba(201, 164, 73, 0.06) 0%, transparent 70%),
    var(--velvet);
  border-bottom: 1px solid rgba(201, 164, 73, 0.18);
}
.listing-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  border: 1px solid rgba(201, 164, 73, 0.4);
  padding: 5px 16px;
  margin-bottom: 22px;
  background: rgba(201, 164, 73, 0.04);
}
.listing-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--ivory);
}
.listing-hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 400; }
.listing-hero p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ivory-soft);
  font-size: 16.5px;
  line-height: 1.65;
  opacity: 0.9;
}
@media (max-width: 720px) { .listing-hero { padding: 56px 0 40px; } }

/* Chips */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 6px 12px;
  border: 1px solid rgba(201, 164, 73, 0.3);
  border-radius: 999px;
  background: var(--velvet-soft);
}
.chip.accent {
  color: var(--velvet);
  background: var(--gold);
  border-color: var(--gold);
}

/* Article list */
.article-list {
  display: grid;
  gap: 18px;
}
.article-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  padding: 26px 28px;
  background: var(--velvet-soft);
  border: 1px solid rgba(201, 164, 73, 0.18);
  border-radius: 2px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  align-items: start;
}
.article-row:hover {
  border-color: var(--gold);
  transform: translateX(-4px);
  box-shadow: 0 14px 30px -16px rgba(201, 164, 73, 0.3);
}
.article-row .num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  opacity: 0.7;
}
.article-row .body h2 {
  font-family: var(--font-head);
  font-size: 23px;
  line-height: 1.18;
  margin: 0 0 10px;
  color: var(--ivory);
  font-weight: 700;
}
.article-row .body p {
  color: var(--ivory-soft);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 16px;
  opacity: 0.85;
}
.article-row .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-dim);
  letter-spacing: 0.06em;
}
.article-row .meta .cat { color: var(--gold); }
.article-row .meta .author { color: var(--ivory-soft); }
.article-row .side {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
  border-right: 1px solid rgba(201, 164, 73, 0.2);
  padding-left: 18px;
  display: grid;
  gap: 4px;
  align-self: center;
}
.article-row .side .read {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .article-row { grid-template-columns: 50px 1fr; }
  .article-row .side { grid-column: 1/-1; padding-left: 0; padding-top: 14px; border-right: none; border-top: 1px solid rgba(201, 164, 73, 0.18); display: flex; gap: 14px; }
  .article-row .num { font-size: 28px; }
  .article-row .body h2 { font-size: 19px; }
}

/* News list */
.news-list { display: grid; gap: 14px; }
.news-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  padding: 22px 26px;
  background: var(--velvet-soft);
  border: 1px solid rgba(201, 164, 73, 0.18);
  border-radius: 2px;
  transition: border-color .2s, transform .2s;
  align-items: center;
}
.news-row:hover { border-color: var(--gold); transform: translateX(-3px); }
.news-row.urgency-breaking {
  border-color: var(--film-red);
  border-width: 1.5px;
  background: linear-gradient(180deg, #1a0c0c 0%, var(--velvet-soft) 100%);
}
.news-row.urgency-high {
  border-color: var(--gold);
}
.news-row .time-block {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
  display: grid;
  gap: 3px;
  border-left: 1px solid rgba(201, 164, 73, 0.2);
  padding-left: 14px;
  text-align: left;
}
.news-row .time-block .time { color: var(--gold); font-size: 16px; font-weight: 700; }
.news-row.urgency-breaking .time-block .time { color: var(--film-red); }
.news-row .body h2 {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ivory);
  font-weight: 700;
}
.news-row .body p {
  color: var(--ivory-soft);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 10px;
  opacity: 0.85;
}
.news-row .body .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
}
.news-row .body .meta .cat { color: var(--gold); }
.news-row.urgency-breaking .body .meta .cat { color: var(--film-red); }
.news-row .urgency-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
}
.news-row.urgency-breaking .urgency-flag {
  background: var(--film-red);
  color: var(--ivory);
  border-color: var(--film-red);
  animation: urgent-flash 1.4s ease-in-out infinite;
}
.news-row.urgency-high .urgency-flag {
  background: var(--gold);
  color: var(--velvet);
  border-color: var(--gold);
}
@media (max-width: 720px) {
  .news-row { grid-template-columns: 1fr; }
  .news-row .time-block { border-left: none; border-bottom: 1px solid rgba(201, 164, 73, 0.18); padding-left: 0; padding-bottom: 12px; }
  .news-row .urgency-flag { justify-self: start; }
}

/* ─────────────────────────────────────────
   Reduced motion
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .ticker-track { animation: none; }
  .brand-reel { animation: none; }
  .letterbox-dot, .urgent-badge, .rec-pulse, .typing-dot { animation: none !important; }
}
