/* Familiar video browsing patterns with Biya's own identity and assets. */
body { font-family: Arial, Helvetica, sans-serif; background: #fff; color: #0f0f0f; }
.topbar { height: 64px; width: 100%; padding: 0 24px; gap: 20px; background: #fff; border-bottom: 1px solid #eee; }
.menu-toggle { width: 40px; height: 40px; padding: 11px 9px; border: 0; border-radius: 50%; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
.menu-toggle:hover { background: #f2f2f2; }
.menu-toggle span { display: block; height: 2px; width: 20px; background: #222; }
.brand { gap: 8px; font: 700 21px Arial, sans-serif; letter-spacing: -.6px; }
.brand-mark { width: 32px; height: 23px; border-radius: 7px; background: #e83c36; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 13px; top: 6px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid white; }
.search { height: 40px; width: min(640px, 55vw); border: 1px solid #c6c6c6; border-radius: 22px; margin: 0 auto; box-shadow: inset 0 1px 2px #eee; }
.search input { padding-left: 18px; font: 16px Arial, sans-serif; }
.search button { width: 62px; background: #f8f8f8; border-left: 1px solid #ddd; }
.search-icon { display: block; width: 15px; height: 15px; border: 2px solid #222; border-radius: 50%; margin: auto; position: relative; }
.search-icon::after { content: ""; width: 7px; height: 2px; background: #222; position: absolute; right: -5px; bottom: -3px; transform: rotate(45deg); }
.parent-link { display: flex; align-items: center; gap: 8px; color: #222; }
.parent-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e83c36; color: #fff; font-size: 14px; }
.app-shell { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 220px minmax(0,1fr); }
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 12px 12px 20px; border-right: 1px solid #eee; background: #fff; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 22px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.nav-item:hover { background: #f2f2f2; }
.nav-item.selected { background: #f2f2f2; font-weight: 700; }
.nav-icon { width: 22px; height: 22px; position: relative; flex: 0 0 22px; }
.home-icon::before { content: ""; position: absolute; left: 4px; top: 7px; width: 13px; height: 11px; border: 2px solid #222; border-top: 0; border-radius: 2px; }
.home-icon::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-left: 2px solid #222; border-top: 2px solid #222; transform: rotate(45deg); }
.shorts-icon::before { content: "S"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: #e83c36; }
.sidebar-rule { height: 1px; background: #e5e5e5; margin: 12px 0; }
.sidebar-heading { font: 700 14px Arial,sans-serif; margin: 14px 14px 8px; }
.category-item { gap: 22px; }
.category-dot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #ffd5d2; }
.sidebar-bottom { border-top: 1px solid #eee; margin: 14px 8px 0; padding: 14px 6px; color: #606060; font-size: 12px; line-height: 1.4; }
.page.feed-page { width: 100%; max-width: none; margin: 0; padding: 20px 30px 70px; }
.chips { position: sticky; top: 64px; z-index: 2; background: #fff; padding: 6px 0 16px; }
.chip { padding: 8px 13px; border: 0; border-radius: 8px; background: #f2f2f2; color: #0f0f0f; font-size: 14px; }
.chip:hover { background: #e5e5e5; }
.chip.active { background: #0f0f0f; color: #fff; }
.shelf { margin: 16px 0 38px; }
.section-title { margin-bottom: 14px; }
.section-title h1 { font: 700 21px Arial,sans-serif; margin: 0 0 4px; }
.section-title p { color: #606060; font-size: 13px; margin: 0; }
.section-title > a { color: #0f0f0f; border: 1px solid #ddd; border-radius: 18px; padding: 8px 12px; }
.video-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 16px; }
.video-card,.short-card { gap: 5px; }
.video-card strong,.short-card strong { font: 600 15px/1.4 Arial,sans-serif; }
.video-card small,.short-card small { font-size: 13px; color: #606060; }
.thumb { border-radius: 12px; background: #f1f1f1; }
.thumb.portrait { border-radius: 12px; }
.thumb-emoji { background: #fff; color: #e83c36; }
.play { background: #e83c36; color: #fff; }
.empty { background: #f8f8f8; color: #606060; }
.empty h3 { color: #0f0f0f; }
.mobile-nav { display: none; }
.short-feed { max-width: 560px; margin: 0 auto; scroll-snap-type: y mandatory; }
.short-item { scroll-snap-align: start; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 190px minmax(0,1fr); }
  .video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .short-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .short-feed { max-width: none; height: calc(100dvh - 114px); }
  .short-item { height: calc(100dvh - 114px); }
  .topbar { height: 56px; padding: 0 10px; gap: 9px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand-mark { width: 28px; height: 20px; }
  .brand-mark::after { left: 11px; top: 5px; }
  .menu-toggle { width: 34px; height: 36px; padding-left: 7px; }
  .parent-label { display: none; }
  .parent-avatar { width: 29px; height: 29px; }
  .search { width: auto; flex: 1; height: 36px; }
  .search button { width: 40px; }
  .app-shell { display: block; min-height: calc(100vh - 56px); }
  .sidebar { position: fixed; z-index: 5; top: 56px; bottom: 60px; left: 0; width: 245px; height: auto; box-shadow: 8px 0 22px #0002; transform: translateX(-110%); transition: transform .18s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .page.feed-page { padding: 14px 14px 78px; }
  .chips { top: 56px; margin: 0 -14px; padding: 8px 14px 13px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .short-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .video-card strong,.short-card strong { font-size: 14px; }
  .mobile-nav { position: fixed; z-index: 4; bottom: 0; left: 0; right: 0; height: 58px; display: flex; justify-content: space-around; align-items: center; background: #fff; border-top: 1px solid #e5e5e5; }
  .mobile-nav a { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; color: #555; font-size: 10px; padding: 4px 8px; }
  .mobile-nav .nav-icon { width: 23px; height: 23px; flex: 0 0 23px; }
  .mobile-nav .home-icon::before { left: 5px; top: 8px; width: 12px; height: 10px; }
  .mobile-nav .home-icon::after { left: 5px; top: 5px; width: 10px; height: 10px; }
  .mobile-nav .shorts-icon::before { content: ""; inset: 2px 3px; border: 2px solid currentColor; border-radius: 6px; transform: rotate(-8deg); }
  .mobile-nav .shorts-icon::after { content: ""; position: absolute; left: 8px; top: 6px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
  .mobile-nav a.selected { color: #e83c36; font-weight: 700; }
}
@media (max-width: 420px) {
  .short-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page.feed-page { padding-left: 11px; padding-right: 11px; }
  .chips { margin-left: -11px; margin-right: -11px; padding-left: 11px; }
}
