    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; overflow: hidden; background: #000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff; }

    /* ── Layout ── */
    .vf-page { display: flex; height: calc(100vh - 52px); }

    /* ── Left sidebar ── */
    .vf-sidebar {
      width: 240px; flex-shrink: 0; background: #121212;
      height: 100vh; display: flex; flex-direction: column;
      padding: 0; border-right: 1px solid #1e1e1e;
    }
    .vf-logo {
      display: block; padding: 20px 20px 16px;
      font-size: 22px; font-weight: 700; color: #fff;
      text-decoration: none; letter-spacing: -0.04em;
    }
    .vf-logo:hover { color: #ccc; text-decoration: none; }

    .vf-nav { display: flex; flex-direction: column; padding: 8px 0; flex: 1; }
    .vf-nav-item {
      display: flex; align-items: center; gap: 12px;
      height: 44px; padding: 0 20px; margin: 2px 8px;
      color: rgba(255,255,255,0.75); font-size: 15px; font-weight: 500;
      text-decoration: none; border-radius: 8px; border: none;
      background: none; font-family: inherit; cursor: pointer;
      transition: background 0.12s, color 0.12s; white-space: nowrap;
    }
    .vf-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
    .vf-nav-item.active { color: #fff; font-weight: 700; }
    .vf-nav-icon { width: 24px; text-align: center; font-size: 18px; flex-shrink: 0; }

    .vf-sidebar-bottom {
      padding: 12px 16px 20px; border-top: 1px solid #1e1e1e; flex-shrink: 0;
    }
    .vf-user-row {
      display: flex; align-items: center; gap: 10px;
      padding: 8px; border-radius: 8px; cursor: pointer;
      text-decoration: none; color: #fff;
    }
    .vf-user-row:hover { background: rgba(255,255,255,0.07); text-decoration: none; }
    .vf-user-avatar {
      width: 32px; height: 32px; border-radius: 50%; background: #333;
      overflow: hidden; flex-shrink: 0; display: flex; align-items: center;
      justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
    }
    .vf-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .vf-user-pseudo { font-size: 13px; font-weight: 600; color: #fff; }
    .vf-login-link {
      display: block; padding: 8px 12px; font-size: 14px; font-weight: 600;
      color: #fff; text-decoration: none; border: 1px solid #333;
      border-radius: 8px; text-align: center;
    }
    .vf-login-link:hover { border-color: #555; text-decoration: none; }

    /* ── Center feed ── */
    .vf-center { flex: 1; overflow: hidden; display: flex; justify-content: center; background: #000; }

    #vf-feed {
      width: 460px; flex-shrink: 0; height: 100vh;
      overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none;
    }
    #vf-feed::-webkit-scrollbar { display: none; }

    /* ── Video card ── */
    .vf-card {
      width: 100%; height: 100vh; scroll-snap-align: start;
      position: relative; background: #000; flex-shrink: 0; overflow: hidden;
    }

    .vf-card video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
    .vf-img-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

    .vf-text-bg {
      position: absolute; inset: 0;
      background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
      display: flex; align-items: center; justify-content: center; padding: 40px;
    }
    .vf-text-inner { max-width: 420px; text-align: center; }
    .vf-text-inner p { font-size: 22px; font-weight: 500; line-height: 1.5; color: #fff; }

    /* Gradient */
    .vf-grad {
      position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
      background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
      pointer-events: none;
    }

    /* Sound indicator */
    .vf-mute-pill {
      position: absolute; top: 14px; left: 14px; z-index: 20;
      display: flex; align-items: center; gap: 5px;
      background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
      border-radius: 20px; padding: 5px 10px; cursor: pointer;
      font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
      text-transform: uppercase; color: #fff; font-family: inherit;
    }
    .vf-mute-pill:hover { background: rgba(0,0,0,0.75); }
    .vf-mute-icon { font-size: 13px; }

    /* Bottom-left overlay */
    .vf-overlay {
      position: absolute; bottom: 80px; left: 16px;
      max-width: calc(100% - 80px); z-index: 10; pointer-events: none;
    }
    .vf-overlay-pseudo {
      display: inline-block; font-size: 16px; font-weight: 600; color: #fff;
      text-shadow: 0 1px 4px rgba(0,0,0,0.9); margin-bottom: 6px;
      text-decoration: none; pointer-events: auto; cursor: pointer;
    }
    .vf-overlay-pseudo:hover { text-decoration: underline; color: #fff; }
    .vf-overlay-caption {
      font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.4;
      text-shadow: 0 1px 3px rgba(0,0,0,0.8);
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* Right action buttons — overlaid on the video, right edge */
    .vf-actions {
      position: absolute; right: 16px; bottom: 80px; z-index: 10;
      display: flex; flex-direction: column; align-items: center;
    }
    .vf-act {
      display: flex; flex-direction: column; align-items: center; gap: 4px;
      margin-bottom: 20px; cursor: pointer; background: none; border: none;
      color: #fff; font-family: inherit; padding: 0;
      -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    }
    .vf-act:last-child { margin-bottom: 0; }
    .vf-act-ico { width: 32px; height: 32px; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)); }
    .vf-act-label { font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); line-height: 1; }

    .vf-avatar-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: #333; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; margin-bottom: 20px; cursor: pointer; flex-shrink: 0; }
    .vf-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

    @keyframes vf-pop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 100% { transform: scale(1); } }
    .vf-act.popping .vf-act-ico { animation: vf-pop 0.25s ease; }

    /* ── Right comments panel ── */
    .vf-comments {
      width: 380px; flex-shrink: 0; height: 100vh; background: #1a1a1a;
      border-left: 1px solid #2a2a2a; display: flex; flex-direction: column;
    }
    .vf-cmt-head {
      padding: 16px; border-bottom: 1px solid #2a2a2a; flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between;
    }
    .vf-cmt-title { font-size: 16px; font-weight: 600; color: #fff; }
    .vf-cmt-count { font-size: 14px; color: rgba(255,255,255,0.45); margin-left: 6px; }

    .vf-cmt-list { flex: 1; overflow-y: auto; padding: 16px; min-height: 0; }
    .vf-cmt-list::-webkit-scrollbar { width: 4px; }
    .vf-cmt-list::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

    .vf-cmt-item { display: flex; gap: 10px; margin-bottom: 16px; position: relative; }
    .vf-cmt-del {
      position: absolute; right: 8px; top: 8px;
      background: none; border: none; cursor: pointer;
      color: #999; font-size: 15px; line-height: 1;
      padding: 2px 4px; transition: color 0.12s;
      font-family: inherit;
    }
    .vf-cmt-del:hover { color: #fe2c55; }
    .vf-cmt-av {
      width: 32px; height: 32px; border-radius: 50%; background: #333; flex-shrink: 0;
      overflow: hidden; display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; color: #fff;
    }
    .vf-cmt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .vf-cmt-body { flex: 1; min-width: 0; }
    .vf-cmt-author { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; text-decoration: none; display: block; }
    .vf-cmt-author:hover { text-decoration: underline; color: #fff; }
    .vf-cmt-text { font-size: 14px; color: rgba(255,255,255,0.88); line-height: 1.45; word-break: break-word; }
    .vf-cmt-time { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 3px; }

    .vf-cmt-msg { text-align: center; padding: 40px 16px; font-size: 14px; color: #444; }

    .vf-cmt-input {
      height: 56px; border-top: 1px solid #2a2a2a; padding: 8px 16px;
      display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    }
    .vf-cmt-userav {
      width: 32px; height: 32px; border-radius: 50%; background: #333; flex-shrink: 0;
      overflow: hidden; display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; color: #fff;
    }
    .vf-cmt-userav img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .vf-cmt-inp {
      flex: 1; background: #2a2a2a; border: none; border-radius: 20px;
      padding: 8px 16px; color: #fff; font-size: 14px; font-family: inherit; outline: none;
    }
    .vf-cmt-inp::placeholder { color: #555; }
    .vf-cmt-inp:disabled { opacity: 0.5; cursor: not-allowed; }
    .vf-cmt-send {
      background: #fe2c55; color: #fff; border: none; border-radius: 20px;
      padding: 6px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
      font-family: inherit; flex-shrink: 0;
    }
    .vf-cmt-send:hover { background: #d4203f; }
    .vf-cmt-send:disabled { opacity: 0.4; cursor: not-allowed; }

    /* ── Upload modal ── */
    .vf-modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.8);
      z-index: 400; display: flex; align-items: center; justify-content: center;
    }
    .vf-modal {
      background: #1a1a1a; border-radius: 12px; padding: 24px;
      width: 480px; max-width: 95vw; max-height: 92vh; overflow-y: auto;
    }
    .vf-modal-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
    .vf-modal-hdr h2 { font-size: 18px; font-weight: 600; color: #fff; }
    .vf-modal-x { background: none; border: none; color: #666; font-size: 22px; cursor: pointer; line-height: 1; padding: 2px 6px; }
    .vf-modal-x:hover { color: #aaa; }

    .vf-drop-zone {
      border: 2px dashed #333; border-radius: 8px; padding: 40px 20px;
      text-align: center; cursor: pointer; margin-bottom: 16px; transition: border-color 0.15s;
    }
    .vf-drop-zone:hover, .vf-drop-zone.over { border-color: #fe2c55; }
    .vf-drop-icon { font-size: 36px; margin-bottom: 10px; }
    .vf-drop-text { font-size: 14px; color: #888; line-height: 1.5; }
    .vf-drop-text strong { color: #ccc; display: block; margin-bottom: 4px; font-size: 15px; }


    .vf-modal label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #555; margin-bottom: 5px; }
    .vf-modal input[type="url"],
    .vf-modal textarea,
    .vf-modal select {
      width: 100%; background: #242424; border: 1px solid #2e2e2e; color: #fff;
      border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit;
      margin-bottom: 14px; outline: none;
    }
    .vf-modal textarea { min-height: 72px; resize: vertical; }
    .vf-modal input:focus, .vf-modal textarea:focus, .vf-modal select:focus { border-color: #fe2c55; }
    .vf-modal select option { background: #242424; }
    .vf-caption-row { position: relative; margin-bottom: 14px; }
    .vf-caption-row textarea { margin-bottom: 0; }
    .vf-caption-count { position: absolute; bottom: 8px; right: 10px; font-size: 11px; color: #555; }
    .vf-modal-err { color: #fe2c55; font-size: 13px; margin-bottom: 10px; min-height: 18px; }
    .vf-modal-submit {
      width: 100%; background: #fe2c55; color: #fff; border: none;
      border-radius: 8px; padding: 13px; font-size: 15px; font-weight: 600;
      cursor: pointer; font-family: inherit; margin-bottom: 8px;
    }
    .vf-modal-submit:hover { background: #d4203f; }
    .vf-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
    .vf-modal-cancel { width: 100%; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 14px; cursor: pointer; padding: 8px; font-family: inherit; }
    .vf-modal-cancel:hover { color: #fff; }

    /* ── Toast ── */
    .vf-toast {
      position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
      background: rgba(255,255,255,0.93); color: #111; padding: 8px 18px;
      border-radius: 20px; font-size: 13px; font-weight: 500; z-index: 500;
      pointer-events: none; transition: opacity 0.25s; white-space: nowrap;
    }
    .vf-toast.hidden { opacity: 0; }

    /* ── State cards ── */
    .vf-empty {
      height: 100vh; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 16px; color: #444;
    }
    .vf-empty p { font-size: 16px; color: #555; }
    .vf-empty-btn {
      background: #fe2c55; color: #fff; border: none; border-radius: 8px;
      padding: 12px 24px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
    }
    .vf-empty-btn:hover { background: #d4203f; }

    /* ── Mobile ── */
    @media (max-width: 768px) {
      .vf-sidebar { display: none; }
      .vf-comments { display: none; }
      .vf-center { flex: 1; }
      #vf-feed { max-width: 100%; }
    }
  
/* ── CSP utilities (video.html does NOT load style.css, so the utility classes
     used on this page must exist here; .u-hidden must stay AFTER the
     .vf-modal-overlay rule so it wins the display tie) ── */
.u-hidden { display: none; }
.u-flex1 { flex: 1; }
.u-fs11 { font-size: 11px; }
.u-nounderline { text-decoration: none; }

/* UI chrome icons (App.uiIcon) — video.html does not load style.css, so the
   alignment utility is mirrored here. */
.ui-ico { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
