/* public/css/feed.css — TikTok-style creator feed.
   NovaReel dark theme: cyan #00F2EA, coral #FF4D6D, bg #0a0a0a */

:root {
  --cyan: #00F2EA;
  --coral: #FF4D6D;
  --bg: #0a0a0a;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text-muted: #888;
  --font: 'DM Sans', sans-serif;
  --font-heading: 'Syne', sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ── Feed bar ────────────────────────────────────────────────────────────── */

.feed-bar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; height: 60px; gap: 16px;
}

.feed-bar-left { flex-shrink: 0; }
.feed-logo {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.2rem; color: var(--cyan); text-decoration: none;
  letter-spacing: -0.01em;
}

.feed-tabs {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}
.feed-tab {
  background: none; border: none;
  color: var(--text-muted); font-family: var(--font);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 18px; border-radius: 20px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.feed-tab:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.feed-tab.active {
  background: var(--cyan); color: #000; font-weight: 600;
}

.feed-bar-right { flex-shrink: 0; }

.feed-view-toggle {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.view-toggle-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  padding: 7px 10px; border-radius: 10px;
  display: flex; align-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.view-toggle-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.view-toggle-btn.active {
  background: var(--cyan); color: #000; border-color: var(--cyan);
}
.feed-post-btn {
  background: var(--coral); color: #fff;
  padding: 8px 18px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
  white-space: nowrap;
}
.feed-post-btn:hover { opacity: 0.85; text-decoration: none; }

/* ── Empty state ─────────────────────────────────────────────────────────── */

.feed-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh;
  text-align: center; padding: 40px 24px;
  gap: 16px;
}
.feed-empty-icon { margin-bottom: 8px; }
.feed-empty h2 {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
}
.feed-empty p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.feed-empty a { color: var(--cyan); }

/* ── Video feed ───────────────────────────────────────────────────────────── */

.video-feed {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  padding-bottom: 60px;
}

.video-card {
  position: relative;
  width: 100%; max-width: 480px;
  min-height: 75vh;
  display: flex; flex-direction: column;
}

.video-wrap {
  position: relative; flex: 1;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.video-player {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  min-height: 60vh;
}

/* Muted badge */
.video-muted-badge {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.78rem; font-weight: 500;
  padding: 6px 14px; border-radius: 20px;
  backdrop-filter: blur(4px);
  opacity: 1; transition: opacity 0.4s;
  pointer-events: none;
}
.video-muted-badge.hidden { opacity: 0; }

/* ── Right sidebar actions ───────────────────────────────────────────────── */

.video-actions {
  position: absolute; right: 12px; bottom: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.action-avatar {
  display: block; margin-bottom: 4px;
}
.action-avatar-inner {
  width: 48px; height: 48px;
  border-radius: 50%; background: var(--surface2);
  border: 2px solid var(--coral);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.action-avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem; color: var(--coral);
}

.action-btn {
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; color: var(--text);
  transition: color 0.2s;
}
.action-btn:hover { color: var(--cyan); }
.like-btn.liked .like-icon { fill: var(--coral); stroke: var(--coral); }
.action-count { font-size: 0.72rem; font-weight: 500; color: var(--text); }

.action-views {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text); font-size: 0.72rem; font-weight: 500;
}
.view-count { }

/* ── Bottom overlay ──────────────────────────────────────────────────────── */

.video-footer {
  padding: 16px 20px 24px;
  background: linear-gradient(transparent, rgba(10,10,10,0.95));
}
.video-creator-row { margin-bottom: 8px; }
.video-creator-link { text-decoration: none; }
.video-creator-handle {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem; color: var(--text); display: block;
}
.video-creator-name { font-size: 0.8rem; color: var(--text-muted); }
.video-caption {
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
  line-height: 1.5; margin-bottom: 8px;
}
.video-hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag {
  color: var(--cyan); font-size: 0.82rem; font-weight: 500;
}

/* ── Sentinel / infinite scroll ──────────────────────────────────────────── */

.feed-sentinel { height: 80px; width: 100%; }

/* ── Single post page ────────────────────────────────────────────────────── */

.single-post-page {
  max-width: 480px; margin: 0 auto;
  padding: 24px 16px 60px;
}
.single-post-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}
.single-post-video-wrap {
  background: #000;
}
.single-post-video {
  width: 100%; display: block; max-height: 60vh; object-fit: contain;
}
.single-post-meta { padding: 20px; }
.single-post-creator {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.single-post-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface2); border: 1.5px solid var(--cyan);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.single-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.single-post-creator-info { display: flex; flex-direction: column; gap: 2px; }
.creator-handle {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.95rem; color: var(--cyan); text-decoration: none;
}
.creator-name { font-size: 0.82rem; color: var(--text-muted); }
.single-post-caption {
  font-size: 0.95rem; line-height: 1.5; margin-bottom: 12px; color: var(--text);
}
.single-post-hashtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.single-post-stats { display: flex; gap: 16px; margin-bottom: 16px; }
.stat-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-muted);
}
.like-btn-single {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 10px 18px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: background 0.2s;
}
.like-btn-single:hover { background: rgba(255,77,109,0.1); border-color: var(--coral); }
.like-btn-single.liked { background: rgba(255,77,109,0.15); border-color: var(--coral); }
.like-btn-single.liked .like-icon { fill: var(--coral); stroke: var(--coral); }
.single-post-back { margin-top: 20px; }
.single-post-back a { color: var(--cyan); font-size: 0.9rem; }

/* ── Follow button (live) ────────────────────────────────────────────────── */

.follow-btn { background: var(--coral); color: #fff; border: none; border-radius: 20px; padding: 6px 16px; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: var(--font); }
.follow-btn.following { background: transparent; border: 1px solid var(--coral); color: var(--coral); }

/* ── Owner bar ──────────────────────────────────────────────────────────── */

.post-owner-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.owner-badge {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
}
.owner-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 0.82rem; font-weight: 500;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.owner-action-btn:hover { background: rgba(255,255,255,0.08); }
.owner-action-btn--cyan { border-color: var(--cyan); color: var(--cyan); }
.owner-action-btn--cyan:hover { background: rgba(0,242,234,0.1); }
.owner-action-btn--coral { border-color: var(--coral); color: var(--coral); }
.owner-action-btn--coral:hover { background: rgba(255,77,109,0.1); }

/* ── Edit Post Modal ────────────────────────────────────────────────────── */

.edit-post-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.edit-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.edit-modal-box {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  margin: 0 16px;
}
.edit-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.edit-modal-header h2 {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text);
}
.edit-modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 1.8rem;
  cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.edit-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.edit-modal-tabs {
  display: flex; gap: 4px; padding: 16px 24px 0;
  border-bottom: 1px solid var(--border);
}
.edit-tab {
  background: none; border: none; color: var(--text-muted);
  font-family: var(--font); font-size: 0.88rem; font-weight: 500;
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.edit-tab:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.edit-tab.active { background: var(--cyan); color: #000; font-weight: 600; }

.edit-modal-body { padding: 20px 24px 24px; }

/* Tab content defaults */
.edit-tab-content { display: none; }
.edit-tab-content h3 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--text); margin-bottom: 12px; }

/* Tab: Media */
.edit-media-preview { margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: #000; }
.edit-media-player { width: 100%; max-height: 240px; display: block; object-fit: contain; }
.edit-media-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.edit-media-label { font-size: 0.82rem; color: var(--text-muted); }
.edit-media-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.edit-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 0.82rem; font-weight: 500;
  padding: 8px 16px; border-radius: 20px; cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.edit-action-btn:hover { background: rgba(255,255,255,0.08); }
.edit-action-btn--warn { border-color: var(--coral); color: var(--coral); }
.edit-action-btn--warn:hover { background: rgba(255,77,109,0.1); }

.edit-replace-zone {
  background: var(--surface2); border: 1px dashed rgba(0,242,234,0.4);
  border-radius: 12px; padding: 20px; text-align: center; cursor: pointer;
  transition: border-color 0.2s;
}
.edit-replace-zone:hover { border-color: var(--cyan); }
.edit-upload-placeholder { color: var(--text-muted); }
.edit-upload-placeholder p { font-size: 0.9rem; margin-bottom: 6px; }
.upload-hint { font-size: 0.78rem; color: var(--text-muted); }
.edit-video-preview { width: 100%; max-height: 160px; display: block; object-fit: contain; margin-top: 10px; border-radius: 8px; }
.edit-media-replace-actions { display: flex; gap: 10px; }
.edit-replace-submit-btn {
  background: var(--coral); color: #fff; border: none; border-radius: 20px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  padding: 8px 20px; cursor: pointer;
}
.edit-replace-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.edit-replace-cancel-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 20px; font-family: var(--font); font-size: 0.85rem;
  padding: 8px 16px; cursor: pointer;
}

/* Tab: Thumbnail */
.edit-thumb-scrubber { margin-bottom: 16px; position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.edit-thumb-video { width: 100%; max-height: 200px; display: block; object-fit: contain; }
.edit-thumb-timeline { height: 4px; background: rgba(255,255,255,0.1); margin-top: 4px; }
.edit-thumb-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.edit-thumb-capture-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,242,234,0.15); border: 1px solid var(--cyan); color: var(--cyan);
  font-family: var(--font); font-size: 0.82rem; font-weight: 500;
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
}
.edit-thumb-capture-btn:hover { background: rgba(0,242,234,0.25); }
.edit-thumb-or { color: var(--text-muted); font-size: 0.82rem; }
.edit-thumb-upload-label { cursor: pointer; }
.edit-thumb-preview { border-radius: 12px; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); min-height: 80px; display: flex; align-items: center; justify-content: center; }
.edit-thumb-placeholder-text { color: var(--text-muted); font-size: 0.85rem; padding: 20px; text-align: center; }

/* Tab: Details */
.edit-autosave-indicator { font-size: 0.78rem; color: var(--cyan); margin-bottom: 12px; min-height: 18px; }
.edit-field-group { margin-bottom: 16px; }
.edit-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.edit-label-hint { font-weight: 400; color: var(--text-muted); }
.edit-textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  border-radius: 10px; padding: 10px 14px; resize: vertical; min-height: 80px;
  outline: none; transition: border-color 0.2s;
}
.edit-textarea:focus { border-color: var(--cyan); }
.edit-char-count { display: block; text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.edit-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  border-radius: 10px; padding: 10px 14px; outline: none;
  transition: border-color 0.2s;
}
.edit-input:focus { border-color: var(--cyan); }
.edit-visibility-options { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-visibility-option {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 14px; cursor: pointer;
  font-size: 0.82rem; color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.edit-visibility-option input { display: none; }
.edit-visibility-option.selected { border-color: var(--cyan); color: var(--cyan); }
.edit-details-actions { margin-top: 20px; }
.edit-save-btn {
  background: var(--coral); color: #fff; border: none; border-radius: 24px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  padding: 10px 28px; cursor: pointer; width: 100%;
}
.edit-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Tab: Versions */
.edit-versions-loading { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 20px; }
.edit-versions-list { display: flex; flex-direction: column; gap: 8px; }
.version-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
}
.version-info { display: flex; flex-direction: column; gap: 3px; }
.version-date { font-size: 0.82rem; color: var(--text); font-weight: 500; }
.version-size { font-size: 0.75rem; color: var(--text-muted); }
.version-restore-btn {
  background: none; border: 1px solid var(--cyan); color: var(--cyan);
  border-radius: 16px; font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  padding: 5px 12px; cursor: pointer; transition: background 0.2s;
}
.version-restore-btn:hover { background: rgba(0,242,234,0.1); }

/* Restore confirmation modal */
.restore-modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
}
.restore-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.restore-modal-box {
  position: relative; z-index: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  max-width: 380px; width: 100%; margin: 0 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.restore-modal-box h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text); margin-bottom: 10px; }
.restore-modal-box p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.restore-modal-actions { display: flex; gap: 10px; }
.restore-confirm-btn {
  background: var(--coral); color: #fff; border: none; border-radius: 20px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 600; padding: 9px 20px; cursor: pointer;
}
.restore-confirm-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.restore-cancel-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 20px; font-family: var(--font); font-size: 0.85rem;
  padding: 9px 16px; cursor: pointer;
}

/* ── Replace modal (existing) ──────────────────────────────────────────── */

.replace-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
}
.replace-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.replace-modal-box {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6); margin: 0 16px;
}
.replace-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
}
.replace-modal-header h2 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }
.replace-modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 1.8rem;
  cursor: pointer; line-height: 1;
}
.replace-upload-zone {
  margin: 0 24px; border: 2px dashed rgba(0,242,234,0.4);
  border-radius: 16px; padding: 40px 24px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 0.2s; position: relative;
}
.replace-upload-zone:hover { border-color: var(--cyan); }
.replace-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.replace-upload-placeholder p { font-size: 0.9rem; color: var(--text); }
.replace-video-preview { width: 100%; max-height: 200px; display: block; object-fit: contain; border-radius: 8px; }
.replace-upload-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; border-radius: 14px;
}
.replace-upload-overlay p { font-size: 0.88rem; color: var(--text); }
.replace-modal-actions { display: flex; gap: 10px; padding: 16px 24px; }
.replace-submit-btn {
  background: var(--coral); color: #fff; border: none; border-radius: 20px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  padding: 9px 24px; cursor: pointer;
}
.replace-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.replace-cancel-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 20px; font-family: var(--font); font-size: 0.88rem;
  padding: 9px 18px; cursor: pointer;
}
.replace-note { padding: 0 24px 20px; font-size: 0.75rem; color: var(--text-muted); }

/* ── Toast ─────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════════════
   FEED POST CARD (vertical scroll layout — replaces old full-screen video)
   ════════════════════════════════════════════════════════════════════════════ */

.feed-layout {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 60px;
}

/* Post card — vertical scroll card */
.post-card {
  width: 100%; max-width: 480px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: background 0.3s;
}
.post-card:nth-child(even) { background: #0f0f12; }

/* 1. Post header */
.post-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
}
.post-header-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface2); border: 1.5px solid var(--cyan);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
}
.post-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-header-avatar .avatar-initials {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.9rem; color: var(--cyan);
}
.post-header-info { flex: 1; min-width: 0; }
.post-header-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 700; color: var(--text);
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-header-name:hover { color: var(--cyan); }
.verified-badge {
  width: 14px; height: 14px; flex-shrink: 0;
  display: inline-block;
}
.post-header-time {
  font-size: 0.72rem; color: var(--text-muted);
}
.post-header-category {
  flex-shrink: 0;
  background: var(--cyan); color: #000;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* 2. Media block — 16:9 thumbnail with play overlay */
.post-media {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: #000; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.post-media-video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.post-media-thumb {
  width: 100%; height: 100%; object-fit: cover;
}
.post-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.post-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: rgba(0,242,234,0.3); border-color: var(--cyan); }
.post-play-btn svg { margin-left: 3px; }
.post-media-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* 3. Caption block */
.post-caption-block {
  padding: 12px 16px 8px;
}
.post-caption-text {
  font-size: 0.9rem; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-caption-text.expanded {
  display: block; -webkit-line-clamp: unset;
}
.post-caption-see-more {
  background: none; border: none;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; padding: 0; margin-top: 4px;
  font-family: var(--font);
}
.post-caption-see-more:hover { color: var(--cyan); }
.post-caption-hashtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.post-hashtag { color: var(--cyan); font-size: 0.82rem; font-weight: 500; }

/* 4. Engagement row */
.post-engagement {
  display: flex; align-items: center; gap: 20px;
  padding: 8px 16px;
}
.post-engagement-btn {
  background: none; border: none;
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; font-family: var(--font);
  transition: color 0.2s;
  padding: 4px 0;
}
.post-engagement-btn:hover { color: var(--text); }
.post-engagement-btn.liked { color: var(--coral); }
.post-engagement-btn.liked .eng-icon { fill: var(--coral); stroke: var(--coral); }
.eng-icon { width: 18px; height: 18px; flex-shrink: 0; }
.post-engagement-btn--repost { }
.post-engagement-btn--comment { }
.post-engagement-views {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.78rem;
  margin-left: auto;
}

/* 5. Permissions row — only shown when creator enabled them */
.post-permissions {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 12px;
  flex-wrap: wrap;
}
.permissions-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,242,234,0.06); border: 1px solid rgba(0,242,234,0.2);
  color: var(--cyan);
}
.permissions-tag svg { width: 12px; height: 12px; }
.post-perm-download .permissions-tag { background: rgba(0,242,234,0.06); color: var(--cyan); border-color: rgba(0,242,234,0.2); }
.post-perm-repost .permissions-tag { background: rgba(255,77,109,0.06); color: var(--coral); border-color: rgba(255,77,109,0.2); }
.post-perm-share .permissions-tag { background: rgba(0,242,234,0.06); color: var(--cyan); border-color: rgba(0,242,234,0.2); }
.post-perm-link { cursor: pointer; }
.post-perm-link .permissions-tag { background: transparent; border-color: var(--border); color: var(--text-muted); }
.post-perm-link .permissions-tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* 6. Card divider */
.post-divider { height: 1px; background: var(--border); }

/* ── Feed tab content layout (replaces full-screen video mode) ─────────── */

.feed-container {
  max-width: 480px; margin: 0 auto; width: 100%;
}

/* ── Onboarding Checklist ───────────────────────────────────────────────── */

.onboarding-panel {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 300;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #00F2EA 0%, #FF4D6D 100%);
}
.onboarding-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
}
.onboarding-close {
  background: none;
  border: none;
  color: rgba(0,0,0,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.onboarding-close:hover { color: #000; }

.onboarding-body { padding: 12px 16px; }
.onboarding-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.onboarding-step:hover { border-color: var(--cyan); }
.onboarding-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,242,234,0.12);
  border: 1px solid rgba(0,242,234,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onboarding-step-icon svg { width: 14px; height: 14px; }
.onboarding-step-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onboarding-step-check svg { width: 14px; height: 14px; stroke: #000; }
.onboarding-step-text { flex: 1; }
.onboarding-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.onboarding-step-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.onboarding-step-link {
  text-decoration: none;
}
.onboarding-step-link:hover .onboarding-step {
  background: rgba(0,242,234,0.06);
}

.onboarding-footer {
  padding: 10px 16px 14px;
  text-align: center;
}
.onboarding-dismiss-btn {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}
.onboarding-dismiss-btn:hover { opacity: 0.85; }

/* Responsive — wider screens show 3-col card grid */
@media (min-width: 900px) {
  .feed-layout { flex-direction: row; justify-content: center; padding: 0 0 60px; gap: 0; }
  .feed-container { max-width: 640px; }
  .onboarding-panel { right: 24px; }
}

@media (max-width: 480px) {
  .onboarding-panel { right: 12px; left: 12px; width: auto; }
}