/* ═══════════════════════════════════════════════════════════════
   LOKTUBE v48 — MASTER UI OVERHAUL
   Indian YouTube × Instagram hybrid — not a clone, Bharat ka apna
   Reference: channel page (Image 1) + shorts feed (Image 2)
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --accent:      #FF6B00;
  --accent2:     #E55D00;
  --accent3:     #FFAB40;
  --accent-g:    linear-gradient(135deg, #FF9933, #FF6B00, #FFD700);
  --bg0:         #070709;
  --bg1:         #0d0d12;
  --bg2:         #141418;
  --bg3:         #1c1c23;
  --bg4:         #242430;
  --border:      rgba(255,255,255,.08);
  --border2:     rgba(255,255,255,.13);
  --text:        #f4f4f6;
  --text2:       #a0a0b8;
  --text3:       #606075;
  --nav-h:       58px;
  --sidebar-w:   240px;
  --bottom-nav-h: 62px;
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --font-main:   'Poppins', 'Noto Sans Devanagari', sans-serif;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-card: 0 2px 16px rgba(0,0,0,.5);
  --shadow-glow: 0 4px 24px rgba(255,107,0,.25);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ────────────────────────────────────────────────────────────────
   TOP NAV — LokTube premium header
   ──────────────────────────────────────────────────────────────── */
.lt-topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(7,7,9,.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
}
.lt-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.lt-logo-text { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.lt-logo-text span:first-child { color: var(--text); }
.lt-logo-text span:last-child  { color: var(--accent); }
.lt-logo-sub { font-size: 9px; font-weight: 600; color: var(--accent3); letter-spacing: .5px; display: block; margin-top: -4px; }

.lt-search-wrap {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center;
  background: var(--bg3); border: 1.5px solid var(--border2);
  border-radius: 24px; padding: 0 16px; height: 40px;
  transition: border-color .2s, box-shadow .2s;
}
.lt-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,.15);
}
.lt-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; font-family: var(--font-main);
}
.lt-search-input::placeholder { color: var(--text3); }
.lt-search-btn {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 15px; padding: 0; margin-left: 8px;
  transition: color .2s;
}
.lt-search-btn:hover { color: var(--accent); }

.lt-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.lt-nav-btn {
  background: none; border: none; color: var(--text2);
  cursor: pointer; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: background .15s, color .15s; position: relative;
  text-decoration: none;
}
.lt-nav-btn:hover { background: var(--bg3); color: var(--text); }
.lt-nav-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; border-radius: 99px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.lt-wallet-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 20px;
  font-size: 13px; font-weight: 700; color: var(--accent3);
  text-decoration: none; transition: background .15s;
}
.lt-wallet-chip:hover { background: var(--bg4); }
.lt-avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--accent); overflow: hidden; cursor: pointer;
  flex-shrink: 0;
}
.lt-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ────────────────────────────────────────────────────────────────
   BOTTOM NAV — Instagram × YouTube × Desi style
   ──────────────────────────────────────────────────────────────── */
.mobile-bottom-nav,
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important; left: 0; right: 0;
  z-index: 300 !important;
  background: rgba(7,7,9,.97);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  display: flex !important;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
.mobile-bottom-nav-inner {
  display: flex; align-items: center; justify-content: space-around;
  width: 100%; padding: 0 4px; height: var(--bottom-nav-h);
}
.mbn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text3); text-decoration: none;
  font-size: 10px; font-weight: 600; letter-spacing: .2px;
  min-width: 44px; padding: 6px 4px; border-radius: 12px;
  transition: color .2s, background .15s; position: relative;
  cursor: pointer; background: none; border: none; font-family: var(--font-main);
}
.mbn-item i { font-size: 20px; }
.mbn-item.active { color: var(--accent); }
.mbn-item:active { background: rgba(255,107,0,.1); }
.mbn-badge {
  position: absolute; top: 2px; right: 6px;
  min-width: 16px; height: 16px; border-radius: 99px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* CENTER CREATE BUTTON — Mandala style from Image 2 */
.mbn-create-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mbn-create-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #FF9933 0%, #FF6B00 50%, #CC0000 100%);
  border: 2.5px solid rgba(255,255,255,.2);
  color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,107,0,.5), 0 0 0 4px rgba(255,107,0,.12);
  transition: transform .2s, box-shadow .2s;
  position: relative; top: -6px;
  text-decoration: none;
}
.mbn-create-btn:active { transform: scale(.92); }
.mbn-create-label {
  font-size: 9px; color: var(--text3); font-weight: 600;
  margin-top: -4px; font-family: var(--font-main);
}

/* Messages nav button */
.mbn-item.mbn-msg i { font-size: 20px; }

/* Desktop: hide bottom nav */
@media (min-width: 768px) {
  .mobile-bottom-nav, .bottom-nav { display: none !important; }
}

/* ────────────────────────────────────────────────────────────────
   LAYOUT SHELL
   ──────────────────────────────────────────────────────────────── */
.lk-shell {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.lk-main {
  flex: 1;
  min-width: 0;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
}
@media (max-width: 767px) {
  body { padding-top: 0; }
  .lk-shell { padding-top: var(--nav-h); }
}
.page-wrapper {
  padding-top: var(--nav-h);
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
  min-height: 100vh;
}

/* ────────────────────────────────────────────────────────────────
   SIDEBAR — desktop only
   ──────────────────────────────────────────────────────────────── */
.lk-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  padding: 12px 0 80px;
}
.lk-sidebar::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  .lk-sidebar {
    position: fixed; left: -260px; top: 0;
    height: 100vh; z-index: 400;
    width: 260px; transition: left .25s cubic-bezier(.4,0,.2,1);
    padding-top: var(--nav-h);
  }
  .lk-sidebar.open { left: 0; }
}
.sb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; border-radius: 10px; margin: 1px 8px;
  text-decoration: none; color: var(--text2); font-size: 13.5px; font-weight: 600;
  transition: all .15s; letter-spacing: .1px;
}
.sb-item:hover { background: var(--bg3); color: var(--text); }
.sb-item.active { background: rgba(255,107,0,.12); color: var(--accent); }
.sb-item.active .sb-icon { color: var(--accent); }
.sb-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.sb-section-title { font-size: 10px; font-weight: 800; color: var(--text3); letter-spacing: 1.2px; padding: 14px 24px 4px; text-transform: uppercase; }
.sb-divider { height: 1px; background: var(--border); margin: 8px 16px; }
.sb-mandal-item { display: flex; align-items: center; gap: 10px; padding: 7px 16px; text-decoration: none; color: var(--text2); font-size: 12px; border-radius: 8px; margin: 1px 8px; transition: all .15s; }
.sb-mandal-item:hover { background: var(--bg3); color: var(--text); }
.sb-mandal-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0; }
.sb-mandal-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sb-india-footer { padding: 16px; text-align: center; font-size: 11px; color: var(--text3); }

/* ────────────────────────────────────────────────────────────────
   CHANNEL PAGE — Reference Image 1
   ──────────────────────────────────────────────────────────────── */
.ch-banner {
  width: 100%; height: 200px; position: relative;
  background: linear-gradient(135deg, #1a0a00, #2d1500, #1a0a00);
  overflow: hidden;
}
.ch-banner img { width: 100%; height: 100%; object-fit: cover; }
.ch-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.7));
}
@media (max-width: 768px) { .ch-banner { height: 140px; } }

/* Channel header block */
.ch-header-block {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px 0;
  flex-wrap: wrap;
}
.ch-avatar-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden; flex-shrink: 0; margin-top: -45px; position: relative;
  background: var(--bg3); box-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.ch-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .ch-avatar-wrap { width: 72px; height: 72px; margin-top: -36px; } }

.ch-info { flex: 1; min-width: 200px; padding-top: 8px; }
.ch-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-name { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -.3px; }
.ch-verified { color: var(--accent); font-size: 16px; }
.ch-handle { font-size: 13px; color: var(--text3); margin-top: 2px; }
.ch-bio { font-size: 13px; color: var(--text2); margin: 8px 0; line-height: 1.5; }
.ch-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ch-meta-item { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.ch-meta-item a { color: var(--accent); text-decoration: none; }

.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.btn-subscribe {
  padding: 9px 22px; border-radius: 22px;
  background: var(--accent); color: #fff;
  border: none; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: all .2s; font-family: var(--font-main);
  display: flex; align-items: center; gap: 6px;
}
.btn-subscribe:hover { background: var(--accent2); transform: scale(1.04); }
.btn-subscribe.subscribed { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
.btn-join {
  padding: 9px 20px; border-radius: 22px;
  background: var(--bg3); color: var(--text);
  border: 1.5px solid var(--border2); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s; font-family: var(--font-main);
}
.btn-join:hover { border-color: var(--accent); color: var(--accent); }
.ch-more-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1.5px solid var(--border2);
  color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .15s;
}
.ch-more-btn:hover { background: var(--bg4); color: var(--text); }

/* Channel stats row — the "1.25M Subscribers | 156M Views | 8.7M Likes..." bar */
.ch-stats-bar {
  display: flex; gap: 0; margin: 16px 0 0;
  background: var(--bg2); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  flex-wrap: wrap;
}
.ch-stat-block {
  flex: 1; min-width: 80px; padding: 12px 10px; text-align: center;
  border-right: 1px solid var(--border); position: relative;
}
.ch-stat-block:last-child { border-right: none; }
.ch-stat-val { font-size: 15px; font-weight: 900; color: var(--text); line-height: 1.1; }
.ch-stat-val i { margin-right: 4px; }
.ch-stat-lbl { font-size: 10px; color: var(--text3); margin-top: 2px; font-weight: 600; }
.ch-stat-special { background: linear-gradient(135deg, rgba(255,107,0,.12), rgba(255,171,64,.08)); }
.ch-stat-special .ch-stat-val { color: var(--accent3); }

/* Follow on (social icons row) */
.ch-follow-social { display: flex; align-items: center; gap: 8px; padding: 8px 20px 0; flex-wrap: wrap; }
.ch-follow-label { font-size: 11px; color: var(--text3); font-weight: 600; }
.ch-social-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; transition: transform .2s; }
.ch-social-icon:hover { transform: scale(1.15); }

/* Channel tabs — sticky under nav */
.ch-tabs-wrap {
  position: sticky; top: var(--nav-h); z-index: 100;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  margin-top: 16px;
}
.ch-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 0 16px;
}
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
  padding: 14px 16px; font-size: 13.5px; font-weight: 700;
  color: var(--text2); background: none; border: none;
  border-bottom: 3px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all .2s; font-family: var(--font-main);
  display: flex; align-items: center; gap: 5px;
}
.ch-tab:hover { color: var(--text); }
.ch-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ch-panel { display: none; padding: 16px 20px; }
.ch-panel.active { display: block; }
.ch-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 600px) { .ch-video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ────────────────────────────────────────────────────────────────
   VIDEO CARD — used everywhere
   ──────────────────────────────────────────────────────────────── */
.vid-card {
  background: var(--bg2); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: 1px solid transparent;
  text-decoration: none; display: block;
}
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border); }
.vid-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vid-card:hover .vid-thumb img { transform: scale(1.04); }
.vid-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.85); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
}
.vid-live-badge {
  position: absolute; top: 6px; left: 6px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 5px; letter-spacing: .5px;
}
.vid-info { padding: 10px 12px 12px; }
.vid-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-meta { font-size: 11.5px; color: var(--text3); margin-top: 5px; display: flex; gap: 4px; flex-wrap: wrap; }
.vid-channel { font-size: 12px; color: var(--text2); font-weight: 600; margin-top: 3px; }
.vid-more-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 13px; }
.vid-card:hover .vid-more-btn { display: flex; }

/* ────────────────────────────────────────────────────────────────
   SHORTS FEED — Reference Image 2 — Instagram Reels style
   ──────────────────────────────────────────────────────────────── */
.shorts-shell {
  position: fixed; inset: 0; background: #000; z-index: 10;
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 769px) {
  .shorts-shell {
    left: 50%; transform: translateX(-50%);
    width: min(430px, 100vw);
  }
  html body.shorts-page { overflow: auto !important; }
}

/* Top tabs: Following | For You */
.shorts-top-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding: 12px 16px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.shorts-logo {
  font-size: 15px; font-weight: 900; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.shorts-logo span { color: var(--accent); }
.shorts-tabs { display: flex; gap: 16px; }
.shorts-tab {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.6);
  cursor: pointer; padding-bottom: 4px;
  border-bottom: 2px solid transparent; transition: all .2s;
  background: none; border: none; font-family: var(--font-main);
}
.shorts-tab.active { color: #fff; border-bottom-color: #fff; }
.shorts-search { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }

/* Trend + category pills */
.shorts-pills { position: absolute; top: 52px; left: 16px; right: 16px; z-index: 50; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.shorts-pills::-webkit-scrollbar { display: none; }
.shorts-pill {
  display: flex; align-items: center; gap: 5px; padding: 5px 12px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; color: #fff; font-size: 12px; font-weight: 700;
  white-space: nowrap; cursor: pointer; backdrop-filter: blur(8px); flex-shrink: 0;
}
.shorts-pill-icon { font-size: 13px; }

.shorts-feed {
  flex: 1; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; touch-action: pan-y;
}
.shorts-feed::-webkit-scrollbar { display: none; }
.short-item {
  position: relative; width: 100%;
  height: 100vh; height: 100dvh;
  scroll-snap-align: start; flex-shrink: 0;
  background: #000; overflow: hidden;
}
.short-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; cursor: pointer; background: #000;
}
.short-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, transparent 25%, transparent 45%, rgba(0,0,0,.5) 75%, rgba(0,0,0,.92) 100%);
  pointer-events: none;
}

/* Progress bar */
.short-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px; background: rgba(255,255,255,.2); z-index: 6; }
.short-progress-fill { height: 100%; background: var(--accent); width: 0; transition: width .1s linear; }

/* Location badge */
.short-location {
  position: absolute; bottom: 155px; left: 14px; z-index: 5;
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: #fff;
  backdrop-filter: blur(8px);
}

/* Bottom info */
.short-info {
  position: absolute; bottom: 72px; left: 14px; right: 74px; z-index: 5;
}
.short-author {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.short-author-name {
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .2px;
}
.short-verified { color: var(--accent); font-size: 13px; }
.btn-short-subscribe {
  padding: 5px 14px; border-radius: 20px;
  background: var(--accent); color: #fff;
  border: none; font-size: 12px; font-weight: 800; cursor: pointer;
  font-family: var(--font-main);
}
.btn-short-subscribe.followed {
  background: transparent; border: 1.5px solid rgba(255,255,255,.6);
}
.short-caption { font-size: 13px; color: #fff; line-height: 1.5; margin-bottom: 6px; }
.short-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.short-tag { font-size: 12px; color: var(--accent); font-weight: 600; cursor: pointer; }
.short-music { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.8); }
.short-music i { color: var(--accent3); }

/* Right side action buttons — Reference Image 2 */
.short-actions {
  position: absolute; bottom: 80px; right: 10px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.short-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: #fff; cursor: pointer;
  font-family: var(--font-main);
}
.short-action-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(8px);
  transition: transform .15s, background .15s;
}
.short-action-icon:active { transform: scale(.88); background: rgba(255,107,0,.3); }
.short-action-btn.active .short-action-icon { background: rgba(255,107,0,.3); border-color: var(--accent); }
.short-action-count { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9); }
/* Music disc */
.short-disc {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #1a0a00, #3d1500);
  border: 2px solid var(--accent);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.short-disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.short-disc::after { content: ''; position: absolute; width: 12px; height: 12px; background: #000; border-radius: 50%; }

/* Bottom nav inside shorts */
.shorts-bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 20;
  background: rgba(0,0,0,.75); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: var(--safe-bottom);
}

/* ────────────────────────────────────────────────────────────────
   WATCH PAGE — split layout
   ──────────────────────────────────────────────────────────────── */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px;
}
@media (max-width: 1100px) {
  .watch-layout { grid-template-columns: 1fr 320px; gap: 16px; }
}
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { display: none; }
}
@media (max-width: 600px) {
  .watch-layout { padding: 0; gap: 0; }
}

/* Video player */
.vplayer-wrap {
  position: relative; background: #000;
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/9;
}
@media (max-width: 600px) { .vplayer-wrap { border-radius: 0; } }
.vplayer-wrap video { width: 100%; height: 100%; display: block; }

/* Side reaction bar — Shorts-style on watch page */
.video-side-reactions {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 5;
}
@media (max-width: 900px) {
  .video-side-reactions { position: static; transform: none; flex-direction: row; margin-top: 12px; justify-content: flex-end; }
}
.side-react-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 8px 10px; cursor: pointer;
  color: var(--text2); transition: all .2s; font-family: var(--font-main);
}
.side-react-btn:hover, .side-react-btn.active { background: rgba(255,107,0,.15); border-color: var(--accent); color: var(--accent); }
.side-react-icon { font-size: 20px; }
.side-react-count { font-size: 11px; font-weight: 800; }
.side-react-label { font-size: 9px; font-weight: 600; color: var(--text3); }

/* Video title */
.video-title-h {
  font-size: 18px; font-weight: 900; color: var(--text);
  margin: 14px 0 8px; line-height: 1.3;
}
@media (max-width: 600px) { .video-title-h { font-size: 15px; padding: 0 12px; } }

/* Action bar */
.action-bar {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0;
}
@media (max-width: 600px) { .action-bar { padding: 0 12px; } }
.action-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 22px;
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s; font-family: var(--font-main);
  white-space: nowrap;
}
.action-pill:hover { background: var(--bg4); border-color: var(--border2); }
.action-pill.liked { background: rgba(255,107,0,.15); border-color: var(--accent); color: var(--accent); }
.action-pill.saved { background: rgba(255,107,0,.1); color: var(--accent3); }

/* Creator card */
.creator-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg2);
  border-radius: var(--radius-md); border: 1px solid var(--border);
  margin: 12px 0; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 600px) { .creator-card { margin: 10px 12px; } }
.creator-avatar-lg {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  border: 2px solid var(--accent);
}
.creator-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.creator-name { font-size: 14px; font-weight: 800; color: var(--text); }
.creator-subs { font-size: 12px; color: var(--text3); margin-top: 1px; }
.loksupport-btn {
  padding: 8px 18px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #FF4500);
  color: #fff; border: none; font-size: 13px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-main); transition: all .2s;
}
.loksupport-btn:hover { transform: scale(1.04); box-shadow: var(--shadow-glow); }
.bell-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s;
}
.bell-btn.active { color: var(--accent3); border-color: var(--accent3); }

/* Watch sidebar — channel profile at top */
.watch-sidebar { min-width: 0; }
.watch-sidebar-channel {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 14px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ws-ch-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; background: var(--accent);
  border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff;
}
.ws-ch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ws-ch-name { font-size: 13px; font-weight: 800; color: var(--text); }
.ws-ch-subs { font-size: 11px; color: var(--text3); }
.ws-ch-follow {
  margin-left: auto; padding: 6px 14px; border-radius: 18px;
  background: var(--accent); color: #fff; border: none;
  font-size: 12px; font-weight: 800; cursor: pointer; font-family: var(--font-main);
}
.ws-ch-follow.following { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); }

/* Sidebar tabs */
.sidebar-tabs-row { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.sidebar-tabs-row::-webkit-scrollbar { display: none; }
.sidebar-tab {
  padding: 5px 12px; border-radius: 14px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 11.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: var(--font-main); transition: all .2s;
}
.sidebar-tab.active, .sidebar-tab:hover { background: rgba(255,107,0,.15); color: var(--accent); border-color: var(--accent); }

/* Rec card */
.rec-card {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border); text-decoration: none;
  transition: background .12s; border-radius: 8px;
}
.rec-card:hover { background: var(--bg2); padding: 8px 8px; margin: 0 -8px; }
.rec-thumb {
  width: 140px; flex-shrink: 0; border-radius: 8px;
  overflow: hidden; aspect-ratio: 16/9; background: var(--bg3); position: relative;
}
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rec-badge {
  position: absolute; bottom: 3px; right: 3px;
  background: rgba(0,0,0,.8); color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 4px; border-radius: 4px;
}
.rec-info { flex: 1; min-width: 0; }
.rec-title { font-size: 12.5px; font-weight: 700; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.rec-meta { font-size: 11px; color: var(--text3); margin-top: 4px; line-height: 1.5; }

/* Sidebar shorts mini grid */
.sidebar-shorts-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 12px; }
.sidebar-short-card { text-decoration: none; }
.sidebar-short-thumb { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 9/16; background: var(--bg3); }
.sidebar-short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-short-views { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 8px 2px 3px; }

/* ────────────────────────────────────────────────────────────────
   MESSAGES — WhatsApp × Instagram DMs Indian version
   ──────────────────────────────────────────────────────────────── */
.msg-layout {
  display: flex;
  height: calc(100vh - var(--nav-h));
  max-width: 960px; margin: 0 auto;
  background: var(--bg1);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.msg-sidebar {
  width: 320px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.msg-sidebar-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.msg-sidebar-title {
  font-size: 17px; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 8px;
}
.msg-new-btn {
  margin-left: auto; padding: 5px 14px; border-radius: 18px;
  background: var(--accent); color: #fff; border: none;
  font-size: 12px; font-weight: 800; cursor: pointer; font-family: var(--font-main);
}
.msg-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border-radius: 12px; padding: 8px 12px; margin-top: 10px;
}
.msg-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 13px; color: var(--text); font-family: var(--font-main);
}
.msg-search input::placeholder { color: var(--text3); }
.msg-thread-list { flex: 1; overflow-y: auto; }
.msg-thread-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .12s;
}
.msg-thread-item:hover, .msg-thread-item.active { background: var(--bg3); }
.msg-thread-av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative;
}
.msg-thread-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-thread-av.online::after {
  content: ''; position: absolute; bottom: 2px; right: 2px;
  width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
  border: 2px solid var(--bg2);
}
.msg-thread-name { font-size: 13.5px; font-weight: 800; color: var(--text); }
.msg-thread-preview { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.msg-thread-time { font-size: 10px; color: var(--text3); white-space: nowrap; margin-left: auto; align-self: flex-start; padding-top: 2px; }
.msg-unread-badge { min-width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Chat window */
.msg-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg0); }
.msg-chat-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: var(--bg1);
}
.msg-chat-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.msg-chat-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-chat-actions { display: flex; gap: 4px; margin-left: auto; }
.msg-chat-action { width: 36px; height: 36px; border-radius: 50%; background: none; border: none; color: var(--text2); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.msg-chat-action:hover { background: var(--bg3); color: var(--text); }

.msg-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
/* Date separator */
.msg-date-sep { text-align: center; font-size: 11px; color: var(--text3); background: var(--bg3); border-radius: 10px; padding: 3px 12px; margin: 8px auto; }

.msg-bubble-wrap { display: flex; flex-direction: column; }
.msg-bubble-wrap.mine { align-items: flex-end; }
.msg-bubble-wrap.theirs { align-items: flex-start; }
.msg-bubble {
  max-width: 72%; padding: 10px 14px;
  font-size: 14px; line-height: 1.5; word-break: break-word;
  position: relative;
}
.msg-bubble.mine {
  background: linear-gradient(135deg, #FF6B00, #E55D00);
  color: #fff; border-radius: 18px 18px 4px 18px;
}
.msg-bubble.theirs {
  background: var(--bg3); color: var(--text);
  border-radius: 18px 18px 18px 4px;
  border: 1px solid var(--border);
}
.msg-bubble-time { font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; }
.msg-bubble-ticks { color: rgba(255,255,255,.7); font-size: 11px; margin-left: 4px; }

.msg-input-bar {
  padding: 10px 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--bg1);
}
.msg-input-extras { display: flex; gap: 4px; flex-shrink: 0; }
.msg-input-extra-btn { width: 36px; height: 36px; border-radius: 50%; background: none; border: none; color: var(--text2); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .15s; }
.msg-input-extra-btn:hover { color: var(--accent); }
.msg-input {
  flex: 1; background: var(--bg3);
  border: 1.5px solid var(--border); border-radius: 22px;
  padding: 10px 16px; color: var(--text); font-size: 14px;
  outline: none; resize: none; max-height: 120px;
  font-family: var(--font-main); line-height: 1.4;
  transition: border-color .2s;
}
.msg-input:focus { border-color: var(--accent); }
.msg-send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s; align-self: flex-end;
}
.msg-send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(255,107,0,.4); }

/* Mobile messages */
@media (max-width: 600px) {
  .msg-layout { height: calc(100vh - var(--nav-h) - var(--bottom-nav-h)); }
  .msg-sidebar { width: 100%; }
  .msg-sidebar.hidden { display: none; }
  .msg-chat.hidden { display: none; }
  .msg-back-btn { display: flex !important; }
}
.msg-back-btn {
  display: none; background: none; border: none; color: var(--text2);
  font-size: 20px; cursor: pointer; padding: 4px 10px;
}

/* ────────────────────────────────────────────────────────────────
   HOME PAGE / INDEX
   ──────────────────────────────────────────────────────────────── */
.home-category-bar {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; position: sticky; top: var(--nav-h); z-index: 90;
  background: var(--bg0); border-bottom: 1px solid var(--border);
}
.home-category-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  padding: 7px 16px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  text-decoration: none; transition: all .15s; font-family: var(--font-main);
}
.cat-chip:hover { background: var(--bg4); color: var(--text); }
.cat-chip.active { background: var(--bg0); color: var(--text); border-color: var(--text); }

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; padding: 16px;
}
@media (max-width: 600px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
}

/* Hero banner (channel page style) */
.home-hero-banner {
  position: relative; overflow: hidden;
  border-radius: 0; margin-bottom: 0;
  background: linear-gradient(135deg, #1a0800, #2d1200);
  min-height: 200px; display: flex; align-items: center;
}
@media (min-width: 768px) { .home-hero-banner { min-height: 260px; margin: 12px 16px; border-radius: 20px; } }
.home-hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.home-hero-content { position: relative; z-index: 2; padding: 32px 24px; }
.home-hero-title { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.home-hero-sub { font-size: 14px; color: rgba(255,255,255,.75); }

/* Upload flow fix — after upload go home */
.upload-success-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center;
  display: none;
}
.upload-success-card {
  background: var(--bg2); border: 1px solid var(--accent);
  border-radius: var(--radius-xl); padding: 40px; text-align: center; max-width: 380px;
}

/* ────────────────────────────────────────────────────────────────
   GENERAL COMPONENTS
   ──────────────────────────────────────────────────────────────── */
/* Buttons */
.btn-primary {
  padding: 10px 22px; border-radius: 22px;
  background: var(--accent); color: #fff; border: none;
  font-size: 14px; font-weight: 800; cursor: pointer;
  font-family: var(--font-main); transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent2); transform: scale(1.03); }
.btn-secondary {
  padding: 10px 20px; border-radius: 22px;
  background: var(--bg3); color: var(--text);
  border: 1.5px solid var(--border2); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font-main); transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: var(--bg4); border-color: var(--border2); }

/* Toast */
#lt-toast-container { position: fixed; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px); right: 16px; z-index: 9999; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.lt-toast { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); padding: 12px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,.5); animation: toastIn .25s ease; pointer-events: auto; }
.lt-toast.success { border-color: rgba(34,197,94,.5); }
.lt-toast.error { border-color: rgba(239,68,68,.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; color: var(--text2); margin-bottom: 8px; }

/* Overlay */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 399; }
@media (max-width: 767px) { .sb-overlay.show { display: block; } }

/* ── Shorts page: hide regular bottom nav duplicate ── */
body.shorts-page .mobile-bottom-nav { display: none !important; }
body.shorts-page .bottom-nav { display: none !important; }

/* ── Watch page side reactions on mobile ── */
@media (max-width: 600px) {
  .video-side-reactions { display: none; }
}

/* ── Category labels in Hindi ── */
.hindi-label { font-family: 'Noto Sans Devanagari', sans-serif; }

/* ── Lok Coins badge ── */
.lok-coins-btn {
  padding: 7px 14px; border-radius: 20px;
  background: linear-gradient(135deg, #FFD700, #FF9500);
  color: #000; border: none; font-size: 12px; font-weight: 800;
  cursor: pointer; font-family: var(--font-main); transition: all .2s;
}
.lok-coins-btn:hover { transform: scale(1.05); }

/* ── Join Mandal ── */
.btn-join-mandal {
  padding: 7px 14px; border-radius: 20px;
  background: var(--bg3); border: 1.5px solid var(--border2);
  color: var(--text2); font-size: 12px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  font-family: var(--font-main); transition: all .2s;
}
.btn-join-mandal:hover { border-color: var(--accent); color: var(--accent); }

/* ── Floating mini player ── */
.mini-player {
  position: fixed; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 10px);
  right: 16px; width: 300px; background: var(--bg2);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.7); z-index: 500;
  display: none; border: 1px solid var(--border);
}
@media (max-width: 600px) { .mini-player { width: calc(100% - 32px); } }
.mini-player video { width: 100%; display: block; aspect-ratio: 16/9; }
.mini-player-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.mini-player-title { font-size: 12px; font-weight: 700; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ── Description box ── */
.desc-box { background: var(--bg2); border-radius: var(--radius-md); padding: 14px 16px; margin: 10px 0; cursor: pointer; border: 1px solid var(--border); }
@media (max-width: 600px) { .desc-box { margin: 10px 12px; border-radius: var(--radius-sm); } }
.desc-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--text2); }
.desc-body { font-size: 13px; color: var(--text2); line-height: 1.6; margin-top: 10px; display: none; }
.desc-body.open { display: block; }
.desc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.desc-tag { background: var(--bg3); padding: 3px 10px; border-radius: 14px; font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600; }

/* ── Comments ── */
.comments-section { margin: 14px 0; }
@media (max-width: 600px) { .comments-section { padding: 0 12px; } }
.comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.comments-header h3 { font-size: 15px; font-weight: 900; }
.sort-btns button { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 5px 12px; border-radius: 14px; cursor: pointer; font-size: 12px; font-weight: 700; margin-left: 4px; font-family: var(--font-main); }
.sort-btns button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.comment-input-wrap { display: flex; gap: 10px; margin-bottom: 16px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-input-wrap textarea { flex: 1; background: var(--bg3); border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 13px; resize: none; outline: none; font-family: var(--font-main); }
.comment-input-wrap textarea:focus { border-color: var(--accent); }
.comment-card { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-body-wrap { flex: 1; min-width: 0; }
.comment-author { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.comment-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.comment-actions { display: flex; gap: 10px; margin-top: 6px; }
.comment-action-btn { background: none; border: none; color: var(--text3); font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: var(--font-main); transition: color .15s; }
.comment-action-btn:hover { color: var(--accent); }
.pin-badge { background: rgba(255,107,0,.15); color: var(--accent); font-size: 10px; padding: 2px 6px; border-radius: 8px; margin-left: 4px; }
.reply-form { display: none; margin-top: 8px; }
.reply-form textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; color: var(--text); font-size: 13px; resize: none; outline: none; font-family: var(--font-main); }
.replies-wrap .comment-card { padding: 6px 0; }

/* ── Watch feature row ── */
.watch-feature-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
@media (max-width: 600px) { .watch-feature-row { padding: 10px 12px; } }
.watch-feature-row::-webkit-scrollbar { display: none; }
.watch-feature-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px; background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-md); color: var(--text2); cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 700; min-width: 70px; transition: all .2s; font-family: var(--font-main); flex-shrink: 0; }
.watch-feature-btn i { font-size: 18px; margin-bottom: 2px; }
.watch-feature-btn:hover { background: rgba(255,107,0,.1); border-color: var(--accent); color: var(--accent); }
.watch-feature-btn.saved { background: rgba(255,171,64,.08); border-color: var(--accent3); color: var(--accent3); }

/* ── Video meta row ── */
.video-meta-row { margin: 0 0 10px; }
@media (max-width: 600px) { .video-meta-row { padding: 0 12px; } }
.video-stats { font-size: 12px; color: var(--text3); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ── Share dropdown ── */
.share-menu { position: relative; }
.share-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; min-width: 180px; z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,.5); overflow: hidden; }
.share-dropdown.open { display: block; }
.share-opt { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .12s; color: var(--text); }
.share-opt:hover { background: var(--bg3); }

/* ── PWA Install banner ── */
.pwa-banner { display: none; position: fixed; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); left: 50%; transform: translateX(-50%); background: var(--bg2); border: 1px solid var(--accent); border-radius: 16px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; max-width: 380px; width: calc(100% - 32px); z-index: 600; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.pwa-banner-text { flex: 1; font-size: 13px; font-weight: 700; }
.pwa-install-btn { padding: 6px 16px; border-radius: 18px; background: var(--accent); color: #fff; border: none; font-size: 12px; font-weight: 800; cursor: pointer; }

/* ── Scroll top btn ── */
.scroll-top-btn { position: fixed; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px); right: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; z-index: 100; transition: all .2s; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.scroll-top-btn.show { display: flex; }
.scroll-top-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Sidebar push on desktop ── */
@media (min-width: 768px) {
  .lk-main { margin-left: var(--sidebar-w); }
  .page-wrapper { margin-left: var(--sidebar-w); }
  .watch-layout { margin-left: 0; }
}

/* ── Story circles ── */
.story-circles { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px; }
.story-circles::-webkit-scrollbar { display: none; }
.story-circle { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; cursor: pointer; }
.story-ring { width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg, #FF9933, #FF6B00, #cc0000); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg1); }
.story-label { font-size: 10px; color: var(--text2); max-width: 62px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* ── Notification badge global ── */
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; }

/* ── Loading spinner ── */
.lt-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── India footer strip ── */
.india-footer-strip { display: flex; gap: 0; height: 4px; border-radius: 2px; overflow: hidden; margin: 0 16px 8px; }
.india-footer-strip .s1 { flex: 1; background: #FF9933; }
.india-footer-strip .s2 { flex: 1; background: #fff; }
.india-footer-strip .s3 { flex: 1; background: #138808; }

/* ── v1000_final overrides ── */
.vcontrols { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); padding: 10px 12px 12px; opacity: 0; transition: opacity .2s; }
.vplayer-wrap:hover .vcontrols { opacity: 1; }
.vplayer-wrap.playing:not(:hover) .vcontrols { opacity: 0; }
.vcontrols-row { display: flex; align-items: center; gap: 8px; }
.vctrl-btn { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: background .15s; }
.vctrl-btn:hover { background: rgba(255,255,255,.15); }
.vvol-wrap { display: flex; align-items: center; gap: 6px; }
.vvol-slider { width: 64px; accent-color: var(--accent); cursor: pointer; }
.vtime { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.vspeed-select { background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 3px 6px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.progress-wrap { position: absolute; bottom: 42px; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.2); cursor: pointer; z-index: 2; }
.progress-fill { height: 100%; background: var(--accent); position: relative; }
.progress-thumb { position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: none; }
.progress-wrap:hover .progress-thumb { display: block; }

/* ── Shorts bottom nav (inside shorts shell) ── */
.shorts-shell .mbn-item { color: rgba(255,255,255,.55); }
.shorts-shell .mbn-item.active { color: #fff; }
.shorts-shell .mbn-item i.fa-film { color: var(--accent); }

/* ── v48 FINAL FIXES ── */

/* Ensure body content not hidden behind bottom nav on ALL pages */
body { padding-bottom: 0 !important; }

/* All page wrappers get bottom padding */
.page-wrapper,
.lk-main,
.main-content,
#main-content,
.container,
.content-wrapper,
.lk-body {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px) !important;
}

/* Watch layout specific fix */
.watch-layout-outer,
.watch-page-wrap {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 20px);
}

/* Channel page bottom padding */
.ch-page-body { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 20px); }

/* Message layout height */
@media (max-width: 600px) {
  .msg-layout {
    height: calc(100dvh - var(--nav-h));
    padding-bottom: 0;
  }
  .msg-chat {
    height: 100%;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }
}

/* yt-card hover upgrade */
.yt-card {
  background: var(--bg2) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  transition: transform .2s, box-shadow .2s !important;
  border: 1px solid transparent !important;
}
.yt-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-card) !important;
  border-color: var(--border) !important;
}

/* Bottom nav — ensure it's always on top */
.mobile-bottom-nav,
.bottom-nav {
  z-index: 9999 !important;
}

/* Shorts bottom nav padding fix */
.shorts-bottom-nav .mobile-bottom-nav-inner {
  height: var(--bottom-nav-h);
}

/* Video action bar on mobile */
@media (max-width: 600px) {
  .action-bar { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .action-bar::-webkit-scrollbar { display: none; }
  .action-pill { flex-shrink: 0; }
}

/* Feature buttons row on mobile */
@media (max-width: 600px) {
  .watch-feature-row { overflow-x: auto; }
}

/* Fix watch page padding on mobile */
@media (max-width: 600px) {
  .watch-layout {
    padding: 0 !important;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px) !important;
  }
}

/* Upload page padding */
.upload-page-wrap,
#uploadWrap,
.upload-container {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 20px);
}

/* Fix sidebar push on mobile — don't push */
@media (max-width: 767px) {
  .lk-main,
  .page-wrapper {
    margin-left: 0 !important;
  }
}

/* Shorts — proper fullscreen height */
.short-item {
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
}

/* Spin keyframe (for music disc) */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* WhatsApp green for messages icon */
.mbn-item .fab.fa-whatsapp { color: #25D366; }
.mbn-item.active .fab.fa-whatsapp { color: #25D366; }

/* Message back button always show on mobile */
@media (max-width: 600px) {
  .msg-back-btn { display: flex !important; }
  .msg-chat.hidden { display: none !important; }
  .msg-sidebar.hidden { display: none !important; }
}

/* Remove Live from nav since live feature is removed */
.mbn-live { display: none !important; }

/* Index page main wrap */
.home-wrap, .wrap {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 20px) !important;
  min-height: 100vh;
}
