/* ── App shell ──────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ── Top bar ────────────────────────────────────────────────────────────────── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.top-bar__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  font-family: 'Roboto', 'Arial', sans-serif;
  line-height: 1;
}
.top-bar__logo-tube {
  color: #fff;
  font-weight: 700;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Page content ───────────────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 0 16px;
  padding-bottom: calc(var(--nav-height) + 16px);
}

.page-content--flush {
  padding-left: 0;
  padding-right: 0;
}

/* ── Bottom nav ─────────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav__item:hover,
.bottom-nav__item.active {
  color: var(--text);
}

.bottom-nav__item.active svg { color: var(--accent); }
.bottom-nav__item--upload { color: var(--accent) !important; }
.bottom-nav__item--upload .nav-icon-wrap {
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 6px;
  color: #fff;
}

/* ── Section headers ────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Utility ────────────────────────────────────────────────────────────────── */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--surface); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
