
*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,sans-serif;background:#000;color:#fff;overflow-x:hidden}
.top{position:fixed;top:0;left:0;right:0;height:56px;z-index:40;background:#000;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #111}.logo{height:26px}.searchBar{flex:1;max-width:520px;margin:0 10px;background:#111;border:1px solid #1f1f1f;border-radius:22px;display:flex;align-items:center;padding:9px 15px}.searchBar input{background:transparent;border:none;color:#fff;outline:none;width:100%;font-size:14px}
#feed{height:100dvh;width:100vw;overflow-y:scroll;scroll-snap-type:y mandatory;background:#000;scrollbar-width:none;-ms-overflow-style:none}#feed::-webkit-scrollbar{display:none;width:0;height:0}.card{height:100dvh;width:100vw;position:relative;scroll-snap-align:start;background:#000;display:flex;justify-content:center;align-items:center}.card video{width:100%;height:100%;object-fit:contain;background:#000}.card.landscape video{object-fit:contain}.card.portrait video{object-fit:cover}.card img.postImage{width:100%;height:100%;object-fit:contain;background:#000}.creatorLink{color:#fff;text-decoration:none;cursor:pointer}.mediaType{display:flex;gap:8px;margin-bottom:10px}.mediaType button{flex:1;background:#111;color:#aaa;border:1px solid #2a2a2a;border-radius:10px;padding:10px;font-weight:800;cursor:pointer}.mediaType button.active{background:#00E676;color:#000;border-color:#00E676}.postPhoto{width:100%;max-height:260px;object-fit:contain;border-radius:12px;margin-top:10px;display:none}

.info{position:absolute;left:12px;bottom:95px;z-index:10;max-width:62%;text-shadow:0 1px 6px #000}.act{position:absolute;right:10px;bottom:110px;z-index:15;display:flex;flex-direction:column;gap:18px;align-items:center}.ic{width:44px;height:44px;background:rgba(255,255,255,.15);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer}


.nav{position:fixed;bottom:0;left:0;right:0;height:66px;background:#000;border-top:1px solid #1a1a1a;display:flex;justify-content:space-around;align-items:center;z-index:50}.nav a{color:#777;font-size:10px;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:50px;text-decoration:none} .nav a.on{color:#fff} .plus-nav{width:44px;height:30px;background:linear-gradient(90deg,#00E676,#ff2d55);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#000;font-weight:900;font-size:22px}
/* FREE MEDIA UPLOAD MODAL */
#upModal{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:999;display:none;align-items:center;justify-content:center;padding:16px} .upBox{background:#111;width:100%;max-width:420px;border-radius:20px;border:1px solid #222;overflow:hidden;max-height:90vh;overflow-y:auto} .upHead{padding:16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #222} .upBody{padding:16px} .drop{border:2px dashed #333;border-radius:16px;padding:20px;text-align:center;background:#0d0d0d;cursor:pointer;transition:.2s} .drop.dragover{border-color:#00E676;background:#0f1f15} .drop video{width:100%;max-height:200px;border-radius:12px;margin-top:10px;display:none} .field{margin-top:14px} .field label{font-size:12px;color:#888;margin-bottom:6px;display:block} .field input,.field textarea, .field select{width:100%;padding:12px;background:#000;border:1px solid #333;border-radius:10px;color:#fff;outline:none;font-size:14px} .field input:focus,.field textarea:focus{border-color:#00E676} .progWrap{margin-top:12px;background:#222;height:6px;border-radius:10px;overflow:hidden;display:none} .progBar{height:100%;background:linear-gradient(90deg,#00E676,#ff2d55);width:0%;transition:.2s} .upBtn{width:100%;padding:14px;background:linear-gradient(90deg,#00E676,#ff2d55);border:none;border-radius:30px;font-weight:800;color:#000;margin-top:16px;cursor:pointer;font-size:15px} .upBtn:disabled{opacity:.5}
.formatMeta{margin-top:8px;padding:9px 10px;border-radius:10px;background:#0d0d0d;border:1px solid #222;color:#888;font-size:11px;line-height:1.45}.formatMeta.ok{border-color:#00E67655;color:#00E676}.formatMeta.warn{border-color:#ffb30066;color:#ffb300}

/* PRO NOTIFICATIONS */
#notifToast{display:none;position:fixed;top:62px;right:12px;left:auto;z-index:120;background:#111;border:1px solid #262626;border-radius:12px;padding:9px 11px;box-shadow:0 8px 24px rgba(0,0,0,.45);max-width:330px}
#notifToast .ntRow{display:flex;align-items:center;gap:8px}
#notifToastTitle{font-size:12px;font-weight:800}
#notifToastText{color:#999;font-size:11px;margin-top:2px;line-height:1.25}
#notifEnable{background:#00E676;border:0;border-radius:14px;padding:6px 10px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
#notifClose{background:transparent;border:0;color:#777;font-size:15px;cursor:pointer;padding:2px}
#notifOverlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(3px);z-index:230}
#notifPanel{position:fixed;inset:0;width:100vw;height:100dvh;background:rgba(8,8,8,.98);z-index:240;display:none;flex-direction:column;box-shadow:none}
#notifPanel.open{display:flex}
.notifHead{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 760px)/2));border-bottom:1px solid #242424;flex-shrink:0}
.notifHead b{font-size:22px}.notifHead button{border:1px solid #333;background:#111;color:#fff;width:46px;height:46px;border-radius:50%;font-size:22px;cursor:pointer}
#notifList{flex:1;overflow:auto;width:min(760px,100%);margin:0 auto;padding:8px 18px 40px;box-sizing:border-box}
.notifEmpty{min-height:60vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;color:#777;flex-direction:column;gap:10px}
.notifEmpty .bellBig{font-size:54px;opacity:.55}.notifEmpty b{color:#ddd;font-size:18px}.notifEmpty span{font-size:13px;max-width:360px;line-height:1.5}
.notifItem{display:flex;gap:14px;padding:18px 4px;border-bottom:1px solid #222;cursor:pointer;transition:.15s}.notifItem:hover{background:#111}.notifItem.unread{background:#0e1711}.notifIcon{width:48px;height:48px;border-radius:50%;background:#171717;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:22px}.notifContent{min-width:0;flex:1}.notifTitle{font-size:16px;font-weight:800}.notifBody{font-size:14px;color:#aaa;margin-top:5px;line-height:1.45}.notifTime{font-size:11px;color:#666;margin-top:7px}
@media(max-width:600px){#notifToast{left:12px;right:12px;max-width:none}.notifHead{padding:0 16px}.notifHead b{font-size:20px}#notifList{padding-left:16px;padding-right:16px}.notifItem{padding:16px 2px}}

/* SAFANKSHORT CONTENT FILTER BAR */
#contentFilters{position:fixed;top:56px;left:0;right:0;z-index:35;background:#000;border-bottom:1px solid #171717;padding:8px 12px 9px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
#contentFilters::-webkit-scrollbar{display:none}
.contentFilter{flex:0 0 auto;border:1px solid #2a2a2a;background:#111;color:#aaa;border-radius:22px;padding:8px 14px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;transition:.18s}
.contentFilter:hover{border-color:#444;color:#fff}
.contentFilter.active{background:#00E676;color:#000;border-color:#00E676}
#feed{height:calc(100dvh - 108px);margin-top:108px}
.noContent{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;color:#777;flex-direction:column;gap:8px}
.noContent b{color:#ddd}
.noContent small{max-width:300px;line-height:1.45}
@media(max-width:600px){#contentFilters{padding-left:10px;padding-right:10px}.contentFilter{font-size:11px;padding:7px 12px}}

/* Notification permission is persistent: the prompt is shown only while permission is undecided. */
@media(max-width:600px){.searchBar{max-width:none;margin:0 8px}.searchBar input{font-size:13px}}

/* SAFANK PRO CREATE COMPOSER */
.sfComposer{position:fixed;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:999;display:none;align-items:center;justify-content:center;padding:20px}
.sfComposerBox{width:min(680px,100%);max-height:min(92vh,860px);background:#101010;border:1px solid #292929;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.65);overflow:hidden;display:flex;flex-direction:column}
.sfComposerHead{height:76px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #242424;flex:0 0 auto}
.sfEyebrow{font-size:9px;letter-spacing:2px;color:#777;font-weight:800;margin-bottom:3px}.sfComposerHead h2{font-size:21px;letter-spacing:-.3px}.sfClose{width:38px;height:38px;border-radius:50%;border:1px solid #303030;background:#181818;color:#aaa;font-size:24px;cursor:pointer}.sfClose:hover{color:#fff;background:#222}
.sfComposerBody{overflow:auto;padding:22px}.sfEmptyCreate{text-align:center;padding:30px 18px 36px}.sfEmptyIcon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#1a1a1a;border:1px solid #303030;color:#ddd;font-size:28px}.sfEmptyCreate h3{font-size:20px;margin-bottom:8px}.sfEmptyCreate p{max-width:480px;margin:0 auto;color:#777;font-size:13px;line-height:1.6}.sfCreateActions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px auto 0;max-width:520px}.sfCreateCard{display:flex;align-items:center;gap:13px;text-align:left;padding:17px;border-radius:14px;border:1px solid #292929;background:#151515;color:#fff;cursor:pointer;transition:.18s}.sfCreateCard:hover{border-color:#555;background:#1b1b1b;transform:translateY(-1px)}.sfCreateIcon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#202020;color:#fff;font-weight:900}.sfCreateCard b{display:block;font-size:14px}.sfCreateCard small{display:block;color:#777;font-size:11px;margin-top:4px}.sfSelectedComposer{max-width:620px;margin:auto}.sfMediaPreviewWrap{position:relative}.sfMediaPreview{min-height:230px;border:1px solid #2a2a2a;border-radius:16px;background:#090909;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.sfMediaPreview video,.sfMediaPreview img{max-width:100%;max-height:360px;width:auto;height:auto;display:none;object-fit:contain}.sfPreviewIcon{position:absolute;z-index:2;width:46px;height:46px;border-radius:50%;background:rgba(0,0,0,.65);border:1px solid #333;display:grid;place-items:center;color:#aaa;font-size:25px}.sfMediaPreview:has(video[style*="display: block"]) .sfPreviewIcon,.sfMediaPreview:has(img[style*="display: block"]) .sfPreviewIcon{display:none}.sfMediaPreview p{color:#777;font-size:12px}.sfChangeBtn{position:absolute;right:12px;top:12px;border:1px solid #444;background:rgba(10,10,10,.82);color:#fff;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:700;cursor:pointer;z-index:5}.sfDetectedMeta{margin-top:10px;padding:11px 13px;border:1px solid #252525;background:#141414;border-radius:11px;color:#aaa;font-size:11px;line-height:1.45}.sfDetectedMeta strong{color:#eee}.sfField{position:relative;margin-top:16px}.sfField label{display:flex;justify-content:space-between;align-items:center;color:#aaa;font-size:11px;font-weight:700;margin-bottom:7px}.sfField label span{font-weight:500;color:#666}.sfField input,.sfField textarea,.sfField select{width:100%;background:#080808;border:1px solid #2b2b2b;color:#fff;border-radius:10px;padding:12px 13px;outline:none;font:inherit;font-size:13px}.sfField textarea{resize:vertical;min-height:78px}.sfField input:focus,.sfField textarea:focus,.sfField select:focus{border-color:#666}.sfField input::placeholder,.sfField textarea::placeholder{color:#555}.sfField select{appearance:auto}.sfField #tCount{position:absolute;right:10px;bottom:-17px;color:#555;font-size:10px}.sfGrid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sfProgWrap{display:none;margin-top:18px;height:6px;background:#252525;border-radius:99px;overflow:hidden}.sfProgBar{height:100%;width:0;background:#fff;border-radius:99px;transition:width .18s}.sfProgText{text-align:center;color:#888;font-size:11px;min-height:16px;margin-top:9px}.sfPublishBtn{width:100%;height:48px;margin-top:10px;border:0;border-radius:12px;background:#fff;color:#000;font-weight:850;font-size:14px;cursor:pointer}.sfPublishBtn:hover{background:#e9e9e9}.sfPublishBtn:disabled{opacity:.45;cursor:not-allowed}.sfFreeNote{text-align:center;color:#555;font-size:10px;margin:9px 0 0}.sfComposerBody::-webkit-scrollbar{width:7px}.sfComposerBody::-webkit-scrollbar-thumb{background:#333;border-radius:99px}
@media(max-width:600px){.sfComposer{padding:0;align-items:flex-end}.sfComposerBox{width:100%;max-height:94vh;border-radius:22px 22px 0 0}.sfComposerHead{height:68px;padding:0 16px}.sfComposerBody{padding:16px}.sfEmptyCreate{padding:24px 6px 28px}.sfCreateActions{grid-template-columns:1fr}.sfMediaPreview{min-height:200px}.sfMediaPreview video,.sfMediaPreview img{max-height:300px}.sfGrid2{grid-template-columns:1fr}.sfComposerHead h2{font-size:19px}}



/* UPDATE 01 — only the two requested changes:
   1) preserve the uploaded media's original aspect ratio (no crop/stretch)
   2) make the content category bar transparent/TikTok-like and overlay it at the top
*/

/* Preserve the media's natural aspect ratio inside the Shorts viewport. */
.card video,
.card.landscape video,
.card.portrait video,
.card img.postImage {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000;
}

/* Do not let the category choices push the video downward. */
#contentFilters {
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  top: 56px !important;
  z-index: 45 !important;
  padding: 8px 12px 10px !important;
}

/* TikTok-style transparent category labels. */
#contentFilters .contentFilter {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255,255,255,.72) !important;
  border-radius: 0 !important;
  padding: 7px 10px 8px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.9) !important;
  position: relative;
}

#contentFilters .contentFilter:hover {
  background: transparent !important;
  color: #fff !important;
}

#contentFilters .contentFilter.active {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
}

#contentFilters .contentFilter.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

/* Keep the feed under the fixed header, but don't reserve a separate black
   category strip. The categories now float over the top of the video. */
#feed {
  margin-top: 56px !important;
  height: calc(100dvh - 56px) !important;
}

/* The first visible video still starts at the normal top of the feed. */
#feed .card {
  min-height: calc(100dvh - 56px);
}



/* UPDATE 02 — fix Shorts viewport so the complete original video is visible.
   Only the feed viewport/layout is changed. No backend, Firebase, R2, auth,
   profile, notification or upload logic is changed. */
#feed {
  margin-top: 56px !important;
  height: calc(100dvh - 122px) !important;
  width: 100vw !important;
  overflow-y: auto !important;
  scroll-snap-type: y mandatory !important;
}
#feed .card {
  height: calc(100dvh - 122px) !important;
  min-height: calc(100dvh - 122px) !important;
  width: 100vw !important;
  flex: 0 0 calc(100dvh - 122px) !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-content: center !important;
}
#feed .card video,
#feed .card.landscape video,
#feed .card.portrait video,
#feed .card img.postImage {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}
/* Progress line belongs to the bottom edge of the visible video area,
   immediately above the bottom navigation. */
#feed .progress {
  bottom: 0 !important;
  height: 2px !important;
  z-index: 18 !important;
}
/* Keep creator information and actions inside the visible video frame. */
#feed .info { bottom: 28px !important; }
#feed .act { bottom: 30px !important; }
/* 10-second controls remain inside the video and do not cover the bottom. */
#feed .skipBtns { bottom: 150px !important; }

@media (max-width:600px) {
  #feed { height: calc(100dvh - 122px) !important; }
  #feed .card {
    height: calc(100dvh - 122px) !important;
    min-height: calc(100dvh - 122px) !important;
    flex-basis: calc(100dvh - 122px) !important;
  }
  #feed .info { bottom: 24px !important; max-width: 68% !important; }
  #feed .act { bottom: 24px !important; }
  #feed .skipBtns { bottom: 145px !important; }
}



/* UPDATE 05 FIXED — actual existing header */
.safank-real-top{
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:58px !important;
  padding:0 16px !important;
  background:transparent !important;
  border:0 !important;
  z-index:90 !important;
  pointer-events:none !important;
}
.safank-header-icon{
  position:absolute !important;
  top:7px !important;
  width:48px !important;
  height:48px !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  border-radius:50% !important;
  color:#fff !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  box-shadow:none !important;
}
#safankHeaderSearch{left:14px !important}
#notifBtn{right:14px !important}
.safank-header-icon svg{
  width:34px !important;
  height:34px !important;
  fill:none !important;
  stroke:#fff !important;
  stroke-width:2.25 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
#notifBtn{
  border:2px solid rgba(255,255,255,.9) !important;
}
#notifBtn svg{
  width:27px !important;
  height:27px !important;
  stroke-width:1.9 !important;
}
#notifDot{
  display:none !important;
  position:absolute !important;
  right:7px !important;
  top:7px !important;
  width:8px !important;
  height:8px !important;
  background:#ff2d55 !important;
  border-radius:50% !important;
  border:2px solid #000 !important;
}
.safank-hidden-search{
  display:none !important;
}

/* Categories float over the video, not above it as a separate block. */
#contentFilters{
  position:absolute !important;
  top:58px !important;
  left:0 !important;
  right:0 !important;
  background:transparent !important;
  border:0 !important;
  z-index:70 !important;
  padding-top:6px !important;
  padding-bottom:6px !important;
}

/* Video feed uses the full area above the bottom navigation. */
#feed{
  height:calc(100dvh - 66px) !important;
  margin-top:0 !important;
  padding-top:0 !important;
}
#feed .card{
  height:calc(100dvh - 66px) !important;
  width:100vw !important;
  overflow:hidden !important;
}
#feed .card video{
  width:100% !important;
  height:100% !important;
  object-position:center center !important;
}



/* UPDATE 06 — exact requested visual fix; no backend/media source changes. */
.safank-header-icon{width:34px !important;height:34px !important;top:10px !important;}
.safank-header-icon svg{width:26px !important;height:26px !important;stroke-width:2 !important;}
#notifBtn{width:38px !important;height:38px !important;top:8px !important;border-width:2px !important;}
#notifBtn svg{width:22px !important;height:22px !important;stroke-width:1.8 !important;}
#safankHeaderSearch{left:12px !important;}
#notifBtn{right:12px !important;}

/* Video must occupy the entire available width/height: no black side bars,
   no blur layer and no object-fit cropping. The source itself is untouched. */
#feed, #feed .card{width:100vw !important;max-width:none !important;margin-left:0 !important;margin-right:0 !important;}
#feed .card video,#feed .card.landscape video,#feed .card.portrait video,#feed .card img.postImage{
  width:100vw !important;height:100% !important;max-width:none !important;max-height:none !important;
  object-fit:fill !important;object-position:center center !important;background:#000 !important;
}
/* Never add blur to the video sides. */
#feed .card{background:#000 !important;filter:none !important;}

/* Only the Follow control remains in the lower-left overlay. */
#feed .info{left:24px !important;bottom:48px !important;max-width:none !important;text-shadow:none !important;}
#feed .info .creatorLink,#feed .info b,#feed .info small,#feed .info div:not(.followBtn),#feed .info br{display:none !important;}
#feed .followBtn{display:inline-flex !important;margin:0 !important;padding:8px 17px !important;border-radius:20px !important;font-size:13px !important;line-height:1 !important;}

/* Categories stay transparent over the video. */
#contentFilters{background:transparent !important;border:0 !important;box-shadow:none !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}



/* UPDATE 07 — cleaner Shorts screen:
   categories are available from the three-dot menu instead of covering the video. */
.top.safank-real-top{
  height:64px !important;
  background:transparent !important;
  border-bottom:0 !important;
  pointer-events:none !important;
  padding:0 14px !important;
}
.top.safank-real-top .safank-header-icon,
#modeMenuBtn{
  pointer-events:auto !important;
}
#safankHeaderSearch{
  left:12px !important;
  top:8px !important;
  width:42px !important;
  height:42px !important;
}
#safankHeaderSearch svg{
  width:27px !important;
  height:27px !important;
}
#notifBtn{
  display:none !important;
}
/* Three dots: small, white, unobtrusive. */
#modeMenuBtn{
  position:absolute !important;
  right:12px !important;
  top:8px !important;
  width:42px !important;
  height:42px !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  font-size:30px !important;
  line-height:38px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  text-shadow:0 1px 5px rgba(0,0,0,.9) !important;
}
/* Hide the horizontal category row completely. */
#contentFilters{
  display:none !important;
}
/* Menu opened from the three dots. */
.mode-menu{
  position:fixed !important;
  top:54px !important;
  right:12px !important;
  width:190px !important;
  max-height:70vh !important;
  overflow:auto !important;
  padding:8px !important;
  background:rgba(18,18,18,.96) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:16px !important;
  box-shadow:0 12px 40px rgba(0,0,0,.5) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
  z-index:120 !important;
  display:none !important;
  pointer-events:auto !important;
  touch-action:auto !important;
}
.mode-menu.open{display:block !important;}
.mode-menu-title{
  color:#999 !important;
  font-size:11px !important;
  font-weight:700 !important;
  padding:7px 10px 8px !important;
}
.mode-item{
  display:block !important;
  width:100% !important;
  border:0 !important;
  background:transparent !important;
  color:#ddd !important;
  text-align:left !important;
  border-radius:10px !important;
  padding:10px 12px !important;
  font-size:13px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
.mode-item:hover,.mode-item.active{
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
}
.mode-item.active::after{
  content:"✓";
  float:right;
  color:#00E676;
}
/* Let the first video start immediately under the browser viewport. */
#feed{
  margin-top:0 !important;
  height:100dvh !important;
  width:100vw !important;
}
#feed .card{
  height:100dvh !important;
  min-height:100dvh !important;
  width:100vw !important;
}
/* Keep the video itself visually clean: no caption/name block. */
#feed .info .creatorLink,
#feed .info b,
#feed .info small,
#feed .info div:not(.followBtn),
#feed .info br{
  display:none !important;
}
#feed .info{
  left:24px !important;
  bottom:78px !important;
  max-width:none !important;
}
#feed .followBtn{
  margin:0 !important;
  font-size:13px !important;
  padding:8px 17px !important;
}
/* Do not show an extra title/caption anywhere in the media card. */
#feed .card .caption,
#feed .card .description,
#feed .card .title,
#feed .card .video-title,
#feed .card .video-description{
  display:none !important;
}
@media(max-width:600px){
  #modeMenuBtn{right:8px !important;}
  .mode-menu{right:8px !important;top:54px !important;width:185px !important;}
}
/* UPDATE 08 — notifications live inside the three-dot menu, above categories. */
.menu-notification{display:flex !important;align-items:center !important;gap:8px !important;position:relative !important;}
.menu-notification .menu-notif-badge{margin-left:auto !important;width:8px !important;height:8px !important;border-radius:50% !important;background:#ff2d55 !important;display:none !important;box-shadow:0 0 0 2px #121212 !important;}
.mode-menu-divider{height:1px !important;background:rgba(255,255,255,.08) !important;margin:4px 6px 5px !important;}
/* The feed ends exactly where the bottom navigation begins. */
#feed{height:calc(100dvh - 72px) !important;margin-top:0 !important;}
#feed .card{height:calc(100dvh - 72px) !important;min-height:calc(100dvh - 72px) !important;flex:0 0 calc(100dvh - 72px) !important;}
#feed .card video,#feed .card img.postImage{height:100% !important;width:100vw !important;}



#proSearchOverlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.97);z-index:200;padding:18px 16px}
#proSearchOverlay.open{display:block}
.proSearchHead{display:flex;align-items:center;gap:12px;max-width:760px;margin:0 auto 18px}
.proSearchInput{flex:1;background:#111;border:1px solid #333;border-radius:28px;color:#fff;padding:14px 18px;font-size:16px;outline:none}
.proSearchClose{width:42px;height:42px;border-radius:50%;border:1px solid #333;background:#111;color:#fff;font-size:22px;cursor:pointer}
.proSearchResults{max-width:760px;margin:auto;max-height:calc(100dvh - 90px);overflow:auto}
.proSearchResult{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #222;cursor:pointer}
.proSearchThumb{width:92px;height:124px;border-radius:10px;object-fit:cover;background:#111;flex:none}
.proSearchMeta{min-width:0}.proSearchTitle{font-weight:800;font-size:15px;margin-bottom:5px}.proSearchSub{font-size:12px;color:#999;line-height:1.5}.proSearchEmpty{padding:60px 15px;text-align:center;color:#888}



/* YouTube-like draggable video progress bar. Does not add 10-second buttons. */
#feed .progress{height:30px!important;bottom:66px!important;padding:0!important;cursor:pointer!important;touch-action:none!important;z-index:100!important;}
#feed .progress::before{top:13px!important;height:3px!important;}
#feed .progress i{top:13px!important;height:3px!important;}
#feed .progress i::after{top:-4px!important;}



/* PRO SEEK BAR — lives above the navigation, never inside a black bottom block. */
#feed .progress{
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:67px !important;
  width:100vw !important;
  height:12px !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  z-index:1000 !important;
  cursor:pointer !important;
  touch-action:none !important;
  pointer-events:auto !important;
  display:none !important;
}
#feed .card.active-seek .progress{display:flex !important;}
#feed .progress::before{
  top:4px !important;
  left:0 !important;
  right:0 !important;
  height:4px !important;
  background:rgba(255,255,255,.25) !important;
  border-radius:999px !important;
}
#feed .progress i{
  top:4px !important;
  left:0 !important;
  height:4px !important;
  background:#00E676 !important;
  border-radius:999px !important;
}
#feed .progress i::after{
  top:-4px !important;
  right:-5px !important;
  width:10px !important;
  height:10px !important;
  background:#00E676 !important;
  box-shadow:0 1px 5px rgba(0,0,0,.5) !important;
}
#feed .progress:hover i::after,
#feed .progress.seeking i::after{transform:scale(1.18) !important;}
@media(max-width:600px){
  #feed .progress{bottom:72px !important;}
}



/* DESKTOP VISUAL UPDATE — layout only. Mobile/tablet remains unchanged. */
@media (min-width:601px){
  /* Keep the Shorts stage centered on PC instead of stretching 16:9 media
     across an ultra-wide browser window. */
  #feed{
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  #feed .card{
    width:min(100vw, calc((100dvh - 66px) * 1.7777778)) !important;
    max-width:100vw !important;
    margin-left:auto !important;
    margin-right:auto !important;
    background:#000 !important;
    overflow:hidden !important;
  }

  /* Preserve the video's original proportions on PC — no stretch/crop. */
  #feed .card video,
  #feed .card.landscape video,
  #feed .card.portrait video,
  #feed .card img.postImage{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:#000 !important;
  }

  /* Keep the existing controls, but align them to the centered PC stage. */
  #feed .info{left:24px !important;}
  #feed .act{right:14px !important;}
  #feed .progress{left:0 !important;width:100% !important;}
}



/* Creator name + Safank verification badge: visual-only addition. */
#feed .info{
  left:24px !important;
  bottom:78px !important;
  max-width:70% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:5px !important;
  z-index:16 !important;
}
#feed .info .creatorNameLink{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
  color:#fff !important;
  text-decoration:none !important;
  font-size:15px !important;
  line-height:20px !important;
  font-weight:800 !important;
  text-shadow:0 1px 5px rgba(0,0,0,.95) !important;
  max-width:100% !important;
}
#feed .info .creatorNameText{
  display:inline-block !important;
  max-width:calc(70vw - 30px) !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
#feed .info .safankVerifiedBadge{
  display:block !important;
  width:19px !important;
  height:19px !important;
  min-width:19px !important;
  object-fit:contain !important;
  border:0 !important;
  background:transparent !important;
  filter:none !important;
}
@media(max-width:600px){
  #feed .info{left:24px !important;bottom:78px !important;gap:5px !important;}
  #feed .info .creatorNameLink{font-size:15px !important;line-height:19px !important;gap:5px !important;}
  #feed .info .safankVerifiedBadge{width:18px !important;height:18px !important;min-width:18px !important;}
}



/* SafankShort YouTube-style bottom navigation */
.youtube-nav{
  height:72px!important;
  background:#0b0b0b!important;
  border-top:1px solid #202020!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-around!important;
  padding:0 7px!important;
  box-sizing:border-box!important;
}
.youtube-nav a{
  height:64px!important;
  min-width:62px!important;
  flex:1!important;
  max-width:105px!important;
  color:#aaa!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  text-decoration:none!important;
}
.youtube-nav a svg{width:30px!important;height:30px!important;fill:currentColor!important;display:block!important;}
.youtube-nav a.on{color:#fff!important;}
.youtube-nav a.on svg{fill:currentColor!important;}
.youtube-nav .plus-nav{
  width:58px!important;
  height:58px!important;
  border-radius:50%!important;
  background:#242424!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  font-size:38px!important;
  font-weight:300!important;
  line-height:1!important;
  box-shadow:none!important;
}
.youtube-nav .plus-nav span{display:block!important;transform:translateY(-1px)!important;}
.youtube-nav a:nth-child(3){max-width:80px!important;}
@media(max-width:420px){
  .youtube-nav a{min-width:56px!important;font-size:10px!important;}
  .youtube-nav a svg{width:28px!important;height:28px!important;}
  .youtube-nav .plus-nav{width:54px!important;height:54px!important;font-size:36px!important;}
}



/* Original video ratio: never stretch or crop the source. */
#feed .card {
  width:100vw !important; height:calc(100dvh - 72px) !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  background:#000 !important; overflow:hidden !important;
}
#feed .card video, #feed .card.landscape video, #feed .card.portrait video {
  width:auto !important; height:auto !important;
  max-width:100vw !important; max-height:calc(100dvh - 72px) !important;
  aspect-ratio:auto !important;
  object-fit:contain !important; object-position:center center !important;
  background:#000 !important;
}
#feed .card img.postImage {
  width:auto !important; height:auto !important;
  max-width:100vw !important; max-height:calc(100dvh - 72px) !important;
  object-fit:contain !important; object-position:center center !important;
}
