/* ═══════════════════════════════════════
   THE NILE — COMPLETE STYLESHEET
   Full-screen feed, newspaper landing
   ═══════════════════════════════════════ */

:root {
  --bg: #FAFAF7;
  --bg2: #F2F0EA;
  --bg3: #E8E5DC;
  --bg4: #DEDAD0;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.15);
  --accent: #B8922A;
  --accent2: #D4A83A;
  --text: #0A0A08;
  --muted: rgba(10,10,8,0.5);
  --muted2: rgba(10,10,8,0.3);
  --font: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--border2); }

/* ── BUTTONS ── */
.btn-primary { padding: 10px 22px; background: var(--accent); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: #FAFAF7; letter-spacing: 0.8px; text-transform: uppercase; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent2); }
.btn-outline { padding: 9px 18px; border: 1px solid var(--border2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 11px; color: var(--text); letter-spacing: 0.5px; text-transform: uppercase; transition: border-color 0.2s, color 0.2s; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s; }
.btn-text:hover { color: var(--accent); }
.btn-submit { width: 100%; padding: 13px; background: var(--accent); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; color: #FAFAF7; letter-spacing: 1px; text-transform: uppercase; transition: background 0.2s; margin-top: 6px; }
.btn-submit:hover { background: var(--accent2); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); transition: color 0.15s; border-radius: var(--radius); }
.icon-btn:hover { color: var(--text); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 9px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RULES ── */
.masthead-rule { height: 1px; background: var(--border2); }
.masthead-rule.thick { height: 3px; background: var(--text); }

/* ═══════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════ */
#page-landing { position: fixed; inset: 0; overflow-y: auto; background: var(--bg); }

.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 40px; border-bottom: 1px solid var(--border); }
.top-bar-left, .top-bar-right { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.top-bar-center { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 2px; text-transform: uppercase; }

.masthead { padding: 0 40px; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.masthead-logo { font-family: var(--font-serif); font-size: clamp(48px, 8vw, 96px); font-weight: 900; color: var(--text); letter-spacing: -2px; line-height: 1; text-align: center; flex: 1; }
.masthead-tagline { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 2px; text-transform: uppercase; flex: 1; text-align: center; }
.masthead-tagline:first-child { text-align: left; }
.masthead-tagline:last-child { text-align: right; }
.section-nav { display: flex; overflow-x: auto; }
.snav-item { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 9px 18px; cursor: pointer; transition: color 0.2s; border-right: 1px solid var(--border); white-space: nowrap; }
.snav-item:first-child { border-left: 1px solid var(--border); }
.snav-item:hover, .snav-item.active { color: var(--accent); }

.front-page { padding: 0 40px; border-bottom: 1px solid var(--border); }
.front-page-inner { display: grid; grid-template-columns: 1fr 1px 320px; min-height: 70vh; align-items: start; }
.headline-section { padding: 40px 36px 40px 0; }
.dateline { font-family: var(--font-mono); font-size: 9px; color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 16px; }
.main-headline { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -1.5px; color: var(--text); margin-bottom: 0; }
.main-headline em { font-style: italic; color: var(--accent); }
.headline-rule { width: 36px; height: 2px; background: var(--accent); margin: 18px 0; }
.deck { font-size: 14px; color: var(--muted); line-height: 1.75; max-width: 520px; font-style: italic; border-left: 2px solid rgba(184,146,42,0.35); padding-left: 14px; margin-bottom: 28px; }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-count { font-family: var(--font-mono); font-size: 10px; color: var(--muted2); }
.hero-count span { color: var(--accent); }
.col-rule { background: var(--border2); }
.front-clips { padding: 40px 0 40px 28px; }
.front-section-head { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted2); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.front-clip-item { display: flex; gap: 12px; padding: 12px 0; cursor: pointer; }
.front-clip-item:hover .fci-title { color: var(--accent); }
.fci-thumb { width: 52px; height: 52px; border-radius: var(--radius); background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid var(--border); }
.fci-text { flex: 1; }
.fci-cat { font-family: var(--font-mono); font-size: 8px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.fci-title { font-family: var(--font-serif); font-size: 12px; font-weight: 700; font-style: italic; color: var(--text); line-height: 1.35; margin-bottom: 4px; transition: color 0.2s; }
.fci-by { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); margin-bottom: 4px; }
.fci-play { font-family: var(--font-mono); font-size: 9px; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.front-rule { height: 1px; background: var(--border); }

.waitlist-band { border-top: 3px solid var(--text); border-bottom: 3px solid var(--text); padding: 36px 40px; background: var(--bg2); }
.waitlist-band-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.wb-headline { font-family: var(--font-serif); font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.wb-sub { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.wb-form { display: flex; border: 1px solid var(--border2); overflow: hidden; max-width: 420px; margin: 0 auto; }
.wb-input { flex: 1; background: var(--bg); border: none; padding: 12px 16px; font-size: 14px; color: var(--text); outline: none; }
.wb-input::placeholder { color: var(--muted2); }
.wb-btn { padding: 12px 18px; background: var(--accent); font-family: var(--font-mono); font-size: 10px; color: #FAFAF7; letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; white-space: nowrap; border: none; transition: background 0.2s; }
.wb-btn:hover { background: var(--accent2); }

.sections-page { padding: 60px 40px; }
.sections-header { text-align: center; margin-bottom: 40px; }
.section-eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; font-style: italic; padding: 10px 0; }
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.section-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 24px; transition: background 0.2s; cursor: pointer; position: relative; overflow: hidden; }
.section-card:hover { background: var(--bg2); }
.section-card-img { position: absolute; top: 0; right: 0; width: 80px; height: 80px; object-fit: cover; opacity: 0.08; border-radius: 0 0 0 60px; }
.sc-num { font-family: var(--font-serif); font-size: 28px; font-weight: 900; color: var(--accent); font-style: italic; margin-bottom: 10px; }
.sc-name { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.3px; }
.sc-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.manifesto-section { padding: 0 40px; }
.manifesto-inner { padding: 60px 0; max-width: 600px; margin: 0 auto; text-align: center; }
.manifesto-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.manifesto-quote { font-family: var(--font-serif); font-size: 20px; font-weight: 700; font-style: italic; line-height: 1.6; color: var(--text); margin-bottom: 18px; letter-spacing: -0.3px; }
.manifesto-sig { font-family: var(--font-mono); font-size: 10px; color: var(--muted2); letter-spacing: 1px; }

.footer { padding: 32px 40px; text-align: center; border-top: 1px solid var(--border); }
.footer-masthead { font-family: var(--font-serif); font-size: 32px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.footer-tagline { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-links a { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); }

/* ═══════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════ */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--bg); border: 1px solid var(--border2); border-radius: 4px; padding: 36px; width: 100%; max-width: 400px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: var(--radius); background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); transition: color 0.15s; }
.modal-close:hover { color: var(--text); }
.modal-masthead { font-family: var(--font-serif); font-size: 28px; font-weight: 900; color: var(--text); text-align: center; letter-spacing: -1px; margin-bottom: 4px; }
.modal-tagline { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 2px; text-transform: uppercase; text-align: center; margin-bottom: 22px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-error { background: rgba(200,50,50,0.08); border: 1px solid rgba(200,50,50,0.2); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: #cc3333; margin-bottom: 14px; }
.auth-success { background: rgba(184,146,42,0.08); border: 1px solid rgba(184,146,42,0.2); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 12px; font-size: 14px; color: var(--text); outline: none; transition: border-color 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted2); }
.field textarea { resize: none; }
.field select option { background: var(--bg); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-social { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); transition: border-color 0.2s; margin-bottom: 10px; }
.btn-social:hover { border-color: var(--border2); background: var(--bg2); }
.auth-footer-link { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; font-family: var(--font-mono); }
.auth-footer-link a { color: var(--accent); }

/* ═══════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════ */
#page-app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.app-header { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--bg); border-bottom: 2px solid var(--text); flex-shrink: 0; z-index: 50; }
.app-masthead { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.app-header-left, .app-header-right { display: flex; align-items: center; gap: 4px; width: 100px; }
.app-header-right { justify-content: flex-end; }
.app-date { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 1px; text-transform: uppercase; }
.app-header-rule { height: 1px; background: var(--border2); flex-shrink: 0; }
.app-body { flex: 1; display: flex; overflow: hidden; }

/* SIDEBAR */
.sidebar { width: 188px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 8px 10px; background: var(--bg); overflow-y: auto; }
.sidebar-section-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted2); padding: 0 8px; margin-bottom: 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius); font-size: 13px; color: var(--muted); cursor: pointer; transition: all 0.2s; margin-bottom: 1px; }
.nav-item:hover { background: var(--bg2); color: var(--text); }
.nav-item.active { background: rgba(184,146,42,0.08); color: var(--accent); border-left: 2px solid var(--accent); padding-left: 8px; }
.nav-item i { font-size: 16px; flex-shrink: 0; }
.badge { margin-left: auto; background: var(--accent); color: #FAFAF7; font-family: var(--font-mono); font-size: 9px; padding: 1px 5px; border-radius: 1px; }
.sidebar-rule { height: 1px; background: var(--border); margin: 10px 0; }
.sidebar-editions { display: flex; flex-direction: column; margin-bottom: 10px; }
.edition-item { font-family: var(--font-mono); font-size: 10px; color: var(--muted2); padding: 5px 10px; letter-spacing: 0.5px; cursor: pointer; transition: color 0.2s; border-radius: var(--radius); }
.edition-item:hover { color: var(--accent); background: var(--bg2); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--border); cursor: pointer; transition: background 0.15s; margin-top: auto; }
.sidebar-user:hover { background: var(--bg2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8B5E3C); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: #FAFAF7; flex-shrink: 0; }
.sidebar-name { font-size: 12px; font-weight: 600; color: var(--text); }
.sidebar-handle { font-family: var(--font-mono); font-size: 10px; color: var(--muted2); }

/* MAIN */
.main { flex: 1; overflow: hidden; position: relative; }
.view { position: absolute; inset: 0; overflow-y: auto; display: none; }
.view.active { display: block; }
.view-inner { padding: 24px 28px; max-width: 720px; }
.view-masthead-label { font-family: var(--font-serif); font-size: 28px; font-weight: 900; letter-spacing: -0.8px; color: var(--text); margin-bottom: 10px; font-style: italic; }
.view-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 18px; font-style: italic; }
.view-section-label { font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.view-section-title { font-family: var(--font-serif); font-size: 17px; font-weight: 800; margin: 20px 0 12px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.view-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ═══════════════════════════════════════
   FEED — FULL SCREEN CARDS (DESKTOP + MOBILE)
   ═══════════════════════════════════════ */
#view-feed { overflow: hidden; }

.feed-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.feed-edition-label { font-family: var(--font-mono); font-size: 8px; color: var(--muted2); letter-spacing: 1.5px; text-transform: uppercase; }
.feed-tabs-bar { display: flex; }
.feed-tab { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--muted); cursor: pointer; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-bottom: 2px solid transparent; transition: color 0.2s; }
.feed-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.rss-live { display: inline-flex; align-items: center; gap: 4px; background: rgba(184,146,42,0.08); border: 1px solid rgba(184,146,42,0.2); border-radius: var(--radius); padding: 2px 8px; font-family: var(--font-mono); font-size: 8px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }

.feed-nav-arrows { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.feed-arrow { width: 32px; height: 32px; background: rgba(250,248,244,0.9); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 14px; transition: all 0.15s; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.feed-arrow:hover { color: var(--accent); border-color: var(--accent); }

.feed-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); z-index: 5; }
.feed-loading-text { font-family: var(--font-serif); font-size: 18px; font-style: italic; color: var(--text); }
.feed-loading-sub { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); letter-spacing: 1px; text-align: center; max-width: 240px; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.feed-scroll { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; }
.feed-scroll::-webkit-scrollbar { display: none; }

/* ── CLIP CARD — FULL SCREEN ── */
.clip-card {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #1a1208;
}

/* Full bleed background image */
.clip-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.clip-card:hover .clip-card-bg { transform: scale(1.02); }

/* Dark gradient overlay — bottom heavy for text */
.clip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.85) 100%
  );
  pointer-events: none;
}

/* All content sits above overlay */
.clip-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 56px 24px 24px;
}

/* Category tag */
.clip-section-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.clip-section-tag::after { content: ''; width: 30px; height: 1px; background: var(--accent); opacity: 0.5; }

/* Headline */
.clip-headline {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: #FAFAF7;
  margin-bottom: 10px;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Byline */
.clip-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.clip-byline-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.clip-byline span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.byline-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Standfirst */
.clip-standfirst {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 10px;
  border-left: 2px solid rgba(184,146,42,0.6);
  padding-left: 10px;
  font-style: italic;
  max-width: 560px;
}

.clip-article-tags {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(184,146,42,0.8);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* Inline player */
.clip-inline-player {
  background: rgba(250,248,244,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 12px 14px;
  max-width: 480px;
}
.waveform { height: 40px; display: flex; align-items: center; gap: 2px; margin-bottom: 8px; cursor: pointer; overflow: hidden; }
.wv-bar { flex: 1; min-width: 2px; border-radius: 1px; transition: height 0.12s; }
.progress-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.progress-track { flex: 1; height: 2px; background: rgba(255,255,255,0.2); border-radius: 1px; cursor: pointer; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 1px; transition: width 0.1s linear; }
.time-label { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.5); min-width: 28px; text-align: right; }
.player-controls { display: flex; align-items: center; gap: 14px; }
.ctrl-btn { color: rgba(255,255,255,0.6); font-size: 18px; transition: color 0.15s; }
.ctrl-btn:hover { color: #FAFAF7; }
.play-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #FAFAF7; transition: background 0.15s, transform 0.1s; }
.play-btn:hover { background: var(--accent2); }
.play-btn:active { transform: scale(0.94); }
.speed-tag { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.5); padding: 3px 6px; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: all 0.15s; border-radius: var(--radius); margin-left: auto; }
.speed-tag:hover { color: var(--accent); border-color: var(--accent); }

/* Creator strip below player */
.clip-creator-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.clip-creator-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
}
.clip-creator-name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.follow-pill {
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
  color: var(--accent);
  background: transparent;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.2s;
  flex-shrink: 0;
}
.follow-pill.following { background: var(--accent); color: #FAFAF7; }

/* Action buttons — right side */
.clip-actions {
  position: absolute;
  right: 10px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 3;
}
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.action-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250,248,244,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #FAFAF7;
  transition: transform 0.15s, background 0.15s;
}
.action-btn:hover .action-circle { transform: scale(1.1); background: rgba(250,248,244,0.25); }
.action-btn.liked .action-circle { background: rgba(184,146,42,0.3); color: var(--accent); border-color: var(--accent); }
.action-btn.saved .action-circle { background: rgba(184,146,42,0.3); color: var(--accent); border-color: var(--accent); }
.action-count { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.7); font-weight: 500; letter-spacing: 0.3px; }

/* ── PLAYER BAR — BOTTOM ── */
.player-bar {
  position: absolute;
  bottom: 0;
  left: 188px;
  right: 0;
  height: 52px;
  background: rgba(10,10,8,0.95);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  z-index: 50;
  backdrop-filter: blur(20px);
}
.player-bar-edition { font-family: var(--font-mono); font-size: 7px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); flex-shrink: 0; }
.player-bar-info { flex: 1; min-width: 0; }
.player-bar-title { font-family: var(--font-serif); font-size: 13px; font-weight: 700; color: #FAFAF7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.player-bar-source { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.4); }
.player-bar-progress { flex: 1; max-width: 160px; height: 1px; background: rgba(255,255,255,0.15); cursor: pointer; }
.player-bar-fill { height: 100%; background: var(--accent); transition: width 0.1s linear; }
.player-bar-controls { display: flex; align-items: center; gap: 6px; }
.player-play { width: 30px !important; height: 30px !important; border-radius: 50% !important; background: var(--accent) !important; color: #FAFAF7 !important; font-size: 13px !important; }

/* ═══════════════════════════════════════
   DISCOVER
   ═══════════════════════════════════════ */
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; transition: border-color 0.2s; }
.search-bar:focus-within { border-color: var(--accent); }
.search-bar i { font-size: 15px; color: var(--muted); }
.search-bar input { flex: 1; background: none; border: none; outline: none; font-size: 14px; color: var(--text); }
.search-bar input::placeholder { color: var(--muted2); }
.discover-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.disc-cat { padding: 6px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; color: var(--muted); transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.disc-cat:hover, .disc-cat.active { border-color: var(--accent); color: var(--accent); background: rgba(184,146,42,0.05); }
.trend-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: padding-left 0.15s; }
.trend-item:hover { padding-left: 6px; }
.trend-rank { font-family: var(--font-serif); font-size: 20px; font-weight: 900; color: var(--accent); width: 26px; flex-shrink: 0; font-style: italic; }
.trend-name { font-size: 14px; font-weight: 600; color: var(--text); }
.trend-count { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); margin-top: 2px; }
.creators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.creator-card { background: var(--bg); padding: 16px 14px; text-align: center; cursor: pointer; transition: background 0.2s; position: relative; overflow: hidden; }
.creator-card:hover { background: var(--bg2); }
.big-av { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; color: #FAFAF7; position: relative; z-index: 1; }
.cr-name { font-family: var(--font-serif); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; position: relative; z-index: 1; }
.cr-handle { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); margin-bottom: 6px; position: relative; z-index: 1; }
.cr-follow { padding: 5px 12px; border: 1px solid var(--border2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); transition: all 0.2s; position: relative; z-index: 1; }
.cr-follow:hover, .cr-follow.following { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════
   CREATE
   ═══════════════════════════════════════ */
.rec-visualizer { height: 72px; background: var(--bg2); border-radius: var(--radius); display: flex; align-items: center; gap: 3px; padding: 0 14px; margin-bottom: 14px; border: 1px solid var(--border); overflow: hidden; }
.rv-bar { width: 3px; border-radius: 1px; background: var(--accent); transition: height 0.1s; }
.duration-row { display: flex; gap: 6px; margin-bottom: 18px; }
.dur-btn { flex: 1; padding: 7px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); transition: all 0.2s; text-align: center; }
.dur-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(184,146,42,0.05); }
.rec-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.rec-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #FAFAF7; transition: background 0.15s; }
.rec-btn:hover { background: var(--accent2); }
.rec-btn.recording { animation: pulse-rec 1.2s infinite; background: #cc3333; }
@keyframes pulse-rec { 0%,100%{box-shadow:0 0 0 0 rgba(204,51,51,0.3)} 50%{box-shadow:0 0 0 14px rgba(204,51,51,0)} }
.rec-timer { font-family: var(--font-mono); font-size: 26px; letter-spacing: 4px; color: var(--text); }
.rec-status { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 20px; }
.tool-item { background: var(--bg); padding: 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.2s; }
.tool-item:hover { background: var(--bg2); }
.tool-item i { font-size: 16px; color: var(--accent); }
.tool-item span { font-size: 12px; color: var(--text); }
.publish-form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ═══════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════ */
.profile-cover { height: 130px; background: linear-gradient(135deg,#E8E4D8 0%,#D8D0BC 100%); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.profile-cover-text { font-family: var(--font-serif); font-size: 72px; font-weight: 900; color: rgba(0,0,0,0.06); letter-spacing: -3px; line-height: 1; position: absolute; bottom: -10px; right: 20px; font-style: italic; pointer-events: none; }
.profile-content { }
.profile-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 28px; margin-top: -28px; margin-bottom: 14px; }
.profile-top-actions { display: flex; gap: 8px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),#8B5E3C); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 22px; color: #FAFAF7; border: 4px solid var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.profile-name { font-family: var(--font-serif); font-size: 26px; font-weight: 900; color: var(--text); padding: 0 28px; margin-bottom: 3px; letter-spacing: -0.8px; }
.profile-handle { font-family: var(--font-mono); font-size: 11px; color: var(--muted2); padding: 0 28px; margin-bottom: 10px; }
.profile-bio { font-size: 13px; color: var(--muted); padding: 0 28px; margin-bottom: 10px; font-style: italic; line-height: 1.55; max-width: 520px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 28px; margin-bottom: 18px; }
.profile-tag { font-family: var(--font-mono); font-size: 9px; color: var(--accent); border: 1px solid rgba(184,146,42,0.3); border-radius: var(--radius); padding: 3px 8px; letter-spacing: 0.8px; text-transform: uppercase; }
.profile-stats { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 0; }
.stat { flex: 1; padding: 14px 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .stat-n { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: var(--text); }
.stat .stat-l { font-family: var(--font-mono); font-size: 8px; color: var(--muted2); margin-top: 2px; letter-spacing: 1.5px; text-transform: uppercase; }
.profile-tabs-bar { display: flex; border-bottom: 1px solid var(--border); padding: 0 28px; }
.profile-tab { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; padding: 12px 16px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ptab-content { display: none; padding: 20px 28px; }
.ptab-content.active { display: block; }
.profile-clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.profile-clip-card { background: var(--bg); padding: 16px; cursor: pointer; transition: background 0.2s; overflow: hidden; }
.profile-clip-card:hover { background: var(--bg2); }
.profile-clip-img { width: 100%; height: 110px; object-fit: cover; display: block; border-radius: var(--radius); margin-bottom: 10px; }
.pcc-cat { font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.pcc-title { font-family: var(--font-serif); font-size: 15px; font-weight: 800; font-style: italic; color: var(--text); line-height: 1.3; margin-bottom: 6px; }
.pcc-desc { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.pcc-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 8px; }
.pcc-duration { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); }
.pcc-play { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #FAFAF7; }
.pcc-stats { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); display: flex; gap: 10px; }
.about-section { max-width: 520px; }
.about-field { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.about-field:last-child { border-bottom: none; }
.about-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.about-value { font-size: 14px; color: var(--text); line-height: 1.65; }
.profile-empty { text-align: center; padding: 50px 20px; color: var(--muted); grid-column: 1 / -1; }
.profile-empty i { font-size: 30px; opacity: 0.2; display: block; margin-bottom: 10px; }
.profile-empty p { font-size: 13px; font-style: italic; margin-bottom: 16px; }

/* ═══════════════════════════════════════
   ACTIVITY
   ═══════════════════════════════════════ */
.section-label-sm { font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: padding-left 0.15s; }
.activity-item:hover { padding-left: 6px; }
.act-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: #FAFAF7; }
.act-body { flex: 1; }
.act-text { font-size: 13px; color: var(--text); opacity: 0.8; line-height: 1.5; }
.act-time { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); margin-top: 3px; }
.act-thumb { width: 36px; height: 36px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--accent); }

/* ═══════════════════════════════════════
   LIVE
   ═══════════════════════════════════════ */
.live-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.live-card:hover { border-color: var(--accent); background: rgba(184,146,42,0.02); }
.live-pill { display: inline-flex; align-items: center; gap: 4px; background: rgba(200,50,50,0.08); border: 1px solid rgba(200,50,50,0.2); border-radius: var(--radius); padding: 2px 8px; font-family: var(--font-mono); font-size: 8px; color: #cc3333; margin-bottom: 8px; letter-spacing: 1.5px; text-transform: uppercase; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #cc3333; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.live-card-title { font-family: var(--font-serif); font-size: 16px; font-weight: 800; margin-bottom: 5px; color: var(--text); font-style: italic; }
.live-card-host { font-family: var(--font-mono); font-size: 10px; color: var(--muted2); margin-bottom: 8px; }
.live-card-stats { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 9px; color: var(--muted2); }

/* ═══════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════ */
.comments-sheet { background: var(--bg); border-top: 1px solid var(--border2); border-radius: 8px 8px 0 0; padding: 18px; width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; margin-top: auto; }
.sheet-handle { width: 36px; height: 2px; background: var(--border2); margin: 0 auto 16px; }
.sheet-title { font-family: var(--font-serif); font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--text); font-style: italic; }
.comment-item { display: flex; gap: 10px; margin-bottom: 14px; }
.comment-user { font-family: var(--font-mono); font-size: 10px; color: var(--accent); margin-bottom: 3px; }
.comment-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.comment-time { font-family: var(--font-mono); font-size: 9px; color: var(--muted2); margin-top: 3px; }
.comment-input-row { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.comment-input-row input { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--text); outline: none; transition: border-color 0.2s; font-family: var(--font); }
.comment-input-row input:focus { border-color: var(--accent); }
.comment-input-row input::placeholder { color: var(--muted2); }

/* ═══════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════ */
.mobile-nav { display: none; height: 56px; border-top: 2px solid var(--text); background: var(--bg); flex-shrink: 0; }
.mobile-nav-items { display: flex; height: 100%; }
.mob-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s; }
.mob-item.active { color: var(--accent); }
.mob-item i { font-size: 20px; }
.mob-create { background: var(--accent); border-radius: var(--radius); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin: -6px 0; }
.mob-create i { font-size: 19px; color: #FAFAF7; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .player-bar { left: 0; bottom: 56px; }
  .top-bar { padding: 6px 16px; }
  .masthead { padding: 0 16px; }
  .masthead-logo { font-size: 40px; }
  .masthead-tagline { display: none; }
  .section-nav { display: none; }
  .front-page { padding: 0 16px; }
  .front-page-inner { grid-template-columns: 1fr; }
  .col-rule { display: none; }
  .front-clips { padding: 20px 0; border-top: 1px solid var(--border); }
  .sections-grid { grid-template-columns: 1fr 1fr; }
  .sections-page { padding: 40px 16px; }
  .manifesto-section { padding: 0 16px; }
  .waitlist-band { padding: 28px 16px; }
  .feed-nav-arrows { display: none; }
  .clip-card-content { padding: 16px 52px 20px 16px; }
  .clip-headline { font-size: 22px; }
  .clip-standfirst { display: none; }
}
